summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Theme_View.php
AgeCommit message (Collapse)Author
2013-03-11Merge pull request #204 from jozefs/issue1838Bharat Mediratta
#1838 - thumb_proportion should have a minimum size.
2013-03-11Fix Theme_View::siblings bug - limit and offset reversed in sibling_callback.shadlaws
I wonder if this could be causing some random issues I see on the forums...
2013-03-11Themes can choose child thumbnail when asking for proportion.Jozef Selesi
This helps themes better calculate an item's container size, for cases when the first item significantly differs in size from the rest. Trac-Ticket: #1838
2013-03-11Themes can set minimum thumbnail size when calculating proportions.Jozef Selesi
This prevents broken item rendering when thumbnails are smaller than the theme design allows. Trac-Ticket: #1838
2013-03-02#2031 - Add class_exists() before method_exists() if class existence is unknown.shadlaws
- fixed all instances of this in core code - deleted previous Zend Guard Loader workaround in MY_Kohana.php - updated Bootstrap.php to reflect deleted MY_Kohana.php
2013-02-09Extend siblings callbacks to take a $limit and an $offset for navigatingBharat Mediratta
large sibling sets. Useful for the thumbnav module since we don't want to iterate a thousand siblings to find the one we care about. Fixes #1999.
2013-01-30Follow-on to 1e4d75c12072b49c3469f18af13bcf3439afc6b0 for #1975.Bharat Mediratta
Create a siblings() function which pulls together the siblings_callback function and makes it a more palatable API.
2013-01-23Use the thumb proportion from the first item in an album if the album has ↵Bharat Mediratta
children. Fixes #1958.
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-05-11Verify that theme names are well formed. Fixes #1856.Bharat Mediratta
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-08-30Make the Theme_View::thumb_proportion() API call backwards compatible toBharat Mediratta
the API before dc21cf36b606048dc24532407d39bc8f5b4211fa. Fixes #1775
2011-08-27Merge branch 'master' into bharat_devBharat Mediratta
2011-04-26Stop using Pagination() and instead use $theme->pager() in views.Bharat Mediratta
Move the pager() function up to Gallery_View and replace themes/admin_wind/views/pager.html.php (Pagination based) with a modified version from the wind theme in themes/admin_wind/views/paginator.html.php. Fixes #1718.
2011-04-23Fix for ticket #541Tim Almdal
Added a theme_info variable to the theme globals. The properties in the theme.info file are now contained in this theme_info structure. Access is: <?= $theme_info->author ?> will display the theme author.
2011-03-20Change the $thumb_proportions variable to be a theme callback whichBharat Mediratta
takes an item as an argument. This will let us figure out proportions in the case where a module has defined custom thumbnail sizes.
2011-01-21Update copyright to 2011.Bharat Mediratta
2011-01-21Add "html_attributes" theme callback to allow modules to inject attributes intoBharat Mediratta
the <html> element, including things like namespaces. Fixes #1615.
2011-01-10Create new APIs for allowing themers to control what CSS/JS getBharat Mediratta
combined and when. Backwards compatible in that old themes will work, but their CSS/JS will no longer be combined unless they make some changes. Fixes #1600.
2011-01-03Using array support introduced in 8295201adf948ea35f21f75801b7a8bf36c27569Joe7
2010-12-16Swap the order of the CSS and JS for performance. Fixes #1540.Bharat Mediratta
2010-08-29Put the theme CSS at the end of the module CSS so that the theme hasBharat Mediratta
the final say. Fixes ticket #1315.
2010-08-01default maintenance_mode from false -> 0 for consistency with the value we ↵Bharat Mediratta
set in the db
2010-08-01Make maintenance mode a variable instead of a config. Then createBharat Mediratta
links on the Admin > Maintenance page to allow you to turn it on and off. This should be efficient since we cache all vars and look them up on every request anyway. This also allows us to have the Fix task enable maintenance mode while it's running which greatly reduces the chances that somebody will come along and hork the database while we're tinkering with MPTT pointers. Fixes ticket #1259.
2010-05-14Fix-ups for d98b85f7d3142676e6b4f407a18ed81564823f88Bharat Mediratta
- Pass the CSS selector of the active image in as an arg to site_menu so that quick operations know what they're operating on. - Change the ids from g-{photo,movie}-id to the generic g-item-id - Initialize ajax handlers for site menu on the photo and movie page - Drop the movie context menu, it's now in the site menu
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-01-08Remove the display of the "body_attributes" div when in debug mode. debug ↵Tim Almdal
mode is by default set up to add new div's to display the location of the content. "body_attributes" are attributes on the body tag and trying to add content introduces an extra > in the html stream.
2009-11-28Give the theme a chance to handle theme function callbacks as well.Bharat Mediratta
2009-11-27Move the theme fallback checking into theme::load_themes() so thatBharat Mediratta
we're calling it once per request.
2009-11-20Paginator: don't try to set the position for "other" page types.Bharat Mediratta
2009-11-19Revert "Create theme::get_var(), theme::set_var() methods to set the options ↵Tim Almdal
of the active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme." This reverts commit 26114972c3388f065220b94a0d5962f20a6ccd0c.
2009-11-18Create theme::get_var(), theme::set_var() methods to set the options of the ↵Tim Almdal
active site theme. Change all refrences to theme options to use these methods. Update the version number of Gallery to 20 and move any them related options to the be stored under the active theme.
2009-11-18For album pagination, don't let the last_visible_position exceed theBharat Mediratta
total. Fixes ticket #903.
2009-11-17Redesign the way that we consider page types to create buckets of pageBharat Mediratta
types, and a subtype for specifics. Currently the top level bucket collection, item, other Here are the core subtypes so far: collection: album, search, tag item: movie, photo other: login, reset, comment-fragment, comment It's legal to create new page_subtypes whenever you want. Use the appropriate page_type to get the coarse grain behavior that you want.
2009-11-15Fix a couple of errors in the refctored paginator code:Bharat Mediratta
1) We weren't showing previous page links for albums when we should have 2) We needed to wrap the results of url::merge() in url::site() so that we generate server-relative urls.
2009-11-14Oops. Fix a typo that the forced page_type to always be "tag"Bharat Mediratta
2009-11-14Fix pagination so that it does not require any domain specific logicBharat Mediratta
to support tags and search. Instead, just modify the page param to the current page.
2009-11-14Rename "pager" to "paginator" so that we differentiate page.html.phpBharat Mediratta
from paginator.html.php
2009-11-14Normalize pagination so that pager.html.php can handle pagination forBharat Mediratta
both albums and movies. Kohana's paginator is not quite sufficient for this, so create our own pagination logic in Theme_View with only the stuff we need. Clearly document the variables available in pager.html so that themers know how to use it. Fixes ticket #626.
2009-11-13Standardize the name of the blocks.Tim Almdal
2009-11-06Create a user_menu for the top of the page. Change the login, edit profile ↵Tim Almdal
and logout portions of the banner to be rendered by the Theme_View::user_menu callback. This fires the user_menu event. Fixes Ticket #871.
2009-10-27Remove Menu::compact() in favor of putting an if-then clause inBharat Mediratta
menu.html.php. This serves two purposes: 1) It's more efficient since we're doing less passes over the Menu tree 2) We're allowing themers to decide whether or not to show empty menus
2009-10-27Change our menu building blocks to use PHP templates so that themesBharat Mediratta
can override them and define their own menu formats. I worry a little bit that this approach may be too heavy since we're now doing a lot more template includes than we were before. Also, I had to change the Menu API to stop using __toString() because you can't throw exceptions from __toString() which would make it an unhappy experience for developers.
2009-10-22Change the name of identity library from Identity to IdentityProvider. ↵Tim Almdal
Create a helper class called identity to simplify call the Identity Provider. Move the contents of MY_Session.php to the new helper class and remove the MY_Session class
2009-10-16Remove all non Identity API methods from Identity.php. Created an ↵Tim Almdal
MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
2009-10-16Start simplifying the interface by moving the static methods from user.php ↵Tim Almdal
and group.php. Tried creating a identity helper, but the helper identity.php was confused with the library Identity.php. So got around this by making the methods on Identity static and calling the instance within the static methods. Also temporarily moved the user.php and group.php back into the user module.
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-29* Remove the @todo in module event and always try to call ↵Tim Almdal
gallery_event::$function first * Refactor gallery.php to move site_menu, admin_menu, and context_menu to gallery_event.php * Change Theme_View and Admin_view to call module::event("site_menu|admin_menu|context_menu"...)
2009-09-24Fix Admin_View to look for the the variable active_admin_theme instead of ↵Tim Almdal
active_site_theme. In addition check for the existence of THEMEPATH . instead of theme/