Version Description
Download this release
Release Info
Developer | gn_themes |
Plugin | Shortcodes Ultimate |
Version | 5.9.7 |
Comparing to | |
See all releases |
Code changes from version 5.9.6 to 5.9.7
- changelog.txt +17 -0
- inc/core/assets.php +6 -1
- includes/js/shortcodes/index.js +1 -1
- includes/js/shortcodes/index.js.map +1 -1
- includes/shortcodes/posts.php +12 -7
- languages/shortcodes-ultimate.pot +1 -9
- readme.txt +8 -5
- shortcodes-ultimate.php +2 -2
changelog.txt
CHANGED
@@ -1,3 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
### 5.9.5
|
2 |
|
3 |
Added compatiblity with WordPress 5.6
|
1 |
+
### 5.9.7
|
2 |
+
|
3 |
+
**What's new**
|
4 |
+
|
5 |
+
- PHP8 support
|
6 |
+
- New filter `su/shortcode/posts/wp_query_args` that can be used to modify `[su_posts]` query
|
7 |
+
- New filter `su/shortcode/posts/allowed_template_locations` that can be used to add custom template paths in the `[su_posts]` shortcode
|
8 |
+
- Improved handling of nested dynamic elements within Tabs
|
9 |
+
|
10 |
+
|
11 |
+
### 5.9.6
|
12 |
+
|
13 |
+
Added compatiblity with WordPress 5.6
|
14 |
+
Minor improvements
|
15 |
+
Fixed readme.txt information
|
16 |
+
|
17 |
+
|
18 |
### 5.9.5
|
19 |
|
20 |
Added compatiblity with WordPress 5.6
|
inc/core/assets.php
CHANGED
@@ -122,7 +122,12 @@ class Su_Assets {
|
|
122 |
'next' => __( 'Next (Right arrow key)', 'shortcodes-ultimate' ),
|
123 |
// translators: %1$s of %2$s represents image counter in lightbox, will be replaced with "1 of 5"
|
124 |
'counter' => sprintf( __( '%1$s of %2$s', 'shortcodes-ultimate' ), '%curr%', '%total%' ),
|
125 |
-
'error' => sprintf(
|
|
|
|
|
|
|
|
|
|
|
126 |
),
|
127 |
)
|
128 |
);
|
122 |
'next' => __( 'Next (Right arrow key)', 'shortcodes-ultimate' ),
|
123 |
// translators: %1$s of %2$s represents image counter in lightbox, will be replaced with "1 of 5"
|
124 |
'counter' => sprintf( __( '%1$s of %2$s', 'shortcodes-ultimate' ), '%curr%', '%total%' ),
|
125 |
+
'error' => sprintf(
|
126 |
+
// translators: %1$s and %2$s will be replace <a> and </a> tags
|
127 |
+
__( 'Failed to load content. %1$sOpen link%2$s' ),
|
128 |
+
'<a href="%url%" target="_blank"><u>',
|
129 |
+
'</u></a>'
|
130 |
+
),
|
131 |
),
|
132 |
)
|
133 |
);
|
includes/js/shortcodes/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
!function o(n,r,l){function c(t,e){if(!r[t]){if(!n[t]){var a="function"==typeof require&&require;if(!e&&a)return a(t,!0);if(u)return u(t,!0);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}var s=r[t]={exports:{}};n[t][0].call(s.exports,function(e){return c(n[t][1][e]||e)},s,s.exports,o,n,r,l)}return r[t].exports}for(var u="function"==typeof require&&require,e=0;e<l.length;e++)c(l[e]);return c}({1:[function(e,t,a){"use strict";var i=r(e("./shortcodes/galleries")),s=r(e("./shortcodes/players")),o=r(e("./shortcodes/other")),n=r(e("./shortcodes/image-carousel"));function r(e){return e&&e.__esModule?e:{default:e}}(0,i.default)(),(0,s.default)(),(0,o.default)(),(0,n.default)()},{"./shortcodes/galleries":2,"./shortcodes/image-carousel":3,"./shortcodes/other":4,"./shortcodes/players":5}],2:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){jQuery(document).ready(function(i){i(".su-lightbox-gallery").each(function(){var t=[];i(this).find(".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide").each(function(e){i(this).attr("data-index",e),t.push({src:i(this).children("a").attr("href"),title:i(this).children("a").attr("title")})}),i(this).data("slides",t)}),i(".su-slider").each(function(){var e=i(this),t=e.swiper({wrapperClass:"su-slider-slides",slideClass:"su-slider-slide",slideActiveClass:"su-slider-slide-active",slideVisibleClass:"su-slider-slide-visible",pagination:"#"+e.attr("id")+" .su-slider-pagination",autoplay:e.data("autoplay"),paginationClickable:!0,grabCursor:!0,mode:"horizontal",mousewheelControl:e.data("mousewheel"),speed:e.data("speed"),calculateHeight:e.hasClass("su-slider-responsive-yes"),loop:!0});e.find(".su-slider-prev").click(function(e){t.swipeNext()}),e.find(".su-slider-next").click(function(e){t.swipePrev()})}),i(".su-carousel").each(function(){var e=i(this),t=e.find(".su-carousel-slide"),a=e.swiper({wrapperClass:"su-carousel-slides",slideClass:"su-carousel-slide",slideActiveClass:"su-carousel-slide-active",slideVisibleClass:"su-carousel-slide-visible",pagination:"#"+e.attr("id")+" .su-carousel-pagination",autoplay:e.data("autoplay"),paginationClickable:!0,grabCursor:!0,mode:"horizontal",mousewheelControl:e.data("mousewheel"),speed:e.data("speed"),slidesPerView:e.data("items")>t.length?t.length:e.data("items"),slidesPerGroup:e.data("scroll"),calculateHeight:e.hasClass("su-carousel-responsive-yes"),loop:!0});e.find(".su-carousel-prev").click(function(e){a.swipeNext()}),e.find(".su-carousel-next").click(function(e){a.swipePrev()})}),i(".su-lightbox-gallery").on("click",".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide",function(e){e.preventDefault();var t=i(this).parents(".su-lightbox-gallery").data("slides");i.magnificPopup.open({items:t,type:"image",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tPrev:SUShortcodesL10n.magnificPopup.prev,tNext:SUShortcodesL10n.magnificPopup.next,tCounter:SUShortcodesL10n.magnificPopup.counter},tClose:SUShortcodesL10n.magnificPopup.close,tLoading:SUShortcodesL10n.magnificPopup.loading},i(this).data("index"))})})}},{}],3:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){window.SUImageCarousel=function(){var o={MFPItems:{},MFPL10n:SUShortcodesL10n.magnificPopup,initGalleries:function(){var e=document.querySelectorAll(".su-image-carousel");Array.prototype.forEach.call(e,o.initGallery)},initGallery:function(e){if(!e.classList.contains("su-image-carousel-ready")){var t=JSON.parse(e.getAttribute("data-flickity-options")),a=new Flickity(e,t);if(e.removeAttribute("tabindex"),a.on("settle",o.onGallerySettle),e.classList.contains("su-image-carousel-has-lightbox")){a.on("staticClick",o.onFlickityStaticClick),e.addEventListener("click",o.preventGalleryLinkClick),e.addEventListener("keyup",o.onGalleryKeyUp);var i=e.getAttribute("id"),s=e.querySelectorAll(".su-image-carousel-item-content > a");o.MFPItems[i]=[],Array.prototype.forEach.call(s,function(e,t){e.setAttribute("data-gallery",i),e.setAttribute("data-index",t),o.MFPItems[i].push({src:e.getAttribute("href"),title:e.getAttribute("data-caption")})})}e.classList.add("su-image-carousel-ready")}},onFlickityStaticClick:function(e,t,a,i){if(a){var s=a.querySelector("a");s&&o.openMagnificPopupFromLink(s)}},onGallerySettle:function(e){var t=this.element.querySelectorAll(".su-image-carousel-item");Array.prototype.forEach.call(t,function(e,t){var a=e.querySelectorAll("a")[0];a&&(a.setAttribute("tabindex",-1),e.classList.contains("is-selected")&&a.setAttribute("tabindex",0))})},preventGalleryLinkClick:function(e){o.closest(e.target,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()})&&e.preventDefault()},onGalleryKeyUp:function(e){if(e.keyCode&&13===e.keyCode){var t=o.closest(e.target,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()});t&&o.openMagnificPopupFromLink(t)}},openMagnificPopup:function(e,t){jQuery.magnificPopup.open({items:o.MFPItems[e],type:"image",mainClass:"mfp-img-mobile su-image-carousel-mfp",gallery:{enabled:!0,navigateByImgClick:!0,preload:[1,1],tPrev:o.MFPL10n.prev,tNext:o.MFPL10n.next,tCounter:o.MFPL10n.counter},tClose:o.MFPL10n.close,tLoading:o.MFPL10n.loading},t)},openMagnificPopupFromLink:function(e){var t=e.getAttribute("data-gallery"),a=parseInt(e.getAttribute("data-index"),10);o.openMagnificPopup(t,a)},closest:function(e,t){return e&&(t(e)?e:o.closest(e.parentNode,t))},ready:function(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}};return{ready:o.ready,initGalleries:o.initGalleries,initGallery:o.initGallery}}(),jQuery(document).ready(function(){window.SUImageCarousel.initGalleries()})}},{}],4:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){jQuery(document).ready(function(r){function a(e){(r(window).scrollTop()+r("body").offset().top>e.offset().top||r(window).scrollTop()+r(window).height()<e.offset().top)&&r(window).scrollTop(e.offset().top-r("body").offset().top-e.data("scroll-offset"))}function s(e){var t=0<arguments.length&&void 0!==e?e:"";"string"==typeof t&&""!==(t=t.replace(/[^a-z0-9_-]/gim,"").trim())&&(window.location.hash="#"+t)}function o(e){var t=e.index(),a=e.hasClass("su-tabs-disabled"),i=e.parents(".su-tabs"),s=i.find(".su-tabs-nav span"),o=i.find(".su-tabs-pane"),n=o.eq(t).find(".su-gmap:not(.su-gmap-reloaded)");a||(o.removeClass("su-tabs-pane-open").eq(t).addClass("su-tabs-pane-open"),s.removeClass("su-tabs-current").eq(t).addClass("su-tabs-current"),0<n.length&&n.each(function(){var e=r(this).find("iframe:first");r(this).addClass("su-gmap-reloaded"),e.attr("src",e.attr("src"))}))}var e;function t(){""!==document.location.hash&&(r(".su-tabs-nav span[data-anchor]").each(function(){if("#"+r(this).data("anchor")===document.location.hash){var e=r(this).parents(".su-tabs");r(this).trigger("click"),window.setTimeout(function(){a(e)},100)}}),r(".su-spoiler[data-anchor]").each(function(){if("#"+r(this).data("anchor")===document.location.hash){var e=r(this);e.hasClass("su-spoiler-closed")&&e.find(".su-spoiler-title:first").trigger("click"),window.setTimeout(function(){a(e)},100)}}))}r("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-spoiler-title",function(e){var t=r(this).parent();t.toggleClass("su-spoiler-closed"),t.hasClass("su-spoiler-closed")||"yes"!==t.data("anchor-in-url")||s(t.data("anchor")),t.parent(".su-accordion").children(".su-spoiler").not(t).addClass("su-spoiler-closed"),a(t),e.preventDefault()}),r("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-tabs-nav span",function(e){var t=r(this),a=t.parents(".su-tabs"),i=t.data();o(t),"yes"===a.data("anchor-in-url")&&s(t.data("anchor")),""!==i.url&&("self"===i.target?window.location=i.url:"blank"===i.target&&window.open(i.url)),e.preventDefault()}),r(".su-tabs").each(function(){var e=parseInt(r(this).data("active"))-1;o(r(this).children(".su-tabs-nav").children("span").eq(e))}),t(),r(document).on("click",".su-lightbox",function(e){if(e.preventDefault(),e.stopPropagation(),"su-generator-preview"!==r(this).parent().attr("id")){var t=r(this).data("mfp-type"),a=r(this).data("mobile"),i=r(window).width();r(this).magnificPopup({disableOn:function(){return!("no"===a&&i<768)&&!("number"==typeof a&&i<a)},type:t,tClose:SUShortcodesL10n.magnificPopup.close,tLoading:SUShortcodesL10n.magnificPopup.loading,gallery:{tPrev:SUShortcodesL10n.magnificPopup.prev,tNext:SUShortcodesL10n.magnificPopup.next,tCounter:SUShortcodesL10n.magnificPopup.counter},image:{tError:SUShortcodesL10n.magnificPopup.error},ajax:{tError:SUShortcodesL10n.magnificPopup.error},iframe:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen allow="autoplay; fullscreen"></iframe></div>'}}).magnificPopup("open")}else r(this).html(SUShortcodesL10n.noPreview)}),r(".su-frame-align-center, .su-frame-align-none").each(function(){var e=r(this).find("img").width();r(this).css("width",e+12)}),r(".su-tooltip").each(function(){var e=r(this),t=e.find(".su-tooltip-content"),a=0<t.length,i=e.data(),s={style:{classes:i.classes},position:{my:i.my,at:i.at,viewport:r(window)},content:{title:"",text:""}};""!==i.title&&(s.content.title=i.title),s.content.text=a?t:e.attr("title"),"yes"===i.close&&(s.content.button=!0),"click"===i.behavior?(s.show="click",s.hide="click",e.on("click",function(e){e.preventDefault(),e.stopPropagation()}),r(window).on("scroll resize",function(){e.qtip("reposition")})):"always"===i.behavior?(s.show=!0,s.hide=!1,r(window).on("scroll resize",function(){e.qtip("reposition")})):"hover"===i.behavior&&a&&(s.hide={fixed:!0,delay:600}),e.qtip(s)}),r("body:not(.su-other-shortcodes-loaded)").on("click",".su-expand-link",function(){var e=r(this).parents(".su-expand"),t=e.children(".su-expand-content");e.hasClass("su-expand-collapsed")?t.css("max-height","none"):t.css("max-height",e.data("height")+"px"),e.toggleClass("su-expand-collapsed")}),void 0!==(e=(document.body||document.documentElement).style).transition||void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.MsTransition||void 0!==e.OTransition?r(".su-animate").each(function(){r(this).one("inview",function(e){var t=r(this),a=t.data();window.setTimeout(function(){t.addClass(a.animation),t.addClass("animated"),t.css("visibility","visible")},1e3*a.delay)})}):r(".su-animate").css("visibility","visible"),"onhashchange"in window&&r(window).on("hashchange",t),r("body").addClass("su-other-shortcodes-loaded")})}},{}],5:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){jQuery(document).ready(function(r){r(".su-audio").each(function(){var e=r(this),t="#"+e.data("id"),a=r(t),i=e.data("audio"),s=e.data("swf");a.jPlayer({ready:function(){a.jPlayer("setMedia",{mp3:i}),"yes"===e.data("autoplay")&&a.jPlayer("play"),"yes"===e.data("loop")&&a.bind(r.jPlayer.event.ended+".repeat",function(){a.jPlayer("play")})},cssSelectorAncestor:t+"_container",volume:1,keyEnabled:!0,smoothPlayBar:!0,swfPath:s,supplied:"mp3"})}),r(".su-video").each(function(){var e=r(this),t=e.attr("id"),a=r("#"+t+"_player"),i=e.data("video"),s=e.data("swf"),o=e.data("poster"),n={width:a.width(),height:a.height()};a.jPlayer({ready:function(){a.jPlayer("setMedia",{mp4:i,flv:i,poster:o}),"yes"===e.data("autoplay")&&a.jPlayer("play"),"yes"===e.data("loop")&&a.bind(r.jPlayer.event.ended+".repeat",function(){a.jPlayer("play")})},cssSelector:{gui:".jp-gui, .jp-title"},size:n,cssSelectorAncestor:"#"+t,volume:1,keyEnabled:!0,smoothPlayBar:!0,swfPath:s,supplied:"mp4, flv"})})})}},{}]},{},[1]);
|
2 |
//# sourceMappingURL=index.js.map
|
1 |
+
!function o(n,r,l){function c(t,e){if(!r[t]){if(!n[t]){var a="function"==typeof require&&require;if(!e&&a)return a(t,!0);if(u)return u(t,!0);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}var s=r[t]={exports:{}};n[t][0].call(s.exports,function(e){return c(n[t][1][e]||e)},s,s.exports,o,n,r,l)}return r[t].exports}for(var u="function"==typeof require&&require,e=0;e<l.length;e++)c(l[e]);return c}({1:[function(e,t,a){"use strict";var i=r(e("./shortcodes/galleries")),s=r(e("./shortcodes/players")),o=r(e("./shortcodes/other")),n=r(e("./shortcodes/image-carousel"));function r(e){return e&&e.__esModule?e:{default:e}}(0,i.default)(),(0,s.default)(),(0,o.default)(),(0,n.default)()},{"./shortcodes/galleries":2,"./shortcodes/image-carousel":3,"./shortcodes/other":4,"./shortcodes/players":5}],2:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){jQuery(document).ready(function(i){i(".su-lightbox-gallery").each(function(){var t=[];i(this).find(".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide").each(function(e){i(this).attr("data-index",e),t.push({src:i(this).children("a").attr("href"),title:i(this).children("a").attr("title")})}),i(this).data("slides",t)}),i(".su-slider").each(function(){var e=i(this),t=e.swiper({wrapperClass:"su-slider-slides",slideClass:"su-slider-slide",slideActiveClass:"su-slider-slide-active",slideVisibleClass:"su-slider-slide-visible",pagination:"#"+e.attr("id")+" .su-slider-pagination",autoplay:e.data("autoplay"),paginationClickable:!0,grabCursor:!0,mode:"horizontal",mousewheelControl:e.data("mousewheel"),speed:e.data("speed"),calculateHeight:e.hasClass("su-slider-responsive-yes"),loop:!0});e.find(".su-slider-prev").click(function(e){t.swipeNext()}),e.find(".su-slider-next").click(function(e){t.swipePrev()})}),i(".su-carousel").each(function(){var e=i(this),t=e.find(".su-carousel-slide"),a=e.swiper({wrapperClass:"su-carousel-slides",slideClass:"su-carousel-slide",slideActiveClass:"su-carousel-slide-active",slideVisibleClass:"su-carousel-slide-visible",pagination:"#"+e.attr("id")+" .su-carousel-pagination",autoplay:e.data("autoplay"),paginationClickable:!0,grabCursor:!0,mode:"horizontal",mousewheelControl:e.data("mousewheel"),speed:e.data("speed"),slidesPerView:e.data("items")>t.length?t.length:e.data("items"),slidesPerGroup:e.data("scroll"),calculateHeight:e.hasClass("su-carousel-responsive-yes"),loop:!0});e.find(".su-carousel-prev").click(function(e){a.swipeNext()}),e.find(".su-carousel-next").click(function(e){a.swipePrev()})}),i(".su-lightbox-gallery").on("click",".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide",function(e){e.preventDefault();var t=i(this).parents(".su-lightbox-gallery").data("slides");i.magnificPopup.open({items:t,type:"image",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tPrev:SUShortcodesL10n.magnificPopup.prev,tNext:SUShortcodesL10n.magnificPopup.next,tCounter:SUShortcodesL10n.magnificPopup.counter},tClose:SUShortcodesL10n.magnificPopup.close,tLoading:SUShortcodesL10n.magnificPopup.loading},i(this).data("index"))})})}},{}],3:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){window.SUImageCarousel=function(){var o={MFPItems:{},MFPL10n:SUShortcodesL10n.magnificPopup,initGalleries:function(){var e=document.querySelectorAll(".su-image-carousel");Array.prototype.forEach.call(e,o.initGallery)},initGallery:function(e){if(!e.classList.contains("su-image-carousel-ready")){var t=JSON.parse(e.getAttribute("data-flickity-options")),a=new Flickity(e,t);if(e.removeAttribute("tabindex"),a.on("settle",o.onGallerySettle),e.classList.contains("su-image-carousel-has-lightbox")){a.on("staticClick",o.onFlickityStaticClick),e.addEventListener("click",o.preventGalleryLinkClick),e.addEventListener("keyup",o.onGalleryKeyUp);var i=e.getAttribute("id"),s=e.querySelectorAll(".su-image-carousel-item-content > a");o.MFPItems[i]=[],Array.prototype.forEach.call(s,function(e,t){e.setAttribute("data-gallery",i),e.setAttribute("data-index",t),o.MFPItems[i].push({src:e.getAttribute("href"),title:e.getAttribute("data-caption")})})}e.classList.add("su-image-carousel-ready")}},onFlickityStaticClick:function(e,t,a,i){if(a){var s=a.querySelector("a");s&&o.openMagnificPopupFromLink(s)}},onGallerySettle:function(e){var t=this.element.querySelectorAll(".su-image-carousel-item");Array.prototype.forEach.call(t,function(e,t){var a=e.querySelectorAll("a")[0];a&&(a.setAttribute("tabindex",-1),e.classList.contains("is-selected")&&a.setAttribute("tabindex",0))})},preventGalleryLinkClick:function(e){o.closest(e.target,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()})&&e.preventDefault()},onGalleryKeyUp:function(e){if(e.keyCode&&13===e.keyCode){var t=o.closest(e.target,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()});t&&o.openMagnificPopupFromLink(t)}},openMagnificPopup:function(e,t){jQuery.magnificPopup.open({items:o.MFPItems[e],type:"image",mainClass:"mfp-img-mobile su-image-carousel-mfp",gallery:{enabled:!0,navigateByImgClick:!0,preload:[1,1],tPrev:o.MFPL10n.prev,tNext:o.MFPL10n.next,tCounter:o.MFPL10n.counter},tClose:o.MFPL10n.close,tLoading:o.MFPL10n.loading},t)},openMagnificPopupFromLink:function(e){var t=e.getAttribute("data-gallery"),a=parseInt(e.getAttribute("data-index"),10);o.openMagnificPopup(t,a)},closest:function(e,t){return e&&(t(e)?e:o.closest(e.parentNode,t))},ready:function(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}};return{ready:o.ready,initGalleries:o.initGalleries,initGallery:o.initGallery}}(),jQuery(document).ready(function(){window.SUImageCarousel.initGalleries()})}},{}],4:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){jQuery(document).ready(function(o){function a(e){(o(window).scrollTop()+o("body").offset().top>e.offset().top||o(window).scrollTop()+o(window).height()<e.offset().top)&&o(window).scrollTop(e.offset().top-o("body").offset().top-e.data("scroll-offset"))}function s(e){var t=0<arguments.length&&void 0!==e?e:"";"string"==typeof t&&""!==(t=t.replace(/[^a-z0-9_-]/gim,"").trim())&&(window.location.hash="#"+t)}function n(e){var t=e.index(),a=e.hasClass("su-tabs-disabled"),i=e.parents(".su-tabs"),s=i.find(".su-tabs-nav span"),o=i.find(".su-tabs-pane");a||(o.removeClass("su-tabs-pane-open").eq(t).addClass("su-tabs-pane-open"),s.removeClass("su-tabs-current").eq(t).addClass("su-tabs-current"),window.dispatchEvent(new Event("resize")))}var e;function t(){""!==document.location.hash&&(o(".su-tabs-nav span[data-anchor]").each(function(){if("#"+o(this).data("anchor")===document.location.hash){var e=o(this).parents(".su-tabs");o(this).trigger("click"),window.setTimeout(function(){a(e)},100)}}),o(".su-spoiler[data-anchor]").each(function(){if("#"+o(this).data("anchor")===document.location.hash){var e=o(this);e.hasClass("su-spoiler-closed")&&e.find(".su-spoiler-title:first").trigger("click"),window.setTimeout(function(){a(e)},100)}}))}o("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-spoiler-title",function(e){var t=o(this).parent();t.toggleClass("su-spoiler-closed"),t.hasClass("su-spoiler-closed")||"yes"!==t.data("anchor-in-url")||s(t.data("anchor")),t.parent(".su-accordion").children(".su-spoiler").not(t).addClass("su-spoiler-closed"),a(t),e.preventDefault()}),o("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-tabs-nav span",function(e){var t=o(this),a=t.parents(".su-tabs"),i=t.data();n(t),"yes"===a.data("anchor-in-url")&&s(t.data("anchor")),""!==i.url&&("self"===i.target?window.location=i.url:"blank"===i.target&&window.open(i.url)),e.preventDefault()}),o(".su-tabs").each(function(){var e=parseInt(o(this).data("active"))-1;n(o(this).children(".su-tabs-nav").children("span").eq(e))}),t(),o(document).on("click",".su-lightbox",function(e){if(e.preventDefault(),e.stopPropagation(),"su-generator-preview"!==o(this).parent().attr("id")){var t=o(this).data("mfp-type"),a=o(this).data("mobile"),i=o(window).width();o(this).magnificPopup({disableOn:function(){return!("no"===a&&i<768)&&!("number"==typeof a&&i<a)},type:t,tClose:SUShortcodesL10n.magnificPopup.close,tLoading:SUShortcodesL10n.magnificPopup.loading,gallery:{tPrev:SUShortcodesL10n.magnificPopup.prev,tNext:SUShortcodesL10n.magnificPopup.next,tCounter:SUShortcodesL10n.magnificPopup.counter},image:{tError:SUShortcodesL10n.magnificPopup.error},ajax:{tError:SUShortcodesL10n.magnificPopup.error},iframe:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen allow="autoplay; fullscreen"></iframe></div>'}}).magnificPopup("open")}else o(this).html(SUShortcodesL10n.noPreview)}),o(".su-frame-align-center, .su-frame-align-none").each(function(){var e=o(this).find("img").width();o(this).css("width",e+12)}),o(".su-tooltip").each(function(){var e=o(this),t=e.find(".su-tooltip-content"),a=0<t.length,i=e.data(),s={style:{classes:i.classes},position:{my:i.my,at:i.at,viewport:o(window)},content:{title:"",text:""}};""!==i.title&&(s.content.title=i.title),s.content.text=a?t:e.attr("title"),"yes"===i.close&&(s.content.button=!0),"click"===i.behavior?(s.show="click",s.hide="click",e.on("click",function(e){e.preventDefault(),e.stopPropagation()}),o(window).on("scroll resize",function(){e.qtip("reposition")})):"always"===i.behavior?(s.show=!0,s.hide=!1,o(window).on("scroll resize",function(){e.qtip("reposition")})):"hover"===i.behavior&&a&&(s.hide={fixed:!0,delay:600}),e.qtip(s)}),o("body:not(.su-other-shortcodes-loaded)").on("click",".su-expand-link",function(){var e=o(this).parents(".su-expand"),t=e.children(".su-expand-content");e.hasClass("su-expand-collapsed")?t.css("max-height","none"):t.css("max-height",e.data("height")+"px"),e.toggleClass("su-expand-collapsed")}),void 0!==(e=(document.body||document.documentElement).style).transition||void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.MsTransition||void 0!==e.OTransition?o(".su-animate").each(function(){o(this).one("inview",function(e){var t=o(this),a=t.data();window.setTimeout(function(){t.addClass(a.animation),t.addClass("animated"),t.css("visibility","visible")},1e3*a.delay)})}):o(".su-animate").css("visibility","visible"),"onhashchange"in window&&o(window).on("hashchange",t),o("body").addClass("su-other-shortcodes-loaded")})}},{}],5:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){jQuery(document).ready(function(r){r(".su-audio").each(function(){var e=r(this),t="#"+e.data("id"),a=r(t),i=e.data("audio"),s=e.data("swf");a.jPlayer({ready:function(){a.jPlayer("setMedia",{mp3:i}),"yes"===e.data("autoplay")&&a.jPlayer("play"),"yes"===e.data("loop")&&a.bind(r.jPlayer.event.ended+".repeat",function(){a.jPlayer("play")})},cssSelectorAncestor:t+"_container",volume:1,keyEnabled:!0,smoothPlayBar:!0,swfPath:s,supplied:"mp3"})}),r(".su-video").each(function(){var e=r(this),t=e.attr("id"),a=r("#"+t+"_player"),i=e.data("video"),s=e.data("swf"),o=e.data("poster"),n={width:a.width(),height:a.height()};a.jPlayer({ready:function(){a.jPlayer("setMedia",{mp4:i,flv:i,poster:o}),"yes"===e.data("autoplay")&&a.jPlayer("play"),"yes"===e.data("loop")&&a.bind(r.jPlayer.event.ended+".repeat",function(){a.jPlayer("play")})},cssSelector:{gui:".jp-gui, .jp-title"},size:n,cssSelectorAncestor:"#"+t,volume:1,keyEnabled:!0,smoothPlayBar:!0,swfPath:s,supplied:"mp4, flv"})})})}},{}]},{},[1]);
|
2 |
//# sourceMappingURL=index.js.map
|
includes/js/shortcodes/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sources":["includes/js/shortcodes/node_modules/browser-pack/_prelude.js","includes/js/shortcodes/includes/js/shortcodes/src/index.js","includes/js/shortcodes/includes/js/shortcodes/src/shortcodes/galleries.js","includes/js/shortcodes/includes/js/shortcodes/src/shortcodes/image-carousel.js","includes/js/shortcodes/includes/js/shortcodes/src/shortcodes/other.js","includes/js/shortcodes/includes/js/shortcodes/src/shortcodes/players.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","_galleries","_interopRequireDefault","_players","_other","_imageCarousel","default","jQuery","document","ready","$","each","slides","this","find","attr","push","src","children","title","data","$slider","$swiper","swiper","wrapperClass","slideClass","slideActiveClass","slideVisibleClass","pagination","autoplay","paginationClickable","grabCursor","mode","mousewheelControl","speed","calculateHeight","hasClass","loop","click","swipeNext","swipePrev","$carousel","$slides","slidesPerView","slidesPerGroup","on","preventDefault","parents","magnificPopup","open","items","type","mainClass","gallery","enabled","navigateByImgClick","preload","tPrev","SUShortcodesL10n","prev","tNext","next","tCounter","counter","tClose","close","tLoading","loading","window","SUImageCarousel","self","MFPItems","MFPL10n","initGalleries","galleries","querySelectorAll","Array","prototype","forEach","initGallery","classList","contains","flickityOptions","JSON","parse","getAttribute","flckty","Flickity","removeAttribute","onGallerySettle","onFlickityStaticClick","addEventListener","preventGalleryLinkClick","onGalleryKeyUp","galleryID","item","itemIndex","setAttribute","add","event","pointer","cellElement","cellIndex","clickedLink","querySelector","openMagnificPopupFromLink","index","element","link","closest","target","el","tagName","toUpperCase","keyCode","openMagnificPopup","linkEl","parseInt","fn","parentNode","readyState","scrollIn","$el","scrollTop","offset","top","height","addAnchor","anchor","arguments","undefined","replace","trim","location","hash","revealTab","$tab","isDisabled","$container","$tabs","$panes","$gmaps","eq","removeClass","addClass","$iframe","thisStyle","anchorNav","trigger","setTimeout","$spoiler","parent","toggleClass","not","url","active","stopPropagation","mobile","windowWidth","width","disableOn","image","tError","error","ajax","iframe","markup","html","noPreview","frameWidth","css","$tt","$content","isAdvanced","config","style","classes","position","my","at","viewport","content","text","button","behavior","show","hide","qtip","fixed","delay","body","documentElement","transition","WebkitTransition","MozTransition","MsTransition","OTransition","one","$this","animation","selector","$player","audio","swf","jPlayer","mp3","bind","ended","cssSelectorAncestor","volume","keyEnabled","smoothPlayBar","swfPath","supplied","$video","id","file","poster","size","mp4","flv","cssSelector","gui"],"mappings":"CAAA,SAAAA,EAAAC,EAAAC,EAAAC,GAAA,SAAAC,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MAAO,WAELgM,EAAQG,QAAQ,WAAY,CAC1Be,IAAKH,EACLI,IAAKJ,EACLC,OAAQA,IAGsB,QAA5BH,EAAOlM,KAAK,aAAuBqL,EAAQG,QAAQ,QAE3B,QAAxBU,EAAOlM,KAAK,SACdqL,EAAQK,KAAKpM,EAAEkM,QAAQzG,MAAM4G,MAAQ,UAAW,WAC9CN,EAAQG,QAAQ,WAItBiB,YAAa,CACXC,IAAK,sBAEPJ,KAAMA,EACNV,oBAAqB,IAAMO,EAC3BN,OAAQ,EACRC,YAAY,EACZC,eAAe,EACfC,QAAST,EACTU,SAAU","file":"index.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()","import SUGalleriesShortcodes from './shortcodes/galleries'\nimport SUPlayersShortcodes from './shortcodes/players'\nimport SUOtherShortcodes from './shortcodes/other'\nimport SUImageCarouselShortcode from './shortcodes/image-carousel'\n\nSUGalleriesShortcodes()\nSUPlayersShortcodes()\nSUOtherShortcodes()\nSUImageCarouselShortcode()\n","export default function SUGalleriesShortcodes () {\n jQuery(document).ready(function ($) {\n // Prepare items arrays for lightbox\n $('.su-lightbox-gallery').each(function () {\n var slides = []\n $(this)\n .find('.su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide')\n .each(function (i) {\n $(this).attr('data-index', i)\n slides.push({\n src: $(this)\n .children('a')\n .attr('href'),\n title: $(this)\n .children('a')\n .attr('title')\n })\n })\n $(this).data('slides', slides)\n })\n // Enable sliders\n $('.su-slider').each(function () {\n // Prepare data\n var $slider = $(this)\n // Apply Swiper\n var $swiper = $slider.swiper({\n wrapperClass: 'su-slider-slides',\n slideClass: 'su-slider-slide',\n slideActiveClass: 'su-slider-slide-active',\n slideVisibleClass: 'su-slider-slide-visible',\n pagination: '#' + $slider.attr('id') + ' .su-slider-pagination',\n autoplay: $slider.data('autoplay'),\n paginationClickable: true,\n grabCursor: true,\n mode: 'horizontal',\n mousewheelControl: $slider.data('mousewheel'),\n speed: $slider.data('speed'),\n calculateHeight: $slider.hasClass('su-slider-responsive-yes'),\n loop: true\n })\n // Prev button\n $slider.find('.su-slider-prev').click(function (e) {\n $swiper.swipeNext()\n })\n // Next button\n $slider.find('.su-slider-next').click(function (e) {\n $swiper.swipePrev()\n })\n })\n // Enable carousels\n $('.su-carousel').each(function () {\n // Prepare data\n var $carousel = $(this)\n var $slides = $carousel.find('.su-carousel-slide')\n // Apply Swiper\n var $swiper = $carousel.swiper({\n wrapperClass: 'su-carousel-slides',\n slideClass: 'su-carousel-slide',\n slideActiveClass: 'su-carousel-slide-active',\n slideVisibleClass: 'su-carousel-slide-visible',\n pagination: '#' + $carousel.attr('id') + ' .su-carousel-pagination',\n autoplay: $carousel.data('autoplay'),\n paginationClickable: true,\n grabCursor: true,\n mode: 'horizontal',\n mousewheelControl: $carousel.data('mousewheel'),\n speed: $carousel.data('speed'),\n slidesPerView:\n $carousel.data('items') > $slides.length\n ? $slides.length\n : $carousel.data('items'),\n slidesPerGroup: $carousel.data('scroll'),\n calculateHeight: $carousel.hasClass('su-carousel-responsive-yes'),\n loop: true\n })\n // Prev button\n $carousel.find('.su-carousel-prev').click(function (e) {\n $swiper.swipeNext()\n })\n // Next button\n $carousel.find('.su-carousel-next').click(function (e) {\n $swiper.swipePrev()\n })\n })\n // Enable lightbox\n $('.su-lightbox-gallery').on(\n 'click',\n '.su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide',\n function (e) {\n e.preventDefault()\n var slides = $(this)\n .parents('.su-lightbox-gallery')\n .data('slides')\n $.magnificPopup.open(\n {\n items: slides,\n type: 'image',\n mainClass: 'mfp-img-mobile',\n gallery: {\n enabled: true,\n navigateByImgClick: true,\n preload: [0, 1],\n tPrev: SUShortcodesL10n.magnificPopup.prev,\n tNext: SUShortcodesL10n.magnificPopup.next,\n tCounter: SUShortcodesL10n.magnificPopup.counter\n },\n tClose: SUShortcodesL10n.magnificPopup.close,\n tLoading: SUShortcodesL10n.magnificPopup.loading\n },\n $(this).data('index')\n )\n }\n )\n })\n}\n","/* global jQuery, Flickity, SUShortcodesL10n */\n\nexport default function SUImageCarouselShortcode () {\n window.SUImageCarousel = (function () {\n var self = {\n MFPItems: {},\n MFPL10n: SUShortcodesL10n.magnificPopup\n }\n\n self.initGalleries = function () {\n var galleries = document.querySelectorAll('.su-image-carousel')\n\n Array.prototype.forEach.call(galleries, self.initGallery)\n }\n\n self.initGallery = function (gallery) {\n if (gallery.classList.contains('su-image-carousel-ready')) {\n return\n }\n\n var flickityOptions = JSON.parse(\n gallery.getAttribute('data-flickity-options')\n )\n\n var flckty = new Flickity(gallery, flickityOptions)\n\n gallery.removeAttribute('tabindex')\n\n flckty.on('settle', self.onGallerySettle)\n\n if (gallery.classList.contains('su-image-carousel-has-lightbox')) {\n flckty.on('staticClick', self.onFlickityStaticClick)\n gallery.addEventListener('click', self.preventGalleryLinkClick)\n gallery.addEventListener('keyup', self.onGalleryKeyUp)\n\n var galleryID = gallery.getAttribute('id')\n var items = gallery.querySelectorAll(\n '.su-image-carousel-item-content > a'\n )\n\n self.MFPItems[galleryID] = []\n\n Array.prototype.forEach.call(items, function (item, itemIndex) {\n item.setAttribute('data-gallery', galleryID)\n item.setAttribute('data-index', itemIndex)\n\n self.MFPItems[galleryID].push({\n src: item.getAttribute('href'),\n title: item.getAttribute('data-caption')\n })\n })\n }\n\n gallery.classList.add('su-image-carousel-ready')\n }\n\n self.onFlickityStaticClick = function (event, pointer, cellElement, cellIndex) {\n if (!cellElement) {\n return\n }\n\n var clickedLink = cellElement.querySelector('a')\n\n if (!clickedLink) {\n return\n }\n\n self.openMagnificPopupFromLink(clickedLink)\n }\n\n self.onGallerySettle = function (index) {\n var items = this.element.querySelectorAll('.su-image-carousel-item')\n\n Array.prototype.forEach.call(items, function (item, itemIndex) {\n var link = item.querySelectorAll('a')[0]\n\n if (!link) {\n return\n }\n\n link.setAttribute('tabindex', -1)\n\n if (item.classList.contains('is-selected')) {\n link.setAttribute('tabindex', 0)\n }\n })\n }\n\n self.preventGalleryLinkClick = function (e) {\n var clickedLink = self.closest(e.target, function (el) {\n return el.tagName && el.tagName.toUpperCase() === 'A'\n })\n\n if (!clickedLink) {\n return\n }\n\n e.preventDefault()\n }\n\n self.onGalleryKeyUp = function (e) {\n if (!e.keyCode || e.keyCode !== 13) {\n return\n }\n\n var clickedLink = self.closest(e.target, function (el) {\n return el.tagName && el.tagName.toUpperCase() === 'A'\n })\n\n if (!clickedLink) {\n return\n }\n\n self.openMagnificPopupFromLink(clickedLink)\n }\n\n self.openMagnificPopup = function (galleryID, itemIndex) {\n jQuery.magnificPopup.open(\n {\n items: self.MFPItems[galleryID],\n type: 'image',\n mainClass: 'mfp-img-mobile su-image-carousel-mfp',\n gallery: {\n enabled: true,\n navigateByImgClick: true,\n preload: [1, 1],\n tPrev: self.MFPL10n.prev,\n tNext: self.MFPL10n.next,\n tCounter: self.MFPL10n.counter\n },\n tClose: self.MFPL10n.close,\n tLoading: self.MFPL10n.loading\n },\n itemIndex\n )\n }\n\n self.openMagnificPopupFromLink = function (linkEl) {\n var galleryID = linkEl.getAttribute('data-gallery')\n var itemIndex = parseInt(linkEl.getAttribute('data-index'), 10)\n\n self.openMagnificPopup(galleryID, itemIndex)\n }\n\n self.closest = function closest (el, fn) {\n return el && (fn(el) ? el : self.closest(el.parentNode, fn))\n }\n\n self.ready = function (fn) {\n if (document.readyState !== 'loading') {\n fn()\n } else {\n document.addEventListener('DOMContentLoaded', fn)\n }\n }\n\n return {\n ready: self.ready,\n initGalleries: self.initGalleries,\n initGallery: self.initGallery\n }\n })()\n\n jQuery(document).ready(function () {\n window.SUImageCarousel.initGalleries()\n })\n}\n","/* global jQuery, SUShortcodesL10n */\n\nexport default function SUOtherShortcodes () {\n jQuery(document).ready(function ($) {\n function scrollIn ($el) {\n if (\n $(window).scrollTop() + $('body').offset().top > $el.offset().top ||\n $(window).scrollTop() + $(window).height() < $el.offset().top\n ) {\n $(window).scrollTop(\n $el.offset().top -\n $('body').offset().top -\n $el.data('scroll-offset')\n )\n }\n }\n function addAnchor (anchor = '') {\n if (typeof anchor !== 'string') {\n return\n }\n anchor = anchor\n .replace(/[^a-z0-9_-]/gim, '')\n .trim()\n if (anchor === '') {\n return\n }\n window.location.hash = '#' + anchor\n }\n // Spoiler\n $('body:not(.su-other-shortcodes-loaded)').on(\n 'click keypress',\n '.su-spoiler-title',\n function (e) {\n var $spoiler = $(this).parent()\n // Open/close spoiler\n $spoiler.toggleClass('su-spoiler-closed')\n // Add anchor to URL\n if (!$spoiler.hasClass('su-spoiler-closed') && $spoiler.data('anchor-in-url') === 'yes') {\n addAnchor($spoiler.data('anchor'))\n }\n // Close other spoilers in accordion\n $spoiler\n .parent('.su-accordion')\n .children('.su-spoiler')\n .not($spoiler)\n .addClass('su-spoiler-closed')\n // Scroll in spoiler in accordion\n scrollIn($spoiler)\n e.preventDefault()\n }\n )\n\n function revealTab ($tab) {\n var index = $tab.index()\n var isDisabled = $tab.hasClass('su-tabs-disabled')\n var $container = $tab.parents('.su-tabs')\n var $tabs = $container.find('.su-tabs-nav span')\n var $panes = $container.find('.su-tabs-pane')\n var $gmaps = $panes\n .eq(index)\n .find('.su-gmap:not(.su-gmap-reloaded)')\n // Check tab is not disabled\n if (isDisabled) return false\n // Hide all panes, show selected pane\n $panes\n .removeClass('su-tabs-pane-open')\n .eq(index)\n .addClass('su-tabs-pane-open')\n // Disable all tabs, enable selected tab\n $tabs\n .removeClass('su-tabs-current')\n .eq(index)\n .addClass('su-tabs-current')\n // Reload gmaps\n if ($gmaps.length > 0) {\n $gmaps.each(function () {\n var $iframe = $(this).find('iframe:first')\n $(this).addClass('su-gmap-reloaded')\n $iframe.attr('src', $iframe.attr('src'))\n })\n }\n }\n\n // Tabs\n $('body:not(.su-other-shortcodes-loaded)').on(\n 'click keypress',\n '.su-tabs-nav span',\n function (e) {\n var $tab = $(this)\n var $container = $tab.parents('.su-tabs')\n var data = $tab.data()\n revealTab($tab)\n // Add anchor to URL\n if ($container.data('anchor-in-url') === 'yes') {\n addAnchor($tab.data('anchor'))\n }\n // Open specified url\n if (data.url !== '') {\n if (data.target === 'self') window.location = data.url\n else if (data.target === 'blank') window.open(data.url)\n }\n e.preventDefault()\n }\n )\n\n // Activate tabs\n $('.su-tabs').each(function () {\n var active = parseInt($(this).data('active')) - 1\n\n var $tab = $(this)\n .children('.su-tabs-nav')\n .children('span')\n .eq(active)\n\n revealTab($tab)\n })\n\n // Activate anchor nav for tabs and spoilers\n anchorNav()\n\n // Lightbox\n $(document).on('click', '.su-lightbox', function (e) {\n e.preventDefault()\n e.stopPropagation()\n\n if (\n $(this)\n .parent()\n .attr('id') === 'su-generator-preview'\n ) {\n $(this).html(SUShortcodesL10n.noPreview)\n\n return\n }\n\n var type = $(this).data('mfp-type')\n var mobile = $(this).data('mobile')\n var windowWidth = $(window).width()\n\n $(this)\n .magnificPopup({\n disableOn: function () {\n if (mobile === 'no' && windowWidth < 768) {\n return false\n }\n if (typeof mobile === 'number' && windowWidth < mobile) {\n return false\n }\n return true\n },\n type: type,\n tClose: SUShortcodesL10n.magnificPopup.close,\n tLoading: SUShortcodesL10n.magnificPopup.loading,\n gallery: {\n tPrev: SUShortcodesL10n.magnificPopup.prev,\n tNext: SUShortcodesL10n.magnificPopup.next,\n tCounter: SUShortcodesL10n.magnificPopup.counter\n },\n image: {\n tError: SUShortcodesL10n.magnificPopup.error\n },\n ajax: {\n tError: SUShortcodesL10n.magnificPopup.error\n },\n iframe: {\n markup: '<div class=\"mfp-iframe-scaler\">' +\n '<div class=\"mfp-close\"></div>' +\n '<iframe class=\"mfp-iframe\" src=\"//about:blank\" frameborder=\"0\" allowfullscreen allow=\"autoplay; fullscreen\"></iframe>' +\n '</div>'\n }\n })\n .magnificPopup('open')\n })\n // Frame\n $('.su-frame-align-center, .su-frame-align-none').each(function () {\n var frameWidth = $(this)\n .find('img')\n .width()\n $(this).css('width', frameWidth + 12)\n })\n // Tooltip\n $('.su-tooltip').each(function () {\n var $tt = $(this)\n var $content = $tt.find('.su-tooltip-content')\n var isAdvanced = $content.length > 0\n var data = $tt.data()\n var config = {\n style: {\n classes: data.classes\n },\n position: {\n my: data.my,\n at: data.at,\n viewport: $(window)\n },\n content: {\n title: '',\n text: ''\n }\n }\n if (data.title !== '') config.content.title = data.title\n if (isAdvanced) config.content.text = $content\n else config.content.text = $tt.attr('title')\n if (data.close === 'yes') config.content.button = true\n if (data.behavior === 'click') {\n config.show = 'click'\n config.hide = 'click'\n $tt.on('click', function (e) {\n e.preventDefault()\n e.stopPropagation()\n })\n $(window).on('scroll resize', function () {\n $tt.qtip('reposition')\n })\n } else if (data.behavior === 'always') {\n config.show = true\n config.hide = false\n $(window).on('scroll resize', function () {\n $tt.qtip('reposition')\n })\n } else if (data.behavior === 'hover' && isAdvanced) {\n config.hide = {\n fixed: true,\n delay: 600\n }\n }\n $tt.qtip(config)\n })\n\n // Expand\n $('body:not(.su-other-shortcodes-loaded)').on(\n 'click',\n '.su-expand-link',\n function () {\n var $this = $(this)\n var $container = $this.parents('.su-expand')\n var $content = $container.children('.su-expand-content')\n\n if ($container.hasClass('su-expand-collapsed')) {\n $content.css('max-height', 'none')\n } else {\n $content.css('max-height', $container.data('height') + 'px')\n }\n\n $container.toggleClass('su-expand-collapsed')\n }\n )\n\n function isTransitionSupported () {\n var thisBody = document.body || document.documentElement\n var thisStyle = thisBody.style\n var support =\n thisStyle.transition !== undefined ||\n thisStyle.WebkitTransition !== undefined ||\n thisStyle.MozTransition !== undefined ||\n thisStyle.MsTransition !== undefined ||\n thisStyle.OTransition !== undefined\n\n return support\n }\n\n // Animations is supported\n if (isTransitionSupported()) {\n // Animate\n $('.su-animate').each(function () {\n $(this).one('inview', function (e) {\n var $this = $(this)\n var data = $this.data()\n window.setTimeout(function () {\n $this.addClass(data.animation)\n $this.addClass('animated')\n $this.css('visibility', 'visible')\n }, data.delay * 1000)\n })\n })\n } else {\n // Animations isn't supported\n $('.su-animate').css('visibility', 'visible')\n }\n\n function anchorNav () {\n // Check hash\n if (document.location.hash === '') return\n // Go through tabs\n $('.su-tabs-nav span[data-anchor]').each(function () {\n if ('#' + $(this).data('anchor') === document.location.hash) {\n var $tabs = $(this).parents('.su-tabs')\n // Activate tab\n $(this).trigger('click')\n // Scroll-in tabs container\n window.setTimeout(function () {\n scrollIn($tabs)\n }, 100)\n }\n })\n // Go through spoilers\n $('.su-spoiler[data-anchor]').each(function () {\n if ('#' + $(this).data('anchor') === document.location.hash) {\n var $spoiler = $(this)\n // Activate tab\n if ($spoiler.hasClass('su-spoiler-closed')) {\n $spoiler.find('.su-spoiler-title:first').trigger('click')\n }\n // Scroll-in tabs container\n window.setTimeout(function () {\n scrollIn($spoiler)\n }, 100)\n }\n })\n }\n\n if ('onhashchange' in window) $(window).on('hashchange', anchorNav)\n\n $('body').addClass('su-other-shortcodes-loaded')\n })\n}\n","export default function SUPlayersShortcodes () {\n jQuery(document).ready(function ($) {\n // Audio player\n $('.su-audio').each(function () {\n // Prepare data\n var $this = $(this)\n var id = $this.data('id')\n var selector = '#' + id\n var $player = $(selector)\n var audio = $this.data('audio')\n var swf = $this.data('swf')\n // Init jPlayer\n $player.jPlayer({\n ready: function (e) {\n // Set media\n $player.jPlayer('setMedia', {\n mp3: audio\n })\n // Autoplay\n if ($this.data('autoplay') === 'yes') $player.jPlayer('play')\n // Loop\n if ($this.data('loop') === 'yes') {\n $player.bind($.jPlayer.event.ended + '.repeat', function () {\n $player.jPlayer('play')\n })\n }\n },\n cssSelectorAncestor: selector + '_container',\n volume: 1,\n keyEnabled: true,\n smoothPlayBar: true,\n swfPath: swf,\n supplied: 'mp3'\n })\n })\n // Video player\n $('.su-video').each(function () {\n // Prepare data\n var $video = $(this)\n var id = $video.attr('id')\n var $player = $('#' + id + '_player')\n var file = $video.data('video')\n var swf = $video.data('swf')\n var poster = $video.data('poster')\n var size = {\n width: $player.width(),\n height: $player.height()\n }\n // Init jPlayer\n $player.jPlayer({\n ready: function (e) {\n // Set media\n $player.jPlayer('setMedia', {\n mp4: file,\n flv: file,\n poster: poster\n })\n // Autoplay\n if ($video.data('autoplay') === 'yes') $player.jPlayer('play')\n // Loop\n if ($video.data('loop') === 'yes') {\n $player.bind($.jPlayer.event.ended + '.repeat', function () {\n $player.jPlayer('play')\n })\n }\n },\n cssSelector: {\n gui: '.jp-gui, .jp-title'\n },\n size: size,\n cssSelectorAncestor: '#' + id,\n volume: 1,\n keyEnabled: true,\n smoothPlayBar: true,\n swfPath: swf,\n supplied: 'mp4, flv'\n })\n })\n })\n}\n"]}
|
1 |
+
{"version":3,"sources":["includes/js/shortcodes/node_modules/browser-pack/_prelude.js","includes/js/shortcodes/includes/js/shortcodes/src/index.js","includes/js/shortcodes/includes/js/shortcodes/src/shortcodes/galleries.js","includes/js/shortcodes/includes/js/shortcodes/src/shortcodes/image-carousel.js","includes/js/shortcodes/includes/js/shortcodes/src/shortcodes/other.js","includes/js/shortcodes/includes/js/shortcodes/src/shortcodes/players.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","_galleries","_interopRequireDefault","_players","_other","_imageCarousel","default","jQuery","document","ready","$","each","slides","this","find","attr","push","src","children","title","data","$slider","$swiper","swiper","wrapperClass","slideClass","slideActiveClass","slideVisibleClass","pagination","autoplay","paginationClickable","grabCursor","mode","mousewheelControl","speed","calculateHeight","hasClass","loop","click","swipeNext","swipePrev","$carousel","$slides","slidesPerView","slidesPerGroup","on","preventDefault","parents","magnificPopup","open","items","type","mainClass","gallery","enabled","navigateByImgClick","preload","tPrev","SUShortcodesL10n","prev","tNext","next","tCounter","counter","tClose","close","tLoading","loading","window","SUImageCarousel","self","MFPItems","MFPL10n","initGalleries","galleries","querySelectorAll","Array","prototype","forEach","initGallery","classList","contains","flickityOptions","JSON","parse","getAttribute","flckty","Flickity","removeAttribute","onGallerySettle","onFlickityStaticClick","addEventListener","preventGalleryLinkClick","onGalleryKeyUp","galleryID","item","itemIndex","setAttribute","add","event","pointer","cellElement","cellIndex","clickedLink","querySelector","openMagnificPopupFromLink","index","element","link","closest","target","el","tagName","toUpperCase","keyCode","openMagnificPopup","linkEl","parseInt","fn","parentNode","readyState","scrollIn","$el","scrollTop","offset","top","height","addAnchor","anchor","arguments","undefined","replace","trim","location","hash","revealTab","$tab","isDisabled","$container","$tabs","$panes","removeClass","eq","addClass","dispatchEvent","Event","thisStyle","anchorNav","trigger","setTimeout","$spoiler","parent","toggleClass","not","url","active","stopPropagation","mobile","windowWidth","width","disableOn","image","tError","error","ajax","iframe","markup","html","noPreview","frameWidth","css","$tt","$content","isAdvanced","config","style","classes","position","my","at","viewport","content","text","button","behavior","show","hide","qtip","fixed","delay","body","documentElement","transition","WebkitTransition","MozTransition","MsTransition","OTransition","one","$this","animation","selector","$player","audio","swf","jPlayer","mp3","bind","ended","cssSelectorAncestor","volume","keyEnabled","smoothPlayBar","swfPath","supplied","$video","id","file","poster","size","mp4","flv","cssSelector","gui"],"mappings":"CAAA,SAAAA,EAAAC,EAAAC,EAAAC,GAAA,SAAAC,EAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,IAAAE,EAAA,mBAAAC,SAAAA,QAAA,IAAAF,GAAAC,EAAA,OAAAA,EAAAF,GAAA,GAAA,GAAAI,EAAA,OAAAA,EAAAJ,GAAA,GAAA,IAAAK,EAAA,IAAAC,MAAA,uBAAAN,EAAA,KAAA,MAAAK,EAAAE,KAAA,mBAAAF,EAAA,IAAAG,EAAAX,EAAAG,GAAA,CAAAS,QAAA,IAAAb,EAAAI,GAAA,GAAAU,KAAAF,EAAAC,QAAA,SAAAd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EAAMlL,KAAK,SACnBuL,EAAML,EAAMlL,KAAK,OAErBqL,EAAQG,QAAQ,CACdnM,MAAO,WAELgM,EAAQG,QAAQ,WAAY,CAC1BC,IAAKH,IAGwB,QAA3BJ,EAAMlL,KAAK,aAAuBqL,EAAQG,QAAQ,QAE3B,QAAvBN,EAAMlL,KAAK,SACbqL,EAAQK,KAAKpM,EAAEkM,QAAQzG,MAAM4G,MAAQ,UAAW,WAC9CN,EAAQG,QAAQ,WAItBI,oBAAqBR,EAAW,aAChCS,OAAQ,EACRC,YAAY,EACZC,eAAe,EACfC,QAAST,EACTU,SAAU,UAId3M,EAAE,aAAaC,KAAK,WAElB,IAAI2M,EAAS5M,EAAEG,MACX0M,EAAKD,EAAOvM,KAAK,MACjB0L,EAAU/L,EAAE,IAAM6M,EAAK,WACvBC,EAAOF,EAAOlM,KAAK,SACnBuL,EAAMW,EAAOlM,KAAK,OAClBqM,EAASH,EAAOlM,KAAK,UACrBsM,EAAO,CACT3D,MAAO0C,EAAQ1C,QACfjC,OAAQ2E,EAAQ3E,UAGlB2E,EAAQG,QAAQ,CACdnM,MAAO,WAELgM,EAAQG,QAAQ,WAAY,CAC1Be,IAAKH,EACLI,IAAKJ,EACLC,OAAQA,IAGsB,QAA5BH,EAAOlM,KAAK,aAAuBqL,EAAQG,QAAQ,QAE3B,QAAxBU,EAAOlM,KAAK,SACdqL,EAAQK,KAAKpM,EAAEkM,QAAQzG,MAAM4G,MAAQ,UAAW,WAC9CN,EAAQG,QAAQ,WAItBiB,YAAa,CACXC,IAAK,sBAEPJ,KAAMA,EACNV,oBAAqB,IAAMO,EAC3BN,OAAQ,EACRC,YAAY,EACZC,eAAe,EACfC,QAAST,EACTU,SAAU","file":"index.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()","import SUGalleriesShortcodes from './shortcodes/galleries'\nimport SUPlayersShortcodes from './shortcodes/players'\nimport SUOtherShortcodes from './shortcodes/other'\nimport SUImageCarouselShortcode from './shortcodes/image-carousel'\n\nSUGalleriesShortcodes()\nSUPlayersShortcodes()\nSUOtherShortcodes()\nSUImageCarouselShortcode()\n","export default function SUGalleriesShortcodes () {\n jQuery(document).ready(function ($) {\n // Prepare items arrays for lightbox\n $('.su-lightbox-gallery').each(function () {\n var slides = []\n $(this)\n .find('.su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide')\n .each(function (i) {\n $(this).attr('data-index', i)\n slides.push({\n src: $(this)\n .children('a')\n .attr('href'),\n title: $(this)\n .children('a')\n .attr('title')\n })\n })\n $(this).data('slides', slides)\n })\n // Enable sliders\n $('.su-slider').each(function () {\n // Prepare data\n var $slider = $(this)\n // Apply Swiper\n var $swiper = $slider.swiper({\n wrapperClass: 'su-slider-slides',\n slideClass: 'su-slider-slide',\n slideActiveClass: 'su-slider-slide-active',\n slideVisibleClass: 'su-slider-slide-visible',\n pagination: '#' + $slider.attr('id') + ' .su-slider-pagination',\n autoplay: $slider.data('autoplay'),\n paginationClickable: true,\n grabCursor: true,\n mode: 'horizontal',\n mousewheelControl: $slider.data('mousewheel'),\n speed: $slider.data('speed'),\n calculateHeight: $slider.hasClass('su-slider-responsive-yes'),\n loop: true\n })\n // Prev button\n $slider.find('.su-slider-prev').click(function (e) {\n $swiper.swipeNext()\n })\n // Next button\n $slider.find('.su-slider-next').click(function (e) {\n $swiper.swipePrev()\n })\n })\n // Enable carousels\n $('.su-carousel').each(function () {\n // Prepare data\n var $carousel = $(this)\n var $slides = $carousel.find('.su-carousel-slide')\n // Apply Swiper\n var $swiper = $carousel.swiper({\n wrapperClass: 'su-carousel-slides',\n slideClass: 'su-carousel-slide',\n slideActiveClass: 'su-carousel-slide-active',\n slideVisibleClass: 'su-carousel-slide-visible',\n pagination: '#' + $carousel.attr('id') + ' .su-carousel-pagination',\n autoplay: $carousel.data('autoplay'),\n paginationClickable: true,\n grabCursor: true,\n mode: 'horizontal',\n mousewheelControl: $carousel.data('mousewheel'),\n speed: $carousel.data('speed'),\n slidesPerView:\n $carousel.data('items') > $slides.length\n ? $slides.length\n : $carousel.data('items'),\n slidesPerGroup: $carousel.data('scroll'),\n calculateHeight: $carousel.hasClass('su-carousel-responsive-yes'),\n loop: true\n })\n // Prev button\n $carousel.find('.su-carousel-prev').click(function (e) {\n $swiper.swipeNext()\n })\n // Next button\n $carousel.find('.su-carousel-next').click(function (e) {\n $swiper.swipePrev()\n })\n })\n // Enable lightbox\n $('.su-lightbox-gallery').on(\n 'click',\n '.su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide',\n function (e) {\n e.preventDefault()\n var slides = $(this)\n .parents('.su-lightbox-gallery')\n .data('slides')\n $.magnificPopup.open(\n {\n items: slides,\n type: 'image',\n mainClass: 'mfp-img-mobile',\n gallery: {\n enabled: true,\n navigateByImgClick: true,\n preload: [0, 1],\n tPrev: SUShortcodesL10n.magnificPopup.prev,\n tNext: SUShortcodesL10n.magnificPopup.next,\n tCounter: SUShortcodesL10n.magnificPopup.counter\n },\n tClose: SUShortcodesL10n.magnificPopup.close,\n tLoading: SUShortcodesL10n.magnificPopup.loading\n },\n $(this).data('index')\n )\n }\n )\n })\n}\n","/* global jQuery, Flickity, SUShortcodesL10n */\n\nexport default function SUImageCarouselShortcode () {\n window.SUImageCarousel = (function () {\n var self = {\n MFPItems: {},\n MFPL10n: SUShortcodesL10n.magnificPopup\n }\n\n self.initGalleries = function () {\n var galleries = document.querySelectorAll('.su-image-carousel')\n\n Array.prototype.forEach.call(galleries, self.initGallery)\n }\n\n self.initGallery = function (gallery) {\n if (gallery.classList.contains('su-image-carousel-ready')) {\n return\n }\n\n var flickityOptions = JSON.parse(\n gallery.getAttribute('data-flickity-options')\n )\n\n var flckty = new Flickity(gallery, flickityOptions)\n\n gallery.removeAttribute('tabindex')\n\n flckty.on('settle', self.onGallerySettle)\n\n if (gallery.classList.contains('su-image-carousel-has-lightbox')) {\n flckty.on('staticClick', self.onFlickityStaticClick)\n gallery.addEventListener('click', self.preventGalleryLinkClick)\n gallery.addEventListener('keyup', self.onGalleryKeyUp)\n\n var galleryID = gallery.getAttribute('id')\n var items = gallery.querySelectorAll(\n '.su-image-carousel-item-content > a'\n )\n\n self.MFPItems[galleryID] = []\n\n Array.prototype.forEach.call(items, function (item, itemIndex) {\n item.setAttribute('data-gallery', galleryID)\n item.setAttribute('data-index', itemIndex)\n\n self.MFPItems[galleryID].push({\n src: item.getAttribute('href'),\n title: item.getAttribute('data-caption')\n })\n })\n }\n\n gallery.classList.add('su-image-carousel-ready')\n }\n\n self.onFlickityStaticClick = function (event, pointer, cellElement, cellIndex) {\n if (!cellElement) {\n return\n }\n\n var clickedLink = cellElement.querySelector('a')\n\n if (!clickedLink) {\n return\n }\n\n self.openMagnificPopupFromLink(clickedLink)\n }\n\n self.onGallerySettle = function (index) {\n var items = this.element.querySelectorAll('.su-image-carousel-item')\n\n Array.prototype.forEach.call(items, function (item, itemIndex) {\n var link = item.querySelectorAll('a')[0]\n\n if (!link) {\n return\n }\n\n link.setAttribute('tabindex', -1)\n\n if (item.classList.contains('is-selected')) {\n link.setAttribute('tabindex', 0)\n }\n })\n }\n\n self.preventGalleryLinkClick = function (e) {\n var clickedLink = self.closest(e.target, function (el) {\n return el.tagName && el.tagName.toUpperCase() === 'A'\n })\n\n if (!clickedLink) {\n return\n }\n\n e.preventDefault()\n }\n\n self.onGalleryKeyUp = function (e) {\n if (!e.keyCode || e.keyCode !== 13) {\n return\n }\n\n var clickedLink = self.closest(e.target, function (el) {\n return el.tagName && el.tagName.toUpperCase() === 'A'\n })\n\n if (!clickedLink) {\n return\n }\n\n self.openMagnificPopupFromLink(clickedLink)\n }\n\n self.openMagnificPopup = function (galleryID, itemIndex) {\n jQuery.magnificPopup.open(\n {\n items: self.MFPItems[galleryID],\n type: 'image',\n mainClass: 'mfp-img-mobile su-image-carousel-mfp',\n gallery: {\n enabled: true,\n navigateByImgClick: true,\n preload: [1, 1],\n tPrev: self.MFPL10n.prev,\n tNext: self.MFPL10n.next,\n tCounter: self.MFPL10n.counter\n },\n tClose: self.MFPL10n.close,\n tLoading: self.MFPL10n.loading\n },\n itemIndex\n )\n }\n\n self.openMagnificPopupFromLink = function (linkEl) {\n var galleryID = linkEl.getAttribute('data-gallery')\n var itemIndex = parseInt(linkEl.getAttribute('data-index'), 10)\n\n self.openMagnificPopup(galleryID, itemIndex)\n }\n\n self.closest = function closest (el, fn) {\n return el && (fn(el) ? el : self.closest(el.parentNode, fn))\n }\n\n self.ready = function (fn) {\n if (document.readyState !== 'loading') {\n fn()\n } else {\n document.addEventListener('DOMContentLoaded', fn)\n }\n }\n\n return {\n ready: self.ready,\n initGalleries: self.initGalleries,\n initGallery: self.initGallery\n }\n })()\n\n jQuery(document).ready(function () {\n window.SUImageCarousel.initGalleries()\n })\n}\n","/* global jQuery, SUShortcodesL10n, Event */\n\nexport default function SUOtherShortcodes () {\n jQuery(document).ready(function ($) {\n function scrollIn ($el) {\n if (\n $(window).scrollTop() + $('body').offset().top > $el.offset().top ||\n $(window).scrollTop() + $(window).height() < $el.offset().top\n ) {\n $(window).scrollTop(\n $el.offset().top -\n $('body').offset().top -\n $el.data('scroll-offset')\n )\n }\n }\n function addAnchor (anchor = '') {\n if (typeof anchor !== 'string') {\n return\n }\n anchor = anchor\n .replace(/[^a-z0-9_-]/gim, '')\n .trim()\n if (anchor === '') {\n return\n }\n window.location.hash = '#' + anchor\n }\n // Spoiler\n $('body:not(.su-other-shortcodes-loaded)').on(\n 'click keypress',\n '.su-spoiler-title',\n function (e) {\n var $spoiler = $(this).parent()\n // Open/close spoiler\n $spoiler.toggleClass('su-spoiler-closed')\n // Add anchor to URL\n if (!$spoiler.hasClass('su-spoiler-closed') && $spoiler.data('anchor-in-url') === 'yes') {\n addAnchor($spoiler.data('anchor'))\n }\n // Close other spoilers in accordion\n $spoiler\n .parent('.su-accordion')\n .children('.su-spoiler')\n .not($spoiler)\n .addClass('su-spoiler-closed')\n // Scroll in spoiler in accordion\n scrollIn($spoiler)\n e.preventDefault()\n }\n )\n\n function revealTab ($tab) {\n var index = $tab.index()\n var isDisabled = $tab.hasClass('su-tabs-disabled')\n var $container = $tab.parents('.su-tabs')\n var $tabs = $container.find('.su-tabs-nav span')\n var $panes = $container.find('.su-tabs-pane')\n // Check tab is not disabled\n if (isDisabled) return false\n // Hide all panes, show selected pane\n $panes\n .removeClass('su-tabs-pane-open')\n .eq(index)\n .addClass('su-tabs-pane-open')\n // Disable all tabs, enable selected tab\n $tabs\n .removeClass('su-tabs-current')\n .eq(index)\n .addClass('su-tabs-current')\n // Emit resize event\n window.dispatchEvent(new Event('resize'))\n }\n\n // Tabs\n $('body:not(.su-other-shortcodes-loaded)').on(\n 'click keypress',\n '.su-tabs-nav span',\n function (e) {\n var $tab = $(this)\n var $container = $tab.parents('.su-tabs')\n var data = $tab.data()\n revealTab($tab)\n // Add anchor to URL\n if ($container.data('anchor-in-url') === 'yes') {\n addAnchor($tab.data('anchor'))\n }\n // Open specified url\n if (data.url !== '') {\n if (data.target === 'self') window.location = data.url\n else if (data.target === 'blank') window.open(data.url)\n }\n e.preventDefault()\n }\n )\n\n // Activate tabs\n $('.su-tabs').each(function () {\n var active = parseInt($(this).data('active')) - 1\n\n var $tab = $(this)\n .children('.su-tabs-nav')\n .children('span')\n .eq(active)\n\n revealTab($tab)\n })\n\n // Activate anchor nav for tabs and spoilers\n anchorNav()\n\n // Lightbox\n $(document).on('click', '.su-lightbox', function (e) {\n e.preventDefault()\n e.stopPropagation()\n\n if (\n $(this)\n .parent()\n .attr('id') === 'su-generator-preview'\n ) {\n $(this).html(SUShortcodesL10n.noPreview)\n\n return\n }\n\n var type = $(this).data('mfp-type')\n var mobile = $(this).data('mobile')\n var windowWidth = $(window).width()\n\n $(this)\n .magnificPopup({\n disableOn: function () {\n if (mobile === 'no' && windowWidth < 768) {\n return false\n }\n if (typeof mobile === 'number' && windowWidth < mobile) {\n return false\n }\n return true\n },\n type: type,\n tClose: SUShortcodesL10n.magnificPopup.close,\n tLoading: SUShortcodesL10n.magnificPopup.loading,\n gallery: {\n tPrev: SUShortcodesL10n.magnificPopup.prev,\n tNext: SUShortcodesL10n.magnificPopup.next,\n tCounter: SUShortcodesL10n.magnificPopup.counter\n },\n image: {\n tError: SUShortcodesL10n.magnificPopup.error\n },\n ajax: {\n tError: SUShortcodesL10n.magnificPopup.error\n },\n iframe: {\n markup: '<div class=\"mfp-iframe-scaler\">' +\n '<div class=\"mfp-close\"></div>' +\n '<iframe class=\"mfp-iframe\" src=\"//about:blank\" frameborder=\"0\" allowfullscreen allow=\"autoplay; fullscreen\"></iframe>' +\n '</div>'\n }\n })\n .magnificPopup('open')\n })\n // Frame\n $('.su-frame-align-center, .su-frame-align-none').each(function () {\n var frameWidth = $(this)\n .find('img')\n .width()\n $(this).css('width', frameWidth + 12)\n })\n // Tooltip\n $('.su-tooltip').each(function () {\n var $tt = $(this)\n var $content = $tt.find('.su-tooltip-content')\n var isAdvanced = $content.length > 0\n var data = $tt.data()\n var config = {\n style: {\n classes: data.classes\n },\n position: {\n my: data.my,\n at: data.at,\n viewport: $(window)\n },\n content: {\n title: '',\n text: ''\n }\n }\n if (data.title !== '') config.content.title = data.title\n if (isAdvanced) config.content.text = $content\n else config.content.text = $tt.attr('title')\n if (data.close === 'yes') config.content.button = true\n if (data.behavior === 'click') {\n config.show = 'click'\n config.hide = 'click'\n $tt.on('click', function (e) {\n e.preventDefault()\n e.stopPropagation()\n })\n $(window).on('scroll resize', function () {\n $tt.qtip('reposition')\n })\n } else if (data.behavior === 'always') {\n config.show = true\n config.hide = false\n $(window).on('scroll resize', function () {\n $tt.qtip('reposition')\n })\n } else if (data.behavior === 'hover' && isAdvanced) {\n config.hide = {\n fixed: true,\n delay: 600\n }\n }\n $tt.qtip(config)\n })\n\n // Expand\n $('body:not(.su-other-shortcodes-loaded)').on(\n 'click',\n '.su-expand-link',\n function () {\n var $this = $(this)\n var $container = $this.parents('.su-expand')\n var $content = $container.children('.su-expand-content')\n\n if ($container.hasClass('su-expand-collapsed')) {\n $content.css('max-height', 'none')\n } else {\n $content.css('max-height', $container.data('height') + 'px')\n }\n\n $container.toggleClass('su-expand-collapsed')\n }\n )\n\n function isTransitionSupported () {\n var thisBody = document.body || document.documentElement\n var thisStyle = thisBody.style\n var support =\n thisStyle.transition !== undefined ||\n thisStyle.WebkitTransition !== undefined ||\n thisStyle.MozTransition !== undefined ||\n thisStyle.MsTransition !== undefined ||\n thisStyle.OTransition !== undefined\n\n return support\n }\n\n // Animations is supported\n if (isTransitionSupported()) {\n // Animate\n $('.su-animate').each(function () {\n $(this).one('inview', function (e) {\n var $this = $(this)\n var data = $this.data()\n window.setTimeout(function () {\n $this.addClass(data.animation)\n $this.addClass('animated')\n $this.css('visibility', 'visible')\n }, data.delay * 1000)\n })\n })\n } else {\n // Animations isn't supported\n $('.su-animate').css('visibility', 'visible')\n }\n\n function anchorNav () {\n // Check hash\n if (document.location.hash === '') return\n // Go through tabs\n $('.su-tabs-nav span[data-anchor]').each(function () {\n if ('#' + $(this).data('anchor') === document.location.hash) {\n var $tabs = $(this).parents('.su-tabs')\n // Activate tab\n $(this).trigger('click')\n // Scroll-in tabs container\n window.setTimeout(function () {\n scrollIn($tabs)\n }, 100)\n }\n })\n // Go through spoilers\n $('.su-spoiler[data-anchor]').each(function () {\n if ('#' + $(this).data('anchor') === document.location.hash) {\n var $spoiler = $(this)\n // Activate tab\n if ($spoiler.hasClass('su-spoiler-closed')) {\n $spoiler.find('.su-spoiler-title:first').trigger('click')\n }\n // Scroll-in tabs container\n window.setTimeout(function () {\n scrollIn($spoiler)\n }, 100)\n }\n })\n }\n\n if ('onhashchange' in window) $(window).on('hashchange', anchorNav)\n\n $('body').addClass('su-other-shortcodes-loaded')\n })\n}\n","export default function SUPlayersShortcodes () {\n jQuery(document).ready(function ($) {\n // Audio player\n $('.su-audio').each(function () {\n // Prepare data\n var $this = $(this)\n var id = $this.data('id')\n var selector = '#' + id\n var $player = $(selector)\n var audio = $this.data('audio')\n var swf = $this.data('swf')\n // Init jPlayer\n $player.jPlayer({\n ready: function (e) {\n // Set media\n $player.jPlayer('setMedia', {\n mp3: audio\n })\n // Autoplay\n if ($this.data('autoplay') === 'yes') $player.jPlayer('play')\n // Loop\n if ($this.data('loop') === 'yes') {\n $player.bind($.jPlayer.event.ended + '.repeat', function () {\n $player.jPlayer('play')\n })\n }\n },\n cssSelectorAncestor: selector + '_container',\n volume: 1,\n keyEnabled: true,\n smoothPlayBar: true,\n swfPath: swf,\n supplied: 'mp3'\n })\n })\n // Video player\n $('.su-video').each(function () {\n // Prepare data\n var $video = $(this)\n var id = $video.attr('id')\n var $player = $('#' + id + '_player')\n var file = $video.data('video')\n var swf = $video.data('swf')\n var poster = $video.data('poster')\n var size = {\n width: $player.width(),\n height: $player.height()\n }\n // Init jPlayer\n $player.jPlayer({\n ready: function (e) {\n // Set media\n $player.jPlayer('setMedia', {\n mp4: file,\n flv: file,\n poster: poster\n })\n // Autoplay\n if ($video.data('autoplay') === 'yes') $player.jPlayer('play')\n // Loop\n if ($video.data('loop') === 'yes') {\n $player.bind($.jPlayer.event.ended + '.repeat', function () {\n $player.jPlayer('play')\n })\n }\n },\n cssSelector: {\n gui: '.jp-gui, .jp-title'\n },\n size: size,\n cssSelectorAncestor: '#' + id,\n volume: 1,\n keyEnabled: true,\n smoothPlayBar: true,\n swfPath: swf,\n supplied: 'mp4, flv'\n })\n })\n })\n}\n"]}
|
includes/shortcodes/posts.php
CHANGED
@@ -388,6 +388,8 @@ function su_shortcode_posts( $atts = null, $content = null ) {
|
|
388 |
// Save original posts
|
389 |
global $posts;
|
390 |
$original_posts = $posts;
|
|
|
|
|
391 |
// Query posts
|
392 |
$posts = new WP_Query( $args );
|
393 |
// Load the template
|
@@ -415,13 +417,16 @@ function su_shortcode_posts_locate_template( $template ) {
|
|
415 |
$template = su_set_file_extension( $template, 'php' );
|
416 |
$template = ltrim( $template, '\\/' );
|
417 |
|
418 |
-
$locations =
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
|
|
|
|
|
|
425 |
);
|
426 |
|
427 |
foreach ( $locations as $base ) {
|
388 |
// Save original posts
|
389 |
global $posts;
|
390 |
$original_posts = $posts;
|
391 |
+
// Filter args
|
392 |
+
$args = apply_filters( 'su/shortcode/posts/wp_query_args', $args, $atts );
|
393 |
// Query posts
|
394 |
$posts = new WP_Query( $args );
|
395 |
// Load the template
|
417 |
$template = su_set_file_extension( $template, 'php' );
|
418 |
$template = ltrim( $template, '\\/' );
|
419 |
|
420 |
+
$locations = apply_filters(
|
421 |
+
'su/shortcode/posts/allowed_template_locations',
|
422 |
+
array(
|
423 |
+
get_stylesheet_directory(),
|
424 |
+
get_template_directory(),
|
425 |
+
path_join(
|
426 |
+
su_get_plugin_path(),
|
427 |
+
'includes/partials/shortcodes/posts'
|
428 |
+
),
|
429 |
+
)
|
430 |
);
|
431 |
|
432 |
foreach ( $locations as $base ) {
|
languages/shortcodes-ultimate.pot
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the Shortcodes Ultimate package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
@@ -337,14 +337,6 @@ msgstr ""
|
|
337 |
msgid "%1$s of %2$s"
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: inc/core/assets.php:125
|
341 |
-
msgid "Failed to load content."
|
342 |
-
msgstr ""
|
343 |
-
|
344 |
-
#: inc/core/assets.php:125
|
345 |
-
msgid "Open link"
|
346 |
-
msgstr ""
|
347 |
-
|
348 |
#: inc/core/generator-views.php:53
|
349 |
msgctxt "shortcodes-ultimate"
|
350 |
msgid "Any post type"
|
1 |
+
# Copyright (C) 2021 Shortcodes Ultimate
|
2 |
# This file is distributed under the same license as the Shortcodes Ultimate package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
337 |
msgid "%1$s of %2$s"
|
338 |
msgstr ""
|
339 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
#: inc/core/generator-views.php:53
|
341 |
msgctxt "shortcodes-ultimate"
|
342 |
msgid "Any post type"
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: shortcode, toggle, columns, button, slider
|
|
6 |
Requires at least: 4.6
|
7 |
Tested up to: 5.6
|
8 |
Requires PHP: 5.3
|
9 |
-
Stable tag: 5.9.
|
10 |
|
11 |
A comprehensive collection of visual components for your site
|
12 |
|
@@ -146,11 +146,14 @@ First, visit the [Help Center](https://getshortcodes.com/support/). If you get s
|
|
146 |
## Changelog
|
147 |
|
148 |
|
149 |
-
### 5.9.
|
150 |
|
151 |
-
|
152 |
-
|
153 |
-
|
|
|
|
|
|
|
154 |
|
155 |
---
|
156 |
[Version history →](https://plugins.trac.wordpress.org/browser/shortcodes-ultimate/trunk/changelog.txt)
|
6 |
Requires at least: 4.6
|
7 |
Tested up to: 5.6
|
8 |
Requires PHP: 5.3
|
9 |
+
Stable tag: 5.9.7
|
10 |
|
11 |
A comprehensive collection of visual components for your site
|
12 |
|
146 |
## Changelog
|
147 |
|
148 |
|
149 |
+
### 5.9.7
|
150 |
|
151 |
+
**What's new**
|
152 |
+
|
153 |
+
- PHP8 support
|
154 |
+
- New filter `su/shortcode/posts/wp_query_args` that can be used to modify `[su_posts]` query
|
155 |
+
- New filter `su/shortcode/posts/allowed_template_locations` that can be used to add custom template paths in the `[su_posts]` shortcode
|
156 |
+
- Improved handling of nested dynamic elements within Tabs
|
157 |
|
158 |
---
|
159 |
[Version history →](https://plugins.trac.wordpress.org/browser/shortcodes-ultimate/trunk/changelog.txt)
|
shortcodes-ultimate.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Shortcodes Ultimate
|
4 |
* Plugin URI: https://getshortcodes.com/
|
5 |
-
* Version: 5.9.
|
6 |
* Author: Vladimir Anokhin
|
7 |
* Author URI: https://getshortcodes.com/
|
8 |
* Description: A comprehensive collection of visual components for WordPress
|
@@ -16,7 +16,7 @@
|
|
16 |
* Define plugin constants.
|
17 |
*/
|
18 |
define( 'SU_PLUGIN_FILE', __FILE__ );
|
19 |
-
define( 'SU_PLUGIN_VERSION', '5.9.
|
20 |
|
21 |
/**
|
22 |
* Load dependencies.
|
2 |
/**
|
3 |
* Plugin Name: Shortcodes Ultimate
|
4 |
* Plugin URI: https://getshortcodes.com/
|
5 |
+
* Version: 5.9.7
|
6 |
* Author: Vladimir Anokhin
|
7 |
* Author URI: https://getshortcodes.com/
|
8 |
* Description: A comprehensive collection of visual components for WordPress
|
16 |
* Define plugin constants.
|
17 |
*/
|
18 |
define( 'SU_PLUGIN_FILE', __FILE__ );
|
19 |
+
define( 'SU_PLUGIN_VERSION', '5.9.7' );
|
20 |
|
21 |
/**
|
22 |
* Load dependencies.
|