Plugin Directory

Changeset 977688


Ignore:
Timestamp:
09/03/2014 08:53:43 AM (12 years ago)
Author:
Eric Lowry
Message:

Version 1.2.3

Location:
el-gallery
Files:
22 added
11 edited

Legend:

Unmodified
Added
Removed
  • el-gallery/trunk/css/el-gallery.css

    r975862 r977688  
    33Plugin URI: http://ericlowry.fr/
    44Description: An extremely simplistic gallery replacement plugin.
    5 Version: 1.2.2
     5Version: 1.2.3
    66Author: Eric Lowry
    77Author URI: http://ericlowry.fr/
     
    8484    left: 50%;
    8585    font-size: 117px;
    86     margin: -95px 0 0 -50px;
     86    margin: -85px 0 0 -50px;
     87}
     88figure.el_gallery .el_gallery-slideshow_wrapper a.el_pause {
     89    display: none;
     90    position: absolute;
     91    top: 50%;
     92    left: 50%;
     93    margin: -25px 0 0 -25px;
     94    height: 50px;
     95    width: 50px;
     96    cursor: pointer;
     97    opacity: .2;
     98    filter: alpha(opacity=20);
     99    color: rgba(0,0,0,.8);
     100    font-size: 30px;
     101    text-indent: 0;
     102    text-align: center;
     103    line-height: 50px;
     104    text-shadow: 0px 0px 4px rgba(255,255,255,.5),  0px 0px 20px #FFF;
     105    z-index: 7;
     106    overflow: visible;
     107}
     108figure.el_gallery .el_gallery-slideshow_wrapper:hover a.el_pause {
     109    display: block;
     110    opacity: .6;
     111    filter: alpha(opacity=60);
     112}
     113figure.el_gallery .el_gallery-slideshow_wrapper a.el_pause:hover, figure.el_gallery .el_gallery-slideshow_wrapper a.el_pause:focus {
     114    opacity: 1;
     115    filter: alpha(opacity=100);
     116}
     117figure.el_gallery .el_gallery-slideshow_wrapper a.el_pause:active {
     118    transition: .2s;
     119    opacity: .8;
     120    filter: alpha(opacity=80);
    87121}
    88122figure.el_gallery .el_gallery-slideshow_wrapper img {
  • el-gallery/trunk/css/el-gallery_admin.css

    r975862 r977688  
    33Plugin URI: http://ericlowry.fr/
    44Description: An extremely simplistic gallery replacement plugin.
    5 Version: 1.2.2
     5Version: 1.2.3
    66Author: Eric Lowry
    77Author URI: http://ericlowry.fr/
  • el-gallery/trunk/el-gallery-admin.php

    r975862 r977688  
    33Plugin: EL-Gallery
    44Description: An extremely simplistic gallery replacement plugin.
    5 Version: 1.2.2
     5Version: 1.2.3
    66Author: Eric Lowry
    77Author URI: http://ericlowry.fr/
  • el-gallery/trunk/el-gallery.php

    r975862 r977688  
    44Plugin URI: http://wordpress.org/plugins/el-gallery/
    55Description: An extremely simplistic gallery replacement plugin.
    6 Version: 1.2.2
     6Version: 1.2.3
    77Author: Eric Lowry
    88Author URI: http://ericlowry.fr/
     
    131131        $loading_icon == "cog";
    132132    }
    133     $print_gallery .= '<div class="el_nav"><a href="#" class="el_nav-left"><span><i class="fa fa-caret-left"><div>&lt;</div></i></span></a><div class="el_loading"><i class="fa fa-'.$loading_icon.' fa-spin"><div>'.__('Loading...','el-gallery').'</div></i></div><a href="#" class="el_nav-right"><span><i class="fa fa-caret-right"><div>&gt;</div></i></span></a></div>';
     133    $print_gallery .= '<div class="el_nav"><a href="#" class="el_nav-left"><span><i class="fa fa-caret-left"><div>&lt;</div></i></span></a><div class="el_loading"><i class="fa fa-'.$loading_icon.' fa-spin"><div>'.__('Loading...','el-gallery').'</div></i></div><a href="#" class="el_pause"><i class="fa fa-pause fa-fw"><div>'.__('Pause','el-gallery').'</div></i></a><a href="#" class="el_nav-right"><span><i class="fa fa-caret-right"><div>&gt;</div></i></span></a></div>';
    134134
    135135    foreach ( $images as $image ) {
  • el-gallery/trunk/js/el-gallery.js

    r975862 r977688  
    22Plugin Name: EL-Gallery
    33Description: An extremely simplistic gallery replacement plugin.
    4 Version: 1.2.2
     4Version: 1.2.3
    55Author: Eric Lowry
    66Author URI: http://ericlowry.fr/
     
    8585                        setTimeout(function(){
    8686                            $('.el_gallery-slideshow_wrapper .el_loading',curr_gallery).css('display','none');
     87                            $('.el_pause',curr_gallery).attr('style','');
    8788                            $('.el_gallery-thumbnails_wrapper img',curr_gallery).css('height', 'auto');
    8889                            startloop(cntmax,cnt,false,duration,max_height,curr_gallery);
     
    136137                    var left_gradient = 'linear-gradient(to left, ' + convertHex(nav_color,0) + ', #' + nav_color.replace('#','') + ')';
    137138                    var right_gradient = 'linear-gradient(to right, ' + convertHex(nav_color,0).replace('#','') + ', #' + nav_color.replace('#','') + ')';
    138                     $('.el_nav-left',curr_gallery).css('background', left_gradient );
    139                     $('.el_nav-right',curr_gallery).css('background', right_gradient );
     139                    $('.el_nav-left',curr_gallery).css( 'background', left_gradient);
     140                    $('.el_nav-right',curr_gallery).css( 'background', right_gradient);
    140141                }
    141142                if (nav_light) {
    142143                    if (nav_light == 'true') {
    143                         $('.el_nav-left span',curr_gallery).css('border-right', '40px solid #fff' );
    144                         $('.el_nav-right span',curr_gallery).css('border-left', '40px solid #fff' );
     144                        $('.el_nav-left span',curr_gallery).css('border-right', '40px solid #fff');
     145                        $('.el_nav-right span',curr_gallery).css('border-left', '40px solid #fff');
    145146                    }
    146147                }
     
    157158                        startloop(cntmax,cnt,false,duration,max_height,curr_gallery)
    158159                    }
     160                    event.preventDefault();
    159161                    return false;
    160162                });
     
    171173                        startloop(cntmax,cnt,false,duration,max_height,curr_gallery)
    172174                    }
     175                    event.preventDefault();
    173176                    return false;
    174177                });
     178
     179            // We set up the Pause button
     180                var paused = false;
     181                if (nav_light) {
     182                    if (nav_light == 'true') {
     183                        $('.el_pause',curr_gallery).css({'color':'rgba(255,255,255,.8)', 'text-shadow':'0 0 4px rgba(0,0,0,.5), 0 0 20px #000'});
     184                    }
     185                }
     186                $('.el_pause',curr_gallery).bind("mouseenter mouseleave", function(event) {
     187                    if(paused == true) {
     188                        $('i.fa',this).toggleClass("fa-pause fa-play");
     189                    } else {
     190                    }
     191                });
     192                $('.el_pause',curr_gallery).bind("click", function(event) {
     193                    if(paused == true) {
     194                        $(this).attr('style','');
     195                        $('i.fa div',this).html('Pause');
     196                        startloop(cntmax,cnt,true,duration,max_height,curr_gallery)
     197                        paused = false;
     198                    } else {
     199                        $(this).css('display','block');
     200                        $('i.fa div',this).html('Play');
     201                        clearInterval(loop_interval);
     202                        paused = true;
     203                    }
     204                    $('i.fa',this).toggleClass("fa-pause fa-play");
     205                    event.preventDefault();
     206                    return false;
     207                });
     208
    175209            }
    176210
     
    240274
    241275
    242         // We preload the "loading" gif
    243         function preload(arrayOfImages,duration,centered,nav,nav_color,nav_light,max_height,curr_gallery) {
    244             $(arrayOfImages).each(function(index){
    245                 $('<img />')
    246                 .attr('src', arrayOfImages[index])
    247                 .load(function(){
    248                     start_slideshow(duration,centered,nav,nav_color,nav_light,max_height,curr_gallery);
    249                 });
    250             });
    251         }
    252         preload([
    253             'http://ericlowry.fr/en/wp-content/uploads/sites/3/2014/05/loadingGif.gif'
    254         ],duration,centered,nav,nav_color,nav_light,max_height,curr_gallery);
     276        // We start the slideshow
     277        start_slideshow(duration,centered,nav,nav_color,nav_light,max_height,curr_gallery);
    255278
    256279
  • el-gallery/trunk/js/el-gallery_admin.js

    r975862 r977688  
    22Plugin Name: EL-Gallery
    33Description: An extremely simplistic gallery replacement plugin.
    4 Version: 1.2.2
     4Version: 1.2.3
    55Author: Eric Lowry
    66Author URI: http://ericlowry.fr/
  • el-gallery/trunk/languages/el-gallery-fr_FR.pot

    r975862 r977688  
    55"Project-Id-Version: el-gallery\n"
    66"Report-Msgid-Bugs-To: http://ericlowry.fr\n"
    7 "POT-Creation-Date: 2014-08-30 20:29+0100\n"
    8 "PO-Revision-Date: 2014-08-30 20:29+0100\n"
     7"POT-Creation-Date: 2014-09-02 15:05+0100\n"
     8"PO-Revision-Date: 2014-09-02 15:05+0100\n"
    99"Last-Translator: Eric Lowry <ericlowry14@gmail.com>\n"
    1010"Language-Team: ERIC LOWRY <ERICLOWRY14@GMAIL.COM>\n"
     
    1414"Content-Transfer-Encoding: 8bit\n"
    1515"Plural-Forms: nplurals=2; plural=(n > 1);\n"
    16 "X-Generator: Poedit 1.6.5\n"
     16"X-Generator: Poedit 1.6.9\n"
    1717"X-Poedit-Basepath: .\n"
    1818"X-Poedit-SourceCharset: UTF-8\n"
     
    155155msgstr "Chargement..."
    156156
     157#: ../el-gallery.php:133
     158msgid "Pause"
     159msgstr "Pause"
     160
    157161#~ msgid ""
    158162#~ "By activating this, clicking on images in your gallery will open them in "
  • el-gallery/trunk/languages/el-gallery.pot

    r975862 r977688  
    55"Project-Id-Version: el-gallery\n"
    66"Report-Msgid-Bugs-To: http://ericlowry.fr\n"
    7 "POT-Creation-Date: 2014-08-30 20:29+0100\n"
    8 "PO-Revision-Date: 2014-08-30 20:29+0100\n"
     7"POT-Creation-Date: 2014-09-02 15:04+0100\n"
     8"PO-Revision-Date: 2014-09-02 15:04+0100\n"
    99"Last-Translator: Eric Lowry <ericlowry14@gmail.com>\n"
    1010"Language-Team: ERIC LOWRY <ERICLOWRY14@GMAIL.COM>\n"
     
    1414"Content-Transfer-Encoding: 8bit\n"
    1515"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    16 "X-Generator: Poedit 1.6.5\n"
     16"X-Generator: Poedit 1.6.8\n"
    1717"X-Poedit-Basepath: .\n"
    1818"X-Poedit-SourceCharset: UTF-8\n"
     
    134134msgid "Loading..."
    135135msgstr ""
     136
     137#: ../el-gallery.php:133
     138msgid "Pause"
     139msgstr ""
  • el-gallery/trunk/readme.txt

    r975862 r977688  
    99Requires at least: 3.5
    1010Tested up to: 3.9.2
    11 Stable tag: 1.2.2
    12 Version: 1.2.2
     11Stable tag: 1.2.3
     12Version: 1.2.3
    1313License: GPLv2
    1414License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6262== Changelog ==
    6363
     64= Version 1.2.3 =
     65* Added a play/pause button.
     66* Fixed the image link system.
     67
    6468= Version 1.2.2 =
    6569* Fixed a major bug from previous version.
Note: See TracChangeset for help on using the changeset viewer.