Commit Graph

935 Commits

Author SHA1 Message Date
shadlaws
a1b5cf2e8d #2051 - Revise how Gallery_View returns combined JS and CSS.
Changed Gallery_View's JS and CSS combining to:
- have get_combined() combine all groups if called without arguments.
- ensure the "core" group is combined first.
- always put links where get_combined() is called, even if combining is disabled (otherwise the order isn't preserved).
- add key as cache buster when combining is disabled.
- make "LOOKING FOR YOUR CSS/JAVASCRIPT..." comments in get_combined(), not in the theme itself.
Also, revised xss_data.txt golden file (line number changes only).
2013-03-12 15:00:59 +01:00
Bharat Mediratta
53c1ae7dca Merge pull request #204 from jozefs/issue1838
#1838 - thumb_proportion should have a minimum size.
2013-03-11 16:38:53 -07:00
shadlaws
2e94edab53 #2053 - Change all .bind() to .on() for jQuery future-proofing.
- on/off are preferred to bind/unbind, live/die, and delegate/undelegate in jQuery 1.7+
- they're likely on the road toward deprecation, so let's replace them now.
2013-03-11 17:16:20 +01:00
Jozef Selesi
3c47deb9ef Themes can choose child thumbnail when asking for proportion.
This helps themes better calculate an item's container size, for cases
when the first item significantly differs in size from the rest.

Trac-Ticket: #1838
2013-03-11 15:59:00 +01:00
Jozef Selesi
bae14a76e5 Themes can set minimum thumbnail size when calculating proportions.
This prevents broken item rendering when thumbnails are smaller than the
theme design allows.

Trac-Ticket: #1838
2013-03-11 15:54:20 +01:00
shadlaws
18f38f0dff #2046 - Change Gallery over to using MediaElementJS as its movie player. 2013-03-09 12:51:45 +01:00
shadlaws
a517d9a33a Follow-on to #2033 - Change variables and js script loading for Flash Flowplayer.
- changed movie_img event variable names to have "flash" in them.
- moved flowplayer.js loading from page.html.php to movieplayer-flash.
- removed conditional loading for small, photo-specific JS files in page.html.php
to keep combined JS consistent between page types (better for caching).
2013-03-04 23:44:50 +01:00
shadlaws
384bc7afc8 #2033 - Add Flowplayer 5 to play HTML5 videos.
- add Flowplayer 5 to lib/flowplayer-html5
- move existing Flash Flowplayer to lib/flowplayer-flash
- update page.html.php and movieplayer.html.php

--HG--
rename : lib/flowplayer.controls.swf => lib/flowplayer-flash/flowplayer.controls.swf
rename : lib/flowplayer.js => lib/flowplayer-flash/flowplayer.js
rename : lib/flowplayer.pseudostreaming-byterange.swf => lib/flowplayer-flash/flowplayer.pseudostreaming-byterange.swf
rename : lib/flowplayer.pseudostreaming.swf => lib/flowplayer-flash/flowplayer.pseudostreaming.swf
rename : lib/flowplayer.swf => lib/flowplayer-flash/flowplayer.swf
2013-03-02 23:56:13 +01:00
Bharat Mediratta
d213ef3d3f Merge pull request #175 from shadlaws/fix_1639
#1639 - Make dialog "Cancel" links into buttons like "Submit"
2013-03-02 14:08:19 -08:00
shadlaws
73139982c7 #2032 - Fix short form submit/cancel button formatting.
- fixed the height of the submit buttons to match the input box
- changed the cancel links into cancel buttons
- added the hover effect to the buttons when used in in_place_edit (e.g. admin/tags)
2013-03-02 23:00:02 +01:00
shadlaws
b83abf728f #1639 - Make dialog "Cancel" links into buttons like "Submit"
- modified gallery.dialog.js: made cancel a <button>, added same classes as submit
- modified screen.css to size/position the cancel buttons correctly
2013-03-02 12:28:49 +01:00
Bharat Mediratta
8166f6d755 Merge pull request #173 from shadlaws/fix_2024
#2024 - In Wind thumb view, hide movie names just like photo names.
2013-02-28 12:13:36 -08:00
shadlaws
83d0b5c82d #2024 - In Wind thumb view, hide movie names just like photo names. 2013-02-28 17:32:48 +01:00
shadlaws
ef2ca6edb5 #2018 follow-on and #2023 - Fixed issues with thumb hover effects.
- cleaned up resize after hover: more efficient, totally browser-compatible (IE7-10, FF, Chrome tested!).
- cleaned up resize on hover: more efficient, fixed bug with neighbors that are bigger but only by a little.
- fixed bugs when moving off item with expanded context menu and then quickly back: oversized hover, flicker.
- cleaned up formatting, removed unneeded code, and added comments.
2013-02-28 17:10:48 +01:00
shadlaws
6fbfbaa458 Update Themeroller v1.10.0 -> v1.10.1 (in sync with gallery3-vendor) 2013-02-27 16:14:03 +01:00
shadlaws
62335da791 Follow-on from autocomplete updates.
(9345dde83e, d632ef3e50)
- gallery module: added loading-small.gif (so all themes have it by default)
- gallery module: added css for .ui-autocomplete-loading (copied from .g-loading-small in wind,
but without !important so other themes can override it)
- gallery module: updated upgrader.html.php to use new image (removes theme dependence)
- wind theme: removed outdated css for .ac_loading (not used in v3.0.5, either)
- server_add module: removed multiple argument from autocomplete (doesn't work well with it)
2013-02-26 13:07:00 +01:00
shadlaws
09fbe4c344 #2018 - Make ui.init.js thumbnail hover effect more robust.
- changed thumbnail hover effect to store its original height on mouseenter, then return to it on mouseleave.
- removed previous routine which depended on the height of its siblings and was incompatible with some IE versions.
2013-02-25 17:13:10 +01:00
shadlaws
4bf41377b8 Moved autocomplete CSS to gallery.css to ensure it works for all themes (including admin_wind). 2013-02-18 18:29:31 +01:00
shadlaws
4dd7b708b2 Dialog sizing, titles, and z-index. This should ensure the small <500px dialogs
are correct, all titles are correctly sized, and the dialog boxes go to
the top for older themes, too.
2013-02-15 19:31:20 +01:00
Bharat Mediratta
16b8b8d16b Merge pull request #141 from shadlaws/jquery_19_dialog_sizing
Dialog centering, sizing, etc. seem to be fixed!
2013-02-14 11:45:43 -08:00
Bharat Mediratta
7ef7759947 Merge pull request #142 from shadlaws/jquery_19_themeroller
Updated Themeroller for wind and admin_wind.
2013-02-14 11:45:06 -08:00
shadlaws
f580488fb5 Fix Cancel link positioning, fix watermark error reply (seems to have already been broken in v3.0.4...) 2013-02-13 09:45:12 +01:00
shadlaws
761420bb06 Updated Themeroller for wind and admin_wind. 2013-02-13 08:36:15 +01:00
shadlaws
6395c518f0 Changing 2 library names back to (less-standardized) original names.
json2.js -> json2-min.js ; jquery.localScroll.js -> jquery.localscroll.js
While this is irrelevant for Wind, changing the filenames back to what we used
to have ensures that we don't break contributed themes.

--HG--
rename : lib/jquery.localScroll.js => lib/jquery.localscroll.js
2013-02-12 23:14:46 +01:00
shadlaws
c8a084d5f2 Updated json.js library
- json.js  2012/10/08
- used non-minified to be consistent with other libraries
- updated filename in page.html.php call
2013-02-12 16:05:25 +01:00
shadlaws
78a044c7a3 Changed case of call to jquery.localScroll.js to match new standard. 2013-02-12 15:43:59 +01:00
Bharat Mediratta
8635de2323 Force dialogs to the top of the page. 2013-02-03 23:10:57 -05:00
Bharat Mediratta
0494244e80 Super first pass:
- jQuery 1.90
- jQuery UI 1.10
- Superfish 1.5.1 (minus all plugins)
- jQuery Form 3.26.0-2013.01.28

Deleted all other jQuery plugins for now.

- Reworked autocomplete to use the latest jQuery code.
- Deleted references to $.browser.msie, no longer supported
- Basic CSS support for autocomplete - lots more work needed there
2013-02-03 18:55:23 -05:00
shadlaws
031dd3bd6f #1960 - Add unit test to look for extra spaces at end of line
- Added no_extra_spaces_at_end_of_line_test to File_Structure_Test.
- Updated Gallery_Filters to exclude testing code that isn't ours.
- Removed existing extra spaces.  New test now passes.
2013-01-24 12:03:05 +01:00
Bharat Mediratta
49f6ce2d94 gallery.menalto.com -> galleryproject.org
codex.gallery2.org -> codex.galleryproject.org

Fixes #1957.
2013-01-22 18:39:24 -05:00
Bharat Mediratta
50f5286ffb Elevate X-Frame-Options from all admin and user pages to all PHP
responses.  Fixes #1922.
2012-11-06 11:51:44 -08:00
Bharat Mediratta
7a53cebd29 Don't show the sidebar on error pages - it just increases the chances
that we'll compound the error.  Instead, focus on the error or the
login form.  Fixes #1921.
2012-11-01 09:51:35 -07:00
Bharat Mediratta
68437993b9 Differentiate between photos and movies in album children. Fixes #1861. 2012-05-19 10:54:02 -07:00
Bharat Mediratta
b839be36bf Add "X-Frame-Options: SAMEORIGIN" to all pages. Fixes #1850. 2012-05-05 21:24:25 -07:00
Bharat Mediratta
581d9a58db Clean up title handling code in organize and wind theme for consistency.
Fixes #1847.
2012-05-05 19:38:31 -07:00
Bharat Mediratta
1189ced2ce Revert "Fix a bug introduced in dc21cf36b6 where"
It doesn't work for search because there are no children.  And this
just feels clunky to me - we should arrange for the root album to have
the right dimensions of thumbnail instead.

This reverts commit 4cb49b9152.
2011-11-03 21:11:15 -07:00
Bharat Mediratta
4cb49b9152 Fix a bug introduced in dc21cf36b6 where
we're basing the thumb proportions on the album's thumbnail, but this
will be messed up in the case of the root album which may not have a
properly update thumbnail, so its proportions may not be
representative of the album's contents.  So instead, base the thumb
proportions on the first child of the album.
2011-11-03 20:05:53 -07:00
Tim Almdal
91bdcfe1c5 Close the breadcrumb list 2011-10-02 15:34:37 -07:00
Bharat Mediratta
084c2717c0 Merge branch 'master' into bharat_dev 2011-08-27 20:56:03 -07:00
Tim Almdal
dd0b622ae9 Initial commit of a patch for Ticket #1764. as discussed here: https://github.com/gallery/gallery3/pull/58/files#r72949.
Create a Breadcrumb library which has two static methods for_item (which takes a an item and builds the entire
breadcrumb for the item) or build (which takes a variable number of Breadcrumb elements and creates a breadcrumb
based on the specified elements).

Used tag->url() to build the tag album url. Escaped the query string for the search. Tightened up the breadcrumb code
 in page.html.php.

When adding the show query parameter, we can't blindly concatenate using the ? separator.  We have to check that we
use a & if a query parameter already exists.
2011-08-07 13:41:47 -07:00
mamouneyya
1889e6d3cb Yet another RTL review for the admin theme 2011-06-23 01:35:50 +03:00
mamouneyya
e2cdd76902 RTLing the comment admin section tabs (the right one) 2011-06-23 01:05:39 +03:00
mamouneyya
017251c33a revert 4650347a67, it sould be applied to the admin theme 2011-06-23 01:04:24 +03:00
mamouneyya
76551d7bfe Add RTL paginator for Admin Wind (copied from Wind CSS) 2011-06-23 00:27:50 +03:00
mamouneyya
4650347a67 RTLing the tabs of admin comment section 2011-06-23 00:10:31 +03:00
Chad Kieffer
8549ba30ca Stop IE 9 album grid craziness. Thanks floridave. Fixes #1430. 2011-05-16 22:37:09 -06:00
mamouneyya
4ca2c5fbad remove .rtl class from properties as they're now separated in a different file that is being called after screen.css. Also reset the left margin for list elements 2011-04-28 19:46:01 +03:00
Chad Kieffer
2e6967e8a0 Add right padding to list elements in the new g-text class. 2011-04-26 22:44:21 -06:00
Chad Kieffer
4fa46d6a04 Move wind and admin_wind RTL style definitions out to their own file. Call that file when an RTL language is selected. 2011-04-26 22:38:53 -06:00
Bharat Mediratta
77875e2fab Include jquery.scrollTo.js. Fixes #1720. 2011-04-26 21:01:58 -07:00