Commit Graph
81 Commits
Author SHA1 Message Date
Johan Cwiklinski 6746792bdf Drop short_tags 2018-05-19 17:01:37 +02:00
jamaaandBharat Mediratta 2d2503680e change "size" to "dimensions" and display unit "px" 2013-06-12 19:10:02 -04:00
jamaaandBharat Mediratta 8b14cc5a78 internationalize image size display
as per comment
https://github.com/gallery/gallery3/pull/394/files#r4643737
2013-06-12 19:10:02 -04:00
jamaaandBharat Mediratta ad63451275 fix upgrade function
allow for sequential upgrades
2013-06-12 19:10:01 -04:00
jamaaandBharat Mediratta 5d8ac644a5 fix whitespace 2013-06-12 19:10:01 -04:00
jamaaandBharat Mediratta 632285ee0c add the image size (in pixels) to the info module
adds a new variable "show_size", so had to increment the version number
to 3
2013-06-12 19:10:01 -04:00
Bharat Mediratta 9396342250 Drop the requirement to have the install() function set the module
version.  It's redundant.  Fixes #1985.
2013-01-31 19:55:53 -05:00
shadlaws 031dd3bd6f #1960 - Add unit test to look for extra spaces at end of line
- Added no_extra_spaces_at_end_of_line_test to File_Structure_Test.
- Updated Gallery_Filters to exclude testing code that isn't ours.
- Removed existing extra spaces.  New test now passes.
2013-01-24 12:03:05 +01:00
Bharat Mediratta 49f6ce2d94 gallery.menalto.com -> galleryproject.org
codex.gallery2.org -> codex.galleryproject.org

Fixes #1957.
2013-01-22 18:39:24 -05:00
Bharat Mediratta d45a737779 Update copyright to 2013. Fixes #1953. 2013-01-21 01:22:01 -05:00
Tony Fung 3286271376 Show "Movie info" on movie page 2012-06-05 11:24:13 +08:00
Bharat Mediratta 3fe3c09ec3 Use html::anchor consistently. Fixes #1851. 2012-05-06 09:45:04 -07:00
Bharat Mediratta bf2bb3e1ea Update copyright to 2012. #1822 2012-02-27 09:48:23 -08:00
Bharat Mediratta c07af35a19 Oops, fix broken codex urls. For #1698. 2011-04-23 14:53:39 -07:00
Bharat Mediratta ba20d5a500 Oops, this is the rest of the modules and themes for #1696 and #1698. 2011-04-23 14:46:07 -07:00
Bharat Mediratta 423daa52d5 Update copyright to 2011. 2011-01-21 23:01:06 -08:00
Bharat Mediratta 4756db435c Minor style cleanup 2011-01-07 20:09:27 -08: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 a897a9d53f Also missed commiting this in a1e3b1ed17. 2011-01-06 21:00:28 -07:00
Chad Kieffer 740a6531fc Missed this commiting this in a1e3b1ed17. 2011-01-06 20:57:56 -07:00
Chad Kieffer a1e3b1ed17 Added info module show metadata options and set all to true. Admins may turn off display of items from the Advanced Settings list. 2011-01-05 16:00:35 -07:00
Chad Kieffer 1d2e583c31 Pass the whole item, not just it's ID, to the info_block_metadata event. 2011-01-04 19:25:02 -07:00
Chad Kieffer dbff45cc91 Add an info_block_metadata event to allow other modules to add to the item info block. 2011-01-04 15:56:16 -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
Bharat Mediratta c3c2b45280 Update the copyright to 2010. It's only 3 months into the year :-) 2010-03-03 10:15:34 -08:00
Tim Almdal 7ea13b3869 Normalize capitalization ticket #596 2009-10-28 12:15:52 -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
Tim Almdal 4ec2654a69 Correct version numbers for image_block and info modules, they inadvertently got set to 2, they should be 1 2009-09-30 18:04:30 -07:00
Tim Almdal 612bc3f091 Merge branch 'talmdal_dev' of git@github.com:gallery/gallery3 into talmdal_dev
Conflicts:
	modules/gallery/helpers/block_manager.php
	modules/gallery/libraries/Theme_View.php
	modules/image_block/helpers/image_block_block.php
	modules/image_block/helpers/image_block_theme.php
	modules/info/helpers/info_block.php
	modules/info/helpers/info_installer.php
2009-09-30 07:48:19 -07:00
Tim Almdal 60d35b8992 Use the block_manager to manage site sidebar panels. Fixes ticket #110.
* Extend block_manager to handle sidebar blocks. get_available has become get_available_admin_blocks, get_list becomes get_admin_list.
* Create new functions get_available_site_blocks which will look for gallery_block get_available_site_blocks.
* Refactor sidebar_blocks into a separate function and then call block_manager::get_html(site.sidebar). Convert image_block to use block management instead of theme::sidebar_blocks
* Change the block_manager api so that the theme is passed into the get method. convert info to the new sidebar block approach
* Convert the user module to use the new sidebar block structure. remove the installers for info and image_block modules.
* Convert tag and rss modules to the new sidebar framework. reset the version number to 1 for info and image_block modules.
* Change the get_html method to ignore empty blocks and change the individual handlers to return an empty string if no block is generated
* Add a warning message if no sidebar blocks are active and provide a link to the admin page that configures the sidebar.
2009-09-30 07:31:12 -07:00
Tim Almdal 19cb27c9a4 change the block_manager api so that the theme is passed into the get method. convert info to the new sidebar block approach 2009-09-29 15:07:53 -07:00
Bharat Mediratta 961bc3b185 Use user::display_name() in another case where it was missing. 2009-09-12 10:06:24 -07:00
Bharat Mediratta 0bb489b694 Properly internationalize the text for the By: line. This gets rid of
the escaping problem.
2009-09-12 10:02:27 -07:00
Bharat Mediratta 9fbdcf3efd Change the module installer so that you don't need to provide your own
install() function if all you're going to do is to set the version of
the module from module.info into the database.  This means that for some
simple modules, you don't need an install.php file at all.
2009-09-05 13:39:30 -07: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
Bharat Mediratta e2a9a1d284 Add quotes around all values that contain spaces in them, and add a
test to make sure that we continue to do so.

This makes sure that we don't have problems with 5.3 which treats the
literal "on" as a boolean.
2009-07-13 10:36:55 -07:00
Chad Kieffer ff0b66a1a4 Put owner's url into user link. Seems better than displaying email until we have something like a user profile page. 2009-07-12 22:53:47 -06: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
Chad Kieffer 0d105bcf9d Display owner's full name rather than username, ticket #421. 2009-06-30 23:29:53 -06: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
Bharat Mediratta b235fd6e5f Pass the item into the block. 2009-06-28 18:00:00 -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