Commit Graph
210 Commits
Author SHA1 Message Date
Andy Staudacher 38e1eef547 Some code audit fixes and adding some directory separator normalization code to make it work on Windows as well. 2008-11-26 20:21:39 +00:00
Tim Almdal 25b0dff45c Add a thumbnail to the root directory, in case it gets displayed in a tag dynamic album 2008-11-26 18:49:20 +00:00
Andy Staudacher 66f51f3c17 Initial commit of the translation class, I18n_Core and some tests.
- 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-26 11:46:56 +00:00
Bharat Mediratta 9c60566197 Add support for marking users as "admin" 2008-11-26 04:54:43 +00:00
Bharat Mediratta 226df2a8f8 Add support in the scaffolding for adding users to groups, adding and
removing users and groups.
2008-11-26 04:45:43 +00:00
Bharat Mediratta 242b3a1403 Use lorem2 words as inputs to generateTags. Limiting the number of
tags results in a better distribution of the tags (so the cloud looks
nicer).
2008-11-26 03:48:42 +00:00
Bharat Mediratta 5fce343ca4 Create user/group create/delete functions and have the scaffolding use them. 2008-11-26 03:34:39 +00:00
Tim Almdal d554adc484 1) Changed how the test tags are generated to be able to create a better distribution
2) Added a new helper function "load_buckets" assign the class suffix to each tag
3) Created a unit test to test the load_buckets function
2008-11-25 18:14:52 +00:00
Tim Almdal 38a260b1d7 Rename get_absolute_url to abs_current 2008-11-25 16:50:29 +00:00
Tim Almdal 102f0f566b Normalize atom url generation 2008-11-25 15:54:45 +00:00
Bharat Mediratta 565f1a260c The scaffolding can now add and delete users and groups. Yippee! 2008-11-25 09:39:45 +00:00
Bharat Mediratta 9bdf825a94 Add a "Access" tab to the scaffolding and list users and groups.
Refactor welcome.php a little bit to make index() more readable.
2008-11-25 09:15:45 +00:00
Bharat Mediratta 229e531ab9 Change url() to use url::file() since it's more concise. 2008-11-25 04:41:14 +00:00
Bharat Mediratta 8b84b188bf Remove module() since it's now unused. We can add it back if we decide that we want it again. 2008-11-25 04:40:07 +00:00
Bharat Mediratta b22494a4ea Move the in-place-edit JS into the page_footer callback and out of
Theme.php.
2008-11-25 04:37:21 +00:00
Bharat Mediratta fe602433a8 tag::add_tag() -> tag::add 2008-11-25 04:36:31 +00:00
Bharat Mediratta 6935cfef40 Add gClearFix to the annotated theme elements, which makes the box surround its contents better (thanks thumb!) 2008-11-25 02:27:00 +00:00
Bharat Mediratta dcf3693b3e Add theme debugging. Activate it in the [info] tab in the
scaffolding, then browse around your Gallery3 to see where you can add
visible elements via modules.
2008-11-25 02:17:53 +00:00
Bharat Mediratta 85bdb606bf Escape CDATA blocks to avoid JS errors 2008-11-25 02:16:00 +00:00
Bharat Mediratta 8e6eff096b Don't add in-place-edit CSS unless there's a logged-in user. 2008-11-25 01:39:20 +00:00
Tim Almdal f81a9879be Moved the creation of tags into the tag helper library. Added a count field to the tags table. Bharat, I know you said not to worry about caching, but I want to explore what are some of the issues with keeping track of the counts as we go. (i.e. is it a pain in the a__) 2008-11-24 23:18:32 +00:00
Bharat Mediratta 983a893e86 Show a link to the item with the most tags. 2008-11-24 08:57:04 +00:00
Bharat Mediratta 226dc45203 Fix a typo in _show() that broke proper redirection 2008-11-24 08:54:03 +00:00
Bharat Mediratta b60e3e13a4 Show the tag count, too.
Try using array_rand to simplify tag creation logic.  Is it better?  Maybe.
2008-11-24 08:27:52 +00:00
Bharat Mediratta b79ce414de Detect browsers that prefer XHTML (Chrome!) and normalize it to HTML
so that we don't ship XML down to Chrome.
2008-11-24 07:50:20 +00:00
Tim Almdal dd200ce5ff Don't bother trying to check if the class file exists, just use method_exists, which will use the php auto loader to find the class. 2008-11-24 06:02:38 +00:00
Tim Almdal 8b52d9cde4 Revert the site_title change 2008-11-24 05:58:38 +00:00
Tim Almdal d7288d33e6 Remove the has_many_and_belongs_to_many relations from the item model 2008-11-24 05:55:29 +00:00
Tim Almdal 39f00707ac Add the creation of tags to the scaffolding code 2008-11-24 05:03:52 +00:00
Bharat Mediratta 02486f2401 Show the # of comments 2008-11-23 20:31:43 +00:00
Bharat Mediratta 3728136fce Escape Javascript to avoid validation errors. 2008-11-23 20:15:47 +00:00
Tim Almdal ab20406ef2 Tag module database definitions 2008-11-23 18:00:44 +00:00
Tim Almdal 7491e3c44a Add a site-config parameter to the config.php file. Created a 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-23 16:51:06 +00:00
Tim Almdal bdbb115296 Remove extra quotes around variable that already contained a string value 2008-11-23 08:38:24 +00:00
Bharat Mediratta 51ada4c2e2 Move search out into its own module and have it display its link at
the header_bottom() insertion point.
2008-11-23 08:08:12 +00:00
Bharat Mediratta f39cf6ed2f Add a button to install all plugins at once, now that we have so many.
Improve the style a bit, sort the plugins, put core first and make it
stand out so that you don't accidentally uninstall it.
2008-11-23 07:46:50 +00:00
Bharat Mediratta 1b76def26f Create thumbnail insertion points (top/bottom/info) and move
the generic item info into the info module.
2008-11-22 21:59:41 +00:00
Bharat Mediratta 35cfbfdef4 Pass extra args on to the block function.
Avoid excess string concatenation (not benchmarked).
2008-11-22 21:50:39 +00:00
Bharat Mediratta c6f0cc036d Move all block callbacks from View::block_type() to
$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-22 21:46:34 +00:00
Jozef Selesi 6028447993 An Atom library prototype. Its purpose is to explore the cost of us supporting Atom as the default input and output format of RESTful controllers. Only the constructs necessary for representing comment feeds and entries have been implemented. Its output are valid Atom 1.0 documents. The test contains examples of how to make feeds and entries. 2008-11-22 18:22:53 +00:00
Tim Almdal a347ed5c10 Correct case on helper class names. By convention, helper class names are lower case:
http://docs.kohanaphp.com/general/helpers

Remove block_helper file as the abstract class os no longer required.
2008-11-22 06:01:08 +00:00
Tim Almdal 8eadddfa87 Convert gmaps, info, and tag modules to the new block module 2008-11-22 05:51:15 +00:00
Jozef Selesi bb53a0b99f * Added test for rest::request_method().
* Implemented delete in comment.
2008-11-22 01:31:15 +00:00
Tim Almdal 01c8cdc8dd Convert the carousel module to provide its block through the new api 2008-11-21 23:55:29 +00:00
Tim Almdal 60191f1d2c Be consistent in naming the album_top block 2008-11-21 23:36:41 +00:00
Jozef Selesi 88f799be6f Fixed a bug in the REST controller dispatcher and added a test case that excercises it. 2008-11-21 21:07:36 +00:00
Tim Almdal 6ec266faa6 2nd attempt at inserting html by modules. 2008-11-21 20:13:28 +00:00
Tim Almdal 992cf22c79 Revert module block approach 2008-11-21 07:06:11 +00:00
Tim Almdal b78cee6395 A look at away to allow modules to define html head contents (links and js) and also allow modules to contribute blocks to the layout. 2008-11-20 17:32:58 +00:00
Bharat Mediratta e2b040c6ae Add a missing slash in the HTTP return code 2008-11-20 06:49:43 +00:00