summaryrefslogtreecommitdiff
path: root/themes/default/views/photo.html.php
AgeCommit message (Collapse)Author
2009-01-15Changing t() placeholder syntax from {{replace_me}} to %replace_me.Andy Staudacher
2009-01-14Create Item_Model::thumb_tag() and Item_Model::resize_tag() to provideBharat Mediratta
an abstraction for when we add movie support.
2009-01-10Switch the pager to use themeroller's icon sprites. I applied jquery ui css ↵Chad Kieffer
classes to newly added span classes in the pager templates directly, will likely move these out and apply through ui.init.js later.
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.
2009-01-01Applied #gPager to next/last nav, moved up above photo and moved photo title ↵Chad Kieffer
back to below the photo.
2009-01-01Change the preamble for views in two ways:Bharat Mediratta
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)
2008-12-31Simplify the next/previous logic in the theme by passing in a nullBharat Mediratta
next/prev sib if one didn't exist. (that's what we were supposed to be doing in the first place, anyway)
2008-12-31PhotoID -> PhotoId for consistencyBharat Mediratta
2008-12-31Add Item_Model::url() and use it where appropriate. Cleans up someBharat Mediratta
grotty looking stuff in themes.
2008-12-31Add sibling information on photo pages and a very simple next/previous ↵Bharat Mediratta
interface.
2008-12-24Lots of deltas rolled up into a bigger change. Sorry for the mess.Bharat Mediratta
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-15Argh, fix a bad rename.Bharat Mediratta
2008-12-15Rename default_admin to admin_default.Bharat Mediratta
2008-12-13Layout cleanup and simplification. Move view-mode buttons into sidebar, ↵Chad Kieffer
search to header_top. Reduced borders. Started album grid improvements. Minor white space improvements. Still need to handle text/photo alignment in album grid, improve placement of search.
2008-12-11Remove the options menus from the albums and photo pages and move to the ↵Tim Almdal
site menu
2008-12-09Checked in jQuery superfish menu plugin, applied to item options menu. ↵Chad Kieffer
Updated album/item view icons.
2008-12-07Style cleanups to make File_Structure_Test pass.Bharat Mediratta
2008-12-07Yay! Working item upload dialog from the album page! Chad Kieffer
2008-12-06Switch the slideshow link from text to icon. Chad Kieffer
2008-12-05Added album and item view icons (album, hybrid, slideshow, full size). Added ↵Chad Kieffer
"Options" menu placeholder to display item options (add, edit, subscribe, permissions, etc.). Renamed gAlbumHeaderMenu to gItemMenu which can be used on both album and item views.
2008-11-27Make header buttons, line them up nicely and float them to the rightBharat Mediratta
so that they don't push the album grid down.
2008-11-27Use the dimensions of the real imageBharat Mediratta
2008-11-25Move comment listing into the comment moduleBharat Mediratta
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-212nd attempt at inserting html by modules.Tim Almdal
2008-11-21Restored most heading styles, still need to restore table and list styles. ↵Chad Kieffer
Removed unused CSS. CSS format updates. Applied jQuery tab styles to gSiteMenu. Removed gBlockHeader, all we need is a good old h3 element for a heading.
2008-11-21Revert module block approachTim Almdal
2008-11-20A look at away to allow modules to define html head contents (links and js) ↵Tim Almdal
and also allow modules to contribute blocks to the layout.
2008-11-19slideshow::link() returns the entire anchor elementTim Almdal
2008-11-19Change the album and photo templates to call the slideshow helper to get the ↵Tim Almdal
slideshow link and button text. The slideshow link will only show up if the slideshow module is installed.
2008-11-19Integrate Piclens lite as the slideshowTim Almdal
2008-11-18The start of the slideshow module. Mostly framework stuff, no real ↵Tim Almdal
implementation yet
2008-11-18Added the is_installed to the module helper and change to photo.html to not ↵Tim Almdal
try to display a comment if it is not installed
2008-11-16Several large changes:Bharat Mediratta
1) Changed the way that we get forms. Now, if you want to get a form for a REST resource you prefix /form to the resource id. So: /form/photo/1 : returns a form for editing photo id 1 /form/comments/1 : returns a form for adding a comment to photo id 1 /form/comment/1 : returns a form for editing comment id 1 2) Changed the comment module to have two controllers: comment: deals with a single comment resource comments: deal with collections of comments attached to an item Related stuff: - Moved the comments js into the theme - Reworked Comment_Helper for clarity - Moved form generation code down into Comment_Helper - Cleaned up routes (eliminating new comment ones added in recent rev) - Added form() function to all REST controllers - Changed comment module to use a block instead of an arbitrary helper call from the theme - Comment controller only returns HTML currently, but returns a 201 Created status code when a new comment is added, which the Ajax code can catch and act upon. - Got rid of a lot of extra views in comment module
2008-11-11Display comments from the database.Jozef Selesi
2008-11-10jQuery edit in place is so easy, seems like it oughta be added to the photo ↵Chad Kieffer
view :)
2008-11-09IE fixes, sidebar is now fixed in IE (we were missing a yui-g class). ↵Chad Kieffer
Removed .first class, it's not needed, at least not now. Moved all top-level layout containers to page.html.php so that if themers want to replace YUI grids with something else, like Blueprint, they only really need to edit page.html.php.
2008-11-07Updated CSS organization and headings, removed unused styles, added ↵Chad Kieffer
placeholders for a few styles, including gThumbnail. Simplified album grid loop, the thumbnail container markup for albums and items was almost identical, no need to repeat all of it. Switched album grid markup from <div> to <ul>. Updated element nesting in photo template.
2008-11-06Change the theming module again, per a discussion with Chad and Jakob.Bharat Mediratta
Now we have an overall page layout (page.html.php) which has a $content variable, and that $content will be one of several possible secondary views. Currently, it is either photo.html.php or album.html.php. header, footer, breadcrumb, sidebar, anything common to all pages is in page.html.php.
2008-11-05* Add thumbnail and resize dimensions to the item table and use themBharat Mediratta
properly in the theme. * Move thumbnail and resize generation down into the model for consistency. * Add a sample thumbnail for albums * Fix a bug in the ORM to clear the cache when we reload an object. * Add Kohana docs to the scaffold.
2008-11-05Add the photo controller, and tie it to the photo page in our theme.Bharat Mediratta
Implement a real breadcrumb.
2008-11-04Lots of new stuff!Bharat Mediratta
Replace theme HTML with *almost* the latest stuff from the mockups. (it doesn't include r18467 yet). Our theme format is now modelled after WordPress / Habari's style where you have one entry point per type (eg: album.php) which can load up whatever parts it needs (eg: $theme->display("header")) Created album and photo helpers which have create() functions that form the base of our new API, along with tests for them. Created our own version of the ORM_MPTT since the existing versions were too buggy and unsupported to depend upon. Only has a minimal implementation so far, and the tests are not yet committed. Added path(), thumbnail_path() and resize_path() to Item_Model Extended the scaffolding to allow you to add lots of photos/albums into your hierarchy. Deleted modules/mptt -- we're not going to use this anymore.