Version Description
(August 28, 2020) = * [Task] We have tested the jQuery changes in WordPress 5.5. * [Bug-Fix] WordPress widgets were not rendering properly. This is fixed. * [Bug-Fix] In some cases CSS was not rendering properly. This is fixed. * [Bug-Fix] In the Accordion and Collapse widget, when we click on the content area, the Accordion and Collapse tabs were closed. This is fixed.
Download this release
Release Info
Developer | pagelayer |
Plugin | Page Builder: PageLayer – Drag and Drop website builder |
Version | 1.2.4 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.2.4
- css/pagelayer-frontend.css +1 -1
- init.php +1 -1
- js/pagelayer-editor.js +8 -4
- js/pagelayer-frontend.js +10 -10
- main/functions.php +4 -2
- main/shortcode_functions.php +2 -1
- pagelayer.php +1 -1
- readme.txt +7 -2
css/pagelayer-frontend.css
CHANGED
@@ -2491,7 +2491,7 @@ background-color: #ccc;
|
|
2491 |
}
|
2492 |
|
2493 |
/* Style the tab content */
|
2494 |
-
.pagelayer-tabs .pagelayer-tabcontainer
|
2495 |
display: none;
|
2496 |
padding: 6px 12px;
|
2497 |
border-top: none;
|
2491 |
}
|
2492 |
|
2493 |
/* Style the tab content */
|
2494 |
+
.pagelayer-tabs .pagelayer-tabcontainer .pagelayer-tab{
|
2495 |
display: none;
|
2496 |
padding: 6px 12px;
|
2497 |
border-top: none;
|
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.2.
|
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.2.4');
|
9 |
define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
|
10 |
define('PAGELAYER_SLUG', 'pagelayer');
|
11 |
define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
|
js/pagelayer-editor.js
CHANGED
@@ -3415,7 +3415,8 @@ var pagelayer_escapeChars = {
|
|
3415 |
'>' : 'gt',
|
3416 |
'"' : 'quot',
|
3417 |
//'&' : 'amp',
|
3418 |
-
'\'' : '#39'
|
|
|
3419 |
};
|
3420 |
|
3421 |
// To unescape
|
@@ -3427,7 +3428,8 @@ var pagelayer_unescapeChars = {
|
|
3427 |
'gt' : '>',
|
3428 |
'quot' : '"',
|
3429 |
//'amp' : '&',
|
3430 |
-
'#39' : '\''
|
|
|
3431 |
};
|
3432 |
|
3433 |
var pagelayer_escaperegex_S = '[';
|
@@ -3442,6 +3444,8 @@ var pagelayer_escaperegex = new RegExp( pagelayer_escaperegex_S, 'g');
|
|
3442 |
function pagelayer_escapeHTML(str) {
|
3443 |
return str.replace(pagelayer_escaperegex, function(m) {
|
3444 |
if(m == '[' || m == ']') m = '\\'+m;
|
|
|
|
|
3445 |
return '&' + pagelayer_escapeChars[m] + ';';
|
3446 |
});
|
3447 |
};
|
@@ -5304,9 +5308,9 @@ function pagelayer_parse_theme_vars(img_url){
|
|
5304 |
// Tooltip Setup for Editor
|
5305 |
function pagelayer_tooltip_setup(){
|
5306 |
//pagelayer.$$('[data-tlite]').each(function(){pagelayer_tlite.show(jQuery(this).get(0));});return;
|
5307 |
-
pagelayer.$$('[data-tlite]').
|
5308 |
pagelayer_tlite.show(jQuery(this).get(0));
|
5309 |
-
}
|
5310 |
pagelayer_tlite.hide(jQuery(this).get(0));
|
5311 |
});
|
5312 |
|
3415 |
'>' : 'gt',
|
3416 |
'"' : 'quot',
|
3417 |
//'&' : 'amp',
|
3418 |
+
'\'' : '#39',
|
3419 |
+
'\\\\' : '#92'
|
3420 |
};
|
3421 |
|
3422 |
// To unescape
|
3428 |
'gt' : '>',
|
3429 |
'quot' : '"',
|
3430 |
//'amp' : '&',
|
3431 |
+
'#39' : '\'',
|
3432 |
+
'#92' : '\\'
|
3433 |
};
|
3434 |
|
3435 |
var pagelayer_escaperegex_S = '[';
|
3444 |
function pagelayer_escapeHTML(str) {
|
3445 |
return str.replace(pagelayer_escaperegex, function(m) {
|
3446 |
if(m == '[' || m == ']') m = '\\'+m;
|
3447 |
+
if(m == '\\') m = '\\\\';
|
3448 |
+
|
3449 |
return '&' + pagelayer_escapeChars[m] + ';';
|
3450 |
});
|
3451 |
};
|
5308 |
// Tooltip Setup for Editor
|
5309 |
function pagelayer_tooltip_setup(){
|
5310 |
//pagelayer.$$('[data-tlite]').each(function(){pagelayer_tlite.show(jQuery(this).get(0));});return;
|
5311 |
+
pagelayer.$$('[data-tlite]').hover(function(){
|
5312 |
pagelayer_tlite.show(jQuery(this).get(0));
|
5313 |
+
}, function(){
|
5314 |
pagelayer_tlite.hide(jQuery(this).get(0));
|
5315 |
});
|
5316 |
|
js/pagelayer-frontend.js
CHANGED
@@ -243,7 +243,7 @@ function pagelayer_pl_image_slider(jEle){
|
|
243 |
|
244 |
function pagelayer_tab_show(el, pl_id) {
|
245 |
|
246 |
-
jQuery('[pagelayer-id='+pl_id+']').closest('.pagelayer-tabcontainer').find('
|
247 |
jQuery('[pagelayer-id='+pl_id+']').show();
|
248 |
|
249 |
jQuery(el).parent().find('.pagelayer-tablinks').each(function(){
|
@@ -258,7 +258,7 @@ var pagelayer_tab_timers = {};
|
|
258 |
function pagelayer_pl_tabs(jEle) {
|
259 |
|
260 |
var default_active = '';
|
261 |
-
var children = jEle.find('.pagelayer-tabcontainer').find('[pagelayer-id]');
|
262 |
|
263 |
// Loop thru
|
264 |
children.each(function(){
|
@@ -305,7 +305,7 @@ function pagelayer_pl_tabs(jEle) {
|
|
305 |
i = 0;
|
306 |
}
|
307 |
|
308 |
-
var tmp_pl_ele = jEle.find('.pagelayer-tabcontainer').find('[pagelayer-id]')[i];
|
309 |
var tmp_btn_ele = jEle.find('.pagelayer-tablinks')[i]
|
310 |
var tmp_pl_id = jQuery(tmp_pl_ele).attr('pagelayer-id');
|
311 |
|
@@ -350,10 +350,10 @@ function pagelayer_pl_accordion(jEle){
|
|
350 |
}
|
351 |
}
|
352 |
|
353 |
-
accHolder.unbind('click');
|
354 |
-
accHolder.click(function(){
|
355 |
|
356 |
-
var currentTab = jQuery(this);
|
357 |
|
358 |
if(currentTab.hasClass('active')){
|
359 |
currentTab.removeClass('active').children('.pagelayer-accordion-panel').hide('slow');
|
@@ -371,7 +371,7 @@ function pagelayer_pl_accordion(jEle){
|
|
371 |
|
372 |
// If active first tab from all active tabs
|
373 |
currentActiveTab.removeClass('active');
|
374 |
-
currentActiveTab.click();
|
375 |
}
|
376 |
|
377 |
// Setup the Collapse
|
@@ -406,12 +406,12 @@ function pagelayer_pl_collapse(jEle){
|
|
406 |
|
407 |
// Already setup ?
|
408 |
if(setup && setup.length > 0){
|
409 |
-
tabs.unbind('click');
|
410 |
}
|
411 |
|
412 |
-
tabs.click(function(){
|
413 |
|
414 |
-
var currentTab = jQuery(this);
|
415 |
|
416 |
if(currentTab.hasClass('active')){
|
417 |
currentTab.removeClass('active').children('.pagelayer-accordion-panel').hide('slow');;
|
243 |
|
244 |
function pagelayer_tab_show(el, pl_id) {
|
245 |
|
246 |
+
jQuery('[pagelayer-id='+pl_id+']').closest('.pagelayer-tabcontainer').find('.pagelayer-tab').hide();
|
247 |
jQuery('[pagelayer-id='+pl_id+']').show();
|
248 |
|
249 |
jQuery(el).parent().find('.pagelayer-tablinks').each(function(){
|
258 |
function pagelayer_pl_tabs(jEle) {
|
259 |
|
260 |
var default_active = '';
|
261 |
+
var children = jEle.find('.pagelayer-tabcontainer').find('.pagelayer-tab[pagelayer-id]');
|
262 |
|
263 |
// Loop thru
|
264 |
children.each(function(){
|
305 |
i = 0;
|
306 |
}
|
307 |
|
308 |
+
var tmp_pl_ele = jEle.find('.pagelayer-tabcontainer').find('.pagelayer-tab[pagelayer-id]')[i];
|
309 |
var tmp_btn_ele = jEle.find('.pagelayer-tablinks')[i]
|
310 |
var tmp_pl_id = jQuery(tmp_pl_ele).attr('pagelayer-id');
|
311 |
|
350 |
}
|
351 |
}
|
352 |
|
353 |
+
accHolder.find('.pagelayer-accordion-tabs').unbind('click');
|
354 |
+
accHolder.find('.pagelayer-accordion-tabs').click(function(){
|
355 |
|
356 |
+
var currentTab = jQuery(this).closest('.pagelayer-accordion_item');
|
357 |
|
358 |
if(currentTab.hasClass('active')){
|
359 |
currentTab.removeClass('active').children('.pagelayer-accordion-panel').hide('slow');
|
371 |
|
372 |
// If active first tab from all active tabs
|
373 |
currentActiveTab.removeClass('active');
|
374 |
+
currentActiveTab.find('.pagelayer-accordion-tabs').click();
|
375 |
}
|
376 |
|
377 |
// Setup the Collapse
|
406 |
|
407 |
// Already setup ?
|
408 |
if(setup && setup.length > 0){
|
409 |
+
tabs.find('.pagelayer-accordion-tabs').unbind('click');
|
410 |
}
|
411 |
|
412 |
+
tabs.find('.pagelayer-accordion-tabs').click(function(){
|
413 |
|
414 |
+
var currentTab = jQuery(this).closest('.pagelayer-accordion_item');
|
415 |
|
416 |
if(currentTab.hasClass('active')){
|
417 |
currentTab.removeClass('active').children('.pagelayer-accordion-panel').hide('slow');;
|
main/functions.php
CHANGED
@@ -972,7 +972,8 @@ function pagelayer_escapeHTML($str){
|
|
972 |
'>' => '>',
|
973 |
'"' => '"',
|
974 |
//'&' => '&',
|
975 |
-
'\'' => '''
|
|
|
976 |
];
|
977 |
|
978 |
$str = str_replace(array_keys($replace), array_values($replace), $str);
|
@@ -990,7 +991,8 @@ function pagelayer_unescapeHTML($str){
|
|
990 |
'gt' => '>',
|
991 |
'quot' => '"',
|
992 |
//'amp' => '&',
|
993 |
-
'#39' => '\''
|
|
|
994 |
];
|
995 |
|
996 |
foreach($replace as $k => $v){
|
972 |
'>' => '>',
|
973 |
'"' => '"',
|
974 |
//'&' => '&',
|
975 |
+
'\'' => ''',
|
976 |
+
'\\' => '\'
|
977 |
];
|
978 |
|
979 |
$str = str_replace(array_keys($replace), array_values($replace), $str);
|
991 |
'gt' => '>',
|
992 |
'quot' => '"',
|
993 |
//'amp' => '&',
|
994 |
+
'#39' => '\'',
|
995 |
+
'#92' => '\\'
|
996 |
];
|
997 |
|
998 |
foreach($replace as $k => $v){
|
main/shortcode_functions.php
CHANGED
@@ -90,7 +90,7 @@ function pagelayer_render_shortcode($atts, $content = '', $tag = ''){
|
|
90 |
|
91 |
$innerHTML = @$pagelayer->shortcodes[$tag]['innerHTML'];
|
92 |
if(!empty($innerHTML) && !empty($content)){
|
93 |
-
$_content =
|
94 |
$el['oAtts'][$innerHTML] = $_content;
|
95 |
$el['atts'][$innerHTML] = $_content;
|
96 |
}
|
@@ -550,6 +550,7 @@ function pagelayer_render_shortcode($atts, $content = '', $tag = ''){
|
|
550 |
$style = str_replace($el['wrap'], $pagelayer->shortcodes[$tag]['overide_css_selector'], $style);
|
551 |
}
|
552 |
|
|
|
553 |
}
|
554 |
|
555 |
$div = str_replace('<style pagelayer-style-id="'.$el['id'].'"></style>', $style, $div);
|
90 |
|
91 |
$innerHTML = @$pagelayer->shortcodes[$tag]['innerHTML'];
|
92 |
if(!empty($innerHTML) && !empty($content)){
|
93 |
+
$_content = str_replace('&', '&', $content);
|
94 |
$el['oAtts'][$innerHTML] = $_content;
|
95 |
$el['atts'][$innerHTML] = $_content;
|
96 |
}
|
550 |
$style = str_replace($el['wrap'], $pagelayer->shortcodes[$tag]['overide_css_selector'], $style);
|
551 |
}
|
552 |
|
553 |
+
$style = pagelayer_unescapeHTML($style);
|
554 |
}
|
555 |
|
556 |
$div = str_replace('<style pagelayer-style-id="'.$el['id'].'"></style>', $style, $div);
|
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.2.
|
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.2.4
|
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.5
|
6 |
Requires PHP: 5.5
|
7 |
-
Stable tag: 1.2.
|
8 |
License: LGPL v2.1
|
9 |
License URI: http://www.gnu.org/licenses/lgpl-2.1.html
|
10 |
|
@@ -109,10 +109,15 @@ Do you have questions related to PageLayer ? Use the following links :
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
= 1.2.3 (August 24, 2020) =
|
113 |
* [Task] The language strings which were hard-coded have been moved to the pagelayer language pack.
|
114 |
* [Task] Added option to open link in new tab for the image box and icon box widget.
|
115 |
-
* [Task] Added filter to get javascript error in Header and footer code in Pagelayer -> Website Settings wizard.
|
116 |
* [Bug-Fix] The Textarea property has been further improved, now Textarea resizes vertically.
|
117 |
* [Bug-Fix] Removed some incompatible code.
|
118 |
* [Bug-Fix] The right side block background color was not correctly applied to the hover in the timeline widget. This is fixed.
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.5
|
6 |
Requires PHP: 5.5
|
7 |
+
Stable tag: 1.2.4
|
8 |
License: LGPL v2.1
|
9 |
License URI: http://www.gnu.org/licenses/lgpl-2.1.html
|
10 |
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 1.2.4 (August 28, 2020) =
|
113 |
+
* [Task] We have tested the jQuery changes in WordPress 5.5.
|
114 |
+
* [Bug-Fix] WordPress widgets were not rendering properly. This is fixed.
|
115 |
+
* [Bug-Fix] In some cases CSS was not rendering properly. This is fixed.
|
116 |
+
* [Bug-Fix] In the Accordion and Collapse widget, when we click on the content area, the Accordion and Collapse tabs were closed. This is fixed.
|
117 |
+
|
118 |
= 1.2.3 (August 24, 2020) =
|
119 |
* [Task] The language strings which were hard-coded have been moved to the pagelayer language pack.
|
120 |
* [Task] Added option to open link in new tab for the image box and icon box widget.
|
|
|
121 |
* [Bug-Fix] The Textarea property has been further improved, now Textarea resizes vertically.
|
122 |
* [Bug-Fix] Removed some incompatible code.
|
123 |
* [Bug-Fix] The right side block background color was not correctly applied to the hover in the timeline widget. This is fixed.
|