Bharat Mediratta
bc210a708e
Set resize to 640x480 for now to avoid breaking the default theme layout
2008-11-27 22:08:00 +00:00
Tim Almdal
6bc9c5868b
Create a form_helper class containing the function Draw_Form so we don't have to always check to see if the DrawForm method is already defined in pages that could have multiple forms.
2008-11-27 16:33:41 +00:00
Tim Almdal
bac4ff2046
1) Create a Theme_View class that combines the functionality of the Theme 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-27 16:19:07 +00:00
Bharat Mediratta
723eb2f611
Move the ADMIN global nav option into the core module and only show it if we're logged in as an admin user
2008-11-27 11:43:48 +00:00
Bharat Mediratta
34a286ae90
Add navigation_top() and navigation_bottom() insertion points
...
Move "My Gallery" navigation tab into the user module and only show it
if you're logged in
2008-11-27 11:33:45 +00:00
Bharat Mediratta
d909fc1070
Make tags look a little better.
2008-11-27 10:25:50 +00:00
Bharat Mediratta
c95c17b133
Centralize logging around installing/uninstalling modules.
2008-11-27 09:45:26 +00:00
Bharat Mediratta
7e5f59bcb7
Add children_count to album/photo controllers for consistency with tags
2008-11-27 05:59:37 +00:00
Bharat Mediratta
8e33f5d7b9
Add page_type() function
2008-11-27 04:58:38 +00:00
Bharat Mediratta
e3fa1c8acd
Link to the albums in the album tree.
2008-11-26 23:10:15 +00:00
Bharat Mediratta
691faa0e83
Draw an album tree in the access -> permissions tab.
2008-11-26 23:07:37 +00:00
Bharat Mediratta
974f9f7788
Add a new "tag" page type.
...
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-26 21:50:45 +00:00
Bharat Mediratta
496007d2ae
NULL -> null
2008-11-26 21:15:37 +00:00
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