Plugin Directory

Changeset 2725318


Ignore:
Timestamp:
05/17/2022 12:34:54 PM (4 years ago)
Author:
shapedplugin
Message:

Release 2.1.10 version

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

Legend:

Unmodified
Added
Removed
  • wp-expand-tabs-free/trunk/admin/GutenbergBlock/build/index.js

    r2700595 r2725318  
    1 /******/ (function() { // webpackBootstrap
    2 /******/    "use strict";
    3 /******/    var __webpack_modules__ = ({
    4 
    5 /***/ "./src/shortcode/blockIcon.js":
    6 /*!************************************!*\
    7   !*** ./src/shortcode/blockIcon.js ***!
    8   \************************************/
    9 /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
    10 
    11 __webpack_require__.r(__webpack_exports__);
    12 /* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/escape-html */ "@wordpress/escape-html");
    13 /* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__);
    14 
    15 const el = wp.element.createElement;
    16 const icons = {};
    17 icons.sptabfreeIcon = el('img', {
    18   src: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_0__.escapeAttribute)(sp_tab_free_gb_block.url + 'admin/GutenbergBlock/assets/wp-tabs-icon.svg')
    19 });
    20 /* harmony default export */ __webpack_exports__["default"] = (icons);
    21 
    22 /***/ }),
    23 
    24 /***/ "./src/shortcode/dynamicShortcode.js":
    25 /*!*******************************************!*\
    26   !*** ./src/shortcode/dynamicShortcode.js ***!
    27   \*******************************************/
    28 /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
    29 
    30 __webpack_require__.r(__webpack_exports__);
    31 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
    32 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
    33 /* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/escape-html */ "@wordpress/escape-html");
    34 /* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_1__);
    35 
    36 
    37 /**
    38  * Shortcode select component.
    39  */
    40 
    41 const {
    42   __
    43 } = wp.i18n;
    44 const {
    45   Fragment
    46 } = wp.element;
    47 const el = wp.element.createElement;
    48 
    49 const DynamicShortcodeInput = _ref => {
    50   let {
    51     attributes: {
    52       shortcode
    53     },
    54     shortCodeList,
    55     shortcodeUpdate
    56   } = _ref;
    57   return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(Fragment, null, el('div', {
    58     className: 'sptabfree-gutenberg-shortcode editor-styles-wrapper'
    59   }, el('select', {
    60     className: 'sptabfree-shortcode-selector',
    61     onChange: e => shortcodeUpdate(e),
    62     value: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_1__.escapeAttribute)(shortcode)
    63   }, el('option', {
    64     value: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_1__.escapeAttribute)('0')
    65   }, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_1__.escapeHTML)(__('-- Select a tabs group --', 'wp-expand-tabs-free'))), shortCodeList.map(shortcode => {
    66     var title = shortcode.title.length > 35 ? shortcode.title.substring(0, 30) + '.... #(' + shortcode.id + ')' : shortcode.title + ' #(' + shortcode.id + ')';
    67     return el('option', {
    68       value: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_1__.escapeAttribute)(shortcode.id.toString()),
    69       key: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_1__.escapeAttribute)(shortcode.id.toString())
    70     }, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_1__.escapeHTML)(title));
    71   }))));
    72 };
    73 
    74 /* harmony default export */ __webpack_exports__["default"] = (DynamicShortcodeInput);
    75 
    76 /***/ }),
    77 
    78 /***/ "@wordpress/block-editor":
    79 /*!*************************************!*\
    80   !*** external ["wp","blockEditor"] ***!
    81   \*************************************/
    82 /***/ (function(module) {
    83 
    84 module.exports = window["wp"]["blockEditor"];
    85 
    86 /***/ }),
    87 
    88 /***/ "@wordpress/element":
    89 /*!*********************************!*\
    90   !*** external ["wp","element"] ***!
    91   \*********************************/
    92 /***/ (function(module) {
    93 
    94 module.exports = window["wp"]["element"];
    95 
    96 /***/ }),
    97 
    98 /***/ "@wordpress/escape-html":
    99 /*!************************************!*\
    100   !*** external ["wp","escapeHtml"] ***!
    101   \************************************/
    102 /***/ (function(module) {
    103 
    104 module.exports = window["wp"]["escapeHtml"];
    105 
    106 /***/ })
    107 
    108 /******/    });
    109 /************************************************************************/
    110 /******/    // The module cache
    111 /******/    var __webpack_module_cache__ = {};
    112 /******/   
    113 /******/    // The require function
    114 /******/    function __webpack_require__(moduleId) {
    115 /******/        // Check if module is in cache
    116 /******/        var cachedModule = __webpack_module_cache__[moduleId];
    117 /******/        if (cachedModule !== undefined) {
    118 /******/            return cachedModule.exports;
    119 /******/        }
    120 /******/        // Create a new module (and put it into the cache)
    121 /******/        var module = __webpack_module_cache__[moduleId] = {
    122 /******/            // no module.id needed
    123 /******/            // no module.loaded needed
    124 /******/            exports: {}
    125 /******/        };
    126 /******/   
    127 /******/        // Execute the module function
    128 /******/        __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
    129 /******/   
    130 /******/        // Return the exports of the module
    131 /******/        return module.exports;
    132 /******/    }
    133 /******/   
    134 /************************************************************************/
    135 /******/    /* webpack/runtime/compat get default export */
    136 /******/    !function() {
    137 /******/        // getDefaultExport function for compatibility with non-harmony modules
    138 /******/        __webpack_require__.n = function(module) {
    139 /******/            var getter = module && module.__esModule ?
    140 /******/                function() { return module['default']; } :
    141 /******/                function() { return module; };
    142 /******/            __webpack_require__.d(getter, { a: getter });
    143 /******/            return getter;
    144 /******/        };
    145 /******/    }();
    146 /******/   
    147 /******/    /* webpack/runtime/define property getters */
    148 /******/    !function() {
    149 /******/        // define getter functions for harmony exports
    150 /******/        __webpack_require__.d = function(exports, definition) {
    151 /******/            for(var key in definition) {
    152 /******/                if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
    153 /******/                    Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
    154 /******/                }
    155 /******/            }
    156 /******/        };
    157 /******/    }();
    158 /******/   
    159 /******/    /* webpack/runtime/hasOwnProperty shorthand */
    160 /******/    !function() {
    161 /******/        __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
    162 /******/    }();
    163 /******/   
    164 /******/    /* webpack/runtime/make namespace object */
    165 /******/    !function() {
    166 /******/        // define __esModule on exports
    167 /******/        __webpack_require__.r = function(exports) {
    168 /******/            if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
    169 /******/                Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
    170 /******/            }
    171 /******/            Object.defineProperty(exports, '__esModule', { value: true });
    172 /******/        };
    173 /******/    }();
    174 /******/   
    175 /************************************************************************/
    176 var __webpack_exports__ = {};
    177 // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
    178 !function() {
    179 /*!**********************!*\
    180   !*** ./src/index.js ***!
    181   \**********************/
    182 __webpack_require__.r(__webpack_exports__);
    183 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
    184 /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
    185 /* harmony import */ var _shortcode_blockIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./shortcode/blockIcon */ "./src/shortcode/blockIcon.js");
    186 /* harmony import */ var _shortcode_dynamicShortcode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shortcode/dynamicShortcode */ "./src/shortcode/dynamicShortcode.js");
    187 /* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/escape-html */ "@wordpress/escape-html");
    188 /* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__);
    189 /* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
    190 /* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__);
    191 
    192 
    193 
    194 
    195 
    196 const {
    197   __
    198 } = wp.i18n;
    199 const {
    200   registerBlockType
    201 } = wp.blocks;
    202 const {
    203   PanelBody,
    204   PanelRow
    205 } = wp.components;
    206 const {
    207   Fragment
    208 } = wp.element;
    209 const ServerSideRender = wp.serverSideRender;
    210 const el = wp.element.createElement;
    211 /**
    212  * Register: aa Gutenberg Block.
    213  */
    214 
    215 registerBlockType("sp-wp-tabs-free/shortcode", {
    216   title: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeHTML)(__("WP Tabs", "wp-expand-tabs-free")),
    217   description: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeHTML)(__("Use WP Tabs to insert a tabs group in your page", "wp-expand-tabs-free")),
    218   icon: _shortcode_blockIcon__WEBPACK_IMPORTED_MODULE_1__["default"].sptabfreeIcon,
    219   category: "common",
    220   supports: {
    221     html: true
    222   },
    223   edit: props => {
    224     const {
    225       attributes,
    226       setAttributes
    227     } = props;
    228     var shortCodeList = sp_tab_free_gb_block.shortCodeList;
    229 
    230     let scriptLoad = shortcodeId => {
    231       let sptabfreeBlockLoaded = false;
    232       let sptabfreeBlockLoadedInterval = setInterval(function () {
    233         let uniqId = jQuery("#sp-wp-tabs-wrapper_" + shortcodeId).parents().attr('id');
    234 
    235         if (document.getElementById(uniqId)) {
    236           jQuery.getScript(sp_tab_free_gb_block.loadPublic);
    237           sptabfreeBlockLoaded = true;
    238           uniqId = '';
    239         }
    240 
    241         if (sptabfreeBlockLoaded) {
    242           clearInterval(sptabfreeBlockLoadedInterval);
    243         }
    244 
    245         if (0 == shortcodeId) {
    246           clearInterval(sptabfreeBlockLoadedInterval);
    247         }
    248       }, 10);
    249     };
    250 
    251     let updateShortcode = updateShortcode => {
    252       setAttributes({
    253         shortcode: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeAttribute)(updateShortcode.target.value)
    254       });
    255     };
    256 
    257     let shortcodeUpdate = e => {
    258       updateShortcode(e);
    259       let shortcodeId = (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeAttribute)(e.target.value);
    260       scriptLoad(shortcodeId);
    261     };
    262 
    263     document.addEventListener('readystatechange', event => {
    264       if (event.target.readyState === "complete") {
    265         let shortcodeId = (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeAttribute)(attributes.shortcode);
    266         scriptLoad(shortcodeId);
    267       }
    268     });
    269 
    270     if (attributes.preview) {
    271       return el('div', {
    272         className: 'sptabfree_shortcode_block_preview_image'
    273       }, el('img', {
    274         src: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeAttribute)(sp_tab_free_gb_block.url + "admin/GutenbergBlock/assets/wp-tabs-block-preview.svg")
    275       }));
    276     }
    277 
    278     if (shortCodeList.length === 0) {
    279       return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(Fragment, null, el('div', {
    280         className: 'components-placeholder components-placeholder is-large'
    281       }, el('div', {
    282         className: 'components-placeholder__label'
    283       }, el('img', {
    284         className: 'block-editor-block-icon',
    285         src: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeAttribute)(sp_tab_free_gb_block.url + "admin/GutenbergBlock/assets/wp-tabs-icon.svg")
    286       }), (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeHTML)(__("WP Tabs", "wp-expand-tabs-free"))), el('div', {
    287         className: 'components-placeholder__instructions'
    288       }, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeHTML)(__("No shortcode found. ", "wp-expand-tabs-free")), el('a', {
    289         href: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeAttribute)(sp_tab_free_gb_block.link)
    290       }, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeHTML)(__("Create a shortcode now!", "wp-expand-tabs-free"))))));
    291     }
    292 
    293     if (!attributes.shortcode || attributes.shortcode == 0) {
    294       return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.InspectorControls, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(PanelBody, {
    295         title: "WP Tabs"
    296       }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(PanelRow, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_shortcode_dynamicShortcode__WEBPACK_IMPORTED_MODULE_2__["default"], {
    297         attributes: attributes,
    298         shortCodeList: shortCodeList,
    299         shortcodeUpdate: shortcodeUpdate
    300       })))), el('div', {
    301         className: 'components-placeholder components-placeholder is-large'
    302       }, el('div', {
    303         className: 'components-placeholder__label'
    304       }, el('img', {
    305         className: 'block-editor-block-icon',
    306         src: (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeAttribute)(sp_tab_free_gb_block.url + "admin/GutenbergBlock/assets/wp-tabs-icon.svg")
    307       }), (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeHTML)(__("WP Tabs", "wp-expand-tabs-free"))), el('div', {
    308         className: 'components-placeholder__instructions'
    309       }, (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeHTML)(__("Select a tabs group", "wp-expand-tabs-free"))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_shortcode_dynamicShortcode__WEBPACK_IMPORTED_MODULE_2__["default"], {
    310         attributes: attributes,
    311         shortCodeList: shortCodeList,
    312         shortcodeUpdate: shortcodeUpdate
    313       })));
    314     }
    315 
    316     return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.InspectorControls, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(PanelBody, {
    317       title: "WP Tabs"
    318     }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(PanelRow, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_shortcode_dynamicShortcode__WEBPACK_IMPORTED_MODULE_2__["default"], {
    319       attributes: attributes,
    320       shortCodeList: shortCodeList,
    321       shortcodeUpdate: shortcodeUpdate
    322     })))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(ServerSideRender, {
    323       block: "sp-wp-tabs-free/shortcode",
    324       attributes: attributes
    325     }));
    326   },
    327 
    328   save() {
    329     // Rendering in PHP
    330     return null;
    331   }
    332 
    333 });
    334 }();
    335 /******/ })()
    336 ;
    337 //# sourceMappingURL=index.js.map
     1!function(){"use strict";var e=window.wp.element,t=window.wp.escapeHtml;const a=wp.element.createElement,s={};s.sptabfreeIcon=a("img",{src:(0,t.escapeAttribute)(sp_tab_free_gb_block.url+"admin/GutenbergBlock/assets/wp-tabs-icon.svg")});var r=s;const{__:__}=wp.i18n,{Fragment:o}=wp.element,c=wp.element.createElement;var l=a=>{let{attributes:{shortcode:s},shortCodeList:r,shortcodeUpdate:l}=a;return(0,e.createElement)(o,null,c("div",{className:"sptabfree-gutenberg-shortcode editor-styles-wrapper"},c("select",{className:"sptabfree-shortcode-selector",onChange:e=>l(e),value:(0,t.escapeAttribute)(s)},c("option",{value:(0,t.escapeAttribute)("0")},(0,t.escapeHTML)(__("-- Select a tabs group --","wp-expand-tabs-free"))),r.map((e=>{var a=e.title.length>35?e.title.substring(0,30)+".... #("+e.id+")":e.title+" #("+e.id+")";return c("option",{value:(0,t.escapeAttribute)(e.id.toString()),key:(0,t.escapeAttribute)(e.id.toString())},(0,t.escapeHTML)(a))})))))},n=window.wp.blockEditor;const{__:p}=wp.i18n,{registerBlockType:i}=wp.blocks,{PanelBody:b,PanelRow:d}=wp.components,{Fragment:m}=wp.element,u=wp.serverSideRender,_=wp.element.createElement;i("sp-wp-tabs-pro/shortcode",{title:(0,t.escapeHTML)(p("WP Tabs","wp-expand-tabs-free")),description:(0,t.escapeHTML)(p("Use WP Tabs to insert a tabs group in your page","wp-expand-tabs-free")),icon:r.sptabfreeIcon,category:"common",supports:{html:!0},edit:a=>{const{attributes:s,setAttributes:r}=a;var o=sp_tab_free_gb_block.shortCodeList;let c=e=>{let t=!1,a=setInterval((function(){let s=jQuery("#sp-wp-tabs-wrapper_"+e).parents().attr("id");document.getElementById(s)&&(jQuery.getScript(sp_tab_free_gb_block.loadPublic),t=!0,s=""),t&&clearInterval(a),0==e&&clearInterval(a)}),10)},i=e=>{var a;a=e,r({shortcode:(0,t.escapeAttribute)(a.target.value)});let s=(0,t.escapeAttribute)(e.target.value);c(s)};return document.addEventListener("readystatechange",(e=>{if("complete"===e.target.readyState){let e=(0,t.escapeAttribute)(s.shortcode);c(e)}})),s.preview?_("div",{className:"sptabfree_shortcode_block_preview_image"},_("img",{src:(0,t.escapeAttribute)(sp_tab_free_gb_block.url+"admin/GutenbergBlock/assets/wp-tabs-block-preview.svg")})):0===o.length?(0,e.createElement)(m,null,_("div",{className:"components-placeholder components-placeholder is-large"},_("div",{className:"components-placeholder__label"},_("img",{className:"block-editor-block-icon",src:(0,t.escapeAttribute)(sp_tab_free_gb_block.url+"admin/GutenbergBlock/assets/wp-tabs-icon.svg")}),(0,t.escapeHTML)(p("WP Tabs","wp-expand-tabs-free"))),_("div",{className:"components-placeholder__instructions"},(0,t.escapeHTML)(p("No shortcode found. ","wp-expand-tabs-free")),_("a",{href:(0,t.escapeAttribute)(sp_tab_free_gb_block.link)},(0,t.escapeHTML)(p("Create a shortcode now!","wp-expand-tabs-free")))))):s.shortcode&&0!=s.shortcode?(0,e.createElement)(m,null,(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(b,{title:"WP Tabs"},(0,e.createElement)(d,null,(0,e.createElement)(l,{attributes:s,shortCodeList:o,shortcodeUpdate:i})))),(0,e.createElement)(u,{block:"sp-wp-tabs-pro/shortcode",attributes:s})):(0,e.createElement)(m,null,(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(b,{title:"WP Tabs"},(0,e.createElement)(d,null,(0,e.createElement)(l,{attributes:s,shortCodeList:o,shortcodeUpdate:i})))),_("div",{className:"components-placeholder components-placeholder is-large"},_("div",{className:"components-placeholder__label"},_("img",{className:"block-editor-block-icon",src:(0,t.escapeAttribute)(sp_tab_free_gb_block.url+"admin/GutenbergBlock/assets/wp-tabs-icon.svg")}),(0,t.escapeHTML)(p("WP Tabs","wp-expand-tabs-free"))),_("div",{className:"components-placeholder__instructions"},(0,t.escapeHTML)(p("Select a tabs group","wp-expand-tabs-free"))),(0,e.createElement)(l,{attributes:s,shortCodeList:o,shortcodeUpdate:i})))},save:()=>null})}();
  • wp-expand-tabs-free/trunk/admin/GutenbergBlock/class-wp-tabs-free-gutenberg-block-init.php

    r2700595 r2725318  
    110110             */
    111111            register_block_type(
    112                 'sp-wp-tabs-free/shortcode',
     112                'sp-wp-tabs-pro/shortcode',
    113113                array(
    114114                    'attributes'      => array(
  • wp-expand-tabs-free/trunk/admin/partials/models/fields/wp_editor/wp_editor.php

    r2711468 r2725318  
    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( nl2br( htmlentities( $this->value, ENT_QUOTES, 'UTF-8' ) ), 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( $this->value, apply_filters( 'sp_tabs_description_allow_tags', $allowed_tags ) ) . '</textarea>';
    8989
    9090            echo ( wptabspro_wp_editor_api() ) ? '</div>' : '';
  • wp-expand-tabs-free/trunk/includes/class-wp-tabs-updates.php

    r2700595 r2725318  
    2828     */
    2929    private static $updates = array(
    30         '2.0.3' => 'updates/update-2.0.3.php',
     30        '2.0.3'  => 'updates/update-2.0.3.php',
     31        '2.1.10' => 'updates/update-2.1.10.php',
    3132    );
    3233
  • wp-expand-tabs-free/trunk/plugin-main.php

    r2719252 r2725318  
    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.9
     14 * Version:           2.1.10
    1515 * Author:            ShapedPlugin
    1616 * Author URI:        https://shapedplugin.com/
     
    3232 */
    3333define( 'WP_TABS_NAME', 'WP Tabs' );
    34 define('WP_TABS_VERSION', '2.1.9');
     34define( 'WP_TABS_VERSION', '2.1.10' );
    3535define( 'WP_TABS_BASENAME', plugin_basename( __FILE__ ) );
    3636define( 'WP_TABS_PATH', plugin_dir_path( __FILE__ ) );
  • wp-expand-tabs-free/trunk/public/css/wp-tabs-public.css

    r2711468 r2725318  
    1616    margin: 0;
    1717}
    18 img.alignright { float: right; margin: 0 0 1em 1em; }
    19 img.alignleft { float: left; margin: 0 1em 1em 0; }
     18
     19img.alignright {
     20    float: right;
     21    margin: 0 0 1em 1em;
     22}
     23
     24img.alignleft {
     25    float: left;
     26    margin: 0 1em 1em 0;
     27}
     28
    2029/*=====================Tab Nav Default Style=====================*/
    2130.sp-tab__nav {
     
    2938.sp-tab__nav-link {
    3039    display: flex;
    31     flex-direction: column;
     40    flex-direction: column;
    3241    justify-content: center;
    3342    align-items: center;
     
    141150    color: #716c6c;
    142151    display: flex;
    143     align-items: center;
     152    align-items: center;
    144153}
    145154
     
    151160
    152161.sp-tab__preloader {
    153     position: absolute;
    154     z-index: 999;
    155     left: 50%;
    156     top: 50%;
    157     transform: translateY(-50%);
     162    position: absolute;
     163    z-index: 999;
     164    left: 50%;
     165    top: 50%;
     166    transform: translateY(-50%);
    158167}
    159168
    160169.sp-tab__spinner {
    161   margin: 100px auto;
    162   width: 50px;
    163   height: 40px;
    164   text-align: center;
    165   font-size: 10px;
    166 }
    167 
    168 .sp-tab__spinner > div {
    169   background-color: #333;
    170   height: 100%;
    171   width: 6px;
    172   display: inline-block;
    173 
    174   -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
    175   animation: sk-stretchdelay 1.2s infinite ease-in-out;
     170    margin: 100px auto;
     171    width: 50px;
     172    height: 40px;
     173    text-align: center;
     174    font-size: 10px;
     175}
     176
     177.sp-tab__spinner>div {
     178    background-color: #333;
     179    height: 100%;
     180    width: 6px;
     181    display: inline-block;
     182
     183    -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
     184    animation: sk-stretchdelay 1.2s infinite ease-in-out;
    176185}
    177186
    178187.sp-tab__spinner .rect2 {
    179   -webkit-animation-delay: -1.1s;
    180   animation-delay: -1.1s;
     188    -webkit-animation-delay: -1.1s;
     189    animation-delay: -1.1s;
    181190}
    182191
    183192.sp-tab__spinner .rect3 {
    184   -webkit-animation-delay: -1.0s;
    185   animation-delay: -1.0s;
     193    -webkit-animation-delay: -1.0s;
     194    animation-delay: -1.0s;
    186195}
    187196
    188197.sp-tab__spinner .rect4 {
    189   -webkit-animation-delay: -0.9s;
    190   animation-delay: -0.9s;
     198    -webkit-animation-delay: -0.9s;
     199    animation-delay: -0.9s;
    191200}
    192201
    193202.sp-tab__spinner .rect5 {
    194   -webkit-animation-delay: -0.8s;
    195   animation-delay: -0.8s;
    196 }
     203    -webkit-animation-delay: -0.8s;
     204    animation-delay: -0.8s;
     205}
     206
    197207.sp-tab__tab-content {
    198     width: 100%;
    199 }
     208    width: 100%;
     209}
     210
    200211.wp-tab-iframe-container {
    201212    position: relative;
    202     padding-bottom: 56.25%; /* 16:9 */
    203     padding-top: 25px;
    204     height: 0;
    205 }
     213    padding-bottom: 56.25%;
     214    /* 16:9 */
     215    padding-top: 25px;
     216    height: 0;
     217}
     218
    206219.sp-tab__tab-pane .wp-tab-iframe-container iframe {
    207220    width: 100% !important;
    208     height: 100% !important;
    209     border: none;
    210     margin: 0;
    211     padding: 0;
     221    height: 100% !important;
     222    border: none;
     223    margin: 0;
     224    padding: 0;
    212225    position: absolute;
    213     top: 0;
    214     left: 0;
     226    top: 0;
     227    left: 0;
    215228}
    216229
    217230
    218231@-webkit-keyframes sk-stretchdelay {
    219   0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
    220   20% { -webkit-transform: scaleY(1.0) }
     232    0%, 40%, 100% {
     233        -webkit-transform: scaleY(0.4)
     234    }
     235
     236    20% {
     237        -webkit-transform: scaleY(1.0)
     238    }
    221239}
    222240
    223241@keyframes sk-stretchdelay {
    224   0%, 40%, 100% {
    225     transform: scaleY(0.4);
    226     -webkit-transform: scaleY(0.4);
    227   }  20% {
    228     transform: scaleY(1.0);
    229     -webkit-transform: scaleY(1.0);
    230   }
     242    0%, 40%, 100% {
     243        transform: scaleY(0.4);
     244        -webkit-transform: scaleY(0.4);
     245    }
     246
     247    20% {
     248        transform: scaleY(1.0);
     249        -webkit-transform: scaleY(1.0);
     250    }
    231251}
    232252
     
    234254    display: none;
    235255}
     256
    236257.sp-tab__lay-default .sp-tab__tab-content label {
    237258    display: inline;
    238259}
     260
    239261.sp-tab__lay-default .sp-tab__tab-content ul,
    240262.sp-tab__lay-default .sp-tab__tab-content ol {
    241     margin: 0;
    242 }
     263    margin: 0 0 1rem 1rem;
     264}
     265
     266.sp-tab__lay-default .sp-tab__tab-content .sp-tab-content ul {
     267    list-style: inherit;
     268}
  • wp-expand-tabs-free/trunk/public/css/wp-tabs-public.min.css

    r2711468 r2725318  
    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}
     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 0 1rem 1rem}.sp-tab__lay-default .sp-tab__tab-content .sp-tab-content ul{list-style:inherit}
  • wp-expand-tabs-free/trunk/public/dynamic_style.php

    r2700595 r2725318  
    123123#sp-wp-tabs-wrapper_' . $post_id . '.sp-tab__lay-default ul .sp-tab__nav-item {
    124124    margin-right: ' . $sptpro_margin_between_tabs . 'px;
     125    margin-top: 5px;
    125126}
    126127#sp-wp-tabs-wrapper_' . $post_id . '.sp-tab__lay-default ul .sp-tab__nav-item:last-child {
  • wp-expand-tabs-free/trunk/public/partials/section-title.php

    r2621218 r2725318  
    1313
    1414$sptpro_section_title               = isset( $sptpro_shortcode_options['sptpro_section_title'] ) ? $sptpro_shortcode_options['sptpro_section_title'] : false;
    15 $sptpro_section_title_margin_bottom = isset( $sptpro_shortcode_options['sptpro_section_title_margin_bottom']['all'] ) ? $sptpro_shortcode_options['sptpro_section_title_margin_bottom']['all'] : '';
     15$sptpro_section_title_margin_bottom = isset( $sptpro_shortcode_options['sptpro_section_title_margin_bottom']['all'] ) && ! empty( $sptpro_shortcode_options['sptpro_section_title_margin_bottom']['all'] ) ? $sptpro_shortcode_options['sptpro_section_title_margin_bottom']['all'] : '30';
    1616if ( $sptpro_section_title ) { ?>
    1717    <h2 class="sp-tab__section_title_<?php echo esc_html( $post_id ); ?>"> <?php echo wp_kses_post( $main_section_title ); ?></h2>
  • wp-expand-tabs-free/trunk/readme.txt

    r2719252 r2725318  
    55Requires at least: 4.3
    66Tested up to: 6.0
    7 Stable tag: 2.1.9
     7Stable tag: 2.1.10
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    243243== Changelog ==
    244244
     245= 2.1.10 - May 17, 2022 =
     246* Tested: WordPress 6.0 compatibility.
     247* Fix: Extra p tag added in ul tag after saving accordion shortcode multiple times.
     248* Fix: Multiple tabs break down into two lines then these tabs take space.
     249* Fix: CSS warning for the margin-bottom of the section title when it has no value in the backend field.
     250
    245251= 2.1.9 - May 06, 2022 =
    246252* Fix: URL in tab content does not work.
Note: See TracChangeset for help on using the changeset viewer.