Plugin Directory

Changeset 1935668


Ignore:
Timestamp:
09/04/2018 03:36:47 PM (7 years ago)
Author:
bostonu
Message:

Pulling in 2.3.9 and 2/3/10 0.7.1 changeset from Github

Location:
bu-slideshow/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • bu-slideshow/trunk/.travis.yml

    r1498422 r1935668  
    11language: php
    22
     3notifications:
     4  email:
     5    on_success: never
     6    on_failure: change
     7
     8branches:
     9  only:
     10    - master
     11
     12sudo: false
     13
    314php:
    4     - 5.6
    5     - 7.0
     15  - 7.1
     16  - 7.2
    617
    718env:
    8     - WP_VERSION=latest WP_MULTISITE=1
    9     - WP_VERSION=latest WP_MULTISITE=0
    10 
    11 matrix:
    12     include:
    13         - php: 5.3
    14           env: WP_VERSION=4.1.13 WP_MULTISITE=1
     19  - WP_VERSION=4.9.6 WP_MULTISITE=0
     20  - WP_VERSION=4.9.6 WP_MULTISITE=1
    1521
    1622before_script:
    17     - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
     23  - export PATH="$HOME/.composer/vendor/bin:$PATH"
     24  - |
     25    if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
     26      composer global require "phpunit/phpunit=5.7.*"
     27    else
     28      composer global require "phpunit/phpunit=4.8.*"
     29    fi
     30
     31  - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
    1832
    1933script: phpunit
    20 
    21 sudo: false
  • bu-slideshow/trunk/README.md

    r1498422 r1935668  
    11# BU Slideshow #
    2 **Contributors:** inderpreet99, awbauer, clrux, mgburns, gannondigital 
     2**Contributors:** [inderpreet99](https://profiles.wordpress.org/inderpreet99), [awbauer](https://profiles.wordpress.org/awbauer), [clrux](https://profiles.wordpress.org/clrux), [mgburns](https://profiles.wordpress.org/mgburns), [gannondigital](https://profiles.wordpress.org/gannondigital) 
    33**Tags:** slideshow, images, boston university, bu 
    44**Requires at least:** 3.5 
    5 **Tested up to:** 4.6.1 
    6 **Stable tag:** 2.3.8 
     5**Tested up to:** 4.9.6 
     6**Stable tag:** 2.3.10 
    77**License:** GPLv2 or later 
    88**License URI:** http://www.gnu.org/licenses/gpl-2.0.html 
     
    2727For developer documentation, feature roadmaps and more visit the [plugin repository on Github](https://github.com/bu-ist/bu-slideshow/).
    2828
    29 [![Build Status](https://travis-ci.org/bu-ist/bu-slideshow.svg)](https://travis-ci.org/bu-ist/bu-slideshow)
     29[Build Status](https://travis-ci.org/bu-ist/bu-slideshow)
    3030
    3131## Installation ##
     
    4040## Screenshots ##
    4141
    42 ###1. An intuitive, compact user interface allows drag-and-drop reordering of slides, easy addition of new slides, and expand/collapse toggles to edit details of individual slides.###
    43 ![An intuitive, compact user interface allows drag-and-drop reordering of slides, easy addition of new slides, and expand/collapse toggles to edit details of individual slides.](https://ps.w.org/bu-slideshow/assets/screenshot-1.png)
     42### 1. An intuitive, compact user interface allows drag-and-drop reordering of slides, easy addition of new slides, and expand/collapse toggles to edit details of individual slides. ###
     43![An intuitive, compact user interface allows drag-and-drop reordering of slides, easy addition of new slides, and expand/collapse toggles to edit details of individual slides.](http://ps.w.org/bu-slideshow/assets/screenshot-1.png)
    4444
    45 ###2. Select/remove images, edit titles, captions, links, and specify caption positioning and custom CSS classes all within a single location.###
    46 ![Select/remove images, edit titles, captions, links, and specify caption positioning and custom CSS classes all within a single location.](https://ps.w.org/bu-slideshow/assets/screenshot-2.png)
     45### 2. Select/remove images, edit titles, captions, links, and specify caption positioning and custom CSS classes all within a single location. ###
     46![Select/remove images, edit titles, captions, links, and specify caption positioning and custom CSS classes all within a single location.](http://ps.w.org/bu-slideshow/assets/screenshot-2.png)
    4747
    48 ###3. Full integration with the WordPress Media Library allows you to bulk-upload your images and select them from the Media Library, or upload individually as you build slides. Easily remove and/or select a different image using the WordPress tools you are familiar with.###
    49 ![Full integration with the WordPress Media Library allows you to bulk-upload your images and select them from the Media Library, or upload individually as you build slides. Easily remove and/or select a different image using the WordPress tools you are familiar with.](https://ps.w.org/bu-slideshow/assets/screenshot-3.png)
     48### 3. Full integration with the WordPress Media Library allows you to bulk-upload your images and select them from the Media Library, or upload individually as you build slides. Easily remove and/or select a different image using the WordPress tools you are familiar with. ###
     49![Full integration with the WordPress Media Library allows you to bulk-upload your images and select them from the Media Library, or upload individually as you build slides. Easily remove and/or select a different image using the WordPress tools you are familiar with.](http://ps.w.org/bu-slideshow/assets/screenshot-3.png)
    5050
    5151
    5252## Changelog ##
     53### 2.3.10 ###
     54* Added 'page_alt' post type support to enable the Slideshow UI wehn using the BU Versions plugin
     55
     56### 2.3.9 ###
     57* Fix formatting error in shortcode generation
     58
    5359### 2.3.8 ###
    5460* Fix UI issues since WP 4.4
  • bu-slideshow/trunk/bu-slideshow.php

    r1498422 r1935668  
    44Plugin URI: http://developer.bu.edu/bu-slideshow/
    55Description: Allows for the creation and display of animated slideshows. Uses sequence.js.
    6 Version: 2.3.8
     6Version: 2.3.10
    77Author: Boston University (IS&T)
    88Author URI: http://www.bu.edu/tech/
    99Requires at least: 3.5
    10 Tested up to: 4.6.1
     10Tested up to: 4.9.6
    1111*/
    1212
    13 define('BU_SLIDESHOW_VERSION', '2.3.8');
     13define('BU_SLIDESHOW_VERSION', '2.3.10');
     14
    1415define('BU_SLIDESHOW_BASEDIR', plugin_dir_path(__FILE__));
    1516define('BU_SLIDESHOW_BASEURL', plugin_dir_url(__FILE__));
     
    3738    static $custom_thumb_size = 'bu-slideshow-thumb';
    3839    static $post_support_slug = 'bu_slideshow';
    39     static $supported_post_types = array('page', 'post'); // post types to support Add Slideshow button
     40
     41    // explicitly add page_alt to allow slideshow ui with bu-versions
     42    static $supported_post_types = array('page', 'post', 'page_alt');// post types to support Add Slideshow button
    4043    static $editor_screens = array(); // other screens on which to include Add Slideshow modal
    4144    static $caption_positions = array(
  • bu-slideshow/trunk/gruntfile.js

    r1498422 r1935668  
    8585                }
    8686            }
    87         }
     87        },
     88
     89        wp_readme_to_markdown: {
     90            options: {
     91                screenshot_url: 'http://ps.w.org/{plugin}/assets/{screenshot}.png'
     92            },
     93            your_target: {
     94                files: {
     95                    'README.md': 'readme.txt'
     96                }
     97            },
     98        },
    8899    });
    89100
     
    93104    grunt.registerTask( 'build', [ 'styles', 'scripts', 'phplint' ] );
    94105
     106    // readme
     107    grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' );
     108    grunt.registerTask( 'readme', ['wp_readme_to_markdown'] );
     109
    95110    // Default task.
    96111    grunt.registerTask( 'default', [ 'build' ] );
  • bu-slideshow/trunk/interface/js/bu-slideshow-admin.js

    r1498422 r1935668  
    201201                }
    202202
    203                 html = '[bu_slideshow show_id="' + options.show_id + '" show_nav="' + options.show_nav + '" transition="' + options.transition + '" nav_style="' + options.nav_style + '" autoplay="' + options.autoplay  + '" transition_delay="' + options.transition_delay  + '" width="' + options.width + ' shuffle="'+options.shuffle +'"]';
     203                html = '[bu_slideshow show_id="' + options.show_id + '" show_nav="' + options.show_nav + '" transition="' + options.transition + '" nav_style="' + options.nav_style + '" autoplay="' + options.autoplay + '" transition_delay="' + options.transition_delay + '" width="' + options.width + '" shuffle="'+ options.shuffle +'"]';
    204204
    205205                window.send_to_editor("<br />" + html + "<br />");
  • bu-slideshow/trunk/interface/js/bu-slideshow-admin.min.js

    r1498422 r1935668  
    1 !function(a){function b(b,c){a("#bu-slideshow-editform-submit").prop("disabled","disabled"),window.reindexingSlides=!0;var d=/bu_slides\[([0-9]*)\](.*)/,e="";a(".bu-slideshow-slide").each(function(b,c){a(c).find("input, textarea, select").each(function(c,f){var g=a(f);e=g.attr("name"),e=e.replace(d,"bu_slides["+b+"]$2"),g.attr("name",e)})}),a("#bu-slideshow-editform-submit").prop("disabled",!1),window.reindexingSlides=!1}function c(b,c){var d=c.item.height(),e=c.item.width();a(".sortable-placeholder").outerHeight(d).width(e)}function d(b){var c={action:"bu_add_slide",order:b};a.post(ajaxurl,c,function(b){if(!b)return void f(buSlideshowLocalAdmin.addSlideFailError,a("#bu-slideshow-slidelist"));var c=a(b);c.appendTo("#bu-slideshow-slidelist ul"),e(c.find(".bu-slideshow-add-img")),a("#bu-slideshow-slidelist ul li:last-child .bu-slide-edit-container").slideDown()})}function e(b){imgHref=b.attr("href")+"&width=640&height="+.9*a(window).height(),b.attr("href",imgHref)}function f(b,c,d){"undefined"==typeof d&&(d=!1),a(".error").remove();var e='<div class="error"><p>'+b+"</p></div>";d?c.prepend(e):c.append(e),setTimeout(function(){a(".error").fadeOut(500)},1e3)}a(function(){var g=a("#bu-slideshow-newform"),h=a("#bu-slideshow-manage"),i=a("#bu-slideshow-slides"),j=a("#bu-slideshow-edit");if(g.length&&g.on("submit",function(){var b=a("#bu-new-slideshow-name").val();return!!b.length||(f("You must enter a name.",g),!1)}),h.length&&i.length){var k=function(b){var c={};if(c.container=i,c.list=a(b.list),!c.list.length)throw TypeError("Invalid element supplied to slideshow manager.");c.nonce=a("#bu_slideshow_nonce").val(),c.numShows=function(){return c.list.find("li").length},c.addEmptyMsg=function(){c.getUrl("add_url",function(a){var b="<li><p>"+buSlideshowLocalAdmin.noSlideshowsMsg+'</p><p><a class="button" href="'+a+'">'+buSlideshowLocalAdmin.addButtonText+"</a></p></li>";c.list.append(b)})},c.getUrl=function(b,c){var d={action:"bu_slideshow_get_url",url:b};a.post(ajaxurl,d,function(a){c(a)})},c.list.on("click",".bu-slideshow-delete",function(){var b=confirm(buSlideshowLocalAdmin.deleteConfirm);if(b){var d,e,f=a(this);d=f.attr("data-slideshow-id"),e={action:"bu_delete_slideshow",id:d,bu_slideshow_nonce:c.nonce},a.post(ajaxurl,e,function(a){c.deleteResponse(f,a)})}return!1}),c.deleteResponse=function(a,b){return b&&"0"!==b?(a.parent().parent("li").remove(),c.container.find(".error").remove(),c.numShows()||c.addEmptyMsg(),void 0):(f(buSlideshowLocalAdmin.deleteError,c.container),!1)}};k({list:"#bu-slideshow-manage"})}if(a("#bu_slideshow_modal_button").length&&"function"==typeof BuModal&&"function"==typeof SlideshowSelector){var l=new BuModal({el:"#bu_slideshow_modal_wrap",height:"80%"}),m=new SlideshowSelector("#bu_slideshow_modal_wrap .bu-slideshow-selector");a("#bu_slideshow_modal_button").on("click",function(){l.open()}),a("#bu_slideshow_modal_wrap").on("click","#bu_insert_slideshow",function(a){var b,c;return m.ui.parent().find(".error").remove(),b=m.getOptions(),parseInt(b.show_id)?(c='[bu_slideshow show_id="'+b.show_id+'" show_nav="'+b.show_nav+'" transition="'+b.transition+'" nav_style="'+b.nav_style+'" autoplay="'+b.autoplay+'" transition_delay="'+b.transition_delay+'" width="'+b.width+' shuffle="'+b.shuffle+'"]',window.send_to_editor("<br />"+c+"<br />"),m.reset(),l.close(),!1):(f(buSlideshowLocalAdmin.noneSelectedError,m.ui.parent()),!1)})}j.length&&(a(".bu-slideshow-slide:first-child").addClass("open"),a("#bu-slideshow-slidelist").on("click",".bu-slide-expand",function(){var b=a(this).parents(".bu-slideshow-slide").first(),c=b.find(".bu-slide-edit-container");return b.hasClass("open")?(b.removeClass("open"),c.slideUp(300)):(b.addClass("open"),c.slideDown(300)),!1}),a("#bu-slideshow-slidelist").on("keyup",".bu-slideshow-title-input",function(){var b=a(this);b.parents(".bu-slideshow-slide").find(".bu-slide-title").text(b.val())}),a("#bu-slideshow-editform").on("submit",function(){var b=a("#bu_slideshow_name").val().replace(" ","");return b?!window.reindexingSlides:(f(buSlideshowLocalAdmin.emptyNameError,a(this)),!1)}),a("#bu-slideshow-slidelist ul").sortable({stop:b,placeholder:"sortable-placeholder",start:c}),a("#bu-slideshow-add-slide").on("click",function(){var a=j.find("#bu-slideshow-slidelist li").length;return d(a),!1}),a("#bu-slideshow-slidelist").on("click",".bu-slide-delete-button",function(){return confirm(buSlideshowLocalAdmin.deleteConfirmSlide)&&(a(this).parents().parent(".bu-slideshow-slide").remove(),b()),!1}),window.buUploaders={init:function(b){var c=a(b);if(!c.length)throw new TypeError("No valid button identified.");this.slide=c.parents(".bu-slideshow-slide"),this.populateFields()},populateFields:function(){this.addButton=this.slide.find(".bu-slideshow-add-img"),this.removeButton=this.slide.find(".bu-slideshow-remove-img"),this.imgIdField=this.slide.find(".bu-slideshow-img-id"),this.imgSizeField=this.slide.find(".bu-slideshow-img-size"),this.imgMeta=this.slide.find(".bu-slide-meta"),this.thumbContainers=this.slide.find(".bu-slide-thumb, .bu-slide-header-thumb")},select:function(){this.newHandleImageSelect()},remove:function(){this.thumbContainers.each(function(b,c){a(c).find("img").remove()}),this.imgIdField.val(""),this.imgSizeField.val(""),this.imgMeta.hide(),this.removeButton.hide()},handleImgThumbResponse:function(b){var c,d;b&&"0"!==b?(this.thumbContainers.each(function(e,f){d=a(f),c=d.find("img"),c.length?c.replaceWith(b):d.append(b)}),this.removeButton.show()):f(buSlideshowLocalAdmin.thumbFailError,this.slide.find(".bu-slide-edit-container"),!0)},newHandleImageSelect:function(){var a=this;"object"!=typeof buUploadFrame&&(a.modifyWPSelectFrame(),buUploadFrame=wp.media.frames.bu_slideshow_frame=wp.media({frame:"select",state:"bu-slideshow-image",states:[new wp.media.controller.BuSlideshowImage],button:{text:buSlideshowLocalAdmin.mediaUploadButton},library:{type:"image"}}),buUploadFrame.state("bu-slideshow-image").on("select",function(){var b,c,d;b=this.get("selection").first(),c=this.display(b).attributes,d=b.toJSON().id,a.getImgThumb(d),a.setImageDetails(d,c.size),a.slide.find(".bu-slide-meta").hide()})),buUploadFrame.open()},modifyWPSelectFrame:function(){wp.media.controller.BuSlideshowImage=wp.media.controller.Library.extend({defaults:_.defaults({id:"bu-slideshow-image",library:wp.media.query({type:"image"}),multiple:!1,priority:60,displaySettings:!0,displayUserSettings:!0,title:buSlideshowLocalAdmin.mediaUploadTitle},wp.media.controller.Library.prototype.defaults)})},getImgThumb:function(b){var c,d=this;c={action:"bu_get_slide_thumb",image_id:b},a.post(ajaxurl,c,function(a){d.handleImgThumbResponse(a)})},setImageDetails:function(a,b){this.imgIdField.val(a),this.imgSizeField.val(b)}},a("#bu-slideshow-slidelist").on("click",".bu-slideshow-add-img",function(a){return window.buUploaders.init(this),window.buUploaders.select(),!1}),a("#bu-slideshow-slidelist").on("click",".bu-slideshow-remove-img",function(){return window.buUploaders.init(this),window.buUploaders.remove(),!1}),a("#bu-slideshow-slidelist .bu-slideshow-add-img").each(function(){e(a(this))})),a("#bu_slideshow_show_nav").on("click",function(){a(".bu_slideshow_nav_style").toggle()})})}(jQuery);
     1!function(a){function b(b,c){a("#bu-slideshow-editform-submit").prop("disabled","disabled"),window.reindexingSlides=!0;var d=/bu_slides\[([0-9]*)\](.*)/,e="";a(".bu-slideshow-slide").each(function(b,c){a(c).find("input, textarea, select").each(function(c,f){var g=a(f);e=g.attr("name"),e=e.replace(d,"bu_slides["+b+"]$2"),g.attr("name",e)})}),a("#bu-slideshow-editform-submit").prop("disabled",!1),window.reindexingSlides=!1}function c(b,c){var d=c.item.height(),e=c.item.width();a(".sortable-placeholder").outerHeight(d).width(e)}function d(b){var c={action:"bu_add_slide",order:b};a.post(ajaxurl,c,function(b){if(!b)return void f(buSlideshowLocalAdmin.addSlideFailError,a("#bu-slideshow-slidelist"));var c=a(b);c.appendTo("#bu-slideshow-slidelist ul"),e(c.find(".bu-slideshow-add-img")),a("#bu-slideshow-slidelist ul li:last-child .bu-slide-edit-container").slideDown()})}function e(b){imgHref=b.attr("href")+"&width=640&height="+.9*a(window).height(),b.attr("href",imgHref)}function f(b,c,d){void 0===d&&(d=!1),a(".error").remove();var e='<div class="error"><p>'+b+"</p></div>";d?c.prepend(e):c.append(e),setTimeout(function(){a(".error").fadeOut(500)},1e3)}a(function(){var g=a("#bu-slideshow-newform"),h=a("#bu-slideshow-manage"),i=a("#bu-slideshow-slides"),j=a("#bu-slideshow-edit");if(g.length&&g.on("submit",function(){return!!a("#bu-new-slideshow-name").val().length||(f("You must enter a name.",g),!1)}),h.length&&i.length){(function(b){var c={};if(c.container=i,c.list=a(b.list),!c.list.length)throw TypeError("Invalid element supplied to slideshow manager.");c.nonce=a("#bu_slideshow_nonce").val(),c.numShows=function(){return c.list.find("li").length},c.addEmptyMsg=function(){c.getUrl("add_url",function(a){var b="<li><p>"+buSlideshowLocalAdmin.noSlideshowsMsg+'</p><p><a class="button" href="'+a+'">'+buSlideshowLocalAdmin.addButtonText+"</a></p></li>";c.list.append(b)})},c.getUrl=function(b,c){var d={action:"bu_slideshow_get_url",url:b};a.post(ajaxurl,d,function(a){c(a)})},c.list.on("click",".bu-slideshow-delete",function(){if(confirm(buSlideshowLocalAdmin.deleteConfirm)){var b,d,e=a(this);b=e.attr("data-slideshow-id"),d={action:"bu_delete_slideshow",id:b,bu_slideshow_nonce:c.nonce},a.post(ajaxurl,d,function(a){c.deleteResponse(e,a)})}return!1}),c.deleteResponse=function(a,b){if(!b||"0"===b)return f(buSlideshowLocalAdmin.deleteError,c.container),!1;a.parent().parent("li").remove(),c.container.find(".error").remove(),c.numShows()||c.addEmptyMsg()}})({list:"#bu-slideshow-manage"})}if(a("#bu_slideshow_modal_button").length&&"function"==typeof BuModal&&"function"==typeof SlideshowSelector){var k=new BuModal({el:"#bu_slideshow_modal_wrap",height:"80%"}),l=new SlideshowSelector("#bu_slideshow_modal_wrap .bu-slideshow-selector");a("#bu_slideshow_modal_button").on("click",function(){k.open()}),a("#bu_slideshow_modal_wrap").on("click","#bu_insert_slideshow",function(a){var b,c;return l.ui.parent().find(".error").remove(),b=l.getOptions(),parseInt(b.show_id)?(c='[bu_slideshow show_id="'+b.show_id+'" show_nav="'+b.show_nav+'" transition="'+b.transition+'" nav_style="'+b.nav_style+'" autoplay="'+b.autoplay+'" transition_delay="'+b.transition_delay+'" width="'+b.width+'" shuffle="'+b.shuffle+'"]',window.send_to_editor("<br />"+c+"<br />"),l.reset(),k.close(),!1):(f(buSlideshowLocalAdmin.noneSelectedError,l.ui.parent()),!1)})}j.length&&(a(".bu-slideshow-slide:first-child").addClass("open"),a("#bu-slideshow-slidelist").on("click",".bu-slide-expand",function(){var b=a(this).parents(".bu-slideshow-slide").first(),c=b.find(".bu-slide-edit-container");return b.hasClass("open")?(b.removeClass("open"),c.slideUp(300)):(b.addClass("open"),c.slideDown(300)),!1}),a("#bu-slideshow-slidelist").on("keyup",".bu-slideshow-title-input",function(){var b=a(this);b.parents(".bu-slideshow-slide").find(".bu-slide-title").text(b.val())}),a("#bu-slideshow-editform").on("submit",function(){return a("#bu_slideshow_name").val().replace(" ","")?!window.reindexingSlides:(f(buSlideshowLocalAdmin.emptyNameError,a(this)),!1)}),a("#bu-slideshow-slidelist ul").sortable({stop:b,placeholder:"sortable-placeholder",start:c}),a("#bu-slideshow-add-slide").on("click",function(){return d(j.find("#bu-slideshow-slidelist li").length),!1}),a("#bu-slideshow-slidelist").on("click",".bu-slide-delete-button",function(){return confirm(buSlideshowLocalAdmin.deleteConfirmSlide)&&(a(this).parents().parent(".bu-slideshow-slide").remove(),b()),!1}),window.buUploaders={init:function(b){var c=a(b);if(!c.length)throw new TypeError("No valid button identified.");this.slide=c.parents(".bu-slideshow-slide"),this.populateFields()},populateFields:function(){this.addButton=this.slide.find(".bu-slideshow-add-img"),this.removeButton=this.slide.find(".bu-slideshow-remove-img"),this.imgIdField=this.slide.find(".bu-slideshow-img-id"),this.imgSizeField=this.slide.find(".bu-slideshow-img-size"),this.imgMeta=this.slide.find(".bu-slide-meta"),this.thumbContainers=this.slide.find(".bu-slide-thumb, .bu-slide-header-thumb")},select:function(){this.newHandleImageSelect()},remove:function(){this.thumbContainers.each(function(b,c){a(c).find("img").remove()}),this.imgIdField.val(""),this.imgSizeField.val(""),this.imgMeta.hide(),this.removeButton.hide()},handleImgThumbResponse:function(b){var c,d;b&&"0"!==b?(this.thumbContainers.each(function(e,f){d=a(f),c=d.find("img"),c.length?c.replaceWith(b):d.append(b)}),this.removeButton.show()):f(buSlideshowLocalAdmin.thumbFailError,this.slide.find(".bu-slide-edit-container"),!0)},newHandleImageSelect:function(){var a=this;"object"!=typeof buUploadFrame&&(a.modifyWPSelectFrame(),buUploadFrame=wp.media.frames.bu_slideshow_frame=wp.media({frame:"select",state:"bu-slideshow-image",states:[new wp.media.controller.BuSlideshowImage],button:{text:buSlideshowLocalAdmin.mediaUploadButton},library:{type:"image"}}),buUploadFrame.state("bu-slideshow-image").on("select",function(){var b,c,d;b=this.get("selection").first(),c=this.display(b).attributes,d=b.toJSON().id,a.getImgThumb(d),a.setImageDetails(d,c.size),a.slide.find(".bu-slide-meta").hide()})),buUploadFrame.open()},modifyWPSelectFrame:function(){wp.media.controller.BuSlideshowImage=wp.media.controller.Library.extend({defaults:_.defaults({id:"bu-slideshow-image",library:wp.media.query({type:"image"}),multiple:!1,priority:60,displaySettings:!0,displayUserSettings:!0,title:buSlideshowLocalAdmin.mediaUploadTitle},wp.media.controller.Library.prototype.defaults)})},getImgThumb:function(b){var c,d=this;c={action:"bu_get_slide_thumb",image_id:b},a.post(ajaxurl,c,function(a){d.handleImgThumbResponse(a)})},setImageDetails:function(a,b){this.imgIdField.val(a),this.imgSizeField.val(b)}},a("#bu-slideshow-slidelist").on("click",".bu-slideshow-add-img",function(a){return window.buUploaders.init(this),window.buUploaders.select(),!1}),a("#bu-slideshow-slidelist").on("click",".bu-slideshow-remove-img",function(){return window.buUploaders.init(this),window.buUploaders.remove(),!1}),a("#bu-slideshow-slidelist .bu-slideshow-add-img").each(function(){e(a(this))})),a("#bu_slideshow_show_nav").on("click",function(){a(".bu_slideshow_nav_style").toggle()})})}(jQuery);
  • bu-slideshow/trunk/interface/js/bu-slideshow.min.js

    r1498422 r1935668  
    1 !function(a){function b(){a(".bu-slideshow-container").each(function(){var b,c=a(this).find("li .bu-slide-container"),d=0,e=0;c.find("*").each(function(c,f){b=a(f),e=b.height(),e>d&&(d=e)}),c.each(function(b,c){a(c).height(d)}),a(this).height(d),a(this).find("ul.bu-slideshow").height(d)})}function c(a){if(!(this instanceof c))throw new ReferenceError('Invoked constructor as regular function. Use the "new" operator.');if(!a.show)throw new TypeError("Did not pass a valid Sequence object.");if(!a.container)throw new ReferenceError("Did not pass a valid container element.");this.sequence=a.show,this.container=a.container,this.init(a)}var d=jQuery(window).height(),e=jQuery(window).width(),f={};window.BuSlideshow=c,c.prototype.init=function(c){var d=this;c||(c={}),this.sequence.afterLoaded=function(){var a=d.container.parent("div.bu-slideshow-container");a.find(".slideshow-loader.active").removeClass("active"),a.find(".bu-slideshow-navigation-container").css("display","inline-block"),b()},this.sequence.beforeNextFrameAnimatesIn=function(){d.pager&&d.pager.setActive()},this.pager=!!a("#"+c.pager).length&&a("#"+c.pager),this.pager&&this.initPager(),this.arrows=!!a("#"+c.arrows).length&&a("#"+c.arrows),this.arrows&&this.initArrows()},c.prototype.initPager=function(){var b=this;this.pager.find("li a").bind("click",function(){var c=a(this).attr("id").replace("pager-","");return b.sequence.nextFrameID=c,b.sequence.goTo(c),!1}),this.pager.setActive=function(a){a=b.sequence.nextFrameID,this.find("a").removeClass("active"),this.find("a#pager-"+a).addClass("active")}},c.prototype.initArrows=function(){var a=this;this.arrows.find(".bu-slideshow-arrow-left").bind("click",function(){return a.sequence.prev(),!1}).end().find(".bu-slideshow-arrow-right").bind("click",function(){return a.sequence.next(),!1})},jQuery(document).ready(function(a){a(".bu-slideshow-container").each(function(b,d){var e,g,h,i,j,k,l,m=a(this),n=!1;e=m.find(".bu-slideshow-slides"),g=m.find("ul.bu-slideshow-navigation").attr("id"),h=m.find("div.bu-slideshow-arrows").attr("id"),k=m.attr("data-slideshow-name")?m.attr("data-slideshow-name"):b,l=m.attr("data-slideshow-delay")?m.attr("data-slideshow-delay"):5e3,m.hasClass("autoplay")&&(n=!0),i={autoPlay:n,autoPlayDelay:l,fallback:{theme:"slide"},swipeEvents:{left:"next",right:"prev"}},j={show:e.sequence(i).data("sequence"),container:e,pager:g,arrows:h};try{f[k]=new c(j)}catch(a){}}),a(window).resize(function(){var c,f;c=a(window).height(),f=a(window).width(),c===d&&f===e||(d=c,e=f,b())})})}(jQuery);
     1!function(a){function b(){a(".bu-slideshow-container").each(function(){var b,c=a(this).find("li .bu-slide-container"),d=0,e=0;c.find("*").each(function(c,f){b=a(f),(e=b.height())>d&&(d=e)}),c.each(function(b,c){a(c).height(d)}),a(this).height(d),a(this).find("ul.bu-slideshow").height(d)})}function c(a){if(!(this instanceof c))throw new ReferenceError('Invoked constructor as regular function. Use the "new" operator.');if(!a.show)throw new TypeError("Did not pass a valid Sequence object.");if(!a.container)throw new ReferenceError("Did not pass a valid container element.");this.sequence=a.show,this.container=a.container,this.init(a)}var d=jQuery(window).height(),e=jQuery(window).width(),f={};window.BuSlideshow=c,c.prototype.init=function(c){var d=this;c||(c={}),this.sequence.afterLoaded=function(){var a=d.container.parent("div.bu-slideshow-container");a.find(".slideshow-loader.active").removeClass("active"),a.find(".bu-slideshow-navigation-container").css("display","inline-block"),b()},this.sequence.beforeNextFrameAnimatesIn=function(){d.pager&&d.pager.setActive()},this.pager=!!a("#"+c.pager).length&&a("#"+c.pager),this.pager&&this.initPager(),this.arrows=!!a("#"+c.arrows).length&&a("#"+c.arrows),this.arrows&&this.initArrows()},c.prototype.initPager=function(){var b=this;this.pager.find("li a").bind("click",function(){var c=a(this).attr("id").replace("pager-","");return b.sequence.nextFrameID=c,b.sequence.goTo(c),!1}),this.pager.setActive=function(a){a=b.sequence.nextFrameID,this.find("a").removeClass("active"),this.find("a#pager-"+a).addClass("active")}},c.prototype.initArrows=function(){var a=this;this.arrows.find(".bu-slideshow-arrow-left").bind("click",function(){return a.sequence.prev(),!1}).end().find(".bu-slideshow-arrow-right").bind("click",function(){return a.sequence.next(),!1})},jQuery(document).ready(function(a){a(".bu-slideshow-container").each(function(b,d){var e,g,h,i,j,k,l,m=a(this),n=!1;e=m.find(".bu-slideshow-slides"),g=m.find("ul.bu-slideshow-navigation").attr("id"),h=m.find("div.bu-slideshow-arrows").attr("id"),k=m.attr("data-slideshow-name")?m.attr("data-slideshow-name"):b,l=m.attr("data-slideshow-delay")?m.attr("data-slideshow-delay"):5e3,m.hasClass("autoplay")&&(n=!0),i={autoPlay:n,autoPlayDelay:l,fallback:{theme:"slide"},swipeEvents:{left:"next",right:"prev"}},j={show:e.sequence(i).data("sequence"),container:e,pager:g,arrows:h};try{f[k]=new c(j)}catch(a){}}),a(window).resize(function(){var c,f;c=a(window).height(),f=a(window).width(),c===d&&f===e||(d=c,e=f,b())})})}(jQuery);
  • bu-slideshow/trunk/package.json

    r1498422 r1935668  
    1010        "grunt-contrib-cssmin": "^0.12.2",
    1111        "grunt-phplint": "^0.0.8",
    12         "matchdep": "^0.3.0"
     12        "matchdep": "^0.3.0",
     13        "grunt-wp-readme-to-markdown": "~2.0.1"
    1314    },
    1415    "repository": {
  • bu-slideshow/trunk/readme.txt

    r1498422 r1935668  
    33Tags: slideshow, images, boston university, bu
    44Requires at least: 3.5
    5 Tested up to: 4.6.1
    6 Stable tag: 2.3.8
     5Tested up to: 4.9.6
     6Stable tag: 2.3.10
     7
    78License: GPLv2 or later
    89License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4546
    4647== Changelog ==
     48= 2.3.10 =
     49* Added 'page_alt' post type support to enable slides with BU Versions plugin
     50
     51= 2.3.9 =
     52* Fix formatting error in shortcode generation
     53
    4754= 2.3.8 =
    4855* Fix UI issues since WP 4.4
Note: See TracChangeset for help on using the changeset viewer.