Changeset 26671


Ignore:
Timestamp:
Jan 12, 2014, 10:03:35 PM (10 years ago)
Author:
flop25
Message:

updated for 2.5 & 2.6

Location:
extensions/stripped-galleria
Files:
1 added
13 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped-galleria/admin/upgrade.inc.php

    r12975 r26671  
    77if (!isset($conf['stripped-galleria']))
    88{
    9     $config = array(
    10         'clicknext'                                             => false,
    11         'transition'                                    => 'slide'
    12         'lightbox'                                              => 'none'
    13       );
    14      
    15     $query = "
     9  $config = array(
     10'clicknext'                                             => false,
     11'transition'                                    => 'slide',
     12'lightbox'                                              => 'none'
     13    );
     14   
     15  $query = "
    1616INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
    1717VALUES ('stripped-galleria' , '".pwg_db_real_escape_string(serialize($config))."' , 'stripped-galleria theme parameters');";
    1818
    19     pwg_query($query);
    20 
     19  pwg_query($query);
     20  load_conf_from_db();
    2121}
    2222
  • extensions/stripped-galleria/galleria/plugins/history/galleria.history.js

    r12975 r26671  
    11/**
    2  * @preserve Galleria History Plugin 2011-08-01
    3  * http://galleria.aino.se
     2 * Galleria History Plugin 2012-04-04
     3 * http://galleria.io
    44 *
    5  * Copyright 2011, Aino
    6  * Licensed under the MIT license.
     5 * Licensed under the MIT license
     6 * https://raw.github.com/aino/galleria/master/LICENSE
    77 *
    88 */
     9
     10(function( $, window ) {
    911
    1012/*global jQuery, Galleria, window */
     
    1214Galleria.requires(1.25, 'The History Plugin requires Galleria version 1.2.5 or later.');
    1315
    14 (function( $, window ) {
     16Galleria.History = (function() {
    1517
    16     Galleria.History = (function() {
     18    var onloads = [],
    1719
    18         var onloads = [],
     20        init = false,
    1921
    20             init = false,
     22        loc = window.location,
    2123
    22             loc = window.location,
     24        doc = window.document,
    2325
    24             doc = window.document,
     26        ie = Galleria.IE,
    2527
    26             ie = Galleria.IE,
     28        support = 'onhashchange' in window && ( doc.mode === undefined || doc.mode > 7 ),
    2729
    28             support = 'onhashchange' in window && ( doc.mode === undefined || doc.mode > 7 ),
     30        iframe,
    2931
    30             iframe,
     32        get = function( winloc ) {
     33            if( iframe && !support && Galleria.IE ) {
     34                winloc = winloc || iframe.location;
     35            }  else {
     36                winloc = loc;
     37            }
     38            return parseInt( winloc.hash.substr(2), 10 );
     39        },
    3140
    32             get = function( winloc ) {
    33                 if( iframe && !support && Galleria.IE ) {
    34                     winloc = winloc || iframe.location;
    35                 }  else {
    36                     winloc = loc;
    37                 }
    38                 return parseInt( winloc.hash.substr(2), 10 );
    39             },
     41        saved = get( loc ),
    4042
    41             saved = get( loc ),
     43        callbacks = [],
    4244
    43             callbacks = [],
     45        onchange = function() {
     46            $.each( callbacks, function( i, fn ) {
     47                fn.call( window, get() );
     48            });
     49        },
    4450
    45             onchange = function() {
    46                 $.each( callbacks, function( i, fn ) {
    47                     fn.call( window, get() );
    48                 });
    49             },
     51        ready = function() {
     52            $.each( onloads, function(i, fn) {
     53                fn();
     54            });
    5055
    51             ready = function() {
    52                 $.each( onloads, function(i, fn) {
    53                     fn();
    54                 });
     56            init = true;
     57        },
    5558
    56                 init = true;
    57             },
     59        setHash = function( val ) {
     60            return '/' + val;
     61        };
    5862
    59             setHash = function( val ) {
    60                 return '/' + val;
    61             };
     63    // always remove support if IE < 8
     64    if ( support && ie < 8 ) {
     65        support = false;
     66    }
    6267
    63         // always remove support if IE < 8
    64         if ( support && ie < 8 ) {
    65             support = false;
    66         }
     68    if ( !support ) {
    6769
    68         if ( !support ) {
     70        $(function() {
    6971
    70             $(function() {
     72            var interval = window.setInterval(function() {
    7173
    72                 var interval = window.setInterval(function() {
     74                var hash = get();
    7375
    74                     var hash = get();
    75 
    76                     if ( !isNaN( hash ) && hash != saved ) {
    77                         saved = hash;
    78                         loc.hash = setHash( hash );
    79                         onchange();
    80                     }
    81 
    82                 }, 50);
    83 
    84                 if ( ie ) {
    85 
    86                     $('<iframe tabindex="-1" title="empty">').hide().attr( 'src', 'about:blank' ).one('load', function() {
    87 
    88                         iframe = this.contentWindow;
    89 
    90                         ready();
    91 
    92                     }).insertAfter(doc.body);
    93 
    94                 } else {
    95                     ready();
    96                 }
    97             });
    98         } else {
    99             ready();
    100         }
    101 
    102         return {
    103 
    104             change: function( fn ) {
    105 
    106                 callbacks.push( fn );
    107 
    108                 if( support ) {
    109                     window.onhashchange = onchange;
    110                 }
    111             },
    112 
    113             set: function( val ) {
    114 
    115                 if ( isNaN( val ) ) {
    116                     return;
     76                if ( !isNaN( hash ) && hash != saved ) {
     77                    saved = hash;
     78                    loc.hash = setHash( hash );
     79                    onchange();
    11780                }
    11881
    119                 if ( !support && ie ) {
     82            }, 50);
    12083
    121                     this.ready(function() {
     84            if ( ie ) {
    12285
    123                         var idoc = iframe.document;
    124                         idoc.open();
    125                         idoc.close();
     86                $('<iframe tabindex="-1" title="empty">').hide().attr( 'src', 'about:blank' ).one('load', function() {
    12687
    127                         iframe.location.hash = setHash( val );
     88                    iframe = this.contentWindow;
    12889
    129                     });
    130                 }
     90                    ready();
    13191
    132                 loc.hash = setHash( val );
    133             },
     92                }).insertAfter(doc.body);
    13493
    135             ready: function(fn) {
    136                 if (!init) {
    137                     onloads.push(fn);
    138                 } else {
    139                     fn();
    140                 }
     94            } else {
     95                ready();
    14196            }
    142         };
    143     }());
     97        });
     98    } else {
     99        ready();
     100    }
     101
     102    return {
     103
     104        change: function( fn ) {
     105
     106            callbacks.push( fn );
     107
     108            if( support ) {
     109                window.onhashchange = onchange;
     110            }
     111        },
     112
     113        set: function( val ) {
     114
     115            if ( isNaN( val ) ) {
     116                return;
     117            }
     118
     119            if ( !support && ie ) {
     120
     121                this.ready(function() {
     122
     123                    var idoc = iframe.document;
     124                    idoc.open();
     125                    idoc.close();
     126
     127                    iframe.location.hash = setHash( val );
     128
     129                });
     130            }
     131
     132            loc.hash = setHash( val );
     133        },
     134
     135        ready: function(fn) {
     136            if (!init) {
     137                onloads.push(fn);
     138            } else {
     139                fn();
     140            }
     141        }
     142    };
     143}());
    144144
    145145}( jQuery, this ));
  • extensions/stripped-galleria/galleria/plugins/history/galleria.history.min.js

    r12975 r26671  
    1 /*
    2  Galleria History Plugin 2011-08-01
    3  http://galleria.aino.se
    4 
    5  Copyright 2011, Aino
    6  Licensed under the MIT license.
    7 
    8 */
    9 Galleria.requires(1.25,"The History Plugin requires Galleria version 1.2.5 or later.");
    10 (function(e,c){Galleria.History=function(){var k=[],l=!1,f=c.location,g=c.document,h=Galleria.IE,b="onhashchange"in c&&(g.mode===void 0||g.mode>7),d,i=function(a){a=d&&!b&&Galleria.IE?a||d.location:f;return parseInt(a.hash.substr(2),10)},m=i(f),n=[],o=function(){e.each(n,function(a,b){b.call(c,i())})},j=function(){e.each(k,function(a,b){b()});l=!0};b&&h<8&&(b=!1);b?j():e(function(){c.setInterval(function(){var a=i();if(!isNaN(a)&&a!=m)m=a,f.hash="/"+a,o()},50);h?e('<iframe tabindex="-1" title="empty">').hide().attr("src",
    11 "about:blank").one("load",function(){d=this.contentWindow;j()}).insertAfter(g.body):j()});return{change:function(a){n.push(a);if(b)c.onhashchange=o},set:function(a){if(!isNaN(a))!b&&h&&this.ready(function(){var b=d.document;b.open();b.close();d.location.hash="/"+a}),f.hash="/"+a},ready:function(a){l?a():k.push(a)}}}()})(jQuery,this);
     1!function(n,e){Galleria.requires(1.25,"The History Plugin requires Galleria version 1.2.5 or later.");Galleria.History=function(){var i=[],t=false,a=e.location,o=e.document,r=Galleria.IE,s="onhashchange"in e&&(o.mode===undefined||o.mode>7),u,c=function(n){if(u&&!s&&Galleria.IE){n=n||u.location}else{n=a}return parseInt(n.hash.substr(2),10)},f=c(a),l=[],h=function(){n.each(l,function(n,i){i.call(e,c())})},d=function(){n.each(i,function(n,e){e()});t=true},y=function(n){return"/"+n};if(s&&r<8){s=false}if(!s){n(function(){var i=e.setInterval(function(){var n=c();if(!isNaN(n)&&n!=f){f=n;a.hash=y(n);h()}},50);if(r){n('<iframe tabindex="-1" title="empty">').hide().attr("src","about:blank").one("load",function(){u=this.contentWindow;d()}).insertAfter(o.body)}else{d()}})}else{d()}return{change:function(n){l.push(n);if(s){e.onhashchange=h}},set:function(n){if(isNaN(n)){return}if(!s&&r){this.ready(function(){var e=u.document;e.open();e.close();u.location.hash=y(n)})}a.hash=y(n)},ready:function(n){if(!t){i.push(n)}else{n()}}}}()}(jQuery,this);
  • extensions/stripped-galleria/galleria/plugins/history/history-demo.html

    r12975 r26671  
    2121
    2222        <!-- load jQuery -->
    23         <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
     23        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
    2424
    2525        <!-- load Galleria -->
    26         <script src="../../galleria-1.2.6.min.js"></script>
     26        <script src="../../galleria-1.3.3.min.js"></script>
    2727
    2828        <!-- load the History plugin, no need for further scripting -->
     
    3939        <div id="galleria">
    4040            <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Locomotives-Roundhouse2.jpg/800px-Locomotives-Roundhouse2.jpg">
    41                 <img title="Locomotives Roundhouse"
    42                      alt="Steam locomotives of the Chicago &amp; North Western Railway."
    43                      src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Locomotives-Roundhouse2.jpg/100px-Locomotives-Roundhouse2.jpg">
    44                 </a>
     41                <img title="Locomotives Roundhouse"
     42                     alt="Steam locomotives of the Chicago &amp; North Western Railway."
     43                     src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Locomotives-Roundhouse2.jpg/100px-Locomotives-Roundhouse2.jpg">
     44            </a>
    4545            <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/3/36/Icebergs_in_the_High_Arctic_-_20050907.jpg/1000px-Icebergs_in_the_High_Arctic_-_20050907.jpg">
    4646                <img title="Icebergs in the High Arctic"
     
    9191
    9292    // Load the classic theme
    93         Galleria.loadTheme('../../themes/classic/galleria.classic.min.js');
     93    Galleria.loadTheme('../../themes/classic/galleria.classic.min.js');
    9494
    95         // Initialize Galleria
    96         $('#galleria').galleria();
     95    // Initialize Galleria
     96    Galleria.run('#galleria');
    9797
    9898    </script>
  • extensions/stripped-galleria/galleria/themes/classic/classic-demo.html

    r12975 r26671  
    2424
    2525        <!-- load Galleria -->
    26         <script src="../../galleria-1.2.5.min.js"></script>
     26        <script src="../../galleria-1.3.3.min.js"></script>
    2727
    2828    </head>
     
    3535
    3636        <div id="galleria">
    37             <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Locomotives-Roundhouse2.jpg/800px-Locomotives-Roundhouse2.jpg">
    38                 <img title="Locomotives Roundhouse"
    39                      alt="Steam locomotives of the Chicago &amp; North Western Railway."
    40                      src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Locomotives-Roundhouse2.jpg/100px-Locomotives-Roundhouse2.jpg">
    41                 </a>
    42             <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/3/36/Icebergs_in_the_High_Arctic_-_20050907.jpg/1000px-Icebergs_in_the_High_Arctic_-_20050907.jpg">
    43                 <img title="Icebergs in the High Arctic"
    44                      alt="”The debris loading isn't particularly extensive, but the color is usual.”"
    45                      src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/36/Icebergs_in_the_High_Arctic_-_20050907.jpg/100px-Icebergs_in_the_High_Arctic_-_20050907.jpg">
     37            <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Biandintz_eta_zaldiak_-_modified2.jpg/800px-Biandintz_eta_zaldiak_-_modified2.jpg">
     38                <img
     39                    src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Biandintz_eta_zaldiak_-_modified2.jpg/100px-Biandintz_eta_zaldiak_-_modified2.jpg",
     40                    data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Biandintz_eta_zaldiak_-_modified2.jpg/1280px-Biandintz_eta_zaldiak_-_modified2.jpg"
     41                    data-title="Biandintz eta zaldiak"
     42                    data-description="Horses on Bianditz mountain, in Navarre, Spain."
     43                >
    4644            </a>
    47             <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/f/fe/Ara%C3%B1a._A_Estrada%2C_Galiza._02.jpg/1000px-Ara%C3%B1a._A_Estrada%2C_Galiza._02.jpg">
    48                 <img title="Araña"
    49                      alt="Xysticus cristatus, A Estrada, Galicia, Spain"
    50                      src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/fe/Ara%C3%B1a._A_Estrada%2C_Galiza._02.jpg/100px-Ara%C3%B1a._A_Estrada%2C_Galiza._02.jpg">
     45            <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Athabasca_Rail_at_Brule_Lake.jpg/800px-Athabasca_Rail_at_Brule_Lake.jpg">
     46                <img
     47                    src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Athabasca_Rail_at_Brule_Lake.jpg/100px-Athabasca_Rail_at_Brule_Lake.jpg",
     48                    data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Athabasca_Rail_at_Brule_Lake.jpg/1280px-Athabasca_Rail_at_Brule_Lake.jpg"
     49                    data-title="Athabasca Rail"
     50                    data-description="The Athabasca River railroad track at the mouth of Brulé Lake in Alberta, Canada."
     51                >
    5152            </a>
    52             <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/9104_-_Milano_-_Museo_storia_naturale_-_Fluorite_-_Foto_Giovanni_Dall%27Orto_22-Apr-2007.jpg/1000px-9104_-_Milano_-_Museo_storia_naturale_-_Fluorite_-_Foto_Giovanni_Dall%27Orto_22-Apr-2007.jpg">
    53                 <img title="Museo storia naturale"
    54                      src="http://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/9104_-_Milano_-_Museo_storia_naturale_-_Fluorite_-_Foto_Giovanni_Dall%27Orto_22-Apr-2007.jpg/100px-9104_-_Milano_-_Museo_storia_naturale_-_Fluorite_-_Foto_Giovanni_Dall%27Orto_22-Apr-2007.jpg">
     53            <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Back-scattering_crepuscular_rays_panorama_1.jpg/1280px-Back-scattering_crepuscular_rays_panorama_1.jpg">
     54                <img
     55                    src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Back-scattering_crepuscular_rays_panorama_1.jpg/100px-Back-scattering_crepuscular_rays_panorama_1.jpg",
     56                    data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Back-scattering_crepuscular_rays_panorama_1.jpg/1400px-Back-scattering_crepuscular_rays_panorama_1.jpg"
     57                    data-title="Back-scattering crepuscular rays"
     58                    data-description="Picture of the day on Wikimedia Commons 26 September 2010."
     59                >
    5560            </a>
    56             <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/1/15/Grj%C3%B3tagj%C3%A1_caves_in_summer_2009_%282%29.jpg/1000px-Grj%C3%B3tagj%C3%A1_caves_in_summer_2009_%282%29.jpg">
    57                 <img title="Grjótagjá caves in summer 2009"
    58                      src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/15/Grj%C3%B3tagj%C3%A1_caves_in_summer_2009_%282%29.jpg/100px-Grj%C3%B3tagj%C3%A1_caves_in_summer_2009_%282%29.jpg">
     61            <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Interior_convento_3.jpg/800px-Interior_convento_3.jpg">
     62                <img
     63                    src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Interior_convento_3.jpg/120px-Interior_convento_3.jpg",
     64                    data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Interior_convento_3.jpg/1400px-Interior_convento_3.jpg"
     65                    data-title="Interior convento"
     66                    data-description="Interior view of Yuriria Convent, founded in 1550."
     67                >
    5968            </a>
    60             <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/9/90/20091128_Loutra_Thermes_Xanthi_Thrace_Greece_2.jpg/1000px-20091128_Loutra_Thermes_Xanthi_Thrace_Greece_2.jpg">
    61                 <img title="Thermes"
    62                      alt="Xanthi hot-spa springs, Xanthi Prefecture, Greece"
    63                      src="http://upload.wikimedia.org/wikipedia/commons/thumb/9/90/20091128_Loutra_Thermes_Xanthi_Thrace_Greece_2.jpg/100px-20091128_Loutra_Thermes_Xanthi_Thrace_Greece_2.jpg">
     69            <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg/800px-Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg">
     70                <img
     71                    src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg/100px-Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg",
     72                    data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg/1280px-Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg"
     73                    data-title="Oxbow Bend outlook"
     74                    data-description="View over the Snake River to the Mount Moran with the Skillet Glacier."
     75                >
    6476            </a>
    65             <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/5/58/Polish_Army_Ko%C5%82obrzeg_077.JPG/1024px-Polish_Army_Ko%C5%82obrzeg_077.JPG">
    66                 <img title="Polish Army Kołobrzeg"
    67                      alt="A display of the Polish Army. Both the soldier, and the vehicle belong to the 7th Pomeranian Coastal Defence Brigade, a part of the Szczecin-based 12th Mechanized Division ”Bolesław Krzywousty”"
    68                      src="http://upload.wikimedia.org/wikipedia/commons/thumb/5/58/Polish_Army_Ko%C5%82obrzeg_077.JPG/100px-Polish_Army_Ko%C5%82obrzeg_077.JPG">
     77            <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Hazy_blue_hour_in_Grand_Canyon.JPG/800px-Hazy_blue_hour_in_Grand_Canyon.JPG">
     78                <img
     79                    src="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Hazy_blue_hour_in_Grand_Canyon.JPG/100px-Hazy_blue_hour_in_Grand_Canyon.JPG",
     80                    data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Hazy_blue_hour_in_Grand_Canyon.JPG/1280px-Hazy_blue_hour_in_Grand_Canyon.JPG"
     81                    data-title="Hazy blue hour"
     82                    data-description="Hazy blue hour in Grand Canyon. View from the South Rim."
     83                >
    6984            </a>
    70             <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/20100213_Zlatograd_Bulgaria_3.jpg/1024px-20100213_Zlatograd_Bulgaria_3.jpg">
    71                 <img title="Zlatograd Bulgaria"
    72                      src="http://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/20100213_Zlatograd_Bulgaria_3.jpg/100px-20100213_Zlatograd_Bulgaria_3.jpg">
     85            <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/2909_vallon_moy_res.jpg/800px-2909_vallon_moy_res.jpg">
     86                <img
     87                    src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/2909_vallon_moy_res.jpg/100px-2909_vallon_moy_res.jpg",
     88                    data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/2909_vallon_moy_res.jpg/1280px-2909_vallon_moy_res.jpg"
     89                    data-title="Haute Severaisse valley"
     90                    data-description="View of Haute Severaisse valley and surrounding summits from the slopes of Les Vernets."
     91                >
    7392            </a>
    74             <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/FEMA_-_5399_-_Photograph_by_Andrea_Booher_taken_on_09-28-2001_in_New_York.jpg/1024px-FEMA_-_5399_-_Photograph_by_Andrea_Booher_taken_on_09-28-2001_in_New_York.jpg">
    75                 <img title="09-28-2001 in New York City"
    76                      alt="New York, NY, September 28, 2001 -- Debris on surrounding roofs at the site of the World Trade Center. Photo by Andrea Booher/ FEMA News Photo"
    77                      src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/FEMA_-_5399_-_Photograph_by_Andrea_Booher_taken_on_09-28-2001_in_New_York.jpg/100px-FEMA_-_5399_-_Photograph_by_Andrea_Booher_taken_on_09-28-2001_in_New_York.jpg">
     93            <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bohinjsko_jezero_2.jpg/800px-Bohinjsko_jezero_2.jpg">
     94                <img
     95                    src="http://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bohinjsko_jezero_2.jpg/100px-Bohinjsko_jezero_2.jpg",
     96                    data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bohinjsko_jezero_2.jpg/1280px-Bohinjsko_jezero_2.jpg"
     97                    data-title="Bohinj lake"
     98                    data-description="Bohinj lake (Triglav National Park, Slovenia) in the morning."
     99                >
    78100            </a>
    79             <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e6/Antennae%2C_Hubble_images.jpg/1024px-Antennae%2C_Hubble_images.jpg">
    80                 <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e6/Antennae%2C_Hubble_images.jpg/100px-Antennae%2C_Hubble_images.jpg">
     101            <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Bowling_Balls_Beach_2_edit.jpg/800px-Bowling_Balls_Beach_2_edit.jpg">
     102                <img
     103                    src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Bowling_Balls_Beach_2_edit.jpg/100px-Bowling_Balls_Beach_2_edit.jpg",
     104                    data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Bowling_Balls_Beach_2_edit.jpg/1280px-Bowling_Balls_Beach_2_edit.jpg"
     105                    data-title="Bowling Balls"
     106                    data-description="Mendocino county, California, USA."
     107                >
    81108            </a>
    82109        </div>
     
    88115
    89116    // Load the classic theme
    90         Galleria.loadTheme('galleria.classic.min.js');
     117    Galleria.loadTheme('galleria.classic.min.js');
    91118
    92         // Initialize Galleria
    93         $('#galleria').galleria();
     119    // Initialize Galleria
     120    Galleria.run('#galleria');
    94121
    95122    </script>
  • extensions/stripped-galleria/galleria/themes/classic/galleria.classic.css

    r12975 r26671  
    1 /*
    2  * Galleria Classic Theme
    3  * Copyright (c) 2010, Aino
    4  * Licensed under the MIT license.
    5  * Modification for stripped-galleria theme for Piwigo
    6   */
    7  
     1/* Galleria Classic Theme 2012-08-07 | https://raw.github.com/aino/galleria/master/LICENSE | (c) Aino */
     2
     3#galleria-loader{height:1px!important}
     4
    85.galleria-container {
    96    position: relative;
     
    7370}
    7471.galleria-info-text {
    75     background-color: #050505;
     72    background-color: #000;
    7673    padding: 12px;
    7774    display: none;
    7875    /* IE7 */ zoom:1;
    79         opacity:0.8;
    80     filter: alpha(opacity=80);
    8176}
    8277.galleria-info-title {
    83         line-height:1.1;
     78    font: bold 12px/1.1 arial,sans-serif;
    8479    margin: 0;
    8580    color: #fff;
    86         margin-bottom: 7px;
     81    margin-bottom: 7px;
    8782}
    8883.galleria-info-description {
    89     font-style: italic;
    90         line-height:1.4;
     84    font: italic 12px/1.4 georgia,serif;
    9185    margin: 0;
    92     color: #fff;
     86    color: #bbb;
    9387}
    9488.galleria-info-close {
     
    120114    height: 20px;
    121115    cursor: pointer;
    122  }
    123  .notouch .galleria-info-link:hover {
     116    background-color: #000;
     117}
     118.notouch .galleria-info-link:hover {
    124119    opacity: 1;
    125120    filter: alpha(opacity=100);
     
    221216    background-repeat: no-repeat;
    222217}
     218.galleria-container.videoplay .galleria-info,
     219.galleria-container.videoplay .galleria-counter{ display:none!important; }
  • extensions/stripped-galleria/galleria/themes/classic/galleria.classic.js

    r12975 r26671  
    11/**
    2  * @preserve Galleria Classic Theme 2011-08-01
    3  * http://galleria.aino.se
     2 * Galleria Classic Theme 2012-08-08
     3 * http://galleria.io
    44 *
    5  * Copyright (c) 2011, Aino
    6  * Licensed under the MIT license.
     5 * Licensed under the MIT license
     6 * https://raw.github.com/aino/galleria/master/LICENSE
     7 *
    78 */
    89
    9 /*global jQuery, Galleria */
     10(function($) {
    1011
    11 Galleria.requires(1.25, 'This version of Classic theme requires Galleria 1.2.5 or later');
    12 
    13 (function($) {
     12/*global window, jQuery, Galleria */
    1413
    1514Galleria.addTheme({
     
    2625    init: function(options) {
    2726
     27        Galleria.requires(1.33, 'This version of Classic theme requires Galleria 1.3.3 or later');
     28
    2829        // add some elements
    2930        this.addElement('info-link','info-close');
     
    3435        // cache some stuff
    3536        var info = this.$('info-link,info-close,info-text'),
    36             touch = Galleria.TOUCH,
    37             click = touch ? 'touchstart' : 'click';
     37            touch = Galleria.TOUCH;
    3838
    3939        // show loader & counter with opacity
     
    4949        // toggle info
    5050        if ( options._toggleInfo === true ) {
    51             info.bind( click, function() {
     51            info.bind( 'click:fast', function() {
    5252                info.toggle();
    5353            });
     
    7272                }
    7373            } else {
    74                 $(e.thumbTarget).css('opacity', this.getIndex() ? 1 : 0.6);
     74                $(e.thumbTarget).css('opacity', this.getIndex() ? 1 : 0.6).bind('click:fast', function() {
     75                    $(this).css( 'opacity', 1 ).parent().siblings().children().css('opacity', 0.6);
     76                });
    7577            }
    7678        });
     79
     80        var activate = function(e) {
     81            $(e.thumbTarget).css('opacity',1).parent().siblings().children().css('opacity', 0.6);
     82        };
    7783
    7884        this.bind('loadstart', function(e) {
     
    8086                this.$('loader').show().fadeTo(200, 0.4);
    8187            }
    82 
     88            window.setTimeout(function() {
     89                activate(e);
     90            }, touch ? 300 : 0);
    8391            this.$('info').toggle( this.hasInfo() );
    84 
    85             $(e.thumbTarget).css('opacity',1).parent().siblings().children().css('opacity', 0.6);
    8692        });
    8793
  • extensions/stripped-galleria/galleria/themes/classic/galleria.classic.min.js

    r12975 r26671  
    1 /*
    2  Galleria Classic Theme 2011-08-01
    3  http://galleria.aino.se
    4 
    5  Copyright (c) 2011, Aino
    6  Licensed under the MIT license.
    7 */
    8 Galleria.requires(1.25,"This version of Classic theme requires Galleria 1.2.5 or later");
    9 (function(b){Galleria.addTheme({name:"classic",author:"Galleria",css:"galleria.classic.css",defaults:{transition:"slide",thumbCrop:"height",_toggleInfo:!0},init:function(e){this.addElement("info-link","info-close");this.append({info:["info-link","info-close"]});var c=this.$("info-link,info-close,info-text"),d=Galleria.TOUCH,f=d?"touchstart":"click";this.$("loader,counter").show().css("opacity",0.4);d||(this.addIdleState(this.get("image-nav-left"),{left:-50}),this.addIdleState(this.get("image-nav-right"),
    10 {right:-50}),this.addIdleState(this.get("counter"),{opacity:0}));e._toggleInfo===!0?c.bind(f,function(){c.toggle()}):(c.show(),this.$("info-link, info-close").hide());this.bind("thumbnail",function(a){d?b(a.thumbTarget).css("opacity",this.getIndex()?1:0.6):(b(a.thumbTarget).css("opacity",0.6).parent().hover(function(){b(this).not(".active").children().stop().fadeTo(100,1)},function(){b(this).not(".active").children().stop().fadeTo(400,0.6)}),a.index===this.getIndex()&&b(a.thumbTarget).css("opacity",
    11 1))});this.bind("loadstart",function(a){a.cached||this.$("loader").show().fadeTo(200,0.4);this.$("info").toggle(this.hasInfo());b(a.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",0.6)});this.bind("loadfinish",function(){this.$("loader").fadeOut(200)})}})})(jQuery);
     1!function(i){Galleria.addTheme({name:"classic",author:"Galleria",css:"galleria.classic.css",defaults:{transition:"slide",thumbCrop:"height",_toggleInfo:true},init:function(t){Galleria.requires(1.33,"This version of Classic theme requires Galleria 1.3.3 or later");this.addElement("info-link","info-close");this.append({info:["info-link","info-close"]});var e=this.$("info-link,info-close,info-text"),s=Galleria.TOUCH;this.$("loader,counter").show().css("opacity",.4);if(!s){this.addIdleState(this.get("image-nav-left"),{left:-50});this.addIdleState(this.get("image-nav-right"),{right:-50});this.addIdleState(this.get("counter"),{opacity:0})}if(t._toggleInfo===true){e.bind("click:fast",function(){e.toggle()})}else{e.show();this.$("info-link, info-close").hide()}this.bind("thumbnail",function(t){if(!s){i(t.thumbTarget).css("opacity",.6).parent().hover(function(){i(this).not(".active").children().stop().fadeTo(100,1)},function(){i(this).not(".active").children().stop().fadeTo(400,.6)});if(t.index===this.getIndex()){i(t.thumbTarget).css("opacity",1)}}else{i(t.thumbTarget).css("opacity",this.getIndex()?1:.6).bind("click:fast",function(){i(this).css("opacity",1).parent().siblings().children().css("opacity",.6)})}});var n=function(t){i(t.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",.6)};this.bind("loadstart",function(i){if(!i.cached){this.$("loader").show().fadeTo(200,.4)}window.setTimeout(function(){n(i)},s?300:0);this.$("info").toggle(this.hasInfo())});this.bind("loadfinish",function(i){this.$("loader").fadeOut(200)})}})}(jQuery);
  • extensions/stripped-galleria/readme.txt

    r20628 r26671  
    1313Changelog
    1414---------
     15
     16*** version 1.5.0
     17- updated for 2.6&2.5
    1518
    1619*** version 1.4.3
  • extensions/stripped-galleria/template/header.tpl

    r12975 r26671  
    4848<script type="text/javascript" src="{$ROOT_URL}themes/default/js/pngfix.js"></script>
    4949<![endif]-->
     50<!--[if lt IE 7]>{include file='ie6.tpl'}<![endif]-->
     51
     52{if ($BODY_ID=='theCategoryPage')}
     53        {combine_script id='galleriaScript' require='jquery' load='header' path='themes/stripped-galleria/galleria/galleria-1.3.3.min.js'}
     54        {combine_script id='galleriaHistoryScript' require='jquery,galleriaScript' load='header' path='themes/stripped-galleria/galleria/plugins/history/galleria.history.min.js'}
     55        {if ($stripped.themeStyle == 'white')}
     56                {combine_script id='galleriaTheme' require='galleriaScript' load='footer' path='themes/stripped-galleria/galleria/themes/classicwhite/galleria.classic.min.js'}
     57        {else}
     58                {combine_script id='galleriaTheme' require='galleriaScript' load='footer' path='themes/stripped-galleria/galleria/themes/classic/galleria.classic.min.js'}
     59        {/if}
     60{/if}
    5061
    5162{if not empty($head_elements)}
  • extensions/stripped-galleria/template/index.tpl

    r13089 r26671  
    1 {php}
    2         global $conf;
    3         $this->assign('downloadLink', $conf['picture_download_icon']);
    4 {/php}
    51<div class="titrePage">
    62        <div class="browsePath">
  • extensions/stripped-galleria/template/thumbnails.tpl

    r20628 r26671  
    22{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
    33{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
    4 {php}
    5         global $stripped, $strippedgalleria, $page;
    6         $this->assign( 'stripped', $stripped );
    7         $this->assign( 'strippedgalleria', $strippedgalleria );
    8         $this->assign( 'get_root_url', get_root_url() );
    9         $this->assign( 'catid', @$page['category']['id'] );
    10         $this->assign( 'section', @$page['section'] );
    11         $this->assign( 'tagids',  @implode(',', @$page['tag_ids']) );
    12 {/php}
    134<div id="gallery"></div>
    145{footer_script}
     
    6556                                                jQuery.post("{/literal}{$get_root_url}{literal}themes/stripped-galleria/save_history.php", {
    6657                                                        imgid: "img-"+pid,
    67                                                         catid: "{/literal}{$catid}{literal}",
    68                                                         section: "{/literal}{$section}{literal}",
    69                                                         tagids: "{/literal}{$tagids}{literal}"
     58                                                        {/literal}{if !empty($catid)} catid: "{$catid}"{/if}{literal},
     59                                                        {/literal}{if !empty($section)} section: "{$section}"{/if}{literal},
     60                                                        {/literal}{if !empty($tagids)} tagids: "{$tagids}"{/if}{literal}
    7061                                                });
    7162                                    });
     
    7869                                                jQuery.post("{/literal}{$get_root_url}{literal}themes/stripped-galleria/save_history.php", {
    7970                                                        imgid: "img-"+pid,
    80                                                         catid: "{/literal}{$catid}{literal}",
    81                                                         section: "{/literal}{$section}{literal}",
    82                                                         tagids: "{/literal}{$tagids}{literal}"
     71                                                        {/literal}{if !empty($catid)} catid: "{$catid}"{/if}{literal},
     72                                                        {/literal}{if !empty($section)} section: "{$section}"{/if}{literal},
     73                                                        {/literal}{if !empty($tagids)} tagids: "{$tagids}"{/if}{literal}
    8374                                                });
    8475                                    });
  • extensions/stripped-galleria/themeconf.inc.php

    r17962 r26671  
    22/*
    33Theme Name: stripped-galleria
    4 Version: Auto
     4Version: 1.4.3
    55Description: stripped-galleria theme
    66Theme URI: http://piwigo.org/ext/extension_view.php?eid=585
     
    3535if (!isset($strippedgalleria['lightbox'])) $strippedgalleria['lightbox']='none';
    3636
    37 // Access to HD and link to original
    3837
    39 add_event_handler('loc_end_index_thumbnails', 'add_thumbnails_hd_url', 50, 2);
    40 function add_thumbnails_hd_url($tpl_vars, $pictures)
     38add_event_handler('loc_end_index_thumbnails', 'strippedgalleria_add_thumbnails_hd_url', 50, 2);
     39function strippedgalleria_add_thumbnails_hd_url($tpl_vars)
    4140{
    42         global $user;
     41        global $user, $conf, $template, $page;
    4342        foreach($tpl_vars as &$x)
    4443        {
     
    4746        }
    4847        unset($x);
     48  $stripped =  unserialize( $conf['stripped'] );
     49  $strippedgalleria = unserialize( $conf['stripped-galleria'] );
     50        $template->assign( 'stripped', $stripped );
     51        $template->assign( 'strippedgalleria', $strippedgalleria );
     52        $template->assign( 'get_root_url', get_root_url() );
     53        if (!empty($page['section'])) $template->assign('section', $page['section']);
     54        if (!empty($page['category']['id'])) $template->assign('catid', $page['category']['id']);
     55        if (!empty($page['tag_ids'])) $template->assign('tagids', implode(',', $page['tag_ids']));
    4956        return $tpl_vars;
    5057}
     58
     59add_event_handler('loc_begin_page_header', 'strippedgalleria_header');
     60function strippedgalleria_header()
     61{
     62  global $conf, $template;
     63  $stripped =  unserialize( $conf['stripped'] );
     64  $strippedgalleria = unserialize( $conf['stripped-galleria'] );
     65        $template->assign( 'stripped', $stripped );
     66        $template->assign( 'strippedgalleria', $strippedgalleria );
     67}
     68add_event_handler('loc_begin_index', 'strippedgalleria_add_downloadLink');
     69function strippedgalleria_add_downloadLink()
     70{
     71  global $conf, $template;
     72  $template->assign('downloadLink', $conf['picture_download_icon']);
     73}
     74
    5175?>
Note: See TracChangeset for help on using the changeset viewer.