summaryrefslogtreecommitdiff
path: root/modules/info/helpers
AgeCommit message (Collapse)Author
2013-06-12change "size" to "dimensions" and display unit "px"jamaa
2013-06-12internationalize image size displayjamaa
as per comment https://github.com/gallery/gallery3/pull/394/files#r4643737
2013-06-12fix upgrade functionjamaa
allow for sequential upgrades
2013-06-12fix whitespacejamaa
2013-06-12add the image size (in pixels) to the info modulejamaa
adds a new variable "show_size", so had to increment the version number to 3
2013-01-31Drop the requirement to have the install() function set the moduleBharat Mediratta
version. It's redundant. Fixes #1985.
2013-01-24#1960 - Add unit test to look for extra spaces at end of lineshadlaws
- 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-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-06-05Show "Movie info" on movie pageTony Fung
2012-05-06Use html::anchor consistently. Fixes #1851.Bharat Mediratta
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-01-21Update copyright to 2011.Bharat Mediratta
2011-01-07Minor style cleanupBharat Mediratta
2011-01-06Updates per Bharat's pull request review. Renamed info_block_metadata event ↵Chad Kieffer
to info_block_get_metadata.
2011-01-06Also missed commiting this in a1e3b1ed17177cf7e0ef.Chad Kieffer
2011-01-05Added info module show metadata options and set all to true. Admins may turn ↵Chad Kieffer
off display of items from the Advanced Settings list.
2011-01-04Pass the whole item, not just it's ID, to the info_block_metadata event.Chad Kieffer
2011-01-04Add an info_block_metadata event to allow other modules to add to the item ↵Chad Kieffer
info block.
2011-01-04Convert the metadata array to be associative. Replaced single with ↵Chad Kieffer
double-quotes. Indenting fixes.
2011-01-04First info module refactor step: Load item metadata into an array. Loop ↵Chad Kieffer
through this array in the info block view to display loaded data.
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2009-10-28Normalize capitalization ticket #596Tim Almdal
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-09-30Use the block_manager to manage site sidebar panels. Fixes ticket #110.Tim Almdal
* 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-12Use user::display_name() in another case where it was missing.Bharat Mediratta
2009-09-12Properly internationalize the text for the By: line. This gets rid ofBharat Mediratta
the escaping problem.
2009-09-05Change the module installer so that you don't need to provide your ownBharat Mediratta
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-07-12Put owner's url into user link. Seems better than displaying email until we ↵Chad Kieffer
have something like a user profile page.
2009-06-30Display owner's full name rather than username, ticket #421.Chad Kieffer
2009-06-28Undo my last change; it's not the right fix for the problem.Bharat Mediratta
2009-06-28Pass the item into the block.Bharat Mediratta
2009-06-23Refactor the install/upgrade code to be more flexible.Bharat Mediratta
Add xxx_installer::upgrade($version) method so that upgrade stanzas are separate from install stanzas. In the old code, to do an upgrade meant that you had to re-evolve everything from the initial install because we'd step through each version's changes. But what we really want is for the initial install to start off in the perfect initial state, and the upgrades to do the work behind the scenes. So now the install() function gets things set up properly the first time, and the upgrade() function does any work to catch you up to the latest code. See gallery_installer.php for a good example.
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-02-07Use Album or Photo in the title instead of ItemBharat Mediratta
2009-01-18Rename theme callback helpers from xxx_block to xxx_theme to make roomBharat Mediratta
for us to rename the dashboard helper to be a block helper since sidebar blocks are not just in the dashboard.
2009-01-15Changing t() placeholder syntax from {{replace_me}} to %replace_me.Andy Staudacher
2009-01-14Make sure that helper functions are all static. Add newBharat Mediratta
File_Structure_Test to make sure we don't regress. According to the PHP docs, the "public" keyword is implied on static functions, so remove it. Also, require private static functions to start with an _. http://php.net/manual/en/language.oop5.visibility.php
2009-01-12Implement deleting dashboard blocks.Bharat Mediratta
* Refactor blocks so that they have a separate id vs css_id. This way we can have a unique identifier for each visual block. * Store blocks with a random id as their unique identifier * Add Admin_Dashboard::remove_block() and modify themes/admin_default/views/block.html.php to call it when you click the remove box.
2009-01-08i18n refactoring: Rename all _() (reserved by gettext) calls to t().Andy Staudacher
- 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.
2008-12-20Add view counts and show them properly.Bharat Mediratta
2008-12-17Separate thumbnails out into var/thumbs. This clears up some ambiguity in ↵Bharat Mediratta
Item_Model and simplifies file_proxy. It also means we can stop munging file names in the var/resizes hierarchy. In the process, rename "thumbnail" to "thumb" everywhere in honor of Chad (well, ok because it's shorter)..
2008-11-27Centralize logging around installing/uninstalling modules.Bharat Mediratta
2008-11-26Add a new "tag" page type.Bharat Mediratta
Create the concept of "page types" which let us specify the kind of page that we're rendering in high level terms. Currently there are three page types: album, photo and tag. The tag page type uses slightly different variables. It has a $tag but no $item. Adjust all sidebar_block() functions to avoid printing stuff that's dependent on the item if there is no item. Simplify the tag code to stop trying to fake an item. Update the theme slightly to use $item and $tag where appropriate (notably, for making the <title> element).
2008-11-25Oops, fix a typo causing us to treat an array like a string.Bharat Mediratta
2008-11-25Fix a bug in thumbnail_info where we were printing out the data instead of ↵Bharat Mediratta
returning it
2008-11-22Create thumbnail insertion points (top/bottom/info) and moveBharat Mediratta
the generic item info into the info module.
2008-11-22Move all block callbacks from View::block_type() toBharat Mediratta
$theme->block_type() so that the themer has a consistent interface. Also added a bunch more callbacks and normalized the names so that the module author has plenty of options for where stuff gets put on the page. Especially renamed album/photo/sidebar to be album_blocks() photo_blocks() and sidebar_blocks() to make it clear that those are going to be larger content sections and not just basic insertion points. Used __call() to collapse all functions in the theme, which incidentally makes it trivially easy to add a new insertion point.
2008-11-22Convert gmaps, info, and tag modules to the new block moduleTim Almdal
2008-11-05Item Info block is now off into the info module. Yay!Bharat Mediratta