Commit Graph

585 Commits

Author SHA1 Message Date
Tim Almdal
1f014aae6c Allow a theme to override the page refresh mechanism. Create a new
javascript lib (gallery.reload.js) which defines the functions
gallery_reload() and gallery_location(new_location).  They just
do a window.location.reload() and window.location = new_location.

This change breaks the assumption that all themes will handle page reloads
the same and allows the theme to customize the page refresh.
2009-07-27 12:39:12 -07:00
Chad Kieffer
a7af9bb456 Missed committing the gBanner addition to the view template. 2009-07-26 16:02:53 -06:00
Chad Kieffer
26117accb6 Update to how gSiteMenu is positioned. Required addition of a new container, gBanner. This will ensure proper positioning across most browsers and simplifies gBreadcrumbs styles. Removed inaffective IE opacity style. 2009-07-26 10:54:21 -06:00
Chad Kieffer
eca46d76a7 Merge branch 'master' of git@github.com:gallery/gallery3 2009-07-25 09:25:31 -06:00
Bharat Mediratta
6246a91797 Add in more images referenced by CSS that I forgot to copy over from the default theme when I combined the CSS 2009-07-23 17:33:57 -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
Chad Kieffer
63511316be Merge branch 'master' of git@github.com:gallery/gallery3 2009-07-21 19:40:48 -06:00
Bharat Mediratta
0546f0df13 Fix the bug that the quick menu fires for the wrong photo. This stems
from using a single gQuickPane <div> that we move around.  A race
condition happens when you mouse over two thumbnails quickly.
Whichever server response loses the race gets displayed, and sometimes
it's the one that you're no longer hovering over.

Fix it by changing gQuickPane to be a class and creating a <div> per
thumbnail.

Fixes ticket #290.
2009-07-21 13:39:40 -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
Chad Kieffer
329b6ce28c Fire vAlign after gQuick ajax load is complete. 2009-07-20 23:06:08 -06:00
Chad Kieffer
ae22abcdf6 Fire .vAlign() when gItem's changed, ex. rotated. Fix for #304. 2009-07-19 16:45:14 -06:00
Bharat Mediratta
e2a9a1d284 Add quotes around all values that contain spaces in them, and add a
test to make sure that we continue to do so.

This makes sure that we don't have problems with 5.3 which treats the
literal "on" as a boolean.
2009-07-13 10:36:55 -07:00
Chad Kieffer
50cd41655a Minor style tweaks. 2009-07-12 22:41:57 -06:00
Bharat Mediratta
895fbfd95b Get the thumbnail menu working.
1) Stop changing the menu classes in JS, instead allow us to specify
it in the Menu class itself and then set it to be gThumbMenu in Theme_View

2) Move the gThumbMenu init code to the bottom of the $(document).ready() block;
something in there was interfering with it.
2009-07-11 17:59:55 -07:00
Chad Kieffer
413174e89e Second attempt at showing and hiding the thumb menu. Renamed gThumbMenu to gPhotoMenu for use on both album and photo pages, eventually. 2009-07-12 16:07:16 -06:00
Chad Kieffer
58d0a5013d First attempt at animating gThumbMenu. Doesn't work. 2009-07-12 11:43:41 -06:00
Bharat Mediratta
cbd80b5ff9 Get rid of the form from server_add, we're not using it.
Turn the cancel link into a themed close button which triggers a page
reload.

Add some padding to the left of the tree.
2009-07-11 07:37:49 -07:00
Chad Kieffer
872b5eed46 Merge branch 'master' of git@github.com:gallery/gallery3 2009-07-11 23:17:30 -06:00
Chad Kieffer
8bfcf09b4c Styled thumb menu, still needs script to set up interraction. 2009-07-11 23:14:26 -06:00
Bharat Mediratta
0098ef05c3 Merge branch 'master' of git@github.com:/gallery/gallery3 2009-07-11 05:07:41 -07:00
Bharat Mediratta
954ab5a505 Further simplify server_add (and bump it to version 3).
Now we don't have checkboxes, but instead we restrict you to selecting
directories and albums from only one level in the hierarchy.  This
makes it easier for us to make sure that we properly create the
hierarchy that you want and avoid confusion about what's going to wind
up where.

Modify Server_Add_File_Model to have a parent_id and item_id and then
modify them as we go so that we can build up a tree structure there
*before* we create any items.  This makes it much easier to figure out
where a new item is going to go and get rid of a bunch of probably
buggy code in the main task.
2009-07-11 05:03:36 -07:00
Chad Kieffer
e0e450d90f Position gItem and gPhoto relative, then position quick and thumb menus as absolute within them. Moved css from quick.js to quick.css. 2009-07-11 00:40:57 -06:00
Tim Almdal
04f02b49c5 Add task logging functionality. When a task runs, it creates a log that is
stored in the persistant cache for 30 days.  On the admin_maintenance page
there is a new link for completed tasks "browse log".  Clicking this will
open a dialog box that has the the contents of the log displayed.

The user can then view the log and close the dialog, or press the save button
to download the log to their local machine.
2009-07-05 17:38:49 -07:00
Tim Almdal
85de208879 Lets try the BBCode conversion again... go with basic tags even if some are
deprecated.
2009-07-04 20:30:13 -07:00
Tim Almdal
50462edd9c Change the BBCode Transformation to use the <span class=""> where possible 2009-07-04 17:14:21 -07:00
Tim Almdal
7a9a4b9e8b Found another place that p:purify was required.
Generalize the dynamic.html so it doesn't require a tag element
2009-07-04 09:00:11 -07:00
Tim Almdal
d6648c0aff Fix for ticket #477. Use nl2br method when rendering comment::text and
item::description.  In addition add p::clean or p::purify to places that
xss cleaning had missed (i.e. rss feeds)
2009-07-04 08:17:12 -07:00
Tim Almdal
54ffea2419 Split the clean method into two clean and purify. clean is a light weight
approach using html::specialchars and purify uses HTMLPurifier to intelligently
cleanse the output fields. Use purifier for text and title fields where it is
likely that a user would enter html to format their data.
2009-07-03 21:44:10 -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
Chad Kieffer
0add4ced22 Add a bit more contrast to superfish sub-menus. 2009-07-01 00:35:33 -06: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
Tim Almdal
8ed6d1183b Fix for #319.
Created a new view "movieplayer.html.php", which is rendered by
Item_Model::movie_img().  Changed movie.html.php to use movie_img to render
the movie player link.
2009-06-30 08:21:00 -07: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
Andy Staudacher
0eb9a2aacd Fix for ticket 86 - Make Cancel button in doalogs localizable. 2009-06-29 20:55:23 -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
Bharat Mediratta
8865d78483 Fix permissions for files to remove executable bit. 2009-06-29 19:18:10 -07:00
Tim Almdal
6ec293dfe7 *Note* work in progress.
Implement the combined css functionality.  Local url references and replace with absolute urls instead of relative.
2009-06-29 08:24:42 -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
Chad Kieffer
bf79d4372c Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-28 17:57:23 -06:00
Chad Kieffer
2b804ebdce Convert info module's block to use a list instead of a table. Addresses request in ticket #441. 2009-06-28 17:53:20 -06:00
Tim Almdal
4707a97b82 Merge branch 'master' of git@github.com:gallery/gallery3 2009-06-27 16:57:38 -07:00