Plugin Directory

Changeset 2711468


Ignore:
Timestamp:
04/19/2022 09:22:26 AM (4 years ago)
Author:
shapedplugin
Message:

2.1.7 version release.

Location:
wp-expand-tabs-free
Files:
213 added
10 edited

Legend:

Unmodified
Added
Removed
  • wp-expand-tabs-free/trunk/admin/css/wp-tabs-admin.css

    r2621218 r2711468  
    8686  line-height: 24px;
    8787}
     88#sp_tab_live_preview {
     89  display: none;
     90}
  • wp-expand-tabs-free/trunk/admin/css/wp-tabs-admin.min.css

    r2621218 r2711468  
    1 .spf-field-typography.disable-color-picker .spf-field-color{pointer-events:none;opacity:.6}#sp-wptabs-review-notice{padding:15px 15px 15px 0;background-color:#fff;border-radius:3px;margin:20px 20px 0 0}#sp-wptabs-review-notice .sp-wptabs-plugin-icon{width:125px;float:left;line-height:90px;text-align:center}#sp-wptabs-review-notice .sp-wptabs-plugin-icon img{max-width:83px;vertical-align:middle}.sp_wp_tabs_page_tabs_help #sp-wptabs-review-notice .sp-wptabs-notice-text{overflow:hidden;margin-bottom:20px}#sp-wptabs-review-notice .sp-wptabs-notice-text h3{font-size:24px;margin:0 0 5px;font-weight:400;line-height:1}#sp-wptabs-review-notice .sp-wptabs-notice-text p{margin:10px 0 10px 0;font-size:13px}#sp-wptabs-review-notice .sp-wptabs-notice-text p.sp-wptabs-review-actions{margin:10px 0 2px 0}#sp-wptabs-review-notice .sp-wptabs-notice-text .sp-wptabs-review-actions a{text-decoration:none;margin-right:8px;color:#3ec0a1;display:inline-block;position:relative}#sp-wptabs-review-notice .sp-wptabs-notice-text .sp-wptabs-review-actions a span{padding-right:2px}#sp-wptabs-review-notice .sp-wptabs-notice-text .sp-wptabs-review-actions a.button{color:#fff}#sp-tab-show-preview{position:fixed;right:144px;bottom:30px;z-index:1001;width:155px;text-align:center;padding:10px 0;background:#54b154;color:#fff;border-radius:3px;text-decoration:none;display:block;font-weight:500;text-transform:uppercase;letter-spacing:.2px;margin:0;box-sizing:border-box;border-color:#44a944;overflow:hidden}#sp_tab_live_preview .handle-order-higher,#sp_tab_live_preview .handle-order-lower{display:none}#sp_tab_live_preview .wptabspro label{display:block}#sp_tab_live_preview .sp-tab-content p{font-size:16px;line-height:24px}
     1.spf-field-typography.disable-color-picker .spf-field-color{pointer-events:none;opacity:.6}#sp-wptabs-review-notice{padding:15px 15px 15px 0;background-color:#fff;border-radius:3px;margin:20px 20px 0 0}#sp-wptabs-review-notice .sp-wptabs-plugin-icon{width:125px;float:left;line-height:90px;text-align:center}#sp-wptabs-review-notice .sp-wptabs-plugin-icon img{max-width:83px;vertical-align:middle}.sp_wp_tabs_page_tabs_help #sp-wptabs-review-notice .sp-wptabs-notice-text{overflow:hidden;margin-bottom:20px}#sp-wptabs-review-notice .sp-wptabs-notice-text h3{font-size:24px;margin:0 0 5px;font-weight:400;line-height:1}#sp-wptabs-review-notice .sp-wptabs-notice-text p{margin:10px 0 10px 0;font-size:13px}#sp-wptabs-review-notice .sp-wptabs-notice-text p.sp-wptabs-review-actions{margin:10px 0 2px 0}#sp-wptabs-review-notice .sp-wptabs-notice-text .sp-wptabs-review-actions a{text-decoration:none;margin-right:8px;color:#3ec0a1;display:inline-block;position:relative}#sp-wptabs-review-notice .sp-wptabs-notice-text .sp-wptabs-review-actions a span{padding-right:2px}#sp-wptabs-review-notice .sp-wptabs-notice-text .sp-wptabs-review-actions a.button{color:#fff}#sp-tab-show-preview{position:fixed;right:144px;bottom:30px;z-index:1001;width:155px;text-align:center;padding:10px 0;background:#54b154;color:#fff;border-radius:3px;text-decoration:none;display:block;font-weight:500;text-transform:uppercase;letter-spacing:.2px;margin:0;box-sizing:border-box;border-color:#44a944;overflow:hidden}#sp_tab_live_preview .handle-order-higher,#sp_tab_live_preview .handle-order-lower{display:none}#sp_tab_live_preview .wptabspro label{display:block}#sp_tab_live_preview .sp-tab-content p{font-size:16px;line-height:24px}#sp_tab_live_preview{display:none}
  • wp-expand-tabs-free/trunk/admin/partials/models/fields/wp_editor/wp_editor.php

    r2700595 r2711468  
    8686            echo ( wptabspro_wp_editor_api() ) ? '<div class="wptabspro-wp-editor" data-editor-settings="' . esc_attr( wp_json_encode( $editor_settings ) ) . '">' : '';
    8787      // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    88             echo '<textarea name="' . esc_attr( $this->field_name() ) . '"' . $this->field_attributes( $attributes ) . $editor_height . '>' . wp_kses( $this->value, apply_filters( 'sp_tabs_description_allow_tags', $allowed_tags ) ) . '</textarea>';
     88            echo '<textarea name="' . esc_attr( $this->field_name() ) . '"' . $this->field_attributes( $attributes ) . $editor_height . '>' . wp_kses( nl2br( htmlentities( $this->value, ENT_QUOTES, 'UTF-8' ) ), apply_filters( 'sp_tabs_description_allow_tags', $allowed_tags ) ) . '</textarea>';
    8989
    9090            echo ( wptabspro_wp_editor_api() ) ? '</div>' : '';
  • wp-expand-tabs-free/trunk/plugin-main.php

    r2700595 r2711468  
    1212 * Plugin URI:        https://shapedplugin.com/plugin/wp-tabs-pro/?ref=1
    1313 * Description:       WP Tabs is the most user-friendly, highly customizable, responsive WordPress tabs plugin to display your content in a clean organized tabbed navigation.
    14  * Version:           2.1.6
     14 * Version:           2.1.7
    1515 * Author:            ShapedPlugin
    1616 * Author URI:        https://shapedplugin.com/
     
    3232 */
    3333define( 'WP_TABS_NAME', 'WP Tabs' );
    34 define( 'WP_TABS_VERSION', '2.1.6' );
     34define( 'WP_TABS_VERSION', '2.1.7' );
    3535define( 'WP_TABS_BASENAME', plugin_basename( __FILE__ ) );
    3636define( 'WP_TABS_PATH', plugin_dir_path( __FILE__ ) );
  • wp-expand-tabs-free/trunk/public/class-wp-tabs-shortcode.php

    r2700595 r2711468  
    5959     */
    6060    public static function sp_tabs_html_show( $post_id, $sptpro_data_src, $sptpro_shortcode_options, $main_section_title ) {
    61         $sptpro_data_src             = $sptpro_data_src['sptpro_content_source'];
     61        $sptpro_data_src             = isset( $sptpro_data_src['sptpro_content_source'] ) ? $sptpro_data_src['sptpro_content_source'] : null;
    6262        $sptpro_preloader            = isset( $sptpro_shortcode_options['sptpro_preloader'] ) ? $sptpro_shortcode_options['sptpro_preloader'] : false;
    6363        $sptpro_tabs_activator_event = isset( $sptpro_shortcode_options['sptpro_tabs_activator_event'] ) ? $sptpro_shortcode_options['sptpro_tabs_activator_event'] : '';
  • wp-expand-tabs-free/trunk/public/css/wp-tabs-public.css

    r2700595 r2711468  
    1616    margin: 0;
    1717}
    18 
     18img.alignright { float: right; margin: 0 0 1em 1em; }
     19img.alignleft { float: left; margin: 0 1em 1em 0; }
    1920/*=====================Tab Nav Default Style=====================*/
    2021.sp-tab__nav {
  • wp-expand-tabs-free/trunk/public/css/wp-tabs-public.min.css

    r2700595 r2711468  
    1 .sp-tab__lay-default *{box-sizing:border-box}#sp-tab__ul{margin:0;padding:0;font-size:0}#sp-tab__ul li{list-style:none;margin:0}.sp-tab__nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.sp-tab__nav-link{display:flex;flex-direction:column;justify-content:center;align-items:center}.sp-tab__nav-link .sp-tab__tab_title{display:inline-block;margin:0}.sp-tab__nav-link .sp-tab__tab_title:before{display:none}.sp-tab__nav-link:focus,.sp-tab__nav-link:hover{text-decoration:none}.sp-tab__nav-tabs{border-bottom:1px solid #dee2e6}.sp-tab__nav-tabs .sp-tab__nav-link:focus,.sp-tab__nav-tabs .sp-tab__nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.sp-tab__nav-tabs .sp-tab__nav-link.sp-tab__disabled{color:#6c757d;background-color:transparent;border-color:transparent}.sp-tab__nav-tabs .sp-tab__dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.sp-tab__nav-pills .sp-tab__nav-link{border-radius:.25rem}.sp-tab__nav-pills .show>.sp-tab__nav-link,.sp-tab__nav-pills .sp-tab__nav-link.sp-tab__active{color:#fff;background-color:#007bff}.sp-tab__nav-fill .sp-tab__nav-item{flex:1 1 auto;text-align:center}.sp-tab__nav-justified .sp-tab__nav-item{flex-basis:0;flex-grow:1;text-align:center}.sp-tab__tab-content>.sp-tab__tab-pane{display:none;overflow:hidden}.sp-tab__tab-content>.sp-tab__active{display:block}.sp-tab__fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.sp-tab__fade{transition:none}}.sp-tab__fade:not(.sp-tab__show){opacity:0}.sp-tab__lay-default ul>li>a{text-decoration:none;color:#111}.sp-tab__lay-default ul .sp-tab__nav-item:last-child{margin-right:0}.sp-tab__nav-tabs .sp-tab__nav-link.sp-tab__disabled,.sp-tab__nav-tabs .sp-tab__nav-link.sp-tab__disabled i.sp-tab-fa{color:#6c757d;pointer-events:none;cursor:default;background-color:#f6f6f6}.sp-tab__lay-default ul>li>a>span,.sp-tab__lay-default ul>li>label>span{font-size:80%;color:#716c6c;display:flex;align-items:center}div[id^=sp-wp-tabs-wrapper_]{position:relative}.sp-tab__preloader{position:absolute;z-index:999;left:50%;top:50%;transform:translateY(-50%)}.sp-tab__spinner{margin:100px auto;width:50px;height:40px;text-align:center;font-size:10px}.sp-tab__spinner>div{background-color:#333;height:100%;width:6px;display:inline-block;-webkit-animation:sk-stretchdelay 1.2s infinite ease-in-out;animation:sk-stretchdelay 1.2s infinite ease-in-out}.sp-tab__spinner .rect2{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.sp-tab__spinner .rect3{-webkit-animation-delay:-1s;animation-delay:-1s}.sp-tab__spinner .rect4{-webkit-animation-delay:-.9s;animation-delay:-.9s}.sp-tab__spinner .rect5{-webkit-animation-delay:-.8s;animation-delay:-.8s}.sp-tab__tab-content{width:100%}.wp-tab-iframe-container{position:relative;padding-bottom:56.25%;padding-top:25px;height:0}.sp-tab__tab-pane .wp-tab-iframe-container iframe{width:100%!important;height:100%!important;border:none;margin:0;padding:0;position:absolute;top:0;left:0}@-webkit-keyframes sk-stretchdelay{0%,100%,40%{-webkit-transform:scaleY(.4)}20%{-webkit-transform:scaleY(1)}}@keyframes sk-stretchdelay{0%,100%,40%{transform:scaleY(.4);-webkit-transform:scaleY(.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}}.sp-tab__lay-default .sp-tab__tab-content p:empty{display:none}.sp-tab__lay-default .sp-tab__tab-content label{display:inline}.sp-tab__lay-default .sp-tab__tab-content ol,.sp-tab__lay-default .sp-tab__tab-content ul{margin:0}
     1.sp-tab__lay-default *{box-sizing:border-box}#sp-tab__ul{margin:0;padding:0;font-size:0}#sp-tab__ul li{list-style:none;margin:0}img.alignright{float:right;margin:0 0 1em 1em}img.alignleft{float:left;margin:0 1em 1em 0}.sp-tab__nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.sp-tab__nav-link{display:flex;flex-direction:column;justify-content:center;align-items:center}.sp-tab__nav-link .sp-tab__tab_title{display:inline-block;margin:0}.sp-tab__nav-link .sp-tab__tab_title:before{display:none}.sp-tab__nav-link:focus,.sp-tab__nav-link:hover{text-decoration:none}.sp-tab__nav-tabs{border-bottom:1px solid #dee2e6}.sp-tab__nav-tabs .sp-tab__nav-link:focus,.sp-tab__nav-tabs .sp-tab__nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.sp-tab__nav-tabs .sp-tab__nav-link.sp-tab__disabled{color:#6c757d;background-color:transparent;border-color:transparent}.sp-tab__nav-tabs .sp-tab__dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.sp-tab__nav-pills .sp-tab__nav-link{border-radius:.25rem}.sp-tab__nav-pills .show>.sp-tab__nav-link,.sp-tab__nav-pills .sp-tab__nav-link.sp-tab__active{color:#fff;background-color:#007bff}.sp-tab__nav-fill .sp-tab__nav-item{flex:1 1 auto;text-align:center}.sp-tab__nav-justified .sp-tab__nav-item{flex-basis:0;flex-grow:1;text-align:center}.sp-tab__tab-content>.sp-tab__tab-pane{display:none;overflow:hidden}.sp-tab__tab-content>.sp-tab__active{display:block}.sp-tab__fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.sp-tab__fade{transition:none}}.sp-tab__fade:not(.sp-tab__show){opacity:0}.sp-tab__lay-default ul>li>a{text-decoration:none;color:#111}.sp-tab__lay-default ul .sp-tab__nav-item:last-child{margin-right:0}.sp-tab__nav-tabs .sp-tab__nav-link.sp-tab__disabled,.sp-tab__nav-tabs .sp-tab__nav-link.sp-tab__disabled i.sp-tab-fa{color:#6c757d;pointer-events:none;cursor:default;background-color:#f6f6f6}.sp-tab__lay-default ul>li>a>span,.sp-tab__lay-default ul>li>label>span{font-size:80%;color:#716c6c;display:flex;align-items:center}div[id^=sp-wp-tabs-wrapper_]{position:relative}.sp-tab__preloader{position:absolute;z-index:999;left:50%;top:50%;transform:translateY(-50%)}.sp-tab__spinner{margin:100px auto;width:50px;height:40px;text-align:center;font-size:10px}.sp-tab__spinner>div{background-color:#333;height:100%;width:6px;display:inline-block;-webkit-animation:sk-stretchdelay 1.2s infinite ease-in-out;animation:sk-stretchdelay 1.2s infinite ease-in-out}.sp-tab__spinner .rect2{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.sp-tab__spinner .rect3{-webkit-animation-delay:-1s;animation-delay:-1s}.sp-tab__spinner .rect4{-webkit-animation-delay:-.9s;animation-delay:-.9s}.sp-tab__spinner .rect5{-webkit-animation-delay:-.8s;animation-delay:-.8s}.sp-tab__tab-content{width:100%}.wp-tab-iframe-container{position:relative;padding-bottom:56.25%;padding-top:25px;height:0}.sp-tab__tab-pane .wp-tab-iframe-container iframe{width:100%!important;height:100%!important;border:none;margin:0;padding:0;position:absolute;top:0;left:0}@-webkit-keyframes sk-stretchdelay{0%,100%,40%{-webkit-transform:scaleY(.4)}20%{-webkit-transform:scaleY(1)}}@keyframes sk-stretchdelay{0%,100%,40%{transform:scaleY(.4);-webkit-transform:scaleY(.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}}.sp-tab__lay-default .sp-tab__tab-content p:empty{display:none}.sp-tab__lay-default .sp-tab__tab-content label{display:inline}.sp-tab__lay-default .sp-tab__tab-content ol,.sp-tab__lay-default .sp-tab__tab-content ul{margin:0}
  • wp-expand-tabs-free/trunk/public/js/collapse.js

    r2602769 r2711468  
    464464        parent = document.querySelector(this._config.parent);
    465465      }
    466 
     466     
    467467      var selector = "[data-sptoggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
    468       var children = [].slice.call(parent.querySelectorAll(selector));
     468      var children = typeof selector.jquery != 'undefined' ? [].slice.call(parent.querySelectorAll(selector)) : null;
    469469      $(children).each(function (i, element) {
    470470        _this3._addAriaAndCollapsedClass(SP_Collapse_Pro._getTargetFromElement(element), [element]);
  • wp-expand-tabs-free/trunk/public/js/collapse.min.js

    r2602769 r2711468  
    44  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
    55  */
    6 !function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],factory):(global=global||self).SP_Collapse_Pro=factory(global.jQuery,global.Util)}(this,(function($,Util){"use strict";function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter((function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable})))),ownKeys.forEach((function(key){_defineProperty(target,key,source[key])}))}return target}$=$&&$.hasOwnProperty("default")?$.default:$,Util=Util&&Util.hasOwnProperty("default")?Util.default:Util;var TRANSITION_END="transitionend",MILLISECONDS_MULTIPLIER=1e3;function toType(obj){return{}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase()}function getSpecialTransitionEndEvent(){return{bindType:TRANSITION_END,delegateType:TRANSITION_END,handle:function handle(event){if($(event.target).is(this))return event.handleObj.handler.apply(this,arguments)}}}function transitionEndEmulator(duration){var _this=this,called=!1;return $(this).one(Util.TRANSITION_END,(function(){called=!0})),setTimeout((function(){called||Util.triggerTransitionEnd(_this)}),duration),this}function setTransitionEndSupport(){$.fn.emulateTransitionEnd=transitionEndEmulator,$.event.special[Util.TRANSITION_END]=getSpecialTransitionEndEvent()}var Util={TRANSITION_END:"bsTransitionEnd",getUID:function getUID(prefix){do{prefix+=~~(Math.random()*MAX_UID)}while(document.getElementById(prefix));return prefix},getSelectorFromElement:function getSelectorFromElement(element){var selector=element.getAttribute("data-target");if(!selector||"#"===selector){var forAttr=element.getAttribute("for");selector=forAttr&&"#"!==forAttr?forAttr.trim():""}try{return document.querySelector(selector)?selector:null}catch(err){return null}},getTransitionDurationFromElement:function getTransitionDurationFromElement(element){if(!element)return 0;var transitionDuration=$(element).css("transition-duration"),transitionDelay=$(element).css("transition-delay"),floatTransitionDuration=parseFloat(transitionDuration),floatTransitionDelay=parseFloat(transitionDelay);return floatTransitionDuration||floatTransitionDelay?(transitionDuration=transitionDuration.split(",")[0],transitionDelay=transitionDelay.split(",")[0],1e3*(parseFloat(transitionDuration)+parseFloat(transitionDelay))):0},reflow:function reflow(element){return element.offsetHeight},triggerTransitionEnd:function triggerTransitionEnd(element){$(element).trigger(TRANSITION_END)},supportsTransitionEnd:function supportsTransitionEnd(){return Boolean(TRANSITION_END)},isElement:function isElement(obj){return(obj[0]||obj).nodeType},typeCheckConfig:function typeCheckConfig(componentName,config,configTypes){for(var property in configTypes)if(Object.prototype.hasOwnProperty.call(configTypes,property)){var expectedTypes=configTypes[property],value=config[property],valueType=value&&Util.isElement(value)?"element":toType(value);if(!new RegExp(expectedTypes).test(valueType))throw new Error(componentName.toUpperCase()+': Option "'+property+'" provided type "'+valueType+'" but expected type "'+expectedTypes+'".')}},findShadowRoot:function findShadowRoot(element){if(!document.documentElement.attachShadow)return null;if("function"==typeof element.getRootNode){var root=element.getRootNode();return root instanceof ShadowRoot?root:null}return element instanceof ShadowRoot?element:element.parentNode?Util.findShadowRoot(element.parentNode):null}};setTransitionEndSupport();var NAME="collapse",VERSION="4.3.1",DATA_KEY="bs.collapse",EVENT_KEY="."+DATA_KEY,DATA_API_KEY=".data-api",JQUERY_NO_CONFLICT=$.fn[NAME],Default={toggle:!0,parent:""},DefaultType={toggle:"boolean",parent:"(string|element)"},Event={SHOW:"show"+EVENT_KEY,SHOWN:"shown"+EVENT_KEY,HIDE:"hide"+EVENT_KEY,HIDDEN:"hidden"+EVENT_KEY,CLICK_DATA_API:"click.bs.collapse.data-api"},ClassName_SHOW="sp-tab__show",ClassName_COLLAPSE="sp-tab__collapse",ClassName_COLLAPSING="collapsing",ClassName_COLLAPSED="collapsed",Dimension_WIDTH="width",Dimension_HEIGHT="height",Selector_ACTIVES=".sp-tab__show, .collapsing",Selector_DATA_TOGGLE='[data-sptoggle="collapse"]',SP_Collapse_Pro=function(){function SP_Collapse_Pro(element,config){this._isTransitioning=!1,this._element=element,this._config=this._getConfig(config),this._triggerArray=[].slice.call(document.querySelectorAll('[data-sptoggle="collapse"][for="#'+element.id+'"],[data-sptoggle="collapse"][data-sptarget="#'+element.id+'"]'));for(var toggleList=[].slice.call(document.querySelectorAll(Selector_DATA_TOGGLE)),i=0,len=toggleList.length;i<len;i++){var elem=toggleList[i],selector=Util.getSelectorFromElement(elem),filterElement=[].slice.call(document.querySelectorAll(selector)).filter((function(foundElem){return foundElem===element}));null!==selector&&filterElement.length>0&&(this._selector=selector,this._triggerArray.push(elem))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var _proto=SP_Collapse_Pro.prototype;return _proto.toggle=function toggle(){$(this._element).hasClass(ClassName_SHOW)?this.hide():this.show()},_proto.show=function show(){var _this=this,actives,activesData;if(!this._isTransitioning&&!$(this._element).hasClass(ClassName_SHOW)&&(this._parent&&0===(actives=[].slice.call(this._parent.querySelectorAll(Selector_ACTIVES)).filter((function(elem){return"string"==typeof _this._config.parent?elem.getAttribute("data-parent")===_this._config.parent:elem.classList.contains(ClassName_COLLAPSE)}))).length&&(actives=null),!(actives&&(activesData=$(actives).not(this._selector).data(DATA_KEY))&&activesData._isTransitioning))){var startEvent=$.Event(Event.SHOW);if($(this._element).trigger(startEvent),!startEvent.isDefaultPrevented()){actives&&(SP_Collapse_Pro._jQueryInterface.call($(actives).not(this._selector),"hide"),activesData||$(actives).data(DATA_KEY,null));var dimension=this._getDimension();$(this._element).removeClass(ClassName_COLLAPSE).addClass(ClassName_COLLAPSING),this._element.style[dimension]=0,this._triggerArray.length&&$(this._triggerArray).removeClass(ClassName_COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var complete=function complete(){$(_this._element).removeClass(ClassName_COLLAPSING).addClass(ClassName_COLLAPSE).addClass(ClassName_SHOW),_this._element.style[dimension]="",_this.setTransitioning(!1),$(_this._element).trigger(Event.SHOWN)},capitalizedDimension,scrollSize="scroll"+(dimension[0].toUpperCase()+dimension.slice(1)),transitionDuration=Util.getTransitionDurationFromElement(this._element);$(this._element).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration),this._element.style[dimension]=this._element[scrollSize]+"px"}}},_proto.hide=function hide(){var _this2=this;if(!this._isTransitioning&&$(this._element).hasClass(ClassName_SHOW)){var startEvent=$.Event(Event.HIDE);if($(this._element).trigger(startEvent),!startEvent.isDefaultPrevented()){var dimension=this._getDimension();this._element.style[dimension]=this._element.getBoundingClientRect()[dimension]+"px",Util.reflow(this._element),$(this._element).addClass(ClassName_COLLAPSING).removeClass(ClassName_COLLAPSE).removeClass(ClassName_SHOW);var triggerArrayLength=this._triggerArray.length;if(triggerArrayLength>0)for(var i=0;i<triggerArrayLength;i++){var trigger=this._triggerArray[i],selector=Util.getSelectorFromElement(trigger),$elem;if(null!==selector)$([].slice.call(document.querySelectorAll(selector))).hasClass(ClassName_SHOW)||$(trigger).addClass(ClassName_COLLAPSED).attr("aria-expanded",!1)}this.setTransitioning(!0);var complete=function complete(){_this2.setTransitioning(!1),$(_this2._element).removeClass(ClassName_COLLAPSING).addClass(ClassName_COLLAPSE).trigger(Event.HIDDEN)};this._element.style[dimension]="";var transitionDuration=Util.getTransitionDurationFromElement(this._element);$(this._element).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration)}}},_proto.setTransitioning=function setTransitioning(isTransitioning){this._isTransitioning=isTransitioning},_proto.dispose=function dispose(){$.removeData(this._element,DATA_KEY),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},_proto._getConfig=function _getConfig(config){return(config=_objectSpread({},Default,config)).toggle=Boolean(config.toggle),Util.typeCheckConfig(NAME,config,DefaultType),config},_proto._getDimension=function _getDimension(){var hasWidth;return $(this._element).hasClass(Dimension_WIDTH)?Dimension_WIDTH:Dimension_HEIGHT},_proto._getParent=function _getParent(){var _this3=this,parent;Util.isElement(this._config.parent)?(parent=this._config.parent,void 0!==this._config.parent.jquery&&(parent=this._config.parent[0])):parent=document.querySelector(this._config.parent);var selector='[data-sptoggle="collapse"][data-parent="'+this._config.parent+'"]',children=[].slice.call(parent.querySelectorAll(selector));return $(children).each((function(i,element){_this3._addAriaAndCollapsedClass(SP_Collapse_Pro._getTargetFromElement(element),[element])})),parent},_proto._addAriaAndCollapsedClass=function _addAriaAndCollapsedClass(element,triggerArray){var isOpen=$(element).hasClass(ClassName_SHOW);triggerArray.length&&$(triggerArray).toggleClass(ClassName_COLLAPSED,!isOpen).attr("aria-expanded",isOpen)},SP_Collapse_Pro._getTargetFromElement=function _getTargetFromElement(element){var selector=Util.getSelectorFromElement(element);return selector?document.querySelector(selector):null},SP_Collapse_Pro._jQueryInterface=function _jQueryInterface(config){return this.each((function(){var $this=$(this),data=$this.data(DATA_KEY),_config=_objectSpread({},Default,$this.data(),"object"==typeof config&&config?config:{});if(!data&&_config.toggle&&/show|hide/.test(config)&&(_config.toggle=!1),data||(data=new SP_Collapse_Pro(this,_config),$this.data(DATA_KEY,data)),"string"==typeof config){if(void 0===data[config])throw new TypeError('No method named "'+config+'"');data[config]()}}))},_createClass(SP_Collapse_Pro,null,[{key:"VERSION",get:function get(){return"4.3.1"}},{key:"Default",get:function get(){return Default}}]),SP_Collapse_Pro}();return $(document).on(Event.CLICK_DATA_API,Selector_DATA_TOGGLE,(function(event){"A"===event.currentTarget.tagName&&event.preventDefault();var $trigger=$(this),selector=Util.getSelectorFromElement(this),selectors=[].slice.call(document.querySelectorAll(selector));$(selectors).each((function(){var $target=$(this),data,config=$target.data(DATA_KEY)?"toggle":$trigger.data();SP_Collapse_Pro._jQueryInterface.call($target,config)}))})),$.fn[NAME]=SP_Collapse_Pro._jQueryInterface,$.fn[NAME].Constructor=SP_Collapse_Pro,$.fn[NAME].noConflict=function(){return $.fn[NAME]=JQUERY_NO_CONFLICT,SP_Collapse_Pro._jQueryInterface},SP_Collapse_Pro}));
     6!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],factory):(global=global||self).SP_Collapse_Pro=factory(global.jQuery,global.Util)}(this,(function($,Util){"use strict";function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter((function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable})))),ownKeys.forEach((function(key){_defineProperty(target,key,source[key])}))}return target}$=$&&$.hasOwnProperty("default")?$.default:$,Util=Util&&Util.hasOwnProperty("default")?Util.default:Util;var TRANSITION_END="transitionend",MILLISECONDS_MULTIPLIER=1e3;function toType(obj){return{}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase()}function getSpecialTransitionEndEvent(){return{bindType:TRANSITION_END,delegateType:TRANSITION_END,handle:function handle(event){if($(event.target).is(this))return event.handleObj.handler.apply(this,arguments)}}}function transitionEndEmulator(duration){var _this=this,called=!1;return $(this).one(Util.TRANSITION_END,(function(){called=!0})),setTimeout((function(){called||Util.triggerTransitionEnd(_this)}),duration),this}function setTransitionEndSupport(){$.fn.emulateTransitionEnd=transitionEndEmulator,$.event.special[Util.TRANSITION_END]=getSpecialTransitionEndEvent()}var Util={TRANSITION_END:"bsTransitionEnd",getUID:function getUID(prefix){do{prefix+=~~(Math.random()*MAX_UID)}while(document.getElementById(prefix));return prefix},getSelectorFromElement:function getSelectorFromElement(element){var selector=element.getAttribute("data-target");if(!selector||"#"===selector){var forAttr=element.getAttribute("for");selector=forAttr&&"#"!==forAttr?forAttr.trim():""}try{return document.querySelector(selector)?selector:null}catch(err){return null}},getTransitionDurationFromElement:function getTransitionDurationFromElement(element){if(!element)return 0;var transitionDuration=$(element).css("transition-duration"),transitionDelay=$(element).css("transition-delay"),floatTransitionDuration=parseFloat(transitionDuration),floatTransitionDelay=parseFloat(transitionDelay);return floatTransitionDuration||floatTransitionDelay?(transitionDuration=transitionDuration.split(",")[0],transitionDelay=transitionDelay.split(",")[0],1e3*(parseFloat(transitionDuration)+parseFloat(transitionDelay))):0},reflow:function reflow(element){return element.offsetHeight},triggerTransitionEnd:function triggerTransitionEnd(element){$(element).trigger(TRANSITION_END)},supportsTransitionEnd:function supportsTransitionEnd(){return Boolean(TRANSITION_END)},isElement:function isElement(obj){return(obj[0]||obj).nodeType},typeCheckConfig:function typeCheckConfig(componentName,config,configTypes){for(var property in configTypes)if(Object.prototype.hasOwnProperty.call(configTypes,property)){var expectedTypes=configTypes[property],value=config[property],valueType=value&&Util.isElement(value)?"element":toType(value);if(!new RegExp(expectedTypes).test(valueType))throw new Error(componentName.toUpperCase()+': Option "'+property+'" provided type "'+valueType+'" but expected type "'+expectedTypes+'".')}},findShadowRoot:function findShadowRoot(element){if(!document.documentElement.attachShadow)return null;if("function"==typeof element.getRootNode){var root=element.getRootNode();return root instanceof ShadowRoot?root:null}return element instanceof ShadowRoot?element:element.parentNode?Util.findShadowRoot(element.parentNode):null}};setTransitionEndSupport();var NAME="collapse",VERSION="4.3.1",DATA_KEY="bs.collapse",EVENT_KEY="."+DATA_KEY,DATA_API_KEY=".data-api",JQUERY_NO_CONFLICT=$.fn[NAME],Default={toggle:!0,parent:""},DefaultType={toggle:"boolean",parent:"(string|element)"},Event={SHOW:"show"+EVENT_KEY,SHOWN:"shown"+EVENT_KEY,HIDE:"hide"+EVENT_KEY,HIDDEN:"hidden"+EVENT_KEY,CLICK_DATA_API:"click.bs.collapse.data-api"},ClassName_SHOW="sp-tab__show",ClassName_COLLAPSE="sp-tab__collapse",ClassName_COLLAPSING="collapsing",ClassName_COLLAPSED="collapsed",Dimension_WIDTH="width",Dimension_HEIGHT="height",Selector_ACTIVES=".sp-tab__show, .collapsing",Selector_DATA_TOGGLE='[data-sptoggle="collapse"]',SP_Collapse_Pro=function(){function SP_Collapse_Pro(element,config){this._isTransitioning=!1,this._element=element,this._config=this._getConfig(config),this._triggerArray=[].slice.call(document.querySelectorAll('[data-sptoggle="collapse"][for="#'+element.id+'"],[data-sptoggle="collapse"][data-sptarget="#'+element.id+'"]'));for(var toggleList=[].slice.call(document.querySelectorAll(Selector_DATA_TOGGLE)),i=0,len=toggleList.length;i<len;i++){var elem=toggleList[i],selector=Util.getSelectorFromElement(elem),filterElement=[].slice.call(document.querySelectorAll(selector)).filter((function(foundElem){return foundElem===element}));null!==selector&&filterElement.length>0&&(this._selector=selector,this._triggerArray.push(elem))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var _proto=SP_Collapse_Pro.prototype;return _proto.toggle=function toggle(){$(this._element).hasClass(ClassName_SHOW)?this.hide():this.show()},_proto.show=function show(){var _this=this,actives,activesData;if(!this._isTransitioning&&!$(this._element).hasClass(ClassName_SHOW)&&(this._parent&&0===(actives=[].slice.call(this._parent.querySelectorAll(Selector_ACTIVES)).filter((function(elem){return"string"==typeof _this._config.parent?elem.getAttribute("data-parent")===_this._config.parent:elem.classList.contains(ClassName_COLLAPSE)}))).length&&(actives=null),!(actives&&(activesData=$(actives).not(this._selector).data(DATA_KEY))&&activesData._isTransitioning))){var startEvent=$.Event(Event.SHOW);if($(this._element).trigger(startEvent),!startEvent.isDefaultPrevented()){actives&&(SP_Collapse_Pro._jQueryInterface.call($(actives).not(this._selector),"hide"),activesData||$(actives).data(DATA_KEY,null));var dimension=this._getDimension();$(this._element).removeClass(ClassName_COLLAPSE).addClass(ClassName_COLLAPSING),this._element.style[dimension]=0,this._triggerArray.length&&$(this._triggerArray).removeClass(ClassName_COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var complete=function complete(){$(_this._element).removeClass(ClassName_COLLAPSING).addClass(ClassName_COLLAPSE).addClass(ClassName_SHOW),_this._element.style[dimension]="",_this.setTransitioning(!1),$(_this._element).trigger(Event.SHOWN)},capitalizedDimension,scrollSize="scroll"+(dimension[0].toUpperCase()+dimension.slice(1)),transitionDuration=Util.getTransitionDurationFromElement(this._element);$(this._element).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration),this._element.style[dimension]=this._element[scrollSize]+"px"}}},_proto.hide=function hide(){var _this2=this;if(!this._isTransitioning&&$(this._element).hasClass(ClassName_SHOW)){var startEvent=$.Event(Event.HIDE);if($(this._element).trigger(startEvent),!startEvent.isDefaultPrevented()){var dimension=this._getDimension();this._element.style[dimension]=this._element.getBoundingClientRect()[dimension]+"px",Util.reflow(this._element),$(this._element).addClass(ClassName_COLLAPSING).removeClass(ClassName_COLLAPSE).removeClass(ClassName_SHOW);var triggerArrayLength=this._triggerArray.length;if(triggerArrayLength>0)for(var i=0;i<triggerArrayLength;i++){var trigger=this._triggerArray[i],selector=Util.getSelectorFromElement(trigger),$elem;if(null!==selector)$([].slice.call(document.querySelectorAll(selector))).hasClass(ClassName_SHOW)||$(trigger).addClass(ClassName_COLLAPSED).attr("aria-expanded",!1)}this.setTransitioning(!0);var complete=function complete(){_this2.setTransitioning(!1),$(_this2._element).removeClass(ClassName_COLLAPSING).addClass(ClassName_COLLAPSE).trigger(Event.HIDDEN)};this._element.style[dimension]="";var transitionDuration=Util.getTransitionDurationFromElement(this._element);$(this._element).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration)}}},_proto.setTransitioning=function setTransitioning(isTransitioning){this._isTransitioning=isTransitioning},_proto.dispose=function dispose(){$.removeData(this._element,DATA_KEY),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},_proto._getConfig=function _getConfig(config){return(config=_objectSpread({},Default,config)).toggle=Boolean(config.toggle),Util.typeCheckConfig(NAME,config,DefaultType),config},_proto._getDimension=function _getDimension(){var hasWidth;return $(this._element).hasClass(Dimension_WIDTH)?Dimension_WIDTH:Dimension_HEIGHT},_proto._getParent=function _getParent(){var _this3=this,parent;Util.isElement(this._config.parent)?(parent=this._config.parent,void 0!==this._config.parent.jquery&&(parent=this._config.parent[0])):parent=document.querySelector(this._config.parent);var selector='[data-sptoggle="collapse"][data-parent="'+this._config.parent+'"]',children=void 0!==selector.jquery?[].slice.call(parent.querySelectorAll(selector)):null;return $(children).each((function(i,element){_this3._addAriaAndCollapsedClass(SP_Collapse_Pro._getTargetFromElement(element),[element])})),parent},_proto._addAriaAndCollapsedClass=function _addAriaAndCollapsedClass(element,triggerArray){var isOpen=$(element).hasClass(ClassName_SHOW);triggerArray.length&&$(triggerArray).toggleClass(ClassName_COLLAPSED,!isOpen).attr("aria-expanded",isOpen)},SP_Collapse_Pro._getTargetFromElement=function _getTargetFromElement(element){var selector=Util.getSelectorFromElement(element);return selector?document.querySelector(selector):null},SP_Collapse_Pro._jQueryInterface=function _jQueryInterface(config){return this.each((function(){var $this=$(this),data=$this.data(DATA_KEY),_config=_objectSpread({},Default,$this.data(),"object"==typeof config&&config?config:{});if(!data&&_config.toggle&&/show|hide/.test(config)&&(_config.toggle=!1),data||(data=new SP_Collapse_Pro(this,_config),$this.data(DATA_KEY,data)),"string"==typeof config){if(void 0===data[config])throw new TypeError('No method named "'+config+'"');data[config]()}}))},_createClass(SP_Collapse_Pro,null,[{key:"VERSION",get:function get(){return"4.3.1"}},{key:"Default",get:function get(){return Default}}]),SP_Collapse_Pro}();return $(document).on(Event.CLICK_DATA_API,Selector_DATA_TOGGLE,(function(event){"A"===event.currentTarget.tagName&&event.preventDefault();var $trigger=$(this),selector=Util.getSelectorFromElement(this),selectors=[].slice.call(document.querySelectorAll(selector));$(selectors).each((function(){var $target=$(this),data,config=$target.data(DATA_KEY)?"toggle":$trigger.data();SP_Collapse_Pro._jQueryInterface.call($target,config)}))})),$.fn[NAME]=SP_Collapse_Pro._jQueryInterface,$.fn[NAME].Constructor=SP_Collapse_Pro,$.fn[NAME].noConflict=function(){return $.fn[NAME]=JQUERY_NO_CONFLICT,SP_Collapse_Pro._jQueryInterface},SP_Collapse_Pro}));
  • wp-expand-tabs-free/trunk/readme.txt

    r2700595 r2711468  
    44Tags: tabs, horizontal tab, responsive tabs, wordpress tabs, vertical tab, nested tab, posts tab, custom post tabs, tabs from custom taxonomy, deep linking, tab content, tab layout, html tabs, zozo tabs, wpbakery tab, animated tabs, clean tabs, flat ui tabs, best tabs plugin, easy tabs plugin, minimal tabs, side tab, slide tabs, tabbed content, wp tabs, tabs for elementor
    55Requires at least: 4.3
    6 Tested up to: 5.9.2
    7 Stable tag: 2.1.6
     6Tested up to: 5.9.3
     7Stable tag: 2.1.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    243243== Changelog ==
    244244
     245= 2.1.7 - Apr 19, 2022 =
     246* Fix: Tab accordion mode does not work in theme Twenty-twenty theme.
     247* Fix: Media formatting/alignment issues.
     248
    245249= 2.1.6 - Mar 28, 2022 =
    246 * New: Gutenberg Block for WP Tabs
     250* New: Gutenberg Block for WP Tabs.
    247251* Fix: An undefined variable warning ($review) when Review Notice has been dismissed.
    248252* Fix: Problem with iframe embed.
Note: See TracChangeset for help on using the changeset viewer.