Version Description
What's new
- The
[su_user]
shortcode now support nested shortcodes in theuser_id
attribute - The
[su_feed]
now has thetarget
attribute, which allow opening feed links in a new tab
Fixes
- Updated documentation for the
[su_user]
shortcode. New fields: Nickname, First Name, Last Name, Description, & Locale - Fixed warning in Google Search Console when testing page with the
[su_youtube]
shortcode:Allow attribute will take precedence over allowfullscreen.
- Fixed issue when some attributes weren't inserted by the Insert shortcode button
- Improved compatibility with PHP 7.4, thanks to Jrn Lund
-
[su_feed]
links now have title attribute with descriptions
Download this release
Release Info
Developer | gn_themes |
Plugin | Shortcodes Ultimate |
Version | 5.8.0 |
Comparing to | |
See all releases |
Code changes from version 5.7.0 to 5.8.0
- admin/css/addons.css +1 -1
- inc/core/generator.php +1 -0
- includes/css/shortcodes.css +1 -1
- includes/css/shortcodes.full.css +0 -10
- includes/js/generator/index.js +1 -1
- includes/js/generator/index.js.map +1 -1
- includes/js/shortcodes/index.js +1 -1
- includes/js/shortcodes/index.js.map +1 -1
- includes/shortcodes/button.php +3 -3
- includes/shortcodes/feed.php +18 -6
- includes/shortcodes/members.php +12 -12
- includes/shortcodes/user.php +9 -2
- includes/shortcodes/youtube-advanced.php +1 -1
- includes/shortcodes/youtube.php +1 -1
- languages/shortcodes-ultimate.pot +75 -51
- readme.txt +19 -2
- shortcodes-ultimate.php +2 -2
admin/css/addons.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.su-admin-addons-list{display:-webkit-box;display:flex;flex-wrap:wrap;margin-top:22px}.su-admin-addons-item{position:relative;-webkit-box-flex:0;flex:0 0 300px;box-sizing:border-box;margin:0 22px 22px 0;padding:33px 22px;max-width:100%;border-radius:5px;background:#fff;background:-webkit-gradient(linear,left top,left bottom,from(white),color-stop(30%,#fff),to(#f7f7f7));background
|
1 |
+
.su-admin-addons-list{display:-webkit-box;display:flex;flex-wrap:wrap;margin-top:22px}.su-admin-addons-item{position:relative;-webkit-box-flex:0;flex:0 0 300px;box-sizing:border-box;margin:0 22px 22px 0;padding:33px 22px;max-width:100%;border-radius:5px;background:#fff;background:-webkit-gradient(linear,left top,left bottom,from(white),color-stop(30%,#fff),to(#f7f7f7));background:linear-gradient(to bottom,#fff 0,#fff 30%,#f7f7f7 100%);box-shadow:0 1px 2px rgba(0,0,0,.1);-webkit-transition:box-shadow .2s ease,-webkit-transform .2s ease;transition:box-shadow .2s ease,-webkit-transform .2s ease;transition:transform .2s ease,box-shadow .2s ease;transition:transform .2s ease,box-shadow .2s ease,-webkit-transform .2s ease}.su-admin-addons-item:hover{background:#fff;box-shadow:0 0 12px rgba(0,0,0,.15);-webkit-transform:scale(1.03);transform:scale(1.03)}.su-admin-addons-item:hover .su-admin-addons-item-image{-webkit-transform:scale(1.05);transform:scale(1.05)}.su-admin-addons-item-content{text-align:center}.su-admin-addons-item-image{margin:0 0 22px;padding:0;width:80px;height:80px;border:none;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease;-o-object-fit:cover;object-fit:cover}.su-admin-addons-item-title{margin:0 0 11px;color:#0073aa;font-size:1.05rem;line-height:1}.su-admin-addons-item-description{margin:0 0 22px;color:#777;font-size:.9rem;line-height:1.2}.su-admin-addons-item-overlay{position:absolute;top:0;right:0;bottom:0;left:0;left:0;width:100%;height:100%;text-indent:-999%}
|
inc/core/generator.php
CHANGED
@@ -212,6 +212,7 @@ class Su_Generator {
|
|
212 |
<input type="hidden" name="su-generator-selected" id="su-generator-selected" value="<?php echo plugins_url( '', SU_PLUGIN_FILE ); ?>" />
|
213 |
<input type="hidden" name="su-generator-url" id="su-generator-url" value="<?php echo plugins_url( '', SU_PLUGIN_FILE ); ?>" />
|
214 |
<input type="hidden" name="su-compatibility-mode-prefix" id="su-compatibility-mode-prefix" value="<?php echo su_get_shortcode_prefix(); ?>" />
|
|
|
215 |
<div id="su-generator-result" style="display:none"></div>
|
216 |
</div>
|
217 |
</div>
|
212 |
<input type="hidden" name="su-generator-selected" id="su-generator-selected" value="<?php echo plugins_url( '', SU_PLUGIN_FILE ); ?>" />
|
213 |
<input type="hidden" name="su-generator-url" id="su-generator-url" value="<?php echo plugins_url( '', SU_PLUGIN_FILE ); ?>" />
|
214 |
<input type="hidden" name="su-compatibility-mode-prefix" id="su-compatibility-mode-prefix" value="<?php echo su_get_shortcode_prefix(); ?>" />
|
215 |
+
<input type="hidden" name="su-generator-option-skip" id="su-generator-option-skip" value="<?php echo esc_attr( get_option( 'su_option_skip', '' ) ); ?>" />
|
216 |
<div id="su-generator-result" style="display:none"></div>
|
217 |
</div>
|
218 |
</div>
|
includes/css/shortcodes.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.su-u-clearfix::after{content:'';display:table;clear:both}.su-u-trim>:first-child{margin-top:0}.su-u-trim>:last-child{margin-bottom:0}.su-u-responsive-media-yes{position:relative;padding-bottom:56.25%;height:0;overflow:hidden}.su-u-responsive-media-yes .fluid-width-video-wrapper,.su-u-responsive-media-yes .video-holder{position:static!important}.su-u-responsive-media-yes embed,.su-u-responsive-media-yes iframe,.su-u-responsive-media-yes object{position:absolute;top:0;left:0;width:100%;height:100%}.su-accordion{margin-bottom:1.5em}.su-accordion .su-spoiler{margin-bottom:.5em}.su-audio{position:relative;width:100%;height:30px;margin-bottom:1.5em;background:#7c8781;background:-webkit-gradient(linear,left top,left bottom,from(#7c8781),to(#0a0809));background:-webkit-linear-gradient(top,#7c8781 0,#0a0809 100%);background:linear-gradient(to bottom,#7c8781 0,#0a0809 100%);border-radius:3px}.su-audio .jp-pause,.su-audio .jp-play{position:absolute;left:0;top:0;display:block;width:30px;height:30px;border-top-left-radius:3px;border-bottom-left-radius:3px;cursor:pointer;border-right:1px solid #454947;background-image:url(../images/player/default.png);background-repeat:no-repeat}.su-audio .jp-play{background-position:0 0}.su-audio .jp-pause{background-position:-30px 0}.su-audio .jp-current-time,.su-audio .jp-duration{position:absolute;top:0;display:block;height:30px;line-height:30px;font-size:10px;color:#eee;text-shadow:0 -1px 0 #000}.su-audio .jp-current-time{left:45px}.su-audio .jp-duration{right:10px}.su-audio .jp-play-bar,.su-audio .jp-seek-bar{position:absolute;top:0;left:0;height:10px;border-radius:3px;cursor:pointer}.su-audio .jp-progress{position:absolute;top:10px;left:85px;right:50px;height:10px;background:#333;box-shadow:0 0 5px #000 inset;border-radius:3px}.su-audio .jp-seek-bar{background:#0b0b0b;background:-webkit-gradient(linear,left top,left bottom,from(#0b0b0b),to(#666));background:-webkit-linear-gradient(top,#0b0b0b 0,#666 100%);background:linear-gradient(to bottom,#0b0b0b 0,#666 100%)}.su-audio .jp-play-bar{background:#6db3f2;background:-webkit-gradient(linear,left top,left bottom,from(#6db3f2),color-stop(50%,#54a3ee),color-stop(51%,#3690f0),to(#1e69de));background:-webkit-linear-gradient(top,#6db3f2 0,#54a3ee 50%,#3690f0 51%,#1e69de 100%);background:linear-gradient(to bottom,#6db3f2 0,#54a3ee 50%,#3690f0 51%,#1e69de 100%)}.su-box{margin:0 0 1.5em;border-width:2px;border-style:solid}.su-box-title{display:block;padding:.5em 1em;font-weight:700;font-size:1.1em}.su-box-content{background-color:#fff;color:#444;padding:1em}.su-box-style-soft .su-box-title{background-image:url(../images/styles/style-soft.png);background-position:0 0;background-repeat:repeat-x}.su-box-style-glass .su-box-title{background-image:url(../images/styles/style-glass.png);background-position:0 50%;background-repeat:repeat-x}.su-box-style-bubbles .su-box-title{background-image:url(../images/styles/style-bubbles.png);background-position:0 50%;background-repeat:repeat-x}.su-box-style-noise .su-box-title{background-image:url(../images/styles/style-noise.png);background-position:0 0;background-repeat:repeat-x}.su-button{display:inline-block!important;text-align:center;text-decoration:none!important;box-sizing:content-box!important;-webkit-transition:all .2s;transition:all .2s}.su-button-wide{display:block!important;margin:1em 0}.su-button-center{text-align:center}.su-button span{display:block!important;text-decoration:none!important;box-sizing:content-box!important;-webkit-transition:all .2s;transition:all .2s}.su-button img{border:none!important;vertical-align:middle!important;margin:-.2em .4em 0 -.3em!important;box-shadow:none!important}.su-button i{display:inline-block;width:1em;height:1em;margin:0 .5em 0 0!important;text-align:center;line-height:1em}.su-button.su-button-float-icon img{margin:0 .5em!important}.su-button small{display:block;margin:-.2em 0 0;color:inherit;text-align:center;font-style:normal;font-size:.8em;line-height:1;opacity:.7}.su-button-style-default{border-width:1px;border-style:solid}.su-button-style-default:hover{opacity:.7}.su-button-style-default span{border-top-width:1px;border-bottom-width:1px;border-top-style:solid;border-bottom-style:solid}.su-button-style-flat,.su-button-style-flat span{border:none}.su-button-style-flat span{position:relative}.su-button-style-flat:hover span{top:1px}.su-button-style-ghost{background:0 0!important}.su-button-style-ghost span{border-width:3px;border-style:solid}.su-button-style-ghost:hover span{border-color:inherit!important}.su-button-style-soft span{background:0 -20px url(../images/styles/style-soft.png) repeat-x}.su-button-style-soft:hover span{background:0 0 url(../images/styles/style-soft.png) repeat-x}.su-button-style-glass span{background:0 50% url(../images/styles/style-glass.png) repeat-x}.su-button-style-glass:hover span{background:100% 50% url(../images/styles/style-glass.png) repeat-x}.su-button-style-bubbles span{background:0 50% url(../images/styles/style-bubbles.png) no-repeat}.su-button-style-bubbles:hover span{background:-710px 50% url(../images/styles/style-bubbles.png) no-repeat}.su-button-style-noise span{background:0 0 url(../images/styles/style-noise.png) repeat-x}.su-button-style-noise:hover span{background:0 0 url(../images/styles/style-noise.png) repeat-x}.su-button-style-stroked span{margin:1px;border:1px dashed #fff!important}.su-button-style-stroked:hover span{opacity:.7}.su-button-style-3d{border-bottom-style:solid;border-bottom-width:6px}.su-button-style-3d span{border-bottom-style:solid;border-bottom-width:1px}.su-button-style-3d:hover{position:relative;top:3px;border-bottom-width:3px}.su-carousel{position:relative;margin-bottom:1.5em;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.su-carousel-centered{margin:0 auto 1.5em}.su-carousel-slides{position:relative;width:100%;-webkit-transition-property:-webkit-transform,left,top;-webkit-transition-duration:0s;-webkit-transform:translate3d(0,0,0);-webkit-transition-timing-function:ease;-moz-transition-property:-moz-transform,left,top;-moz-transition-duration:0s;-moz-transform:translate3d(0,0,0);-moz-transition-timing-function:ease;-o-transition-property:-o-transform,left,top;-o-transition-duration:0s;-o-transform:translate3d(0,0,0);-o-transition-timing-function:ease;-o-transform:translate(0,0);-ms-transition-property:-ms-transform,left,top;-ms-transition-duration:0s;-ms-transform:translate3d(0,0,0);-ms-transition-timing-function:ease;-webkit-transition-property:left,top,-webkit-transform;transition-property:left,top,-webkit-transform;transition-property:transform,left,top;transition-property:transform,left,top,-webkit-transform;transition-duration:0s;transform:translate3d(0,0,0);transition-timing-function:ease}.swiper-free-mode>.su-carousel-slides{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.su-carousel-slide{position:relative;float:left}.su-carousel-slide>a,.su-carousel-slide>a>img,.su-carousel-slide>img{position:relative;display:block;width:100%;height:100%;text-decoration:none;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.su-carousel-responsive-yes .su-carousel-slide>a,.su-carousel-responsive-yes .su-carousel-slide>a>img,.su-carousel-responsive-yes .su-carousel-slide>img{height:auto}.su-carousel-pages-no .su-carousel-pagination{display:none}.swiper-wp8-horizontal{-ms-touch-action:pan-y}.swiper-wp8-vertical{-ms-touch-action:pan-x}.su-carousel .su-carousel-slide a{padding:0 5px}.su-carousel .su-carousel-slide img{padding:3px;border:1px solid #ccc;background:#fff;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px}.su-carousel .su-carousel-slide-title{position:absolute;left:9px;right:9px;bottom:4px;display:block;padding:2px 3px;color:#fff;line-height:1.2;font-size:11px;background:#000;background:rgba(0,0,0,.5);box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;transition:opacity 1s;-o-transition:opacity 1s;-moz-transition:opacity 1s;-webkit-transition:opacity 1s}.su-carousel .su-carousel-next,.su-carousel .su-carousel-prev{position:absolute;top:50%;display:block;width:40px;height:40px;margin-top:-20px;background:#000 0 0 url(../images/swiper/default.png) no-repeat;background-color:rgba(0,0,0,.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;opacity:0;-webkit-transition:all .2s;transition:all .2s}.su-carousel .su-carousel-prev{right:20px;margin-right:40px;background-position:-40px 0}.su-carousel .su-carousel-next{left:20px;margin-left:40px;background-position:0 0}.su-carousel:hover .su-carousel-next,.su-carousel:hover .su-carousel-prev{margin-left:0;margin-right:0;opacity:.7}.su-carousel .su-carousel-next:hover,.su-carousel .su-carousel-prev:hover{opacity:1}.su-carousel .su-carousel-pagination{position:absolute;left:15%;right:15%;top:50%;width:70%;height:0;margin-top:-7px;text-align:center;cursor:default;opacity:0;-webkit-transition:all .2s;transition:all .2s}.su-carousel:hover .su-carousel-pagination{bottom:20px;opacity:1}.su-carousel .su-carousel-pagination span{display:inline-block;width:14px;height:14px;margin:0;background:#000 0 -999px url(../images/swiper/default.png) no-repeat;background-color:rgba(0,0,0,.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;-webkit-transition:all .2s;transition:all .2s}.su-carousel:hover .su-carousel-pagination span{margin:0 3px}.su-carousel .su-carousel-pagination span.swiper-visible-switch{background-color:#fff;background-color:rgba(255,255,255,.5)}.su-carousel .su-carousel-pagination span.swiper-active-switch,.su-carousel .su-carousel-pagination span:hover{background-position:0 -40px}.su-row{clear:both;zoom:1;margin-bottom:1.5em}.su-row:after,.su-row:before{display:table;content:''}.su-row:after{clear:both}.su-column{display:block;margin:0 4% 0 0;float:left;box-sizing:border-box}.su-column-last{margin-right:0}.su-row .su-column{margin:0 0 0 4%}.su-row .su-column.su-column-size-1-1{margin-left:0;margin-right:0}.su-row .su-column:first-child{margin-left:0}.su-row .su-column.su-column-centered{margin-right:auto;margin-left:auto;float:none}.su-column embed,.su-column iframe,.su-column img,.su-column object{max-width:100%}.su-column-size-1-1{width:100%}.su-column-size-1-2{width:48%}.su-column-size-1-3{width:30.66%}.su-column-size-2-3{width:65.33%}.su-column-size-1-4{width:22%}.su-column-size-3-4{width:74%}.su-column-size-1-5{width:16.8%}.su-column-size-2-5{width:37.6%}.su-column-size-3-5{width:58.4%}.su-column-size-4-5{width:79.2%}.su-column-size-1-6{width:13.33%}.su-column-size-5-6{width:82.66%}.su-custom-gallery{margin-bottom:1.5em}.su-custom-gallery:after,.su-custom-gallery:before{content:'';display:table}.su-custom-gallery:after{clear:both}.su-custom-gallery-slide{position:relative;float:left;margin:.5em;overflow:hidden}.su-custom-gallery-slide a{display:block;width:100%;height:100%}.su-custom-gallery-slide img{display:block;margin:0;padding:3px;border:1px solid #ccc;background:#fff;box-sizing:border-box;border-radius:5px;box-shadow:none;-webkit-transition:all .2s;transition:all .2s}.su-custom-gallery-slide:hover img{background:#eee;border:1px solid #aaa}.su-custom-gallery-slide span{position:absolute;left:4px;bottom:4px;right:4px;display:block;padding:2px 4px;font-size:12px;color:#fff;background:#000;background:rgba(0,0,0,.5);line-height:1.3;opacity:0;-webkit-transition:all .2s;transition:all .2s}.su-custom-gallery-slide:hover span{opacity:1}.su-custom-gallery-title-never span{display:none}.su-custom-gallery-title-always span{opacity:1}.su-dailymotion{margin:0 0 1.5em}.su-dailymotion iframe{border:none!important}.su-divider{clear:both;border:none;text-align:right;line-height:1}.su-divider a{display:inline-block;font-size:.8em;text-decoration:none;outline:0;padding-bottom:5px}.su-divider-style-default{border-bottom-style:solid}.su-divider-style-dotted{border-bottom-style:dotted}.su-divider-style-dashed{border-bottom-style:dashed}.su-divider-style-double{border-bottom-style:double}.su-document{margin:0 0 1.5em}.su-document iframe{border:none!important}.su-dropcap{float:left;display:inline-block;width:2em;height:2em;margin:.2em .5em .2em 0;line-height:2em;text-align:center;overflow:hidden;text-transform:uppercase}.su-dropcap-style-default{color:#fff;background:#45484d;background:-webkit-gradient(linear,left top,left bottom,from(#45484d),to(black));background:-webkit-linear-gradient(top,#45484d 0,#000 100%);background:linear-gradient(to bottom,#45484d 0,#000 100%);text-shadow:-1px -1px 0 #000;border-radius:50%}.su-dropcap-style-flat{background:#444;color:#fff}.su-dropcap-style-light{color:#333;border-radius:50%;background:#fff;background:-webkit-gradient(linear,left top,left bottom,from(white),to(#eaeaea));background:-webkit-linear-gradient(top,#fff 0,#eaeaea 100%);background:linear-gradient(to bottom,#fff 0,#eaeaea 100%)}.su-dropcap-style-simple{width:1em;height:1em;line-height:1em;text-align:left}.su-expand{margin:0 0 1.5em}.su-expand-content{overflow:hidden}.su-expand-link{margin-top:.5em;cursor:pointer}.su-expand-link:hover{opacity:.7}.su-expand-link a,.su-expand-link a:active,.su-expand-link a:focus,.su-expand-link a:hover,.su-expand-link a:visited{display:inline;text-decoration:none;box-shadow:none;background:0 0;border:none}.su-expand-link-style-underlined .su-expand-link span{text-decoration:underline}.su-expand-link-style-dotted .su-expand-link span{border-bottom:1px dotted #333}.su-expand-link-style-dashed .su-expand-link span{border-bottom:1px dashed #333}.su-expand-link-style-button .su-expand-link a{display:inline-block;margin-top:.2em;padding:.2em .4em;border:2px solid #333}.su-expand-link-more{display:none}.su-expand-link-less{display:block}.su-expand-collapsed .su-expand-link-more{display:block}.su-expand-collapsed .su-expand-link-less{display:none}.su-expand-link i{display:inline-block;margin:0 .3em 0 0;vertical-align:middle;color:inherit}.su-expand-link img{display:inline-block;width:1em;height:1em;margin:0 .3em 0 0;vertical-align:middle}.su-frame,.su-frame-inner{display:block}.su-frame-align-left{float:left;margin:0 1em 1em 0}.su-frame-align-center{float:none;margin:1em auto}.su-frame-align-right{float:right;margin:0 0 1em 1em}.su-frame img{display:block!important;float:none!important;padding:0!important;margin:0!important;border:none!important;box-shadow:none!important}.su-frame-style-default{padding:2px;border:1px solid #999;background:#fff;box-shadow:1px 1px 4px #ccc}.su-frame-style-default .su-frame-inner{padding:2px;border:4px solid #eee}.su-gmap{margin:0 0 1.5em}.su-gmap iframe{border:none!important}.su-guests{margin-bottom:1.5em}.su-heading-style-default{padding:2px 0;border-top:1px solid #999;border-bottom:1px solid #999}.su-heading-style-default .su-heading-inner{padding:1em .5em;border-top:4px solid #eee;border-bottom:4px solid #eee}.su-heading.su-heading-align-left{text-align:left}.su-heading.su-heading-align-left .su-heading-inner{padding-left:.2em}.su-heading.su-heading-align-right{text-align:right}.su-heading.su-heading-align-right .su-heading-inner{padding-right:.2em}.su-heading.su-heading-align-center{text-align:center}.su-highlight{display:inline;padding:1px 0}.su-image-carousel{width:100%;margin:1.5em 0}.su-image-carousel:first-child{margin-top:0}.su-image-carousel:last-child{margin-bottom:0}.su-image-carousel-item{width:100%;box-sizing:border-box}.su-image-carousel .su-image-carousel-item-content{position:relative}.su-image-carousel .su-image-carousel-item-content a,.su-image-carousel .su-image-carousel-item-content a:active,.su-image-carousel .su-image-carousel-item-content a:focus,.su-image-carousel .su-image-carousel-item-content a:hover,.su-image-carousel .su-image-carousel-item-content a:visited,.su-image-carousel .su-image-carousel-item-content img{display:block;width:100%;height:100%;margin:0;padding:0;box-sizing:border-box;box-shadow:none;text-decoration:none;border:none;border-radius:0}.su-image-carousel .su-image-carousel-item-content a::after,.su-image-carousel .su-image-carousel-item-content a::before,.su-image-carousel .su-image-carousel-item-content img::after,.su-image-carousel .su-image-carousel-item-content img::before{display:none}.su-image-carousel .su-image-carousel-item-content span{position:absolute;display:block;font-size:.9em;max-height:60%;overflow:auto;line-height:1.3;word-wrap:break-word}.su-image-carousel .su-image-carousel-item-content span:empty{display:none}.su-image-carousel-columns-2 .su-image-carousel-item{width:50%}.su-image-carousel-columns-2.su-image-carousel-has-spacing .su-image-carousel-item{width:48.5%;margin-right:3%}.su-image-carousel-columns-3 .su-image-carousel-item{width:33.33333%}.su-image-carousel-columns-3.su-image-carousel-has-spacing .su-image-carousel-item{width:31.4%;margin-right:2.9%}.su-image-carousel-columns-4 .su-image-carousel-item{width:25%}.su-image-carousel-columns-4.su-image-carousel-has-spacing .su-image-carousel-item{width:22.9%;margin-right:2.8%}.su-image-carousel-columns-5 .su-image-carousel-item{width:20%}.su-image-carousel-columns-5.su-image-carousel-has-spacing .su-image-carousel-item{width:18%;margin-right:2.5%}.su-image-carousel-columns-6 .su-image-carousel-item{width:16.66667%}.su-image-carousel-columns-6.su-image-carousel-has-spacing .su-image-carousel-item{width:14.5%;margin-right:2.6%}.su-image-carousel-columns-7 .su-image-carousel-item{width:14.28571%}.su-image-carousel-columns-7.su-image-carousel-has-spacing .su-image-carousel-item{width:12.4%;margin-right:2.2%}.su-image-carousel-columns-8 .su-image-carousel-item{width:12.5%}.su-image-carousel-columns-8.su-image-carousel-has-spacing .su-image-carousel-item{width:10.75%;margin-right:2%}.su-image-carousel-crop .su-image-carousel-item-content::before{float:left;width:1px;margin-left:-1px;height:0;content:''}.su-image-carousel-crop .su-image-carousel-item-content::after{content:'';display:table;clear:both}.su-image-carousel-crop .su-image-carousel-item-content img{position:absolute;left:0;top:0;right:0;bottom:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.su-image-carousel-crop-16-9 .su-image-carousel-item-content::before{padding-top:56.25%}.su-image-carousel-crop-16-10 .su-image-carousel-item-content::before{padding-top:62.5%}.su-image-carousel-crop-21-9 .su-image-carousel-item-content::before{padding-top:42.85714%}.su-image-carousel-crop-5-4 .su-image-carousel-item-content::before{padding-top:80%}.su-image-carousel-crop-4-3 .su-image-carousel-item-content::before{padding-top:75%}.su-image-carousel-crop-3-2 .su-image-carousel-item-content::before{padding-top:66.66667%}.su-image-carousel-crop-2-1 .su-image-carousel-item-content::before{padding-top:50%}.su-image-carousel-crop-1-1 .su-image-carousel-item-content::before{padding-top:100%}.su-image-carousel-crop-1-2 .su-image-carousel-item-content::before{padding-top:200%}.su-image-carousel-crop-2-3 .su-image-carousel-item-content::before{padding-top:150%}.su-image-carousel-crop-3-4 .su-image-carousel-item-content::before{padding-top:133.33333%}.su-image-carousel-crop-4-5 .su-image-carousel-item-content::before{padding-top:125%}.su-image-carousel-crop-9-21 .su-image-carousel-item-content::before{padding-top:233.33333%}.su-image-carousel-crop-10-16 .su-image-carousel-item-content::before{padding-top:160%}.su-image-carousel-crop-9-16 .su-image-carousel-item-content::before{padding-top:177.77778%}.su-image-carousel-align-left{float:left;margin-right:1.5em;margin-top:0}.su-image-carousel-align-right{float:right;margin-left:1.5em;margin-top:0}.su-image-carousel-align-center{margin-right:auto;margin-left:auto}.su-image-carousel-align-full{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw!important;width:100vw!important}.su-image-carousel button.flickity-prev-next-button{position:absolute;top:50%;display:block;width:44px;height:44px;margin:-22px 0 0;padding:0;opacity:0;outline:0;border-radius:50%;-webkit-transform:none;transform:none;-webkit-transition:opacity .2s ease,-webkit-transform .2s ease;transition:opacity .2s ease,-webkit-transform .2s ease;transition:opacity .2s ease,transform .2s ease;transition:opacity .2s ease,transform .2s ease,-webkit-transform .2s ease}.su-image-carousel:hover button.flickity-prev-next-button{opacity:.5}.su-image-carousel button.flickity-prev-next-button:focus,.su-image-carousel button.flickity-prev-next-button:hover{opacity:1;box-shadow:none}.su-image-carousel button.flickity-prev-next-button:focus{-webkit-transform:scale(1.05);transform:scale(1.05)}.su-image-carousel button.flickity-prev-next-button[disabled]{display:none}.su-image-carousel button.flickity-prev-next-button.previous{left:20px}.su-image-carousel button.flickity-prev-next-button.next{right:20px}.su-image-carousel>ol.flickity-page-dots{position:absolute;top:50%;left:50%;bottom:auto;width:auto;margin:0;padding:0;list-style:none;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none;opacity:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.su-image-carousel>ol.flickity-page-dots>li.dot{position:relative;width:20px;height:20px;display:inline-block;margin:5px;padding:0;list-style:none;pointer-events:all;border-radius:50%;opacity:.5;-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.su-image-carousel>ol.flickity-page-dots>li.dot:hover{opacity:1}.su-image-carousel>ol.flickity-page-dots>li.dot::before{position:absolute;top:50%;left:50%;display:none;width:10px;height:10px;margin:0;padding:0;content:'';border-radius:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.su-image-carousel>ol.flickity-page-dots>li.dot.is-selected::before{display:block}.su-image-carousel:hover ol.flickity-page-dots{opacity:1}.su-image-carousel-controls-style-dark button.flickity-prev-next-button{background:#000;color:#fff}.su-image-carousel-controls-style-dark ol.flickity-page-dots li.dot{background:#000}.su-image-carousel-controls-style-dark ol.flickity-page-dots li.dot::before{background:#fff}.su-image-carousel-controls-style-light button.flickity-prev-next-button{background:#fff;color:#000}.su-image-carousel-controls-style-light ol.flickity-page-dots li.dot{background:#fff}.su-image-carousel-controls-style-light ol.flickity-page-dots li.dot::before{background:#000}.su-image-carousel-slides-style-default .su-image-carousel-item-content{margin:1px}.su-image-carousel-slides-style-default .su-image-carousel-item-content img{padding:3px;background:#fff;border:1px solid #ccc;border-radius:7px}.su-image-carousel-slides-style-default .su-image-carousel-item-content span{bottom:4px;right:4px;left:4px;padding:.5em .7em;background:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.7)),to(transparent));background:-webkit-linear-gradient(bottom,rgba(0,0,0,.7),transparent);background:linear-gradient(to top,rgba(0,0,0,.7),transparent);text-shadow:0 2px 5px #000;color:#fff;border-bottom-right-radius:2px;border-bottom-left-radius:2px}.su-image-carousel-slides-style-minimal .su-image-carousel-item-content{margin:1px}.su-image-carousel-slides-style-minimal .su-image-carousel-item-content span{right:0;bottom:0;left:0;padding:.7em;background:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.7)),to(transparent));background:-webkit-linear-gradient(bottom,rgba(0,0,0,.7),transparent);background:linear-gradient(to top,rgba(0,0,0,.7),transparent);text-shadow:0 2px 5px #000;color:#fff}.su-image-carousel-slides-style-photo .su-image-carousel-item-content{padding:7px}.su-image-carousel-slides-style-photo .su-image-carousel-item-content img{border:5px solid #fff;border-radius:7px;box-shadow:0 2px 5px rgba(0,0,0,.5)}.su-image-carousel-slides-style-photo .su-image-carousel-item-content span{right:12px;bottom:12px;left:12px;padding:.3em .5em;background:#fff;color:#000;font-size:.9em}.su-image-carousel-slides-style-photo.su-image-carousel-crop .su-image-carousel-item-content img{top:7px;right:7px;left:7px;bottom:7px;width:calc(100% - 14px);height:calc(100% - 14px)}.su-image-carousel-mfp.mfp-bg{z-index:102000!important}.su-image-carousel-mfp.mfp-wrap{z-index:102001!important}.su-image-carousel-mfp.mfp-wrap .mfp-preloader{z-index:102002!important}.su-image-carousel-mfp.mfp-wrap .mfp-content{z-index:102003!important}.su-image-carousel-mfp.mfp-wrap button.mfp-arrow,.su-image-carousel-mfp.mfp-wrap button.mfp-close{z-index:102004!important}.su-image-carousel-has-outline .su-image-carousel-item-content a:focus img,.su-image-carousel-has-outline button.flickity-prev-next-button:focus{outline-width:2px;outline-style:solid;outline-color:Highlight}.su-label{display:inline;margin-right:.3em;padding:.1em .3em;font-size:.8em;height:.8em;line-height:.8em;color:#fff;border-radius:3px}.su-label-type-default{background:#999}.su-label-type-success{background:#090}.su-label-type-warning{background:#f90}.su-label-type-important{background:#f03}.su-label-type-black{background:#111}.su-label-type-info{background:#09c}.su-lightbox-content{position:relative;margin:0 auto}#su-generator .su-lightbox-content,.mfp-content .su-lightbox-content{display:block!important}.su-lightbox-content-preview{width:100%;min-height:300px;background:#444;overflow:hidden}.su-lightbox-content h1,.su-lightbox-content h2,.su-lightbox-content h3,.su-lightbox-content h4,.su-lightbox-content h5,.su-lightbox-content h6{color:inherit}.su-lightbox{cursor:pointer}.su-list{margin-bottom:1.5em}.su-list ul{margin:0!important;padding:0!important;list-style:none!important}.su-list ul li{position:relative;display:block!important;margin:0!important;padding:4px 0 4px 2em!important;list-style-type:none!important;line-height:1.3em}.su-list ul li>img{position:absolute;left:0;top:4px;width:1.3em;height:1.3em;padding:0;margin:0;border:none}.su-list ul li>i{position:absolute;left:0;top:4px;width:1.3em;height:1.3em;line-height:1.3em;text-align:center}.su-members{margin-bottom:1.5em;padding:1em;border-width:1px 0;border-style:solid;text-align:center}.su-members a{text-decoration:underline;color:inherit}.su-note{margin:0 0 1.5em;border-width:1px;border-style:solid}.su-note-inner{padding:1em;border-width:1px;border-style:solid}.su-posts-default-loop .su-post{margin-bottom:2.5em;line-height:1.5}.su-posts-default-loop .su-post:after{content:'';display:table;clear:both}.su-posts-default-loop .su-post-thumbnail{float:left;display:block;width:100px;height:100px;margin-right:1em}.su-posts-default-loop .su-post-thumbnail img{max-width:100px;max-height:100px}.su-posts-default-loop h2.su-post-title{clear:none;margin:0 0 .3em;font-size:1.2em;font-weight:700}.su-posts-default-loop .su-post-meta{margin-bottom:.7em;font-size:.8em;opacity:.6}.su-posts-default-loop .su-post-excerpt{margin-bottom:.5em}.su-posts-default-loop .su-post-excerpt p:last-child{margin-bottom:0}.su-posts-default-loop .su-post-comments-link{font-size:.9em}.su-posts-teaser-loop .su-post{margin-bottom:1.5em;line-height:1.2}.su-posts-teaser-loop .su-post:after{content:'';display:table;clear:both}.su-posts-teaser-loop .su-post-thumbnail{float:left;display:block;width:56px;height:56px;margin:0 1em 0 0}.su-posts-teaser-loop .su-post-thumbnail img{display:block;margin:0;padding:2px;border:1px solid #ccc;border-radius:5px;max-width:100%;max-height:100%}.su-posts-teaser-loop h2.su-post-title{display:block;margin:0;padding:0;border:none;font-size:.9em;font-weight:400;clear:none}.su-posts-single-post .su-post{margin-bottom:2.5em;line-height:1.5}.su-posts-single-post .su-post:after{content:'';display:table;clear:both}.su-posts-single-post h1.su-post-title{clear:none;margin:0 0 .3em;font-size:1.2em;font-weight:700}.su-posts-single-post .su-post-meta{margin-bottom:.7em;font-size:.8em;opacity:.6}.su-posts-single-post .su-post-content{margin-bottom:.5em}.su-posts-single-post .su-post-content p:last-child{margin-bottom:0}.su-private{margin:0 0 1.5em}.su-pullquote{display:block;width:30%;padding:.5em 1em}.su-pullquote-align-left{margin:.5em 1.5em 1em 0;padding-left:0;float:left;border-right:5px solid #eee}.su-pullquote-align-right{margin:.5em 0 1em 1.5em;padding-right:0;float:right;border-left:5px solid #eee}.su-qrcode{display:inline-block}.su-qrcode-align-left{float:left;margin:0 .5em .5em 0}.su-qrcode-align-center{display:block;clear:both;margin:1em auto;text-align:center}.su-qrcode-align-right{float:right;margin:0 0 .5em .5em}.su-qrcode a,.su-qrcode a:active,.su-qrcode a:focus,.su-qrcode a:hover{background:0 0;outline:0;display:inline;text-decoration:none}.su-qrcode-clickable a:hover{opacity:.7}.su-qrcode img{max-width:100%}.su-quote-style-default{position:relative;margin-bottom:1.5em;padding:.5em 3em;font-style:italic}.su-quote-style-default:after,.su-quote-style-default:before{position:absolute;display:block;width:20px;height:20px;background-image:url(../images/quote.png);content:''}.su-quote-style-default:before{top:0;left:0;background-position:0 0}.su-quote-style-default:after{right:0;bottom:0;background-position:-20px 0}.su-quote-style-default .su-quote-cite{display:block;text-align:right;font-style:normal}.su-quote-style-default .su-quote-cite:before{content:'\2014\0000a0'}.su-quote-style-default .su-quote-cite a{text-decoration:underline}.su-screenr{margin:0 0 1.5em}.su-screenr iframe{border:none!important}.su-service{position:relative;margin:0 0 1.5em}.su-service-title{display:block;margin-bottom:.5em;color:#333;font-weight:700;font-size:1.1em}.su-service-title img{position:absolute;top:0;left:0;display:block!important;margin:0!important;padding:0!important;border:none!important;box-shadow:none!important}.su-service-title i{position:absolute;top:0;left:0;display:block!important;width:1em;height:1em;text-align:center;line-height:1em}.su-service-content{line-height:1.4}.su-slider{position:relative;margin-bottom:1.5em;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.su-slider-centered{margin:0 auto 1.5em}.su-slider-slides{position:relative;width:100%;-webkit-transition-property:-webkit-transform,left,top;-webkit-transition-duration:0s;-webkit-transform:translate3d(0,0,0);-webkit-transition-timing-function:ease;-moz-transition-property:-moz-transform,left,top;-moz-transition-duration:0s;-moz-transform:translate3d(0,0,0);-moz-transition-timing-function:ease;-o-transition-property:-o-transform,left,top;-o-transition-duration:0s;-o-transform:translate3d(0,0,0);-o-transition-timing-function:ease;-o-transform:translate(0,0);-ms-transition-property:-ms-transform,left,top;-ms-transition-duration:0s;-ms-transform:translate3d(0,0,0);-ms-transition-timing-function:ease;-webkit-transition-property:left,top,-webkit-transform;transition-property:left,top,-webkit-transform;transition-property:transform,left,top;transition-property:transform,left,top,-webkit-transform;transition-duration:0s;transform:translate3d(0,0,0);transition-timing-function:ease}.swiper-free-mode>.su-slider-slides{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.su-slider-slide{position:relative;float:left}.su-slider-slide>a,.su-slider-slide>a>img,.su-slider-slide>img{position:relative;display:block;width:100%;height:100%;text-decoration:none}.su-slider-responsive-yes .su-slider-slide>a,.su-slider-responsive-yes .su-slider-slide>a>img,.su-slider-responsive-yes .su-slider-slide>img{height:auto}.su-slider-pages-no .su-slider-pagination{display:none}.swiper-wp8-horizontal{-ms-touch-action:pan-y}.swiper-wp8-vertical{-ms-touch-action:pan-x}.su-slider-slide-title{position:absolute;left:20px;bottom:20px;display:block;max-width:90%;padding:5px 10px;color:#fff;line-height:1.3;background:#000;background:rgba(0,0,0,.5);border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;opacity:0;transition:opacity 1s;-o-transition:opacity 1s;-moz-transition:opacity 1s;-webkit-transition:opacity 1s}.su-slider-slide-visible .su-slider-slide-title{opacity:1}.su-slider-next,.su-slider-prev{position:absolute;top:50%;display:block;width:40px;height:40px;margin-top:-20px!important;background:#000 0 0 url(../images/swiper/default.png) no-repeat;background-color:rgba(0,0,0,.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;opacity:0;-webkit-transition:all .2s;transition:all .2s}.su-slider-prev{right:10px;margin-right:30px;background-position:-40px 0}.su-slider-next{left:10px;margin-left:30px;background-position:0 0}.su-slider:hover .su-slider-next,.su-slider:hover .su-slider-prev{margin-left:0;margin-right:0;opacity:.7}.su-slider .su-slider-next:hover,.su-slider .su-slider-prev:hover{opacity:1}.su-slider-pagination{position:absolute;left:15%;right:15%;top:50%;width:70%;height:0;margin-top:-7px;text-align:center;cursor:default;opacity:0;-webkit-transition:all .2s;transition:all .2s}.su-slider:hover .su-slider-pagination{bottom:20px;opacity:1}.su-slider-pagination span{display:inline-block;width:14px;height:14px;margin:0;background:#000 0 -999px url(../images/swiper/default.png) no-repeat;background-color:rgba(0,0,0,.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;-webkit-transition:all .2s;transition:all .2s}.su-slider:hover .su-slider-pagination span{margin:0 3px}.su-slider .su-slider-pagination span.swiper-visible-switch{background-color:#fff;background-color:rgba(255,255,255,.5)}.su-slider-pagination span.swiper-active-switch,.su-slider-pagination span:hover{background-position:0 -40px}.su-spacer{display:block;height:0;clear:both;overflow:hidden}.su-spacer-5{height:5px}.su-spacer-10{height:10px}.su-spacer-20{height:20px}.su-spacer-30{height:30px}.su-spacer-40{height:40px}.su-spoiler{margin-bottom:1.5em}.su-spoiler .su-spoiler:last-child{margin-bottom:0}.su-spoiler-title{position:relative;cursor:pointer;min-height:20px;line-height:20px;padding:7px 7px 7px 34px;font-weight:700;font-size:13px}.su-spoiler-title:focus{outline:currentColor thin dotted}.su-spoiler-icon{position:absolute;left:7px;top:7px;display:block;width:20px;height:20px;line-height:21px;text-align:center;font-size:14px;font-family:ShortcodesUltimateIcons;font-weight:400;font-style:normal;-webkit-font-smoothing:antialiased}.su-spoiler-content{padding:14px;-webkit-transition:padding-top .2s;transition:padding-top .2s;-ie-transition:padding-top .2s}.su-spoiler.su-spoiler-closed>.su-spoiler-content{height:0;margin:0;padding:0;overflow:hidden;border:none;opacity:0;pointer-events:none}.su-spoiler.su-spoiler-closed>.su-spoiler-content iframe{display:none}.su-spoiler-icon-plus .su-spoiler-icon:before{content:'\f068'}.su-spoiler-icon-plus.su-spoiler-closed .su-spoiler-icon:before{content:'\f067'}.su-spoiler-icon-plus-circle .su-spoiler-icon:before{content:'\f056'}.su-spoiler-icon-plus-circle.su-spoiler-closed .su-spoiler-icon:before{content:'\f055'}.su-spoiler-icon-plus-square-1 .su-spoiler-icon:before{content:'\f146'}.su-spoiler-icon-plus-square-1.su-spoiler-closed .su-spoiler-icon:before{content:'\f0fe'}.su-spoiler-icon-plus-square-2 .su-spoiler-icon:before{content:'\f147'}.su-spoiler-icon-plus-square-2.su-spoiler-closed .su-spoiler-icon:before{content:'\f196'}.su-spoiler-icon-arrow .su-spoiler-icon:before{content:'\f063'}.su-spoiler-icon-arrow.su-spoiler-closed .su-spoiler-icon:before{content:'\f061'}.su-spoiler-icon-arrow-circle-1 .su-spoiler-icon:before{content:'\f0ab'}.su-spoiler-icon-arrow-circle-1.su-spoiler-closed .su-spoiler-icon:before{content:'\f0a9'}.su-spoiler-icon-arrow-circle-2 .su-spoiler-icon:before{content:'\f01a'}.su-spoiler-icon-arrow-circle-2.su-spoiler-closed .su-spoiler-icon:before{content:'\f18e'}.su-spoiler-icon-chevron .su-spoiler-icon:before{content:'\f078'}.su-spoiler-icon-chevron.su-spoiler-closed .su-spoiler-icon:before{content:'\f054'}.su-spoiler-icon-chevron-circle .su-spoiler-icon:before{content:'\f13a'}.su-spoiler-icon-chevron-circle.su-spoiler-closed .su-spoiler-icon:before{content:'\f138'}.su-spoiler-icon-caret .su-spoiler-icon:before{content:'\f0d7'}.su-spoiler-icon-caret.su-spoiler-closed .su-spoiler-icon:before{content:'\f0da'}.su-spoiler-icon-caret-square .su-spoiler-icon:before{content:'\f150'}.su-spoiler-icon-caret-square.su-spoiler-closed .su-spoiler-icon:before{content:'\f152'}.su-spoiler-icon-folder-1 .su-spoiler-icon:before{content:'\f07c'}.su-spoiler-icon-folder-1.su-spoiler-closed .su-spoiler-icon:before{content:'\f07b'}.su-spoiler-icon-folder-2 .su-spoiler-icon:before{content:'\f115'}.su-spoiler-icon-folder-2.su-spoiler-closed .su-spoiler-icon:before{content:'\f114'}.su-spoiler-style-default>.su-spoiler-title{padding-left:27px;padding-right:0}.su-spoiler-style-default>.su-spoiler-title>.su-spoiler-icon{left:0}.su-spoiler-style-default>.su-spoiler-content{padding:1em 0 1em 27px}.su-spoiler-style-fancy{border:1px solid #ccc;border-radius:10px;background:#fff;color:#333}.su-spoiler-style-fancy>.su-spoiler-title{border-bottom:1px solid #ccc;border-radius:10px;background:#f0f0f0;font-size:.9em}.su-spoiler-style-fancy.su-spoiler-closed>.su-spoiler-title{border:none}.su-spoiler-style-fancy>.su-spoiler-content{border-radius:10px}.su-spoiler-style-simple{border-top:1px solid #ccc;border-bottom:1px solid #ccc}.su-spoiler-style-simple>.su-spoiler-title{padding:5px 10px;background:#f0f0f0;color:#333;font-size:.9em}.su-spoiler-style-simple>.su-spoiler-title>.su-spoiler-icon{display:none}.su-spoiler-style-simple>.su-spoiler-content{padding:1em 10px;background:#fff;color:#333}.su-table{width:100%;margin-bottom:1.5em}.su-table table{width:100%!important;margin:0!important;border-collapse:collapse!important;font-size:1em!important;border:1px solid #ccc!important;table-layout:auto!important}.su-table table th{text-align:center!important;padding:1em!important;font-size:1em!important;font-weight:700!important;color:#333!important;border:1px solid #ccc!important;background:#f0f0f0!important}.su-table table td{padding:.5em 1em!important;border:1px solid #ccc!important;background:#fff!important}.su-table-responsive{overflow-x:auto}.su-table-responsive table{width:auto!important;min-width:100%!important}.su-table-responsive table td,.su-table-responsive table th{word-break:initial!important}.su-table-alternate table tr:nth-child(even) td{background-color:#f7f7f7!important}.su-table-fixed table{table-layout:fixed!important}.su-tabs{margin:0 0 1.5em;padding:3px;border-radius:3px;background:#eee}.su-tabs-nav span{display:inline-block;margin-right:3px;padding:10px 15px;min-height:40px;border-top-left-radius:3px;border-top-right-radius:3px;color:#333;font-size:13px;line-height:20px;cursor:pointer;-webkit-transition:all .2s;transition:all .2s}.su-tabs-nav span:hover{background:#f5f5f5}.su-tabs-nav span.su-tabs-current{background:#fff;cursor:default}.su-tabs-nav span:focus{outline:currentColor thin dotted}.su-tabs-nav span.su-tabs-disabled{opacity:.5;cursor:default}.su-tabs-pane{padding:15px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background:#fff;color:#333;font-size:13px}.su-tabs-pane:not(.su-tabs-pane-open){overflow:hidden!important;padding:0!important;min-height:0!important;height:0!important;border:none!important}.su-tabs-nav,.su-tabs-nav span,.su-tabs-pane,.su-tabs-panes{box-sizing:border-box!important}.su-tabs-vertical{display:-webkit-box;display:flex}.su-tabs-vertical .su-tabs-nav{width:30%}.su-tabs-vertical .su-tabs-nav>span{display:block;margin-right:0;border-radius:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.su-tabs-vertical .su-tabs-panes{width:70%}.su-tabs-vertical .su-tabs-panes .su-tabs-pane{height:100%;border-radius:0;border-top-right-radius:3px;border-bottom-right-radius:3px}.qtip.su-qtip{max-width:480px!important}.su-tooltip{display:inline-block}.su-qtip-size-1{font-size:.8em!important}.su-qtip-size-2{font-size:.9em!important}.su-qtip-size-3{font-size:1em!important}.su-qtip-size-4{font-size:1.1em!important}.su-qtip-size-5{font-size:1.2em!important}.su-qtip-size-6{font-size:1.3em!important}.su-tooltip-content{display:none}.su-tooltip-content>:last-child{margin-bottom:0}.qtip-content .su-tooltip-content embed,.qtip-content .su-tooltip-content iframe,.qtip-content .su-tooltip-content img,.qtip-content .su-tooltip-content object{max-width:430px}.qtip-content .su-tooltip-content .su-u-responsive-media-yes{width:430px}.su-video{position:relative;margin-bottom:1.5em;overflow:hidden}.su-video .jp-title{position:absolute;top:-100px;left:0;width:100%;height:30px;padding:0 1em;line-height:30px;font-size:.9em;background:#000;background:rgba(0,0,0,.5);color:#fff;-webkit-transition:top .2s;transition:top .2s}.su-video:hover .jp-title{top:0}.su-video .jp-start{position:absolute;left:0;top:0;width:100%;height:100%;cursor:pointer;opacity:.5;-webkit-transition:opacity .2s;transition:opacity .2s;background:50% 50% url(../images/player/default-start.png) no-repeat}.su-video:hover .jp-start{opacity:.8}.su-video.jp-video-full{position:fixed;left:0;top:0;width:100%;height:100%}.su-video.jp-video-full .jp-jplayer{position:fixed!important;left:0;top:0;overflow:hidden}.su-video .jp-gui{position:relative;height:30px;background:#7c8781;background:-webkit-gradient(linear,left top,left bottom,from(#7c8781),to(#0a0809));background:-webkit-linear-gradient(top,#7c8781 0,#0a0809 100%);background:linear-gradient(to bottom,#7c8781 0,#0a0809 100%);border-bottom-right-radius:3px;border-bottom-left-radius:3px}.su-video.jp-video-full .jp-gui{position:fixed;left:0;bottom:0;width:100%}.su-video-controls-no .jp-gui{position:absolute!important;bottom:-100px;left:0;right:0;-webkit-transition:bottom .2s;transition:bottom .2s}.su-video-controls-no:hover .jp-gui{bottom:0}.su-video img{border-radius:0!important;border:none!important;margin:0!important;padding:0!important}.su-video .jp-gui .jp-pause,.su-video .jp-gui .jp-play{position:absolute;left:0;top:0;display:block;width:30px;height:30px;border-right:1px solid #454947;cursor:pointer}.su-video .jp-gui .jp-play{background:0 0 url(../images/player/default.png) no-repeat}.su-video .jp-gui .jp-pause{background:-30px 0 url(../images/player/default.png) no-repeat}.su-video .jp-full-screen,.su-video .jp-restore-screen{position:absolute;top:0;right:0;display:block;width:30px;height:30px;border-left:1px solid #454947;cursor:pointer}.su-video .jp-full-screen{background:0 -30px url(../images/player/default.png) no-repeat}.su-video .jp-restore-screen{background:-30px -30px url(../images/player/default.png) no-repeat}.su-video .jp-progress{position:absolute;top:10px;left:90px;right:90px;height:10px;background:#333;border-radius:3px;box-shadow:0 0 5px #000 inset}.su-video .jp-play-bar,.su-video .jp-seek-bar{position:absolute;top:0;left:0;height:100%;cursor:pointer;border-radius:3px}.su-video .jp-seek-bar{background:#0b0b0b;background:-webkit-gradient(linear,left top,left bottom,from(#0b0b0b),to(#666));background:-webkit-linear-gradient(top,#0b0b0b 0,#666 100%);background:linear-gradient(to bottom,#0b0b0b 0,#666 100%)}.su-video .jp-play-bar{background:#6db3f2;background:-webkit-gradient(linear,left top,left bottom,from(#6db3f2),color-stop(50%,#54a3ee),color-stop(51%,#3690f0),to(#1e69de));background:-webkit-linear-gradient(top,#6db3f2 0,#54a3ee 50%,#3690f0 51%,#1e69de 100%);background:linear-gradient(to bottom,#6db3f2 0,#54a3ee 50%,#3690f0 51%,#1e69de 100%)}.su-video .jp-current-time,.su-video .jp-duration{position:absolute;top:0;display:block;height:30px;line-height:30px;color:#f5f5f5;font-size:10px}.su-video .jp-current-time{left:50px}.su-video .jp-duration{right:50px}.su-vimeo{margin:0 0 1.5em}.su-vimeo iframe{border:none!important}.su-youtube{margin:0 0 1.5em}.su-youtube iframe{border:none!important}@media screen and (max-width:768px){.su-button span{padding-top:.25em!important;padding-bottom:.25em!important;line-height:1.2!important}.su-button small{margin-top:.2em!important}.su-image-carousel-adaptive .su-image-carousel-item{width:100%!important;margin-right:0!important}}@media only screen and (max-width:768px){.su-row .su-column{width:100%;margin:0 0 1.5em;float:none}.su-row .su-column:last-child{margin-bottom:0}.su-tabs-vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.su-tabs-vertical .su-tabs-nav,.su-tabs-vertical .su-tabs-panes{width:100%}.su-tabs-vertical .su-tabs-nav .su-tabs-pane,.su-tabs-vertical .su-tabs-nav>span,.su-tabs-vertical .su-tabs-panes .su-tabs-pane,.su-tabs-vertical .su-tabs-panes>span{border-radius:3px}.su-tabs-mobile-stack .su-tabs-nav span{display:block}.su-tabs-mobile-scroll .su-tabs-nav{display:-webkit-box;display:flex;-webkit-box-align:end;align-items:flex-end;white-space:nowrap;overflow-x:auto}}@media screen and (max-width:48em){.su-pullquote{width:auto}.su-pullquote-align-left,.su-pullquote-align-right{float:none;margin:1.5em 0;padding:.5em 1em}}@media only screen{[class*=su-column]+[class*=su-column]:last-child{float:right}}@media (-webkit-min-device-pixel-ratio:0){.su-image-carousel-has-outline .su-image-carousel-item-content a:focus,.su-image-carousel-has-outline button.flickity-prev-next-button:focus{outline-color:-webkit-focus-ring-color;outline-style:auto}}
|
1 |
+
.su-u-clearfix::after{content:'';display:table;clear:both}.su-u-trim>:first-child{margin-top:0}.su-u-trim>:last-child{margin-bottom:0}.su-u-responsive-media-yes{position:relative;padding-bottom:56.25%;height:0;overflow:hidden}.su-u-responsive-media-yes .fluid-width-video-wrapper,.su-u-responsive-media-yes .video-holder{position:static!important}.su-u-responsive-media-yes embed,.su-u-responsive-media-yes iframe,.su-u-responsive-media-yes object{position:absolute;top:0;left:0;width:100%;height:100%}.su-accordion{margin-bottom:1.5em}.su-accordion .su-spoiler{margin-bottom:.5em}.su-audio{position:relative;width:100%;height:30px;margin-bottom:1.5em;background:#7c8781;background:-webkit-gradient(linear,left top,left bottom,from(#7c8781),to(#0a0809));background:linear-gradient(to bottom,#7c8781 0,#0a0809 100%);border-radius:3px}.su-audio .jp-pause,.su-audio .jp-play{position:absolute;left:0;top:0;display:block;width:30px;height:30px;border-top-left-radius:3px;border-bottom-left-radius:3px;cursor:pointer;border-right:1px solid #454947;background-image:url(../images/player/default.png);background-repeat:no-repeat}.su-audio .jp-play{background-position:0 0}.su-audio .jp-pause{background-position:-30px 0}.su-audio .jp-current-time,.su-audio .jp-duration{position:absolute;top:0;display:block;height:30px;line-height:30px;font-size:10px;color:#eee;text-shadow:0 -1px 0 #000}.su-audio .jp-current-time{left:45px}.su-audio .jp-duration{right:10px}.su-audio .jp-play-bar,.su-audio .jp-seek-bar{position:absolute;top:0;left:0;height:10px;border-radius:3px;cursor:pointer}.su-audio .jp-progress{position:absolute;top:10px;left:85px;right:50px;height:10px;background:#333;box-shadow:0 0 5px #000 inset;border-radius:3px}.su-audio .jp-seek-bar{background:#0b0b0b;background:-webkit-gradient(linear,left top,left bottom,from(#0b0b0b),to(#666));background:linear-gradient(to bottom,#0b0b0b 0,#666 100%)}.su-audio .jp-play-bar{background:#6db3f2;background:-webkit-gradient(linear,left top,left bottom,from(#6db3f2),color-stop(50%,#54a3ee),color-stop(51%,#3690f0),to(#1e69de));background:linear-gradient(to bottom,#6db3f2 0,#54a3ee 50%,#3690f0 51%,#1e69de 100%)}.su-box{margin:0 0 1.5em;border-width:2px;border-style:solid}.su-box-title{display:block;padding:.5em 1em;font-weight:700;font-size:1.1em}.su-box-content{background-color:#fff;color:#444;padding:1em}.su-box-style-soft .su-box-title{background-image:url(../images/styles/style-soft.png);background-position:0 0;background-repeat:repeat-x}.su-box-style-glass .su-box-title{background-image:url(../images/styles/style-glass.png);background-position:0 50%;background-repeat:repeat-x}.su-box-style-bubbles .su-box-title{background-image:url(../images/styles/style-bubbles.png);background-position:0 50%;background-repeat:repeat-x}.su-box-style-noise .su-box-title{background-image:url(../images/styles/style-noise.png);background-position:0 0;background-repeat:repeat-x}.su-button{display:inline-block!important;text-align:center;text-decoration:none!important;box-sizing:content-box!important;-webkit-transition:all .2s;transition:all .2s}.su-button-wide{display:block!important;margin:1em 0}.su-button-center{text-align:center}.su-button span{display:block!important;text-decoration:none!important;box-sizing:content-box!important;-webkit-transition:all .2s;transition:all .2s}.su-button img{border:none!important;vertical-align:middle!important;margin:-.2em .4em 0 -.3em!important;box-shadow:none!important}.su-button i{display:inline-block;width:1em;height:1em;margin:0 .5em 0 0!important;text-align:center;line-height:1em}.su-button.su-button-float-icon img{margin:0 .5em!important}.su-button small{display:block;margin:-.2em 0 0;color:inherit;text-align:center;font-style:normal;font-size:.8em;line-height:1;opacity:.7}.su-button-style-default{border-width:1px;border-style:solid}.su-button-style-default:hover{opacity:.7}.su-button-style-default span{border-top-width:1px;border-bottom-width:1px;border-top-style:solid;border-bottom-style:solid}.su-button-style-flat,.su-button-style-flat span{border:none}.su-button-style-flat span{position:relative}.su-button-style-flat:hover span{top:1px}.su-button-style-ghost{background:0 0!important}.su-button-style-ghost span{border-width:3px;border-style:solid}.su-button-style-ghost:hover span{border-color:inherit!important}.su-button-style-soft span{background:0 -20px url(../images/styles/style-soft.png) repeat-x}.su-button-style-soft:hover span{background:0 0 url(../images/styles/style-soft.png) repeat-x}.su-button-style-glass span{background:0 50% url(../images/styles/style-glass.png) repeat-x}.su-button-style-glass:hover span{background:100% 50% url(../images/styles/style-glass.png) repeat-x}.su-button-style-bubbles span{background:0 50% url(../images/styles/style-bubbles.png) no-repeat}.su-button-style-bubbles:hover span{background:-710px 50% url(../images/styles/style-bubbles.png) no-repeat}.su-button-style-noise span{background:0 0 url(../images/styles/style-noise.png) repeat-x}.su-button-style-noise:hover span{background:0 0 url(../images/styles/style-noise.png) repeat-x}.su-button-style-stroked span{margin:1px;border:1px dashed #fff!important}.su-button-style-stroked:hover span{opacity:.7}.su-button-style-3d{border-bottom-style:solid;border-bottom-width:6px}.su-button-style-3d span{border-bottom-style:solid;border-bottom-width:1px}.su-button-style-3d:hover{position:relative;top:3px;border-bottom-width:3px}.su-carousel{position:relative;margin-bottom:1.5em;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.su-carousel-centered{margin:0 auto 1.5em}.su-carousel-slides{position:relative;width:100%;-webkit-transition-property:-webkit-transform,left,top;-webkit-transition-duration:0s;-webkit-transform:translate3d(0,0,0);-webkit-transition-timing-function:ease;-moz-transition-property:-moz-transform,left,top;-moz-transition-duration:0s;-moz-transform:translate3d(0,0,0);-moz-transition-timing-function:ease;-o-transition-property:-o-transform,left,top;-o-transition-duration:0s;-o-transform:translate3d(0,0,0);-o-transition-timing-function:ease;-o-transform:translate(0,0);-ms-transition-property:-ms-transform,left,top;-ms-transition-duration:0s;-ms-transform:translate3d(0,0,0);-ms-transition-timing-function:ease;-webkit-transition-property:left,top,-webkit-transform;transition-property:left,top,-webkit-transform;transition-property:transform,left,top;transition-property:transform,left,top,-webkit-transform;transition-duration:0s;transform:translate3d(0,0,0);transition-timing-function:ease}.swiper-free-mode>.su-carousel-slides{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.su-carousel-slide{position:relative;float:left}.su-carousel-slide>a,.su-carousel-slide>a>img,.su-carousel-slide>img{position:relative;display:block;width:100%;height:100%;text-decoration:none;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.su-carousel-responsive-yes .su-carousel-slide>a,.su-carousel-responsive-yes .su-carousel-slide>a>img,.su-carousel-responsive-yes .su-carousel-slide>img{height:auto}.su-carousel-pages-no .su-carousel-pagination{display:none}.swiper-wp8-horizontal{-ms-touch-action:pan-y}.swiper-wp8-vertical{-ms-touch-action:pan-x}.su-carousel .su-carousel-slide a{padding:0 5px}.su-carousel .su-carousel-slide img{padding:3px;border:1px solid #ccc;background:#fff;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px}.su-carousel .su-carousel-slide-title{position:absolute;left:9px;right:9px;bottom:4px;display:block;padding:2px 3px;color:#fff;line-height:1.2;font-size:11px;background:#000;background:rgba(0,0,0,.5);box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;transition:opacity 1s;-o-transition:opacity 1s;-moz-transition:opacity 1s;-webkit-transition:opacity 1s}.su-carousel .su-carousel-next,.su-carousel .su-carousel-prev{position:absolute;top:50%;display:block;width:40px;height:40px;margin-top:-20px;background:#000 0 0 url(../images/swiper/default.png) no-repeat;background-color:rgba(0,0,0,.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;opacity:0;-webkit-transition:all .2s;transition:all .2s}.su-carousel .su-carousel-prev{right:20px;margin-right:40px;background-position:-40px 0}.su-carousel .su-carousel-next{left:20px;margin-left:40px;background-position:0 0}.su-carousel:hover .su-carousel-next,.su-carousel:hover .su-carousel-prev{margin-left:0;margin-right:0;opacity:.7}.su-carousel .su-carousel-next:hover,.su-carousel .su-carousel-prev:hover{opacity:1}.su-carousel .su-carousel-pagination{position:absolute;left:15%;right:15%;top:50%;width:70%;height:0;margin-top:-7px;text-align:center;cursor:default;opacity:0;-webkit-transition:all .2s;transition:all .2s}.su-carousel:hover .su-carousel-pagination{bottom:20px;opacity:1}.su-carousel .su-carousel-pagination span{display:inline-block;width:14px;height:14px;margin:0;background:#000 0 -999px url(../images/swiper/default.png) no-repeat;background-color:rgba(0,0,0,.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;-webkit-transition:all .2s;transition:all .2s}.su-carousel:hover .su-carousel-pagination span{margin:0 3px}.su-carousel .su-carousel-pagination span.swiper-visible-switch{background-color:#fff;background-color:rgba(255,255,255,.5)}.su-carousel .su-carousel-pagination span.swiper-active-switch,.su-carousel .su-carousel-pagination span:hover{background-position:0 -40px}.su-row{clear:both;zoom:1;margin-bottom:1.5em}.su-row:after,.su-row:before{display:table;content:''}.su-row:after{clear:both}.su-column{display:block;margin:0 4% 0 0;float:left;box-sizing:border-box}.su-column-last{margin-right:0}.su-row .su-column{margin:0 0 0 4%}.su-row .su-column.su-column-size-1-1{margin-left:0;margin-right:0}.su-row .su-column:first-child{margin-left:0}.su-row .su-column.su-column-centered{margin-right:auto;margin-left:auto;float:none}.su-column embed,.su-column iframe,.su-column img,.su-column object{max-width:100%}.su-column-size-1-1{width:100%}.su-column-size-1-2{width:48%}.su-column-size-1-3{width:30.66%}.su-column-size-2-3{width:65.33%}.su-column-size-1-4{width:22%}.su-column-size-3-4{width:74%}.su-column-size-1-5{width:16.8%}.su-column-size-2-5{width:37.6%}.su-column-size-3-5{width:58.4%}.su-column-size-4-5{width:79.2%}.su-column-size-1-6{width:13.33%}.su-column-size-5-6{width:82.66%}.su-custom-gallery{margin-bottom:1.5em}.su-custom-gallery:after,.su-custom-gallery:before{content:'';display:table}.su-custom-gallery:after{clear:both}.su-custom-gallery-slide{position:relative;float:left;margin:.5em;overflow:hidden}.su-custom-gallery-slide a{display:block;width:100%;height:100%}.su-custom-gallery-slide img{display:block;margin:0;padding:3px;border:1px solid #ccc;background:#fff;box-sizing:border-box;border-radius:5px;box-shadow:none;-webkit-transition:all .2s;transition:all .2s}.su-custom-gallery-slide:hover img{background:#eee;border:1px solid #aaa}.su-custom-gallery-slide span{position:absolute;left:4px;bottom:4px;right:4px;display:block;padding:2px 4px;font-size:12px;color:#fff;background:#000;background:rgba(0,0,0,.5);line-height:1.3;opacity:0;-webkit-transition:all .2s;transition:all .2s}.su-custom-gallery-slide:hover span{opacity:1}.su-custom-gallery-title-never span{display:none}.su-custom-gallery-title-always span{opacity:1}.su-dailymotion{margin:0 0 1.5em}.su-dailymotion iframe{border:none!important}.su-divider{clear:both;border:none;text-align:right;line-height:1}.su-divider a{display:inline-block;font-size:.8em;text-decoration:none;outline:0;padding-bottom:5px}.su-divider-style-default{border-bottom-style:solid}.su-divider-style-dotted{border-bottom-style:dotted}.su-divider-style-dashed{border-bottom-style:dashed}.su-divider-style-double{border-bottom-style:double}.su-document{margin:0 0 1.5em}.su-document iframe{border:none!important}.su-dropcap{float:left;display:inline-block;width:2em;height:2em;margin:.2em .5em .2em 0;line-height:2em;text-align:center;overflow:hidden;text-transform:uppercase}.su-dropcap-style-default{color:#fff;background:#45484d;background:-webkit-gradient(linear,left top,left bottom,from(#45484d),to(black));background:linear-gradient(to bottom,#45484d 0,#000 100%);text-shadow:-1px -1px 0 #000;border-radius:50%}.su-dropcap-style-flat{background:#444;color:#fff}.su-dropcap-style-light{color:#333;border-radius:50%;background:#fff;background:-webkit-gradient(linear,left top,left bottom,from(white),to(#eaeaea));background:linear-gradient(to bottom,#fff 0,#eaeaea 100%)}.su-dropcap-style-simple{width:1em;height:1em;line-height:1em;text-align:left}.su-expand{margin:0 0 1.5em}.su-expand-content{overflow:hidden}.su-expand-link{margin-top:.5em;cursor:pointer}.su-expand-link:hover{opacity:.7}.su-expand-link a,.su-expand-link a:active,.su-expand-link a:focus,.su-expand-link a:hover,.su-expand-link a:visited{display:inline;text-decoration:none;box-shadow:none;background:0 0;border:none}.su-expand-link-style-underlined .su-expand-link span{text-decoration:underline}.su-expand-link-style-dotted .su-expand-link span{border-bottom:1px dotted #333}.su-expand-link-style-dashed .su-expand-link span{border-bottom:1px dashed #333}.su-expand-link-style-button .su-expand-link a{display:inline-block;margin-top:.2em;padding:.2em .4em;border:2px solid #333}.su-expand-link-more{display:none}.su-expand-link-less{display:block}.su-expand-collapsed .su-expand-link-more{display:block}.su-expand-collapsed .su-expand-link-less{display:none}.su-expand-link i{display:inline-block;margin:0 .3em 0 0;vertical-align:middle;color:inherit}.su-expand-link img{display:inline-block;width:1em;height:1em;margin:0 .3em 0 0;vertical-align:middle}.su-frame,.su-frame-inner{display:block}.su-frame-align-left{float:left;margin:0 1em 1em 0}.su-frame-align-center{float:none;margin:1em auto}.su-frame-align-right{float:right;margin:0 0 1em 1em}.su-frame img{display:block!important;float:none!important;padding:0!important;margin:0!important;border:none!important;box-shadow:none!important}.su-frame-style-default{padding:2px;border:1px solid #999;background:#fff;box-shadow:1px 1px 4px #ccc}.su-frame-style-default .su-frame-inner{padding:2px;border:4px solid #eee}.su-gmap{margin:0 0 1.5em}.su-gmap iframe{border:none!important}.su-guests{margin-bottom:1.5em}.su-heading-style-default{padding:2px 0;border-top:1px solid #999;border-bottom:1px solid #999}.su-heading-style-default .su-heading-inner{padding:1em .5em;border-top:4px solid #eee;border-bottom:4px solid #eee}.su-heading.su-heading-align-left{text-align:left}.su-heading.su-heading-align-left .su-heading-inner{padding-left:.2em}.su-heading.su-heading-align-right{text-align:right}.su-heading.su-heading-align-right .su-heading-inner{padding-right:.2em}.su-heading.su-heading-align-center{text-align:center}.su-highlight{display:inline;padding:1px 0}.su-image-carousel{width:100%;margin:1.5em 0}.su-image-carousel:first-child{margin-top:0}.su-image-carousel:last-child{margin-bottom:0}.su-image-carousel-item{width:100%;box-sizing:border-box}.su-image-carousel .su-image-carousel-item-content{position:relative}.su-image-carousel .su-image-carousel-item-content a,.su-image-carousel .su-image-carousel-item-content a:active,.su-image-carousel .su-image-carousel-item-content a:focus,.su-image-carousel .su-image-carousel-item-content a:hover,.su-image-carousel .su-image-carousel-item-content a:visited,.su-image-carousel .su-image-carousel-item-content img{display:block;width:100%;height:100%;margin:0;padding:0;box-sizing:border-box;box-shadow:none;text-decoration:none;border:none;border-radius:0}.su-image-carousel .su-image-carousel-item-content a::after,.su-image-carousel .su-image-carousel-item-content a::before,.su-image-carousel .su-image-carousel-item-content img::after,.su-image-carousel .su-image-carousel-item-content img::before{display:none}.su-image-carousel .su-image-carousel-item-content span{position:absolute;display:block;font-size:.9em;max-height:60%;overflow:auto;line-height:1.3;word-wrap:break-word}.su-image-carousel .su-image-carousel-item-content span:empty{display:none}.su-image-carousel-columns-2 .su-image-carousel-item{width:50%}.su-image-carousel-columns-2.su-image-carousel-has-spacing .su-image-carousel-item{width:48.5%;margin-right:3%}.su-image-carousel-columns-3 .su-image-carousel-item{width:33.33333%}.su-image-carousel-columns-3.su-image-carousel-has-spacing .su-image-carousel-item{width:31.4%;margin-right:2.9%}.su-image-carousel-columns-4 .su-image-carousel-item{width:25%}.su-image-carousel-columns-4.su-image-carousel-has-spacing .su-image-carousel-item{width:22.9%;margin-right:2.8%}.su-image-carousel-columns-5 .su-image-carousel-item{width:20%}.su-image-carousel-columns-5.su-image-carousel-has-spacing .su-image-carousel-item{width:18%;margin-right:2.5%}.su-image-carousel-columns-6 .su-image-carousel-item{width:16.66667%}.su-image-carousel-columns-6.su-image-carousel-has-spacing .su-image-carousel-item{width:14.5%;margin-right:2.6%}.su-image-carousel-columns-7 .su-image-carousel-item{width:14.28571%}.su-image-carousel-columns-7.su-image-carousel-has-spacing .su-image-carousel-item{width:12.4%;margin-right:2.2%}.su-image-carousel-columns-8 .su-image-carousel-item{width:12.5%}.su-image-carousel-columns-8.su-image-carousel-has-spacing .su-image-carousel-item{width:10.75%;margin-right:2%}.su-image-carousel-crop .su-image-carousel-item-content::before{float:left;width:1px;margin-left:-1px;height:0;content:''}.su-image-carousel-crop .su-image-carousel-item-content::after{content:'';display:table;clear:both}.su-image-carousel-crop .su-image-carousel-item-content img{position:absolute;left:0;top:0;right:0;bottom:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.su-image-carousel-crop-16-9 .su-image-carousel-item-content::before{padding-top:56.25%}.su-image-carousel-crop-16-10 .su-image-carousel-item-content::before{padding-top:62.5%}.su-image-carousel-crop-21-9 .su-image-carousel-item-content::before{padding-top:42.85714%}.su-image-carousel-crop-5-4 .su-image-carousel-item-content::before{padding-top:80%}.su-image-carousel-crop-4-3 .su-image-carousel-item-content::before{padding-top:75%}.su-image-carousel-crop-3-2 .su-image-carousel-item-content::before{padding-top:66.66667%}.su-image-carousel-crop-2-1 .su-image-carousel-item-content::before{padding-top:50%}.su-image-carousel-crop-1-1 .su-image-carousel-item-content::before{padding-top:100%}.su-image-carousel-crop-1-2 .su-image-carousel-item-content::before{padding-top:200%}.su-image-carousel-crop-2-3 .su-image-carousel-item-content::before{padding-top:150%}.su-image-carousel-crop-3-4 .su-image-carousel-item-content::before{padding-top:133.33333%}.su-image-carousel-crop-4-5 .su-image-carousel-item-content::before{padding-top:125%}.su-image-carousel-crop-9-21 .su-image-carousel-item-content::before{padding-top:233.33333%}.su-image-carousel-crop-10-16 .su-image-carousel-item-content::before{padding-top:160%}.su-image-carousel-crop-9-16 .su-image-carousel-item-content::before{padding-top:177.77778%}.su-image-carousel-align-left{float:left;margin-right:1.5em;margin-top:0}.su-image-carousel-align-right{float:right;margin-left:1.5em;margin-top:0}.su-image-carousel-align-center{margin-right:auto;margin-left:auto}.su-image-carousel-align-full{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw!important;width:100vw!important}.su-image-carousel button.flickity-prev-next-button{position:absolute;top:50%;display:block;width:44px;height:44px;margin:-22px 0 0;padding:0;opacity:0;outline:0;border-radius:50%;-webkit-transform:none;transform:none;-webkit-transition:opacity .2s ease,-webkit-transform .2s ease;transition:opacity .2s ease,-webkit-transform .2s ease;transition:opacity .2s ease,transform .2s ease;transition:opacity .2s ease,transform .2s ease,-webkit-transform .2s ease}.su-image-carousel:hover button.flickity-prev-next-button{opacity:.5}.su-image-carousel button.flickity-prev-next-button:focus,.su-image-carousel button.flickity-prev-next-button:hover{opacity:1;box-shadow:none}.su-image-carousel button.flickity-prev-next-button:focus{-webkit-transform:scale(1.05);transform:scale(1.05)}.su-image-carousel button.flickity-prev-next-button[disabled]{display:none}.su-image-carousel button.flickity-prev-next-button.previous{left:20px}.su-image-carousel button.flickity-prev-next-button.next{right:20px}.su-image-carousel>ol.flickity-page-dots{position:absolute;top:50%;left:50%;bottom:auto;width:auto;margin:0;padding:0;list-style:none;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);pointer-events:none;opacity:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.su-image-carousel>ol.flickity-page-dots>li.dot{position:relative;width:20px;height:20px;display:inline-block;margin:5px;padding:0;list-style:none;pointer-events:all;border-radius:50%;opacity:.5;-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.su-image-carousel>ol.flickity-page-dots>li.dot:hover{opacity:1}.su-image-carousel>ol.flickity-page-dots>li.dot::before{position:absolute;top:50%;left:50%;display:none;width:10px;height:10px;margin:0;padding:0;content:'';border-radius:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.su-image-carousel>ol.flickity-page-dots>li.dot.is-selected::before{display:block}.su-image-carousel:hover ol.flickity-page-dots{opacity:1}.su-image-carousel-controls-style-dark button.flickity-prev-next-button{background:#000;color:#fff}.su-image-carousel-controls-style-dark ol.flickity-page-dots li.dot{background:#000}.su-image-carousel-controls-style-dark ol.flickity-page-dots li.dot::before{background:#fff}.su-image-carousel-controls-style-light button.flickity-prev-next-button{background:#fff;color:#000}.su-image-carousel-controls-style-light ol.flickity-page-dots li.dot{background:#fff}.su-image-carousel-controls-style-light ol.flickity-page-dots li.dot::before{background:#000}.su-image-carousel-slides-style-default .su-image-carousel-item-content{margin:1px}.su-image-carousel-slides-style-default .su-image-carousel-item-content img{padding:3px;background:#fff;border:1px solid #ccc;border-radius:7px}.su-image-carousel-slides-style-default .su-image-carousel-item-content span{bottom:4px;right:4px;left:4px;padding:.5em .7em;background:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.7)),to(transparent));background:linear-gradient(to top,rgba(0,0,0,.7),transparent);text-shadow:0 2px 5px #000;color:#fff;border-bottom-right-radius:2px;border-bottom-left-radius:2px}.su-image-carousel-slides-style-minimal .su-image-carousel-item-content{margin:1px}.su-image-carousel-slides-style-minimal .su-image-carousel-item-content span{right:0;bottom:0;left:0;padding:.7em;background:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.7)),to(transparent));background:linear-gradient(to top,rgba(0,0,0,.7),transparent);text-shadow:0 2px 5px #000;color:#fff}.su-image-carousel-slides-style-photo .su-image-carousel-item-content{padding:7px}.su-image-carousel-slides-style-photo .su-image-carousel-item-content img{border:5px solid #fff;border-radius:7px;box-shadow:0 2px 5px rgba(0,0,0,.5)}.su-image-carousel-slides-style-photo .su-image-carousel-item-content span{right:12px;bottom:12px;left:12px;padding:.3em .5em;background:#fff;color:#000;font-size:.9em}.su-image-carousel-slides-style-photo.su-image-carousel-crop .su-image-carousel-item-content img{top:7px;right:7px;left:7px;bottom:7px;width:calc(100% - 14px);height:calc(100% - 14px)}.su-image-carousel-mfp.mfp-bg{z-index:102000!important}.su-image-carousel-mfp.mfp-wrap{z-index:102001!important}.su-image-carousel-mfp.mfp-wrap .mfp-preloader{z-index:102002!important}.su-image-carousel-mfp.mfp-wrap .mfp-content{z-index:102003!important}.su-image-carousel-mfp.mfp-wrap button.mfp-arrow,.su-image-carousel-mfp.mfp-wrap button.mfp-close{z-index:102004!important}.su-image-carousel-has-outline .su-image-carousel-item-content a:focus img,.su-image-carousel-has-outline button.flickity-prev-next-button:focus{outline-width:2px;outline-style:solid;outline-color:Highlight}.su-label{display:inline;margin-right:.3em;padding:.1em .3em;font-size:.8em;height:.8em;line-height:.8em;color:#fff;border-radius:3px}.su-label-type-default{background:#999}.su-label-type-success{background:#090}.su-label-type-warning{background:#f90}.su-label-type-important{background:#f03}.su-label-type-black{background:#111}.su-label-type-info{background:#09c}.su-lightbox-content{position:relative;margin:0 auto}#su-generator .su-lightbox-content,.mfp-content .su-lightbox-content{display:block!important}.su-lightbox-content-preview{width:100%;min-height:300px;background:#444;overflow:hidden}.su-lightbox-content h1,.su-lightbox-content h2,.su-lightbox-content h3,.su-lightbox-content h4,.su-lightbox-content h5,.su-lightbox-content h6{color:inherit}.su-lightbox{cursor:pointer}.su-list{margin-bottom:1.5em}.su-list ul{margin:0!important;padding:0!important;list-style:none!important}.su-list ul li{position:relative;display:block!important;margin:0!important;padding:4px 0 4px 2em!important;list-style-type:none!important;line-height:1.3em}.su-list ul li>img{position:absolute;left:0;top:4px;width:1.3em;height:1.3em;padding:0;margin:0;border:none}.su-list ul li>i{position:absolute;left:0;top:4px;width:1.3em;height:1.3em;line-height:1.3em;text-align:center}.su-members{margin-bottom:1.5em;padding:1em;border-width:1px 0;border-style:solid;text-align:center}.su-members a{text-decoration:underline;color:inherit}.su-note{margin:0 0 1.5em;border-width:1px;border-style:solid}.su-note-inner{padding:1em;border-width:1px;border-style:solid}.su-posts-default-loop .su-post{margin-bottom:2.5em;line-height:1.5}.su-posts-default-loop .su-post:after{content:'';display:table;clear:both}.su-posts-default-loop .su-post-thumbnail{float:left;display:block;width:100px;height:100px;margin-right:1em}.su-posts-default-loop .su-post-thumbnail img{max-width:100px;max-height:100px}.su-posts-default-loop h2.su-post-title{clear:none;margin:0 0 .3em;font-size:1.2em;font-weight:700}.su-posts-default-loop .su-post-meta{margin-bottom:.7em;font-size:.8em;opacity:.6}.su-posts-default-loop .su-post-excerpt{margin-bottom:.5em}.su-posts-default-loop .su-post-excerpt p:last-child{margin-bottom:0}.su-posts-default-loop .su-post-comments-link{font-size:.9em}.su-posts-teaser-loop .su-post{margin-bottom:1.5em;line-height:1.2}.su-posts-teaser-loop .su-post:after{content:'';display:table;clear:both}.su-posts-teaser-loop .su-post-thumbnail{float:left;display:block;width:56px;height:56px;margin:0 1em 0 0}.su-posts-teaser-loop .su-post-thumbnail img{display:block;margin:0;padding:2px;border:1px solid #ccc;border-radius:5px;max-width:100%;max-height:100%}.su-posts-teaser-loop h2.su-post-title{display:block;margin:0;padding:0;border:none;font-size:.9em;font-weight:400;clear:none}.su-posts-single-post .su-post{margin-bottom:2.5em;line-height:1.5}.su-posts-single-post .su-post:after{content:'';display:table;clear:both}.su-posts-single-post h1.su-post-title{clear:none;margin:0 0 .3em;font-size:1.2em;font-weight:700}.su-posts-single-post .su-post-meta{margin-bottom:.7em;font-size:.8em;opacity:.6}.su-posts-single-post .su-post-content{margin-bottom:.5em}.su-posts-single-post .su-post-content p:last-child{margin-bottom:0}.su-private{margin:0 0 1.5em}.su-pullquote{display:block;width:30%;padding:.5em 1em}.su-pullquote-align-left{margin:.5em 1.5em 1em 0;padding-left:0;float:left;border-right:5px solid #eee}.su-pullquote-align-right{margin:.5em 0 1em 1.5em;padding-right:0;float:right;border-left:5px solid #eee}.su-qrcode{display:inline-block}.su-qrcode-align-left{float:left;margin:0 .5em .5em 0}.su-qrcode-align-center{display:block;clear:both;margin:1em auto;text-align:center}.su-qrcode-align-right{float:right;margin:0 0 .5em .5em}.su-qrcode a,.su-qrcode a:active,.su-qrcode a:focus,.su-qrcode a:hover{background:0 0;outline:0;display:inline;text-decoration:none}.su-qrcode-clickable a:hover{opacity:.7}.su-qrcode img{max-width:100%}.su-quote-style-default{position:relative;margin-bottom:1.5em;padding:.5em 3em;font-style:italic}.su-quote-style-default:after,.su-quote-style-default:before{position:absolute;display:block;width:20px;height:20px;background-image:url(../images/quote.png);content:''}.su-quote-style-default:before{top:0;left:0;background-position:0 0}.su-quote-style-default:after{right:0;bottom:0;background-position:-20px 0}.su-quote-style-default .su-quote-cite{display:block;text-align:right;font-style:normal}.su-quote-style-default .su-quote-cite:before{content:'\2014\0000a0'}.su-quote-style-default .su-quote-cite a{text-decoration:underline}.su-screenr{margin:0 0 1.5em}.su-screenr iframe{border:none!important}.su-service{position:relative;margin:0 0 1.5em}.su-service-title{display:block;margin-bottom:.5em;color:#333;font-weight:700;font-size:1.1em}.su-service-title img{position:absolute;top:0;left:0;display:block!important;margin:0!important;padding:0!important;border:none!important;box-shadow:none!important}.su-service-title i{position:absolute;top:0;left:0;display:block!important;width:1em;height:1em;text-align:center;line-height:1em}.su-service-content{line-height:1.4}.su-slider{position:relative;margin-bottom:1.5em;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.su-slider-centered{margin:0 auto 1.5em}.su-slider-slides{position:relative;width:100%;-webkit-transition-property:-webkit-transform,left,top;-webkit-transition-duration:0s;-webkit-transform:translate3d(0,0,0);-webkit-transition-timing-function:ease;-moz-transition-property:-moz-transform,left,top;-moz-transition-duration:0s;-moz-transform:translate3d(0,0,0);-moz-transition-timing-function:ease;-o-transition-property:-o-transform,left,top;-o-transition-duration:0s;-o-transform:translate3d(0,0,0);-o-transition-timing-function:ease;-o-transform:translate(0,0);-ms-transition-property:-ms-transform,left,top;-ms-transition-duration:0s;-ms-transform:translate3d(0,0,0);-ms-transition-timing-function:ease;-webkit-transition-property:left,top,-webkit-transform;transition-property:left,top,-webkit-transform;transition-property:transform,left,top;transition-property:transform,left,top,-webkit-transform;transition-duration:0s;transform:translate3d(0,0,0);transition-timing-function:ease}.swiper-free-mode>.su-slider-slides{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.su-slider-slide{position:relative;float:left}.su-slider-slide>a,.su-slider-slide>a>img,.su-slider-slide>img{position:relative;display:block;width:100%;height:100%;text-decoration:none}.su-slider-responsive-yes .su-slider-slide>a,.su-slider-responsive-yes .su-slider-slide>a>img,.su-slider-responsive-yes .su-slider-slide>img{height:auto}.su-slider-pages-no .su-slider-pagination{display:none}.swiper-wp8-horizontal{-ms-touch-action:pan-y}.swiper-wp8-vertical{-ms-touch-action:pan-x}.su-slider-slide-title{position:absolute;left:20px;bottom:20px;display:block;max-width:90%;padding:5px 10px;color:#fff;line-height:1.3;background:#000;background:rgba(0,0,0,.5);border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;opacity:0;transition:opacity 1s;-o-transition:opacity 1s;-moz-transition:opacity 1s;-webkit-transition:opacity 1s}.su-slider-slide-visible .su-slider-slide-title{opacity:1}.su-slider-next,.su-slider-prev{position:absolute;top:50%;display:block;width:40px;height:40px;margin-top:-20px!important;background:#000 0 0 url(../images/swiper/default.png) no-repeat;background-color:rgba(0,0,0,.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;opacity:0;-webkit-transition:all .2s;transition:all .2s}.su-slider-prev{right:10px;margin-right:30px;background-position:-40px 0}.su-slider-next{left:10px;margin-left:30px;background-position:0 0}.su-slider:hover .su-slider-next,.su-slider:hover .su-slider-prev{margin-left:0;margin-right:0;opacity:.7}.su-slider .su-slider-next:hover,.su-slider .su-slider-prev:hover{opacity:1}.su-slider-pagination{position:absolute;left:15%;right:15%;top:50%;width:70%;height:0;margin-top:-7px;text-align:center;cursor:default;opacity:0;-webkit-transition:all .2s;transition:all .2s}.su-slider:hover .su-slider-pagination{bottom:20px;opacity:1}.su-slider-pagination span{display:inline-block;width:14px;height:14px;margin:0;background:#000 0 -999px url(../images/swiper/default.png) no-repeat;background-color:rgba(0,0,0,.5);cursor:pointer;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;-webkit-transition:all .2s;transition:all .2s}.su-slider:hover .su-slider-pagination span{margin:0 3px}.su-slider .su-slider-pagination span.swiper-visible-switch{background-color:#fff;background-color:rgba(255,255,255,.5)}.su-slider-pagination span.swiper-active-switch,.su-slider-pagination span:hover{background-position:0 -40px}.su-spacer{display:block;height:0;clear:both;overflow:hidden}.su-spacer-5{height:5px}.su-spacer-10{height:10px}.su-spacer-20{height:20px}.su-spacer-30{height:30px}.su-spacer-40{height:40px}.su-spoiler{margin-bottom:1.5em}.su-spoiler .su-spoiler:last-child{margin-bottom:0}.su-spoiler-title{position:relative;cursor:pointer;min-height:20px;line-height:20px;padding:7px 7px 7px 34px;font-weight:700;font-size:13px}.su-spoiler-title:focus{outline:currentColor thin dotted}.su-spoiler-icon{position:absolute;left:7px;top:7px;display:block;width:20px;height:20px;line-height:21px;text-align:center;font-size:14px;font-family:ShortcodesUltimateIcons;font-weight:400;font-style:normal;-webkit-font-smoothing:antialiased}.su-spoiler-content{padding:14px;-webkit-transition:padding-top .2s;transition:padding-top .2s;-ie-transition:padding-top .2s}.su-spoiler.su-spoiler-closed>.su-spoiler-content{height:0;margin:0;padding:0;overflow:hidden;border:none;opacity:0;pointer-events:none}.su-spoiler.su-spoiler-closed>.su-spoiler-content iframe{display:none}.su-spoiler-icon-plus .su-spoiler-icon:before{content:'\f068'}.su-spoiler-icon-plus.su-spoiler-closed .su-spoiler-icon:before{content:'\f067'}.su-spoiler-icon-plus-circle .su-spoiler-icon:before{content:'\f056'}.su-spoiler-icon-plus-circle.su-spoiler-closed .su-spoiler-icon:before{content:'\f055'}.su-spoiler-icon-plus-square-1 .su-spoiler-icon:before{content:'\f146'}.su-spoiler-icon-plus-square-1.su-spoiler-closed .su-spoiler-icon:before{content:'\f0fe'}.su-spoiler-icon-plus-square-2 .su-spoiler-icon:before{content:'\f147'}.su-spoiler-icon-plus-square-2.su-spoiler-closed .su-spoiler-icon:before{content:'\f196'}.su-spoiler-icon-arrow .su-spoiler-icon:before{content:'\f063'}.su-spoiler-icon-arrow.su-spoiler-closed .su-spoiler-icon:before{content:'\f061'}.su-spoiler-icon-arrow-circle-1 .su-spoiler-icon:before{content:'\f0ab'}.su-spoiler-icon-arrow-circle-1.su-spoiler-closed .su-spoiler-icon:before{content:'\f0a9'}.su-spoiler-icon-arrow-circle-2 .su-spoiler-icon:before{content:'\f01a'}.su-spoiler-icon-arrow-circle-2.su-spoiler-closed .su-spoiler-icon:before{content:'\f18e'}.su-spoiler-icon-chevron .su-spoiler-icon:before{content:'\f078'}.su-spoiler-icon-chevron.su-spoiler-closed .su-spoiler-icon:before{content:'\f054'}.su-spoiler-icon-chevron-circle .su-spoiler-icon:before{content:'\f13a'}.su-spoiler-icon-chevron-circle.su-spoiler-closed .su-spoiler-icon:before{content:'\f138'}.su-spoiler-icon-caret .su-spoiler-icon:before{content:'\f0d7'}.su-spoiler-icon-caret.su-spoiler-closed .su-spoiler-icon:before{content:'\f0da'}.su-spoiler-icon-caret-square .su-spoiler-icon:before{content:'\f150'}.su-spoiler-icon-caret-square.su-spoiler-closed .su-spoiler-icon:before{content:'\f152'}.su-spoiler-icon-folder-1 .su-spoiler-icon:before{content:'\f07c'}.su-spoiler-icon-folder-1.su-spoiler-closed .su-spoiler-icon:before{content:'\f07b'}.su-spoiler-icon-folder-2 .su-spoiler-icon:before{content:'\f115'}.su-spoiler-icon-folder-2.su-spoiler-closed .su-spoiler-icon:before{content:'\f114'}.su-spoiler-style-default>.su-spoiler-title{padding-left:27px;padding-right:0}.su-spoiler-style-default>.su-spoiler-title>.su-spoiler-icon{left:0}.su-spoiler-style-default>.su-spoiler-content{padding:1em 0 1em 27px}.su-spoiler-style-fancy{border:1px solid #ccc;border-radius:10px;background:#fff;color:#333}.su-spoiler-style-fancy>.su-spoiler-title{border-bottom:1px solid #ccc;border-radius:10px;background:#f0f0f0;font-size:.9em}.su-spoiler-style-fancy.su-spoiler-closed>.su-spoiler-title{border:none}.su-spoiler-style-fancy>.su-spoiler-content{border-radius:10px}.su-spoiler-style-simple{border-top:1px solid #ccc;border-bottom:1px solid #ccc}.su-spoiler-style-simple>.su-spoiler-title{padding:5px 10px;background:#f0f0f0;color:#333;font-size:.9em}.su-spoiler-style-simple>.su-spoiler-title>.su-spoiler-icon{display:none}.su-spoiler-style-simple>.su-spoiler-content{padding:1em 10px;background:#fff;color:#333}.su-table{width:100%;margin-bottom:1.5em}.su-table table{width:100%!important;margin:0!important;border-collapse:collapse!important;font-size:1em!important;border:1px solid #ccc!important;table-layout:auto!important}.su-table table th{text-align:center!important;padding:1em!important;font-size:1em!important;font-weight:700!important;color:#333!important;border:1px solid #ccc!important;background:#f0f0f0!important}.su-table table td{padding:.5em 1em!important;border:1px solid #ccc!important;background:#fff!important}.su-table-responsive{overflow-x:auto}.su-table-responsive table{width:auto!important;min-width:100%!important}.su-table-responsive table td,.su-table-responsive table th{word-break:initial!important}.su-table-alternate table tr:nth-child(even) td{background-color:#f7f7f7!important}.su-table-fixed table{table-layout:fixed!important}.su-tabs{margin:0 0 1.5em;padding:3px;border-radius:3px;background:#eee}.su-tabs-nav span{display:inline-block;margin-right:3px;padding:10px 15px;min-height:40px;border-top-left-radius:3px;border-top-right-radius:3px;color:#333;font-size:13px;line-height:20px;cursor:pointer;-webkit-transition:all .2s;transition:all .2s}.su-tabs-nav span:hover{background:#f5f5f5}.su-tabs-nav span.su-tabs-current{background:#fff;cursor:default}.su-tabs-nav span:focus{outline:currentColor thin dotted}.su-tabs-nav span.su-tabs-disabled{opacity:.5;cursor:default}.su-tabs-pane{padding:15px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background:#fff;color:#333;font-size:13px}.su-tabs-pane:not(.su-tabs-pane-open){overflow:hidden!important;padding:0!important;min-height:0!important;height:0!important;border:none!important}.su-tabs-nav,.su-tabs-nav span,.su-tabs-pane,.su-tabs-panes{box-sizing:border-box!important}.su-tabs-vertical{display:-webkit-box;display:flex}.su-tabs-vertical .su-tabs-nav{width:30%}.su-tabs-vertical .su-tabs-nav>span{display:block;margin-right:0;border-radius:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.su-tabs-vertical .su-tabs-panes{width:70%}.su-tabs-vertical .su-tabs-panes .su-tabs-pane{height:100%;border-radius:0;border-top-right-radius:3px;border-bottom-right-radius:3px}.qtip.su-qtip{max-width:480px!important}.su-tooltip{display:inline-block}.su-qtip-size-1{font-size:.8em!important}.su-qtip-size-2{font-size:.9em!important}.su-qtip-size-3{font-size:1em!important}.su-qtip-size-4{font-size:1.1em!important}.su-qtip-size-5{font-size:1.2em!important}.su-qtip-size-6{font-size:1.3em!important}.su-tooltip-content{display:none}.su-tooltip-content>:last-child{margin-bottom:0}.qtip-content .su-tooltip-content embed,.qtip-content .su-tooltip-content iframe,.qtip-content .su-tooltip-content img,.qtip-content .su-tooltip-content object{max-width:430px}.qtip-content .su-tooltip-content .su-u-responsive-media-yes{width:430px}.su-video{position:relative;margin-bottom:1.5em;overflow:hidden}.su-video .jp-title{position:absolute;top:-100px;left:0;width:100%;height:30px;padding:0 1em;line-height:30px;font-size:.9em;background:#000;background:rgba(0,0,0,.5);color:#fff;-webkit-transition:top .2s;transition:top .2s}.su-video:hover .jp-title{top:0}.su-video .jp-start{position:absolute;left:0;top:0;width:100%;height:100%;cursor:pointer;opacity:.5;-webkit-transition:opacity .2s;transition:opacity .2s;background:50% 50% url(../images/player/default-start.png) no-repeat}.su-video:hover .jp-start{opacity:.8}.su-video.jp-video-full{position:fixed;left:0;top:0;width:100%;height:100%}.su-video.jp-video-full .jp-jplayer{position:fixed!important;left:0;top:0;overflow:hidden}.su-video .jp-gui{position:relative;height:30px;background:#7c8781;background:-webkit-gradient(linear,left top,left bottom,from(#7c8781),to(#0a0809));background:linear-gradient(to bottom,#7c8781 0,#0a0809 100%);border-bottom-right-radius:3px;border-bottom-left-radius:3px}.su-video.jp-video-full .jp-gui{position:fixed;left:0;bottom:0;width:100%}.su-video-controls-no .jp-gui{position:absolute!important;bottom:-100px;left:0;right:0;-webkit-transition:bottom .2s;transition:bottom .2s}.su-video-controls-no:hover .jp-gui{bottom:0}.su-video img{border-radius:0!important;border:none!important;margin:0!important;padding:0!important}.su-video .jp-gui .jp-pause,.su-video .jp-gui .jp-play{position:absolute;left:0;top:0;display:block;width:30px;height:30px;border-right:1px solid #454947;cursor:pointer}.su-video .jp-gui .jp-play{background:0 0 url(../images/player/default.png) no-repeat}.su-video .jp-gui .jp-pause{background:-30px 0 url(../images/player/default.png) no-repeat}.su-video .jp-full-screen,.su-video .jp-restore-screen{position:absolute;top:0;right:0;display:block;width:30px;height:30px;border-left:1px solid #454947;cursor:pointer}.su-video .jp-full-screen{background:0 -30px url(../images/player/default.png) no-repeat}.su-video .jp-restore-screen{background:-30px -30px url(../images/player/default.png) no-repeat}.su-video .jp-progress{position:absolute;top:10px;left:90px;right:90px;height:10px;background:#333;border-radius:3px;box-shadow:0 0 5px #000 inset}.su-video .jp-play-bar,.su-video .jp-seek-bar{position:absolute;top:0;left:0;height:100%;cursor:pointer;border-radius:3px}.su-video .jp-seek-bar{background:#0b0b0b;background:-webkit-gradient(linear,left top,left bottom,from(#0b0b0b),to(#666));background:linear-gradient(to bottom,#0b0b0b 0,#666 100%)}.su-video .jp-play-bar{background:#6db3f2;background:-webkit-gradient(linear,left top,left bottom,from(#6db3f2),color-stop(50%,#54a3ee),color-stop(51%,#3690f0),to(#1e69de));background:linear-gradient(to bottom,#6db3f2 0,#54a3ee 50%,#3690f0 51%,#1e69de 100%)}.su-video .jp-current-time,.su-video .jp-duration{position:absolute;top:0;display:block;height:30px;line-height:30px;color:#f5f5f5;font-size:10px}.su-video .jp-current-time{left:50px}.su-video .jp-duration{right:50px}.su-vimeo{margin:0 0 1.5em}.su-vimeo iframe{border:none!important}.su-youtube{margin:0 0 1.5em}.su-youtube iframe{border:none!important}@media screen and (max-width:768px){.su-button span{padding-top:.25em!important;padding-bottom:.25em!important;line-height:1.2!important}.su-button small{margin-top:.2em!important}.su-image-carousel-adaptive .su-image-carousel-item{width:100%!important;margin-right:0!important}}@media only screen and (max-width:768px){.su-row .su-column{width:100%;margin:0 0 1.5em;float:none}.su-row .su-column:last-child{margin-bottom:0}.su-tabs-vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.su-tabs-vertical .su-tabs-nav,.su-tabs-vertical .su-tabs-panes{width:100%}.su-tabs-vertical .su-tabs-nav .su-tabs-pane,.su-tabs-vertical .su-tabs-nav>span,.su-tabs-vertical .su-tabs-panes .su-tabs-pane,.su-tabs-vertical .su-tabs-panes>span{border-radius:3px}.su-tabs-mobile-stack .su-tabs-nav span{display:block}.su-tabs-mobile-scroll .su-tabs-nav{display:-webkit-box;display:flex;-webkit-box-align:end;align-items:flex-end;white-space:nowrap;overflow-x:auto}}@media screen and (max-width:48em){.su-pullquote{width:auto}.su-pullquote-align-left,.su-pullquote-align-right{float:none;margin:1.5em 0;padding:.5em 1em}}@media only screen{[class*=su-column]+[class*=su-column]:last-child{float:right}}@media (-webkit-min-device-pixel-ratio:0){.su-image-carousel-has-outline .su-image-carousel-item-content a:focus,.su-image-carousel-has-outline button.flickity-prev-next-button:focus{outline-color:-webkit-focus-ring-color;outline-style:auto}}
|
includes/css/shortcodes.full.css
CHANGED
@@ -49,7 +49,6 @@
|
|
49 |
margin-bottom: 1.5em;
|
50 |
background: #7c8781;
|
51 |
background: -webkit-gradient(linear, left top, left bottom, from(#7c8781), to(#0a0809));
|
52 |
-
background: -webkit-linear-gradient(top, #7c8781 0%, #0a0809 100%);
|
53 |
background: linear-gradient(to bottom, #7c8781 0%, #0a0809 100%);
|
54 |
border-radius: 3px;
|
55 |
}
|
@@ -122,14 +121,12 @@
|
|
122 |
.su-audio .jp-seek-bar {
|
123 |
background: #0b0b0b;
|
124 |
background: -webkit-gradient(linear, left top, left bottom, from(#0b0b0b), to(#666));
|
125 |
-
background: -webkit-linear-gradient(top, #0b0b0b 0%, #666 100%);
|
126 |
background: linear-gradient(to bottom, #0b0b0b 0%, #666 100%);
|
127 |
}
|
128 |
|
129 |
.su-audio .jp-play-bar {
|
130 |
background: #6db3f2;
|
131 |
background: -webkit-gradient(linear, left top, left bottom, from(#6db3f2), color-stop(50%, #54a3ee), color-stop(51%, #3690f0), to(#1e69de));
|
132 |
-
background: -webkit-linear-gradient(top, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%);
|
133 |
background: linear-gradient(to bottom, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%);
|
134 |
}
|
135 |
|
@@ -813,7 +810,6 @@
|
|
813 |
color: white;
|
814 |
background: #45484d;
|
815 |
background: -webkit-gradient(linear, left top, left bottom, from(#45484d), to(black));
|
816 |
-
background: -webkit-linear-gradient(top, #45484d 0%, black 100%);
|
817 |
background: linear-gradient(to bottom, #45484d 0%, black 100%);
|
818 |
text-shadow: -1px -1px 0 black;
|
819 |
border-radius: 50%;
|
@@ -829,7 +825,6 @@
|
|
829 |
border-radius: 50%;
|
830 |
background: white;
|
831 |
background: -webkit-gradient(linear, left top, left bottom, from(white), to(#eaeaea));
|
832 |
-
background: -webkit-linear-gradient(top, white 0%, #eaeaea 100%);
|
833 |
background: linear-gradient(to bottom, white 0%, #eaeaea 100%);
|
834 |
}
|
835 |
|
@@ -1398,7 +1393,6 @@
|
|
1398 |
left: 4px;
|
1399 |
padding: 0.5em 0.7em;
|
1400 |
background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.7)), to(transparent));
|
1401 |
-
background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.7), transparent);
|
1402 |
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
|
1403 |
text-shadow: 0 2px 5px black;
|
1404 |
color: white;
|
@@ -1416,7 +1410,6 @@
|
|
1416 |
left: 0;
|
1417 |
padding: 0.7em;
|
1418 |
background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.7)), to(transparent));
|
1419 |
-
background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.7), transparent);
|
1420 |
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
|
1421 |
text-shadow: 0 2px 5px black;
|
1422 |
color: white;
|
@@ -2647,7 +2640,6 @@
|
|
2647 |
height: 30px;
|
2648 |
background: #7c8781;
|
2649 |
background: -webkit-gradient(linear, left top, left bottom, from(#7c8781), to(#0a0809));
|
2650 |
-
background: -webkit-linear-gradient(top, #7c8781 0%, #0a0809 100%);
|
2651 |
background: linear-gradient(to bottom, #7c8781 0%, #0a0809 100%);
|
2652 |
border-bottom-right-radius: 3px;
|
2653 |
border-bottom-left-radius: 3px;
|
@@ -2744,14 +2736,12 @@
|
|
2744 |
.su-video .jp-seek-bar {
|
2745 |
background: #0b0b0b;
|
2746 |
background: -webkit-gradient(linear, left top, left bottom, from(#0b0b0b), to(#666));
|
2747 |
-
background: -webkit-linear-gradient(top, #0b0b0b 0%, #666 100%);
|
2748 |
background: linear-gradient(to bottom, #0b0b0b 0%, #666 100%);
|
2749 |
}
|
2750 |
|
2751 |
.su-video .jp-play-bar {
|
2752 |
background: #6db3f2;
|
2753 |
background: -webkit-gradient(linear, left top, left bottom, from(#6db3f2), color-stop(50%, #54a3ee), color-stop(51%, #3690f0), to(#1e69de));
|
2754 |
-
background: -webkit-linear-gradient(top, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%);
|
2755 |
background: linear-gradient(to bottom, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%);
|
2756 |
}
|
2757 |
|
49 |
margin-bottom: 1.5em;
|
50 |
background: #7c8781;
|
51 |
background: -webkit-gradient(linear, left top, left bottom, from(#7c8781), to(#0a0809));
|
|
|
52 |
background: linear-gradient(to bottom, #7c8781 0%, #0a0809 100%);
|
53 |
border-radius: 3px;
|
54 |
}
|
121 |
.su-audio .jp-seek-bar {
|
122 |
background: #0b0b0b;
|
123 |
background: -webkit-gradient(linear, left top, left bottom, from(#0b0b0b), to(#666));
|
|
|
124 |
background: linear-gradient(to bottom, #0b0b0b 0%, #666 100%);
|
125 |
}
|
126 |
|
127 |
.su-audio .jp-play-bar {
|
128 |
background: #6db3f2;
|
129 |
background: -webkit-gradient(linear, left top, left bottom, from(#6db3f2), color-stop(50%, #54a3ee), color-stop(51%, #3690f0), to(#1e69de));
|
|
|
130 |
background: linear-gradient(to bottom, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%);
|
131 |
}
|
132 |
|
810 |
color: white;
|
811 |
background: #45484d;
|
812 |
background: -webkit-gradient(linear, left top, left bottom, from(#45484d), to(black));
|
|
|
813 |
background: linear-gradient(to bottom, #45484d 0%, black 100%);
|
814 |
text-shadow: -1px -1px 0 black;
|
815 |
border-radius: 50%;
|
825 |
border-radius: 50%;
|
826 |
background: white;
|
827 |
background: -webkit-gradient(linear, left top, left bottom, from(white), to(#eaeaea));
|
|
|
828 |
background: linear-gradient(to bottom, white 0%, #eaeaea 100%);
|
829 |
}
|
830 |
|
1393 |
left: 4px;
|
1394 |
padding: 0.5em 0.7em;
|
1395 |
background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.7)), to(transparent));
|
|
|
1396 |
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
|
1397 |
text-shadow: 0 2px 5px black;
|
1398 |
color: white;
|
1410 |
left: 0;
|
1411 |
padding: 0.7em;
|
1412 |
background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.7)), to(transparent));
|
|
|
1413 |
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
|
1414 |
text-shadow: 0 2px 5px black;
|
1415 |
color: white;
|
2640 |
height: 30px;
|
2641 |
background: #7c8781;
|
2642 |
background: -webkit-gradient(linear, left top, left bottom, from(#7c8781), to(#0a0809));
|
|
|
2643 |
background: linear-gradient(to bottom, #7c8781 0%, #0a0809 100%);
|
2644 |
border-bottom-right-radius: 3px;
|
2645 |
border-bottom-left-radius: 3px;
|
2736 |
.su-video .jp-seek-bar {
|
2737 |
background: #0b0b0b;
|
2738 |
background: -webkit-gradient(linear, left top, left bottom, from(#0b0b0b), to(#666));
|
|
|
2739 |
background: linear-gradient(to bottom, #0b0b0b 0%, #666 100%);
|
2740 |
}
|
2741 |
|
2742 |
.su-video .jp-play-bar {
|
2743 |
background: #6db3f2;
|
2744 |
background: -webkit-gradient(linear, left top, left bottom, from(#6db3f2), color-stop(50%, #54a3ee), color-stop(51%, #3690f0), to(#1e69de));
|
|
|
2745 |
background: linear-gradient(to bottom, #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 100%);
|
2746 |
}
|
2747 |
|
includes/js/generator/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
!function s(o,i,u){function c(t,e){if(!i[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var a=i[t]={exports:{}};o[t][0].call(a.exports,function(e){return c(o[t][1][e]||e)},a,a.exports,s,o,i,u)}return i[t].exports}for(var l="function"==typeof require&&require,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(e,t,r){"use strict";function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p,o,i,u,n,c,l,g,d,a,f,h;window.SUG={},window.SUG.App=(p=jQuery,o=p("#su-generator"),i=p("#su-generator-search"),u=p("#su-generator-filter"),n=u.children("a"),c=p("#su-generator-choices"),l=c.find("span"),g=p("#su-generator-settings"),d=p("#su-compatibility-mode-prefix"),a=p("#su-generator-result"),f=p("#su-generator-selected"),(h={state:{mceSelection:"",target:"",wpActiveEditor:null,context:"",insertArgs:"",preview:{timer:null,request:null}}}).el={body:p("body")},h.init=function(){var a;n.click(function(e){var t=p(this).data("filter");if("all"===t)l.css({opacity:1}).removeClass("su-generator-choice-first");else{var r=new RegExp(t,"gi");l.css({opacity:.2}),l.each(function(){null!==p(this).data("group").match(r)&&p(this).css({opacity:1}).removeClass("su-generator-choice-first")})}e.preventDefault()}),p("#su-generator").on("click",".su-generator-home",function(e){i.val(""),g.html("").hide(),o.removeClass("su-generator-narrow"),u.show(),c.show(),l.show(),h.state.mceSelection="",i.focus(),e.preventDefault()}),p("#su-generator").on("click",".su-generator-close",function(e){p.magnificPopup.close(),e.preventDefault()}),i.on({focus:function(){p(this).val(""),g.html("").hide(),o.removeClass("su-generator-narrow"),c.show(),l.css({opacity:1}).removeClass("su-generator-choice-first"),u.show()},blur:function(){},keyup:function(e){var t=p(".su-generator-choice-first:first"),n=p(this).val(),a=new RegExp(n,"gi"),s=0;13===e.keyCode&&0<t.length&&(e.preventDefault(),p(this).val("").blur(),t.trigger("click")),l.css({opacity:.2}).removeClass("su-generator-choice-first"),l.each(function(){var e=p(this).data(),t=e.shortcode,r=[t,e.name,e.desc,e.group].join(" ").match(a);null!==r&&(p(this).css({opacity:1}),n===t?(l.removeClass("su-generator-choice-first"),p(this).addClass("su-generator-choice-first"),s=999):r.length>s&&(l.removeClass("su-generator-choice-first"),p(this).addClass("su-generator-choice-first"),s=r.length))}),""===n&&l.removeClass("su-generator-choice-first")}}),l.on("click",function(e){var r=p(this).data("shortcode");p.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_settings",shortcode:r},beforeSend:function(){p("#su-generator-preview").hide(),c.hide(),g.addClass("su-generator-loading").show(),o.addClass("su-generator-narrow"),u.hide()},success:function(e){g.removeClass("su-generator-loading"),g.html(e);var t=p("#su-generator-content");void 0!==h.state.mceSelection&&""!==h.state.mceSelection&&"hidden"!==t.attr("type")&&t.val(h.state.mceSelection),p(".su-generator-range-picker").each(function(e){var t=p(this).find("input"),r=t.attr("min"),n=t.attr("max"),a=t.attr("step");t.simpleSlider({snap:!0,step:a,range:[r,n]}),t.show(),t.on("keyup blur",function(e){t.simpleSlider("setValue",t.val())})}),p(".su-generator-select-color").each(function(e){p(this).find(".su-generator-select-color-wheel").filter(":first").farbtastic(".su-generator-select-color-value:eq("+e+")"),p(this).find(".su-generator-select-color-value").focus(function(){p(".su-generator-select-color-wheel:eq("+e+")").show()}),p(this).find(".su-generator-select-color-value").blur(function(){p(".su-generator-select-color-wheel:eq("+e+")").hide()})}),p(".su-generator-isp").each(function(){function n(){var e="none",t="",r=i.val();if("media"===r){var n=[];u.find("span").each(function(e){n[e]=p(this).data("id")}),0<n.length&&(t=n.join(","))}else if("category"===r){var a=c.val()||[];0<a.length&&(t=a.join(","))}else if("taxonomy"===r){var s=l.val()||"",o=g.val()||[];"0"!==s&&0<o.length&&(e="taxonomy: "+s+"/"+o.join(","))}else e="0"===r?"none":r;""!==t&&(e=r+": "+t),d.val(e).trigger("change")}var t,r=p(this),i=r.find(".su-generator-isp-sources"),a=r.find(".su-generator-isp-source"),e=r.find(".su-generator-isp-add-media"),u=r.find(".su-generator-isp-images"),c=r.find(".su-generator-isp-categories"),l=r.find(".su-generator-isp-taxonomies"),g=p(".su-generator-isp-terms"),d=r.find(".su-generator-attr");i.on("change",function(e){var t=p(this).val();e.preventDefault(),a.removeClass("su-generator-isp-source-open"),-1===t.indexOf(":")&&r.find(".su-generator-isp-source-"+t).addClass("su-generator-isp-source-open"),n()}),u.on("click","span i",function(){p(this).parent("span").css("border-color","#f03").fadeOut(300,function(){p(this).remove(),n()})}),e.click(function(e){e.preventDefault(),void 0!==t&&t.close(),(t=wp.media.frames.su_media_frame_1=wp.media({title:SUGL10n.isp_media_title,library:{type:"image"},button:{text:SUGL10n.isp_media_insert},multiple:!0})).on("open",function(){p(".mfp-wrap").addClass("hidden")}),t.on("close",function(){p(".mfp-wrap").removeClass("hidden")}),t.on("select",function(){var e=t.state().get("selection").toJSON();u.find("em").remove(),p.each(e,function(e){u.append('<span data-id="'+this.id+'" title="'+this.title+'"><img src="'+this.url+'" alt="" /><i class="sui sui-times"></i></span>')}),n()}).open()}),u.sortable({revert:200,containment:r,tolerance:"pointer",stop:function(){n()}}),c.on("change",n),g.on("change",n),l.on("change",function(){var t=p(this).parents(".su-generator-isp-source"),e=p(this).val();if(g.hide().find("option").remove(),n(),"0"===e);else var r=p.ajax({url:ajaxurl,type:"post",dataType:"html",data:{action:"su_generator_get_terms",tax:e,class:"su-generator-isp-terms",multiple:!0,size:10},beforeSend:function(){"object"===s(r)&&r.abort(),g.html("").attr("disabled",!0).hide(),t.addClass("su-generator-loading")},success:function(e){g.html(e).attr("disabled",!1).show(),t.removeClass("su-generator-loading")}})})}),p(".su-generator-upload-button").each(function(){var t,e=p(this),r=p(this).parents(".su-generator-attr-container").find("input:text");e.on("click",function(e){e.preventDefault(),e.stopPropagation(),void 0!==t&&t.close(),(t=wp.media.frames.su_media_frame_2=wp.media({title:SUGL10n.upload_title,button:{text:SUGL10n.upload_insert},multiple:!1})).on("select",function(){var e=t.state().get("selection").first().toJSON();r.val(e.url).trigger("change")}),t.on("open",function(){p(".mfp-wrap").addClass("hidden")}),t.on("close",function(){p(".mfp-wrap").removeClass("hidden")}),t.open()})}),p(".su-generator-icon-picker-button").each(function(){var e=p(this),t=p(this).parents(".su-generator-attr-container"),n=t.find(".su-generator-attr"),a=t.find(".su-generator-icon-picker"),s=a.find("input:text");e.click(function(e){a.toggleClass("su-generator-icon-picker-visible"),s.val("").trigger("keyup"),a.hasClass("su-generator-icon-picker-loaded")||(p.ajax({type:"post",url:ajaxurl,data:{action:"su_generator_get_icons"},dataType:"html",beforeSend:function(){a.addClass("su-generator-loading"),a.addClass("su-generator-icon-picker-loaded")},success:function(e){a.append(e);var r=a.children("i");r.click(function(e){n.val("icon: "+p(this).attr("title")),a.removeClass("su-generator-icon-picker-visible"),n.trigger("change"),e.preventDefault()}),s.on({keyup:function(){var e=p(this).val(),t=new RegExp(e,"gi");r.hide(),r.each(function(){null!==p(this).attr("title").match(t)&&p(this).show()})},focus:function(){p(this).val(""),r.show()}}),a.removeClass("su-generator-loading")}}),e.preventDefault())})}),p(".su-generator-switch").click(function(e){var t=p(this).parent().children("input");"yes"===t.val()?t.val("no").trigger("change"):t.val("yes").trigger("change"),e.preventDefault()}),p(".su-generator-switch-value").on("change",function(){var e=p(this),t=e.parent().children(".su-generator-switch"),r=e.val();"yes"===r?t.removeClass("su-generator-switch-no").addClass("su-generator-switch-yes"):"no"===r&&t.removeClass("su-generator-switch-yes").addClass("su-generator-switch-no")}),p("select#su-generator-attr-taxonomy").on("change",function(){var e=p(this).val(),t=p("select#su-generator-attr-tax_term");window.su_generator_get_terms=p.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_get_terms",tax:e,noselect:!0},dataType:"html",beforeSend:function(){"object"===s(window.su_generator_get_terms)&&window.su_generator_get_terms.abort(),t.parent().addClass("su-generator-loading")},success:function(e){t.find("option").remove(),t.append(e),t.parent().removeClass("su-generator-loading")}})}),p(".su-generator-shadow-picker").each(function(e){var t=p(this),r=t.find(".su-generator-shadow-picker-field input"),n=t.find(".su-generator-sp-hoff"),a=t.find(".su-generator-sp-voff"),s=t.find(".su-generator-sp-blur"),o={cnt:t.find(".su-generator-shadow-picker-color"),value:t.find(".su-generator-shadow-picker-color-value"),wheel:t.find(".su-generator-shadow-picker-color-wheel")},i=t.find(".su-generator-attr");o.wheel.farbtastic(o.value),o.value.focus(function(){o.wheel.show()}),o.value.blur(function(){o.wheel.hide()}),r.on("change blur keyup",function(){i.val(n.val()+"px "+a.val()+"px "+s.val()+"px "+o.value.val()).trigger("change")}),i.on("keyup",function(){var e=p(this).val().split(" ");4===e.length&&(n.val(e[0].replace("px","")),a.val(e[1].replace("px","")),s.val(e[2].replace("px","")),o.value.val(e[3]),r.trigger("keyup"))})}),p(".su-generator-border-picker").each(function(e){var t=p(this),r=t.find(".su-generator-border-picker-field input, .su-generator-border-picker-field select"),n=t.find(".su-generator-bp-width"),a=t.find(".su-generator-bp-style"),s={cnt:t.find(".su-generator-border-picker-color"),value:t.find(".su-generator-border-picker-color-value"),wheel:t.find(".su-generator-border-picker-color-wheel")},o=t.find(".su-generator-attr");s.wheel.farbtastic(s.value),s.value.focus(function(){s.wheel.show()}),s.value.blur(function(){s.wheel.hide()}),r.on("change blur keyup",function(){o.val(n.val()+"px "+a.val()+" "+s.value.val()).trigger("change")}),o.on("keyup",function(){var e=p(this).val().split(" ");3===e.length&&(n.val(e[0].replace("px","")),a.val(e[1]),s.value.val(e[2]),r.trigger("keyup"))})}),g.find(".su-generator-attr").on("change keyup blur",function(){var e=p(this).parents(".su-generator-attr-container"),t=e.data("default");p(this).val()!=t?e.removeClass("su-generator-skip"):e.addClass("su-generator-skip")}),p(".su-generator-set-value").click(function(e){p(this).parents(".su-generator-attr-container").find("input").val(p(this).text()).trigger("change")}),f.val(r),p.ajax({type:"GET",url:ajaxurl,data:{action:"su_generator_get_preset",id:"last_used",shortcode:r},beforeSend:function(){},success:function(e){h.setSettings(e);var t=p("#su-generator-content");void 0!==h.state.mceSelection&&""!==h.state.mceSelection&&"hidden"!==t.attr("type")&&t.val(h.state.mceSelection)},dataType:"json"})},dataType:"html"})}),p("#su-generator").on("click",".su-generator-insert",h.insertShortcode),p("#su-generator").on("click",".su-generator-toggle-preview",function(e){var t=p("#su-generator-preview");p(this).hide(),t.addClass("su-generator-loading").show(),g.find("input, textarea, select").on("change keyup blur",function(){h.updatePreview()}),h.updatePreview(!0),e.preventDefault()}),p("#su-generator").on("mouseenter click",".su-generator-presets",function(){clearTimeout(a),p(".su-gp-popup").show()}),p("#su-generator").on("mouseleave",".su-generator-presets",function(){a=window.setTimeout(function(){p(".su-gp-popup").fadeOut(200)},600)}),p("#su-generator").on("click",".su-gp-new",function(e){p(this).parents(".su-generator-presets");var t=p(".su-gp-list"),r=(new Date).getTime(),n=prompt(SUGL10n.presets_prompt_msg,SUGL10n.presets_prompt_value);""!==n&&null!==n&&(t.find("b").hide(),t.append('<span data-id="'+r+'"><em>'+n+'</em><i class="sui sui-times"></i></span>'),h.addPreset(r,n))}),p("#su-generator").on("click",".su-gp-list span",function(e){var t=p(".su-generator-presets").data("shortcode"),r=p(this).data("id"),n=p(".su-generator-insert");p(".su-gp-popup").hide(),clearTimeout(a),p.ajax({type:"GET",url:ajaxurl,data:{action:"su_generator_get_preset",id:r,shortcode:t},beforeSend:function(){n.addClass("button-primary-disabled").attr("disabled",!0)},success:function(e){n.removeClass("button-primary-disabled").attr("disabled",!1),h.setSettings(e)},dataType:"json"}),e.preventDefault(),e.stopPropagation()}),p("#su-generator").on("click",".su-gp-list i",function(e){var t=p(this).parents(".su-gp-list"),r=p(this).parent("span"),n=r.data("id");r.remove(),t.find("span").length<1&&t.find("b").show(),h.removePreset(n),e.stopPropagation(),e.preventDefault()})},h.addPreset=function(e,t){var r=p(".su-generator-presets").data("shortcode"),n=h.getSettings();p.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_add_preset",id:e,name:t,shortcode:r,settings:n}})},h.removePreset=function(e){var t=p(".su-generator-presets").data("shortcode");p.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_remove_preset",id:e,shortcode:t}})},h.parseSettings=function(){var e=f.val(),t=d.val(),r=p("#su-generator-settings .su-generator-attr-container:not(.su-generator-skip) .su-generator-attr"),n=p("textarea#su-generator-content"),a=n.length?n.val():"false",s=new String("");return s+="["+t+e,r.each(function(){var e=p(this),t="";null==(t=e.is("select")?e.find("option:selected").val():e.val())?t="":"array"==typeof t&&(t=t.join(",")),""!==t&&(s+=" "+p(this).attr("name")+'="'+p(this).val().toString().replace(/"/gi,"'")+'"')}),s+="]","false"!=a&&(s+=a+"[/"+t+e+"]"),s},h.getSettings=function(){f.val();var e=p("#su-generator-settings .su-generator-attr"),t=p("textarea#su-generator-content"),r=t.length?t.val():"false",a={};return e.each(function(e){var t=p(this),r="",n=t.attr("name");null==(r=t.is("select")?t.find("option:selected").val():t.val())&&(r=""),a[n]=r}),a.content=r.toString(),a},h.setSettings=function(r){var e=p("#su-generator-settings .su-generator-attr"),t=p("#su-generator-content");e.each(function(){var e=p(this),t=e.attr("name");r.hasOwnProperty(t)&&(e.val(r[t]),e.trigger("keyup").trigger("change").trigger("blur"))}),r.hasOwnProperty("content")&&t.val(r.content).trigger("keyup").trigger("change").trigger("blur"),h.updatePreview()},h.updatePreview=function(e){var t=p("#su-generator-preview"),r=h.parseSettings(),n=a.text();e=e||!1,t.is(":visible")&&(r===n&&!e||(window.clearTimeout(h.state.preview.timer),h.state.preview.timer=window.setTimeout(function(){h.state.preview.request=p.ajax({type:"POST",url:ajaxurl,cache:!1,data:{action:"su_generator_preview",shortcode:r},beforeSend:function(){h.state.preview.request&&h.state.preview.request.abort(),t.addClass("su-generator-loading").html("")},success:function(e){t.html(e).removeClass("su-generator-loading")},dataType:"html"})},300),a.text(r)))},h.insert=function(e,t){if("string"==typeof e&&"object"===s(t)){h.state.context=e;var r=(h.state.insertArgs=t).shortcode||"",n={type:"inline",alignTop:!0,closeOnBgClick:!1,mainClass:"su-generator-mfp",items:{src:"#su-generator"},callbacks:{}};n.callbacks.open=function(){r?l.filter('[data-shortcode="'.concat(r,'"]')).trigger("click"):window.setTimeout(function(){return i.focus()},200),"undefined"!=typeof tinyMCE&&null!=tinyMCE.activeEditor&&tinyMCE.activeEditor.hasOwnProperty("selection")&&(h.state.mceSelection=tinyMCE.activeEditor.selection.getContent({format:"text"}))},n.callbacks.close=function(){i.val(""),g.html("").hide(),o.removeClass("su-generator-narrow"),u.show(),c.show(),l.show(),h.state.mceSelection=""},p.magnificPopup.open(n)}},h.insertShortcode=function(){var e=h.parseSettings();if(h.addPreset("last_used",SUGL10n.last_used),p.magnificPopup.close(),a.text(e),"classic"===h.state.context)h.state.wpActiveEditor=window.wpActiveEditor,window.wpActiveEditor=h.state.insertArgs.editorID,window.wp.media.editor.insert(e),window.wpActiveEditor=h.state.wpActiveEditor;else if("block"===h.state.context){var t=h.state.insertArgs.props;if(t.attributes.hasOwnProperty("content"))t.setAttributes({content:t.attributes.content+e});else if("core/shortcode"===t.name){var r=t.attributes.hasOwnProperty("text")?t.attributes.text:"";t.setAttributes({text:r+e})}}},h.insertAtCaret=function(e,t){var r=e.selectionStart;e.selectionEnd,e.value=e.value.substring(0,r)+t+e.value.substring(r),e.focus(),e.selectionStart=r+t.length},{init:h.init,insert:h.insert}),jQuery(document).ready(window.SUG.App.init)},{}]},{},[1]);
|
2 |
//# sourceMappingURL=index.js.map
|
1 |
+
!function s(o,i,u){function c(t,e){if(!i[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var a=i[t]={exports:{}};o[t][0].call(a.exports,function(e){return c(o[t][1][e]||e)},a,a.exports,s,o,i,u)}return i[t].exports}for(var l="function"==typeof require&&require,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(e,t,r){"use strict";function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p,o,i,u,n,c,l,g,d,a,f,h;window.SUG={},window.SUG.App=(p=jQuery,o=p("#su-generator"),i=p("#su-generator-search"),u=p("#su-generator-filter"),n=u.children("a"),c=p("#su-generator-choices"),l=c.find("span"),g=p("#su-generator-settings"),d=p("#su-compatibility-mode-prefix"),a=p("#su-generator-result"),f=p("#su-generator-selected"),(h={state:{mceSelection:"",target:"",wpActiveEditor:null,context:"",insertArgs:"",preview:{timer:null,request:null}}}).el={body:p("body")},h.init=function(){var a;n.click(function(e){var t=p(this).data("filter");if("all"===t)l.css({opacity:1}).removeClass("su-generator-choice-first");else{var r=new RegExp(t,"gi");l.css({opacity:.2}),l.each(function(){null!==p(this).data("group").match(r)&&p(this).css({opacity:1}).removeClass("su-generator-choice-first")})}e.preventDefault()}),p("#su-generator").on("click",".su-generator-home",function(e){i.val(""),g.html("").hide(),o.removeClass("su-generator-narrow"),u.show(),c.show(),l.show(),h.state.mceSelection="",i.focus(),e.preventDefault()}),p("#su-generator").on("click",".su-generator-close",function(e){p.magnificPopup.close(),e.preventDefault()}),i.on({focus:function(){p(this).val(""),g.html("").hide(),o.removeClass("su-generator-narrow"),c.show(),l.css({opacity:1}).removeClass("su-generator-choice-first"),u.show()},blur:function(){},keyup:function(e){var t=p(".su-generator-choice-first:first"),n=p(this).val(),a=new RegExp(n,"gi"),s=0;13===e.keyCode&&0<t.length&&(e.preventDefault(),p(this).val("").blur(),t.trigger("click")),l.css({opacity:.2}).removeClass("su-generator-choice-first"),l.each(function(){var e=p(this).data(),t=e.shortcode,r=[t,e.name,e.desc,e.group].join(" ").match(a);null!==r&&(p(this).css({opacity:1}),n===t?(l.removeClass("su-generator-choice-first"),p(this).addClass("su-generator-choice-first"),s=999):r.length>s&&(l.removeClass("su-generator-choice-first"),p(this).addClass("su-generator-choice-first"),s=r.length))}),""===n&&l.removeClass("su-generator-choice-first")}}),l.on("click",function(e){var r=p(this).data("shortcode");p.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_settings",shortcode:r},beforeSend:function(){p("#su-generator-preview").hide(),c.hide(),g.addClass("su-generator-loading").show(),o.addClass("su-generator-narrow"),u.hide()},success:function(e){g.removeClass("su-generator-loading"),g.html(e);var t=p("#su-generator-content");void 0!==h.state.mceSelection&&""!==h.state.mceSelection&&"hidden"!==t.attr("type")&&t.val(h.state.mceSelection),p(".su-generator-range-picker").each(function(e){var t=p(this).find("input"),r=t.attr("min"),n=t.attr("max"),a=t.attr("step");t.simpleSlider({snap:!0,step:a,range:[r,n]}),t.show(),t.on("keyup blur",function(e){t.simpleSlider("setValue",t.val())})}),p(".su-generator-select-color").each(function(e){p(this).find(".su-generator-select-color-wheel").filter(":first").farbtastic(".su-generator-select-color-value:eq("+e+")"),p(this).find(".su-generator-select-color-value").focus(function(){p(".su-generator-select-color-wheel:eq("+e+")").show()}),p(this).find(".su-generator-select-color-value").blur(function(){p(".su-generator-select-color-wheel:eq("+e+")").hide()})}),p(".su-generator-isp").each(function(){function n(){var e="none",t="",r=i.val();if("media"===r){var n=[];u.find("span").each(function(e){n[e]=p(this).data("id")}),0<n.length&&(t=n.join(","))}else if("category"===r){var a=c.val()||[];0<a.length&&(t=a.join(","))}else if("taxonomy"===r){var s=l.val()||"",o=g.val()||[];"0"!==s&&0<o.length&&(e="taxonomy: "+s+"/"+o.join(","))}else e="0"===r?"none":r;""!==t&&(e=r+": "+t),d.val(e).trigger("change")}var t,r=p(this),i=r.find(".su-generator-isp-sources"),a=r.find(".su-generator-isp-source"),e=r.find(".su-generator-isp-add-media"),u=r.find(".su-generator-isp-images"),c=r.find(".su-generator-isp-categories"),l=r.find(".su-generator-isp-taxonomies"),g=p(".su-generator-isp-terms"),d=r.find(".su-generator-attr");i.on("change",function(e){var t=p(this).val();e.preventDefault(),a.removeClass("su-generator-isp-source-open"),-1===t.indexOf(":")&&r.find(".su-generator-isp-source-"+t).addClass("su-generator-isp-source-open"),n()}),u.on("click","span i",function(){p(this).parent("span").css("border-color","#f03").fadeOut(300,function(){p(this).remove(),n()})}),e.click(function(e){e.preventDefault(),void 0!==t&&t.close(),(t=wp.media.frames.su_media_frame_1=wp.media({title:SUGL10n.isp_media_title,library:{type:"image"},button:{text:SUGL10n.isp_media_insert},multiple:!0})).on("open",function(){p(".mfp-wrap").addClass("hidden")}),t.on("close",function(){p(".mfp-wrap").removeClass("hidden")}),t.on("select",function(){var e=t.state().get("selection").toJSON();u.find("em").remove(),p.each(e,function(e){u.append('<span data-id="'+this.id+'" title="'+this.title+'"><img src="'+this.url+'" alt="" /><i class="sui sui-times"></i></span>')}),n()}).open()}),u.sortable({revert:200,containment:r,tolerance:"pointer",stop:function(){n()}}),c.on("change",n),g.on("change",n),l.on("change",function(){var t=p(this).parents(".su-generator-isp-source"),e=p(this).val();if(g.hide().find("option").remove(),n(),"0"!==e)var r=p.ajax({url:ajaxurl,type:"post",dataType:"html",data:{action:"su_generator_get_terms",tax:e,class:"su-generator-isp-terms",multiple:!0,size:10},beforeSend:function(){"object"===s(r)&&r.abort(),g.html("").attr("disabled",!0).hide(),t.addClass("su-generator-loading")},success:function(e){g.html(e).attr("disabled",!1).show(),t.removeClass("su-generator-loading")}})})}),p(".su-generator-upload-button").each(function(){var t,e=p(this),r=p(this).parents(".su-generator-attr-container").find("input:text");e.on("click",function(e){e.preventDefault(),e.stopPropagation(),void 0!==t&&t.close(),(t=wp.media.frames.su_media_frame_2=wp.media({title:SUGL10n.upload_title,button:{text:SUGL10n.upload_insert},multiple:!1})).on("select",function(){var e=t.state().get("selection").first().toJSON();r.val(e.url).trigger("change")}),t.on("open",function(){p(".mfp-wrap").addClass("hidden")}),t.on("close",function(){p(".mfp-wrap").removeClass("hidden")}),t.open()})}),p(".su-generator-icon-picker-button").each(function(){var e=p(this),t=p(this).parents(".su-generator-attr-container"),n=t.find(".su-generator-attr"),a=t.find(".su-generator-icon-picker"),s=a.find("input:text");e.click(function(e){a.toggleClass("su-generator-icon-picker-visible"),s.val("").trigger("keyup"),a.hasClass("su-generator-icon-picker-loaded")||(p.ajax({type:"post",url:ajaxurl,data:{action:"su_generator_get_icons"},dataType:"html",beforeSend:function(){a.addClass("su-generator-loading"),a.addClass("su-generator-icon-picker-loaded")},success:function(e){a.append(e);var r=a.children("i");r.click(function(e){n.val("icon: "+p(this).attr("title")),a.removeClass("su-generator-icon-picker-visible"),n.trigger("change"),e.preventDefault()}),s.on({keyup:function(){var e=p(this).val(),t=new RegExp(e,"gi");r.hide(),r.each(function(){null!==p(this).attr("title").match(t)&&p(this).show()})},focus:function(){p(this).val(""),r.show()}}),a.removeClass("su-generator-loading")}}),e.preventDefault())})}),p(".su-generator-switch").click(function(e){var t=p(this).parent().children("input");"yes"===t.val()?t.val("no").trigger("change"):t.val("yes").trigger("change"),e.preventDefault()}),p(".su-generator-switch-value").on("change",function(){var e=p(this),t=e.parent().children(".su-generator-switch"),r=e.val();"yes"===r?t.removeClass("su-generator-switch-no").addClass("su-generator-switch-yes"):"no"===r&&t.removeClass("su-generator-switch-yes").addClass("su-generator-switch-no")}),p("select#su-generator-attr-taxonomy").on("change",function(){var e=p(this).val(),t=p("select#su-generator-attr-tax_term");window.su_generator_get_terms=p.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_get_terms",tax:e,noselect:!0},dataType:"html",beforeSend:function(){"object"===s(window.su_generator_get_terms)&&window.su_generator_get_terms.abort(),t.parent().addClass("su-generator-loading")},success:function(e){t.find("option").remove(),t.append(e),t.parent().removeClass("su-generator-loading")}})}),p(".su-generator-shadow-picker").each(function(e){var t=p(this),r=t.find(".su-generator-shadow-picker-field input"),n=t.find(".su-generator-sp-hoff"),a=t.find(".su-generator-sp-voff"),s=t.find(".su-generator-sp-blur"),o={cnt:t.find(".su-generator-shadow-picker-color"),value:t.find(".su-generator-shadow-picker-color-value"),wheel:t.find(".su-generator-shadow-picker-color-wheel")},i=t.find(".su-generator-attr");o.wheel.farbtastic(o.value),o.value.focus(function(){o.wheel.show()}),o.value.blur(function(){o.wheel.hide()}),r.on("change blur keyup",function(){i.val(n.val()+"px "+a.val()+"px "+s.val()+"px "+o.value.val()).trigger("change")}),i.on("keyup",function(){var e=p(this).val().split(" ");4===e.length&&(n.val(e[0].replace("px","")),a.val(e[1].replace("px","")),s.val(e[2].replace("px","")),o.value.val(e[3]),r.trigger("keyup"))})}),p(".su-generator-border-picker").each(function(e){var t=p(this),r=t.find(".su-generator-border-picker-field input, .su-generator-border-picker-field select"),n=t.find(".su-generator-bp-width"),a=t.find(".su-generator-bp-style"),s={cnt:t.find(".su-generator-border-picker-color"),value:t.find(".su-generator-border-picker-color-value"),wheel:t.find(".su-generator-border-picker-color-wheel")},o=t.find(".su-generator-attr");s.wheel.farbtastic(s.value),s.value.focus(function(){s.wheel.show()}),s.value.blur(function(){s.wheel.hide()}),r.on("change blur keyup",function(){o.val(n.val()+"px "+a.val()+" "+s.value.val()).trigger("change")}),o.on("keyup",function(){var e=p(this).val().split(" ");3===e.length&&(n.val(e[0].replace("px","")),a.val(e[1]),s.value.val(e[2]),r.trigger("keyup"))})}),g.find(".su-generator-attr").on("change keyup blur",function(){var e=p(this).parents(".su-generator-attr-container"),t=e.data("default");p(this).val()!=t?e.removeClass("su-generator-skip"):e.addClass("su-generator-skip")}),p(".su-generator-set-value").click(function(e){p(this).parents(".su-generator-attr-container").find("input").val(p(this).text()).trigger("change")}),f.val(r),p.ajax({type:"GET",url:ajaxurl,data:{action:"su_generator_get_preset",id:"last_used",shortcode:r},beforeSend:function(){},success:function(e){h.setSettings(e);var t=p("#su-generator-content");void 0!==h.state.mceSelection&&""!==h.state.mceSelection&&"hidden"!==t.attr("type")&&t.val(h.state.mceSelection)},dataType:"json"})},dataType:"html"})}),p("#su-generator").on("click",".su-generator-insert",h.insertShortcode),p("#su-generator").on("click",".su-generator-toggle-preview",function(e){var t=p("#su-generator-preview");p(this).hide(),t.addClass("su-generator-loading").show(),g.find("input, textarea, select").on("change keyup blur",function(){h.updatePreview()}),h.updatePreview(!0),e.preventDefault()}),p("#su-generator").on("mouseenter click",".su-generator-presets",function(){clearTimeout(a),p(".su-gp-popup").show()}),p("#su-generator").on("mouseleave",".su-generator-presets",function(){a=window.setTimeout(function(){p(".su-gp-popup").fadeOut(200)},600)}),p("#su-generator").on("click",".su-gp-new",function(e){p(this).parents(".su-generator-presets");var t=p(".su-gp-list"),r=(new Date).getTime(),n=prompt(SUGL10n.presets_prompt_msg,SUGL10n.presets_prompt_value);""!==n&&null!==n&&(t.find("b").hide(),t.append('<span data-id="'+r+'"><em>'+n+'</em><i class="sui sui-times"></i></span>'),h.addPreset(r,n))}),p("#su-generator").on("click",".su-gp-list span",function(e){var t=p(".su-generator-presets").data("shortcode"),r=p(this).data("id"),n=p(".su-generator-insert");p(".su-gp-popup").hide(),clearTimeout(a),p.ajax({type:"GET",url:ajaxurl,data:{action:"su_generator_get_preset",id:r,shortcode:t},beforeSend:function(){n.addClass("button-primary-disabled").attr("disabled",!0)},success:function(e){n.removeClass("button-primary-disabled").attr("disabled",!1),h.setSettings(e)},dataType:"json"}),e.preventDefault(),e.stopPropagation()}),p("#su-generator").on("click",".su-gp-list i",function(e){var t=p(this).parents(".su-gp-list"),r=p(this).parent("span"),n=r.data("id");r.remove(),t.find("span").length<1&&t.find("b").show(),h.removePreset(n),e.stopPropagation(),e.preventDefault()})},h.addPreset=function(e,t){var r=p(".su-generator-presets").data("shortcode"),n=h.getSettings();p.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_add_preset",id:e,name:t,shortcode:r,settings:n}})},h.removePreset=function(e){var t=p(".su-generator-presets").data("shortcode");p.ajax({type:"POST",url:ajaxurl,data:{action:"su_generator_remove_preset",id:e,shortcode:t}})},h.parseSettings=function(){var e="on"===p("#su-generator-option-skip").val()?"#su-generator-settings .su-generator-attr-container:not(.su-generator-skip) .su-generator-attr":"#su-generator-settings .su-generator-attr-container .su-generator-attr",t=f.val(),r=d.val(),n=p(e),a=p("textarea#su-generator-content"),s=a.length?a.val():"false",o=new String("");return o+="["+r+t,n.each(function(){var e=p(this),t="";null==(t=e.is("select")?e.find("option:selected").val():e.val())?t="":"array"==typeof t&&(t=t.join(",")),""!==t&&(o+=" "+p(this).attr("name")+'="'+p(this).val().toString().replace(/"/gi,"'")+'"')}),o+="]","false"!=s&&(o+=s+"[/"+r+t+"]"),o},h.getSettings=function(){f.val();var e=p("#su-generator-settings .su-generator-attr"),t=p("textarea#su-generator-content"),r=t.length?t.val():"false",a={};return e.each(function(e){var t=p(this),r="",n=t.attr("name");null==(r=t.is("select")?t.find("option:selected").val():t.val())&&(r=""),a[n]=r}),a.content=r.toString(),a},h.setSettings=function(r){var e=p("#su-generator-settings .su-generator-attr"),t=p("#su-generator-content");e.each(function(){var e=p(this),t=e.attr("name");r.hasOwnProperty(t)&&(e.val(r[t]),e.trigger("keyup").trigger("change").trigger("blur"))}),r.hasOwnProperty("content")&&t.val(r.content).trigger("keyup").trigger("change").trigger("blur"),h.updatePreview()},h.updatePreview=function(e){var t=p("#su-generator-preview"),r=h.parseSettings(),n=a.text();e=e||!1,t.is(":visible")&&(r===n&&!e||(window.clearTimeout(h.state.preview.timer),h.state.preview.timer=window.setTimeout(function(){h.state.preview.request=p.ajax({type:"POST",url:ajaxurl,cache:!1,data:{action:"su_generator_preview",shortcode:r},beforeSend:function(){h.state.preview.request&&h.state.preview.request.abort(),t.addClass("su-generator-loading").html("")},success:function(e){t.html(e).removeClass("su-generator-loading")},dataType:"html"})},300),a.text(r)))},h.insert=function(e,t){if("string"==typeof e&&"object"===s(t)){h.state.context=e;var r=(h.state.insertArgs=t).shortcode||"",n={type:"inline",alignTop:!0,closeOnBgClick:!1,mainClass:"su-generator-mfp",items:{src:"#su-generator"},callbacks:{}};n.callbacks.open=function(){r?l.filter('[data-shortcode="'.concat(r,'"]')).trigger("click"):window.setTimeout(function(){return i.focus()},200),"undefined"!=typeof tinyMCE&&null!=tinyMCE.activeEditor&&tinyMCE.activeEditor.hasOwnProperty("selection")&&(h.state.mceSelection=tinyMCE.activeEditor.selection.getContent({format:"text"}))},n.callbacks.close=function(){i.val(""),g.html("").hide(),o.removeClass("su-generator-narrow"),u.show(),c.show(),l.show(),h.state.mceSelection=""},p.magnificPopup.open(n)}},h.insertShortcode=function(){var e=h.parseSettings();if(h.addPreset("last_used",SUGL10n.last_used),p.magnificPopup.close(),a.text(e),"classic"===h.state.context)h.state.wpActiveEditor=window.wpActiveEditor,window.wpActiveEditor=h.state.insertArgs.editorID,window.wp.media.editor.insert(e),window.wpActiveEditor=h.state.wpActiveEditor;else if("block"===h.state.context){var t=h.state.insertArgs.props;if(t.attributes.hasOwnProperty("content"))t.setAttributes({content:t.attributes.content+e});else if("core/shortcode"===t.name){var r=t.attributes.hasOwnProperty("text")?t.attributes.text:"";t.setAttributes({text:r+e})}}},h.insertAtCaret=function(e,t){var r=e.selectionStart;e.selectionEnd,e.value=e.value.substring(0,r)+t+e.value.substring(r),e.focus(),e.selectionStart=r+t.length},{init:h.init,insert:h.insert}),jQuery(document).ready(window.SUG.App.init)},{}]},{},[1]);
|
2 |
//# sourceMappingURL=index.js.map
|
includes/js/generator/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sources":["includes/js/generator/node_modules/browser-pack/_prelude.js","includes/js/generator/includes/js/generator/src/index.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","$","$generator","$search","$filter","$filters","$choices","$choice","$settings","$prefix","$result","$selected","self","window","SUG","App","jQuery","children","find","state","mceSelection","target","wpActiveEditor","context","insertArgs","preview","timer","request","el","body","init","gp_hover_timer","click","filter","this","data","css","opacity","removeClass","regex","RegExp","each","match","preventDefault","on","val","html","hide","show","focus","magnificPopup","close","blur","keyup","$first","best","keyCode","trigger","id","shortcode","matches","name","desc","group","join","addClass","ajax","type","url","ajaxurl","action","beforeSend","success","$content","attr","index","$val","min","max","step","simpleSlider","snap","range","farbtastic","update","ids","source","$sources","images","$images","categories","$cats","tax","$taxes","terms","$terms","frame","$picker","$source","$addMedia","indexOf","parent","fadeOut","remove","wp","media","frames","su_media_frame_1","title","SUGL10n","isp_media_title","library","button","text","isp_media_insert","multiple","files","get","toJSON","append","open","sortable","revert","containment","tolerance","stop","$cont","parents","ajaxTermSelect","dataType","class","size","_typeof","abort","file","$button","stopPropagation","su_media_frame_2","upload_title","upload_insert","attachment","first","$field","toggleClass","hasClass","$icons","$value","$switch","value","su_generator_get_terms","noselect","$fields","$hoff","$voff","$blur","$color","cnt","wheel","split","replace","$width","$style","$cnt","_default","setSettings","insertShortcode","$preview","updatePreview","clearTimeout","setTimeout","$list","Date","getTime","prompt","presets_prompt_msg","presets_prompt_value","addPreset","$insert","$preset","removePreset","settings","getSettings","parseSettings","query","prefix","content","result","String","$this","is","toString","hasOwnProperty","forced","previous","cache","insert","args","preSelectedShortcode","mfpOptions","alignTop","closeOnBgClick","mainClass","items","src","callbacks","concat","tinyMCE","activeEditor","selection","getContent","format","last_used","editorID","editor","props","attributes","setAttributes","originalText","insertAtCaret","field","start","selectionStart","selectionEnd","substring","document","ready"],"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,GAAA,OAAAI,EAAAH,EAAAI,GAAA,GAAAL,IAAAA,IAAAa,EAAAA,EAAAC,QAAAd,EAAAC,EAAAC,EAAAC,GAAA,OAAAD,EAAAG,GAAAS,QAAA,IAAA,IAAAL,EAAA,mBAAAD,SAAAA,QAAAH,EAAA,EAAAA,EAAAF,EAAAa,OAAAX,IAAAD,EAAAD,EAAAE,IAAA,OAAAD,EAAA,CAAA,CAAAa,EAAA,CAAA,SAAAT,EAAAU,EAAAJ,qPCIkB,IAACK,EACbC,EACAC,EACAC,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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})()","/* global jQuery, wp, ajaxurl, SUGL10n */\n\nwindow.SUG = {}\n\nwindow.SUG.App = (($) => {\n var $generator = $('#su-generator')\n var $search = $('#su-generator-search')\n var $filter = $('#su-generator-filter')\n var $filters = $filter.children('a')\n var $choices = $('#su-generator-choices')\n var $choice = $choices.find('span')\n var $settings = $('#su-generator-settings')\n var $prefix = $('#su-compatibility-mode-prefix')\n var $result = $('#su-generator-result')\n var $selected = $('#su-generator-selected')\n\n var self = {}\n\n self.state = {\n mceSelection: '',\n target: '',\n wpActiveEditor: null,\n context: '',\n insertArgs: '',\n preview: {\n timer: null,\n request: null\n }\n }\n\n self.el = {\n body: $('body')\n }\n\n self.init = () => {\n $filters.click(\n function (e) {\n // Prepare data\n var filter = $(this).data('filter')\n // If filter All, show all choices\n if (filter === 'all') {\n $choice.css(\n {\n opacity: 1\n }\n ).removeClass('su-generator-choice-first')\n } else { // Else run search\n var regex = new RegExp(filter, 'gi')\n // Hide all choices\n $choice.css({ opacity: 0.2 })\n // Find searched choices and show\n $choice.each(\n function () {\n // Get shortcode name\n var group = $(this).data('group')\n // Show choice if matched\n if (group.match(regex) !== null) {\n $(this)\n .css({ opacity: 1 })\n .removeClass('su-generator-choice-first')\n }\n }\n )\n }\n e.preventDefault()\n }\n )\n // Go to home link\n $('#su-generator').on(\n 'click',\n '.su-generator-home',\n function (e) {\n // Clear search field\n $search.val('')\n // Hide settings\n $settings.html('').hide()\n // Remove narrow class\n $generator.removeClass('su-generator-narrow')\n // Show filters\n $filter.show()\n // Show choices panel\n $choices.show()\n $choice.show()\n // Clear selection\n self.state.mceSelection = ''\n // Focus search field\n $search.focus()\n e.preventDefault()\n }\n )\n // Generator close button\n $('#su-generator').on(\n 'click',\n '.su-generator-close',\n function (e) {\n // Close popup\n $.magnificPopup.close()\n // Prevent default action\n e.preventDefault()\n }\n )\n // Search field\n $search.on(\n {\n focus: function () {\n // Clear field\n $(this).val('')\n // Hide settings\n $settings.html('').hide()\n // Remove narrow class\n $generator.removeClass('su-generator-narrow')\n // Show choices panel\n $choices.show()\n $choice.css(\n {\n opacity: 1\n }\n ).removeClass('su-generator-choice-first')\n // Show filters\n $filter.show()\n },\n blur: function () {},\n keyup: function (e) {\n // Prepare vars\n var $first = $('.su-generator-choice-first:first')\n var val = $(this).val()\n var regex = new RegExp(val, 'gi')\n var best = 0\n // Hotkey action\n if (e.keyCode === 13 && $first.length > 0) {\n e.preventDefault()\n $(this).val('').blur()\n $first.trigger('click')\n }\n // Hide all choices\n $choice.css(\n {\n opacity: 0.2\n }\n ).removeClass('su-generator-choice-first')\n // Loop and highlight choices\n $choice.each(\n function () {\n // Get choice data\n var data = $(this).data()\n var id = data.shortcode\n var name = data.name\n var desc = data.desc\n var group = data.group\n var matches = ([id, name, desc, group].join(' ')).match(regex)\n // Highlight choice if matched\n if (matches !== null) {\n // Highlight current choice\n $(this).css(\n {\n opacity: 1\n }\n )\n // Check for exact match\n if (val === id) {\n // Remove primary class from all choices\n $choice.removeClass('su-generator-choice-first')\n // Add primary class to the current choice\n $(this).addClass('su-generator-choice-first')\n // Prevent selecting by matches number\n best = 999\n } else if (matches.length > best) { // Check matches length\n // Remove primary class from all choices\n $choice.removeClass('su-generator-choice-first')\n // Add primary class to the current choice\n $(this).addClass('su-generator-choice-first')\n // Save the score\n best = matches.length\n }\n }\n }\n )\n // Remove primary class if search field is empty\n if (val === '') {\n $choice.removeClass('su-generator-choice-first')\n }\n }\n }\n )\n // Click on shortcode choice\n $choice.on(\n 'click',\n function (e) {\n // Prepare data\n var shortcode = $(this).data('shortcode')\n // Load shortcode options\n $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'su_generator_settings',\n shortcode: shortcode\n },\n beforeSend: function () {\n // Hide preview box\n $('#su-generator-preview').hide()\n // Hide choices panel\n $choices.hide()\n // Show loading animation\n $settings.addClass('su-generator-loading').show()\n // Add narrow class\n $generator.addClass('su-generator-narrow')\n // Hide filters\n $filter.hide()\n },\n success: function (data) {\n // Hide loading animation\n $settings.removeClass('su-generator-loading')\n // Insert new HTML\n $settings.html(data)\n // Apply selected text to the content field\n var $content = $('#su-generator-content')\n if (typeof self.state.mceSelection !== 'undefined' && self.state.mceSelection !== '' && $content.attr('type') !== 'hidden') {\n $content.val(self.state.mceSelection)\n }\n // Init range pickers\n $('.su-generator-range-picker').each(\n function (index) {\n var $picker = $(this)\n var $val = $picker.find('input')\n var min = $val.attr('min')\n var max = $val.attr('max')\n var step = $val.attr('step')\n // Apply noUIslider\n $val.simpleSlider(\n {\n snap: true,\n step: step,\n range: [min, max]\n }\n )\n $val.show()\n $val.on(\n 'keyup blur',\n function (e) {\n $val.simpleSlider('setValue', $val.val())\n }\n )\n }\n )\n // Init color pickers\n $('.su-generator-select-color').each(\n function (index) {\n $(this).find('.su-generator-select-color-wheel').filter(':first').farbtastic('.su-generator-select-color-value:eq(' + index + ')')\n $(this).find('.su-generator-select-color-value').focus(\n function () {\n $('.su-generator-select-color-wheel:eq(' + index + ')').show()\n }\n )\n $(this).find('.su-generator-select-color-value').blur(\n function () {\n $('.su-generator-select-color-wheel:eq(' + index + ')').hide()\n }\n )\n }\n )\n // Init image sourse pickers\n $('.su-generator-isp').each(\n function () {\n var $picker = $(this)\n var $sources = $picker.find('.su-generator-isp-sources')\n var $source = $picker.find('.su-generator-isp-source')\n var $addMedia = $picker.find('.su-generator-isp-add-media')\n var $images = $picker.find('.su-generator-isp-images')\n var $cats = $picker.find('.su-generator-isp-categories')\n var $taxes = $picker.find('.su-generator-isp-taxonomies')\n var $terms = $('.su-generator-isp-terms')\n var $val = $picker.find('.su-generator-attr')\n var frame\n // Update hidden value\n var update = function () {\n var val = 'none'\n var ids = ''\n var source = $sources.val()\n // Media library\n if (source === 'media') {\n var images = []\n $images.find('span').each(\n function (i) {\n images[i] = $(this).data('id')\n }\n )\n if (images.length > 0) {\n ids = images.join(',')\n }\n }\n // Category\n else if (source === 'category') {\n var categories = $cats.val() || []\n if (categories.length > 0) {\n ids = categories.join(',')\n }\n }\n // Taxonomy\n else if (source === 'taxonomy') {\n var tax = $taxes.val() || ''\n var terms = $terms.val() || []\n if (tax !== '0' && terms.length > 0) {\n val = 'taxonomy: ' + tax + '/' + terms.join(',')\n }\n }\n // Deselect\n else if (source === '0') {\n val = 'none'\n }\n // Other options\n else {\n val = source\n }\n if (ids !== '') {\n val = source + ': ' + ids\n }\n $val.val(val).trigger('change')\n }\n // Switch source\n $sources.on(\n 'change',\n function (e) {\n var source = $(this).val()\n e.preventDefault()\n $source.removeClass('su-generator-isp-source-open')\n if (source.indexOf(':') === -1) {\n $picker.find('.su-generator-isp-source-' + source).addClass('su-generator-isp-source-open')\n }\n update()\n }\n )\n // Remove image\n $images.on(\n 'click',\n 'span i',\n function () {\n $(this).parent('span').css('border-color', '#f03').fadeOut(\n 300,\n function () {\n $(this).remove()\n update()\n }\n )\n }\n )\n // Add image\n $addMedia.click(\n function (e) {\n e.preventDefault()\n if (typeof (frame) !== 'undefined') {\n frame.close()\n }\n frame = wp.media.frames.su_media_frame_1 = wp.media(\n {\n title: SUGL10n.isp_media_title,\n library: {\n type: 'image'\n },\n button: {\n text: SUGL10n.isp_media_insert\n },\n multiple: true\n }\n )\n frame.on('open', function () {\n $('.mfp-wrap').addClass('hidden')\n })\n frame.on('close', function () {\n $('.mfp-wrap').removeClass('hidden')\n })\n frame.on(\n 'select',\n function () {\n var files = frame.state().get('selection').toJSON()\n $images.find('em').remove()\n $.each(\n files,\n function (i) {\n $images.append('<span data-id=\"' + this.id + '\" title=\"' + this.title + '\"><img src=\"' + this.url + '\" alt=\"\" /><i class=\"sui sui-times\"></i></span>')\n }\n )\n update()\n }\n ).open()\n }\n )\n // Sort images\n $images.sortable(\n {\n revert: 200,\n containment: $picker,\n tolerance: 'pointer',\n stop: function () {\n update()\n }\n }\n )\n // Select categories and terms\n $cats.on('change', update)\n $terms.on('change', update)\n // Select taxonomy\n $taxes.on(\n 'change',\n function () {\n var $cont = $(this).parents('.su-generator-isp-source')\n var tax = $(this).val()\n // Remove terms\n $terms.hide().find('option').remove()\n update()\n // Taxonomy is not selected\n if (tax === '0') {\n\n } else { // Taxonomy selected\n var ajaxTermSelect = $.ajax(\n {\n url: ajaxurl,\n type: 'post',\n dataType: 'html',\n data: {\n action: 'su_generator_get_terms',\n tax: tax,\n class: 'su-generator-isp-terms',\n multiple: true,\n size: 10\n },\n beforeSend: function () {\n if (typeof ajaxTermSelect === 'object') {\n ajaxTermSelect.abort()\n }\n $terms.html('').attr('disabled', true).hide()\n $cont.addClass('su-generator-loading')\n },\n success: function (data) {\n $terms.html(data).attr('disabled', false).show()\n $cont.removeClass('su-generator-loading')\n }\n }\n )\n }\n }\n )\n }\n )\n // Init media buttons\n $('.su-generator-upload-button').each(\n function () {\n var $button = $(this)\n var $val = $(this).parents('.su-generator-attr-container').find('input:text')\n var file\n $button.on(\n 'click',\n function (e) {\n e.preventDefault()\n e.stopPropagation()\n // If the frame already exists, reopen it\n if (typeof (file) !== 'undefined') {\n file.close()\n }\n // Create WP media frame.\n file = wp.media.frames.su_media_frame_2 = wp.media(\n {\n // Title of media manager frame\n title: SUGL10n.upload_title,\n button: {\n // Button text\n text: SUGL10n.upload_insert\n },\n // Do not allow multiple files, if you want multiple, set true\n multiple: false\n }\n )\n // callback for selected image\n file.on(\n 'select',\n function () {\n var attachment = file.state().get('selection').first().toJSON()\n $val.val(attachment.url).trigger('change')\n }\n )\n file.on('open', function () {\n $('.mfp-wrap').addClass('hidden')\n })\n file.on('close', function () {\n $('.mfp-wrap').removeClass('hidden')\n })\n // Open modal\n file.open()\n }\n )\n }\n )\n // Init icon pickers\n $('.su-generator-icon-picker-button').each(\n function () {\n var $button = $(this)\n var $field = $(this).parents('.su-generator-attr-container')\n var $val = $field.find('.su-generator-attr')\n var $picker = $field.find('.su-generator-icon-picker')\n var $filter = $picker.find('input:text')\n $button.click(\n function (e) {\n $picker.toggleClass('su-generator-icon-picker-visible')\n $filter.val('').trigger('keyup')\n if ($picker.hasClass('su-generator-icon-picker-loaded')) {\n return\n }\n // Load icons\n $.ajax(\n {\n type: 'post',\n url: ajaxurl,\n data: {\n action: 'su_generator_get_icons'\n },\n dataType: 'html',\n beforeSend: function () {\n // Show loading animation\n $picker.addClass('su-generator-loading')\n // Add loaded class\n $picker.addClass('su-generator-icon-picker-loaded')\n },\n success: function (data) {\n $picker.append(data)\n var $icons = $picker.children('i')\n $icons.click(\n function (e) {\n $val.val('icon: ' + $(this).attr('title'))\n $picker.removeClass('su-generator-icon-picker-visible')\n $val.trigger('change')\n e.preventDefault()\n }\n )\n $filter.on(\n {\n keyup: function () {\n var val = $(this).val()\n var regex = new RegExp(val, 'gi')\n // Hide all choices\n $icons.hide()\n // Find searched choices and show\n $icons.each(\n function () {\n // Get shortcode name\n var name = $(this).attr('title')\n // Show choice if matched\n if (name.match(regex) !== null) {\n $(this).show()\n }\n }\n )\n },\n focus: function () {\n $(this).val('')\n $icons.show()\n }\n }\n )\n $picker.removeClass('su-generator-loading')\n }\n }\n )\n e.preventDefault()\n }\n )\n }\n )\n // Init switches\n $('.su-generator-switch').click(\n function (e) {\n // Prepare data\n var $switch = $(this)\n var $value = $switch.parent().children('input')\n var isOn = $value.val() === 'yes'\n // Disable\n if (isOn) {\n // Change value\n $value.val('no').trigger('change')\n } else { // Enable\n // Change value\n $value.val('yes').trigger('change')\n }\n e.preventDefault()\n }\n )\n $('.su-generator-switch-value').on(\n 'change',\n function () {\n // Prepare data\n var $value = $(this)\n var $switch = $value.parent().children('.su-generator-switch')\n var value = $value.val()\n // Disable\n if (value === 'yes') {\n $switch.removeClass('su-generator-switch-no').addClass('su-generator-switch-yes')\n } else if (value === 'no') { // Enable\n $switch.removeClass('su-generator-switch-yes').addClass('su-generator-switch-no')\n }\n }\n )\n // Init tax_term selects\n $('select#su-generator-attr-taxonomy').on(\n 'change',\n function () {\n var $taxonomy = $(this)\n var tax = $taxonomy.val()\n var $terms = $('select#su-generator-attr-tax_term')\n // Load new options\n window.su_generator_get_terms = $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'su_generator_get_terms',\n tax: tax,\n noselect: true\n },\n dataType: 'html',\n beforeSend: function () {\n // Check previous requests\n if (typeof window.su_generator_get_terms === 'object') {\n window.su_generator_get_terms.abort()\n }\n // Show loading animation\n $terms.parent().addClass('su-generator-loading')\n },\n success: function (data) {\n // Remove previous options\n $terms.find('option').remove()\n // Append new options\n $terms.append(data)\n // Hide loading animation\n $terms.parent().removeClass('su-generator-loading')\n }\n }\n )\n }\n )\n // Init shadow pickers\n $('.su-generator-shadow-picker').each(\n function (index) {\n var $picker = $(this)\n var $fields = $picker.find('.su-generator-shadow-picker-field input')\n var $hoff = $picker.find('.su-generator-sp-hoff')\n var $voff = $picker.find('.su-generator-sp-voff')\n var $blur = $picker.find('.su-generator-sp-blur')\n var $color = {\n cnt: $picker.find('.su-generator-shadow-picker-color'),\n value: $picker.find('.su-generator-shadow-picker-color-value'),\n wheel: $picker.find('.su-generator-shadow-picker-color-wheel')\n }\n var $val = $picker.find('.su-generator-attr')\n // Init color picker\n $color.wheel.farbtastic($color.value)\n $color.value.focus(\n function () {\n $color.wheel.show()\n }\n )\n $color.value.blur(\n function () {\n $color.wheel.hide()\n }\n )\n // Handle text fields\n $fields.on(\n 'change blur keyup',\n function () {\n $val.val($hoff.val() + 'px ' + $voff.val() + 'px ' + $blur.val() + 'px ' + $color.value.val()).trigger('change')\n }\n )\n $val.on(\n 'keyup',\n function () {\n var value = $(this).val().split(' ')\n // Value is correct\n if (value.length === 4) {\n $hoff.val(value[0].replace('px', ''))\n $voff.val(value[1].replace('px', ''))\n $blur.val(value[2].replace('px', ''))\n $color.value.val(value[3])\n $fields.trigger('keyup')\n }\n }\n )\n }\n )\n // Init border pickers\n $('.su-generator-border-picker').each(\n function (index) {\n var $picker = $(this)\n var $fields = $picker.find('.su-generator-border-picker-field input, .su-generator-border-picker-field select')\n var $width = $picker.find('.su-generator-bp-width')\n var $style = $picker.find('.su-generator-bp-style')\n var $color = {\n cnt: $picker.find('.su-generator-border-picker-color'),\n value: $picker.find('.su-generator-border-picker-color-value'),\n wheel: $picker.find('.su-generator-border-picker-color-wheel')\n }\n var $val = $picker.find('.su-generator-attr')\n // Init color picker\n $color.wheel.farbtastic($color.value)\n $color.value.focus(\n function () {\n $color.wheel.show()\n }\n )\n $color.value.blur(\n function () {\n $color.wheel.hide()\n }\n )\n // Handle text fields\n $fields.on(\n 'change blur keyup',\n function () {\n $val.val($width.val() + 'px ' + $style.val() + ' ' + $color.value.val()).trigger('change')\n }\n )\n $val.on(\n 'keyup',\n function () {\n var value = $(this).val().split(' ')\n // Value is correct\n if (value.length === 3) {\n $width.val(value[0].replace('px', ''))\n $style.val(value[1])\n $color.value.val(value[2])\n $fields.trigger('keyup')\n }\n }\n )\n }\n )\n // Remove skip class when setting is changed\n $settings.find('.su-generator-attr').on(\n 'change keyup blur',\n function () {\n var $cnt = $(this).parents('.su-generator-attr-container')\n var _default = $cnt.data('default')\n var val = $(this).val()\n // Value is changed\n if (val != _default) {\n $cnt.removeClass('su-generator-skip')\n } else {\n $cnt.addClass('su-generator-skip')\n }\n }\n )\n // Init value setters\n $('.su-generator-set-value').click(\n function (e) {\n $(this).parents('.su-generator-attr-container').find('input').val($(this).text()).trigger('change')\n }\n )\n // Save selected value\n $selected.val(shortcode)\n // Load last used preset\n $.ajax(\n {\n type: 'GET',\n url: ajaxurl,\n data: {\n action: 'su_generator_get_preset',\n id: 'last_used',\n shortcode: shortcode\n },\n beforeSend: function () {\n // Show loading animation\n // $settings.addClass('su-generator-loading');\n },\n success: function (data) {\n // Remove loading animation\n // $settings.removeClass('su-generator-loading');\n // Set new settings\n self.setSettings(data)\n // Apply selected text to the content field\n var $content = $('#su-generator-content')\n if (typeof self.state.mceSelection !== 'undefined' && self.state.mceSelection !== '' && $content.attr('type') !== 'hidden') {\n $content.val(self.state.mceSelection)\n }\n },\n dataType: 'json'\n }\n )\n },\n dataType: 'html'\n }\n )\n }\n )\n // Insert shortcode\n $('#su-generator').on('click', '.su-generator-insert', self.insertShortcode)\n // Preview shortcode\n $('#su-generator').on(\n 'click',\n '.su-generator-toggle-preview',\n function (e) {\n // Prepare data\n var $preview = $('#su-generator-preview')\n var $button = $(this)\n // Hide button\n $button.hide()\n // Show preview box\n $preview.addClass('su-generator-loading').show()\n // Bind updating on settings changes\n $settings.find('input, textarea, select').on(\n 'change keyup blur',\n function () {\n self.updatePreview()\n }\n )\n // Update preview box\n self.updatePreview(true)\n // Prevent default action\n e.preventDefault()\n }\n )\n var gp_hover_timer\n // Presets manager - mouseenter\n $('#su-generator').on(\n 'mouseenter click',\n '.su-generator-presets',\n function () {\n clearTimeout(gp_hover_timer)\n $('.su-gp-popup').show()\n }\n )\n // Presets manager - mouseleave\n $('#su-generator').on(\n 'mouseleave',\n '.su-generator-presets',\n function () {\n gp_hover_timer = window.setTimeout(\n function () {\n $('.su-gp-popup').fadeOut(200)\n },\n 600\n )\n }\n )\n // Presets manager - add new preset\n $('#su-generator').on(\n 'click',\n '.su-gp-new',\n function (e) {\n // Prepare data\n var $container = $(this).parents('.su-generator-presets')\n var $list = $('.su-gp-list')\n var id = new Date().getTime()\n // Ask for preset name\n var name = prompt(SUGL10n.presets_prompt_msg, SUGL10n.presets_prompt_value)\n // Name is entered\n if (name !== '' && name !== null) {\n // Hide default text\n $list.find('b').hide()\n // Add new option\n $list.append('<span data-id=\"' + id + '\"><em>' + name + '</em><i class=\"sui sui-times\"></i></span>')\n // Perform AJAX request\n self.addPreset(id, name)\n }\n }\n )\n // Presets manager - load preset\n $('#su-generator').on(\n 'click',\n '.su-gp-list span',\n function (e) {\n // Prepare data\n var shortcode = $('.su-generator-presets').data('shortcode')\n var id = $(this).data('id')\n var $insert = $('.su-generator-insert')\n // Hide popup\n $('.su-gp-popup').hide()\n // Disable hover timer\n clearTimeout(gp_hover_timer)\n // Get the preset\n $.ajax(\n {\n type: 'GET',\n url: ajaxurl,\n data: {\n action: 'su_generator_get_preset',\n id: id,\n shortcode: shortcode\n },\n beforeSend: function () {\n // Disable insert button\n $insert.addClass('button-primary-disabled').attr('disabled', true)\n },\n success: function (data) {\n // Enable insert button\n $insert.removeClass('button-primary-disabled').attr('disabled', false)\n // Set new settings\n self.setSettings(data)\n },\n dataType: 'json'\n }\n )\n // Prevent default action\n e.preventDefault()\n e.stopPropagation()\n }\n )\n // Presets manager - remove preset\n $('#su-generator').on(\n 'click',\n '.su-gp-list i',\n function (e) {\n // Prepare data\n var $list = $(this).parents('.su-gp-list')\n var $preset = $(this).parent('span')\n var id = $preset.data('id')\n // Remove DOM element\n $preset.remove()\n // Show default text if last preset was removed\n if ($list.find('span').length < 1) {\n $list.find('b').show()\n }\n // Perform ajax request\n self.removePreset(id)\n // Prevent <span> action\n e.stopPropagation()\n // Prevent default action\n e.preventDefault()\n }\n )\n }\n\n /**\n\t * Create new preset with specified name from current settings\n\t */\n self.addPreset = function (id, name) {\n // Prepare shortcode name and current settings\n var shortcode = $('.su-generator-presets').data('shortcode')\n var settings = self.getSettings()\n // Perform AJAX request\n $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'su_generator_add_preset',\n id: id,\n name: name,\n shortcode: shortcode,\n settings: settings\n }\n }\n )\n }\n /**\n\t * Remove preset by ID\n\t */\n self.removePreset = function (id) {\n // Get current shortcode name\n var shortcode = $('.su-generator-presets').data('shortcode')\n // Perform AJAX request\n $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'su_generator_remove_preset',\n id: id,\n shortcode: shortcode\n }\n }\n )\n }\n\n self.parseSettings = function () {\n // Prepare data\n var query = $selected.val()\n var prefix = $prefix.val()\n var $settings = $('#su-generator-settings .su-generator-attr-container:not(.su-generator-skip) .su-generator-attr')\n var $content = $('textarea#su-generator-content')\n var content = $content.length ? $content.val() : 'false'\n var result = new String('')\n // Open shortcode\n result += '[' + prefix + query\n // Add shortcode attributes\n $settings.each(\n function () {\n // Prepare field and value\n var $this = $(this)\n var value = ''\n // Selects\n if ($this.is('select')) {\n value = $this.find('option:selected').val()\n }\n // Other fields\n else {\n value = $this.val()\n }\n // Check that value is not empty\n if (value == null) {\n value = ''\n } else if (typeof value === 'array') {\n value = value.join(',')\n }\n // Add attribute\n if (value !== '') {\n result += ' ' + $(this).attr('name') + '=\"' + $(this).val().toString().replace(/\"/gi, \"'\") + '\"'\n }\n }\n )\n // End of opening tag\n result += ']'\n // Wrap shortcode if content presented\n if (content != 'false') {\n result += content + '[/' + prefix + query + ']'\n }\n // Return result\n return result\n }\n\n self.getSettings = function () {\n // Prepare data\n var query = $selected.val()\n var $settings = $('#su-generator-settings .su-generator-attr')\n var $content = $('textarea#su-generator-content')\n var content = $content.length ? $content.val() : 'false'\n var data = {}\n // Add shortcode attributes\n $settings.each(\n function (i) {\n // Prepare field and value\n var $this = $(this)\n var value = ''\n var name = $this.attr('name')\n // Selects\n if ($this.is('select')) {\n value = $this.find('option:selected').val()\n }\n // Other fields\n else {\n value = $this.val()\n }\n // Check that value is not empty\n if (value == null) {\n value = ''\n }\n // Save value\n data[name] = value\n }\n )\n // Add content\n data.content = content.toString()\n // Return data\n return data\n }\n\n self.setSettings = function (data) {\n // Prepare data\n var $settings = $('#su-generator-settings .su-generator-attr')\n var $content = $('#su-generator-content')\n // Loop through settings\n $settings.each(\n function () {\n var $this = $(this)\n var name = $this.attr('name')\n // Data contains value for this field\n if (data.hasOwnProperty(name)) {\n // Set new value\n $this.val(data[name])\n $this.trigger('keyup').trigger('change').trigger('blur')\n }\n }\n )\n // Set content\n if (data.hasOwnProperty('content')) {\n $content.val(data.content).trigger('keyup').trigger('change').trigger('blur')\n }\n // Update preview\n self.updatePreview()\n }\n\n self.updatePreview = function (forced) {\n // Prepare data\n var $preview = $('#su-generator-preview')\n var shortcode = self.parseSettings()\n var previous = $result.text()\n // Check forced mode\n forced = forced || false\n // Break if preview box is hidden (preview isn't enabled)\n if (!$preview.is(':visible')) {\n return\n }\n // Check shortcode is changed is this is not a forced mode\n if (shortcode === previous && !forced) {\n return\n }\n // Run timer to filter often calls\n window.clearTimeout(self.state.preview.timer)\n self.state.preview.timer = window.setTimeout(\n function () {\n self.state.preview.request = $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n cache: false,\n data: {\n action: 'su_generator_preview',\n shortcode: shortcode\n },\n beforeSend: function () {\n // Abort previous requests\n if (self.state.preview.request) {\n self.state.preview.request.abort()\n }\n // Show loading animation\n $preview.addClass('su-generator-loading').html('')\n },\n success: function (data) {\n // Hide loading animation and set new HTML\n $preview.html(data).removeClass('su-generator-loading')\n },\n dataType: 'html'\n }\n )\n },\n 300\n )\n // Save shortcode to div\n $result.text(shortcode)\n }\n\n self.insert = function (context, args) {\n if (typeof context !== 'string' || typeof args !== 'object') {\n return\n }\n\n self.state.context = context\n self.state.insertArgs = args\n\n var preSelectedShortcode = args.shortcode || ''\n\n var mfpOptions = {\n type: 'inline',\n alignTop: true,\n closeOnBgClick: false,\n mainClass: 'su-generator-mfp',\n items: {\n src: '#su-generator'\n },\n callbacks: {}\n }\n\n mfpOptions.callbacks.open = () => {\n if (preSelectedShortcode) {\n $choice.filter(`[data-shortcode=\"${preSelectedShortcode}\"]`).trigger('click')\n } else {\n window.setTimeout(() => $search.focus(), 200)\n }\n\n // self.el.body.addClass( 'su-mfp-shown' );\n\n if (\n typeof tinyMCE !== 'undefined' &&\n\t\t\t\ttinyMCE.activeEditor != null &&\n\t\t\t\ttinyMCE.activeEditor.hasOwnProperty('selection')\n ) {\n self.state.mceSelection = tinyMCE.activeEditor.selection.getContent({ format: 'text' })\n }\n }\n\n mfpOptions.callbacks.close = () => {\n $search.val('')\n $settings.html('').hide()\n $generator.removeClass('su-generator-narrow')\n $filter.show()\n $choices.show()\n $choice.show()\n\n self.state.mceSelection = ''\n\n // self.el.body.removeClass( 'su-mfp-shown' );\n }\n\n $.magnificPopup.open(mfpOptions)\n }\n\n self.insertShortcode = function () {\n var shortcode = self.parseSettings()\n\n self.addPreset('last_used', SUGL10n.last_used)\n\n $.magnificPopup.close()\n\n $result.text(shortcode)\n\n if (self.state.context === 'classic') {\n self.state.wpActiveEditor = window.wpActiveEditor\n window.wpActiveEditor = self.state.insertArgs.editorID\n window.wp.media.editor.insert(shortcode)\n window.wpActiveEditor = self.state.wpActiveEditor\n } else if (self.state.context === 'block') {\n var props = self.state.insertArgs.props\n\n if (props.attributes.hasOwnProperty('content')) {\n props.setAttributes({ content: props.attributes.content + shortcode })\n } else if (props.name === 'core/shortcode') {\n var originalText = props.attributes.hasOwnProperty('text')\n ? props.attributes.text\n : ''\n\n props.setAttributes({ text: originalText + shortcode })\n\n // var textarea = document.querySelector( `#block-${props.clientId} textarea` );\n // self.insertAtCaret( textarea, shortcode );\n }\n }\n }\n\n self.insertAtCaret = (field, text) => {\n var start = field.selectionStart\n var end = field.selectionEnd\n\n field.value = field.value.substring(0, start) + text + field.value.substring(start)\n\n field.focus()\n\n field.selectionStart = start + text.length\n }\n\n return {\n init: self.init,\n insert: self.insert\n }\n})(jQuery)\n\njQuery(document).ready(window.SUG.App.init)\n"]}
|
1 |
+
{"version":3,"sources":["includes/js/generator/node_modules/browser-pack/_prelude.js","includes/js/generator/includes/js/generator/src/index.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","$","$generator","$search","$filter","$filters","$choices","$choice","$settings","$prefix","$result","$selected","self","window","SUG","App","jQuery","children","find","state","mceSelection","target","wpActiveEditor","context","insertArgs","preview","timer","request","el","body","init","gp_hover_timer","click","filter","this","data","css","opacity","removeClass","regex","RegExp","each","match","preventDefault","on","val","html","hide","show","focus","magnificPopup","close","blur","keyup","$first","best","keyCode","trigger","id","shortcode","matches","name","desc","group","join","addClass","ajax","type","url","ajaxurl","action","beforeSend","success","$content","attr","index","$val","min","max","step","simpleSlider","snap","range","farbtastic","update","ids","source","$sources","images","$images","categories","$cats","tax","$taxes","terms","$terms","frame","$picker","$source","$addMedia","indexOf","parent","fadeOut","remove","wp","media","frames","su_media_frame_1","title","SUGL10n","isp_media_title","library","button","text","isp_media_insert","multiple","files","get","toJSON","append","open","sortable","revert","containment","tolerance","stop","$cont","parents","ajaxTermSelect","dataType","class","size","_typeof","abort","file","$button","stopPropagation","su_media_frame_2","upload_title","upload_insert","attachment","first","$field","toggleClass","hasClass","$icons","$value","$switch","value","su_generator_get_terms","noselect","$fields","$hoff","$voff","$blur","$color","cnt","wheel","split","replace","$width","$style","$cnt","_default","setSettings","insertShortcode","$preview","updatePreview","clearTimeout","setTimeout","$list","Date","getTime","prompt","presets_prompt_msg","presets_prompt_value","addPreset","$insert","$preset","removePreset","settings","getSettings","parseSettings","settingsSelector","query","prefix","content","result","String","$this","is","toString","hasOwnProperty","forced","previous","cache","insert","args","preSelectedShortcode","mfpOptions","alignTop","closeOnBgClick","mainClass","items","src","callbacks","concat","tinyMCE","activeEditor","selection","getContent","format","last_used","editorID","editor","props","attributes","setAttributes","originalText","insertAtCaret","field","start","selectionStart","selectionEnd","substring","document","ready"],"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,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,KAAMyG,EAAe/J,OAQjD/C,EAAK+M,cAAgB,SAACC,EAAO3G,GAC3B,IAAI4G,EAAQD,EAAME,eACRF,EAAMG,aAEhBH,EAAMxE,MAAQwE,EAAMxE,MAAM4E,UAAU,EAAGH,GAAS5G,EAAO2G,EAAMxE,MAAM4E,UAAUH,GAE7ED,EAAM3K,QAEN2K,EAAME,eAAiBD,EAAQ5G,EAAKnH,QAG/B,CACLgC,KAAMlB,EAAKkB,KACXsK,OAAQxL,EAAKwL,SAIjBpL,OAAOiN,UAAUC,MAAMrN,OAAOC,IAAIC,IAAIe","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})()","/* global jQuery, wp, ajaxurl, SUGL10n */\n\nwindow.SUG = {}\n\nwindow.SUG.App = (($) => {\n var $generator = $('#su-generator')\n var $search = $('#su-generator-search')\n var $filter = $('#su-generator-filter')\n var $filters = $filter.children('a')\n var $choices = $('#su-generator-choices')\n var $choice = $choices.find('span')\n var $settings = $('#su-generator-settings')\n var $prefix = $('#su-compatibility-mode-prefix')\n var $result = $('#su-generator-result')\n var $selected = $('#su-generator-selected')\n\n var self = {}\n\n self.state = {\n mceSelection: '',\n target: '',\n wpActiveEditor: null,\n context: '',\n insertArgs: '',\n preview: {\n timer: null,\n request: null\n }\n }\n\n self.el = {\n body: $('body')\n }\n\n self.init = () => {\n $filters.click(\n function (e) {\n // Prepare data\n var filter = $(this).data('filter')\n // If filter All, show all choices\n if (filter === 'all') {\n $choice.css(\n {\n opacity: 1\n }\n ).removeClass('su-generator-choice-first')\n } else { // Else run search\n var regex = new RegExp(filter, 'gi')\n // Hide all choices\n $choice.css({ opacity: 0.2 })\n // Find searched choices and show\n $choice.each(\n function () {\n // Get shortcode name\n var group = $(this).data('group')\n // Show choice if matched\n if (group.match(regex) !== null) {\n $(this)\n .css({ opacity: 1 })\n .removeClass('su-generator-choice-first')\n }\n }\n )\n }\n e.preventDefault()\n }\n )\n // Go to home link\n $('#su-generator').on(\n 'click',\n '.su-generator-home',\n function (e) {\n // Clear search field\n $search.val('')\n // Hide settings\n $settings.html('').hide()\n // Remove narrow class\n $generator.removeClass('su-generator-narrow')\n // Show filters\n $filter.show()\n // Show choices panel\n $choices.show()\n $choice.show()\n // Clear selection\n self.state.mceSelection = ''\n // Focus search field\n $search.focus()\n e.preventDefault()\n }\n )\n // Generator close button\n $('#su-generator').on(\n 'click',\n '.su-generator-close',\n function (e) {\n // Close popup\n $.magnificPopup.close()\n // Prevent default action\n e.preventDefault()\n }\n )\n // Search field\n $search.on(\n {\n focus: function () {\n // Clear field\n $(this).val('')\n // Hide settings\n $settings.html('').hide()\n // Remove narrow class\n $generator.removeClass('su-generator-narrow')\n // Show choices panel\n $choices.show()\n $choice.css(\n {\n opacity: 1\n }\n ).removeClass('su-generator-choice-first')\n // Show filters\n $filter.show()\n },\n blur: function () {},\n keyup: function (e) {\n // Prepare vars\n var $first = $('.su-generator-choice-first:first')\n var val = $(this).val()\n var regex = new RegExp(val, 'gi')\n var best = 0\n // Hotkey action\n if (e.keyCode === 13 && $first.length > 0) {\n e.preventDefault()\n $(this).val('').blur()\n $first.trigger('click')\n }\n // Hide all choices\n $choice.css(\n {\n opacity: 0.2\n }\n ).removeClass('su-generator-choice-first')\n // Loop and highlight choices\n $choice.each(\n function () {\n // Get choice data\n var data = $(this).data()\n var id = data.shortcode\n var name = data.name\n var desc = data.desc\n var group = data.group\n var matches = ([id, name, desc, group].join(' ')).match(regex)\n // Highlight choice if matched\n if (matches !== null) {\n // Highlight current choice\n $(this).css(\n {\n opacity: 1\n }\n )\n // Check for exact match\n if (val === id) {\n // Remove primary class from all choices\n $choice.removeClass('su-generator-choice-first')\n // Add primary class to the current choice\n $(this).addClass('su-generator-choice-first')\n // Prevent selecting by matches number\n best = 999\n } else if (matches.length > best) { // Check matches length\n // Remove primary class from all choices\n $choice.removeClass('su-generator-choice-first')\n // Add primary class to the current choice\n $(this).addClass('su-generator-choice-first')\n // Save the score\n best = matches.length\n }\n }\n }\n )\n // Remove primary class if search field is empty\n if (val === '') {\n $choice.removeClass('su-generator-choice-first')\n }\n }\n }\n )\n // Click on shortcode choice\n $choice.on(\n 'click',\n function (e) {\n // Prepare data\n var shortcode = $(this).data('shortcode')\n // Load shortcode options\n $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'su_generator_settings',\n shortcode: shortcode\n },\n beforeSend: function () {\n // Hide preview box\n $('#su-generator-preview').hide()\n // Hide choices panel\n $choices.hide()\n // Show loading animation\n $settings.addClass('su-generator-loading').show()\n // Add narrow class\n $generator.addClass('su-generator-narrow')\n // Hide filters\n $filter.hide()\n },\n success: function (data) {\n // Hide loading animation\n $settings.removeClass('su-generator-loading')\n // Insert new HTML\n $settings.html(data)\n // Apply selected text to the content field\n var $content = $('#su-generator-content')\n if (typeof self.state.mceSelection !== 'undefined' && self.state.mceSelection !== '' && $content.attr('type') !== 'hidden') {\n $content.val(self.state.mceSelection)\n }\n // Init range pickers\n $('.su-generator-range-picker').each(\n function (index) {\n var $picker = $(this)\n var $val = $picker.find('input')\n var min = $val.attr('min')\n var max = $val.attr('max')\n var step = $val.attr('step')\n // Apply noUIslider\n $val.simpleSlider(\n {\n snap: true,\n step: step,\n range: [min, max]\n }\n )\n $val.show()\n $val.on(\n 'keyup blur',\n function (e) {\n $val.simpleSlider('setValue', $val.val())\n }\n )\n }\n )\n // Init color pickers\n $('.su-generator-select-color').each(\n function (index) {\n $(this).find('.su-generator-select-color-wheel').filter(':first').farbtastic('.su-generator-select-color-value:eq(' + index + ')')\n $(this).find('.su-generator-select-color-value').focus(\n function () {\n $('.su-generator-select-color-wheel:eq(' + index + ')').show()\n }\n )\n $(this).find('.su-generator-select-color-value').blur(\n function () {\n $('.su-generator-select-color-wheel:eq(' + index + ')').hide()\n }\n )\n }\n )\n // Init image sourse pickers\n $('.su-generator-isp').each(\n function () {\n var $picker = $(this)\n var $sources = $picker.find('.su-generator-isp-sources')\n var $source = $picker.find('.su-generator-isp-source')\n var $addMedia = $picker.find('.su-generator-isp-add-media')\n var $images = $picker.find('.su-generator-isp-images')\n var $cats = $picker.find('.su-generator-isp-categories')\n var $taxes = $picker.find('.su-generator-isp-taxonomies')\n var $terms = $('.su-generator-isp-terms')\n var $val = $picker.find('.su-generator-attr')\n var frame\n // Update hidden value\n var update = function () {\n var val = 'none'\n var ids = ''\n var source = $sources.val()\n // Media library\n if (source === 'media') {\n var images = []\n $images.find('span').each(\n function (i) {\n images[i] = $(this).data('id')\n }\n )\n if (images.length > 0) {\n ids = images.join(',')\n }\n }\n // Category\n else if (source === 'category') {\n var categories = $cats.val() || []\n if (categories.length > 0) {\n ids = categories.join(',')\n }\n }\n // Taxonomy\n else if (source === 'taxonomy') {\n var tax = $taxes.val() || ''\n var terms = $terms.val() || []\n if (tax !== '0' && terms.length > 0) {\n val = 'taxonomy: ' + tax + '/' + terms.join(',')\n }\n }\n // Deselect\n else if (source === '0') {\n val = 'none'\n }\n // Other options\n else {\n val = source\n }\n if (ids !== '') {\n val = source + ': ' + ids\n }\n $val.val(val).trigger('change')\n }\n // Switch source\n $sources.on(\n 'change',\n function (e) {\n var source = $(this).val()\n e.preventDefault()\n $source.removeClass('su-generator-isp-source-open')\n if (source.indexOf(':') === -1) {\n $picker.find('.su-generator-isp-source-' + source).addClass('su-generator-isp-source-open')\n }\n update()\n }\n )\n // Remove image\n $images.on(\n 'click',\n 'span i',\n function () {\n $(this).parent('span').css('border-color', '#f03').fadeOut(\n 300,\n function () {\n $(this).remove()\n update()\n }\n )\n }\n )\n // Add image\n $addMedia.click(\n function (e) {\n e.preventDefault()\n if (typeof (frame) !== 'undefined') {\n frame.close()\n }\n frame = wp.media.frames.su_media_frame_1 = wp.media(\n {\n title: SUGL10n.isp_media_title,\n library: {\n type: 'image'\n },\n button: {\n text: SUGL10n.isp_media_insert\n },\n multiple: true\n }\n )\n frame.on('open', function () {\n $('.mfp-wrap').addClass('hidden')\n })\n frame.on('close', function () {\n $('.mfp-wrap').removeClass('hidden')\n })\n frame.on(\n 'select',\n function () {\n var files = frame.state().get('selection').toJSON()\n $images.find('em').remove()\n $.each(\n files,\n function (i) {\n $images.append('<span data-id=\"' + this.id + '\" title=\"' + this.title + '\"><img src=\"' + this.url + '\" alt=\"\" /><i class=\"sui sui-times\"></i></span>')\n }\n )\n update()\n }\n ).open()\n }\n )\n // Sort images\n $images.sortable(\n {\n revert: 200,\n containment: $picker,\n tolerance: 'pointer',\n stop: function () {\n update()\n }\n }\n )\n // Select categories and terms\n $cats.on('change', update)\n $terms.on('change', update)\n // Select taxonomy\n $taxes.on(\n 'change',\n function () {\n var $cont = $(this).parents('.su-generator-isp-source')\n var tax = $(this).val()\n // Remove terms\n $terms.hide().find('option').remove()\n update()\n // Taxonomy is not selected\n if (tax === '0') {\n\n } else { // Taxonomy selected\n var ajaxTermSelect = $.ajax(\n {\n url: ajaxurl,\n type: 'post',\n dataType: 'html',\n data: {\n action: 'su_generator_get_terms',\n tax: tax,\n class: 'su-generator-isp-terms',\n multiple: true,\n size: 10\n },\n beforeSend: function () {\n if (typeof ajaxTermSelect === 'object') {\n ajaxTermSelect.abort()\n }\n $terms.html('').attr('disabled', true).hide()\n $cont.addClass('su-generator-loading')\n },\n success: function (data) {\n $terms.html(data).attr('disabled', false).show()\n $cont.removeClass('su-generator-loading')\n }\n }\n )\n }\n }\n )\n }\n )\n // Init media buttons\n $('.su-generator-upload-button').each(\n function () {\n var $button = $(this)\n var $val = $(this).parents('.su-generator-attr-container').find('input:text')\n var file\n $button.on(\n 'click',\n function (e) {\n e.preventDefault()\n e.stopPropagation()\n // If the frame already exists, reopen it\n if (typeof (file) !== 'undefined') {\n file.close()\n }\n // Create WP media frame.\n file = wp.media.frames.su_media_frame_2 = wp.media(\n {\n // Title of media manager frame\n title: SUGL10n.upload_title,\n button: {\n // Button text\n text: SUGL10n.upload_insert\n },\n // Do not allow multiple files, if you want multiple, set true\n multiple: false\n }\n )\n // callback for selected image\n file.on(\n 'select',\n function () {\n var attachment = file.state().get('selection').first().toJSON()\n $val.val(attachment.url).trigger('change')\n }\n )\n file.on('open', function () {\n $('.mfp-wrap').addClass('hidden')\n })\n file.on('close', function () {\n $('.mfp-wrap').removeClass('hidden')\n })\n // Open modal\n file.open()\n }\n )\n }\n )\n // Init icon pickers\n $('.su-generator-icon-picker-button').each(\n function () {\n var $button = $(this)\n var $field = $(this).parents('.su-generator-attr-container')\n var $val = $field.find('.su-generator-attr')\n var $picker = $field.find('.su-generator-icon-picker')\n var $filter = $picker.find('input:text')\n $button.click(\n function (e) {\n $picker.toggleClass('su-generator-icon-picker-visible')\n $filter.val('').trigger('keyup')\n if ($picker.hasClass('su-generator-icon-picker-loaded')) {\n return\n }\n // Load icons\n $.ajax(\n {\n type: 'post',\n url: ajaxurl,\n data: {\n action: 'su_generator_get_icons'\n },\n dataType: 'html',\n beforeSend: function () {\n // Show loading animation\n $picker.addClass('su-generator-loading')\n // Add loaded class\n $picker.addClass('su-generator-icon-picker-loaded')\n },\n success: function (data) {\n $picker.append(data)\n var $icons = $picker.children('i')\n $icons.click(\n function (e) {\n $val.val('icon: ' + $(this).attr('title'))\n $picker.removeClass('su-generator-icon-picker-visible')\n $val.trigger('change')\n e.preventDefault()\n }\n )\n $filter.on(\n {\n keyup: function () {\n var val = $(this).val()\n var regex = new RegExp(val, 'gi')\n // Hide all choices\n $icons.hide()\n // Find searched choices and show\n $icons.each(\n function () {\n // Get shortcode name\n var name = $(this).attr('title')\n // Show choice if matched\n if (name.match(regex) !== null) {\n $(this).show()\n }\n }\n )\n },\n focus: function () {\n $(this).val('')\n $icons.show()\n }\n }\n )\n $picker.removeClass('su-generator-loading')\n }\n }\n )\n e.preventDefault()\n }\n )\n }\n )\n // Init switches\n $('.su-generator-switch').click(\n function (e) {\n // Prepare data\n var $switch = $(this)\n var $value = $switch.parent().children('input')\n var isOn = $value.val() === 'yes'\n // Disable\n if (isOn) {\n // Change value\n $value.val('no').trigger('change')\n } else { // Enable\n // Change value\n $value.val('yes').trigger('change')\n }\n e.preventDefault()\n }\n )\n $('.su-generator-switch-value').on(\n 'change',\n function () {\n // Prepare data\n var $value = $(this)\n var $switch = $value.parent().children('.su-generator-switch')\n var value = $value.val()\n // Disable\n if (value === 'yes') {\n $switch.removeClass('su-generator-switch-no').addClass('su-generator-switch-yes')\n } else if (value === 'no') { // Enable\n $switch.removeClass('su-generator-switch-yes').addClass('su-generator-switch-no')\n }\n }\n )\n // Init tax_term selects\n $('select#su-generator-attr-taxonomy').on(\n 'change',\n function () {\n var $taxonomy = $(this)\n var tax = $taxonomy.val()\n var $terms = $('select#su-generator-attr-tax_term')\n // Load new options\n window.su_generator_get_terms = $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'su_generator_get_terms',\n tax: tax,\n noselect: true\n },\n dataType: 'html',\n beforeSend: function () {\n // Check previous requests\n if (typeof window.su_generator_get_terms === 'object') {\n window.su_generator_get_terms.abort()\n }\n // Show loading animation\n $terms.parent().addClass('su-generator-loading')\n },\n success: function (data) {\n // Remove previous options\n $terms.find('option').remove()\n // Append new options\n $terms.append(data)\n // Hide loading animation\n $terms.parent().removeClass('su-generator-loading')\n }\n }\n )\n }\n )\n // Init shadow pickers\n $('.su-generator-shadow-picker').each(\n function (index) {\n var $picker = $(this)\n var $fields = $picker.find('.su-generator-shadow-picker-field input')\n var $hoff = $picker.find('.su-generator-sp-hoff')\n var $voff = $picker.find('.su-generator-sp-voff')\n var $blur = $picker.find('.su-generator-sp-blur')\n var $color = {\n cnt: $picker.find('.su-generator-shadow-picker-color'),\n value: $picker.find('.su-generator-shadow-picker-color-value'),\n wheel: $picker.find('.su-generator-shadow-picker-color-wheel')\n }\n var $val = $picker.find('.su-generator-attr')\n // Init color picker\n $color.wheel.farbtastic($color.value)\n $color.value.focus(\n function () {\n $color.wheel.show()\n }\n )\n $color.value.blur(\n function () {\n $color.wheel.hide()\n }\n )\n // Handle text fields\n $fields.on(\n 'change blur keyup',\n function () {\n $val.val($hoff.val() + 'px ' + $voff.val() + 'px ' + $blur.val() + 'px ' + $color.value.val()).trigger('change')\n }\n )\n $val.on(\n 'keyup',\n function () {\n var value = $(this).val().split(' ')\n // Value is correct\n if (value.length === 4) {\n $hoff.val(value[0].replace('px', ''))\n $voff.val(value[1].replace('px', ''))\n $blur.val(value[2].replace('px', ''))\n $color.value.val(value[3])\n $fields.trigger('keyup')\n }\n }\n )\n }\n )\n // Init border pickers\n $('.su-generator-border-picker').each(\n function (index) {\n var $picker = $(this)\n var $fields = $picker.find('.su-generator-border-picker-field input, .su-generator-border-picker-field select')\n var $width = $picker.find('.su-generator-bp-width')\n var $style = $picker.find('.su-generator-bp-style')\n var $color = {\n cnt: $picker.find('.su-generator-border-picker-color'),\n value: $picker.find('.su-generator-border-picker-color-value'),\n wheel: $picker.find('.su-generator-border-picker-color-wheel')\n }\n var $val = $picker.find('.su-generator-attr')\n // Init color picker\n $color.wheel.farbtastic($color.value)\n $color.value.focus(\n function () {\n $color.wheel.show()\n }\n )\n $color.value.blur(\n function () {\n $color.wheel.hide()\n }\n )\n // Handle text fields\n $fields.on(\n 'change blur keyup',\n function () {\n $val.val($width.val() + 'px ' + $style.val() + ' ' + $color.value.val()).trigger('change')\n }\n )\n $val.on(\n 'keyup',\n function () {\n var value = $(this).val().split(' ')\n // Value is correct\n if (value.length === 3) {\n $width.val(value[0].replace('px', ''))\n $style.val(value[1])\n $color.value.val(value[2])\n $fields.trigger('keyup')\n }\n }\n )\n }\n )\n // Remove skip class when setting is changed\n $settings.find('.su-generator-attr').on(\n 'change keyup blur',\n function () {\n var $cnt = $(this).parents('.su-generator-attr-container')\n var _default = $cnt.data('default')\n var val = $(this).val()\n // Value is changed\n if (val != _default) {\n $cnt.removeClass('su-generator-skip')\n } else {\n $cnt.addClass('su-generator-skip')\n }\n }\n )\n // Init value setters\n $('.su-generator-set-value').click(\n function (e) {\n $(this).parents('.su-generator-attr-container').find('input').val($(this).text()).trigger('change')\n }\n )\n // Save selected value\n $selected.val(shortcode)\n // Load last used preset\n $.ajax(\n {\n type: 'GET',\n url: ajaxurl,\n data: {\n action: 'su_generator_get_preset',\n id: 'last_used',\n shortcode: shortcode\n },\n beforeSend: function () {\n // Show loading animation\n // $settings.addClass('su-generator-loading');\n },\n success: function (data) {\n // Remove loading animation\n // $settings.removeClass('su-generator-loading');\n // Set new settings\n self.setSettings(data)\n // Apply selected text to the content field\n var $content = $('#su-generator-content')\n if (typeof self.state.mceSelection !== 'undefined' && self.state.mceSelection !== '' && $content.attr('type') !== 'hidden') {\n $content.val(self.state.mceSelection)\n }\n },\n dataType: 'json'\n }\n )\n },\n dataType: 'html'\n }\n )\n }\n )\n // Insert shortcode\n $('#su-generator').on('click', '.su-generator-insert', self.insertShortcode)\n // Preview shortcode\n $('#su-generator').on(\n 'click',\n '.su-generator-toggle-preview',\n function (e) {\n // Prepare data\n var $preview = $('#su-generator-preview')\n var $button = $(this)\n // Hide button\n $button.hide()\n // Show preview box\n $preview.addClass('su-generator-loading').show()\n // Bind updating on settings changes\n $settings.find('input, textarea, select').on(\n 'change keyup blur',\n function () {\n self.updatePreview()\n }\n )\n // Update preview box\n self.updatePreview(true)\n // Prevent default action\n e.preventDefault()\n }\n )\n var gp_hover_timer\n // Presets manager - mouseenter\n $('#su-generator').on(\n 'mouseenter click',\n '.su-generator-presets',\n function () {\n clearTimeout(gp_hover_timer)\n $('.su-gp-popup').show()\n }\n )\n // Presets manager - mouseleave\n $('#su-generator').on(\n 'mouseleave',\n '.su-generator-presets',\n function () {\n gp_hover_timer = window.setTimeout(\n function () {\n $('.su-gp-popup').fadeOut(200)\n },\n 600\n )\n }\n )\n // Presets manager - add new preset\n $('#su-generator').on(\n 'click',\n '.su-gp-new',\n function (e) {\n // Prepare data\n var $container = $(this).parents('.su-generator-presets')\n var $list = $('.su-gp-list')\n var id = new Date().getTime()\n // Ask for preset name\n var name = prompt(SUGL10n.presets_prompt_msg, SUGL10n.presets_prompt_value)\n // Name is entered\n if (name !== '' && name !== null) {\n // Hide default text\n $list.find('b').hide()\n // Add new option\n $list.append('<span data-id=\"' + id + '\"><em>' + name + '</em><i class=\"sui sui-times\"></i></span>')\n // Perform AJAX request\n self.addPreset(id, name)\n }\n }\n )\n // Presets manager - load preset\n $('#su-generator').on(\n 'click',\n '.su-gp-list span',\n function (e) {\n // Prepare data\n var shortcode = $('.su-generator-presets').data('shortcode')\n var id = $(this).data('id')\n var $insert = $('.su-generator-insert')\n // Hide popup\n $('.su-gp-popup').hide()\n // Disable hover timer\n clearTimeout(gp_hover_timer)\n // Get the preset\n $.ajax(\n {\n type: 'GET',\n url: ajaxurl,\n data: {\n action: 'su_generator_get_preset',\n id: id,\n shortcode: shortcode\n },\n beforeSend: function () {\n // Disable insert button\n $insert.addClass('button-primary-disabled').attr('disabled', true)\n },\n success: function (data) {\n // Enable insert button\n $insert.removeClass('button-primary-disabled').attr('disabled', false)\n // Set new settings\n self.setSettings(data)\n },\n dataType: 'json'\n }\n )\n // Prevent default action\n e.preventDefault()\n e.stopPropagation()\n }\n )\n // Presets manager - remove preset\n $('#su-generator').on(\n 'click',\n '.su-gp-list i',\n function (e) {\n // Prepare data\n var $list = $(this).parents('.su-gp-list')\n var $preset = $(this).parent('span')\n var id = $preset.data('id')\n // Remove DOM element\n $preset.remove()\n // Show default text if last preset was removed\n if ($list.find('span').length < 1) {\n $list.find('b').show()\n }\n // Perform ajax request\n self.removePreset(id)\n // Prevent <span> action\n e.stopPropagation()\n // Prevent default action\n e.preventDefault()\n }\n )\n }\n\n /**\n\t * Create new preset with specified name from current settings\n\t */\n self.addPreset = function (id, name) {\n // Prepare shortcode name and current settings\n var shortcode = $('.su-generator-presets').data('shortcode')\n var settings = self.getSettings()\n // Perform AJAX request\n $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'su_generator_add_preset',\n id: id,\n name: name,\n shortcode: shortcode,\n settings: settings\n }\n }\n )\n }\n /**\n\t * Remove preset by ID\n\t */\n self.removePreset = function (id) {\n // Get current shortcode name\n var shortcode = $('.su-generator-presets').data('shortcode')\n // Perform AJAX request\n $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'su_generator_remove_preset',\n id: id,\n shortcode: shortcode\n }\n }\n )\n }\n\n self.parseSettings = function () {\n var settingsSelector = $('#su-generator-option-skip').val() === 'on'\n ? '#su-generator-settings .su-generator-attr-container:not(.su-generator-skip) .su-generator-attr'\n : '#su-generator-settings .su-generator-attr-container .su-generator-attr'\n // Prepare data\n var query = $selected.val()\n var prefix = $prefix.val()\n var $settings = $(settingsSelector)\n var $content = $('textarea#su-generator-content')\n var content = $content.length ? $content.val() : 'false'\n var result = new String('')\n // Open shortcode\n result += '[' + prefix + query\n // Add shortcode attributes\n $settings.each(\n function () {\n // Prepare field and value\n var $this = $(this)\n var value = ''\n // Selects\n if ($this.is('select')) {\n value = $this.find('option:selected').val()\n }\n // Other fields\n else {\n value = $this.val()\n }\n // Check that value is not empty\n if (value == null) {\n value = ''\n } else if (typeof value === 'array') {\n value = value.join(',')\n }\n // Add attribute\n if (value !== '') {\n result += ' ' + $(this).attr('name') + '=\"' + $(this).val().toString().replace(/\"/gi, \"'\") + '\"'\n }\n }\n )\n // End of opening tag\n result += ']'\n // Wrap shortcode if content presented\n if (content != 'false') {\n result += content + '[/' + prefix + query + ']'\n }\n // Return result\n return result\n }\n\n self.getSettings = function () {\n // Prepare data\n var query = $selected.val()\n var $settings = $('#su-generator-settings .su-generator-attr')\n var $content = $('textarea#su-generator-content')\n var content = $content.length ? $content.val() : 'false'\n var data = {}\n // Add shortcode attributes\n $settings.each(\n function (i) {\n // Prepare field and value\n var $this = $(this)\n var value = ''\n var name = $this.attr('name')\n // Selects\n if ($this.is('select')) {\n value = $this.find('option:selected').val()\n }\n // Other fields\n else {\n value = $this.val()\n }\n // Check that value is not empty\n if (value == null) {\n value = ''\n }\n // Save value\n data[name] = value\n }\n )\n // Add content\n data.content = content.toString()\n // Return data\n return data\n }\n\n self.setSettings = function (data) {\n // Prepare data\n var $settings = $('#su-generator-settings .su-generator-attr')\n var $content = $('#su-generator-content')\n // Loop through settings\n $settings.each(\n function () {\n var $this = $(this)\n var name = $this.attr('name')\n // Data contains value for this field\n if (data.hasOwnProperty(name)) {\n // Set new value\n $this.val(data[name])\n $this.trigger('keyup').trigger('change').trigger('blur')\n }\n }\n )\n // Set content\n if (data.hasOwnProperty('content')) {\n $content.val(data.content).trigger('keyup').trigger('change').trigger('blur')\n }\n // Update preview\n self.updatePreview()\n }\n\n self.updatePreview = function (forced) {\n // Prepare data\n var $preview = $('#su-generator-preview')\n var shortcode = self.parseSettings()\n var previous = $result.text()\n // Check forced mode\n forced = forced || false\n // Break if preview box is hidden (preview isn't enabled)\n if (!$preview.is(':visible')) {\n return\n }\n // Check shortcode is changed is this is not a forced mode\n if (shortcode === previous && !forced) {\n return\n }\n // Run timer to filter often calls\n window.clearTimeout(self.state.preview.timer)\n self.state.preview.timer = window.setTimeout(\n function () {\n self.state.preview.request = $.ajax(\n {\n type: 'POST',\n url: ajaxurl,\n cache: false,\n data: {\n action: 'su_generator_preview',\n shortcode: shortcode\n },\n beforeSend: function () {\n // Abort previous requests\n if (self.state.preview.request) {\n self.state.preview.request.abort()\n }\n // Show loading animation\n $preview.addClass('su-generator-loading').html('')\n },\n success: function (data) {\n // Hide loading animation and set new HTML\n $preview.html(data).removeClass('su-generator-loading')\n },\n dataType: 'html'\n }\n )\n },\n 300\n )\n // Save shortcode to div\n $result.text(shortcode)\n }\n\n self.insert = function (context, args) {\n if (typeof context !== 'string' || typeof args !== 'object') {\n return\n }\n\n self.state.context = context\n self.state.insertArgs = args\n\n var preSelectedShortcode = args.shortcode || ''\n\n var mfpOptions = {\n type: 'inline',\n alignTop: true,\n closeOnBgClick: false,\n mainClass: 'su-generator-mfp',\n items: {\n src: '#su-generator'\n },\n callbacks: {}\n }\n\n mfpOptions.callbacks.open = () => {\n if (preSelectedShortcode) {\n $choice.filter(`[data-shortcode=\"${preSelectedShortcode}\"]`).trigger('click')\n } else {\n window.setTimeout(() => $search.focus(), 200)\n }\n\n // self.el.body.addClass( 'su-mfp-shown' );\n\n if (\n typeof tinyMCE !== 'undefined' &&\n\t\t\t\ttinyMCE.activeEditor != null &&\n\t\t\t\ttinyMCE.activeEditor.hasOwnProperty('selection')\n ) {\n self.state.mceSelection = tinyMCE.activeEditor.selection.getContent({ format: 'text' })\n }\n }\n\n mfpOptions.callbacks.close = () => {\n $search.val('')\n $settings.html('').hide()\n $generator.removeClass('su-generator-narrow')\n $filter.show()\n $choices.show()\n $choice.show()\n\n self.state.mceSelection = ''\n\n // self.el.body.removeClass( 'su-mfp-shown' );\n }\n\n $.magnificPopup.open(mfpOptions)\n }\n\n self.insertShortcode = function () {\n var shortcode = self.parseSettings()\n\n self.addPreset('last_used', SUGL10n.last_used)\n\n $.magnificPopup.close()\n\n $result.text(shortcode)\n\n if (self.state.context === 'classic') {\n self.state.wpActiveEditor = window.wpActiveEditor\n window.wpActiveEditor = self.state.insertArgs.editorID\n window.wp.media.editor.insert(shortcode)\n window.wpActiveEditor = self.state.wpActiveEditor\n } else if (self.state.context === 'block') {\n var props = self.state.insertArgs.props\n\n if (props.attributes.hasOwnProperty('content')) {\n props.setAttributes({ content: props.attributes.content + shortcode })\n } else if (props.name === 'core/shortcode') {\n var originalText = props.attributes.hasOwnProperty('text')\n ? props.attributes.text\n : ''\n\n props.setAttributes({ text: originalText + shortcode })\n\n // var textarea = document.querySelector( `#block-${props.clientId} textarea` );\n // self.insertAtCaret( textarea, shortcode );\n }\n }\n }\n\n self.insertAtCaret = (field, text) => {\n var start = field.selectionStart\n var end = field.selectionEnd\n\n field.value = field.value.substring(0, start) + text + field.value.substring(start)\n\n field.focus()\n\n field.selectionStart = start + text.length\n }\n\n return {\n init: self.init,\n insert: self.insert\n }\n})(jQuery)\n\njQuery(document).ready(window.SUG.App.init)\n"]}
|
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 i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(u)return u(t,!0);var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}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,i){"use strict";var a=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,a.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,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){jQuery(document).ready(function(a){a(".su-lightbox-gallery").each(function(){var t=[];a(this).find(".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide").each(function(e){a(this).attr("data-index",e),t.push({src:a(this).children("a").attr("href"),title:a(this).children("a").attr("title")})}),a(this).data("slides",t)}),a(".su-slider").each(function(){var e=a(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()})}),a(".su-carousel").each(function(){var e=a(this),t=e.find(".su-carousel-slide"),i=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){i.swipeNext()}),e.find(".su-carousel-next").click(function(e){i.swipePrev()})}),a(".su-lightbox-gallery").on("click",".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide",function(e){e.preventDefault();var t=a(this).parents(".su-lightbox-gallery").data("slides");a.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},a(this).data("index"))})})}},{}],3:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.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")),i=new Flickity(e,t);if(e.removeAttribute("tabindex"),i.on("settle",o.onGallerySettle),e.classList.contains("su-image-carousel-has-lightbox")){i.on("staticClick",o.onFlickityStaticClick),e.addEventListener("click",o.preventGalleryLinkClick),e.addEventListener("keyup",o.onGalleryKeyUp);var a=e.getAttribute("id"),s=e.querySelectorAll(".su-image-carousel-item-content > a");o.MFPItems[a]=[],Array.prototype.forEach.call(s,function(e,t){e.setAttribute("data-gallery",a),e.setAttribute("data-index",t),o.MFPItems[a].push({src:e.getAttribute("href"),title:e.getAttribute("data-caption")})})}e.classList.add("su-image-carousel-ready")}},onFlickityStaticClick:function(e,t,i,a){if(i){var s=i.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 i=e.querySelectorAll("a")[0];i&&(i.setAttribute("tabindex",-1),e.classList.contains("is-selected")&&i.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"),i=parseInt(e.getAttribute("data-index"),10);o.openMagnificPopup(t,i)},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,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){jQuery(document).ready(function(l){function i(e){(l(window).scrollTop()+l("body").offset().top>e.offset().top||l(window).scrollTop()+l(window).height()<e.offset().top)&&l(window).scrollTop(e.offset().top-l("body").offset().top-e.data("scroll-offset"))}var e;function t(){""!==document.location.hash&&(l(".su-tabs-nav span[data-anchor]").each(function(){if("#"+l(this).data("anchor")===document.location.hash){var e=l(this).parents(".su-tabs");l(this).trigger("click"),window.setTimeout(function(){i(e)},100)}}),l(".su-spoiler[data-anchor]").each(function(){if("#"+l(this).data("anchor")===document.location.hash){var e=l(this);e.hasClass("su-spoiler-closed")&&e.find(".su-spoiler-title:first").trigger("click"),window.setTimeout(function(){i(e)},100)}}))}l("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-spoiler-title",function(e){var t=l(this).parent();t.toggleClass("su-spoiler-closed"),t.parent(".su-accordion").children(".su-spoiler").not(t).addClass("su-spoiler-closed"),i(t),e.preventDefault()}),l("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-tabs-nav span",function(e){var t=l(this),i=t.data(),a=t.index(),s=t.hasClass("su-tabs-disabled"),o=t.parent(".su-tabs-nav").children("span"),n=t.parents(".su-tabs").find(".su-tabs-pane"),r=n.eq(a).find(".su-gmap:not(.su-gmap-reloaded)");if(s)return!1;n.removeClass("su-tabs-pane-open").eq(a).addClass("su-tabs-pane-open"),o.removeClass("su-tabs-current").eq(a).addClass("su-tabs-current"),0<r.length&&r.each(function(){var e=l(this).find("iframe:first");l(this).addClass("su-gmap-reloaded"),e.attr("src",e.attr("src"))}),""!==i.url&&("self"===i.target?window.location=i.url:"blank"===i.target&&window.open(i.url)),e.preventDefault()}),l(".su-tabs").each(function(){var e=parseInt(l(this).data("active"))-1;l(this).children(".su-tabs-nav").children("span").eq(e).trigger("click")}),t(),l(document).on("click",".su-lightbox",function(e){if(e.preventDefault(),e.stopPropagation(),"su-generator-preview"!==l(this).parent().attr("id")){var t=l(this).data("mfp-type"),i=l(this).data("mobile"),a=l(window).width();l(this).magnificPopup({disableOn:function(){return!("no"===i&&a<768)&&!("number"==typeof i&&a<i)},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 l(this).html(SUShortcodesL10n.noPreview)}),l(".su-frame-align-center, .su-frame-align-none").each(function(){var e=l(this).find("img").width();l(this).css("width",e+12)}),l(".su-tooltip").each(function(){var e=l(this),t=e.find(".su-tooltip-content"),i=0<t.length,a=e.data(),s={style:{classes:a.classes},position:{my:a.my,at:a.at,viewport:l(window)},content:{title:"",text:""}};""!==a.title&&(s.content.title=a.title),s.content.text=i?t:e.attr("title"),"yes"===a.close&&(s.content.button=!0),"click"===a.behavior?(s.show="click",s.hide="click",e.on("click",function(e){e.preventDefault(),e.stopPropagation()}),l(window).on("scroll resize",function(){e.qtip("reposition")})):"always"===a.behavior?(s.show=!0,s.hide=!1,l(window).on("scroll resize",function(){e.qtip("reposition")})):"hover"===a.behavior&&i&&(s.hide={fixed:!0,delay:600}),e.qtip(s)}),l("body:not(.su-other-shortcodes-loaded)").on("click",".su-expand-link",function(){var e=l(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?l(".su-animate").each(function(){l(this).one("inview",function(e){var t=l(this),i=t.data();window.setTimeout(function(){t.addClass(i.animation),t.addClass("animated"),t.css("visibility","visible")},1e3*i.delay)})}):l(".su-animate").css("visibility","visible"),"onhashchange"in window&&l(window).on("hashchange",t),l("body").addClass("su-other-shortcodes-loaded")})}},{}],5:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){jQuery(document).ready(function(r){r(".su-audio").each(function(){var t=r(this),e="#"+t.data("id"),i=r(e),a=t.data("audio"),s=t.data("swf");i.jPlayer({ready:function(e){i.jPlayer("setMedia",{mp3:a}),"yes"===t.data("autoplay")&&i.jPlayer("play"),"yes"===t.data("loop")&&i.bind(r.jPlayer.event.ended+".repeat",function(){i.jPlayer("play")})},cssSelectorAncestor:e+"_container",volume:1,keyEnabled:!0,smoothPlayBar:!0,swfPath:s,supplied:"mp3"})}),r(".su-video").each(function(){var t=r(this),e=t.attr("id"),i=r("#"+e+"_player"),a=t.data("video"),s=t.data("swf"),o=t.data("poster"),n={width:i.width(),height:i.height()};i.jPlayer({ready:function(e){i.jPlayer("setMedia",{mp4:a,flv:a,poster:o}),"yes"===t.data("autoplay")&&i.jPlayer("play"),"yes"===t.data("loop")&&i.bind(r.jPlayer.event.ended+".repeat",function(){i.jPlayer("play")})},cssSelector:{gui:".jp-gui, .jp-title"},size:n,cssSelectorAncestor:"#"+e,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 i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(u)return u(t,!0);var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}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,i){"use strict";var a=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,a.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,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){jQuery(document).ready(function(a){a(".su-lightbox-gallery").each(function(){var t=[];a(this).find(".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide").each(function(e){a(this).attr("data-index",e),t.push({src:a(this).children("a").attr("href"),title:a(this).children("a").attr("title")})}),a(this).data("slides",t)}),a(".su-slider").each(function(){var e=a(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()})}),a(".su-carousel").each(function(){var e=a(this),t=e.find(".su-carousel-slide"),i=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){i.swipeNext()}),e.find(".su-carousel-next").click(function(e){i.swipePrev()})}),a(".su-lightbox-gallery").on("click",".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide",function(e){e.preventDefault();var t=a(this).parents(".su-lightbox-gallery").data("slides");a.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},a(this).data("index"))})})}},{}],3:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.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")),i=new Flickity(e,t);if(e.removeAttribute("tabindex"),i.on("settle",o.onGallerySettle),e.classList.contains("su-image-carousel-has-lightbox")){i.on("staticClick",o.onFlickityStaticClick),e.addEventListener("click",o.preventGalleryLinkClick),e.addEventListener("keyup",o.onGalleryKeyUp);var a=e.getAttribute("id"),s=e.querySelectorAll(".su-image-carousel-item-content > a");o.MFPItems[a]=[],Array.prototype.forEach.call(s,function(e,t){e.setAttribute("data-gallery",a),e.setAttribute("data-index",t),o.MFPItems[a].push({src:e.getAttribute("href"),title:e.getAttribute("data-caption")})})}e.classList.add("su-image-carousel-ready")}},onFlickityStaticClick:function(e,t,i,a){if(i){var s=i.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 i=e.querySelectorAll("a")[0];i&&(i.setAttribute("tabindex",-1),e.classList.contains("is-selected")&&i.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"),i=parseInt(e.getAttribute("data-index"),10);o.openMagnificPopup(t,i)},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,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){jQuery(document).ready(function(l){function i(e){(l(window).scrollTop()+l("body").offset().top>e.offset().top||l(window).scrollTop()+l(window).height()<e.offset().top)&&l(window).scrollTop(e.offset().top-l("body").offset().top-e.data("scroll-offset"))}var e;function t(){""!==document.location.hash&&(l(".su-tabs-nav span[data-anchor]").each(function(){if("#"+l(this).data("anchor")===document.location.hash){var e=l(this).parents(".su-tabs");l(this).trigger("click"),window.setTimeout(function(){i(e)},100)}}),l(".su-spoiler[data-anchor]").each(function(){if("#"+l(this).data("anchor")===document.location.hash){var e=l(this);e.hasClass("su-spoiler-closed")&&e.find(".su-spoiler-title:first").trigger("click"),window.setTimeout(function(){i(e)},100)}}))}l("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-spoiler-title",function(e){var t=l(this).parent();t.toggleClass("su-spoiler-closed"),t.parent(".su-accordion").children(".su-spoiler").not(t).addClass("su-spoiler-closed"),i(t),e.preventDefault()}),l("body:not(.su-other-shortcodes-loaded)").on("click keypress",".su-tabs-nav span",function(e){var t=l(this),i=t.data(),a=t.index(),s=t.hasClass("su-tabs-disabled"),o=t.parent(".su-tabs-nav").children("span"),n=t.parents(".su-tabs").find(".su-tabs-pane"),r=n.eq(a).find(".su-gmap:not(.su-gmap-reloaded)");if(s)return!1;n.removeClass("su-tabs-pane-open").eq(a).addClass("su-tabs-pane-open"),o.removeClass("su-tabs-current").eq(a).addClass("su-tabs-current"),0<r.length&&r.each(function(){var e=l(this).find("iframe:first");l(this).addClass("su-gmap-reloaded"),e.attr("src",e.attr("src"))}),""!==i.url&&("self"===i.target?window.location=i.url:"blank"===i.target&&window.open(i.url)),e.preventDefault()}),l(".su-tabs").each(function(){var e=parseInt(l(this).data("active"))-1;l(this).children(".su-tabs-nav").children("span").eq(e).trigger("click")}),t(),l(document).on("click",".su-lightbox",function(e){if(e.preventDefault(),e.stopPropagation(),"su-generator-preview"!==l(this).parent().attr("id")){var t=l(this).data("mfp-type"),i=l(this).data("mobile"),a=l(window).width();l(this).magnificPopup({disableOn:function(){return!("no"===i&&a<768)&&!("number"==typeof i&&a<i)},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 l(this).html(SUShortcodesL10n.noPreview)}),l(".su-frame-align-center, .su-frame-align-none").each(function(){var e=l(this).find("img").width();l(this).css("width",e+12)}),l(".su-tooltip").each(function(){var e=l(this),t=e.find(".su-tooltip-content"),i=0<t.length,a=e.data(),s={style:{classes:a.classes},position:{my:a.my,at:a.at,viewport:l(window)},content:{title:"",text:""}};""!==a.title&&(s.content.title=a.title),s.content.text=i?t:e.attr("title"),"yes"===a.close&&(s.content.button=!0),"click"===a.behavior?(s.show="click",s.hide="click",e.on("click",function(e){e.preventDefault(),e.stopPropagation()}),l(window).on("scroll resize",function(){e.qtip("reposition")})):"always"===a.behavior?(s.show=!0,s.hide=!1,l(window).on("scroll resize",function(){e.qtip("reposition")})):"hover"===a.behavior&&i&&(s.hide={fixed:!0,delay:600}),e.qtip(s)}),l("body:not(.su-other-shortcodes-loaded)").on("click",".su-expand-link",function(){var e=l(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?l(".su-animate").each(function(){l(this).one("inview",function(e){var t=l(this),i=t.data();window.setTimeout(function(){t.addClass(i.animation),t.addClass("animated"),t.css("visibility","visible")},1e3*i.delay)})}):l(".su-animate").css("visibility","visible"),"onhashchange"in window&&l(window).on("hashchange",t),l("body").addClass("su-other-shortcodes-loaded")})}},{}],5:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){jQuery(document).ready(function(r){r(".su-audio").each(function(){var e=r(this),t="#"+e.data("id"),i=r(t),a=e.data("audio"),s=e.data("swf");i.jPlayer({ready:function(){i.jPlayer("setMedia",{mp3:a}),"yes"===e.data("autoplay")&&i.jPlayer("play"),"yes"===e.data("loop")&&i.bind(r.jPlayer.event.ended+".repeat",function(){i.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"),i=r("#"+t+"_player"),a=e.data("video"),s=e.data("swf"),o=e.data("poster"),n={width:i.width(),height:i.height()};i.jPlayer({ready:function(){i.jPlayer("setMedia",{mp4:a,flv:a,poster:o}),"yes"===e.data("autoplay")&&i.jPlayer("play"),"yes"===e.data("loop")&&i.bind(r.jPlayer.event.ended+".repeat",function(){i.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","thisStyle","anchorNav","location","hash","$tabs","trigger","setTimeout","$spoiler","parent","toggleClass","not","addClass","$tab","isDisabled","$panes","$gmaps","eq","removeClass","$iframe","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","$container","undefined","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,GAAA,OAAAI,EAAAH,EAAAI,GAAA,GAAAL,IAAAA,IAAAa,EAAAA,EAAAC,QAAAd,EAAAC,EAAAC,EAAAC,GAAA,OAAAD,EAAAG,GAAAS,QAAA,IAAA,IAAAL,EAAA,m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AAST,EACTU,SAAU,UAIdrM,EAAE,aAAaC,KAAK,WAElB,IAAIqM,EAAStM,EAAEG,MACXoM,EAAKD,EAAOjM,KAAK,MACjBoL,EAAUzL,EAAE,IAAMuM,EAAK,WACvBC,EAAOF,EAAO5L,KAAK,SACnBiL,EAAMW,EAAO5L,KAAK,OAClB+L,EAASH,EAAO5L,KAAK,UACrBgM,EAAO,CACT7D,MAAO4C,EAAQ5C,QACfzB,OAAQqE,EAAQrE,UAGlBqE,EAAQG,QAAQ,CACd7L,MAAO,SAAU1B,GAEfoN,EAAQG,QAAQ,WAAY,CAC1Be,IAAKH,EACLI,IAAKJ,EACLC,OAAQA,IAGsB,QAA5BH,EAAO5L,KAAK,aAAuB+K,EAAQG,QAAQ,QAE3B,QAAxBU,EAAO5L,KAAK,SACd+K,EAAQK,KAAK9L,EAAE4L,QAAQnG,MAAMsG,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 // 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 // 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 // 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 data = $tab.data()\n var index = $tab.index()\n var isDisabled = $tab.hasClass('su-tabs-disabled')\n var $tabs = $tab.parent('.su-tabs-nav').children('span')\n var $panes = $tab.parents('.su-tabs').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 // 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 $(this)\n .children('.su-tabs-nav')\n .children('span')\n .eq(active)\n .trigger('click')\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","thisStyle","anchorNav","location","hash","$tabs","trigger","setTimeout","$spoiler","parent","toggleClass","not","addClass","$tab","isDisabled","$panes","$gmaps","eq","removeClass","$iframe","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","$container","undefined","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,GAAA,OAAAI,EAAAH,EAAAI,GAAA,GAAAL,IAAAA,IAAAa,EAAAA,EAAAC,QAAAd,EA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BI,oBAAqBR,EAAW,aAChCS,OAAQ,EACRC,YAAY,EACZC,eAAe,EACfC,QAAST,EACTU,SAAU,UAIdrM,EAAE,aAAaC,KAAK,WAElB,IAAIqM,EAAStM,EAAEG,MACXoM,EAAKD,EAAOjM,KAAK,MACjBoL,EAAUzL,EAAE,IAAMuM,EAAK,WACvBC,EAAOF,EAAO5L,KAAK,SACnBiL,EAAMW,EAAO5L,KAAK,OAClB+L,EAASH,EAAO5L,KAAK,UACrBgM,EAAO,CACT7D,MAAO4C,EAAQ5C,QACfzB,OAAQqE,EAAQrE,UAGlBqE,EAAQG,QAAQ,CACd7L,MAAO,WAEL0L,EAAQG,QAAQ,WAAY,CAC1Be,IAAKH,EACLI,IAAKJ,EACLC,OAAQA,IAGsB,QAA5BH,EAAO5L,KAAK,aAAuB+K,EAAQG,QAAQ,QAE3B,QAAxBU,EAAO5L,KAAK,SACd+K,EAAQK,KAAK9L,EAAE4L,QAAQnG,MAAMsG,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 // 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 // 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 // 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 data = $tab.data()\n var index = $tab.index()\n var isDisabled = $tab.hasClass('su-tabs-disabled')\n var $tabs = $tab.parent('.su-tabs-nav').children('span')\n var $panes = $tab.parents('.su-tabs').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 // 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 $(this)\n .children('.su-tabs-nav')\n .children('span')\n .eq(active)\n .trigger('click')\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/button.php
CHANGED
@@ -326,7 +326,7 @@ function su_shortcode_button( $atts = null, $content = null ) {
|
|
326 |
su_query_asset( 'css', 'su-icons' );
|
327 |
|
328 |
} else {
|
329 |
-
$icon = '<img src="' . $atts['icon'] . '" alt="' . esc_attr( $content ) . '" style="' . implode(
|
330 |
}
|
331 |
|
332 |
} else {
|
@@ -335,7 +335,7 @@ function su_shortcode_button( $atts = null, $content = null ) {
|
|
335 |
|
336 |
// Prepare <small> with description
|
337 |
$desc = $atts['desc']
|
338 |
-
? '<small style="' . implode(
|
339 |
: '';
|
340 |
|
341 |
// Wrap with div if button centered
|
@@ -388,6 +388,6 @@ function su_shortcode_button( $atts = null, $content = null ) {
|
|
388 |
|
389 |
su_query_asset( 'css', 'su-shortcodes' );
|
390 |
|
391 |
-
return $before . '<a href="' . su_do_attribute( $atts['url'] ) . '" class="' . implode(
|
392 |
|
393 |
}
|
326 |
su_query_asset( 'css', 'su-icons' );
|
327 |
|
328 |
} else {
|
329 |
+
$icon = '<img src="' . $atts['icon'] . '" alt="' . esc_attr( $content ) . '" style="' . implode( ';', $img_css ) . '" />';
|
330 |
}
|
331 |
|
332 |
} else {
|
335 |
|
336 |
// Prepare <small> with description
|
337 |
$desc = $atts['desc']
|
338 |
+
? '<small style="' . implode( ';', $small_css ) . '">' . su_do_attribute( $atts['desc'] ) . '</small>'
|
339 |
: '';
|
340 |
|
341 |
// Wrap with div if button centered
|
388 |
|
389 |
su_query_asset( 'css', 'su-shortcodes' );
|
390 |
|
391 |
+
return $before . '<a href="' . su_do_attribute( $atts['url'] ) . '" class="' . implode( ' ', $classes ) . '" style="' . implode( ';', $a_css ) . '" target="_' . $atts['target'] . '"' . $atts['onclick'] . $atts['rel'] . $atts['title'] . $atts['id'] . $atts['download'] . '><span style="' . implode( ';', $span_css ) . '">' . do_shortcode( stripcslashes( $content ) ) . $desc . '</span></a>' . $after;
|
392 |
|
393 |
}
|
includes/shortcodes/feed.php
CHANGED
@@ -9,13 +9,13 @@ su_add_shortcode(
|
|
9 |
'type' => 'single',
|
10 |
'group' => 'content other',
|
11 |
'atts' => array(
|
12 |
-
'url'
|
13 |
'values' => array(),
|
14 |
'default' => '',
|
15 |
'name' => __( 'URL', 'shortcodes-ultimate' ),
|
16 |
'desc' => __( 'RSS feed URL', 'shortcodes-ultimate' ),
|
17 |
),
|
18 |
-
'limit'
|
19 |
'type' => 'slider',
|
20 |
'min' => 1,
|
21 |
'max' => 20,
|
@@ -24,7 +24,17 @@ su_add_shortcode(
|
|
24 |
'name' => __( 'Limit', 'shortcodes-ultimate' ),
|
25 |
'desc' => __( 'Number of items to show', 'shortcodes-ultimate' ),
|
26 |
),
|
27 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
'type' => 'extra_css_class',
|
29 |
'name' => __( 'Extra CSS class', 'shortcodes-ultimate' ),
|
30 |
'desc' => __( 'Additional CSS class name(s) separated by space(s)', 'shortcodes-ultimate' ),
|
@@ -62,9 +72,11 @@ function su_shortcode_feed( $atts = null, $content = null ) {
|
|
62 |
foreach ( $items as $item ) {
|
63 |
|
64 |
$output .= sprintf(
|
65 |
-
'<li><a href="%s">%s</a></li>',
|
66 |
-
$item->get_permalink(),
|
67 |
-
$
|
|
|
|
|
68 |
);
|
69 |
|
70 |
}
|
9 |
'type' => 'single',
|
10 |
'group' => 'content other',
|
11 |
'atts' => array(
|
12 |
+
'url' => array(
|
13 |
'values' => array(),
|
14 |
'default' => '',
|
15 |
'name' => __( 'URL', 'shortcodes-ultimate' ),
|
16 |
'desc' => __( 'RSS feed URL', 'shortcodes-ultimate' ),
|
17 |
),
|
18 |
+
'limit' => array(
|
19 |
'type' => 'slider',
|
20 |
'min' => 1,
|
21 |
'max' => 20,
|
24 |
'name' => __( 'Limit', 'shortcodes-ultimate' ),
|
25 |
'desc' => __( 'Number of items to show', 'shortcodes-ultimate' ),
|
26 |
),
|
27 |
+
'target' => array(
|
28 |
+
'type' => 'select',
|
29 |
+
'values' => array(
|
30 |
+
'self' => __( 'Open in same tab', 'shortcodes-ultimate' ),
|
31 |
+
'blank' => __( 'Open in new tab', 'shortcodes-ultimate' ),
|
32 |
+
),
|
33 |
+
'default' => 'self',
|
34 |
+
'name' => __( 'Links target', 'shortcodes-ultimate' ),
|
35 |
+
'desc' => __( 'Feed links target', 'shortcodes-ultimate' ),
|
36 |
+
),
|
37 |
+
'class' => array(
|
38 |
'type' => 'extra_css_class',
|
39 |
'name' => __( 'Extra CSS class', 'shortcodes-ultimate' ),
|
40 |
'desc' => __( 'Additional CSS class name(s) separated by space(s)', 'shortcodes-ultimate' ),
|
72 |
foreach ( $items as $item ) {
|
73 |
|
74 |
$output .= sprintf(
|
75 |
+
'<li><a href="%s" target="_%s" title="%s">%s</a></li>',
|
76 |
+
esc_attr( $item->get_permalink() ),
|
77 |
+
sanitize_key( $atts['target'] ),
|
78 |
+
esc_attr( $item->get_description() ),
|
79 |
+
wp_kses_post( $item->get_title() )
|
80 |
);
|
81 |
|
82 |
}
|
includes/shortcodes/members.php
CHANGED
@@ -26,7 +26,7 @@ su_add_shortcode(
|
|
26 |
'desc' => __( 'Text for the login link', 'shortcodes-ultimate' ),
|
27 |
),
|
28 |
'login_url' => array(
|
29 |
-
'default' =>
|
30 |
'name' => __( 'Login link url', 'shortcodes-ultimate' ),
|
31 |
'desc' => __( 'Login link url', 'shortcodes-ultimate' ),
|
32 |
),
|
@@ -45,20 +45,20 @@ su_add_shortcode(
|
|
45 |
|
46 |
function su_shortcode_members( $atts = null, $content = null ) {
|
47 |
|
48 |
-
$atts =
|
49 |
-
|
50 |
-
'message' => __( 'This content is for registered users only. Please %login%.', 'shortcodes-ultimate' ),
|
51 |
-
'color' => '#ffcc00',
|
52 |
-
'style' => null, // 3.x
|
53 |
-
'login_text' => __( 'login', 'shortcodes-ultimate' ),
|
54 |
-
'login_url' => wp_login_url(),
|
55 |
-
'login' => null, // 3.x
|
56 |
-
'class' => '',
|
57 |
-
),
|
58 |
$atts,
|
59 |
-
|
|
|
|
|
|
|
60 |
);
|
61 |
|
|
|
|
|
|
|
|
|
|
|
62 |
if ( null !== $atts['style'] ) {
|
63 |
$atts['color'] = str_replace( array( '0', '1', '2' ), array( '#fff', '#FFFF29', '#1F9AFF' ), $atts['style'] );
|
64 |
}
|
26 |
'desc' => __( 'Text for the login link', 'shortcodes-ultimate' ),
|
27 |
),
|
28 |
'login_url' => array(
|
29 |
+
'default' => '',
|
30 |
'name' => __( 'Login link url', 'shortcodes-ultimate' ),
|
31 |
'desc' => __( 'Login link url', 'shortcodes-ultimate' ),
|
32 |
),
|
45 |
|
46 |
function su_shortcode_members( $atts = null, $content = null ) {
|
47 |
|
48 |
+
$atts = su_parse_shortcode_atts(
|
49 |
+
'members',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
$atts,
|
51 |
+
array(
|
52 |
+
'style' => null,
|
53 |
+
'login' => null,
|
54 |
+
)
|
55 |
);
|
56 |
|
57 |
+
if ( empty( $atts['login_url'] ) ) {
|
58 |
+
$atts['login_url'] = wp_login_url();
|
59 |
+
}
|
60 |
+
|
61 |
+
// 3.x
|
62 |
if ( null !== $atts['style'] ) {
|
63 |
$atts['color'] = str_replace( array( '0', '1', '2' ), array( '#fff', '#FFFF29', '#1F9AFF' ), $atts['style'] );
|
64 |
}
|
includes/shortcodes/user.php
CHANGED
@@ -12,6 +12,11 @@ su_add_shortcode(
|
|
12 |
'field' => array(
|
13 |
'type' => 'select',
|
14 |
'values' => array(
|
|
|
|
|
|
|
|
|
|
|
15 |
'display_name' => __( 'Display name', 'shortcodes-ultimate' ),
|
16 |
'ID' => __( 'ID', 'shortcodes-ultimate' ),
|
17 |
'user_login' => __( 'Login', 'shortcodes-ultimate' ),
|
@@ -24,7 +29,7 @@ su_add_shortcode(
|
|
24 |
),
|
25 |
'default' => 'display_name',
|
26 |
'name' => __( 'Field', 'shortcodes-ultimate' ),
|
27 |
-
'desc' => __( 'User data field name', 'shortcodes-ultimate' ),
|
28 |
),
|
29 |
'default' => array(
|
30 |
'default' => '',
|
@@ -52,7 +57,7 @@ su_add_shortcode(
|
|
52 |
'desc' => __( 'You can apply custom filter to the retrieved value. Enter here function name. Your function must accept one argument and return modified value. Name of your function must include word <b>filter</b>. Example function: ', 'shortcodes-ultimate' ) . "<br /><pre><code style='display:block;padding:5px'>function my_custom_filter( \$value ) {\n\treturn 'Value is: ' . \$value;\n}</code></pre>",
|
53 |
),
|
54 |
),
|
55 |
-
'desc' => __( '
|
56 |
'icon' => 'info-circle',
|
57 |
)
|
58 |
);
|
@@ -70,6 +75,8 @@ function su_shortcode_user( $atts = null, $content = null ) {
|
|
70 |
|
71 |
}
|
72 |
|
|
|
|
|
73 |
if ( ! $atts['user_id'] ) {
|
74 |
$atts['user_id'] = get_current_user_id();
|
75 |
}
|
12 |
'field' => array(
|
13 |
'type' => 'select',
|
14 |
'values' => array(
|
15 |
+
'first_name' => __( 'First name', 'shortcodes-ultimate' ),
|
16 |
+
'last_name' => __( 'Last name', 'shortcodes-ultimate' ),
|
17 |
+
'nickname' => __( 'Nickname', 'shortcodes-ultimate' ),
|
18 |
+
'description' => __( 'Description', 'shortcodes-ultimate' ),
|
19 |
+
'locale' => __( 'Locale', 'shortcodes-ultimate' ),
|
20 |
'display_name' => __( 'Display name', 'shortcodes-ultimate' ),
|
21 |
'ID' => __( 'ID', 'shortcodes-ultimate' ),
|
22 |
'user_login' => __( 'Login', 'shortcodes-ultimate' ),
|
29 |
),
|
30 |
'default' => 'display_name',
|
31 |
'name' => __( 'Field', 'shortcodes-ultimate' ),
|
32 |
+
'desc' => __( 'User data field name. Custom meta field names are also allowed.', 'shortcodes-ultimate' ),
|
33 |
),
|
34 |
'default' => array(
|
35 |
'default' => '',
|
57 |
'desc' => __( 'You can apply custom filter to the retrieved value. Enter here function name. Your function must accept one argument and return modified value. Name of your function must include word <b>filter</b>. Example function: ', 'shortcodes-ultimate' ) . "<br /><pre><code style='display:block;padding:5px'>function my_custom_filter( \$value ) {\n\treturn 'Value is: ' . \$value;\n}</code></pre>",
|
58 |
),
|
59 |
),
|
60 |
+
'desc' => __( 'This shortcode can display a user data, like login or email, including meta fields', 'shortcodes-ultimate' ),
|
61 |
'icon' => 'info-circle',
|
62 |
)
|
63 |
);
|
75 |
|
76 |
}
|
77 |
|
78 |
+
$atts['user_id'] = su_do_attribute( $atts['user_id'] );
|
79 |
+
|
80 |
if ( ! $atts['user_id'] ) {
|
81 |
$atts['user_id'] = get_current_user_id();
|
82 |
}
|
includes/shortcodes/youtube-advanced.php
CHANGED
@@ -221,6 +221,6 @@ function su_shortcode_youtube_advanced( $atts = null, $content = null ) {
|
|
221 |
|
222 |
su_query_asset( 'css', 'su-shortcodes' );
|
223 |
|
224 |
-
return '<div class="su-youtube su-u-responsive-media-' . $atts['responsive'] . su_get_css_class( $atts ) . '"><iframe width="' . $atts['width'] . '" height="' . $atts['height'] . '" src="https://' . $domain . '/embed/' . $video_id . '?' . $url_params . '" frameborder="0" allowfullscreen
|
225 |
|
226 |
}
|
221 |
|
222 |
su_query_asset( 'css', 'su-shortcodes' );
|
223 |
|
224 |
+
return '<div class="su-youtube su-u-responsive-media-' . $atts['responsive'] . su_get_css_class( $atts ) . '"><iframe width="' . $atts['width'] . '" height="' . $atts['height'] . '" src="https://' . $domain . '/embed/' . $video_id . '?' . $url_params . '" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title="' . esc_attr( $atts['title'] ) . '"></iframe></div>';
|
225 |
|
226 |
}
|
includes/shortcodes/youtube.php
CHANGED
@@ -115,6 +115,6 @@ function su_shortcode_youtube( $atts = null, $content = null ) {
|
|
115 |
|
116 |
su_query_asset( 'css', 'su-shortcodes' );
|
117 |
|
118 |
-
return '<div class="su-youtube su-u-responsive-media-' . $atts['responsive'] . su_get_css_class( $atts ) . '"><iframe width="' . $atts['width'] . '" height="' . $atts['height'] . '" src="https://' . $domain . '/embed/' . $video_id . '?' . http_build_query( $url_params ) . '" frameborder="0" allowfullscreen
|
119 |
|
120 |
}
|
115 |
|
116 |
su_query_asset( 'css', 'su-shortcodes' );
|
117 |
|
118 |
+
return '<div class="su-youtube su-u-responsive-media-' . $atts['responsive'] . su_get_css_class( $atts ) . '"><iframe width="' . $atts['width'] . '" height="' . $atts['height'] . '" src="https://' . $domain . '/embed/' . $video_id . '?' . http_build_query( $url_params ) . '" frameborder="0" allowfullscreen allow="autoplay; encrypted-media; picture-in-picture" title="' . esc_attr( $atts['title'] ) . '"></iframe></div>';
|
119 |
|
120 |
}
|
languages/shortcodes-ultimate.pot
CHANGED
@@ -178,7 +178,7 @@ msgstr ""
|
|
178 |
msgid "Shortcodes Ultimate"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: admin/class-shortcodes-ultimate-admin-shortcodes.php:305, inc/core/generator.php:
|
182 |
msgid "All shortcodes"
|
183 |
msgstr ""
|
184 |
|
@@ -445,7 +445,7 @@ msgstr ""
|
|
445 |
msgid "Select taxonomy and it's terms.<br>You can select multiple terms with Ctrl (Cmd) key"
|
446 |
msgstr ""
|
447 |
|
448 |
-
#: inc/core/generator.php:54, inc/core/generator.php:119, inc/core/generator.php:
|
449 |
msgid "Insert shortcode"
|
450 |
msgstr ""
|
451 |
|
@@ -473,55 +473,55 @@ msgstr ""
|
|
473 |
msgid "Filter by type"
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: inc/core/generator.php:
|
477 |
msgid "Shortcode not specified"
|
478 |
msgstr ""
|
479 |
|
480 |
-
#: inc/core/generator.php:
|
481 |
msgid "Live preview"
|
482 |
msgstr ""
|
483 |
|
484 |
-
#: inc/core/generator.php:
|
485 |
msgid "Click to return to the shortcodes list"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: inc/core/generator.php:
|
489 |
msgid "Click to set this value"
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: inc/core/generator.php:
|
493 |
msgid "Content"
|
494 |
msgstr ""
|
495 |
|
496 |
-
#: inc/core/generator.php:
|
497 |
msgid "Preview"
|
498 |
msgstr ""
|
499 |
|
500 |
-
#: inc/core/generator.php:
|
501 |
msgid "Access denied"
|
502 |
msgstr ""
|
503 |
|
504 |
-
#: inc/core/generator.php:
|
505 |
msgid "Presets"
|
506 |
msgstr ""
|
507 |
|
508 |
-
#: inc/core/generator.php:
|
509 |
msgid "Save current settings as preset"
|
510 |
msgstr ""
|
511 |
|
512 |
-
#: inc/core/generator.php:
|
513 |
msgid "Presets not found"
|
514 |
msgstr ""
|
515 |
|
516 |
-
#: inc/core/generator.php:
|
517 |
msgid "Additional skins successfully installed"
|
518 |
msgstr ""
|
519 |
|
520 |
-
#: inc/core/generator.php:
|
521 |
msgid "Open dropdown to choose one of new styles"
|
522 |
msgstr ""
|
523 |
|
524 |
-
#: inc/core/generator.php:
|
525 |
msgid "Get more styles"
|
526 |
msgstr ""
|
527 |
|
@@ -645,11 +645,11 @@ msgstr ""
|
|
645 |
msgid "Accordion"
|
646 |
msgstr ""
|
647 |
|
648 |
-
#: includes/shortcodes/accordion.php:14, includes/shortcodes/animate.php:44, includes/shortcodes/audio.php:37, includes/shortcodes/box.php:56, includes/shortcodes/button.php:144, includes/shortcodes/carousel.php:141, includes/shortcodes/column.php:40, includes/shortcodes/csv-table.php:52, includes/shortcodes/custom-gallery.php:82, includes/shortcodes/dailymotion.php:103, includes/shortcodes/divider.php:68, includes/shortcodes/document.php:49, includes/shortcodes/dropcap.php:33, includes/shortcodes/dummy-image.php:53, includes/shortcodes/dummy-text.php:46, includes/shortcodes/expand.php:88, includes/shortcodes/feed.php:
|
649 |
msgid "Extra CSS class"
|
650 |
msgstr ""
|
651 |
|
652 |
-
#: includes/shortcodes/accordion.php:15, includes/shortcodes/animate.php:45, includes/shortcodes/audio.php:38, includes/shortcodes/box.php:57, includes/shortcodes/button.php:145, includes/shortcodes/carousel.php:142, includes/shortcodes/column.php:41, includes/shortcodes/csv-table.php:53, includes/shortcodes/custom-gallery.php:83, includes/shortcodes/dailymotion.php:104, includes/shortcodes/divider.php:69, includes/shortcodes/document.php:50, includes/shortcodes/dropcap.php:34, includes/shortcodes/dummy-image.php:54, includes/shortcodes/dummy-text.php:47, includes/shortcodes/expand.php:89, includes/shortcodes/feed.php:
|
653 |
msgid "Additional CSS class name(s) separated by space(s)"
|
654 |
msgstr ""
|
655 |
|
@@ -757,7 +757,7 @@ msgstr ""
|
|
757 |
msgid "Text for the box title"
|
758 |
msgstr ""
|
759 |
|
760 |
-
#: includes/shortcodes/box.php:21, includes/shortcodes/button.php:31, includes/shortcodes/divider.php:25, includes/shortcodes/dropcap.php:14, includes/shortcodes/expand.php:53, includes/shortcodes/heading.php:14, includes/shortcodes/image-carousel.php:38, includes/shortcodes/label.php:14, includes/shortcodes/meta.php:18, includes/shortcodes/post.php:43, includes/shortcodes/quote.php:15, includes/shortcodes/spoiler.php:25, includes/shortcodes/tabs.php:18, includes/shortcodes/tooltip.php:58, includes/shortcodes/user.php:
|
761 |
msgid "Default"
|
762 |
msgstr ""
|
763 |
|
@@ -837,11 +837,11 @@ msgstr ""
|
|
837 |
msgid "Button link"
|
838 |
msgstr ""
|
839 |
|
840 |
-
#: includes/shortcodes/button.php:21, includes/shortcodes/carousel.php:48, includes/shortcodes/custom-gallery.php:44, includes/shortcodes/image-carousel.php:144, includes/shortcodes/permalink.php:19, includes/shortcodes/qrcode.php:60, includes/shortcodes/slider.php:48, includes/shortcodes/tabs.php:102
|
841 |
msgid "Open in same tab"
|
842 |
msgstr ""
|
843 |
|
844 |
-
#: includes/shortcodes/button.php:22, includes/shortcodes/carousel.php:49, includes/shortcodes/custom-gallery.php:45, includes/shortcodes/image-carousel.php:145, includes/shortcodes/permalink.php:20, includes/shortcodes/qrcode.php:61, includes/shortcodes/slider.php:49, includes/shortcodes/tabs.php:103
|
845 |
msgid "Open in new tab"
|
846 |
msgstr ""
|
847 |
|
@@ -945,7 +945,7 @@ msgstr ""
|
|
945 |
msgid "Button text shadow"
|
946 |
msgstr ""
|
947 |
|
948 |
-
#: includes/shortcodes/button.php:114
|
949 |
msgid "Description"
|
950 |
msgstr ""
|
951 |
|
@@ -1057,7 +1057,7 @@ msgstr ""
|
|
1057 |
msgid "Select which links will be used for images in this gallery"
|
1058 |
msgstr ""
|
1059 |
|
1060 |
-
#: includes/shortcodes/carousel.php:52, includes/shortcodes/custom-gallery.php:48, includes/shortcodes/image-carousel.php:148, includes/shortcodes/slider.php:52
|
1061 |
msgid "Links target"
|
1062 |
msgstr ""
|
1063 |
|
@@ -1757,7 +1757,7 @@ msgstr ""
|
|
1757 |
msgid "RSS feed"
|
1758 |
msgstr ""
|
1759 |
|
1760 |
-
#: includes/shortcodes/feed.php:15, includes/shortcodes/tabs.php:96, includes/shortcodes/user.php:
|
1761 |
msgid "URL"
|
1762 |
msgstr ""
|
1763 |
|
@@ -1769,15 +1769,19 @@ msgstr ""
|
|
1769 |
msgid "Number of items to show"
|
1770 |
msgstr ""
|
1771 |
|
1772 |
-
#: includes/shortcodes/feed.php:
|
|
|
|
|
|
|
|
|
1773 |
msgid "Feed grabber"
|
1774 |
msgstr ""
|
1775 |
|
1776 |
-
#: includes/shortcodes/feed.php:
|
1777 |
msgid "invalid feed URL"
|
1778 |
msgstr ""
|
1779 |
|
1780 |
-
#: includes/shortcodes/feed.php:
|
1781 |
msgid "no items in the feed"
|
1782 |
msgstr ""
|
1783 |
|
@@ -2145,7 +2149,7 @@ msgstr ""
|
|
2145 |
msgid "Lightbox content"
|
2146 |
msgstr ""
|
2147 |
|
2148 |
-
#: includes/shortcodes/lightbox-content.php:15, includes/shortcodes/permalink.php:13, includes/shortcodes/user.php:
|
2149 |
msgid "ID"
|
2150 |
msgstr ""
|
2151 |
|
@@ -2282,7 +2286,7 @@ msgstr ""
|
|
2282 |
msgid "Members"
|
2283 |
msgstr ""
|
2284 |
|
2285 |
-
#: includes/shortcodes/members.php:13
|
2286 |
msgid "This content is for registered users only. Please %login%."
|
2287 |
msgstr ""
|
2288 |
|
@@ -2302,7 +2306,7 @@ msgstr ""
|
|
2302 |
msgid "This color will applied only to box for not logged users"
|
2303 |
msgstr ""
|
2304 |
|
2305 |
-
#: includes/shortcodes/members.php:24
|
2306 |
msgid "login"
|
2307 |
msgstr ""
|
2308 |
|
@@ -2358,23 +2362,23 @@ msgstr ""
|
|
2358 |
msgid "Meta key name"
|
2359 |
msgstr ""
|
2360 |
|
2361 |
-
#: includes/shortcodes/meta.php:19, includes/shortcodes/post.php:44, includes/shortcodes/user.php:
|
2362 |
msgid "This text will be shown if data is not found"
|
2363 |
msgstr ""
|
2364 |
|
2365 |
-
#: includes/shortcodes/meta.php:23, includes/shortcodes/post.php:48, includes/shortcodes/user.php:
|
2366 |
msgid "Before"
|
2367 |
msgstr ""
|
2368 |
|
2369 |
-
#: includes/shortcodes/meta.php:24, includes/shortcodes/post.php:49, includes/shortcodes/user.php:
|
2370 |
msgid "This content will be shown before the value"
|
2371 |
msgstr ""
|
2372 |
|
2373 |
-
#: includes/shortcodes/meta.php:28, includes/shortcodes/post.php:53, includes/shortcodes/user.php:
|
2374 |
msgid "After"
|
2375 |
msgstr ""
|
2376 |
|
2377 |
-
#: includes/shortcodes/meta.php:29, includes/shortcodes/post.php:54, includes/shortcodes/user.php:
|
2378 |
msgid "This content will be shown after the value"
|
2379 |
msgstr ""
|
2380 |
|
@@ -2386,11 +2390,11 @@ msgstr ""
|
|
2386 |
msgid "You can specify custom post ID. Leave this field empty to use an ID of the current post. Current post ID may not work in Live Preview mode"
|
2387 |
msgstr ""
|
2388 |
|
2389 |
-
#: includes/shortcodes/meta.php:38, includes/shortcodes/post.php:69, includes/shortcodes/user.php:
|
2390 |
msgid "Filter"
|
2391 |
msgstr ""
|
2392 |
|
2393 |
-
#: includes/shortcodes/meta.php:39, includes/shortcodes/post.php:70, includes/shortcodes/user.php:
|
2394 |
msgid "You can apply custom filter to the retrieved value. Enter here function name. Your function must accept one argument and return modified value. Name of your function must include word <b>filter</b>. Example function: "
|
2395 |
msgstr ""
|
2396 |
|
@@ -2534,7 +2538,7 @@ msgstr ""
|
|
2534 |
msgid "Comment count"
|
2535 |
msgstr ""
|
2536 |
|
2537 |
-
#: includes/shortcodes/post.php:38, includes/shortcodes/user.php:
|
2538 |
msgid "Field"
|
2539 |
msgstr ""
|
2540 |
|
@@ -3433,59 +3437,79 @@ msgstr ""
|
|
3433 |
msgid "Tooltip window with custom content"
|
3434 |
msgstr ""
|
3435 |
|
3436 |
-
#: includes/shortcodes/user.php:8
|
3437 |
msgid "User data"
|
3438 |
msgstr ""
|
3439 |
|
3440 |
#: includes/shortcodes/user.php:15
|
3441 |
-
msgid "
|
|
|
|
|
|
|
|
|
3442 |
msgstr ""
|
3443 |
|
3444 |
#: includes/shortcodes/user.php:17
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3445 |
msgid "Login"
|
3446 |
msgstr ""
|
3447 |
|
3448 |
-
#: includes/shortcodes/user.php:
|
3449 |
msgid "Nice name"
|
3450 |
msgstr ""
|
3451 |
|
3452 |
-
#: includes/shortcodes/user.php:
|
3453 |
msgid "Email"
|
3454 |
msgstr ""
|
3455 |
|
3456 |
-
#: includes/shortcodes/user.php:
|
3457 |
msgid "Registered"
|
3458 |
msgstr ""
|
3459 |
|
3460 |
-
#: includes/shortcodes/user.php:
|
3461 |
msgid "Activation key"
|
3462 |
msgstr ""
|
3463 |
|
3464 |
-
#: includes/shortcodes/user.php:
|
3465 |
msgid "Status"
|
3466 |
msgstr ""
|
3467 |
|
3468 |
-
#: includes/shortcodes/user.php:
|
3469 |
-
msgid "User data field name"
|
3470 |
msgstr ""
|
3471 |
|
3472 |
-
#: includes/shortcodes/user.php:
|
3473 |
msgid "User ID"
|
3474 |
msgstr ""
|
3475 |
|
3476 |
-
#: includes/shortcodes/user.php:
|
3477 |
msgid "You can specify custom user ID. Leave this field empty to use an ID of the current user"
|
3478 |
msgstr ""
|
3479 |
|
3480 |
-
#: includes/shortcodes/user.php:
|
|
|
|
|
|
|
|
|
3481 |
msgid "password field is not allowed"
|
3482 |
msgstr ""
|
3483 |
|
3484 |
-
#: includes/shortcodes/user.php:
|
3485 |
msgid "invalid user ID"
|
3486 |
msgstr ""
|
3487 |
|
3488 |
-
#: includes/shortcodes/user.php:
|
3489 |
msgid "user not found"
|
3490 |
msgstr ""
|
3491 |
|
178 |
msgid "Shortcodes Ultimate"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: admin/class-shortcodes-ultimate-admin-shortcodes.php:305, inc/core/generator.php:248, admin/partials/extra/generator.php:2
|
182 |
msgid "All shortcodes"
|
183 |
msgstr ""
|
184 |
|
445 |
msgid "Select taxonomy and it's terms.<br>You can select multiple terms with Ctrl (Cmd) key"
|
446 |
msgstr ""
|
447 |
|
448 |
+
#: inc/core/generator.php:54, inc/core/generator.php:119, inc/core/generator.php:243
|
449 |
msgid "Insert shortcode"
|
450 |
msgstr ""
|
451 |
|
473 |
msgid "Filter by type"
|
474 |
msgstr ""
|
475 |
|
476 |
+
#: inc/core/generator.php:228
|
477 |
msgid "Shortcode not specified"
|
478 |
msgstr ""
|
479 |
|
480 |
+
#: inc/core/generator.php:244
|
481 |
msgid "Live preview"
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: inc/core/generator.php:248, admin/partials/extra/generator.php:2
|
485 |
msgid "Click to return to the shortcodes list"
|
486 |
msgstr ""
|
487 |
|
488 |
+
#: inc/core/generator.php:269
|
489 |
msgid "Click to set this value"
|
490 |
msgstr ""
|
491 |
|
492 |
+
#: inc/core/generator.php:287, includes/config/groups.php:7
|
493 |
msgid "Content"
|
494 |
msgstr ""
|
495 |
|
496 |
+
#: inc/core/generator.php:304, admin/partials/pages/shortcodes-single-content.php:18
|
497 |
msgid "Preview"
|
498 |
msgstr ""
|
499 |
|
500 |
+
#: inc/core/generator.php:312
|
501 |
msgid "Access denied"
|
502 |
msgstr ""
|
503 |
|
504 |
+
#: inc/core/generator.php:357
|
505 |
msgid "Presets"
|
506 |
msgstr ""
|
507 |
|
508 |
+
#: inc/core/generator.php:360
|
509 |
msgid "Save current settings as preset"
|
510 |
msgstr ""
|
511 |
|
512 |
+
#: inc/core/generator.php:389, inc/core/generator.php:392
|
513 |
msgid "Presets not found"
|
514 |
msgstr ""
|
515 |
|
516 |
+
#: inc/core/generator.php:599
|
517 |
msgid "Additional skins successfully installed"
|
518 |
msgstr ""
|
519 |
|
520 |
+
#: inc/core/generator.php:600
|
521 |
msgid "Open dropdown to choose one of new styles"
|
522 |
msgstr ""
|
523 |
|
524 |
+
#: inc/core/generator.php:608
|
525 |
msgid "Get more styles"
|
526 |
msgstr ""
|
527 |
|
645 |
msgid "Accordion"
|
646 |
msgstr ""
|
647 |
|
648 |
+
#: includes/shortcodes/accordion.php:14, includes/shortcodes/animate.php:44, includes/shortcodes/audio.php:37, includes/shortcodes/box.php:56, includes/shortcodes/button.php:144, includes/shortcodes/carousel.php:141, includes/shortcodes/column.php:40, includes/shortcodes/csv-table.php:52, includes/shortcodes/custom-gallery.php:82, includes/shortcodes/dailymotion.php:103, includes/shortcodes/divider.php:68, includes/shortcodes/document.php:49, includes/shortcodes/dropcap.php:33, includes/shortcodes/dummy-image.php:53, includes/shortcodes/dummy-text.php:46, includes/shortcodes/expand.php:88, includes/shortcodes/feed.php:39, includes/shortcodes/frame.php:25, includes/shortcodes/gmap.php:58, includes/shortcodes/guests.php:13, includes/shortcodes/heading.php:56, includes/shortcodes/highlight.php:26, includes/shortcodes/image-carousel.php:187, includes/shortcodes/label.php:27, includes/shortcodes/lightbox-content.php:78, includes/shortcodes/lightbox.php:38, includes/shortcodes/list.php:35, includes/shortcodes/members.php:35, includes/shortcodes/menu.php:18, includes/shortcodes/note.php:37, includes/shortcodes/permalink.php:38, includes/shortcodes/private.php:13, includes/shortcodes/pullquote.php:22, includes/shortcodes/qrcode.php:81, includes/shortcodes/quote.php:34, includes/shortcodes/row.php:15, includes/shortcodes/service.php:41, includes/shortcodes/siblings.php:19, includes/shortcodes/slider.php:122, includes/shortcodes/spacer.php:22, includes/shortcodes/spoiler.php:61, includes/shortcodes/subpages.php:25, includes/shortcodes/table.php:34, includes/shortcodes/tabs.php:52, includes/shortcodes/tabs.php:111, includes/shortcodes/tooltip.php:99, includes/shortcodes/video.php:67, includes/shortcodes/vimeo.php:71, includes/shortcodes/youtube-advanced.php:134, includes/shortcodes/youtube.php:60
|
649 |
msgid "Extra CSS class"
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: includes/shortcodes/accordion.php:15, includes/shortcodes/animate.php:45, includes/shortcodes/audio.php:38, includes/shortcodes/box.php:57, includes/shortcodes/button.php:145, includes/shortcodes/carousel.php:142, includes/shortcodes/column.php:41, includes/shortcodes/csv-table.php:53, includes/shortcodes/custom-gallery.php:83, includes/shortcodes/dailymotion.php:104, includes/shortcodes/divider.php:69, includes/shortcodes/document.php:50, includes/shortcodes/dropcap.php:34, includes/shortcodes/dummy-image.php:54, includes/shortcodes/dummy-text.php:47, includes/shortcodes/expand.php:89, includes/shortcodes/feed.php:40, includes/shortcodes/gmap.php:59, includes/shortcodes/guests.php:14, includes/shortcodes/heading.php:57, includes/shortcodes/highlight.php:27, includes/shortcodes/image-carousel.php:188, includes/shortcodes/label.php:28, includes/shortcodes/lightbox-content.php:79, includes/shortcodes/lightbox.php:39, includes/shortcodes/list.php:36, includes/shortcodes/members.php:36, includes/shortcodes/menu.php:19, includes/shortcodes/note.php:38, includes/shortcodes/permalink.php:39, includes/shortcodes/private.php:14, includes/shortcodes/pullquote.php:23, includes/shortcodes/qrcode.php:82, includes/shortcodes/quote.php:35, includes/shortcodes/row.php:16, includes/shortcodes/service.php:42, includes/shortcodes/siblings.php:20, includes/shortcodes/slider.php:123, includes/shortcodes/spacer.php:23, includes/shortcodes/spoiler.php:62, includes/shortcodes/subpages.php:26, includes/shortcodes/table.php:35, includes/shortcodes/tabs.php:53, includes/shortcodes/tabs.php:112, includes/shortcodes/tooltip.php:100, includes/shortcodes/video.php:68, includes/shortcodes/vimeo.php:72, includes/shortcodes/youtube-advanced.php:135, includes/shortcodes/youtube.php:61
|
653 |
msgid "Additional CSS class name(s) separated by space(s)"
|
654 |
msgstr ""
|
655 |
|
757 |
msgid "Text for the box title"
|
758 |
msgstr ""
|
759 |
|
760 |
+
#: includes/shortcodes/box.php:21, includes/shortcodes/button.php:31, includes/shortcodes/divider.php:25, includes/shortcodes/dropcap.php:14, includes/shortcodes/expand.php:53, includes/shortcodes/heading.php:14, includes/shortcodes/image-carousel.php:38, includes/shortcodes/label.php:14, includes/shortcodes/meta.php:18, includes/shortcodes/post.php:43, includes/shortcodes/quote.php:15, includes/shortcodes/spoiler.php:25, includes/shortcodes/tabs.php:18, includes/shortcodes/tooltip.php:58, includes/shortcodes/user.php:36
|
761 |
msgid "Default"
|
762 |
msgstr ""
|
763 |
|
837 |
msgid "Button link"
|
838 |
msgstr ""
|
839 |
|
840 |
+
#: includes/shortcodes/button.php:21, includes/shortcodes/carousel.php:48, includes/shortcodes/custom-gallery.php:44, includes/shortcodes/feed.php:30, includes/shortcodes/image-carousel.php:144, includes/shortcodes/permalink.php:19, includes/shortcodes/qrcode.php:60, includes/shortcodes/slider.php:48, includes/shortcodes/tabs.php:102
|
841 |
msgid "Open in same tab"
|
842 |
msgstr ""
|
843 |
|
844 |
+
#: includes/shortcodes/button.php:22, includes/shortcodes/carousel.php:49, includes/shortcodes/custom-gallery.php:45, includes/shortcodes/feed.php:31, includes/shortcodes/image-carousel.php:145, includes/shortcodes/permalink.php:20, includes/shortcodes/qrcode.php:61, includes/shortcodes/slider.php:49, includes/shortcodes/tabs.php:103
|
845 |
msgid "Open in new tab"
|
846 |
msgstr ""
|
847 |
|
945 |
msgid "Button text shadow"
|
946 |
msgstr ""
|
947 |
|
948 |
+
#: includes/shortcodes/button.php:114, includes/shortcodes/user.php:18
|
949 |
msgid "Description"
|
950 |
msgstr ""
|
951 |
|
1057 |
msgid "Select which links will be used for images in this gallery"
|
1058 |
msgstr ""
|
1059 |
|
1060 |
+
#: includes/shortcodes/carousel.php:52, includes/shortcodes/custom-gallery.php:48, includes/shortcodes/feed.php:34, includes/shortcodes/image-carousel.php:148, includes/shortcodes/slider.php:52
|
1061 |
msgid "Links target"
|
1062 |
msgstr ""
|
1063 |
|
1757 |
msgid "RSS feed"
|
1758 |
msgstr ""
|
1759 |
|
1760 |
+
#: includes/shortcodes/feed.php:15, includes/shortcodes/tabs.php:96, includes/shortcodes/user.php:25
|
1761 |
msgid "URL"
|
1762 |
msgstr ""
|
1763 |
|
1769 |
msgid "Number of items to show"
|
1770 |
msgstr ""
|
1771 |
|
1772 |
+
#: includes/shortcodes/feed.php:35
|
1773 |
+
msgid "Feed links target"
|
1774 |
+
msgstr ""
|
1775 |
+
|
1776 |
+
#: includes/shortcodes/feed.php:44
|
1777 |
msgid "Feed grabber"
|
1778 |
msgstr ""
|
1779 |
|
1780 |
+
#: includes/shortcodes/feed.php:57
|
1781 |
msgid "invalid feed URL"
|
1782 |
msgstr ""
|
1783 |
|
1784 |
+
#: includes/shortcodes/feed.php:69
|
1785 |
msgid "no items in the feed"
|
1786 |
msgstr ""
|
1787 |
|
2149 |
msgid "Lightbox content"
|
2150 |
msgstr ""
|
2151 |
|
2152 |
+
#: includes/shortcodes/lightbox-content.php:15, includes/shortcodes/permalink.php:13, includes/shortcodes/user.php:21
|
2153 |
msgid "ID"
|
2154 |
msgstr ""
|
2155 |
|
2286 |
msgid "Members"
|
2287 |
msgstr ""
|
2288 |
|
2289 |
+
#: includes/shortcodes/members.php:13
|
2290 |
msgid "This content is for registered users only. Please %login%."
|
2291 |
msgstr ""
|
2292 |
|
2306 |
msgid "This color will applied only to box for not logged users"
|
2307 |
msgstr ""
|
2308 |
|
2309 |
+
#: includes/shortcodes/members.php:24
|
2310 |
msgid "login"
|
2311 |
msgstr ""
|
2312 |
|
2362 |
msgid "Meta key name"
|
2363 |
msgstr ""
|
2364 |
|
2365 |
+
#: includes/shortcodes/meta.php:19, includes/shortcodes/post.php:44, includes/shortcodes/user.php:37
|
2366 |
msgid "This text will be shown if data is not found"
|
2367 |
msgstr ""
|
2368 |
|
2369 |
+
#: includes/shortcodes/meta.php:23, includes/shortcodes/post.php:48, includes/shortcodes/user.php:41
|
2370 |
msgid "Before"
|
2371 |
msgstr ""
|
2372 |
|
2373 |
+
#: includes/shortcodes/meta.php:24, includes/shortcodes/post.php:49, includes/shortcodes/user.php:42
|
2374 |
msgid "This content will be shown before the value"
|
2375 |
msgstr ""
|
2376 |
|
2377 |
+
#: includes/shortcodes/meta.php:28, includes/shortcodes/post.php:53, includes/shortcodes/user.php:46
|
2378 |
msgid "After"
|
2379 |
msgstr ""
|
2380 |
|
2381 |
+
#: includes/shortcodes/meta.php:29, includes/shortcodes/post.php:54, includes/shortcodes/user.php:47
|
2382 |
msgid "This content will be shown after the value"
|
2383 |
msgstr ""
|
2384 |
|
2390 |
msgid "You can specify custom post ID. Leave this field empty to use an ID of the current post. Current post ID may not work in Live Preview mode"
|
2391 |
msgstr ""
|
2392 |
|
2393 |
+
#: includes/shortcodes/meta.php:38, includes/shortcodes/post.php:69, includes/shortcodes/user.php:56
|
2394 |
msgid "Filter"
|
2395 |
msgstr ""
|
2396 |
|
2397 |
+
#: includes/shortcodes/meta.php:39, includes/shortcodes/post.php:70, includes/shortcodes/user.php:57
|
2398 |
msgid "You can apply custom filter to the retrieved value. Enter here function name. Your function must accept one argument and return modified value. Name of your function must include word <b>filter</b>. Example function: "
|
2399 |
msgstr ""
|
2400 |
|
2538 |
msgid "Comment count"
|
2539 |
msgstr ""
|
2540 |
|
2541 |
+
#: includes/shortcodes/post.php:38, includes/shortcodes/user.php:31
|
2542 |
msgid "Field"
|
2543 |
msgstr ""
|
2544 |
|
3437 |
msgid "Tooltip window with custom content"
|
3438 |
msgstr ""
|
3439 |
|
3440 |
+
#: includes/shortcodes/user.php:8
|
3441 |
msgid "User data"
|
3442 |
msgstr ""
|
3443 |
|
3444 |
#: includes/shortcodes/user.php:15
|
3445 |
+
msgid "First name"
|
3446 |
+
msgstr ""
|
3447 |
+
|
3448 |
+
#: includes/shortcodes/user.php:16
|
3449 |
+
msgid "Last name"
|
3450 |
msgstr ""
|
3451 |
|
3452 |
#: includes/shortcodes/user.php:17
|
3453 |
+
msgid "Nickname"
|
3454 |
+
msgstr ""
|
3455 |
+
|
3456 |
+
#: includes/shortcodes/user.php:19
|
3457 |
+
msgid "Locale"
|
3458 |
+
msgstr ""
|
3459 |
+
|
3460 |
+
#: includes/shortcodes/user.php:20
|
3461 |
+
msgid "Display name"
|
3462 |
+
msgstr ""
|
3463 |
+
|
3464 |
+
#: includes/shortcodes/user.php:22
|
3465 |
msgid "Login"
|
3466 |
msgstr ""
|
3467 |
|
3468 |
+
#: includes/shortcodes/user.php:23
|
3469 |
msgid "Nice name"
|
3470 |
msgstr ""
|
3471 |
|
3472 |
+
#: includes/shortcodes/user.php:24
|
3473 |
msgid "Email"
|
3474 |
msgstr ""
|
3475 |
|
3476 |
+
#: includes/shortcodes/user.php:26
|
3477 |
msgid "Registered"
|
3478 |
msgstr ""
|
3479 |
|
3480 |
+
#: includes/shortcodes/user.php:27
|
3481 |
msgid "Activation key"
|
3482 |
msgstr ""
|
3483 |
|
3484 |
+
#: includes/shortcodes/user.php:28
|
3485 |
msgid "Status"
|
3486 |
msgstr ""
|
3487 |
|
3488 |
+
#: includes/shortcodes/user.php:32
|
3489 |
+
msgid "User data field name. Custom meta field names are also allowed."
|
3490 |
msgstr ""
|
3491 |
|
3492 |
+
#: includes/shortcodes/user.php:51
|
3493 |
msgid "User ID"
|
3494 |
msgstr ""
|
3495 |
|
3496 |
+
#: includes/shortcodes/user.php:52
|
3497 |
msgid "You can specify custom user ID. Leave this field empty to use an ID of the current user"
|
3498 |
msgstr ""
|
3499 |
|
3500 |
+
#: includes/shortcodes/user.php:60
|
3501 |
+
msgid "This shortcode can display a user data, like login or email, including meta fields"
|
3502 |
+
msgstr ""
|
3503 |
+
|
3504 |
+
#: includes/shortcodes/user.php:73
|
3505 |
msgid "password field is not allowed"
|
3506 |
msgstr ""
|
3507 |
|
3508 |
+
#: includes/shortcodes/user.php:88
|
3509 |
msgid "invalid user ID"
|
3510 |
msgstr ""
|
3511 |
|
3512 |
+
#: includes/shortcodes/user.php:99
|
3513 |
msgid "user not found"
|
3514 |
msgstr ""
|
3515 |
|
readme.txt
CHANGED
@@ -5,8 +5,8 @@ Donate link: https://paypal.me/anovladimir
|
|
5 |
Tags: shortcode, toggle, columns, button, slider
|
6 |
Requires at least: 4.6
|
7 |
Requires PHP: 5.3
|
8 |
-
Tested up to: 5.
|
9 |
-
Stable tag: 5.
|
10 |
|
11 |
A comprehensive collection of visual components for your site
|
12 |
|
@@ -151,6 +151,23 @@ For help with premium add-ons, please [open new support ticket](https://getshort
|
|
151 |
|
152 |
== Changelog ==
|
153 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
= 5.7.0 =
|
155 |
|
156 |
**What's new**
|
5 |
Tags: shortcode, toggle, columns, button, slider
|
6 |
Requires at least: 4.6
|
7 |
Requires PHP: 5.3
|
8 |
+
Tested up to: 5.4
|
9 |
+
Stable tag: 5.8.0
|
10 |
|
11 |
A comprehensive collection of visual components for your site
|
12 |
|
151 |
|
152 |
== Changelog ==
|
153 |
|
154 |
+
= 5.8.0 =
|
155 |
+
|
156 |
+
**What's new**
|
157 |
+
|
158 |
+
- The `[su_user]` shortcode now support nested shortcodes in the `user_id` attribute
|
159 |
+
- The `[su_feed]` now has the `target` attribute, which allow opening feed links in a new tab
|
160 |
+
|
161 |
+
|
162 |
+
**Fixes**
|
163 |
+
|
164 |
+
- Updated documentation for the `[su_user]` shortcode. New fields: Nickname, First Name, Last Name, Description, & Locale
|
165 |
+
- Fixed warning in Google Search Console when testing page with the `[su_youtube]` shortcode: `Allow attribute will take precedence over ‘allowfullscreen’.`
|
166 |
+
- Fixed issue when some attributes weren't inserted by the Insert shortcode button
|
167 |
+
- Improved compatibility with PHP 7.4, thanks to [Jörn Lund](https://github.com/mcguffin)
|
168 |
+
- `[su_feed]` links now have title attribute with descriptions
|
169 |
+
|
170 |
+
|
171 |
= 5.7.0 =
|
172 |
|
173 |
**What's new**
|
shortcodes-ultimate.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Shortcodes Ultimate
|
4 |
* Plugin URI: https://getshortcodes.com/
|
5 |
-
* Version: 5.
|
6 |
* Author: Vladimir Anokhin
|
7 |
* Author URI: https://vanokhin.com/
|
8 |
* Description: A comprehensive collection of visual components for WordPress
|
@@ -14,7 +14,7 @@
|
|
14 |
* Define plugin constants.
|
15 |
*/
|
16 |
define( 'SU_PLUGIN_FILE', __FILE__ );
|
17 |
-
define( 'SU_PLUGIN_VERSION', '5.
|
18 |
|
19 |
/**
|
20 |
* Load dependencies.
|
2 |
/**
|
3 |
* Plugin Name: Shortcodes Ultimate
|
4 |
* Plugin URI: https://getshortcodes.com/
|
5 |
+
* Version: 5.8.0
|
6 |
* Author: Vladimir Anokhin
|
7 |
* Author URI: https://vanokhin.com/
|
8 |
* Description: A comprehensive collection of visual components for WordPress
|
14 |
* Define plugin constants.
|
15 |
*/
|
16 |
define( 'SU_PLUGIN_FILE', __FILE__ );
|
17 |
+
define( 'SU_PLUGIN_VERSION', '5.8.0' );
|
18 |
|
19 |
/**
|
20 |
* Load dependencies.
|