Johan Cwiklinski
6746792bdf
Drop short_tags
2018-05-19 17:01:37 +02:00
Chad Kieffer
06d94065ce
Updates per Bharat's pull request review. Renamed info_block_metadata event to info_block_get_metadata.
2011-01-06 21:03:19 -07:00
Chad Kieffer
798c876ba1
Convert the metadata array to be associative. Replaced single with double-quotes. Indenting fixes.
2011-01-04 00:40:12 -07:00
Chad Kieffer
f7f6cbf04f
First info module refactor step: Load item metadata into an array. Loop through this array in the info block view to display loaded data.
2011-01-04 00:28:44 -07:00
Bharat Mediratta
2dda8e22a7
Use the gallery helper date/time functions wherever we format date
...
time for the browser. Fixes ticket #1278 .
2010-08-08 16:54:31 -07:00
Chad Kieffer
3e6ba7acc3
Renamed most, if not all css selectors from gName to g-name. Moved a few shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-10-04 00:27:22 -06:00
Andy Staudacher
b9bd1681a3
Update all code to use helper method html::clean(), html::purify(), ... instead of SafeString directly.
2009-08-29 22:54:20 -07:00
Andy Staudacher
a5dfc81a8f
Merge commit 'upstream/master'
...
Conflicts:
modules/akismet/views/admin_akismet.html.php
modules/comment/helpers/comment_rss.php
modules/gallery/helpers/gallery_rss.php
modules/gallery/libraries/I18n.php
modules/gallery/views/permissions_browse.html.php
modules/gallery/views/simple_uploader.html.php
modules/info/views/info_block.html.php
modules/organize/controllers/organize.php
modules/organize/views/organize.html.php
modules/organize/views/organize_album.html.php
themes/default/views/album.html.php
themes/default/views/movie.html.php
themes/default/views/photo.html.php
2009-08-29 14:17:48 -07:00
Andy Staudacher
c01ac42c46
Refactor all calls of p::clean() to SafeString::of() and p::purify() to SafeString::purify().
...
Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-08-29 12:48:40 -07:00
Bharat Mediratta
826e104fa9
Get rid of the extra "Folder name" row. It's noisy. Fixes ticket #593 .
2009-08-27 17:15:20 -07:00
Chad Kieffer
ddddfc5e8e
Make the info block display 'File name', instead of 'Folder name' when showing a photo. Fixes #631
2009-08-27 14:27:49 -06:00
Bharat Mediratta
51dca582cd
More thorough fix for #421 . Create User_Model::display_name() which
...
uses the full name if there is one, or falls back to the name if
that's all we have.
2009-07-19 16:50:35 -07:00
Tim Almdal
d6648c0aff
Fix for ticket #477 . Use nl2br method when rendering comment::text and
...
item::description. In addition add p::clean or p::purify to places that
xss cleaning had missed (i.e. rss feeds)
2009-07-04 08:17:12 -07:00
Tim Almdal
54ffea2419
Split the clean method into two clean and purify. clean is a light weight
...
approach using html::specialchars and purify uses HTMLPurifier to intelligently
cleanse the output fields. Use purifier for text and title fields where it is
likely that a user would enter html to format their data.
2009-07-03 21:44:10 -07:00
Bharat Mediratta
24f0c4bd19
Undo my last change; it's not the right fix for the problem.
2009-06-28 18:10:42 -07:00
Chad Kieffer
2b804ebdce
Convert info module's block to use a list instead of a table. Addresses request in ticket #441 .
2009-06-28 17:53:20 -06:00
Bharat Mediratta
26314d0ef8
Create gallery::date_time(), gallery::date() and gallery::time()
...
functions that format a unix timestamp into a date+time/date/time
string.
Partial fix for ticket #347 .
2009-06-12 22:44:51 -07:00
Chad Kieffer
c5425f42a4
Remove album view icon link, added album link to info module. This and breadcrumb should suffice.
2009-06-06 00:35:30 -06:00
Bharat Mediratta
708f27f483
Run p::clean() on any variables that contain data entered by users.
2009-05-31 00:11:48 -07:00
Bharat Mediratta
fc6bdbbbc8
Grab photo capture date and captions from EXIF/IPTC data.
...
- Add a "captured" column to the items table.
- Pull the DateTime EXIF field and put it into the captured column
- Pull the Caption EXIF & IPTC fields and put them into the description
field if there was not already a value there
2009-05-07 01:18:31 +00:00
Bharat Mediratta
caa0a6d47f
Don't show the description field if there's no description
2009-03-09 07:54:37 +00:00
Chad Kieffer
aca2729eb6
Remove the "more" link until something's implemented that needs it.
2009-02-09 01:20:42 +00:00
Andy Staudacher
a631fe29f3
i18n refactoring: Rename all _() (reserved by gettext) calls to t().
...
- And refactor printf to our string interpolation / pluralization syntax
- Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-08 17:13:06 +00:00
Bharat Mediratta
cd1d023754
Change the preamble for views in two ways:
...
1) drop unnecessary semicolon
2) start with <?php for extra security in the case that the server itself doesn't
have short_tags enabled (the app won't work, but we need to make sure that we're
still secure)
2009-01-01 00:23:29 +00:00
Bharat Mediratta
672eca5337
Lots of deltas rolled up into a bigger change. Sorry for the mess.
...
1) Deleted in-place-editing. We'll be replacing this with a real edit
system that groups settings together and is more coherent.
2) Tweaked the way that dialog boxes work to get the ajax stuff working
again. It's imperfect and does not work properly for uploading images.
This is going to get redone also, but this is a good resting point.
3) Created edit forms for albums and photos. Moved _update and _create out
of Items_Controller and into the individual subclasses.
4) Created access::required which is a shorthand for:
if (!access::can(...)) {
access::forbidden();
}
5) Added validation rules to Items_Model
6) Converted login to use the regular modal dialog approach in the theme.
2008-12-24 00:20:26 +00:00
Bharat Mediratta
a8713a7695
Allow in-place editing in the info block.
2008-11-08 19:11:12 +00:00
Bharat Mediratta
418c0aab69
Create permanent owner_id column in the item table, and use a soft
...
relationship to bind the two. To do this, I overrode __get in
Item_Model so that $item->owner returns the appropriate User_Model.
2008-11-08 07:48:36 +00:00
Felix Rabinovich
28b739a210
Adding user (owner) to items; info module
2008-11-08 07:18:56 +00:00
Bharat Mediratta
8e880b4c41
Item Info block is now off into the info module. Yay!
2008-11-05 05:35:47 +00:00