Commit Graph

71 Commits

Author SHA1 Message Date
Chad Kieffer
b4bca043ac Added method to determine proportion of current thumb_size to the default, 150. Use this in the the default theme, or any other, to reduce the size of CSS widths and heights in albums, including .gItem. 2009-04-22 05:31:29 +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
Tim Almdal
85f2c6b666 Move the setting of the page title into the controller that is
creating the page.  Provide for a default page title if none is
set. This allows less changes to page.html.php as different modules
want to change the page title.
2009-03-12 16:06:13 +00:00
Tim Almdal
e58b955d4a Bag the header("Location:", ...);exit() and replace with
url:site(url::abs_file(...))
Create a login_page.html to be used when there is no guest access to
the root album. It doesn't have a sidebar nor breadcrumb.
2009-03-11 21:07:21 +00:00
Tim Almdal
a521d9177f Force a login if everybody does not have access to the root
item. ticket #118.
2009-03-11 13:58:38 +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
Bharat Mediratta
053fa63fa1 Superfish is now in gallery3/trunk/lib/superfish 2009-02-08 23:51:59 +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
Bharat Mediratta
b1effc1d35 Drop request for jquery.listen.js, we don't use it 2009-02-04 23:37:20 +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
e82afcebfa Site message placement and style adjustments. 2009-01-10 19:33:01 +00:00
Chad Kieffer
7569b39802 Updated to jquery ui 1.6rc4. Lots of changes, improved widget theme css and icons. No need to fix position dialogs anymore. Included the following in the combined file + i18n files. Requires push back up to vendor branch.
UI Core
Effects Core
Draggable - Req'd by Sortable
Resizeable - Image/watermark/avatar scaling
Sortable - Rearrange
Dialog - All over :)
Datepicker - Edit albums/items
Progressbar
Highlight - Message display, comment addition
Transfer - Adding tags from available list to field


Not fully integrated into the default theme yet.
2009-01-10 06:25:44 +00:00
Andy Staudacher
a631fe29f3 i18n refactoring: Rename all _() (reserved by gettext) calls to t().
- And refactor printf to our string interpolation / pluralization syntax
- Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-08 17:13:06 +00:00
Chad Kieffer
bdff96bd54 Added a jump to comments button with a scroll to effect. 2009-01-03 19:09:32 +00:00
Chad Kieffer
7db1758e93 More admin menu cleanup to reduce it's height. Removed redundant admin theme images, these are included in the default theme. Added a favicon. 2009-01-02 22:06:12 +00:00
Bharat Mediratta
cd1d023754 Change the preamble for views in two ways:
1) drop unnecessary semicolon
2) start with <?php for extra security in the case that the server itself doesn't
   have short_tags enabled (the app won't work, but we need to make sure that we're
   still secure)
2009-01-01 00:23:29 +00:00
Bharat Mediratta
11d2788af8 Refactor common dialog JS code out into lib/gallery.dialog.js 2009-01-01 00:06:52 +00:00
Chad Kieffer
37f9cc2872 Missed these in r19485. 2008-12-30 00:52:03 +00:00
Chad Kieffer
62cd05fb16 Apply button bg image to Superfish menu items. 2008-12-29 06:12:00 +00:00
Bharat Mediratta
74bfa24b8f Move jquery.listen.js out to lib 2008-12-25 08:27:57 +00:00
Bharat Mediratta
5ca952fe61 jquery-ui.packed.js --> jquery-ui.js 2008-12-25 08:11:46 +00:00
Bharat Mediratta
bdc0876fa8 Add messaging system for reporting actions back to the user. Make
module install/uninstall work and tie it into the messaging system.
2008-12-22 06:50:20 +00:00
Bharat Mediratta
e73bd90285 Convert tabs to spaces 2008-12-15 08:35:46 +00:00
Chad Kieffer
cf47b3d45c Fix that rascal IE. Added conditional HTML comment to use fix-ie.css for IE7 and earlier. Fixed bg images in album/item view buttons, IE 6/7 don't appear to handle background-position: center center :( 2008-12-15 07:08:13 +00:00
Tim Almdal
20d5f45218 Fix the reference to jquery-ui.packed.js 2008-12-15 06:37:56 +00:00
Tim Almdal
bc40b48729 revert the creation of a global gallery3 javascript variable 2008-12-15 05:08:22 +00:00
Tim Almdal
30c6ba48ea Forgot the quotes 2008-12-15 04:55:09 +00:00
Tim Almdal
e665a21038 Set up a global gallery3 javascript variable where we can put things that need to be passed into the javascript 2008-12-15 04:53:16 +00:00
Chad Kieffer
119344d9db Switched login display from display in the header to a dialog. Validation errors don't display on first failed attempt, will fix later. Moved jquery js, images, css out to respective folders. 2008-12-15 02:45:50 +00:00
Bharat Mediratta
2842a1a8be Argh, fix a bad rename. 2008-12-15 01:52:04 +00:00
Bharat Mediratta
1127257f63 Rename default_admin to admin_default. 2008-12-15 01:50:52 +00:00
Chad Kieffer
c322f1fe4c Removed call to jquery.dimension 2008-12-14 00:15:23 +00:00
Tim Almdal
5ebd0854be Combine all the ui.jquery files into a single packed file at version (1.6rc2) copied from the the corresponding vendor branch.
Move into the application/lib directory and remove from the theme.
Remove the ui.jquery javascript from the rearrange module and use the common library.
2008-12-09 17:02:06 +00:00
Bharat Mediratta
930fb1f697 Remove tabs, fix indentation. 2008-12-09 08:29:12 +00:00
Chad Kieffer
2fbd4c09e6 Checked in jQuery superfish menu plugin, applied to item options menu. Updated album/item view icons. 2008-12-09 06:40:20 +00:00
Chad Kieffer
36cda412f4 First go around at reusable modal dialogs. Moved jQuery UI CSS into screen.css, moved default theme JS to js folder. Named jQuery UI files to match the file names as they distribute them. Removed accordion, it's not used yet. 2008-12-07 04:49:26 +00:00
Chad Kieffer
bb8fa3c417 Dynamically reset the dimensions of resized photos to fit if they're too wide. 2008-11-28 22:02:46 +00:00
Tim Almdal
27e64f1dc6 Move javascript from default theme to appropriate modules 2008-11-27 06:14:32 +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
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
Tim Almdal
8b52d9cde4 Revert the site_title change 2008-11-24 05:58:38 +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
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
Tim Almdal
4f5e3ad6d5 Use the new block mechanism to insert user related content into the html pages 2008-11-21 20:46:25 +00:00
Tim Almdal
6ec266faa6 2nd attempt at inserting html by modules. 2008-11-21 20:13:28 +00:00
Chad Kieffer
1b834319f4 Restored most heading styles, still need to restore table and list styles. Removed unused CSS. CSS format updates. Applied jQuery tab styles to gSiteMenu. Removed gBlockHeader, all we need is a good old h3 element for a heading. 2008-11-21 08:35:53 +00:00
Tim Almdal
992cf22c79 Revert module block approach 2008-11-21 07:06:11 +00:00
Chad Kieffer
e60ddd0bd8 Add jQuery UI, tabs, and accordion JS and CSS to build Adam Torres' hi-fi prototype. Dropped YUI Base CSS in favor of defining our own base styles in screen.css, headings will and other items may not look right until I do. Need to figure out how jQuery ThemeRoller CSS should be integrated, if at all. 2008-11-21 01:56:33 +00:00