Version Description
(Jan 02, 2021) = * [Bug-Fix] In some cases if the element attributes were empty, the element was not rendering properly after the last version. This is fixed.
Download this release
Release Info
Developer | pagelayer |
Plugin | Page Builder: PageLayer – Drag and Drop website builder |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4.0 to 1.4.1
- init.php +1 -1
- main/ajax.php +4 -4
- main/shortcode_functions.php +14 -2
- pagelayer.php +1 -1
- readme.txt +6 -3
init.php
CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit;
|
|
5 |
|
6 |
define('PAGELAYER_BASE', plugin_basename(PAGELAYER_FILE));
|
7 |
define('PAGELAYER_PRO_BASE', 'pagelayer-pro/pagelayer-pro.php');
|
8 |
-
define('PAGELAYER_VERSION', '1.4.
|
9 |
define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
|
10 |
define('PAGELAYER_SLUG', 'pagelayer');
|
11 |
define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
|
5 |
|
6 |
define('PAGELAYER_BASE', plugin_basename(PAGELAYER_FILE));
|
7 |
define('PAGELAYER_PRO_BASE', 'pagelayer-pro/pagelayer-pro.php');
|
8 |
+
define('PAGELAYER_VERSION', '1.4.1');
|
9 |
define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
|
10 |
define('PAGELAYER_SLUG', 'pagelayer');
|
11 |
define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
|
main/ajax.php
CHANGED
@@ -1669,8 +1669,8 @@ function pagelayer_export_template(){
|
|
1669 |
}
|
1670 |
|
1671 |
// Only blocks allowed
|
1672 |
-
if(!has_blocks($v->post_content)){
|
1673 |
-
$done['error'] = '
|
1674 |
pagelayer_json_output($done);
|
1675 |
}
|
1676 |
|
@@ -1716,8 +1716,8 @@ function pagelayer_export_template(){
|
|
1716 |
foreach($posts as $k => $v){
|
1717 |
|
1718 |
// Only blocks allowed
|
1719 |
-
if(!has_blocks($v->post_content)){
|
1720 |
-
$done['error'] = 'The
|
1721 |
pagelayer_json_output($done);
|
1722 |
}
|
1723 |
|
1669 |
}
|
1670 |
|
1671 |
// Only blocks allowed
|
1672 |
+
if(!has_blocks($v->post_content) && !empty($v->post_content)){
|
1673 |
+
$done['error'] = 'The pagelayer template '.$v->ID.' has Shortcodes which is not allowed for export !';
|
1674 |
pagelayer_json_output($done);
|
1675 |
}
|
1676 |
|
1716 |
foreach($posts as $k => $v){
|
1717 |
|
1718 |
// Only blocks allowed
|
1719 |
+
if(!has_blocks($v->post_content) && !empty($v->post_content)){
|
1720 |
+
$done['error'] = 'The '.$type.' '.$v->ID.' has Shortcodes which is not allowed for export !';
|
1721 |
pagelayer_json_output($done);
|
1722 |
}
|
1723 |
|
main/shortcode_functions.php
CHANGED
@@ -84,8 +84,12 @@ function pagelayer_render_shortcode($atts, $content = '', $tag = '', $inner_bloc
|
|
84 |
$class = 'pagelayer-'.$_tag;
|
85 |
}
|
86 |
|
87 |
-
$atts
|
88 |
-
|
|
|
|
|
|
|
|
|
89 |
// If global - > Get the post and replace $atts
|
90 |
if(!empty($atts['global_id'])){
|
91 |
|
@@ -408,6 +412,14 @@ function pagelayer_render_shortcode($atts, $content = '', $tag = '', $inner_bloc
|
|
408 |
pagelayer_create_sc($el, $is_block);
|
409 |
}
|
410 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
$div = '<div pagelayer-id="'.$el['id'].'">
|
412 |
<!-- '.json_encode(['attr' => $el['oAtts'], 'tmp' => $el['tmp']]).' -->
|
413 |
<style pagelayer-style-id="'.$el['id'].'"></style>';
|
84 |
$class = 'pagelayer-'.$_tag;
|
85 |
}
|
86 |
|
87 |
+
if(empty($atts)){
|
88 |
+
$atts = array();
|
89 |
+
}else{
|
90 |
+
$atts = (array) $atts;
|
91 |
+
}
|
92 |
+
|
93 |
// If global - > Get the post and replace $atts
|
94 |
if(!empty($atts['global_id'])){
|
95 |
|
412 |
pagelayer_create_sc($el, $is_block);
|
413 |
}
|
414 |
|
415 |
+
if(empty($el['oAtts'])){
|
416 |
+
$el['oAtts'] = (object)[];
|
417 |
+
}
|
418 |
+
|
419 |
+
if(empty($el['tmp'])){
|
420 |
+
$el['tmp'] = (object)[];
|
421 |
+
}
|
422 |
+
|
423 |
$div = '<div pagelayer-id="'.$el['id'].'">
|
424 |
<!-- '.json_encode(['attr' => $el['oAtts'], 'tmp' => $el['tmp']]).' -->
|
425 |
<style pagelayer-style-id="'.$el['id'].'"></style>';
|
pagelayer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: PageLayer
|
4 |
Plugin URI: http://wordpress.org/plugins/pagelayer/
|
5 |
Description: PageLayer is a WordPress page builder plugin. Its very easy to use and very light on the browser.
|
6 |
-
Version: 1.4.
|
7 |
Author: Pagelayer Team
|
8 |
Author URI: https://pagelayer.com/
|
9 |
License: LGPL v2.1
|
3 |
Plugin Name: PageLayer
|
4 |
Plugin URI: http://wordpress.org/plugins/pagelayer/
|
5 |
Description: PageLayer is a WordPress page builder plugin. Its very easy to use and very light on the browser.
|
6 |
+
Version: 1.4.1
|
7 |
Author: Pagelayer Team
|
8 |
Author URI: https://pagelayer.com/
|
9 |
License: LGPL v2.1
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: page builder, editor, landing page, drag-and-drop, pagelayer, form-builder
|
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.6
|
6 |
Requires PHP: 5.5
|
7 |
-
Stable tag: 1.4.
|
8 |
License: LGPL v2.1
|
9 |
License URI: http://www.gnu.org/licenses/lgpl-2.1.html
|
10 |
|
@@ -109,6 +109,9 @@ Do you have questions related to PageLayer ? Use the following links :
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
112 |
= 1.4.0 (Jan 01, 2021) =
|
113 |
* [Improvement] While editing the page, the element attributes storing method has been further improved and will reduce your page size.
|
114 |
* [Improvement] The element pagelayer-id size has been reduced from 16 chars to 8 chars and will reduce your page size.
|
@@ -125,10 +128,10 @@ Do you have questions related to PageLayer ? Use the following links :
|
|
125 |
* [Bug-Fix] Default image was seen for blog pages using the Pagelayer Template system. This is fixed.
|
126 |
|
127 |
= 1.3.7 (December 07, 2020) =
|
128 |
-
* [Bug-Fix] After the last update the primary menu toggle
|
129 |
* [Bug-Fix] On turning on the error report in PHP, some PHP error notice was shown. This is fixed.
|
130 |
* [Bug-Fix] The box-shadow on the element's hover was not working properly. This is fixed.
|
131 |
-
* [Bug-Fix] In the certain cases the image
|
132 |
* [Bug-Fix] In the review slider widget the author vertical alignment was proper. This is fixed.
|
133 |
|
134 |
= 1.3.6 (December 05, 2020) =
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.6
|
6 |
Requires PHP: 5.5
|
7 |
+
Stable tag: 1.4.1
|
8 |
License: LGPL v2.1
|
9 |
License URI: http://www.gnu.org/licenses/lgpl-2.1.html
|
10 |
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 1.4.1 (Jan 02, 2021) =
|
113 |
+
* [Bug-Fix] In some cases if the element attributes were empty, the element was not rendering properly after the last version. This is fixed.
|
114 |
+
|
115 |
= 1.4.0 (Jan 01, 2021) =
|
116 |
* [Improvement] While editing the page, the element attributes storing method has been further improved and will reduce your page size.
|
117 |
* [Improvement] The element pagelayer-id size has been reduced from 16 chars to 8 chars and will reduce your page size.
|
128 |
* [Bug-Fix] Default image was seen for blog pages using the Pagelayer Template system. This is fixed.
|
129 |
|
130 |
= 1.3.7 (December 07, 2020) =
|
131 |
+
* [Bug-Fix] After the last update the primary menu toggle was not working. This is fixed.
|
132 |
* [Bug-Fix] On turning on the error report in PHP, some PHP error notice was shown. This is fixed.
|
133 |
* [Bug-Fix] The box-shadow on the element's hover was not working properly. This is fixed.
|
134 |
+
* [Bug-Fix] In the certain cases the image alignment on nivo-lightbox was proper. This is fixed.
|
135 |
* [Bug-Fix] In the review slider widget the author vertical alignment was proper. This is fixed.
|
136 |
|
137 |
= 1.3.6 (December 05, 2020) =
|