summaryrefslogtreecommitdiff
path: root/core/libraries
AgeCommit message (Collapse)Author
2008-12-07Remove debugging codeTim Almdal
2008-12-07Merge gallery3/branches/menus back into gallery3/trunkTim Almdal
2008-12-07Leave all locking in ORM_MPTT::move_to, don't worry about it inBharat Mediratta
Item_Model::move_to, unless it turns out that we really need to.
2008-12-07Change ORM_MPTT::add_to_parent() to take an ORM instead of an id soBharat Mediratta
that it's consistent with ORM_MPTT::move_to()
2008-12-07Adjust exception text to our normal form.Bharat Mediratta
2008-12-07fix a couple of typos.Bharat Mediratta
2008-12-07Rename moveTo to move_to and extend the test a bit.Bharat Mediratta
2008-12-04Tweak some issues with the moveTo ProcessingTim Almdal
2008-12-04Moving albums around with a drag and drop interface seems to work and ↵Tim Almdal
preserve the left right pointers. * changed _lock and _unlock to protected methods lock and lock respectively * added a moveTo method on the Item_Model * Corrected the hole closure on delete. * added moveTo on the ORM_MTPP class * Changed the rearrange javascript to do moves with ajax
2008-12-04Implement ORM_MPTT::delete() properly.Bharat Mediratta
Inline ORM_MPTT::_grow() for now Rewrite ORM_MPTT tests to be domain specific; they no longer use album/photo helpers.
2008-12-04Add unit tests to test growing and contracting the left and right pointersTim Almdal
Added a delete method to ORM_MPTT that contracts the tree when an item is deleted
2008-11-28Rename module::get_list() to module::installed()Bharat Mediratta
2008-11-28Add credits theme callback, point the powered-by link at GMCBharat Mediratta
2008-11-28Add tag() functionBharat Mediratta
2008-11-271) Create a Theme_View class that combines the functionality of the Theme ↵Tim Almdal
class with the View class. 2) Only define the form.html.php::DrawForm method once if there are multiple forms on the page (i.e. comments and add tags)
2008-11-27Add navigation_top() and navigation_bottom() insertion pointsBharat Mediratta
Move "My Gallery" navigation tab into the user module and only show it if you're logged in
2008-11-27Add page_type() functionBharat 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-26NULL -> nullBharat Mediratta
2008-11-26Initial commit of the translation class, I18n_Core and some tests.Andy Staudacher
- Port of Ruby's I18n gem (http://rails-i18n.org/) - Added proper plural handling on top of that. - Using CLDR 1.6's plural form data - See I18n_Test for example usage. - Not integrated into G3 templates yet. Probably adding __() as alias for I18n::instance->translate(). - No specific plan yet where localization files should live.
2008-11-25Change url() to use url::file() since it's more concise.Bharat Mediratta
2008-11-25Remove module() since it's now unused. We can add it back if we decide that ↵Bharat Mediratta
we want it again.
2008-11-25Move the in-place-edit JS into the page_footer callback and out ofBharat Mediratta
Theme.php.
2008-11-25Add gClearFix to the annotated theme elements, which makes the box surround ↵Bharat Mediratta
its contents better (thanks thumb!)
2008-11-25Add theme debugging. Activate it in the [info] tab in theBharat Mediratta
scaffolding, then browse around your Gallery3 to see where you can add visible elements via modules.
2008-11-24Don't bother trying to check if the class file exists, just use ↵Tim Almdal
method_exists, which will use the php auto loader to find the class.
2008-11-23Add a site-config parameter to the config.php file. Created a ↵Tim Almdal
core_block:head method to insert the title into the head section. If the config value is false, the default Browse Photos::$item->title is used. A string value with a trailing '-' will append the config value to $item-title. Otherwise, the page title is set with the supplied value.
2008-11-23Remove extra quotes around variable that already contained a string valueTim Almdal
2008-11-22Create thumbnail insertion points (top/bottom/info) and moveBharat Mediratta
the generic item info into the info module.
2008-11-22Pass extra args on to the block function.Bharat Mediratta
Avoid excess string concatenation (not benchmarked).
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-21Convert the carousel module to provide its block through the new apiTim Almdal
2008-11-21Be consistent in naming the album_top blockTim Almdal
2008-11-212nd attempt at inserting html by modules.Tim Almdal
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-20Add unittest and caching for ORM_MTPP::descendantsTim Almdal
2008-11-20Add unittest and caching to ORM_MTPP::descendants_countTim Almdal
2008-11-20Clean up the MediaRSS module a little bit:Bharat Mediratta
* Media_RSS_Controller::$LIMIT is now self::$page_size * We use ORM_MPTT descendant_counts() * If the page is out of bounds, put it on a boundary * Move pub_date into the controller to simplify the mrss file * Put all the view assignment in one block for easier reading * Removed stray ; from the end of lines in the mrss file Clean up ORM_MPTT a bit: * fix spelling: decendent -> descendant * Remove unnecessary order_by() clauses * Set the default for $type to null (not "all").
2008-11-20* Added HTTP status constants and helper functions to REST helper.Jozef Selesi
* HTTP header setting in comment module now going through REST helper API. * Fixed items controller test. * Fixed user installer test. * Fixed _create() handling in the REST controller. * Fixed routing for edit and add forms. * Added some tests for the REST controller. * Set svn:eol-style to LF on a bunch of files. * Added preamble to MY_Forge.php.
2008-11-20changed descendents_by_type to descendents and added descendent_countTim Almdal
2008-11-19Update the media rss template to include the resize and the fullsizeTim Almdal
added descendants by type method to the item model to allow for the selection of children by type
2008-11-16Create Forge::add_rules_from() which pulls validation rules from the model andBharat Mediratta
associates them with the form. This replaces the various _add_validation_rules() functions in the user and comment modules. Move user edit form into user helper for consistency with the comment module. Implement missing _form method in the user controller.
2008-11-16Second half of renaming the tags module. Change all occurrences ofBharat Mediratta
gTags to gTag in the CSS.
2008-11-16Create MY_Forge to specify the defaul htmlTim Almdal
2008-11-15Add Theme::module() and module::get()Bharat Mediratta
2008-11-11Override View_Core::render so that we trap errors stemming from badBharat Mediratta
PHP includes and show a visible stack trace to help developers.
2008-11-08Add support for in-place editing of data fields.Bharat Mediratta
2008-11-07Add automatic pagination. All you have to do is add <?= $theme->pagerBharat Mediratta
?> to your theme file and you get a well formed pager. Themes can customize this any way they want. A version that matches the mockup is provided in the default theme.