Commit Graph

83 Commits

Author SHA1 Message Date
Bharat Mediratta
cbba45fffc Create the concept of an "ajax link" and use it for thumbnail rotation
and album covers in the context menu.

Notes:
- This requires context_menu() to have a CSS selector that refers to the
  <img> that we're operating on, otherwise we don't know how to find the
  thumbnail, etc.
- Create Menu_Element_Ajax_Link which has an ajax_handler attribute
  that contains a snippet of JS that we're going to run when the ajax
  call returns.
- Add $.gallery_replace_image in gallery.common.js
- Add lib/gallery.ajax.js which can be used to ajaxify any link, and have
  ui.init.js in the themes call that on all .gAjaxLink elements.
2009-08-10 23:07:50 -07:00
Bharat Mediratta
dbeadc1407 Use the Kohana cascading filesystem to locate resources loaded by the
theme.  Because the theme comes first, this means that themes can
override any module resources, at the cost that we no longer have
namespacing for JS and CSS files.

The only file getting used outside of this model is
themes/default/screen.css which is used in the admin theme.  I fixed
that by copying screen.css into admin_default and renaming its
screen.css to admin_screen.css.  I also copied over all the images
that it was referencing.

Fixes tickets #48 and #539.

Theme API changes:
- theme_script(), theme_url() and theme_css() are no longer needed
- script(), url() and css() now refer to the first matching asset in
  the module load path, where gallery3/lib is at the end of the path
2009-07-22 14:27:57 -07:00
Bharat Mediratta
050c82cf80 Escape bare & symbols so that we use valid entities. Fixes ticket #577. 2009-07-21 11:09:23 -07:00
Bharat Mediratta
f79e26b919 Merge branch 'master' of git@github.com:gallery/gallery3 2009-07-01 01:08:17 -07:00
Bharat Mediratta
9beac1132e Fix a typo in the Doctype. Fixes ticket #497. 2009-07-01 01:08:00 -07:00
jhilden
b943b0f7c1 made the 'back to gallery' link in the admin a lighter grey
(and removed the commented out <img>)
2009-07-01 02:39:00 -04:00
jhilden
979d327595 change to the 'back to the Gallery' link from the admin. 2009-07-01 02:17:38 -04:00
jhilden
0b34ec4e8b UI enhancement: made the 'back to the Gallery' links a little bit easier to discover 2009-06-30 22:22:29 -04:00
Andy Staudacher
21f228b1ae Ticket 86 (addendum) - Guard against themes that don't define MSG_CANCEL and add the message to admin_default as
well.
2009-06-29 21:03:40 -07:00
Bharat Mediratta
937fd13552 Change XXX to @todo 2009-06-29 20:24:48 -07:00
Andy Staudacher
e3b4c6a577 Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-29 20:21:25 -07:00
Andy Staudacher
fe668abcb3 Fix for ticket 481 - Better plural handling for 2 messages with multiple %count variables. 2009-06-29 20:20:15 -07:00
Bharat Mediratta
f5f74e3638 Remove fix-ie.css scripts from the combined bundle, since we only want
to load them conditionally.
2009-06-29 20:12:27 -07:00
Tim Almdal
10b4eda6f0 Merge branch 'master' of git@github.com:gallery/gallery3
Conflicts:
	modules/gallery/libraries/Theme_View.php
	themes/admin_default/views/admin.html.php
2009-06-29 06:44:05 -07:00
Tim Almdal
42c82ef7f0 Temporary checkin to allow merge with trunk... don't integrate 2009-06-29 06:08:50 -07:00
Bharat Mediratta
6e8a8c53e6 Rename $theme->url() to $theme->theme_url() for consistency wiht
$theme->theme_script().
2009-06-28 19:49:48 -07:00
Bharat Mediratta
c4f991bb7d Clean up the combined javascript change and refactor out the
Gallery_View base class from Theme_View and Admin_View.

1) Move all the theme specific jquery stuff from gallery_theme::head()
and admin_head() into the theme files.  Use $theme->script() as
appropriate.

2) Get rid of the extra boolean on $theme->url() that we were using so
that we could call $theme->script($theme->url(...)) -- add
$theme->theme_script() instead (poorly named, but still clearer than
what we had before)

3) Fix the bug that combined scripts didn't work at all in the admin
theme.

4) Get rid of $theme->display() in favor of new View(...)
2009-06-28 19:45:11 -07:00
Tim Almdal
42a5bd20a5 1) Move the generation of script tags to gallery_theme::head and gallery_theme::admin_head. This allows us to potentially manage the scripts like we do in g2 (single file and compressed)
2) Change Theme_View::_call to always call the gallery_theme::$function first.
2009-06-26 07:51:29 -07:00
Tim Almdal
fd54a5010a Fix for ticket #328.
Basically copied the default/views/pager.html to admin_default/views/pager.html
and change the message to reflect the original comment message.
2009-06-16 21:41:44 -07:00
Bharat Mediratta
f7a720d2e8 Rename main_element_attributes() callback to body_attributes() to be
more intuitive for themers.
2009-06-08 23:17:28 -07:00
Andy Staudacher
b9ee6f7d18 Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-06 15:24:49 -07:00
Andy Staudacher
0e415dae9b Preliminary BiDi support (needs *a lot* of tweaking) 2009-06-06 15:24:14 -07:00
Bharat Mediratta
5835715e49 Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-06 11:39:11 -07:00
unostar
cd92b2ed85 Adding strings to localizer
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-07 02:37:40 +08:00
Bharat Mediratta
ab1fc6ad53 Make theme page headers match the menu dropdowns.
Internationalize the admin dashboard common title.
2009-06-05 19:47:11 -07:00
Bharat Mediratta
67f920d555 Add a csrf to the logout link. 2009-06-04 21:33:14 -07:00
Chad Kieffer
88e1f02c1a Split out re-used JavaScript for common functions (messages, valign), panel toggle, and forms to external files. 2009-05-26 03:59:35 +00:00
Bharat Mediratta
921f3a2eee Put csrf token into Admin_View and Theme_View by default, then use it
directly wherever possible instead of access::csrf_token().
2009-03-27 03:43:21 +00:00
Bharat Mediratta
2067314186 untabify 2009-03-25 01:34:04 +00:00
Tim Almdal
863e353911 rollback of r20469... see trac #161 2009-03-20 17:20:17 +00:00
Tim Almdal
48c022e8cb Rather than moving the themeroller and all of its associated files
into each theme.  I chose to create methods Theme_View::file($path)
and Admin_View::file($path).  These methods check for a theme override
file in the theme and return a link to it if it exists.  So to
override the themeroller files. just create a lib/themeroller in the
theme and the files will be picked up.
2009-03-20 14:59:55 +00:00
Chad Kieffer
3dbf9e1c82 Remove YUI grids hd and ft ids, we don't need and they're cluttering our HTML. 2009-03-19 16:01:41 +00:00
Andy Staudacher
e031957354 File structure style fixes 2009-02-24 05:54:19 +00:00
Bharat Mediratta
bcea2a6228 Hide the menu until we can superfish it so that we don't see the
unstyled list appear which causes the page layout to flicker.
2009-02-15 22:52:01 +00:00
Chad Kieffer
d487558369 Fixed gViewMenu button issues. Fixed major admin_default theme issues, content now clears the menu. Added IE-specific stylesheet to admin theme. 2009-02-12 04:25:43 +00:00
Chad Kieffer
b15e0c7529 Move close X back over to the right of the titlebar. 2009-02-09 00:28:15 +00:00
Bharat Mediratta
fd9a0b2a5d Superfish is now in gallery3/trunk/lib/superfish 2009-02-08 23:53:15 +00:00
Chad Kieffer
f7d226bd31 Move jQuery UI ThemeRoller css and images to lib. Should simplify future updates, keep default theme directories clean. 2009-02-08 19:17:19 +00:00
Chad Kieffer
ffa1fa45f6 Admin theme style cleanup. Merged separate selected, available, unavailable into a single set of reusable classes. Applied alternating row bg colors. Removed inline CSS from admin views. Moved user admin css into admin_default theme style sheet. 2009-01-25 06:55:24 +00:00
Bharat Mediratta
8ec0e8471f Drag and drop in the admin dashboard now saves the location.
* Make block_adder a real block
* Suppress the "close" link on block_adder
* Move the drag/drop JS into the core code out of the admin theme
2009-01-18 09:06:46 +00:00
Andy Staudacher
e4a9b19bf9 Changing t() placeholder syntax from {{replace_me}} to %replace_me. 2009-01-15 10:02:41 +00:00
Bharat Mediratta
bc421a615a Implement deleting dashboard blocks.
* Refactor blocks so that they have a separate id vs css_id.  This way
  we can have a unique identifier for each visual block.

* Store blocks with a random id as their unique identifier

* Add Admin_Dashboard::remove_block() and modify
  themes/admin_default/views/block.html.php to call it when you click the
  remove box.
2009-01-12 08:26:38 +00:00
Chad Kieffer
d880c0b7e2 If there's sidebar content, use yui-t5. If none, yui-t7. 2009-01-12 04:24:53 +00:00
Bharat Mediratta
11fb04cdde Only the admin dashboard has a sidebar now.
admin.html.php looks for $sidebar and renders the page appropriately
if one exists.  But only admin_dashboard has one currently.
2009-01-12 04:04:55 +00:00
Chad Kieffer
5fdcdc0e68 Applied jquery ui dialog titlebar to dashboard blocks to add a close button. It's not semantically "nice" but it works for now. 2009-01-12 03:49:19 +00:00
Bharat Mediratta
59202b943e Make the logos link back to the main album page for easy navigation. 2009-01-12 00:42:14 +00:00
Chad Kieffer
88246de0ff Add all the files jquery ui needs, including css for each widget. ui.all.css includes calls to the widget css we're currently using. Add new widget css here. 2009-01-12 00:22:55 +00:00
Chad Kieffer
15c25d85ec Switch the pager to use themeroller's icon sprites. I applied jquery ui css 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-10 21:50:35 +00:00
Chad Kieffer
e82afcebfa Site message placement and style adjustments. 2009-01-10 19:33:01 +00:00
Chad Kieffer
dd5c70fc39 Make the admin theme header fully visible at 1024px wide. Revert to larger Gallery logo. 2009-01-10 18:34:25 +00:00