Version Description
- 29 June 2018 =
- Skip Yoast compat for non PB content.
Download this release
Release Info
Developer | gpriday |
Plugin | Page Builder by SiteOrigin |
Version | 2.7.2 |
Comparing to | |
See all releases |
Code changes from version 2.7.1 to 2.7.2
- js/{siteorigin-panels-271.js → siteorigin-panels-272.js} +0 -0
- js/{siteorigin-panels-271.min.js → siteorigin-panels-272.min.js} +0 -0
- js/{styling-271.js → styling-272.js} +0 -0
- js/{styling-271.min.js → styling-272.min.js} +0 -0
- js/yoast-compat.js +5 -1
- js/yoast-compat.min.js +1 -1
- readme.txt +5 -2
- siteorigin-panels.php +3 -3
js/{siteorigin-panels-271.js → siteorigin-panels-272.js}
RENAMED
File without changes
|
js/{siteorigin-panels-271.min.js → siteorigin-panels-272.min.js}
RENAMED
File without changes
|
js/{styling-271.js → styling-272.js}
RENAMED
File without changes
|
js/{styling-271.min.js → styling-272.min.js}
RENAMED
File without changes
|
js/yoast-compat.js
CHANGED
@@ -34,8 +34,12 @@ jQuery(function($){
|
|
34 |
|
35 |
SiteOriginYoastCompat.prototype.contentModification = function(data) {
|
36 |
var re = new RegExp( panelsOptions.siteoriginWidgetRegex , "i" );
|
37 |
-
var $data = $(data);
|
38 |
|
|
|
|
|
|
|
|
|
39 |
|
40 |
$data.find('.so-panel.widget').each(function(i, el){
|
41 |
var $widget = $(el),
|
34 |
|
35 |
SiteOriginYoastCompat.prototype.contentModification = function(data) {
|
36 |
var re = new RegExp( panelsOptions.siteoriginWidgetRegex , "i" );
|
37 |
+
var $data = $( '<div>' + data + '</div>' );
|
38 |
|
39 |
+
if( $data.find('.so-panel.widget').length === 0 ) {
|
40 |
+
// Skip this for non Page builder pages
|
41 |
+
return data;
|
42 |
+
}
|
43 |
|
44 |
$data.find('.so-panel.widget').each(function(i, el){
|
45 |
var $widget = $(el),
|
js/yoast-compat.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(t){if(void 0!==YoastSEO.app){var e=function(){function t(t){return t&&"string"==typeof t&&(t=t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),t=t.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),e.innerHTML=t,t=e.textContent,e.textContent=""),t}var e=document.createElement("div");return t}(),i=function(){YoastSEO.app.registerPlugin("siteOriginYoastCompat",{status:"ready"}),YoastSEO.app.registerModification("content",this.contentModification,"siteOriginYoastCompat",5)};i.prototype.contentModification=function(i){var
|
1 |
+
jQuery(function(t){if(void 0!==YoastSEO.app){var e=function(){function t(t){return t&&"string"==typeof t&&(t=t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),t=t.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),e.innerHTML=t,t=e.textContent,e.textContent=""),t}var e=document.createElement("div");return t}(),i=function(){YoastSEO.app.registerPlugin("siteOriginYoastCompat",{status:"ready"}),YoastSEO.app.registerModification("content",this.contentModification,"siteOriginYoastCompat",5)};i.prototype.contentModification=function(i){var n=new RegExp(panelsOptions.siteoriginWidgetRegex,"i"),a=t("<div>"+i+"</div>");return 0===a.find(".so-panel.widget").length?i:(a.find(".so-panel.widget").each(function(i,a){var r=t(a),o=n.exec(r.html());try{if(!_.isNull(o)&&""===r.html().replace(n,"").trim()){var s=/class="(.*?)"/.exec(o[3]),c=jQuery(o[5]),l=JSON.parse(e(c.val())),p=l.instance,g="";if(_.isNull(p.title)||(g+="<h3>"+p.title+"</h3>"),!_.isNull(s)){switch(s[1]){case"SiteOrigin_Widget_Image_Widget":g=t("img").attr({src:"#"+p.image,srcset:"",alt:p.alt,title:p.title}).prop("outerHTML");break;case"WP_Widget_Media_Image":g=t("img").attr({src:"#"+p.attachment_id,srcset:"",alt:p.alt,title:p.image_title}).prop("outerHTML")}}r.html(g)}}catch(t){r.html("")}}),a.html())},new i}});
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Tags: page builder, responsive, widget, widgets, builder, page, admin, gallery, content, cms, pages, post, css, layout, grid
|
3 |
Requires at least: 4.4
|
4 |
Tested up to: 4.9
|
5 |
-
Stable tag: 2.7.
|
6 |
-
Build time: 2018-06-
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
Donate link: https://siteorigin.com/downloads/contribution/
|
@@ -96,6 +96,9 @@ We've tried to ensure that Page Builder is compatible with most plugin widgets.
|
|
96 |
|
97 |
== Changelog ==
|
98 |
|
|
|
|
|
|
|
99 |
= 2.7.1 - 28 June 2018 =
|
100 |
* Check for yoast metabox before enqueuing compat JS.
|
101 |
|
2 |
Tags: page builder, responsive, widget, widgets, builder, page, admin, gallery, content, cms, pages, post, css, layout, grid
|
3 |
Requires at least: 4.4
|
4 |
Tested up to: 4.9
|
5 |
+
Stable tag: 2.7.2
|
6 |
+
Build time: 2018-06-29T09:54:52+02:00
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
Donate link: https://siteorigin.com/downloads/contribution/
|
96 |
|
97 |
== Changelog ==
|
98 |
|
99 |
+
= 2.7.2 - 29 June 2018 =
|
100 |
+
* Skip Yoast compat for non PB content.
|
101 |
+
|
102 |
= 2.7.1 - 28 June 2018 =
|
103 |
* Check for yoast metabox before enqueuing compat JS.
|
104 |
|
siteorigin-panels.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Page Builder by SiteOrigin
|
4 |
Plugin URI: https://siteorigin.com/page-builder/
|
5 |
Description: A drag and drop, responsive page builder that simplifies building your website.
|
6 |
-
Version: 2.7.
|
7 |
Author: SiteOrigin
|
8 |
Author URI: https://siteorigin.com
|
9 |
License: GPL3
|
@@ -11,12 +11,12 @@ License URI: http://www.gnu.org/licenses/gpl.html
|
|
11 |
Donate link: http://siteorigin.com/page-builder/#donate
|
12 |
*/
|
13 |
|
14 |
-
define( 'SITEORIGIN_PANELS_VERSION', '2.7.
|
15 |
if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
|
16 |
define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
|
17 |
}
|
18 |
define( 'SITEORIGIN_PANELS_CSS_SUFFIX', '.min' );
|
19 |
-
define( 'SITEORIGIN_PANELS_VERSION_SUFFIX', '-
|
20 |
|
21 |
require_once plugin_dir_path( __FILE__ ) . 'inc/functions.php';
|
22 |
|
3 |
Plugin Name: Page Builder by SiteOrigin
|
4 |
Plugin URI: https://siteorigin.com/page-builder/
|
5 |
Description: A drag and drop, responsive page builder that simplifies building your website.
|
6 |
+
Version: 2.7.2
|
7 |
Author: SiteOrigin
|
8 |
Author URI: https://siteorigin.com
|
9 |
License: GPL3
|
11 |
Donate link: http://siteorigin.com/page-builder/#donate
|
12 |
*/
|
13 |
|
14 |
+
define( 'SITEORIGIN_PANELS_VERSION', '2.7.2' );
|
15 |
if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
|
16 |
define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
|
17 |
}
|
18 |
define( 'SITEORIGIN_PANELS_CSS_SUFFIX', '.min' );
|
19 |
+
define( 'SITEORIGIN_PANELS_VERSION_SUFFIX', '-272' );
|
20 |
|
21 |
require_once plugin_dir_path( __FILE__ ) . 'inc/functions.php';
|
22 |
|