Plugin Directory

Changeset 790495


Ignore:
Timestamp:
10/19/2013 01:44:43 PM (12 years ago)
Author:
toppa
Message:

version 3.4.6

Location:
shashin/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • shashin/trunk/ShashinWp.php

    r785273 r790495  
    22
    33class ShashinWp {
    4     private $version = '3.4.5';
     4    private $version = '3.4.6';
    55
    66    public function __construct() {
  • shashin/trunk/public/ShashinPhotoDisplayerPicasaPrettyphoto.php

    r687969 r790495  
    1313        }
    1414
    15         $this->linkRel .= "prettyPhoto[$groupNumber]";
     15        $this->linkRel .= "shashinPrettyPhoto[$groupNumber]";
    1616        return $this->linkRel;
    1717    }
  • shashin/trunk/public/display/prettyphoto/jquery.prettyPhoto.js

    r775272 r790495  
    66------------------------------------------------------------------------- */
    77(function($) {
    8     $.prettyPhoto = {version: '3.1.5'};
     8    $.shashinPrettyPhoto = {version: '3.1.5'};
    99   
    1010    $.fn.shashinPrettyPhoto = function(pp_settings) {
     
    3636            ie6_fallback: true,
    3737            /* edit for Shashin - added pp_closeMoble and customized social_tools */
    38             markup: '<div class="pp_pic_holder"> \
     38            markup: '<div class="shashin_pp_pic_holder"> \
    3939                        <div class="ppt">&nbsp;</div> \
    4040                        <div class="pp_top"> \
     
    119119                        switch(e.keyCode){
    120120                            case 37:
    121                                 $.prettyPhoto.changePage('previous');
     121                                $.shashinPrettyPhoto.changePage('previous');
    122122                                e.preventDefault();
    123123                                break;
    124124                            case 39:
    125                                 $.prettyPhoto.changePage('next');
     125                                $.shashinPrettyPhoto.changePage('next');
    126126                                e.preventDefault();
    127127                                break;
    128128                            case 27:
    129129                                if(!settings.modal)
    130                                 $.prettyPhoto.close();
     130                                $.shashinPrettyPhoto.close();
    131131                                e.preventDefault();
    132132                                break;
     
    141141        * Initialize prettyphoto.
    142142        */
    143         $.prettyPhoto.initialize = function() {
     143        $.shashinPrettyPhoto.initialize = function() {
    144144           
    145145            settings = pp_settings;
     
    175175           
    176176           
    177             $.prettyPhoto.open();
     177            $.shashinPrettyPhoto.open();
    178178           
    179179            return false;
     
    187187        * @param description {String,Array} The description to be displayed with the picture, can also be an array containing all the descriptions.
    188188        */
    189         $.prettyPhoto.open = function(event) {
     189        $.shashinPrettyPhoto.open = function(event) {
    190190            if(typeof settings == "undefined"){ // Means it's an API call, need to manually get the settings and set the variables
    191191                settings = pp_settings;
     
    296296                        imgPreloader.onerror = function(){
    297297                            alert('Image cannot be loaded. Make sure the path is correct and image exist.');
    298                             $.prettyPhoto.close();
     298                            $.shashinPrettyPhoto.close();
    299299                        };
    300300                   
     
    417417        * @param direction {String} Direction of the paging, previous or next.
    418418        */
    419         $.prettyPhoto.changePage = function(direction){
     419        $.shashinPrettyPhoto.changePage = function(direction){
    420420            currentGalleryPage = 0;
    421421           
     
    437437            }
    438438
    439             _hideContent(function(){ $.prettyPhoto.open(); });
     439            _hideContent(function(){ $.shashinPrettyPhoto.open(); });
    440440        };
    441441
     
    445445        * @param direction {String} Direction of the paging, previous or next.
    446446        */
    447         $.prettyPhoto.changeGalleryPage = function(direction){
     447        $.shashinPrettyPhoto.changeGalleryPage = function(direction){
    448448            if(direction=='next'){
    449449                currentGalleryPage ++;
     
    469469        * Start the slideshow...
    470470        */
    471         $.prettyPhoto.startSlideshow = function(){
     471        $.shashinPrettyPhoto.startSlideshow = function(){
    472472            if(typeof pp_slideshow == 'undefined'){
    473473                $pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){
    474                     $.prettyPhoto.stopSlideshow();
     474                    $.shashinPrettyPhoto.stopSlideshow();
    475475                    return false;
    476476                });
    477                 pp_slideshow = setInterval($.prettyPhoto.startSlideshow,settings.slideshow);
     477                pp_slideshow = setInterval($.shashinPrettyPhoto.startSlideshow,settings.slideshow);
    478478            }else{
    479                 $.prettyPhoto.changePage('next');   
     479                $.shashinPrettyPhoto.changePage('next');
    480480            };
    481481        }
     
    485485        * Stop the slideshow...
    486486        */
    487         $.prettyPhoto.stopSlideshow = function(){
     487        $.shashinPrettyPhoto.stopSlideshow = function(){
    488488            $pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){
    489                 $.prettyPhoto.startSlideshow();
     489                $.shashinPrettyPhoto.startSlideshow();
    490490                return false;
    491491            });
     
    498498        * Closes prettyphoto.
    499499        */
    500         $.prettyPhoto.close = function(){
     500        $.shashinPrettyPhoto.close = function(){
    501501            if($pp_overlay.is(":animated")) return;
    502502           
    503             $.prettyPhoto.stopSlideshow();
     503            $.shashinPrettyPhoto.stopSlideshow();
    504504           
    505505            $pp_pic_holder.stop().find('object,embed').css('visibility','hidden');
    506506           
    507             $('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){ $(this).remove(); });
     507            $('div.shashin_pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){ $(this).remove(); });
    508508           
    509509            $pp_overlay.fadeOut(settings.animation_speed, function(){
     
    567567                }
    568568               
    569                 if(settings.autoplay_slideshow && !pp_slideshow && !pp_open) $.prettyPhoto.startSlideshow();
     569                if(settings.autoplay_slideshow && !pp_slideshow && !pp_open) $.shashinPrettyPhoto.startSlideshow();
    570570               
    571571                settings.changepicturecallback(); // Callback!
     
    775775                goToPage = (Math.floor(set_position/itemsPerPage) < totalPage) ? Math.floor(set_position/itemsPerPage) : totalPage;
    776776
    777                 $.prettyPhoto.changeGalleryPage(goToPage);
     777                $.shashinPrettyPhoto.changeGalleryPage(goToPage);
    778778               
    779779                $pp_gallery_li.filter(':eq('+set_position+')').addClass('selected');
     
    793793            $('body').append(settings.markup); // Inject the markup
    794794           
    795             $pp_pic_holder = $('.pp_pic_holder') , $ppt = $('.ppt'), $pp_overlay = $('div.pp_overlay'); // Set my global selectors
     795            $pp_pic_holder = $('.shashin_pp_pic_holder') , $ppt = $('.ppt'), $pp_overlay = $('div.pp_overlay'); // Set my global selectors
    796796           
    797797            // Inject the inline gallery!
     
    815815                $pp_pic_holder.find('#pp_full_res').after(toInject);
    816816               
    817                 $pp_gallery = $('.pp_pic_holder .pp_gallery'), $pp_gallery_li = $pp_gallery.find('li'); // Set the gallery selectors
     817                $pp_gallery = $('.shashin_pp_pic_holder .pp_gallery'), $pp_gallery_li = $pp_gallery.find('li'); // Set the gallery selectors
    818818               
    819819                $pp_gallery.find('.pp_arrow_next').click(function(){
    820                     $.prettyPhoto.changeGalleryPage('next');
    821                     $.prettyPhoto.stopSlideshow();
     820                    $.shashinPrettyPhoto.changeGalleryPage('next');
     821                    $.shashinPrettyPhoto.stopSlideshow();
    822822                    return false;
    823823                });
    824824               
    825825                $pp_gallery.find('.pp_arrow_previous').click(function(){
    826                     $.prettyPhoto.changeGalleryPage('previous');
    827                     $.prettyPhoto.stopSlideshow();
     826                    $.shashinPrettyPhoto.changeGalleryPage('previous');
     827                    $.shashinPrettyPhoto.stopSlideshow();
    828828                    return false;
    829829                });
     
    842842                        .find('a')
    843843                        .click(function(){
    844                             $.prettyPhoto.changePage(i);
    845                             $.prettyPhoto.stopSlideshow();
     844                            $.shashinPrettyPhoto.changePage(i);
     845                            $.shashinPrettyPhoto.stopSlideshow();
    846846                            return false;
    847847                        });
     
    854854                $pp_pic_holder.find('.pp_nav').prepend('<a href="#" class="pp_play">Play</a>')
    855855                $pp_pic_holder.find('.pp_nav .pp_play').click(function(){
    856                     $.prettyPhoto.startSlideshow();
     856                    $.shashinPrettyPhoto.startSlideshow();
    857857                    return false;
    858858                });
    859859            }
    860860           
    861             $pp_pic_holder.attr('class','pp_pic_holder ' + settings.theme); // Set the proper theme
     861            $pp_pic_holder.attr('class','shashin_pp_pic_holder ' + settings.theme); // Set the proper theme
    862862           
    863863            $pp_overlay
     
    868868                    })
    869869                .bind('click',function(){
    870                     if(!settings.modal) $.prettyPhoto.close();
     870                    if(!settings.modal) $.shashinPrettyPhoto.close();
    871871                });
    872872
    873             $('a.pp_close').bind('click',function(){ $.prettyPhoto.close(); return false; });
     873            $('a.pp_close').bind('click',function(){ $.shashinPrettyPhoto.close(); return false; });
    874874
    875875
     
    885885                    };
    886886               
    887                     _hideContent(function(){ $.prettyPhoto.open(); });
     887                    _hideContent(function(){ $.shashinPrettyPhoto.open(); });
    888888           
    889889                    return false;
     
    892892       
    893893            $pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){
    894                 $.prettyPhoto.changePage('previous');
    895                 $.prettyPhoto.stopSlideshow();
     894                $.shashinPrettyPhoto.changePage('previous');
     895                $.shashinPrettyPhoto.stopSlideshow();
    896896                return false;
    897897            });
    898898       
    899899            $pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){
    900                 $.prettyPhoto.changePage('next');
    901                 $.prettyPhoto.stopSlideshow();
     900                $.shashinPrettyPhoto.changePage('next');
     901                $.shashinPrettyPhoto.stopSlideshow();
    902902                return false;
    903903            });
     
    920920        }
    921921       
    922         return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize); // Return the jQuery object for chaining. The unbind method is used to avoid click conflict when the plugin is called more than once
     922        return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.shashinPrettyPhoto.initialize); // Return the jQuery object for chaining. The unbind method is used to avoid click conflict when the plugin is called more than once
    923923    };
    924924   
  • shashin/trunk/public/display/prettyphoto/prettyPhoto.css

    r782190 r790495  
    1515
    1616@media screen and (max-device-width: 768px) {
    17     .pp_pic_holder {
     17    .shashin_pp_pic_holder {
    1818        width: 100% !important;
    1919        left: 0 !important;
     
    451451------------------------------------------------------------------------- */
    452452
    453     div.pp_pic_holder a:focus { outline:none; }
     453    div.shashin_pp_pic_holder a:focus { outline:none; }
    454454
    455455    div.pp_overlay {
     
    463463    }
    464464   
    465     div.pp_pic_holder {
     465    div.shashin_pp_pic_holder {
    466466        display: none;
    467467        position: absolute;
  • shashin/trunk/public/display/shashin.js

    r785273 r790495  
    4747        }
    4848
    49         $("a[rel^='prettyPhoto']").shashinPrettyPhoto(prettyPhotoSettings);
     49        $("a[rel^='shashinPrettyPhoto']").shashinPrettyPhoto(prettyPhotoSettings);
    5050    }
    5151
     
    143143
    144144                if (shashinJs.imageDisplayer == 'prettyphoto') {
    145                     $('#shashinAlbumPhotos_' + linkIdParts[2] + " a[rel^='prettyphoto']").shashinPrettyPhoto(prettyPhotoSettings);
     145                    $('#shashinAlbumPhotos_' + linkIdParts[2] + " a[rel^='shashinPrettyPhoto']").shashinPrettyPhoto(prettyPhotoSettings);
    146146                }
    147147
     
    264264                            );
    265265
    266                             // truncate captions
    267                             $shashinCaption.trunk8();
     266                            // parsing html when truncating captions is expensive, so do it only
     267                            // where we need to (on album captions)
     268                            if ($shashinCaption.find('.shashinAlbumCaptionTitle').length > 0) {
     269                                $shashinCaption.trunk8({ parseHTML: true });
     270                            }
     271                            else {
     272                                $shashinCaption.trunk8();
     273                            }
    268274
    269275                            // don't display captions if they'll cover more than 45% of the thumbnail
  • shashin/trunk/readme.txt

    r785273 r790495  
    55Requires at least: 3.0
    66Tested up to: 3.6.1
    7 Stable tag: 3.4.5
     7Stable tag: 3.4.6
    88License: GPLv2 or later
    99
     
    5959* PHP 5.1.2 or higher
    6060* mySQL 4.1 or higher
     61* jQuery 1.7 or higher
    6162
    6263**First time installation**
     
    9394
    9495== Changelog ==
     96
     97= 3.4.6 =
     98
     99* Bug fix: do smart truncation of text in album thumbnail captions (don't truncate the HTML!)
     100* Do more namepsacing of Shashin's version of prettyPhoto, to avoid conflicts with any already installed versions of prettyPhoto
     101* Add jQuery version requirement to readme
    95102
    96103= 3.4.5 =
  • shashin/trunk/start.php

    r785273 r790495  
    55Description: A plugin for integrating photos and videos from Picasa, YouTube, and Twitpic in WordPress.
    66Author: Michael Toppa
    7 Version: 3.4.5
     7Version: 3.4.6
    88Author URI: http://www.toppa.com
    99License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.