Page Builder: PageLayer – Drag and Drop website builder - Version 1.5.7

Version Description

(Sep 28, 2021) = * [Bug-Fix] In some cases, the widget dropdown list was not hiding properly. This is fixed.

Download this release

Release Info

Developer pagelayer
Plugin Icon 128x128 Page Builder: PageLayer – Drag and Drop website builder
Version 1.5.7
Comparing to
See all releases

Code changes from version 1.5.6 to 1.5.7

css/pagelayer-editor-frontend.css CHANGED
@@ -493,13 +493,18 @@ transform: translateX(-50%);
493
  bottom: -7px;
494
  text-align: center;
495
  pointer-events: all;
496
- opacity: 0;
497
  line-height:1 !important;
498
  padding:0 !important;
499
  }
500
 
501
- .pagelayer-ele-hover .pagelayer-shortcode-plus{
502
- opacity: 100% !important;
 
 
 
 
 
503
  }
504
 
505
  .pagelayer-shortcode-plus .fas{
493
  bottom: -7px;
494
  text-align: center;
495
  pointer-events: all;
496
+ display: none;
497
  line-height:1 !important;
498
  padding:0 !important;
499
  }
500
 
501
+ .pagelayer-show-wiget-list{
502
+ opacity:100%;
503
+ }
504
+
505
+ .pagelayer-show-wiget-list .pagelayer-shortcode-plus,
506
+ .pagelayer-ele-hover:not(.pagelayer-hide-active) .pagelayer-shortcode-plus{
507
+ display: block !important;
508
  }
509
 
510
  .pagelayer-shortcode-plus .fas{
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.5.6');
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.5.7');
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
@@ -6395,6 +6395,7 @@ function pagelayer_create_widget_tooltip(){
6395
  }
6396
 
6397
  wdHolder.hide();
 
6398
  jQuery(window).off('scroll.pagelayer_wdlist resize.pagelayer_wdlist');
6399
  });
6400
 
@@ -6407,9 +6408,9 @@ function pagelayer_show_widget_list(jEle, val){
6407
  jEle = jQuery(jEle);
6408
 
6409
  var wEle = pagelayer.$$('.pagelayer-widget-tooltip'),
6410
- bounds = jEle[0].getBoundingClientRect(),
6411
  winH = jQuery(window).height(),
6412
  iframe = pagelayer.$$('#pagelayer-iframe'),
 
6413
  iframeLeft = iframe.offset().left,
6414
  style = {},
6415
  wTop = 'auto',
@@ -6417,11 +6418,18 @@ function pagelayer_show_widget_list(jEle, val){
6417
  wLeft = '';
6418
  wHeight = '';
6419
 
6420
- var search_val = function(_val){
6421
- wEle.find('.pagelayer-search-field').val(_val);
6422
- wEle.find('.pagelayer-search-field').trigger('input');
 
 
 
 
 
6423
  }
6424
 
 
 
6425
  // In list view?
6426
  if(jEle.closest('[pagelayer-editable]').length > 0){
6427
  wEle.addClass('pagelayer-widget-list-tooltip');
@@ -6429,6 +6437,7 @@ function pagelayer_show_widget_list(jEle, val){
6429
  if(wEle.find('.pagelayer-widget-group:visible').length < 1){
6430
  // Hide Widget list
6431
  pagelayer.gDocument.trigger('mousedown.pagelayer_wdlist');
 
6432
  }
6433
 
6434
  var selection = window.getSelection();
@@ -6453,7 +6462,7 @@ function pagelayer_show_widget_list(jEle, val){
6453
  wBottom = winH - bounds.top + 10;
6454
  wHeight = bounds.top - 10;
6455
  }else{
6456
- wTop = bounds.bottom + 10;
6457
  wHeight = winH - bounds.bottom - 10;
6458
  }
6459
 
@@ -6466,13 +6475,6 @@ function pagelayer_show_widget_list(jEle, val){
6466
  style['max-height'] = wHeight;
6467
  }
6468
 
6469
- if(val){
6470
- search_val(val);
6471
- }else{
6472
- search_val();
6473
- }
6474
-
6475
- wEle.closest('.pagelayer-widget-tooltip').show();
6476
  wEle.css(style);
6477
 
6478
  jQuery(window).off('scroll.pagelayer_wdlist resize.pagelayer_wdlist');
6395
  }
6396
 
6397
  wdHolder.hide();
6398
+ jQuery('.pagelayer-show-wiget-list').removeClass('pagelayer-show-wiget-list');
6399
  jQuery(window).off('scroll.pagelayer_wdlist resize.pagelayer_wdlist');
6400
  });
6401
 
6408
  jEle = jQuery(jEle);
6409
 
6410
  var wEle = pagelayer.$$('.pagelayer-widget-tooltip'),
 
6411
  winH = jQuery(window).height(),
6412
  iframe = pagelayer.$$('#pagelayer-iframe'),
6413
+ iframeTop = iframe.offset().top,
6414
  iframeLeft = iframe.offset().left,
6415
  style = {},
6416
  wTop = 'auto',
6418
  wLeft = '';
6419
  wHeight = '';
6420
 
6421
+ wEle.find('.pagelayer-search-field').val(val);
6422
+ wEle.find('.pagelayer-search-field').trigger('input');
6423
+
6424
+ wEle.closest('.pagelayer-widget-tooltip').show();
6425
+
6426
+ // Add widget show class
6427
+ if(jEle.hasClass('pagelayer-shortcode-plus')){
6428
+ jEle.parent('.pagelayer-ele-overlay').addClass('pagelayer-show-wiget-list');
6429
  }
6430
 
6431
+ var bounds = jEle[0].getBoundingClientRect();
6432
+
6433
  // In list view?
6434
  if(jEle.closest('[pagelayer-editable]').length > 0){
6435
  wEle.addClass('pagelayer-widget-list-tooltip');
6437
  if(wEle.find('.pagelayer-widget-group:visible').length < 1){
6438
  // Hide Widget list
6439
  pagelayer.gDocument.trigger('mousedown.pagelayer_wdlist');
6440
+ return;
6441
  }
6442
 
6443
  var selection = window.getSelection();
6462
  wBottom = winH - bounds.top + 10;
6463
  wHeight = bounds.top - 10;
6464
  }else{
6465
+ wTop = bounds.bottom + iframeTop + 10;
6466
  wHeight = winH - bounds.bottom - 10;
6467
  }
6468
 
6475
  style['max-height'] = wHeight;
6476
  }
6477
 
 
 
 
 
 
 
 
6478
  wEle.css(style);
6479
 
6480
  jQuery(window).off('scroll.pagelayer_wdlist resize.pagelayer_wdlist');
main/import.php CHANGED
@@ -843,7 +843,10 @@ global $pagelayer, $pl_error, $sitepad;
843
  $new_post['post_name'] = $v['post_name'];
844
  $new_post['post_type'] = $data_type;
845
  $new_post['post_status'] = 'publish';
846
- $new_post['import_id'] = $v['ID'];
 
 
 
847
 
848
  // Category register
849
  if(!empty($v['taxonomies'])){
843
  $new_post['post_name'] = $v['post_name'];
844
  $new_post['post_type'] = $data_type;
845
  $new_post['post_status'] = 'publish';
846
+
847
+ if(isset($_POST['maintain_ids'])){
848
+ $new_post['import_id'] = $v['ID'];
849
+ }
850
 
851
  // Category register
852
  if(!empty($v['taxonomies'])){
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.5.6
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.5.7
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, drag-and-drop, landing page, replace image, pagelaye
4
  Requires at least: 4.7
5
  Tested up to: 5.8
6
  Requires PHP: 5.5
7
- Stable tag: 1.5.6
8
  License: LGPL v2.1
9
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
 
@@ -111,6 +111,9 @@ Do you have questions related to PageLayer ? Use the following links :
111
 
112
  == Changelog ==
113
 
 
 
 
114
  = 1.5.6 (Sep 18, 2021) =
115
  * [Bug-Fix] In some cases, the position of the widget dropdown list was not correct. This is fixed.
116
 
4
  Requires at least: 4.7
5
  Tested up to: 5.8
6
  Requires PHP: 5.5
7
+ Stable tag: 1.5.7
8
  License: LGPL v2.1
9
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
 
111
 
112
  == Changelog ==
113
 
114
+ = 1.5.7 (Sep 28, 2021) =
115
+ * [Bug-Fix] In some cases, the widget dropdown list was not hiding properly. This is fixed.
116
+
117
  = 1.5.6 (Sep 18, 2021) =
118
  * [Bug-Fix] In some cases, the position of the widget dropdown list was not correct. This is fixed.
119