Version Description
(December 08, 2020) = * [Bug-Fix] Default image was seen for blog pages using the Pagelayer Template system. This is fixed.
Download this release
Release Info
Developer | pagelayer |
Plugin | Page Builder: PageLayer – Drag and Drop website builder |
Version | 1.3.8 |
Comparing to | |
See all releases |
Code changes from version 1.3.7 to 1.3.8
- init.php +1 -1
- lib/pquery/gan_parser_html.php +1 -1
- main/shortcode_functions.php +13 -13
- pagelayer.php +1 -1
- readme.txt +4 -1
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.3.
|
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.3.8');
|
9 |
define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
|
10 |
define('PAGELAYER_SLUG', 'pagelayer');
|
11 |
define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
|
lib/pquery/gan_parser_html.php
CHANGED
@@ -406,7 +406,7 @@ class HtmlParserBase extends TokenizerBase {
|
|
406 |
$this->status['comment'] = true;
|
407 |
|
408 |
if (($this->doc[$this->pos + 4] === '[') && (strcasecmp(substr($this->doc, $this->pos + 5, 2), 'if') === 0)) {
|
409 |
-
return $this->
|
410 |
} else {
|
411 |
return $this->parse_comment();
|
412 |
}
|
406 |
$this->status['comment'] = true;
|
407 |
|
408 |
if (($this->doc[$this->pos + 4] === '[') && (strcasecmp(substr($this->doc, $this->pos + 5, 2), 'if') === 0)) {
|
409 |
+
return $this->parse_comment();
|
410 |
} else {
|
411 |
return $this->parse_comment();
|
412 |
}
|
main/shortcode_functions.php
CHANGED
@@ -159,19 +159,6 @@ function pagelayer_render_shortcode($atts, $content = '', $tag = '', $inner_bloc
|
|
159 |
|
160 |
//echo $tab.' - '.$section.' - '.$prop.'<br>';
|
161 |
|
162 |
-
// Load any attachment values
|
163 |
-
if(in_array($param['type'], ['image', 'video', 'audio', 'media'])){
|
164 |
-
|
165 |
-
$attachment = ($param['type'] == 'image') ? pagelayer_image(@$el['atts'][$prop]) : pagelayer_attachment(@$el['atts'][$prop]);
|
166 |
-
|
167 |
-
if(!empty($attachment)){
|
168 |
-
foreach($attachment as $k => $v){
|
169 |
-
$el['tmp'][$prop.'-'.$k] = $v;
|
170 |
-
}
|
171 |
-
}
|
172 |
-
|
173 |
-
}
|
174 |
-
|
175 |
// No value set
|
176 |
if(empty($el['atts'][$prop]) && empty($el['atts'][$prop.'_tablet']) && empty($el['atts'][$prop.'_mobile'])){
|
177 |
continue;
|
@@ -237,6 +224,19 @@ function pagelayer_render_shortcode($atts, $content = '', $tag = '', $inner_bloc
|
|
237 |
continue;
|
238 |
}
|
239 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
// Handle the edit fields
|
241 |
if(!empty($param['edit'])){
|
242 |
$el['edit'][$prop] = $param['edit'];
|
159 |
|
160 |
//echo $tab.' - '.$section.' - '.$prop.'<br>';
|
161 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
// No value set
|
163 |
if(empty($el['atts'][$prop]) && empty($el['atts'][$prop.'_tablet']) && empty($el['atts'][$prop.'_mobile'])){
|
164 |
continue;
|
224 |
continue;
|
225 |
}
|
226 |
|
227 |
+
// Load any attachment values - This should go on top in the newer version @TODO
|
228 |
+
if(in_array($param['type'], ['image', 'video', 'audio', 'media'])){
|
229 |
+
|
230 |
+
$attachment = ($param['type'] == 'image') ? pagelayer_image(@$el['atts'][$prop]) : pagelayer_attachment(@$el['atts'][$prop]);
|
231 |
+
|
232 |
+
if(!empty($attachment)){
|
233 |
+
foreach($attachment as $k => $v){
|
234 |
+
$el['tmp'][$prop.'-'.$k] = $v;
|
235 |
+
}
|
236 |
+
}
|
237 |
+
|
238 |
+
}
|
239 |
+
|
240 |
// Handle the edit fields
|
241 |
if(!empty($param['edit'])){
|
242 |
$el['edit'][$prop] = $param['edit'];
|
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.3.
|
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.3.8
|
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.3.
|
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.3.7 (December 07, 2020) =
|
113 |
* [Bug-Fix] After the last update the primary menu toggle not was not working. This is fixed.
|
114 |
* [Bug-Fix] On turning on the error report in PHP, some PHP error notice was shown. This is fixed.
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.6
|
6 |
Requires PHP: 5.5
|
7 |
+
Stable tag: 1.3.8
|
8 |
License: LGPL v2.1
|
9 |
License URI: http://www.gnu.org/licenses/lgpl-2.1.html
|
10 |
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 1.3.8 (December 08, 2020) =
|
113 |
+
* [Bug-Fix] Default image was seen for blog pages using the Pagelayer Template system. This is fixed.
|
114 |
+
|
115 |
= 1.3.7 (December 07, 2020) =
|
116 |
* [Bug-Fix] After the last update the primary menu toggle not was not working. This is fixed.
|
117 |
* [Bug-Fix] On turning on the error report in PHP, some PHP error notice was shown. This is fixed.
|