Plugin Directory

Changeset 2342256


Ignore:
Timestamp:
07/17/2020 11:58:24 AM (5 years ago)
Author:
gpriday
Message:

2.11.1 release

Location:
siteorigin-panels
Files:
14 added
12 deleted
20 edited
27 copied

Legend:

Unmodified
Added
Removed
  • siteorigin-panels/tags/2.11.1/compat/js/siteorigin-panels-layout-block.js

    r2316661 r2342256  
    11"use strict";
    22
    3 function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
     3function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
    44
    55function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
     
    104104      var $panelsContainer = jQuery(this.panelsContainer.current);
    105105      var config = {
    106         editorType: 'standalone'
     106        editorType: 'standalone',
     107        loadLiveEditor: false,
     108        postId: soPanelsBlockEditorAdmin.postId,
     109        liveEditorPreview: soPanelsBlockEditorAdmin.liveEditor
    107110      };
    108111      var builderModel = new panels.model.builder();
     
    279282      if (!_.isEmpty(newPanelsData.widgets)) {
    280283        // Send panelsData to server for sanitization.
     284        wp.data.dispatch('core/editor').lockPostSaving();
    281285        jQuery.post(panelsOptions.ajaxurl, {
    282286          action: 'so_panels_builder_content_json',
     
    295299
    296300          setAttributes(panelsAttributes);
     301          wp.data.dispatch('core/editor').unlockPostSaving();
    297302        });
    298303      }
  • siteorigin-panels/tags/2.11.1/compat/js/siteorigin-panels-layout-block.min.js

    r2316661 r2342256  
    1 "use strict";function _typeof(e){return(_typeof="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)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _lodash=lodash,isEqual=_lodash.isEqual,debounce=_lodash.debounce,isEmpty=_lodash.isEmpty,isFunction=_lodash.isFunction,registerBlockType=wp.blocks.registerBlockType,_wp$element=wp.element,Component=_wp$element.Component,Fragment=_wp$element.Fragment,RawHTML=_wp$element.RawHTML,createRef=_wp$element.createRef,BlockControls=wp.editor.BlockControls,_wp$components=wp.components,Toolbar=_wp$components.Toolbar,IconButton=_wp$components.IconButton,Spinner=_wp$components.Spinner,__=wp.i18n.__,_window=window,soPanelsBlockEditorAdmin=_window.soPanelsBlockEditorAdmin,SiteOriginPanelsLayoutBlock=function(e){function t(e){var n;_classCallCheck(this,t),n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e));var i="edit"===soPanelsBlockEditorAdmin.defaultMode||isEmpty(e.panelsData);return n.state={editing:i,loadingPreview:!i,previewHtml:""},n.panelsContainer=createRef(),n.previewContainer=createRef(),n.panelsInitialized=!1,n.previewInitialized=!1,n}return _inherits(t,Component),_createClass(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.state.editing?this.setupPanels():this.state.editing||this.previewInitialized||(this.fetchPreview(this.props),this.fetchPreview=debounce(this.fetchPreview,500))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1,this.builderView&&this.builderView.off("content_change")}},{key:"componentDidUpdate",value:function(e){this.state.editing&&!this.panelsInitialized?this.setupPanels():this.state.loadingPreview?this.fetchPreview(this.props):!this.previewInitialized&&this.previewContainer.current&&(jQuery(document).trigger("panels_setup_preview"),this.previewInitialized=!0)}},{key:"setupPanels",value:function(){var e=this,t=jQuery(this.panelsContainer.current),n=new panels.model.builder;this.builderView=new panels.view.builder({model:n,config:{editorType:"standalone"}});var i=JSON.parse(JSON.stringify(jQuery.extend({},this.props.panelsData))),o=function(){isFunction(e.props.onRowOrWidgetMouseDown)&&e.props.onRowOrWidgetMouseDown();jQuery(document).on("mouseup",(function t(){jQuery(document).off("mouseup",t),isFunction(e.props.onRowOrWidgetMouseUp)&&e.props.onRowOrWidgetMouseUp()}))};this.builderView.on("row_added",(function(){e.builderView.$(".so-row-move").off("mousedown",o),e.builderView.$(".so-row-move").on("mousedown",o),e.builderView.$(".so-widget").off("mousedown",o),e.builderView.$(".so-widget").on("mousedown",o)})),this.builderView.on("widget_added",(function(){e.builderView.$(".so-widget").off("mousedown",o),e.builderView.$(".so-widget").on("mousedown",o)})),this.builderView.render().attach({container:t}).setData(i),this.builderView.trigger("builder_resize"),this.builderView.on("content_change",(function(){var t=e.builderView.getData();e.panelsDataChanged=!isEqual(i,t),e.panelsDataChanged&&(e.props.onContentChange&&isFunction(e.props.onContentChange)&&e.props.onContentChange(t),e.setState({loadingPreview:!0,previewHtml:""}))})),jQuery(document).trigger("panels_setup",this.builderView),this.panelsInitialized=!0}},{key:"fetchPreview",value:function(e){var t=this;if(this.isStillMounted){this.previewInitialized=!1;var n=this.currentFetchRequest=jQuery.post({url:soPanelsBlockEditorAdmin.previewUrl,data:{action:"so_panels_layout_block_preview",panelsData:JSON.stringify(e.panelsData)}}).then((function(e){t.isStillMounted&&n===t.currentFetchRequest&&e&&t.setState({previewHtml:e,loadingPreview:!1})}));return n}}},{key:"render",value:function(){var e=this,t=this.props.panelsData;if(this.state.editing)return React.createElement(Fragment,null,React.createElement(BlockControls,null,React.createElement(Toolbar,null,React.createElement(IconButton,{icon:"visibility",className:"components-icon-button components-toolbar__control",label:__("Preview layout.","siteorigin-panels"),onClick:function(){t&&e.setState({editing:!1})}}))),React.createElement("div",{key:"layout-block",className:"siteorigin-panels-layout-block-container",ref:this.panelsContainer}));var n=this.state.loadingPreview;return React.createElement(Fragment,null,React.createElement(BlockControls,null,React.createElement(Toolbar,null,React.createElement(IconButton,{icon:"edit",className:"components-icon-button components-toolbar__control",label:__("Edit layout.","siteorigin-panels"),onClick:function(){e.panelsInitialized=!1,e.setState({editing:!0})}}))),React.createElement("div",{key:"preview",className:"so-panels-block-layout-preview-container"},n?React.createElement("div",{className:"so-panels-spinner-container"},React.createElement("span",null,React.createElement(Spinner,null))):React.createElement("div",{className:"so-panels-raw-html-container",ref:this.previewContainer},React.createElement(RawHTML,null,this.state.previewHtml))))}}]),t}();registerBlockType("siteorigin-panels/layout-block",{title:__("SiteOrigin Layout","siteorigin-panels"),description:__("Build a layout using SiteOrigin's Page Builder.","siteorigin-panels"),icon:function(){return React.createElement("span",{className:"siteorigin-panels-block-icon"})},category:"layout",keywords:["page builder","column,grid","panel"],supports:{html:!1},attributes:{panelsData:{type:"object"},contentPreview:{type:"string"}},edit:function(e){var t=e.attributes,n=e.setAttributes,i=e.toggleSelection;return React.createElement(SiteOriginPanelsLayoutBlock,{panelsData:t.panelsData,onContentChange:function(e){_.isEmpty(e.widgets)||jQuery.post(panelsOptions.ajaxurl,{action:"so_panels_builder_content_json",panels_data:JSON.stringify(e),post_id:wp.data.select("core/editor").getCurrentPostId()},(function(e){var t={};""!==e.sanitized_panels_data&&(t.panelsData=e.sanitized_panels_data),""!==e.preview&&(t.contentPreview=e.preview),n(t)}))},onRowOrWidgetMouseDown:function(){i(!1)},onRowOrWidgetMouseUp:function(){i(!0)}})},save:function(e){var t=e.attributes;return t.hasOwnProperty("contentPreview")?React.createElement(RawHTML,null,t.contentPreview):null}}),function(e){soPanelsBlockEditorAdmin.showAddButton&&e((function(){setTimeout((function(){var t=wp.data.dispatch("core/editor"),n=wp.data.select("core/editor"),i=e("#siteorigin-panels-add-layout-block-button").html(),o=e(i).insertAfter(".editor-writing-flow > div:first, .block-editor-writing-flow > div:not([tabindex])");o.on("click",(function(){var e=wp.blocks.createBlock("siteorigin-panels/layout-block",{});if(n.isEditedPostEmpty()){var i=n.getBlocks();i.length?t.replaceBlock(i[0].clientId,e):t.insertBlock(e)}else t.insertBlock(e)}));var r=function(){wp.data.select("core/editor").isEditedPostEmpty()?o.show():o.hide()};wp.data.subscribe(r),r()}),100)}))}(jQuery);
     1"use strict";function _typeof(e){return(_typeof="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)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _lodash=lodash,isEqual=_lodash.isEqual,debounce=_lodash.debounce,isEmpty=_lodash.isEmpty,isFunction=_lodash.isFunction,registerBlockType=wp.blocks.registerBlockType,_wp$element=wp.element,Component=_wp$element.Component,Fragment=_wp$element.Fragment,RawHTML=_wp$element.RawHTML,createRef=_wp$element.createRef,BlockControls=wp.editor.BlockControls,_wp$components=wp.components,Toolbar=_wp$components.Toolbar,IconButton=_wp$components.IconButton,Spinner=_wp$components.Spinner,__=wp.i18n.__,_window=window,soPanelsBlockEditorAdmin=_window.soPanelsBlockEditorAdmin,SiteOriginPanelsLayoutBlock=function(e){function t(e){var n;_classCallCheck(this,t),n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e));var i="edit"===soPanelsBlockEditorAdmin.defaultMode||isEmpty(e.panelsData);return n.state={editing:i,loadingPreview:!i,previewHtml:""},n.panelsContainer=createRef(),n.previewContainer=createRef(),n.panelsInitialized=!1,n.previewInitialized=!1,n}return _inherits(t,Component),_createClass(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.state.editing?this.setupPanels():this.state.editing||this.previewInitialized||(this.fetchPreview(this.props),this.fetchPreview=debounce(this.fetchPreview,500))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1,this.builderView&&this.builderView.off("content_change")}},{key:"componentDidUpdate",value:function(e){this.state.editing&&!this.panelsInitialized?this.setupPanels():this.state.loadingPreview?this.fetchPreview(this.props):!this.previewInitialized&&this.previewContainer.current&&(jQuery(document).trigger("panels_setup_preview"),this.previewInitialized=!0)}},{key:"setupPanels",value:function(){var e=this,t=jQuery(this.panelsContainer.current),n={editorType:"standalone",loadLiveEditor:!1,postId:soPanelsBlockEditorAdmin.postId,liveEditorPreview:soPanelsBlockEditorAdmin.liveEditor},i=new panels.model.builder;this.builderView=new panels.view.builder({model:i,config:n});var o=JSON.parse(JSON.stringify(jQuery.extend({},this.props.panelsData))),r=function(){isFunction(e.props.onRowOrWidgetMouseDown)&&e.props.onRowOrWidgetMouseDown();jQuery(document).on("mouseup",(function t(){jQuery(document).off("mouseup",t),isFunction(e.props.onRowOrWidgetMouseUp)&&e.props.onRowOrWidgetMouseUp()}))};this.builderView.on("row_added",(function(){e.builderView.$(".so-row-move").off("mousedown",r),e.builderView.$(".so-row-move").on("mousedown",r),e.builderView.$(".so-widget").off("mousedown",r),e.builderView.$(".so-widget").on("mousedown",r)})),this.builderView.on("widget_added",(function(){e.builderView.$(".so-widget").off("mousedown",r),e.builderView.$(".so-widget").on("mousedown",r)})),this.builderView.render().attach({container:t}).setData(o),this.builderView.trigger("builder_resize"),this.builderView.on("content_change",(function(){var t=e.builderView.getData();e.panelsDataChanged=!isEqual(o,t),e.panelsDataChanged&&(e.props.onContentChange&&isFunction(e.props.onContentChange)&&e.props.onContentChange(t),e.setState({loadingPreview:!0,previewHtml:""}))})),jQuery(document).trigger("panels_setup",this.builderView),this.panelsInitialized=!0}},{key:"fetchPreview",value:function(e){var t=this;if(this.isStillMounted){this.previewInitialized=!1;var n=this.currentFetchRequest=jQuery.post({url:soPanelsBlockEditorAdmin.previewUrl,data:{action:"so_panels_layout_block_preview",panelsData:JSON.stringify(e.panelsData)}}).then((function(e){t.isStillMounted&&n===t.currentFetchRequest&&e&&t.setState({previewHtml:e,loadingPreview:!1})}));return n}}},{key:"render",value:function(){var e=this,t=this.props.panelsData;if(this.state.editing)return React.createElement(Fragment,null,React.createElement(BlockControls,null,React.createElement(Toolbar,null,React.createElement(IconButton,{icon:"visibility",className:"components-icon-button components-toolbar__control",label:__("Preview layout.","siteorigin-panels"),onClick:function(){t&&e.setState({editing:!1})}}))),React.createElement("div",{key:"layout-block",className:"siteorigin-panels-layout-block-container",ref:this.panelsContainer}));var n=this.state.loadingPreview;return React.createElement(Fragment,null,React.createElement(BlockControls,null,React.createElement(Toolbar,null,React.createElement(IconButton,{icon:"edit",className:"components-icon-button components-toolbar__control",label:__("Edit layout.","siteorigin-panels"),onClick:function(){e.panelsInitialized=!1,e.setState({editing:!0})}}))),React.createElement("div",{key:"preview",className:"so-panels-block-layout-preview-container"},n?React.createElement("div",{className:"so-panels-spinner-container"},React.createElement("span",null,React.createElement(Spinner,null))):React.createElement("div",{className:"so-panels-raw-html-container",ref:this.previewContainer},React.createElement(RawHTML,null,this.state.previewHtml))))}}]),t}();registerBlockType("siteorigin-panels/layout-block",{title:__("SiteOrigin Layout","siteorigin-panels"),description:__("Build a layout using SiteOrigin's Page Builder.","siteorigin-panels"),icon:function(){return React.createElement("span",{className:"siteorigin-panels-block-icon"})},category:"layout",keywords:["page builder","column,grid","panel"],supports:{html:!1},attributes:{panelsData:{type:"object"},contentPreview:{type:"string"}},edit:function(e){var t=e.attributes,n=e.setAttributes,i=e.toggleSelection;return React.createElement(SiteOriginPanelsLayoutBlock,{panelsData:t.panelsData,onContentChange:function(e){_.isEmpty(e.widgets)||(wp.data.dispatch("core/editor").lockPostSaving(),jQuery.post(panelsOptions.ajaxurl,{action:"so_panels_builder_content_json",panels_data:JSON.stringify(e),post_id:wp.data.select("core/editor").getCurrentPostId()},(function(e){var t={};""!==e.sanitized_panels_data&&(t.panelsData=e.sanitized_panels_data),""!==e.preview&&(t.contentPreview=e.preview),n(t),wp.data.dispatch("core/editor").unlockPostSaving()})))},onRowOrWidgetMouseDown:function(){i(!1)},onRowOrWidgetMouseUp:function(){i(!0)}})},save:function(e){var t=e.attributes;return t.hasOwnProperty("contentPreview")?React.createElement(RawHTML,null,t.contentPreview):null}}),function(e){soPanelsBlockEditorAdmin.showAddButton&&e((function(){setTimeout((function(){var t=wp.data.dispatch("core/editor"),n=wp.data.select("core/editor"),i=e("#siteorigin-panels-add-layout-block-button").html(),o=e(i).insertAfter(".editor-writing-flow > div:first, .block-editor-writing-flow > div:not([tabindex])");o.on("click",(function(){var e=wp.blocks.createBlock("siteorigin-panels/layout-block",{});if(n.isEditedPostEmpty()){var i=n.getBlocks();i.length?t.replaceBlock(i[0].clientId,e):t.insertBlock(e)}else t.insertBlock(e)}));var r=function(){wp.data.select("core/editor").isEditedPostEmpty()?o.show():o.hide()};wp.data.subscribe(r),r()}),100)}))}(jQuery);
  • siteorigin-panels/tags/2.11.1/compat/layout-block.php

    r2141880 r2342256  
    5959                    'sanitizeUrl' => wp_nonce_url( admin_url( 'admin-ajax.php' ), 'layout-block-sanitize', '_panelsnonce' ),
    6060                    'previewUrl' => wp_nonce_url( admin_url( 'admin-ajax.php' ), 'layout-block-preview', '_panelsnonce' ),
     61                    'postId' => get_the_ID(),
     62                    'liveEditor' => SiteOrigin_Panels::preview_url(),
    6163                    'defaultMode' => siteorigin_panels_setting( 'layout-block-default-mode' ),
    6264                    'showAddButton' => apply_filters( 'siteorigin_layout_block_show_add_button', $is_panels_post_type ),
  • siteorigin-panels/tags/2.11.1/inc/admin.php

    r2316661 r2342256  
    7171
    7272        // Enqueue Yoast compatibility
    73         add_action( 'admin_print_scripts-post-new.php', array( $this, 'enqueue_yoast_compat' ), 100 );
    74         add_action( 'admin_print_scripts-post.php', array( $this, 'enqueue_yoast_compat' ), 100 );
     73        add_action( 'admin_print_scripts-post-new.php', array( $this, 'enqueue_seo_compat' ), 100 );
     74        add_action( 'admin_print_scripts-post.php', array( $this, 'enqueue_seo_compat' ), 100 );
    7575
    7676        // Block editor specific actions
     
    527527    }
    528528
    529     public function enqueue_yoast_compat(){
    530         if( self::is_admin() && defined( 'WPSEO_FILE' ) && wp_script_is( 'yoast-seo-metabox' ) ) {
    531             wp_enqueue_script(
    532                 'so-panels-yoast-compat',
    533                 siteorigin_panels_url( 'js/yoast-compat' . SITEORIGIN_PANELS_JS_SUFFIX . '.js' ),
    534                 array('jquery', 'yoast-seo-metabox' ),
    535                 SITEORIGIN_PANELS_VERSION,
    536                 true
    537             );
    538         }
     529    public function enqueue_seo_compat(){
     530        if ( self::is_admin() ) {
     531            if ( defined( 'WPSEO_FILE' ) && wp_script_is( 'yoast-seo-metabox' ) ) {
     532                wp_enqueue_script(
     533                    'so-panels-seo-compat',
     534                    siteorigin_panels_url( 'js/seo-compat' . SITEORIGIN_PANELS_JS_SUFFIX . '.js' ),
     535                    array('jquery', 'yoast-seo-metabox' ),
     536                    SITEORIGIN_PANELS_VERSION,
     537                    true
     538                );
     539            } elseif ( defined( 'RANK_MATH_VERSION' ) && wp_script_is( 'rank-math-analyzer' ) ) {
     540                wp_enqueue_script(
     541                    'so-panels-seo-compat',
     542                    siteorigin_panels_url( 'js/seo-compat' . SITEORIGIN_PANELS_JS_SUFFIX . '.js' ),
     543                    array('jquery', 'rank-math-analyzer' ),
     544                    SITEORIGIN_PANELS_VERSION,
     545                    true
     546                );
     547            }
     548        }
    539549    }
    540550
     
    10131023     */
    10141024    function is_core_js_widget( $widget ) {
    1015         $js_widgets = array(
    1016             'WP_Widget_Custom_HTML',
    1017             'WP_Widget_Media_Audio',
    1018             'WP_Widget_Media_Gallery',
    1019             'WP_Widget_Media_Image',
    1020             'WP_Widget_Media_Video',
    1021             'WP_Widget_Text',
     1025        $js_widgets = apply_filters(
     1026            'siteorigin_panels_core_js_widgets',
     1027            array(
     1028                'WP_Widget_Custom_HTML',
     1029                'WP_Widget_Media_Audio',
     1030                'WP_Widget_Media_Gallery',
     1031                'WP_Widget_Media_Image',
     1032                'WP_Widget_Media_Video',
     1033                'WP_Widget_Text',
     1034            )
    10221035        );
    10231036
  • siteorigin-panels/tags/2.11.1/inc/css-builder.php

    r2316661 r2342256  
    2929                for( $i = 0; $i < count( $v ); $i++ ) {
    3030                    if ( ! strlen( (string) $v[ $i ] ) ) continue;
    31                     $attribute_string[] = esc_html( $k ) . ':' . esc_html( $v[ $i ] );
     31                    $attribute_string[] = wp_strip_all_tags( $k ) . ':' . wp_strip_all_tags( $v[ $i ] );
    3232                }
    3333            }
    3434            else {
    3535                if ( ! strlen( (string) $v ) ) continue;
    36                 $attribute_string[] = esc_html( $k ) . ':' . esc_html( $v );
     36                $attribute_string[] = wp_strip_all_tags( $k ) . ':' . wp_strip_all_tags( $v );
    3737            }
    3838        }
  • siteorigin-panels/tags/2.11.1/inc/settings.php

    r2141880 r2342256  
    123123        $defaults['admin-widget-count']     = false;
    124124        $defaults['parallax-motion']        = '';
     125        $defaults['parallax-mobile']        = false;
    125126        $defaults['sidebars-emulator']      = true;
    126127        $defaults['layout-block-default-mode'] = 'preview';
     
    283284            'label'       => __( 'Limit Parallax Motion', 'siteorigin-panels' ),
    284285            'description' => __( 'How many pixels of scrolling result in a single pixel of parallax motion. 0 means automatic. Lower values give more noticeable effect.', 'siteorigin-panels' ),
     286        );
     287
     288        $fields['general']['fields']['parallax-mobile'] = array(
     289            'type'        => 'checkbox',
     290            'label'       => __( 'Disable Parallax On Mobile', 'siteorigin-panels' ),
     291            'description' => __( 'Disable row/widget background parallax when the browser is smaller than the mobile width.', 'siteorigin-panels' ),
    285292        );
    286293
  • siteorigin-panels/tags/2.11.1/inc/styles-admin.php

    r2143504 r2342256  
    305305                            class="widefat <?php if ( $field['type'] == 'code' ) {
    306306                                echo 'so-field-code';
    307                             } ?>" rows="4"><?php echo esc_textarea( $current ) ?></textarea><?php
     307                            } ?>" rows="4"><?php echo esc_textarea( stripslashes( $current ) ) ?></textarea><?php
    308308                break;
    309309        }
  • siteorigin-panels/tags/2.11.1/inc/styles.php

    r2316661 r2342256  
    5555            SITEORIGIN_PANELS_VERSION
    5656        );
     57        wp_localize_script( 'siteorigin-panels-front-styles', 'panelsStyles', array(
     58            'fullContainer' => apply_filters( 'siteorigin_panels_full_width_container', siteorigin_panels_setting( 'full-width-container' ) ),
     59        ) );
    5760        wp_register_script(
    5861            'siteorigin-parallax',
     
    6164            SITEORIGIN_PANELS_VERSION
    6265        );
    63         wp_localize_script( 'siteorigin-panels-front-styles', 'panelsStyles', array(
    64             'fullContainer' => apply_filters( 'siteorigin_panels_full_width_container', siteorigin_panels_setting( 'full-width-container' ) )
     66        wp_localize_script( 'siteorigin-parallax', 'parallaxStyles', array(
     67            'parallax-mobile' => ! empty( siteorigin_panels_setting( 'parallax-mobile' ) ) ?: siteorigin_panels_setting( 'parallax-mobile' ),
     68            'mobile-breakpoint' => siteorigin_panels_setting( 'mobile-width' ) . 'px',
    6569        ) );
    6670    }
  • siteorigin-panels/tags/2.11.1/inc/widgets/layout.php

    r2141880 r2342256  
    103103            $instance['panels_data'] = json_encode( $instance['panels_data'] );
    104104        }
    105        
     105
     106        $builder_supports = apply_filters( 'siteorigin_panels_layout_builder_supports', array(), $instance['panels_data'] );
    106107        ?>
    107         <div class="siteorigin-page-builder-widget" id="siteorigin-page-builder-widget-<?php echo esc_attr( $form_id ) ?>" data-builder-id="<?php echo esc_attr( $form_id ) ?>" data-type="layout_widget">
     108        <div class="siteorigin-page-builder-widget" id="siteorigin-page-builder-widget-<?php echo esc_attr( $form_id ) ?>"
     109            data-builder-id="<?php echo esc_attr( $form_id ) ?>"
     110            data-type="layout_widget"
     111            data-builder-supports="<?php echo esc_attr( json_encode( $builder_supports ) ) ?>"
     112            >
    108113            <p>
    109114                <button class="button-secondary siteorigin-panels-display-builder" ><?php _e('Open Builder', 'siteorigin-panels') ?></button>
  • siteorigin-panels/tags/2.11.1/inc/widgets/post-loop.php

    r2188804 r2342256  
    1212    static $current_loop_template;
    1313    static $current_loop_instance;
     14    static $current_pagination_id;
    1415
    1516    /**
     
    5657    static function get_current_loop_instance() {
    5758        return self::$current_loop_instance;
     59    }
     60
     61    /**
     62     * The pagination id used in custom format pagination links
     63     *
     64     * @return array
     65     */
     66    static function get_current_pagination_id() {
     67        return self::$current_pagination_id;
    5868    }
    5969
     
    135145                // When the widget appears on a sub page.
    136146                $query_args['paged'] = get_query_var('paged');
    137             }
    138             elseif( strpos( $_SERVER['REQUEST_URI'], '/page/' ) !== false ) {
     147            } else if ( strpos( $_SERVER['REQUEST_URI'], '/page/' ) !== false ) {
    139148                // When the widget appears on the home page.
    140149                preg_match('/\/page\/([0-9]+)\//', $_SERVER['REQUEST_URI'], $matches);
    141150                if(!empty($matches[1])) $query_args['paged'] = intval($matches[1]);
    142151                else $query_args['paged'] = 1;
    143             }
    144             else $query_args['paged'] = 1;
    145         }
    146         else {
     152            } else {
     153                self::$current_pagination_id = strstr( $instance['panels_info']['widget_id'], '-', true );
     154                if ( isset( $_GET[ 'page-' . self::$current_pagination_id ] ) && is_numeric( $_GET[ 'page-' . self::$current_pagination_id ] ) ) {
     155                    $query_args['paged'] = $_GET[ 'page-' . self::$current_pagination_id ];
     156                } else {
     157                    $query_args['paged'] = 1;
     158                }
     159            }
     160        } else {
    147161            // Get current page number when we're not using permalinks
    148162            $query_args['paged'] = isset($_GET['paged']) ? intval($_GET['paged']) : 1;
     
    201215        self::$current_loop_instance = null;
    202216        self::$current_loop_template = null;
     217        self::$current_pagination_id = null;
    203218
    204219        echo $args['after_widget'];
  • siteorigin-panels/tags/2.11.1/js/siteorigin-parallax.js

    r1516353 r2342256  
    3333
    3434        var setupParallax = function( ){
     35            // Check if we need to disable parallax on mobiles.
     36            if (
     37                typeof parallaxStyles != 'undefined' &&
     38                parallaxStyles['parallax-mobile'] &&
     39                window.matchMedia( '(max-width: ' + parallaxStyles['mobile-breakpoint'] + ')' ).matches
     40            ) {
     41                $$.css( 'background-position', '50% 50%' );
     42                return;
     43            }
     44
    3545            try {
    3646                var wrapperSize = [
  • siteorigin-panels/tags/2.11.1/js/siteorigin-parallax.min.js

    r2278148 r2342256  
    33 * @license GPL 3.0 http://www.gnu.org/licenses/gpl.html
    44 */
    5 !function(i){i.fn.siteOriginParallax=function(o){var a=i(this);if("refreshParallax"===o)return a.trigger("refreshParallax");null===(o=i.extend({backgroundUrl:null,backgroundSize:null,backgroundAspectRatio:null,backgroundSizing:"scaled",limitMotion:"auto"},o)).backgroundAspectRatio&&(o.backgroundAspectRatio=o.backgroundSize[0]/o.backgroundSize[1]);var n=function(){try{var n,r=[a.outerWidth(),a.outerHeight()],t=a[0].getBoundingClientRect(),e=i(window).outerHeight();void 0===a.data("siteorigin-parallax-init")&&a.css({"background-image":"url("+o.backgroundUrl+")"}),n="auto"===o.limitMotion?e<720?.55:e>1300?.45:-17e-5*(e-720)+.55:parseFloat(o.limitMotion);var c=((t.bottom+(t.top-e))/(e+t.height)-1)/-2,s=0,u=1,l=o.backgroundSize;if("scaled"===o.backgroundSizing){var g=r[1]/(n||1),d=r[0]/l[0];if(g>l[1]*d&&(d=g/l[1],n=!1),a.css("background-size",l[0]*d+"px "+l[1]*d+"px"),t.top>-r[1]&&t.bottom-e<r[1]){var b=l[1]*d;n&&b>e*n&&(c=c*(u=e*n/b)+(1-u)/2),s=-(b-r[1])*c}a.css("background-position","50% "+s+"px")}else"original"===o.backgroundSizing&&(n&&l[1]>e*n&&(c=c*(u=e*n/l[1])+(1-u)/2),s=-(l[1]-r[1])*c,a.css("background-size","auto"),a.css("background-position","50% "+s+"px"))}catch(i){console.log(i.message),a.css({"background-size":"scaled"===o.backgroundSizing?"cover":"auto","background-position":"50% 50%"})}};n(),i(window).on("scroll",n),i(window).on("resize",n),i(window).on("panelsStretchRows",n),a.on("refreshParallax",n),setTimeout((function(){n()}),100)}}(jQuery),jQuery((function(i){i("[data-siteorigin-parallax]").each((function(){i(this).siteOriginParallax(i(this).data("siteorigin-parallax"))}))}));
     5!function(a){a.fn.siteOriginParallax=function(i){var o=a(this);if("refreshParallax"===i)return o.trigger("refreshParallax");null===(i=a.extend({backgroundUrl:null,backgroundSize:null,backgroundAspectRatio:null,backgroundSizing:"scaled",limitMotion:"auto"},i)).backgroundAspectRatio&&(i.backgroundAspectRatio=i.backgroundSize[0]/i.backgroundSize[1]);var n=function(){if("undefined"!=typeof parallaxStyles&&parallaxStyles["parallax-mobile"]&&window.matchMedia("(max-width: "+parallaxStyles["mobile-breakpoint"]+")").matches)o.css("background-position","50% 50%");else try{var n,t=[o.outerWidth(),o.outerHeight()],r=o[0].getBoundingClientRect(),e=a(window).outerHeight();void 0===o.data("siteorigin-parallax-init")&&o.css({"background-image":"url("+i.backgroundUrl+")"}),n="auto"===i.limitMotion?e<720?.55:e>1300?.45:-17e-5*(e-720)+.55:parseFloat(i.limitMotion);var l=((r.bottom+(r.top-e))/(e+r.height)-1)/-2,s=0,c=1,u=i.backgroundSize;if("scaled"===i.backgroundSizing){var g=t[1]/(n||1),d=t[0]/u[0];if(g>u[1]*d&&(d=g/u[1],n=!1),o.css("background-size",u[0]*d+"px "+u[1]*d+"px"),r.top>-t[1]&&r.bottom-e<t[1]){var b=u[1]*d;n&&b>e*n&&(l=l*(c=e*n/b)+(1-c)/2),s=-(b-t[1])*l}o.css("background-position","50% "+s+"px")}else"original"===i.backgroundSizing&&(n&&u[1]>e*n&&(l=l*(c=e*n/u[1])+(1-c)/2),s=-(u[1]-t[1])*l,o.css("background-size","auto"),o.css("background-position","50% "+s+"px"))}catch(a){console.log(a.message),o.css({"background-size":"scaled"===i.backgroundSizing?"cover":"auto","background-position":"50% 50%"})}};n(),a(window).on("scroll",n),a(window).on("resize",n),a(window).on("panelsStretchRows",n),o.on("refreshParallax",n),setTimeout((function(){n()}),100)}}(jQuery),jQuery((function(a){a("[data-siteorigin-parallax]").each((function(){a(this).siteOriginParallax(a(this).data("siteorigin-parallax"))}))}));
  • siteorigin-panels/tags/2.11.1/lang/siteorigin-panels.pot

    r2316661 r2342256  
    3737msgstr ""
    3838
    39 #: siteorigin-panels.php:338
     39#: siteorigin-panels.php:349
    4040msgid "Read More"
    4141msgstr ""
    4242
    43 #: siteorigin-panels.php:486
     43#: siteorigin-panels.php:497
    4444msgid "Edit Home Page"
    4545msgstr ""
    4646
    47 #: siteorigin-panels.php:506, tpl/js-templates.php:34, tpl/js-templates.php:36
     47#: siteorigin-panels.php:517, tpl/js-templates.php:34, tpl/js-templates.php:36
    4848msgid "Live Editor"
    4949msgstr ""
    5050
    51 #: compat/layout-block.php:87
     51#: compat/layout-block.php:89
    5252msgid "You need to add a widget, row, or prebuilt layout before you'll see anything here. :)"
    5353msgstr ""
     
    142142msgstr ""
    143143
    144 #: inc/admin-widget-dialog.php:185, inc/settings.php:350
     144#: inc/admin-widget-dialog.php:185, inc/settings.php:357
    145145msgid "Recommended Widgets"
    146146msgstr ""
     
    158158msgstr ""
    159159
    160 #: inc/admin.php:179, inc/admin.php:575, inc/admin.php:1224, inc/admin.php:1229, inc/settings.php:199, tpl/js-templates.php:197
     160#: inc/admin.php:179, inc/admin.php:585, inc/admin.php:1237, inc/admin.php:1242, inc/settings.php:200, tpl/js-templates.php:197
    161161msgid "Page Builder"
    162162msgstr ""
     
    407407msgstr ""
    408408
    409 #: inc/admin.php:461, inc/admin.php:469, inc/styles.php:189, tpl/js-templates.php:62
     409#: inc/admin.php:461, inc/admin.php:469, inc/styles.php:193, tpl/js-templates.php:62
    410410msgid "Row"
    411411msgstr ""
     
    427427msgstr ""
    428428
    429 #: inc/admin.php:468, inc/styles.php:341, tpl/js-templates.php:61
     429#: inc/admin.php:468, inc/styles.php:345, tpl/js-templates.php:61
    430430msgid "Widget"
    431431msgstr ""
     
    456456
    457457#. translators: This is the default name given to a user's home page
    458 #: inc/admin.php:658, inc/home.php:26
     458#: inc/admin.php:668, inc/home.php:26
    459459msgid "Home Page"
    460460msgstr ""
    461461
    462 #: inc/admin.php:759
     462#: inc/admin.php:769
    463463msgid "Untitled Widget"
    464464msgstr ""
    465465
    466 #: inc/admin.php:939
     466#: inc/admin.php:949
    467467msgid "You need to install 1{%1$s} to use the widget 2{%2$s}."
    468468msgstr ""
    469469
    470 #: inc/admin.php:945
     470#: inc/admin.php:955
    471471msgid "Save and reload this page to start using the widget after you've installed it."
    472472msgstr ""
    473473
    474 #: inc/admin.php:961
     474#: inc/admin.php:971
    475475msgid "The widget 1{%1$s} is not available. Please try locate and install the missing plugin. Post on the 2{support forums} if you need help."
    476476msgstr ""
    477477
    478 #: inc/admin.php:1127, inc/styles-admin.php:23
     478#: inc/admin.php:1140, inc/styles-admin.php:23
    479479msgid "The supplied nonce is invalid."
    480480msgstr ""
    481481
    482 #: inc/admin.php:1128, inc/styles-admin.php:24
     482#: inc/admin.php:1141, inc/styles-admin.php:24
    483483msgid "Invalid nonce."
    484484msgstr ""
    485485
    486 #: inc/admin.php:1134
     486#: inc/admin.php:1147
    487487msgid "Please specify the type of widget form to be rendered."
    488488msgstr ""
    489489
    490 #: inc/admin.php:1135
     490#: inc/admin.php:1148
    491491msgid "Missing widget type."
    492492msgstr ""
    493493
    494 #: inc/admin.php:1242
     494#: inc/admin.php:1255
    495495msgid "%s Widget"
    496496msgid_plural "%s Widgets"
     
    498498msgstr[1] ""
    499499
    500 #: inc/admin.php:1285
     500#: inc/admin.php:1298
    501501msgid "Get a lightbox addon for SiteOrigin widgets"
    502502msgstr ""
    503503
    504 #: inc/admin.php:1289
     504#: inc/admin.php:1302
    505505msgid "Get the row, cell and widget animations addon"
    506506msgstr ""
    507507
    508 #: inc/admin.php:1293
     508#: inc/admin.php:1306
    509509msgid "Get premium email support for SiteOrigin Page Builder"
    510510msgstr ""
    511511
    512 #: inc/admin.php:1478
     512#: inc/admin.php:1491
    513513msgid "Toggle editor selection menu"
    514514msgstr ""
    515515
    516 #: inc/admin.php:1479, inc/admin.php:1526, inc/settings.php:199, settings/tpl/settings.php:9
     516#: inc/admin.php:1492, inc/admin.php:1539, inc/settings.php:200, settings/tpl/settings.php:9
    517517msgid "SiteOrigin Page Builder"
    518518msgstr ""
    519519
    520 #: inc/admin.php:1480
     520#: inc/admin.php:1493
    521521msgid "Block Editor"
    522522msgstr ""
     
    530530msgstr ""
    531531
    532 #: inc/settings.php:226
     532#: inc/settings.php:227
    533533msgid "Page Builder Settings"
    534534msgstr ""
    535535
    536 #: inc/settings.php:242
     536#: inc/settings.php:243
    537537msgid "General"
    538538msgstr ""
    539539
    540 #: inc/settings.php:248
     540#: inc/settings.php:249
    541541msgid "Post Types"
    542542msgstr ""
    543543
    544 #: inc/settings.php:250
     544#: inc/settings.php:251
    545545msgid "The post types on which to use Page Builder."
    546546msgstr ""
    547547
    548 #: inc/settings.php:255
     548#: inc/settings.php:256
    549549msgid "Use Classic Editor for new posts"
    550550msgstr ""
    551551
    552 #: inc/settings.php:256
     552#: inc/settings.php:257
    553553msgid "New posts of the above Post Types will be created using the Classic Editor."
    554554msgstr ""
    555555
    556 #: inc/settings.php:261
     556#: inc/settings.php:262
    557557msgid "Live Editor Quick Link"
    558558msgstr ""
    559559
    560 #: inc/settings.php:262
     560#: inc/settings.php:263
    561561msgid "Display a Live Editor button in the admin bar."
    562562msgstr ""
    563563
    564 #: inc/settings.php:267
     564#: inc/settings.php:268
    565565msgid "Display Post State"
    566566msgstr ""
    567567
    568 #: inc/settings.php:269
     568#: inc/settings.php:270
    569569msgid "Display a %sSiteOrigin Page Builder%s post state in the admin lists of posts/pages to indicate Page Builder is active."
    570570msgstr ""
    571571
    572 #: inc/settings.php:277
     572#: inc/settings.php:278
    573573msgid "Display Widget Count"
    574574msgstr ""
    575575
    576 #: inc/settings.php:278
     576#: inc/settings.php:279
    577577msgid "Display a widget count in the admin lists of posts/pages where you're using Page Builder."
    578578msgstr ""
    579579
    580 #: inc/settings.php:283
     580#: inc/settings.php:284
    581581msgid "Limit Parallax Motion"
    582582msgstr ""
    583583
    584 #: inc/settings.php:284
     584#: inc/settings.php:285
    585585msgid "How many pixels of scrolling result in a single pixel of parallax motion. 0 means automatic. Lower values give more noticeable effect."
    586586msgstr ""
    587587
    588 #: inc/settings.php:289
     588#: inc/settings.php:290
     589msgid "Disable Parallax On Mobile"
     590msgstr ""
     591
     592#: inc/settings.php:291
     593msgid "Disable row/widget background parallax when the browser is smaller than the mobile width."
     594msgstr ""
     595
     596#: inc/settings.php:296
    589597msgid "Sidebars Emulator"
    590598msgstr ""
    591599
    592 #: inc/settings.php:290
     600#: inc/settings.php:297
    593601msgid "Page Builder will create an emulated sidebar, that contains all widgets in the page."
    594602msgstr ""
    595603
    596 #: inc/settings.php:295
     604#: inc/settings.php:302
    597605msgid "Upgrade Teaser"
    598606msgstr ""
    599607
    600 #: inc/settings.php:297
     608#: inc/settings.php:304
    601609msgid "Display the %sSiteOrigin Premium%s upgrade teaser in the Page Builder toolbar."
    602610msgstr ""
    603611
    604 #: inc/settings.php:305
     612#: inc/settings.php:312
    605613msgid "Default To Page Builder Interface"
    606614msgstr ""
    607615
    608 #: inc/settings.php:307
     616#: inc/settings.php:314
    609617msgid "New Classic Editor posts/pages that you create will start with the Page Builder loaded. The %s\"Use Classic Editor for new posts\"%s setting must be enabled."
    610618msgstr ""
    611619
    612 #: inc/settings.php:314
     620#: inc/settings.php:321
    613621msgid "Layout Block Default Mode"
    614622msgstr ""
    615623
    616 #: inc/settings.php:317, tpl/js-templates.php:141
     624#: inc/settings.php:324, tpl/js-templates.php:141
    617625msgid "Edit"
    618626msgstr ""
    619627
    620 #: inc/settings.php:318
     628#: inc/settings.php:325
    621629msgid "Preview"
    622630msgstr ""
    623631
    624 #: inc/settings.php:320
     632#: inc/settings.php:327
    625633msgid "Whether to display layout blocks in edit mode or preview mode in the block editor."
    626634msgstr ""
    627635
    628 #: inc/settings.php:326
     636#: inc/settings.php:333
    629637msgid "Widgets"
    630638msgstr ""
    631639
    632 #: inc/settings.php:332
     640#: inc/settings.php:339
    633641msgid "Widget Title HTML"
    634642msgstr ""
    635643
    636 #: inc/settings.php:333
     644#: inc/settings.php:340
    637645msgid "The HTML used for widget titles. {{title}} is replaced with the widget title."
    638646msgstr ""
    639647
    640 #: inc/settings.php:338
     648#: inc/settings.php:345
    641649msgid "Add Widget Class"
    642650msgstr ""
    643651
    644 #: inc/settings.php:339
     652#: inc/settings.php:346
    645653msgid "Add the widget class to Page Builder widgets. Disable this if you're experiencing conflicts."
    646654msgstr ""
    647655
    648 #: inc/settings.php:344
     656#: inc/settings.php:351
    649657msgid "Legacy Bundled Widgets"
    650658msgstr ""
    651659
    652 #: inc/settings.php:345
     660#: inc/settings.php:352
    653661msgid "Load legacy widgets from Page Builder 1."
    654662msgstr ""
    655663
    656 #: inc/settings.php:351
     664#: inc/settings.php:358
    657665msgid "Display recommend widgets in Page Builder add widget dialog."
    658666msgstr ""
    659667
    660 #: inc/settings.php:356
     668#: inc/settings.php:363
    661669msgid "Instant Open Widgets"
    662670msgstr ""
    663671
    664 #: inc/settings.php:357
     672#: inc/settings.php:364
    665673msgid "Open a widget form as soon as its added to a page."
    666674msgstr ""
    667675
    668 #: inc/settings.php:363, inc/styles-admin.php:88
     676#: inc/settings.php:370, inc/styles-admin.php:88
    669677msgid "Layout"
    670678msgstr ""
    671679
    672 #: inc/settings.php:371
     680#: inc/settings.php:378
    673681msgid "Responsive Layout"
    674682msgstr ""
    675683
    676 #: inc/settings.php:372
     684#: inc/settings.php:379
    677685msgid "Collapse widgets, rows and columns on mobile devices."
    678686msgstr ""
    679687
    680 #: inc/settings.php:377
     688#: inc/settings.php:384
    681689msgid "Use Tablet Layout"
    682690msgstr ""
    683691
    684 #: inc/settings.php:378
     692#: inc/settings.php:385
    685693msgid "Collapses columns differently on tablet devices."
    686694msgstr ""
    687695
    688 #: inc/settings.php:384
     696#: inc/settings.php:391
    689697msgid "Detect older browsers"
    690698msgstr ""
    691699
    692 #: inc/settings.php:385
     700#: inc/settings.php:392
    693701msgid "Never"
    694702msgstr ""
    695703
    696 #: inc/settings.php:386
     704#: inc/settings.php:393
    697705msgid "Always"
    698706msgstr ""
    699707
    700 #: inc/settings.php:388
     708#: inc/settings.php:395
    701709msgid "Use Legacy Layout Engine"
    702710msgstr ""
    703711
    704 #: inc/settings.php:389
     712#: inc/settings.php:396
    705713msgid "The CSS and HTML uses floats instead of flexbox for compatibility with very old browsers."
    706714msgstr ""
    707715
    708 #: inc/settings.php:395
     716#: inc/settings.php:402
    709717msgid "Tablet Width"
    710718msgstr ""
    711719
    712 #: inc/settings.php:396
     720#: inc/settings.php:403
    713721msgid "Device width, in pixels, to collapse into a tablet view ."
    714722msgstr ""
    715723
    716 #: inc/settings.php:402
     724#: inc/settings.php:409
    717725msgid "Mobile Width"
    718726msgstr ""
    719727
    720 #: inc/settings.php:403
     728#: inc/settings.php:410
    721729msgid "Device width, in pixels, to collapse into a mobile view ."
    722730msgstr ""
    723731
    724 #: inc/settings.php:409
     732#: inc/settings.php:416
    725733msgid "Row/Widget Bottom Margin"
    726734msgstr ""
    727735
    728 #: inc/settings.php:410
     736#: inc/settings.php:417
    729737msgid "Default margin below rows and widgets."
    730738msgstr ""
    731739
    732 #: inc/settings.php:415
     740#: inc/settings.php:422
    733741msgid "Last Row With Margin"
    734742msgstr ""
    735743
    736 #: inc/settings.php:416
     744#: inc/settings.php:423
    737745msgid "Allow margin in last row."
    738746msgstr ""
    739747
    740 #: inc/settings.php:422
     748#: inc/settings.php:429
    741749msgid "Row Gutter"
    742750msgstr ""
    743751
    744 #: inc/settings.php:423
     752#: inc/settings.php:430
    745753msgid "Default spacing between columns in each row."
    746754msgstr ""
    747755
    748 #: inc/settings.php:429
     756#: inc/settings.php:436
    749757msgid "Full Width Container"
    750758msgstr ""
    751759
    752 #: inc/settings.php:430
     760#: inc/settings.php:437
    753761msgid "The container used for the full width layout."
    754762msgstr ""
    755763
    756 #: inc/settings.php:437
     764#: inc/settings.php:444
    757765msgid "Content"
    758766msgstr ""
    759767
    760 #: inc/settings.php:443
     768#: inc/settings.php:450
    761769msgid "Copy Content"
    762770msgstr ""
    763771
    764 #: inc/settings.php:444
     772#: inc/settings.php:451
    765773msgid "Copy content from Page Builder to post content."
    766774msgstr ""
    767775
    768 #: inc/settings.php:449
     776#: inc/settings.php:456
    769777msgid "Copy Styles"
    770778msgstr ""
    771779
    772 #: inc/settings.php:450
     780#: inc/settings.php:457
    773781msgid "Include styles into your Post Content. This keeps page layouts, even when Page Builder is deactivated."
    774782msgstr ""
    775783
    776 #: inc/settings.php:503, inc/styles-admin.php:273
     784#: inc/settings.php:510, inc/styles-admin.php:273
    777785msgid "Enabled"
    778786msgstr ""
     
    814822msgstr ""
    815823
    816 #: inc/styles-admin.php:191, inc/styles.php:259, inc/styles.php:306
     824#: inc/styles-admin.php:191, inc/styles.php:263, inc/styles.php:310
    817825msgid "Top"
    818826msgstr ""
     
    822830msgstr ""
    823831
    824 #: inc/styles-admin.php:199, inc/styles.php:261, inc/styles.php:308
     832#: inc/styles-admin.php:199, inc/styles.php:265, inc/styles.php:312
    825833msgid "Bottom"
    826834msgstr ""
     
    842850msgstr ""
    843851
    844 #: inc/styles.php:81
     852#: inc/styles.php:85
    845853msgid "%s ID"
    846854msgstr ""
    847855
    848 #: inc/styles.php:84
     856#: inc/styles.php:88
    849857msgid "A custom ID used for this %s."
    850858msgstr ""
    851859
    852 #: inc/styles.php:89
     860#: inc/styles.php:93
    853861msgid "%s Class"
    854862msgstr ""
    855863
    856 #: inc/styles.php:92
     864#: inc/styles.php:96
    857865msgid "A CSS class"
    858866msgstr ""
    859867
    860 #: inc/styles.php:97
     868#: inc/styles.php:101
    861869msgid "CSS Declarations"
    862870msgstr ""
    863871
    864 #: inc/styles.php:100
     872#: inc/styles.php:104
    865873msgid "One declaration per line."
    866874msgstr ""
    867875
    868 #: inc/styles.php:105
     876#: inc/styles.php:109
    869877msgid "Mobile CSS Declarations"
    870878msgstr ""
    871879
    872 #: inc/styles.php:108
     880#: inc/styles.php:112
    873881msgid "CSS declarations applied when in mobile view."
    874882msgstr ""
    875883
    876 #: inc/styles.php:115
     884#: inc/styles.php:119
    877885msgid "Padding"
    878886msgstr ""
    879887
    880 #: inc/styles.php:118
     888#: inc/styles.php:122
    881889msgid "Padding around the entire %s."
    882890msgstr ""
    883891
    884 #: inc/styles.php:126
     892#: inc/styles.php:130
    885893msgid "Mobile Padding"
    886894msgstr ""
    887895
    888 #: inc/styles.php:129
     896#: inc/styles.php:133
    889897msgid "Padding when on mobile devices."
    890898msgstr ""
    891899
    892 #: inc/styles.php:137
     900#: inc/styles.php:141
    893901msgid "Background Color"
    894902msgstr ""
    895903
    896 #: inc/styles.php:140
     904#: inc/styles.php:144
    897905msgid "Background color of the %s."
    898906msgstr ""
    899907
    900 #: inc/styles.php:145
     908#: inc/styles.php:149
    901909msgid "Background Image"
    902910msgstr ""
    903911
    904 #: inc/styles.php:148
     912#: inc/styles.php:152
    905913msgid "Background image of the %s."
    906914msgstr ""
    907915
    908 #: inc/styles.php:153
     916#: inc/styles.php:157
    909917msgid "Background Image Display"
    910918msgstr ""
    911919
    912 #: inc/styles.php:157
     920#: inc/styles.php:161
    913921msgid "Tiled Image"
    914922msgstr ""
    915923
    916 #: inc/styles.php:158
     924#: inc/styles.php:162
    917925msgid "Cover"
    918926msgstr ""
    919927
    920 #: inc/styles.php:159
     928#: inc/styles.php:163
    921929msgid "Centered, with original size"
    922930msgstr ""
    923931
    924 #: inc/styles.php:160
     932#: inc/styles.php:164
    925933msgid "Contain"
    926934msgstr ""
    927935
    928 #: inc/styles.php:161
     936#: inc/styles.php:165
    929937msgid "Fixed"
    930938msgstr ""
    931939
    932 #: inc/styles.php:162
     940#: inc/styles.php:166
    933941msgid "Parallax"
    934942msgstr ""
    935943
    936 #: inc/styles.php:163
     944#: inc/styles.php:167
    937945msgid "Parallax (Original Size)"
    938946msgstr ""
    939947
    940 #: inc/styles.php:165
     948#: inc/styles.php:169
    941949msgid "How the background image is displayed."
    942950msgstr ""
    943951
    944 #: inc/styles.php:170
     952#: inc/styles.php:174
    945953msgid "Border Color"
    946954msgstr ""
    947955
    948 #: inc/styles.php:173
     956#: inc/styles.php:177
    949957msgid "Border color of the %s."
    950958msgstr ""
    951959
    952 #: inc/styles.php:192
     960#: inc/styles.php:196
    953961msgid "Cell Class"
    954962msgstr ""
    955963
    956 #: inc/styles.php:195
     964#: inc/styles.php:199
    957965msgid "Class added to all cells in this row."
    958966msgstr ""
    959967
    960 #: inc/styles.php:202
     968#: inc/styles.php:206
    961969msgid "Bottom Margin"
    962970msgstr ""
    963971
    964 #: inc/styles.php:205
     972#: inc/styles.php:209
    965973msgid "Space below the row. Default is %spx."
    966974msgstr ""
    967975
    968 #: inc/styles.php:210
     976#: inc/styles.php:214
    969977msgid "Gutter"
    970978msgstr ""
    971979
    972 #: inc/styles.php:213
     980#: inc/styles.php:217
    973981msgid "Amount of space between cells. Default is %spx."
    974982msgstr ""
    975983
    976 #: inc/styles.php:218
     984#: inc/styles.php:222
    977985msgid "Row Layout"
    978986msgstr ""
    979987
    980 #: inc/styles.php:222, inc/styles.php:235
     988#: inc/styles.php:226, inc/styles.php:239
    981989msgid "Standard"
    982990msgstr ""
    983991
    984 #: inc/styles.php:223
     992#: inc/styles.php:227
    985993msgid "Full Width"
    986994msgstr ""
    987995
    988 #: inc/styles.php:224
     996#: inc/styles.php:228
    989997msgid "Full Width Stretched"
    990998msgstr ""
    991999
    992 #: inc/styles.php:225
     1000#: inc/styles.php:229
    9931001msgid "Full Width Stretched Padded"
    9941002msgstr ""
    9951003
    996 #: inc/styles.php:231
     1004#: inc/styles.php:235
    9971005msgid "Collapse Behaviour"
    9981006msgstr ""
    9991007
    1000 #: inc/styles.php:236
     1008#: inc/styles.php:240
    10011009msgid "No Collapse"
    10021010msgstr ""
    10031011
    1004 #: inc/styles.php:242
     1012#: inc/styles.php:246
    10051013msgid "Collapse Order"
    10061014msgstr ""
    10071015
    1008 #: inc/styles.php:246, widgets/widgets.php:635, widgets/widgets.php:757, inc/widgets/post-loop.php:329
     1016#: inc/styles.php:250, widgets/widgets.php:635, widgets/widgets.php:757, inc/widgets/post-loop.php:344
    10091017msgid "Default"
    10101018msgstr ""
    10111019
    1012 #: inc/styles.php:247
     1020#: inc/styles.php:251
    10131021msgid "Left on Top"
    10141022msgstr ""
    10151023
    1016 #: inc/styles.php:248
     1024#: inc/styles.php:252
    10171025msgid "Right on Top"
    10181026msgstr ""
    10191027
    1020 #: inc/styles.php:255
     1028#: inc/styles.php:259
    10211029msgid "Cell Vertical Alignment"
    10221030msgstr ""
    10231031
    1024 #: inc/styles.php:260, inc/styles.php:307, widgets/widgets/button/button.php:31
     1032#: inc/styles.php:264, inc/styles.php:311, widgets/widgets/button/button.php:31
    10251033msgid "Center"
    10261034msgstr ""
    10271035
    1028 #: inc/styles.php:262, inc/styles.php:309
     1036#: inc/styles.php:266, inc/styles.php:313
    10291037msgid "Stretch"
    10301038msgstr ""
    10311039
    1032 #: inc/styles.php:271
     1040#: inc/styles.php:275
    10331041msgid "Mobile Bottom Margin"
    10341042msgstr ""
    10351043
    1036 #: inc/styles.php:274
     1044#: inc/styles.php:278
    10371045msgid "Space below the row on mobile devices. Default is %spx."
    10381046msgstr ""
    10391047
    1040 #: inc/styles.php:279
     1048#: inc/styles.php:283
    10411049msgid "Mobile Cell Margins"
    10421050msgstr ""
    10431051
    1044 #: inc/styles.php:282
     1052#: inc/styles.php:286
    10451053msgid "Vertical space between cells in a collapsed mobile row. Default is %spx."
    10461054msgstr ""
    10471055
    1048 #: inc/styles.php:298
     1056#: inc/styles.php:302
    10491057msgid "Cell"
    10501058msgstr ""
    10511059
    1052 #: inc/styles.php:301
     1060#: inc/styles.php:305
    10531061msgid "Vertical Alignment"
    10541062msgstr ""
    10551063
    1056 #: inc/styles.php:305
     1064#: inc/styles.php:309
    10571065msgid "Use row setting"
    10581066msgstr ""
    10591067
    1060 #: inc/styles.php:315, inc/styles.php:355
     1068#: inc/styles.php:319, inc/styles.php:359
    10611069msgid "Font Color"
    10621070msgstr ""
    10631071
    1064 #: inc/styles.php:318
     1072#: inc/styles.php:322
    10651073msgid "Color of text inside this cell."
    10661074msgstr ""
    10671075
    1068 #: inc/styles.php:323, inc/styles.php:363
     1076#: inc/styles.php:327, inc/styles.php:367
    10691077msgid "Links Color"
    10701078msgstr ""
    10711079
    1072 #: inc/styles.php:326
     1080#: inc/styles.php:330
    10731081msgid "Color of links inside this cell."
    10741082msgstr ""
    10751083
    1076 #: inc/styles.php:344
     1084#: inc/styles.php:348
    10771085msgid "Margin"
    10781086msgstr ""
    10791087
    1080 #: inc/styles.php:347
     1088#: inc/styles.php:351
    10811089msgid "Margins around the widget."
    10821090msgstr ""
    10831091
    1084 #: inc/styles.php:358
     1092#: inc/styles.php:362
    10851093msgid "Color of text inside this widget."
    10861094msgstr ""
    10871095
    1088 #: inc/styles.php:366
     1096#: inc/styles.php:370
    10891097msgid "Color of links inside this widget."
    10901098msgstr ""
     
    13221330msgstr ""
    13231331
    1324 #: widgets/widgets.php:594, inc/widgets/post-loop.php:287
     1332#: widgets/widgets.php:594, inc/widgets/post-loop.php:302
    13251333msgid "Post Type"
    13261334msgstr ""
    13271335
    1328 #: widgets/widgets.php:601, inc/widgets/post-loop.php:296
     1336#: widgets/widgets.php:601, inc/widgets/post-loop.php:311
    13291337msgid "Posts Per Page"
    13301338msgstr ""
    13311339
    1332 #: widgets/widgets.php:606, inc/widgets/post-loop.php:301
     1340#: widgets/widgets.php:606, inc/widgets/post-loop.php:316
    13331341msgid "Order By"
    13341342msgstr ""
    13351343
    1336 #: widgets/widgets.php:608, widgets/widgets.php:783, inc/widgets/post-content.php:60, inc/widgets/post-loop.php:303
     1344#: widgets/widgets.php:608, widgets/widgets.php:783, inc/widgets/post-content.php:60, inc/widgets/post-loop.php:318
    13371345msgid "None"
    13381346msgstr ""
    13391347
    1340 #: widgets/widgets.php:609, inc/widgets/post-loop.php:304
     1348#: widgets/widgets.php:609, inc/widgets/post-loop.php:319
    13411349msgid "Post ID"
    13421350msgstr ""
    13431351
    1344 #: widgets/widgets.php:610, inc/widgets/post-loop.php:305
     1352#: widgets/widgets.php:610, inc/widgets/post-loop.php:320
    13451353msgid "Author"
    13461354msgstr ""
    13471355
    1348 #: widgets/widgets.php:611, widgets/widgets.php:612, inc/widgets/post-loop.php:306, inc/widgets/post-loop.php:307, widgets/widgets/testimonial/testimonial.php:15
     1356#: widgets/widgets.php:611, widgets/widgets.php:612, inc/widgets/post-loop.php:321, inc/widgets/post-loop.php:322, widgets/widgets/testimonial/testimonial.php:15
    13491357msgid "Name"
    13501358msgstr ""
    13511359
    1352 #: widgets/widgets.php:613, inc/widgets/post-loop.php:308
     1360#: widgets/widgets.php:613, inc/widgets/post-loop.php:323
    13531361msgid "Date"
    13541362msgstr ""
    13551363
    1356 #: widgets/widgets.php:614, inc/widgets/post-loop.php:309
     1364#: widgets/widgets.php:614, inc/widgets/post-loop.php:324
    13571365msgid "Modified"
    13581366msgstr ""
    13591367
    1360 #: widgets/widgets.php:615, inc/widgets/post-loop.php:310
     1368#: widgets/widgets.php:615, inc/widgets/post-loop.php:325
    13611369msgid "Parent"
    13621370msgstr ""
    13631371
    1364 #: widgets/widgets.php:616, inc/widgets/post-loop.php:311
     1372#: widgets/widgets.php:616, inc/widgets/post-loop.php:326
    13651373msgid "Random"
    13661374msgstr ""
    13671375
    1368 #: widgets/widgets.php:617, inc/widgets/post-loop.php:312
     1376#: widgets/widgets.php:617, inc/widgets/post-loop.php:327
    13691377msgid "Comment Count"
    13701378msgstr ""
    13711379
    1372 #: widgets/widgets.php:618, inc/widgets/post-loop.php:313
     1380#: widgets/widgets.php:618, inc/widgets/post-loop.php:328
    13731381msgid "Menu Order"
    13741382msgstr ""
    13751383
    1376 #: widgets/widgets.php:624, inc/widgets/post-loop.php:319
     1384#: widgets/widgets.php:624, inc/widgets/post-loop.php:334
    13771385msgid "Order"
    13781386msgstr ""
    13791387
    1380 #: widgets/widgets.php:626, inc/widgets/post-loop.php:322
     1388#: widgets/widgets.php:626, inc/widgets/post-loop.php:337
    13811389msgid "Ascending"
    13821390msgstr ""
    13831391
    1384 #: widgets/widgets.php:627, inc/widgets/post-loop.php:321
     1392#: widgets/widgets.php:627, inc/widgets/post-loop.php:336
    13851393msgid "Descending"
    13861394msgstr ""
    13871395
    1388 #: widgets/widgets.php:633, inc/widgets/post-loop.php:327
     1396#: widgets/widgets.php:633, inc/widgets/post-loop.php:342
    13891397msgid "Sticky Posts"
    13901398msgstr ""
    13911399
    1392 #: widgets/widgets.php:636, inc/widgets/post-loop.php:330
     1400#: widgets/widgets.php:636, inc/widgets/post-loop.php:345
    13931401msgid "Ignore Sticky"
    13941402msgstr ""
    13951403
    1396 #: widgets/widgets.php:637, inc/widgets/post-loop.php:331
     1404#: widgets/widgets.php:637, inc/widgets/post-loop.php:346
    13971405msgid "Exclude Sticky"
    13981406msgstr ""
    13991407
    1400 #: widgets/widgets.php:638, inc/widgets/post-loop.php:332
     1408#: widgets/widgets.php:638, inc/widgets/post-loop.php:347
    14011409msgid "Only Sticky"
    14021410msgstr ""
     
    14061414msgstr ""
    14071415
    1408 #: widgets/widgets.php:648, inc/widgets/post-loop.php:344
     1416#: widgets/widgets.php:648, inc/widgets/post-loop.php:359
    14091417msgid "Additional query arguments. See 1{query_posts}."
    14101418msgstr ""
     
    15831591msgstr ""
    15841592
    1585 #: inc/widgets/layout.php:109
     1593#: inc/widgets/layout.php:114
    15861594msgid "Open Builder"
    15871595msgstr ""
     
    15951603msgstr ""
    15961604
    1597 #: inc/widgets/post-content.php:61, inc/widgets/post-loop-helper.php:41, inc/widgets/post-loop.php:250, widgets/widgets/call-to-action/call-to-action.php:15, widgets/widgets/list/list.php:15, widgets/widgets/price-box/price-box.php:15
     1605#: inc/widgets/post-content.php:61, inc/widgets/post-loop-helper.php:41, inc/widgets/post-loop.php:265, widgets/widgets/call-to-action/call-to-action.php:15, widgets/widgets/list/list.php:15, widgets/widgets/price-box/price-box.php:15
    15981606msgid "Title"
    15991607msgstr ""
     
    16071615msgstr ""
    16081616
    1609 #: inc/widgets/post-loop-helper.php:31, inc/widgets/post-loop.php:23
     1617#: inc/widgets/post-loop-helper.php:31, inc/widgets/post-loop.php:24
    16101618msgid "Post Loop"
    16111619msgstr ""
    16121620
    1613 #: inc/widgets/post-loop-helper.php:33, inc/widgets/post-loop.php:25
     1621#: inc/widgets/post-loop-helper.php:33, inc/widgets/post-loop.php:26
    16141622msgid "Displays a post loop."
    16151623msgstr ""
    16161624
    1617 #: inc/widgets/post-loop-helper.php:45, inc/widgets/post-loop.php:254
     1625#: inc/widgets/post-loop-helper.php:45, inc/widgets/post-loop.php:269
    16181626msgid "Template"
    16191627msgstr ""
    16201628
    1621 #: inc/widgets/post-loop-helper.php:52, inc/widgets/post-loop.php:272
     1629#: inc/widgets/post-loop-helper.php:52, inc/widgets/post-loop.php:287
    16221630msgid "If the template supports it, cut posts and display the more link."
    16231631msgstr ""
    16241632
    1625 #: inc/widgets/post-loop.php:220
     1633#: inc/widgets/post-loop.php:235
    16261634msgid "Your theme doesn't have any post loops."
    16271635msgstr ""
    16281636
    1629 #: inc/widgets/post-loop.php:270
     1637#: inc/widgets/post-loop.php:285
    16301638msgid "More Link"
    16311639msgstr ""
    16321640
    1633 #: inc/widgets/post-loop.php:314
     1641#: inc/widgets/post-loop.php:329
    16341642msgid "Post In Order"
    16351643msgstr ""
    16361644
    1637 #: inc/widgets/post-loop.php:337
     1645#: inc/widgets/post-loop.php:352
    16381646msgid "Additional "
    16391647msgstr ""
  • siteorigin-panels/tags/2.11.1/readme.txt

    r2316661 r2342256  
    33Requires at least: 4.7
    44Tested up to: 5.5
    5 Stable tag: 2.11.0
    6 Build time: 2020-06-02T16:27:51+02:00
     5Stable tag: 2.11.1
     6Build time: 2020-07-17T13:50:39+02:00
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl.html
     
    9696
    9797== Changelog ==
     98
     99= 2.11.1 - 17 July 2020 =
     100* Added Rank Math SEO plugin support.
     101* Added [siteorigin_panels_layout_builder_supports](https://siteorigin.com/docs/page-builder/hooks/builder-features-actions/) filter.
     102* Block Editor: Added History and Live Editor functionality to the SiteOrigin Layout Block.
     103* Resolved a plugin conflict between the AMP by AMP Project Contributors plugin and the Text widget.
     104* Block Editor: Prevented the page saving until the SiteOrigin Layout Block is finished setting up widgets using AJAX.
     105* Mobile: Several minor improvements to the Page Builder interface to improve usability while editing on mobile devices.
     106* Fixed `undefined` Page Builder tab in WordPress 5.5.
     107* Added a new "Disable Background Parallax On Mobile" global setting to `Settings > Page Builder > General`.
     108* Post Loop: Added custom pagination format support to allow developers to use two Post Loop widgets with independent pagination on a page.
     109* Removed all HTML from the CSS Declarations field and strip slashes from textarea/code fields.
    98110
    99111= 2.11.0 - 02 June 2020 =
  • siteorigin-panels/tags/2.11.1/siteorigin-panels.php

    r2316661 r2342256  
    44Plugin URI: https://siteorigin.com/page-builder/
    55Description: A drag and drop, responsive page builder that simplifies building your website.
    6 Version: 2.11.0
     6Version: 2.11.1
    77Author: SiteOrigin
    88Author URI: https://siteorigin.com
     
    1212*/
    1313
    14 define( 'SITEORIGIN_PANELS_VERSION', '2.11.0' );
     14define( 'SITEORIGIN_PANELS_VERSION', '2.11.1' );
    1515if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
    1616    define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
    1717}
    1818define( 'SITEORIGIN_PANELS_CSS_SUFFIX', '.min' );
    19 define( 'SITEORIGIN_PANELS_VERSION_SUFFIX', '-2110' );
     19define( 'SITEORIGIN_PANELS_VERSION_SUFFIX', '-2111' );
    2020
    2121require_once plugin_dir_path( __FILE__ ) . 'inc/functions.php';
     
    3131        add_action( 'plugins_loaded', array( $this, 'version_check' ) );
    3232        add_action( 'plugins_loaded', array( $this, 'init' ) );
     33        add_action( 'plugins_loaded', array( $this, 'init_compat' ), 100 );
    3334        add_action( 'admin_bar_menu', array( $this, 'admin_bar_menu' ), 100 );
    3435       
     
    192193            SiteOrigin_Panels_Admin::single();
    193194        }
    194        
     195    }
     196
     197    /**
     198     * Loads Page Builder compatibility to allow other plugins/themes
     199     */
     200    public function init_compat() {
    195201        // Compatibility with Widget Options plugin
    196         if( class_exists('WP_Widget_Options') ) {
     202        if ( class_exists( 'WP_Widget_Options' ) ) {
    197203            require_once plugin_dir_path( __FILE__ ) . 'compat/widget-options.php';
     204        }
     205
     206        // Compatibility with AMP plugin
     207        if ( is_admin() && function_exists( 'amp_bootstrap_plugin' ) ) {
     208            require_once plugin_dir_path( __FILE__ ) . 'compat/amp.php';
    198209        }
    199210    }
  • siteorigin-panels/trunk/compat/js/siteorigin-panels-layout-block.js

    r2316661 r2342256  
    11"use strict";
    22
    3 function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
     3function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
    44
    55function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
     
    104104      var $panelsContainer = jQuery(this.panelsContainer.current);
    105105      var config = {
    106         editorType: 'standalone'
     106        editorType: 'standalone',
     107        loadLiveEditor: false,
     108        postId: soPanelsBlockEditorAdmin.postId,
     109        liveEditorPreview: soPanelsBlockEditorAdmin.liveEditor
    107110      };
    108111      var builderModel = new panels.model.builder();
     
    279282      if (!_.isEmpty(newPanelsData.widgets)) {
    280283        // Send panelsData to server for sanitization.
     284        wp.data.dispatch('core/editor').lockPostSaving();
    281285        jQuery.post(panelsOptions.ajaxurl, {
    282286          action: 'so_panels_builder_content_json',
     
    295299
    296300          setAttributes(panelsAttributes);
     301          wp.data.dispatch('core/editor').unlockPostSaving();
    297302        });
    298303      }
  • siteorigin-panels/trunk/compat/js/siteorigin-panels-layout-block.min.js

    r2316661 r2342256  
    1 "use strict";function _typeof(e){return(_typeof="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)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _lodash=lodash,isEqual=_lodash.isEqual,debounce=_lodash.debounce,isEmpty=_lodash.isEmpty,isFunction=_lodash.isFunction,registerBlockType=wp.blocks.registerBlockType,_wp$element=wp.element,Component=_wp$element.Component,Fragment=_wp$element.Fragment,RawHTML=_wp$element.RawHTML,createRef=_wp$element.createRef,BlockControls=wp.editor.BlockControls,_wp$components=wp.components,Toolbar=_wp$components.Toolbar,IconButton=_wp$components.IconButton,Spinner=_wp$components.Spinner,__=wp.i18n.__,_window=window,soPanelsBlockEditorAdmin=_window.soPanelsBlockEditorAdmin,SiteOriginPanelsLayoutBlock=function(e){function t(e){var n;_classCallCheck(this,t),n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e));var i="edit"===soPanelsBlockEditorAdmin.defaultMode||isEmpty(e.panelsData);return n.state={editing:i,loadingPreview:!i,previewHtml:""},n.panelsContainer=createRef(),n.previewContainer=createRef(),n.panelsInitialized=!1,n.previewInitialized=!1,n}return _inherits(t,Component),_createClass(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.state.editing?this.setupPanels():this.state.editing||this.previewInitialized||(this.fetchPreview(this.props),this.fetchPreview=debounce(this.fetchPreview,500))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1,this.builderView&&this.builderView.off("content_change")}},{key:"componentDidUpdate",value:function(e){this.state.editing&&!this.panelsInitialized?this.setupPanels():this.state.loadingPreview?this.fetchPreview(this.props):!this.previewInitialized&&this.previewContainer.current&&(jQuery(document).trigger("panels_setup_preview"),this.previewInitialized=!0)}},{key:"setupPanels",value:function(){var e=this,t=jQuery(this.panelsContainer.current),n=new panels.model.builder;this.builderView=new panels.view.builder({model:n,config:{editorType:"standalone"}});var i=JSON.parse(JSON.stringify(jQuery.extend({},this.props.panelsData))),o=function(){isFunction(e.props.onRowOrWidgetMouseDown)&&e.props.onRowOrWidgetMouseDown();jQuery(document).on("mouseup",(function t(){jQuery(document).off("mouseup",t),isFunction(e.props.onRowOrWidgetMouseUp)&&e.props.onRowOrWidgetMouseUp()}))};this.builderView.on("row_added",(function(){e.builderView.$(".so-row-move").off("mousedown",o),e.builderView.$(".so-row-move").on("mousedown",o),e.builderView.$(".so-widget").off("mousedown",o),e.builderView.$(".so-widget").on("mousedown",o)})),this.builderView.on("widget_added",(function(){e.builderView.$(".so-widget").off("mousedown",o),e.builderView.$(".so-widget").on("mousedown",o)})),this.builderView.render().attach({container:t}).setData(i),this.builderView.trigger("builder_resize"),this.builderView.on("content_change",(function(){var t=e.builderView.getData();e.panelsDataChanged=!isEqual(i,t),e.panelsDataChanged&&(e.props.onContentChange&&isFunction(e.props.onContentChange)&&e.props.onContentChange(t),e.setState({loadingPreview:!0,previewHtml:""}))})),jQuery(document).trigger("panels_setup",this.builderView),this.panelsInitialized=!0}},{key:"fetchPreview",value:function(e){var t=this;if(this.isStillMounted){this.previewInitialized=!1;var n=this.currentFetchRequest=jQuery.post({url:soPanelsBlockEditorAdmin.previewUrl,data:{action:"so_panels_layout_block_preview",panelsData:JSON.stringify(e.panelsData)}}).then((function(e){t.isStillMounted&&n===t.currentFetchRequest&&e&&t.setState({previewHtml:e,loadingPreview:!1})}));return n}}},{key:"render",value:function(){var e=this,t=this.props.panelsData;if(this.state.editing)return React.createElement(Fragment,null,React.createElement(BlockControls,null,React.createElement(Toolbar,null,React.createElement(IconButton,{icon:"visibility",className:"components-icon-button components-toolbar__control",label:__("Preview layout.","siteorigin-panels"),onClick:function(){t&&e.setState({editing:!1})}}))),React.createElement("div",{key:"layout-block",className:"siteorigin-panels-layout-block-container",ref:this.panelsContainer}));var n=this.state.loadingPreview;return React.createElement(Fragment,null,React.createElement(BlockControls,null,React.createElement(Toolbar,null,React.createElement(IconButton,{icon:"edit",className:"components-icon-button components-toolbar__control",label:__("Edit layout.","siteorigin-panels"),onClick:function(){e.panelsInitialized=!1,e.setState({editing:!0})}}))),React.createElement("div",{key:"preview",className:"so-panels-block-layout-preview-container"},n?React.createElement("div",{className:"so-panels-spinner-container"},React.createElement("span",null,React.createElement(Spinner,null))):React.createElement("div",{className:"so-panels-raw-html-container",ref:this.previewContainer},React.createElement(RawHTML,null,this.state.previewHtml))))}}]),t}();registerBlockType("siteorigin-panels/layout-block",{title:__("SiteOrigin Layout","siteorigin-panels"),description:__("Build a layout using SiteOrigin's Page Builder.","siteorigin-panels"),icon:function(){return React.createElement("span",{className:"siteorigin-panels-block-icon"})},category:"layout",keywords:["page builder","column,grid","panel"],supports:{html:!1},attributes:{panelsData:{type:"object"},contentPreview:{type:"string"}},edit:function(e){var t=e.attributes,n=e.setAttributes,i=e.toggleSelection;return React.createElement(SiteOriginPanelsLayoutBlock,{panelsData:t.panelsData,onContentChange:function(e){_.isEmpty(e.widgets)||jQuery.post(panelsOptions.ajaxurl,{action:"so_panels_builder_content_json",panels_data:JSON.stringify(e),post_id:wp.data.select("core/editor").getCurrentPostId()},(function(e){var t={};""!==e.sanitized_panels_data&&(t.panelsData=e.sanitized_panels_data),""!==e.preview&&(t.contentPreview=e.preview),n(t)}))},onRowOrWidgetMouseDown:function(){i(!1)},onRowOrWidgetMouseUp:function(){i(!0)}})},save:function(e){var t=e.attributes;return t.hasOwnProperty("contentPreview")?React.createElement(RawHTML,null,t.contentPreview):null}}),function(e){soPanelsBlockEditorAdmin.showAddButton&&e((function(){setTimeout((function(){var t=wp.data.dispatch("core/editor"),n=wp.data.select("core/editor"),i=e("#siteorigin-panels-add-layout-block-button").html(),o=e(i).insertAfter(".editor-writing-flow > div:first, .block-editor-writing-flow > div:not([tabindex])");o.on("click",(function(){var e=wp.blocks.createBlock("siteorigin-panels/layout-block",{});if(n.isEditedPostEmpty()){var i=n.getBlocks();i.length?t.replaceBlock(i[0].clientId,e):t.insertBlock(e)}else t.insertBlock(e)}));var r=function(){wp.data.select("core/editor").isEditedPostEmpty()?o.show():o.hide()};wp.data.subscribe(r),r()}),100)}))}(jQuery);
     1"use strict";function _typeof(e){return(_typeof="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)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _lodash=lodash,isEqual=_lodash.isEqual,debounce=_lodash.debounce,isEmpty=_lodash.isEmpty,isFunction=_lodash.isFunction,registerBlockType=wp.blocks.registerBlockType,_wp$element=wp.element,Component=_wp$element.Component,Fragment=_wp$element.Fragment,RawHTML=_wp$element.RawHTML,createRef=_wp$element.createRef,BlockControls=wp.editor.BlockControls,_wp$components=wp.components,Toolbar=_wp$components.Toolbar,IconButton=_wp$components.IconButton,Spinner=_wp$components.Spinner,__=wp.i18n.__,_window=window,soPanelsBlockEditorAdmin=_window.soPanelsBlockEditorAdmin,SiteOriginPanelsLayoutBlock=function(e){function t(e){var n;_classCallCheck(this,t),n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e));var i="edit"===soPanelsBlockEditorAdmin.defaultMode||isEmpty(e.panelsData);return n.state={editing:i,loadingPreview:!i,previewHtml:""},n.panelsContainer=createRef(),n.previewContainer=createRef(),n.panelsInitialized=!1,n.previewInitialized=!1,n}return _inherits(t,Component),_createClass(t,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.state.editing?this.setupPanels():this.state.editing||this.previewInitialized||(this.fetchPreview(this.props),this.fetchPreview=debounce(this.fetchPreview,500))}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1,this.builderView&&this.builderView.off("content_change")}},{key:"componentDidUpdate",value:function(e){this.state.editing&&!this.panelsInitialized?this.setupPanels():this.state.loadingPreview?this.fetchPreview(this.props):!this.previewInitialized&&this.previewContainer.current&&(jQuery(document).trigger("panels_setup_preview"),this.previewInitialized=!0)}},{key:"setupPanels",value:function(){var e=this,t=jQuery(this.panelsContainer.current),n={editorType:"standalone",loadLiveEditor:!1,postId:soPanelsBlockEditorAdmin.postId,liveEditorPreview:soPanelsBlockEditorAdmin.liveEditor},i=new panels.model.builder;this.builderView=new panels.view.builder({model:i,config:n});var o=JSON.parse(JSON.stringify(jQuery.extend({},this.props.panelsData))),r=function(){isFunction(e.props.onRowOrWidgetMouseDown)&&e.props.onRowOrWidgetMouseDown();jQuery(document).on("mouseup",(function t(){jQuery(document).off("mouseup",t),isFunction(e.props.onRowOrWidgetMouseUp)&&e.props.onRowOrWidgetMouseUp()}))};this.builderView.on("row_added",(function(){e.builderView.$(".so-row-move").off("mousedown",r),e.builderView.$(".so-row-move").on("mousedown",r),e.builderView.$(".so-widget").off("mousedown",r),e.builderView.$(".so-widget").on("mousedown",r)})),this.builderView.on("widget_added",(function(){e.builderView.$(".so-widget").off("mousedown",r),e.builderView.$(".so-widget").on("mousedown",r)})),this.builderView.render().attach({container:t}).setData(o),this.builderView.trigger("builder_resize"),this.builderView.on("content_change",(function(){var t=e.builderView.getData();e.panelsDataChanged=!isEqual(o,t),e.panelsDataChanged&&(e.props.onContentChange&&isFunction(e.props.onContentChange)&&e.props.onContentChange(t),e.setState({loadingPreview:!0,previewHtml:""}))})),jQuery(document).trigger("panels_setup",this.builderView),this.panelsInitialized=!0}},{key:"fetchPreview",value:function(e){var t=this;if(this.isStillMounted){this.previewInitialized=!1;var n=this.currentFetchRequest=jQuery.post({url:soPanelsBlockEditorAdmin.previewUrl,data:{action:"so_panels_layout_block_preview",panelsData:JSON.stringify(e.panelsData)}}).then((function(e){t.isStillMounted&&n===t.currentFetchRequest&&e&&t.setState({previewHtml:e,loadingPreview:!1})}));return n}}},{key:"render",value:function(){var e=this,t=this.props.panelsData;if(this.state.editing)return React.createElement(Fragment,null,React.createElement(BlockControls,null,React.createElement(Toolbar,null,React.createElement(IconButton,{icon:"visibility",className:"components-icon-button components-toolbar__control",label:__("Preview layout.","siteorigin-panels"),onClick:function(){t&&e.setState({editing:!1})}}))),React.createElement("div",{key:"layout-block",className:"siteorigin-panels-layout-block-container",ref:this.panelsContainer}));var n=this.state.loadingPreview;return React.createElement(Fragment,null,React.createElement(BlockControls,null,React.createElement(Toolbar,null,React.createElement(IconButton,{icon:"edit",className:"components-icon-button components-toolbar__control",label:__("Edit layout.","siteorigin-panels"),onClick:function(){e.panelsInitialized=!1,e.setState({editing:!0})}}))),React.createElement("div",{key:"preview",className:"so-panels-block-layout-preview-container"},n?React.createElement("div",{className:"so-panels-spinner-container"},React.createElement("span",null,React.createElement(Spinner,null))):React.createElement("div",{className:"so-panels-raw-html-container",ref:this.previewContainer},React.createElement(RawHTML,null,this.state.previewHtml))))}}]),t}();registerBlockType("siteorigin-panels/layout-block",{title:__("SiteOrigin Layout","siteorigin-panels"),description:__("Build a layout using SiteOrigin's Page Builder.","siteorigin-panels"),icon:function(){return React.createElement("span",{className:"siteorigin-panels-block-icon"})},category:"layout",keywords:["page builder","column,grid","panel"],supports:{html:!1},attributes:{panelsData:{type:"object"},contentPreview:{type:"string"}},edit:function(e){var t=e.attributes,n=e.setAttributes,i=e.toggleSelection;return React.createElement(SiteOriginPanelsLayoutBlock,{panelsData:t.panelsData,onContentChange:function(e){_.isEmpty(e.widgets)||(wp.data.dispatch("core/editor").lockPostSaving(),jQuery.post(panelsOptions.ajaxurl,{action:"so_panels_builder_content_json",panels_data:JSON.stringify(e),post_id:wp.data.select("core/editor").getCurrentPostId()},(function(e){var t={};""!==e.sanitized_panels_data&&(t.panelsData=e.sanitized_panels_data),""!==e.preview&&(t.contentPreview=e.preview),n(t),wp.data.dispatch("core/editor").unlockPostSaving()})))},onRowOrWidgetMouseDown:function(){i(!1)},onRowOrWidgetMouseUp:function(){i(!0)}})},save:function(e){var t=e.attributes;return t.hasOwnProperty("contentPreview")?React.createElement(RawHTML,null,t.contentPreview):null}}),function(e){soPanelsBlockEditorAdmin.showAddButton&&e((function(){setTimeout((function(){var t=wp.data.dispatch("core/editor"),n=wp.data.select("core/editor"),i=e("#siteorigin-panels-add-layout-block-button").html(),o=e(i).insertAfter(".editor-writing-flow > div:first, .block-editor-writing-flow > div:not([tabindex])");o.on("click",(function(){var e=wp.blocks.createBlock("siteorigin-panels/layout-block",{});if(n.isEditedPostEmpty()){var i=n.getBlocks();i.length?t.replaceBlock(i[0].clientId,e):t.insertBlock(e)}else t.insertBlock(e)}));var r=function(){wp.data.select("core/editor").isEditedPostEmpty()?o.show():o.hide()};wp.data.subscribe(r),r()}),100)}))}(jQuery);
  • siteorigin-panels/trunk/compat/layout-block.php

    r2141880 r2342256  
    5959                    'sanitizeUrl' => wp_nonce_url( admin_url( 'admin-ajax.php' ), 'layout-block-sanitize', '_panelsnonce' ),
    6060                    'previewUrl' => wp_nonce_url( admin_url( 'admin-ajax.php' ), 'layout-block-preview', '_panelsnonce' ),
     61                    'postId' => get_the_ID(),
     62                    'liveEditor' => SiteOrigin_Panels::preview_url(),
    6163                    'defaultMode' => siteorigin_panels_setting( 'layout-block-default-mode' ),
    6264                    'showAddButton' => apply_filters( 'siteorigin_layout_block_show_add_button', $is_panels_post_type ),
  • siteorigin-panels/trunk/inc/admin.php

    r2316661 r2342256  
    7171
    7272        // Enqueue Yoast compatibility
    73         add_action( 'admin_print_scripts-post-new.php', array( $this, 'enqueue_yoast_compat' ), 100 );
    74         add_action( 'admin_print_scripts-post.php', array( $this, 'enqueue_yoast_compat' ), 100 );
     73        add_action( 'admin_print_scripts-post-new.php', array( $this, 'enqueue_seo_compat' ), 100 );
     74        add_action( 'admin_print_scripts-post.php', array( $this, 'enqueue_seo_compat' ), 100 );
    7575
    7676        // Block editor specific actions
     
    527527    }
    528528
    529     public function enqueue_yoast_compat(){
    530         if( self::is_admin() && defined( 'WPSEO_FILE' ) && wp_script_is( 'yoast-seo-metabox' ) ) {
    531             wp_enqueue_script(
    532                 'so-panels-yoast-compat',
    533                 siteorigin_panels_url( 'js/yoast-compat' . SITEORIGIN_PANELS_JS_SUFFIX . '.js' ),
    534                 array('jquery', 'yoast-seo-metabox' ),
    535                 SITEORIGIN_PANELS_VERSION,
    536                 true
    537             );
    538         }
     529    public function enqueue_seo_compat(){
     530        if ( self::is_admin() ) {
     531            if ( defined( 'WPSEO_FILE' ) && wp_script_is( 'yoast-seo-metabox' ) ) {
     532                wp_enqueue_script(
     533                    'so-panels-seo-compat',
     534                    siteorigin_panels_url( 'js/seo-compat' . SITEORIGIN_PANELS_JS_SUFFIX . '.js' ),
     535                    array('jquery', 'yoast-seo-metabox' ),
     536                    SITEORIGIN_PANELS_VERSION,
     537                    true
     538                );
     539            } elseif ( defined( 'RANK_MATH_VERSION' ) && wp_script_is( 'rank-math-analyzer' ) ) {
     540                wp_enqueue_script(
     541                    'so-panels-seo-compat',
     542                    siteorigin_panels_url( 'js/seo-compat' . SITEORIGIN_PANELS_JS_SUFFIX . '.js' ),
     543                    array('jquery', 'rank-math-analyzer' ),
     544                    SITEORIGIN_PANELS_VERSION,
     545                    true
     546                );
     547            }
     548        }
    539549    }
    540550
     
    10131023     */
    10141024    function is_core_js_widget( $widget ) {
    1015         $js_widgets = array(
    1016             'WP_Widget_Custom_HTML',
    1017             'WP_Widget_Media_Audio',
    1018             'WP_Widget_Media_Gallery',
    1019             'WP_Widget_Media_Image',
    1020             'WP_Widget_Media_Video',
    1021             'WP_Widget_Text',
     1025        $js_widgets = apply_filters(
     1026            'siteorigin_panels_core_js_widgets',
     1027            array(
     1028                'WP_Widget_Custom_HTML',
     1029                'WP_Widget_Media_Audio',
     1030                'WP_Widget_Media_Gallery',
     1031                'WP_Widget_Media_Image',
     1032                'WP_Widget_Media_Video',
     1033                'WP_Widget_Text',
     1034            )
    10221035        );
    10231036
  • siteorigin-panels/trunk/inc/css-builder.php

    r2316661 r2342256  
    2929                for( $i = 0; $i < count( $v ); $i++ ) {
    3030                    if ( ! strlen( (string) $v[ $i ] ) ) continue;
    31                     $attribute_string[] = esc_html( $k ) . ':' . esc_html( $v[ $i ] );
     31                    $attribute_string[] = wp_strip_all_tags( $k ) . ':' . wp_strip_all_tags( $v[ $i ] );
    3232                }
    3333            }
    3434            else {
    3535                if ( ! strlen( (string) $v ) ) continue;
    36                 $attribute_string[] = esc_html( $k ) . ':' . esc_html( $v );
     36                $attribute_string[] = wp_strip_all_tags( $k ) . ':' . wp_strip_all_tags( $v );
    3737            }
    3838        }
  • siteorigin-panels/trunk/inc/settings.php

    r2141880 r2342256  
    123123        $defaults['admin-widget-count']     = false;
    124124        $defaults['parallax-motion']        = '';
     125        $defaults['parallax-mobile']        = false;
    125126        $defaults['sidebars-emulator']      = true;
    126127        $defaults['layout-block-default-mode'] = 'preview';
     
    283284            'label'       => __( 'Limit Parallax Motion', 'siteorigin-panels' ),
    284285            'description' => __( 'How many pixels of scrolling result in a single pixel of parallax motion. 0 means automatic. Lower values give more noticeable effect.', 'siteorigin-panels' ),
     286        );
     287
     288        $fields['general']['fields']['parallax-mobile'] = array(
     289            'type'        => 'checkbox',
     290            'label'       => __( 'Disable Parallax On Mobile', 'siteorigin-panels' ),
     291            'description' => __( 'Disable row/widget background parallax when the browser is smaller than the mobile width.', 'siteorigin-panels' ),
    285292        );
    286293
  • siteorigin-panels/trunk/inc/styles-admin.php

    r2143504 r2342256  
    305305                            class="widefat <?php if ( $field['type'] == 'code' ) {
    306306                                echo 'so-field-code';
    307                             } ?>" rows="4"><?php echo esc_textarea( $current ) ?></textarea><?php
     307                            } ?>" rows="4"><?php echo esc_textarea( stripslashes( $current ) ) ?></textarea><?php
    308308                break;
    309309        }
  • siteorigin-panels/trunk/inc/styles.php

    r2316661 r2342256  
    5555            SITEORIGIN_PANELS_VERSION
    5656        );
     57        wp_localize_script( 'siteorigin-panels-front-styles', 'panelsStyles', array(
     58            'fullContainer' => apply_filters( 'siteorigin_panels_full_width_container', siteorigin_panels_setting( 'full-width-container' ) ),
     59        ) );
    5760        wp_register_script(
    5861            'siteorigin-parallax',
     
    6164            SITEORIGIN_PANELS_VERSION
    6265        );
    63         wp_localize_script( 'siteorigin-panels-front-styles', 'panelsStyles', array(
    64             'fullContainer' => apply_filters( 'siteorigin_panels_full_width_container', siteorigin_panels_setting( 'full-width-container' ) )
     66        wp_localize_script( 'siteorigin-parallax', 'parallaxStyles', array(
     67            'parallax-mobile' => ! empty( siteorigin_panels_setting( 'parallax-mobile' ) ) ?: siteorigin_panels_setting( 'parallax-mobile' ),
     68            'mobile-breakpoint' => siteorigin_panels_setting( 'mobile-width' ) . 'px',
    6569        ) );
    6670    }
  • siteorigin-panels/trunk/inc/widgets/layout.php

    r2141880 r2342256  
    103103            $instance['panels_data'] = json_encode( $instance['panels_data'] );
    104104        }
    105        
     105
     106        $builder_supports = apply_filters( 'siteorigin_panels_layout_builder_supports', array(), $instance['panels_data'] );
    106107        ?>
    107         <div class="siteorigin-page-builder-widget" id="siteorigin-page-builder-widget-<?php echo esc_attr( $form_id ) ?>" data-builder-id="<?php echo esc_attr( $form_id ) ?>" data-type="layout_widget">
     108        <div class="siteorigin-page-builder-widget" id="siteorigin-page-builder-widget-<?php echo esc_attr( $form_id ) ?>"
     109            data-builder-id="<?php echo esc_attr( $form_id ) ?>"
     110            data-type="layout_widget"
     111            data-builder-supports="<?php echo esc_attr( json_encode( $builder_supports ) ) ?>"
     112            >
    108113            <p>
    109114                <button class="button-secondary siteorigin-panels-display-builder" ><?php _e('Open Builder', 'siteorigin-panels') ?></button>
  • siteorigin-panels/trunk/inc/widgets/post-loop.php

    r2188804 r2342256  
    1212    static $current_loop_template;
    1313    static $current_loop_instance;
     14    static $current_pagination_id;
    1415
    1516    /**
     
    5657    static function get_current_loop_instance() {
    5758        return self::$current_loop_instance;
     59    }
     60
     61    /**
     62     * The pagination id used in custom format pagination links
     63     *
     64     * @return array
     65     */
     66    static function get_current_pagination_id() {
     67        return self::$current_pagination_id;
    5868    }
    5969
     
    135145                // When the widget appears on a sub page.
    136146                $query_args['paged'] = get_query_var('paged');
    137             }
    138             elseif( strpos( $_SERVER['REQUEST_URI'], '/page/' ) !== false ) {
     147            } else if ( strpos( $_SERVER['REQUEST_URI'], '/page/' ) !== false ) {
    139148                // When the widget appears on the home page.
    140149                preg_match('/\/page\/([0-9]+)\//', $_SERVER['REQUEST_URI'], $matches);
    141150                if(!empty($matches[1])) $query_args['paged'] = intval($matches[1]);
    142151                else $query_args['paged'] = 1;
    143             }
    144             else $query_args['paged'] = 1;
    145         }
    146         else {
     152            } else {
     153                self::$current_pagination_id = strstr( $instance['panels_info']['widget_id'], '-', true );
     154                if ( isset( $_GET[ 'page-' . self::$current_pagination_id ] ) && is_numeric( $_GET[ 'page-' . self::$current_pagination_id ] ) ) {
     155                    $query_args['paged'] = $_GET[ 'page-' . self::$current_pagination_id ];
     156                } else {
     157                    $query_args['paged'] = 1;
     158                }
     159            }
     160        } else {
    147161            // Get current page number when we're not using permalinks
    148162            $query_args['paged'] = isset($_GET['paged']) ? intval($_GET['paged']) : 1;
     
    201215        self::$current_loop_instance = null;
    202216        self::$current_loop_template = null;
     217        self::$current_pagination_id = null;
    203218
    204219        echo $args['after_widget'];
  • siteorigin-panels/trunk/js/siteorigin-parallax.js

    r1516353 r2342256  
    3333
    3434        var setupParallax = function( ){
     35            // Check if we need to disable parallax on mobiles.
     36            if (
     37                typeof parallaxStyles != 'undefined' &&
     38                parallaxStyles['parallax-mobile'] &&
     39                window.matchMedia( '(max-width: ' + parallaxStyles['mobile-breakpoint'] + ')' ).matches
     40            ) {
     41                $$.css( 'background-position', '50% 50%' );
     42                return;
     43            }
     44
    3545            try {
    3646                var wrapperSize = [
  • siteorigin-panels/trunk/js/siteorigin-parallax.min.js

    r2278148 r2342256  
    33 * @license GPL 3.0 http://www.gnu.org/licenses/gpl.html
    44 */
    5 !function(i){i.fn.siteOriginParallax=function(o){var a=i(this);if("refreshParallax"===o)return a.trigger("refreshParallax");null===(o=i.extend({backgroundUrl:null,backgroundSize:null,backgroundAspectRatio:null,backgroundSizing:"scaled",limitMotion:"auto"},o)).backgroundAspectRatio&&(o.backgroundAspectRatio=o.backgroundSize[0]/o.backgroundSize[1]);var n=function(){try{var n,r=[a.outerWidth(),a.outerHeight()],t=a[0].getBoundingClientRect(),e=i(window).outerHeight();void 0===a.data("siteorigin-parallax-init")&&a.css({"background-image":"url("+o.backgroundUrl+")"}),n="auto"===o.limitMotion?e<720?.55:e>1300?.45:-17e-5*(e-720)+.55:parseFloat(o.limitMotion);var c=((t.bottom+(t.top-e))/(e+t.height)-1)/-2,s=0,u=1,l=o.backgroundSize;if("scaled"===o.backgroundSizing){var g=r[1]/(n||1),d=r[0]/l[0];if(g>l[1]*d&&(d=g/l[1],n=!1),a.css("background-size",l[0]*d+"px "+l[1]*d+"px"),t.top>-r[1]&&t.bottom-e<r[1]){var b=l[1]*d;n&&b>e*n&&(c=c*(u=e*n/b)+(1-u)/2),s=-(b-r[1])*c}a.css("background-position","50% "+s+"px")}else"original"===o.backgroundSizing&&(n&&l[1]>e*n&&(c=c*(u=e*n/l[1])+(1-u)/2),s=-(l[1]-r[1])*c,a.css("background-size","auto"),a.css("background-position","50% "+s+"px"))}catch(i){console.log(i.message),a.css({"background-size":"scaled"===o.backgroundSizing?"cover":"auto","background-position":"50% 50%"})}};n(),i(window).on("scroll",n),i(window).on("resize",n),i(window).on("panelsStretchRows",n),a.on("refreshParallax",n),setTimeout((function(){n()}),100)}}(jQuery),jQuery((function(i){i("[data-siteorigin-parallax]").each((function(){i(this).siteOriginParallax(i(this).data("siteorigin-parallax"))}))}));
     5!function(a){a.fn.siteOriginParallax=function(i){var o=a(this);if("refreshParallax"===i)return o.trigger("refreshParallax");null===(i=a.extend({backgroundUrl:null,backgroundSize:null,backgroundAspectRatio:null,backgroundSizing:"scaled",limitMotion:"auto"},i)).backgroundAspectRatio&&(i.backgroundAspectRatio=i.backgroundSize[0]/i.backgroundSize[1]);var n=function(){if("undefined"!=typeof parallaxStyles&&parallaxStyles["parallax-mobile"]&&window.matchMedia("(max-width: "+parallaxStyles["mobile-breakpoint"]+")").matches)o.css("background-position","50% 50%");else try{var n,t=[o.outerWidth(),o.outerHeight()],r=o[0].getBoundingClientRect(),e=a(window).outerHeight();void 0===o.data("siteorigin-parallax-init")&&o.css({"background-image":"url("+i.backgroundUrl+")"}),n="auto"===i.limitMotion?e<720?.55:e>1300?.45:-17e-5*(e-720)+.55:parseFloat(i.limitMotion);var l=((r.bottom+(r.top-e))/(e+r.height)-1)/-2,s=0,c=1,u=i.backgroundSize;if("scaled"===i.backgroundSizing){var g=t[1]/(n||1),d=t[0]/u[0];if(g>u[1]*d&&(d=g/u[1],n=!1),o.css("background-size",u[0]*d+"px "+u[1]*d+"px"),r.top>-t[1]&&r.bottom-e<t[1]){var b=u[1]*d;n&&b>e*n&&(l=l*(c=e*n/b)+(1-c)/2),s=-(b-t[1])*l}o.css("background-position","50% "+s+"px")}else"original"===i.backgroundSizing&&(n&&u[1]>e*n&&(l=l*(c=e*n/u[1])+(1-c)/2),s=-(u[1]-t[1])*l,o.css("background-size","auto"),o.css("background-position","50% "+s+"px"))}catch(a){console.log(a.message),o.css({"background-size":"scaled"===i.backgroundSizing?"cover":"auto","background-position":"50% 50%"})}};n(),a(window).on("scroll",n),a(window).on("resize",n),a(window).on("panelsStretchRows",n),o.on("refreshParallax",n),setTimeout((function(){n()}),100)}}(jQuery),jQuery((function(a){a("[data-siteorigin-parallax]").each((function(){a(this).siteOriginParallax(a(this).data("siteorigin-parallax"))}))}));
  • siteorigin-panels/trunk/lang/siteorigin-panels.pot

    r2316661 r2342256  
    3737msgstr ""
    3838
    39 #: siteorigin-panels.php:338
     39#: siteorigin-panels.php:349
    4040msgid "Read More"
    4141msgstr ""
    4242
    43 #: siteorigin-panels.php:486
     43#: siteorigin-panels.php:497
    4444msgid "Edit Home Page"
    4545msgstr ""
    4646
    47 #: siteorigin-panels.php:506, tpl/js-templates.php:34, tpl/js-templates.php:36
     47#: siteorigin-panels.php:517, tpl/js-templates.php:34, tpl/js-templates.php:36
    4848msgid "Live Editor"
    4949msgstr ""
    5050
    51 #: compat/layout-block.php:87
     51#: compat/layout-block.php:89
    5252msgid "You need to add a widget, row, or prebuilt layout before you'll see anything here. :)"
    5353msgstr ""
     
    142142msgstr ""
    143143
    144 #: inc/admin-widget-dialog.php:185, inc/settings.php:350
     144#: inc/admin-widget-dialog.php:185, inc/settings.php:357
    145145msgid "Recommended Widgets"
    146146msgstr ""
     
    158158msgstr ""
    159159
    160 #: inc/admin.php:179, inc/admin.php:575, inc/admin.php:1224, inc/admin.php:1229, inc/settings.php:199, tpl/js-templates.php:197
     160#: inc/admin.php:179, inc/admin.php:585, inc/admin.php:1237, inc/admin.php:1242, inc/settings.php:200, tpl/js-templates.php:197
    161161msgid "Page Builder"
    162162msgstr ""
     
    407407msgstr ""
    408408
    409 #: inc/admin.php:461, inc/admin.php:469, inc/styles.php:189, tpl/js-templates.php:62
     409#: inc/admin.php:461, inc/admin.php:469, inc/styles.php:193, tpl/js-templates.php:62
    410410msgid "Row"
    411411msgstr ""
     
    427427msgstr ""
    428428
    429 #: inc/admin.php:468, inc/styles.php:341, tpl/js-templates.php:61
     429#: inc/admin.php:468, inc/styles.php:345, tpl/js-templates.php:61
    430430msgid "Widget"
    431431msgstr ""
     
    456456
    457457#. translators: This is the default name given to a user's home page
    458 #: inc/admin.php:658, inc/home.php:26
     458#: inc/admin.php:668, inc/home.php:26
    459459msgid "Home Page"
    460460msgstr ""
    461461
    462 #: inc/admin.php:759
     462#: inc/admin.php:769
    463463msgid "Untitled Widget"
    464464msgstr ""
    465465
    466 #: inc/admin.php:939
     466#: inc/admin.php:949
    467467msgid "You need to install 1{%1$s} to use the widget 2{%2$s}."
    468468msgstr ""
    469469
    470 #: inc/admin.php:945
     470#: inc/admin.php:955
    471471msgid "Save and reload this page to start using the widget after you've installed it."
    472472msgstr ""
    473473
    474 #: inc/admin.php:961
     474#: inc/admin.php:971
    475475msgid "The widget 1{%1$s} is not available. Please try locate and install the missing plugin. Post on the 2{support forums} if you need help."
    476476msgstr ""
    477477
    478 #: inc/admin.php:1127, inc/styles-admin.php:23
     478#: inc/admin.php:1140, inc/styles-admin.php:23
    479479msgid "The supplied nonce is invalid."
    480480msgstr ""
    481481
    482 #: inc/admin.php:1128, inc/styles-admin.php:24
     482#: inc/admin.php:1141, inc/styles-admin.php:24
    483483msgid "Invalid nonce."
    484484msgstr ""
    485485
    486 #: inc/admin.php:1134
     486#: inc/admin.php:1147
    487487msgid "Please specify the type of widget form to be rendered."
    488488msgstr ""
    489489
    490 #: inc/admin.php:1135
     490#: inc/admin.php:1148
    491491msgid "Missing widget type."
    492492msgstr ""
    493493
    494 #: inc/admin.php:1242
     494#: inc/admin.php:1255
    495495msgid "%s Widget"
    496496msgid_plural "%s Widgets"
     
    498498msgstr[1] ""
    499499
    500 #: inc/admin.php:1285
     500#: inc/admin.php:1298
    501501msgid "Get a lightbox addon for SiteOrigin widgets"
    502502msgstr ""
    503503
    504 #: inc/admin.php:1289
     504#: inc/admin.php:1302
    505505msgid "Get the row, cell and widget animations addon"
    506506msgstr ""
    507507
    508 #: inc/admin.php:1293
     508#: inc/admin.php:1306
    509509msgid "Get premium email support for SiteOrigin Page Builder"
    510510msgstr ""
    511511
    512 #: inc/admin.php:1478
     512#: inc/admin.php:1491
    513513msgid "Toggle editor selection menu"
    514514msgstr ""
    515515
    516 #: inc/admin.php:1479, inc/admin.php:1526, inc/settings.php:199, settings/tpl/settings.php:9
     516#: inc/admin.php:1492, inc/admin.php:1539, inc/settings.php:200, settings/tpl/settings.php:9
    517517msgid "SiteOrigin Page Builder"
    518518msgstr ""
    519519
    520 #: inc/admin.php:1480
     520#: inc/admin.php:1493
    521521msgid "Block Editor"
    522522msgstr ""
     
    530530msgstr ""
    531531
    532 #: inc/settings.php:226
     532#: inc/settings.php:227
    533533msgid "Page Builder Settings"
    534534msgstr ""
    535535
    536 #: inc/settings.php:242
     536#: inc/settings.php:243
    537537msgid "General"
    538538msgstr ""
    539539
    540 #: inc/settings.php:248
     540#: inc/settings.php:249
    541541msgid "Post Types"
    542542msgstr ""
    543543
    544 #: inc/settings.php:250
     544#: inc/settings.php:251
    545545msgid "The post types on which to use Page Builder."
    546546msgstr ""
    547547
    548 #: inc/settings.php:255
     548#: inc/settings.php:256
    549549msgid "Use Classic Editor for new posts"
    550550msgstr ""
    551551
    552 #: inc/settings.php:256
     552#: inc/settings.php:257
    553553msgid "New posts of the above Post Types will be created using the Classic Editor."
    554554msgstr ""
    555555
    556 #: inc/settings.php:261
     556#: inc/settings.php:262
    557557msgid "Live Editor Quick Link"
    558558msgstr ""
    559559
    560 #: inc/settings.php:262
     560#: inc/settings.php:263
    561561msgid "Display a Live Editor button in the admin bar."
    562562msgstr ""
    563563
    564 #: inc/settings.php:267
     564#: inc/settings.php:268
    565565msgid "Display Post State"
    566566msgstr ""
    567567
    568 #: inc/settings.php:269
     568#: inc/settings.php:270
    569569msgid "Display a %sSiteOrigin Page Builder%s post state in the admin lists of posts/pages to indicate Page Builder is active."
    570570msgstr ""
    571571
    572 #: inc/settings.php:277
     572#: inc/settings.php:278
    573573msgid "Display Widget Count"
    574574msgstr ""
    575575
    576 #: inc/settings.php:278
     576#: inc/settings.php:279
    577577msgid "Display a widget count in the admin lists of posts/pages where you're using Page Builder."
    578578msgstr ""
    579579
    580 #: inc/settings.php:283
     580#: inc/settings.php:284
    581581msgid "Limit Parallax Motion"
    582582msgstr ""
    583583
    584 #: inc/settings.php:284
     584#: inc/settings.php:285
    585585msgid "How many pixels of scrolling result in a single pixel of parallax motion. 0 means automatic. Lower values give more noticeable effect."
    586586msgstr ""
    587587
    588 #: inc/settings.php:289
     588#: inc/settings.php:290
     589msgid "Disable Parallax On Mobile"
     590msgstr ""
     591
     592#: inc/settings.php:291
     593msgid "Disable row/widget background parallax when the browser is smaller than the mobile width."
     594msgstr ""
     595
     596#: inc/settings.php:296
    589597msgid "Sidebars Emulator"
    590598msgstr ""
    591599
    592 #: inc/settings.php:290
     600#: inc/settings.php:297
    593601msgid "Page Builder will create an emulated sidebar, that contains all widgets in the page."
    594602msgstr ""
    595603
    596 #: inc/settings.php:295
     604#: inc/settings.php:302
    597605msgid "Upgrade Teaser"
    598606msgstr ""
    599607
    600 #: inc/settings.php:297
     608#: inc/settings.php:304
    601609msgid "Display the %sSiteOrigin Premium%s upgrade teaser in the Page Builder toolbar."
    602610msgstr ""
    603611
    604 #: inc/settings.php:305
     612#: inc/settings.php:312
    605613msgid "Default To Page Builder Interface"
    606614msgstr ""
    607615
    608 #: inc/settings.php:307
     616#: inc/settings.php:314
    609617msgid "New Classic Editor posts/pages that you create will start with the Page Builder loaded. The %s\"Use Classic Editor for new posts\"%s setting must be enabled."
    610618msgstr ""
    611619
    612 #: inc/settings.php:314
     620#: inc/settings.php:321
    613621msgid "Layout Block Default Mode"
    614622msgstr ""
    615623
    616 #: inc/settings.php:317, tpl/js-templates.php:141
     624#: inc/settings.php:324, tpl/js-templates.php:141
    617625msgid "Edit"
    618626msgstr ""
    619627
    620 #: inc/settings.php:318
     628#: inc/settings.php:325
    621629msgid "Preview"
    622630msgstr ""
    623631
    624 #: inc/settings.php:320
     632#: inc/settings.php:327
    625633msgid "Whether to display layout blocks in edit mode or preview mode in the block editor."
    626634msgstr ""
    627635
    628 #: inc/settings.php:326
     636#: inc/settings.php:333
    629637msgid "Widgets"
    630638msgstr ""
    631639
    632 #: inc/settings.php:332
     640#: inc/settings.php:339
    633641msgid "Widget Title HTML"
    634642msgstr ""
    635643
    636 #: inc/settings.php:333
     644#: inc/settings.php:340
    637645msgid "The HTML used for widget titles. {{title}} is replaced with the widget title."
    638646msgstr ""
    639647
    640 #: inc/settings.php:338
     648#: inc/settings.php:345
    641649msgid "Add Widget Class"
    642650msgstr ""
    643651
    644 #: inc/settings.php:339
     652#: inc/settings.php:346
    645653msgid "Add the widget class to Page Builder widgets. Disable this if you're experiencing conflicts."
    646654msgstr ""
    647655
    648 #: inc/settings.php:344
     656#: inc/settings.php:351
    649657msgid "Legacy Bundled Widgets"
    650658msgstr ""
    651659
    652 #: inc/settings.php:345
     660#: inc/settings.php:352
    653661msgid "Load legacy widgets from Page Builder 1."
    654662msgstr ""
    655663
    656 #: inc/settings.php:351
     664#: inc/settings.php:358
    657665msgid "Display recommend widgets in Page Builder add widget dialog."
    658666msgstr ""
    659667
    660 #: inc/settings.php:356
     668#: inc/settings.php:363
    661669msgid "Instant Open Widgets"
    662670msgstr ""
    663671
    664 #: inc/settings.php:357
     672#: inc/settings.php:364
    665673msgid "Open a widget form as soon as its added to a page."
    666674msgstr ""
    667675
    668 #: inc/settings.php:363, inc/styles-admin.php:88
     676#: inc/settings.php:370, inc/styles-admin.php:88
    669677msgid "Layout"
    670678msgstr ""
    671679
    672 #: inc/settings.php:371
     680#: inc/settings.php:378
    673681msgid "Responsive Layout"
    674682msgstr ""
    675683
    676 #: inc/settings.php:372
     684#: inc/settings.php:379
    677685msgid "Collapse widgets, rows and columns on mobile devices."
    678686msgstr ""
    679687
    680 #: inc/settings.php:377
     688#: inc/settings.php:384
    681689msgid "Use Tablet Layout"
    682690msgstr ""
    683691
    684 #: inc/settings.php:378
     692#: inc/settings.php:385
    685693msgid "Collapses columns differently on tablet devices."
    686694msgstr ""
    687695
    688 #: inc/settings.php:384
     696#: inc/settings.php:391
    689697msgid "Detect older browsers"
    690698msgstr ""
    691699
    692 #: inc/settings.php:385
     700#: inc/settings.php:392
    693701msgid "Never"
    694702msgstr ""
    695703
    696 #: inc/settings.php:386
     704#: inc/settings.php:393
    697705msgid "Always"
    698706msgstr ""
    699707
    700 #: inc/settings.php:388
     708#: inc/settings.php:395
    701709msgid "Use Legacy Layout Engine"
    702710msgstr ""
    703711
    704 #: inc/settings.php:389
     712#: inc/settings.php:396
    705713msgid "The CSS and HTML uses floats instead of flexbox for compatibility with very old browsers."
    706714msgstr ""
    707715
    708 #: inc/settings.php:395
     716#: inc/settings.php:402
    709717msgid "Tablet Width"
    710718msgstr ""
    711719
    712 #: inc/settings.php:396
     720#: inc/settings.php:403
    713721msgid "Device width, in pixels, to collapse into a tablet view ."
    714722msgstr ""
    715723
    716 #: inc/settings.php:402
     724#: inc/settings.php:409
    717725msgid "Mobile Width"
    718726msgstr ""
    719727
    720 #: inc/settings.php:403
     728#: inc/settings.php:410
    721729msgid "Device width, in pixels, to collapse into a mobile view ."
    722730msgstr ""
    723731
    724 #: inc/settings.php:409
     732#: inc/settings.php:416
    725733msgid "Row/Widget Bottom Margin"
    726734msgstr ""
    727735
    728 #: inc/settings.php:410
     736#: inc/settings.php:417
    729737msgid "Default margin below rows and widgets."
    730738msgstr ""
    731739
    732 #: inc/settings.php:415
     740#: inc/settings.php:422
    733741msgid "Last Row With Margin"
    734742msgstr ""
    735743
    736 #: inc/settings.php:416
     744#: inc/settings.php:423
    737745msgid "Allow margin in last row."
    738746msgstr ""
    739747
    740 #: inc/settings.php:422
     748#: inc/settings.php:429
    741749msgid "Row Gutter"
    742750msgstr ""
    743751
    744 #: inc/settings.php:423
     752#: inc/settings.php:430
    745753msgid "Default spacing between columns in each row."
    746754msgstr ""
    747755
    748 #: inc/settings.php:429
     756#: inc/settings.php:436
    749757msgid "Full Width Container"
    750758msgstr ""
    751759
    752 #: inc/settings.php:430
     760#: inc/settings.php:437
    753761msgid "The container used for the full width layout."
    754762msgstr ""
    755763
    756 #: inc/settings.php:437
     764#: inc/settings.php:444
    757765msgid "Content"
    758766msgstr ""
    759767
    760 #: inc/settings.php:443
     768#: inc/settings.php:450
    761769msgid "Copy Content"
    762770msgstr ""
    763771
    764 #: inc/settings.php:444
     772#: inc/settings.php:451
    765773msgid "Copy content from Page Builder to post content."
    766774msgstr ""
    767775
    768 #: inc/settings.php:449
     776#: inc/settings.php:456
    769777msgid "Copy Styles"
    770778msgstr ""
    771779
    772 #: inc/settings.php:450
     780#: inc/settings.php:457
    773781msgid "Include styles into your Post Content. This keeps page layouts, even when Page Builder is deactivated."
    774782msgstr ""
    775783
    776 #: inc/settings.php:503, inc/styles-admin.php:273
     784#: inc/settings.php:510, inc/styles-admin.php:273
    777785msgid "Enabled"
    778786msgstr ""
     
    814822msgstr ""
    815823
    816 #: inc/styles-admin.php:191, inc/styles.php:259, inc/styles.php:306
     824#: inc/styles-admin.php:191, inc/styles.php:263, inc/styles.php:310
    817825msgid "Top"
    818826msgstr ""
     
    822830msgstr ""
    823831
    824 #: inc/styles-admin.php:199, inc/styles.php:261, inc/styles.php:308
     832#: inc/styles-admin.php:199, inc/styles.php:265, inc/styles.php:312
    825833msgid "Bottom"
    826834msgstr ""
     
    842850msgstr ""
    843851
    844 #: inc/styles.php:81
     852#: inc/styles.php:85
    845853msgid "%s ID"
    846854msgstr ""
    847855
    848 #: inc/styles.php:84
     856#: inc/styles.php:88
    849857msgid "A custom ID used for this %s."
    850858msgstr ""
    851859
    852 #: inc/styles.php:89
     860#: inc/styles.php:93
    853861msgid "%s Class"
    854862msgstr ""
    855863
    856 #: inc/styles.php:92
     864#: inc/styles.php:96
    857865msgid "A CSS class"
    858866msgstr ""
    859867
    860 #: inc/styles.php:97
     868#: inc/styles.php:101
    861869msgid "CSS Declarations"
    862870msgstr ""
    863871
    864 #: inc/styles.php:100
     872#: inc/styles.php:104
    865873msgid "One declaration per line."
    866874msgstr ""
    867875
    868 #: inc/styles.php:105
     876#: inc/styles.php:109
    869877msgid "Mobile CSS Declarations"
    870878msgstr ""
    871879
    872 #: inc/styles.php:108
     880#: inc/styles.php:112
    873881msgid "CSS declarations applied when in mobile view."
    874882msgstr ""
    875883
    876 #: inc/styles.php:115
     884#: inc/styles.php:119
    877885msgid "Padding"
    878886msgstr ""
    879887
    880 #: inc/styles.php:118
     888#: inc/styles.php:122
    881889msgid "Padding around the entire %s."
    882890msgstr ""
    883891
    884 #: inc/styles.php:126
     892#: inc/styles.php:130
    885893msgid "Mobile Padding"
    886894msgstr ""
    887895
    888 #: inc/styles.php:129
     896#: inc/styles.php:133
    889897msgid "Padding when on mobile devices."
    890898msgstr ""
    891899
    892 #: inc/styles.php:137
     900#: inc/styles.php:141
    893901msgid "Background Color"
    894902msgstr ""
    895903
    896 #: inc/styles.php:140
     904#: inc/styles.php:144
    897905msgid "Background color of the %s."
    898906msgstr ""
    899907
    900 #: inc/styles.php:145
     908#: inc/styles.php:149
    901909msgid "Background Image"
    902910msgstr ""
    903911
    904 #: inc/styles.php:148
     912#: inc/styles.php:152
    905913msgid "Background image of the %s."
    906914msgstr ""
    907915
    908 #: inc/styles.php:153
     916#: inc/styles.php:157
    909917msgid "Background Image Display"
    910918msgstr ""
    911919
    912 #: inc/styles.php:157
     920#: inc/styles.php:161
    913921msgid "Tiled Image"
    914922msgstr ""
    915923
    916 #: inc/styles.php:158
     924#: inc/styles.php:162
    917925msgid "Cover"
    918926msgstr ""
    919927
    920 #: inc/styles.php:159
     928#: inc/styles.php:163
    921929msgid "Centered, with original size"
    922930msgstr ""
    923931
    924 #: inc/styles.php:160
     932#: inc/styles.php:164
    925933msgid "Contain"
    926934msgstr ""
    927935
    928 #: inc/styles.php:161
     936#: inc/styles.php:165
    929937msgid "Fixed"
    930938msgstr ""
    931939
    932 #: inc/styles.php:162
     940#: inc/styles.php:166
    933941msgid "Parallax"
    934942msgstr ""
    935943
    936 #: inc/styles.php:163
     944#: inc/styles.php:167
    937945msgid "Parallax (Original Size)"
    938946msgstr ""
    939947
    940 #: inc/styles.php:165
     948#: inc/styles.php:169
    941949msgid "How the background image is displayed."
    942950msgstr ""
    943951
    944 #: inc/styles.php:170
     952#: inc/styles.php:174
    945953msgid "Border Color"
    946954msgstr ""
    947955
    948 #: inc/styles.php:173
     956#: inc/styles.php:177
    949957msgid "Border color of the %s."
    950958msgstr ""
    951959
    952 #: inc/styles.php:192
     960#: inc/styles.php:196
    953961msgid "Cell Class"
    954962msgstr ""
    955963
    956 #: inc/styles.php:195
     964#: inc/styles.php:199
    957965msgid "Class added to all cells in this row."
    958966msgstr ""
    959967
    960 #: inc/styles.php:202
     968#: inc/styles.php:206
    961969msgid "Bottom Margin"
    962970msgstr ""
    963971
    964 #: inc/styles.php:205
     972#: inc/styles.php:209
    965973msgid "Space below the row. Default is %spx."
    966974msgstr ""
    967975
    968 #: inc/styles.php:210
     976#: inc/styles.php:214
    969977msgid "Gutter"
    970978msgstr ""
    971979
    972 #: inc/styles.php:213
     980#: inc/styles.php:217
    973981msgid "Amount of space between cells. Default is %spx."
    974982msgstr ""
    975983
    976 #: inc/styles.php:218
     984#: inc/styles.php:222
    977985msgid "Row Layout"
    978986msgstr ""
    979987
    980 #: inc/styles.php:222, inc/styles.php:235
     988#: inc/styles.php:226, inc/styles.php:239
    981989msgid "Standard"
    982990msgstr ""
    983991
    984 #: inc/styles.php:223
     992#: inc/styles.php:227
    985993msgid "Full Width"
    986994msgstr ""
    987995
    988 #: inc/styles.php:224
     996#: inc/styles.php:228
    989997msgid "Full Width Stretched"
    990998msgstr ""
    991999
    992 #: inc/styles.php:225
     1000#: inc/styles.php:229
    9931001msgid "Full Width Stretched Padded"
    9941002msgstr ""
    9951003
    996 #: inc/styles.php:231
     1004#: inc/styles.php:235
    9971005msgid "Collapse Behaviour"
    9981006msgstr ""
    9991007
    1000 #: inc/styles.php:236
     1008#: inc/styles.php:240
    10011009msgid "No Collapse"
    10021010msgstr ""
    10031011
    1004 #: inc/styles.php:242
     1012#: inc/styles.php:246
    10051013msgid "Collapse Order"
    10061014msgstr ""
    10071015
    1008 #: inc/styles.php:246, widgets/widgets.php:635, widgets/widgets.php:757, inc/widgets/post-loop.php:329
     1016#: inc/styles.php:250, widgets/widgets.php:635, widgets/widgets.php:757, inc/widgets/post-loop.php:344
    10091017msgid "Default"
    10101018msgstr ""
    10111019
    1012 #: inc/styles.php:247
     1020#: inc/styles.php:251
    10131021msgid "Left on Top"
    10141022msgstr ""
    10151023
    1016 #: inc/styles.php:248
     1024#: inc/styles.php:252
    10171025msgid "Right on Top"
    10181026msgstr ""
    10191027
    1020 #: inc/styles.php:255
     1028#: inc/styles.php:259
    10211029msgid "Cell Vertical Alignment"
    10221030msgstr ""
    10231031
    1024 #: inc/styles.php:260, inc/styles.php:307, widgets/widgets/button/button.php:31
     1032#: inc/styles.php:264, inc/styles.php:311, widgets/widgets/button/button.php:31
    10251033msgid "Center"
    10261034msgstr ""
    10271035
    1028 #: inc/styles.php:262, inc/styles.php:309
     1036#: inc/styles.php:266, inc/styles.php:313
    10291037msgid "Stretch"
    10301038msgstr ""
    10311039
    1032 #: inc/styles.php:271
     1040#: inc/styles.php:275
    10331041msgid "Mobile Bottom Margin"
    10341042msgstr ""
    10351043
    1036 #: inc/styles.php:274
     1044#: inc/styles.php:278
    10371045msgid "Space below the row on mobile devices. Default is %spx."
    10381046msgstr ""
    10391047
    1040 #: inc/styles.php:279
     1048#: inc/styles.php:283
    10411049msgid "Mobile Cell Margins"
    10421050msgstr ""
    10431051
    1044 #: inc/styles.php:282
     1052#: inc/styles.php:286
    10451053msgid "Vertical space between cells in a collapsed mobile row. Default is %spx."
    10461054msgstr ""
    10471055
    1048 #: inc/styles.php:298
     1056#: inc/styles.php:302
    10491057msgid "Cell"
    10501058msgstr ""
    10511059
    1052 #: inc/styles.php:301
     1060#: inc/styles.php:305
    10531061msgid "Vertical Alignment"
    10541062msgstr ""
    10551063
    1056 #: inc/styles.php:305
     1064#: inc/styles.php:309
    10571065msgid "Use row setting"
    10581066msgstr ""
    10591067
    1060 #: inc/styles.php:315, inc/styles.php:355
     1068#: inc/styles.php:319, inc/styles.php:359
    10611069msgid "Font Color"
    10621070msgstr ""
    10631071
    1064 #: inc/styles.php:318
     1072#: inc/styles.php:322
    10651073msgid "Color of text inside this cell."
    10661074msgstr ""
    10671075
    1068 #: inc/styles.php:323, inc/styles.php:363
     1076#: inc/styles.php:327, inc/styles.php:367
    10691077msgid "Links Color"
    10701078msgstr ""
    10711079
    1072 #: inc/styles.php:326
     1080#: inc/styles.php:330
    10731081msgid "Color of links inside this cell."
    10741082msgstr ""
    10751083
    1076 #: inc/styles.php:344
     1084#: inc/styles.php:348
    10771085msgid "Margin"
    10781086msgstr ""
    10791087
    1080 #: inc/styles.php:347
     1088#: inc/styles.php:351
    10811089msgid "Margins around the widget."
    10821090msgstr ""
    10831091
    1084 #: inc/styles.php:358
     1092#: inc/styles.php:362
    10851093msgid "Color of text inside this widget."
    10861094msgstr ""
    10871095
    1088 #: inc/styles.php:366
     1096#: inc/styles.php:370
    10891097msgid "Color of links inside this widget."
    10901098msgstr ""
     
    13221330msgstr ""
    13231331
    1324 #: widgets/widgets.php:594, inc/widgets/post-loop.php:287
     1332#: widgets/widgets.php:594, inc/widgets/post-loop.php:302
    13251333msgid "Post Type"
    13261334msgstr ""
    13271335
    1328 #: widgets/widgets.php:601, inc/widgets/post-loop.php:296
     1336#: widgets/widgets.php:601, inc/widgets/post-loop.php:311
    13291337msgid "Posts Per Page"
    13301338msgstr ""
    13311339
    1332 #: widgets/widgets.php:606, inc/widgets/post-loop.php:301
     1340#: widgets/widgets.php:606, inc/widgets/post-loop.php:316
    13331341msgid "Order By"
    13341342msgstr ""
    13351343
    1336 #: widgets/widgets.php:608, widgets/widgets.php:783, inc/widgets/post-content.php:60, inc/widgets/post-loop.php:303
     1344#: widgets/widgets.php:608, widgets/widgets.php:783, inc/widgets/post-content.php:60, inc/widgets/post-loop.php:318
    13371345msgid "None"
    13381346msgstr ""
    13391347
    1340 #: widgets/widgets.php:609, inc/widgets/post-loop.php:304
     1348#: widgets/widgets.php:609, inc/widgets/post-loop.php:319
    13411349msgid "Post ID"
    13421350msgstr ""
    13431351
    1344 #: widgets/widgets.php:610, inc/widgets/post-loop.php:305
     1352#: widgets/widgets.php:610, inc/widgets/post-loop.php:320
    13451353msgid "Author"
    13461354msgstr ""
    13471355
    1348 #: widgets/widgets.php:611, widgets/widgets.php:612, inc/widgets/post-loop.php:306, inc/widgets/post-loop.php:307, widgets/widgets/testimonial/testimonial.php:15
     1356#: widgets/widgets.php:611, widgets/widgets.php:612, inc/widgets/post-loop.php:321, inc/widgets/post-loop.php:322, widgets/widgets/testimonial/testimonial.php:15
    13491357msgid "Name"
    13501358msgstr ""
    13511359
    1352 #: widgets/widgets.php:613, inc/widgets/post-loop.php:308
     1360#: widgets/widgets.php:613, inc/widgets/post-loop.php:323
    13531361msgid "Date"
    13541362msgstr ""
    13551363
    1356 #: widgets/widgets.php:614, inc/widgets/post-loop.php:309
     1364#: widgets/widgets.php:614, inc/widgets/post-loop.php:324
    13571365msgid "Modified"
    13581366msgstr ""
    13591367
    1360 #: widgets/widgets.php:615, inc/widgets/post-loop.php:310
     1368#: widgets/widgets.php:615, inc/widgets/post-loop.php:325
    13611369msgid "Parent"
    13621370msgstr ""
    13631371
    1364 #: widgets/widgets.php:616, inc/widgets/post-loop.php:311
     1372#: widgets/widgets.php:616, inc/widgets/post-loop.php:326
    13651373msgid "Random"
    13661374msgstr ""
    13671375
    1368 #: widgets/widgets.php:617, inc/widgets/post-loop.php:312
     1376#: widgets/widgets.php:617, inc/widgets/post-loop.php:327
    13691377msgid "Comment Count"
    13701378msgstr ""
    13711379
    1372 #: widgets/widgets.php:618, inc/widgets/post-loop.php:313
     1380#: widgets/widgets.php:618, inc/widgets/post-loop.php:328
    13731381msgid "Menu Order"
    13741382msgstr ""
    13751383
    1376 #: widgets/widgets.php:624, inc/widgets/post-loop.php:319
     1384#: widgets/widgets.php:624, inc/widgets/post-loop.php:334
    13771385msgid "Order"
    13781386msgstr ""
    13791387
    1380 #: widgets/widgets.php:626, inc/widgets/post-loop.php:322
     1388#: widgets/widgets.php:626, inc/widgets/post-loop.php:337
    13811389msgid "Ascending"
    13821390msgstr ""
    13831391
    1384 #: widgets/widgets.php:627, inc/widgets/post-loop.php:321
     1392#: widgets/widgets.php:627, inc/widgets/post-loop.php:336
    13851393msgid "Descending"
    13861394msgstr ""
    13871395
    1388 #: widgets/widgets.php:633, inc/widgets/post-loop.php:327
     1396#: widgets/widgets.php:633, inc/widgets/post-loop.php:342
    13891397msgid "Sticky Posts"
    13901398msgstr ""
    13911399
    1392 #: widgets/widgets.php:636, inc/widgets/post-loop.php:330
     1400#: widgets/widgets.php:636, inc/widgets/post-loop.php:345
    13931401msgid "Ignore Sticky"
    13941402msgstr ""
    13951403
    1396 #: widgets/widgets.php:637, inc/widgets/post-loop.php:331
     1404#: widgets/widgets.php:637, inc/widgets/post-loop.php:346
    13971405msgid "Exclude Sticky"
    13981406msgstr ""
    13991407
    1400 #: widgets/widgets.php:638, inc/widgets/post-loop.php:332
     1408#: widgets/widgets.php:638, inc/widgets/post-loop.php:347
    14011409msgid "Only Sticky"
    14021410msgstr ""
     
    14061414msgstr ""
    14071415
    1408 #: widgets/widgets.php:648, inc/widgets/post-loop.php:344
     1416#: widgets/widgets.php:648, inc/widgets/post-loop.php:359
    14091417msgid "Additional query arguments. See 1{query_posts}."
    14101418msgstr ""
     
    15831591msgstr ""
    15841592
    1585 #: inc/widgets/layout.php:109
     1593#: inc/widgets/layout.php:114
    15861594msgid "Open Builder"
    15871595msgstr ""
     
    15951603msgstr ""
    15961604
    1597 #: inc/widgets/post-content.php:61, inc/widgets/post-loop-helper.php:41, inc/widgets/post-loop.php:250, widgets/widgets/call-to-action/call-to-action.php:15, widgets/widgets/list/list.php:15, widgets/widgets/price-box/price-box.php:15
     1605#: inc/widgets/post-content.php:61, inc/widgets/post-loop-helper.php:41, inc/widgets/post-loop.php:265, widgets/widgets/call-to-action/call-to-action.php:15, widgets/widgets/list/list.php:15, widgets/widgets/price-box/price-box.php:15
    15981606msgid "Title"
    15991607msgstr ""
     
    16071615msgstr ""
    16081616
    1609 #: inc/widgets/post-loop-helper.php:31, inc/widgets/post-loop.php:23
     1617#: inc/widgets/post-loop-helper.php:31, inc/widgets/post-loop.php:24
    16101618msgid "Post Loop"
    16111619msgstr ""
    16121620
    1613 #: inc/widgets/post-loop-helper.php:33, inc/widgets/post-loop.php:25
     1621#: inc/widgets/post-loop-helper.php:33, inc/widgets/post-loop.php:26
    16141622msgid "Displays a post loop."
    16151623msgstr ""
    16161624
    1617 #: inc/widgets/post-loop-helper.php:45, inc/widgets/post-loop.php:254
     1625#: inc/widgets/post-loop-helper.php:45, inc/widgets/post-loop.php:269
    16181626msgid "Template"
    16191627msgstr ""
    16201628
    1621 #: inc/widgets/post-loop-helper.php:52, inc/widgets/post-loop.php:272
     1629#: inc/widgets/post-loop-helper.php:52, inc/widgets/post-loop.php:287
    16221630msgid "If the template supports it, cut posts and display the more link."
    16231631msgstr ""
    16241632
    1625 #: inc/widgets/post-loop.php:220
     1633#: inc/widgets/post-loop.php:235
    16261634msgid "Your theme doesn't have any post loops."
    16271635msgstr ""
    16281636
    1629 #: inc/widgets/post-loop.php:270
     1637#: inc/widgets/post-loop.php:285
    16301638msgid "More Link"
    16311639msgstr ""
    16321640
    1633 #: inc/widgets/post-loop.php:314
     1641#: inc/widgets/post-loop.php:329
    16341642msgid "Post In Order"
    16351643msgstr ""
    16361644
    1637 #: inc/widgets/post-loop.php:337
     1645#: inc/widgets/post-loop.php:352
    16381646msgid "Additional "
    16391647msgstr ""
  • siteorigin-panels/trunk/readme.txt

    r2316661 r2342256  
    33Requires at least: 4.7
    44Tested up to: 5.5
    5 Stable tag: 2.11.0
    6 Build time: 2020-06-02T16:27:51+02:00
     5Stable tag: 2.11.1
     6Build time: 2020-07-17T13:50:39+02:00
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl.html
     
    9696
    9797== Changelog ==
     98
     99= 2.11.1 - 17 July 2020 =
     100* Added Rank Math SEO plugin support.
     101* Added [siteorigin_panels_layout_builder_supports](https://siteorigin.com/docs/page-builder/hooks/builder-features-actions/) filter.
     102* Block Editor: Added History and Live Editor functionality to the SiteOrigin Layout Block.
     103* Resolved a plugin conflict between the AMP by AMP Project Contributors plugin and the Text widget.
     104* Block Editor: Prevented the page saving until the SiteOrigin Layout Block is finished setting up widgets using AJAX.
     105* Mobile: Several minor improvements to the Page Builder interface to improve usability while editing on mobile devices.
     106* Fixed `undefined` Page Builder tab in WordPress 5.5.
     107* Added a new "Disable Background Parallax On Mobile" global setting to `Settings > Page Builder > General`.
     108* Post Loop: Added custom pagination format support to allow developers to use two Post Loop widgets with independent pagination on a page.
     109* Removed all HTML from the CSS Declarations field and strip slashes from textarea/code fields.
    98110
    99111= 2.11.0 - 02 June 2020 =
  • siteorigin-panels/trunk/siteorigin-panels.php

    r2316661 r2342256  
    44Plugin URI: https://siteorigin.com/page-builder/
    55Description: A drag and drop, responsive page builder that simplifies building your website.
    6 Version: 2.11.0
     6Version: 2.11.1
    77Author: SiteOrigin
    88Author URI: https://siteorigin.com
     
    1212*/
    1313
    14 define( 'SITEORIGIN_PANELS_VERSION', '2.11.0' );
     14define( 'SITEORIGIN_PANELS_VERSION', '2.11.1' );
    1515if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
    1616    define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
    1717}
    1818define( 'SITEORIGIN_PANELS_CSS_SUFFIX', '.min' );
    19 define( 'SITEORIGIN_PANELS_VERSION_SUFFIX', '-2110' );
     19define( 'SITEORIGIN_PANELS_VERSION_SUFFIX', '-2111' );
    2020
    2121require_once plugin_dir_path( __FILE__ ) . 'inc/functions.php';
     
    3131        add_action( 'plugins_loaded', array( $this, 'version_check' ) );
    3232        add_action( 'plugins_loaded', array( $this, 'init' ) );
     33        add_action( 'plugins_loaded', array( $this, 'init_compat' ), 100 );
    3334        add_action( 'admin_bar_menu', array( $this, 'admin_bar_menu' ), 100 );
    3435       
     
    192193            SiteOrigin_Panels_Admin::single();
    193194        }
    194        
     195    }
     196
     197    /**
     198     * Loads Page Builder compatibility to allow other plugins/themes
     199     */
     200    public function init_compat() {
    195201        // Compatibility with Widget Options plugin
    196         if( class_exists('WP_Widget_Options') ) {
     202        if ( class_exists( 'WP_Widget_Options' ) ) {
    197203            require_once plugin_dir_path( __FILE__ ) . 'compat/widget-options.php';
     204        }
     205
     206        // Compatibility with AMP plugin
     207        if ( is_admin() && function_exists( 'amp_bootstrap_plugin' ) ) {
     208            require_once plugin_dir_path( __FILE__ ) . 'compat/amp.php';
    198209        }
    199210    }
Note: See TracChangeset for help on using the changeset viewer.