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

Version Description

(Sep 18, 2021) = * [Bug-Fix] In some cases, the position of the widget dropdown list was not correct. This is fixed.

Download this release

Release Info

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

Code changes from version 1.5.5 to 1.5.6

css/pagelayer-editor-frontend.css CHANGED
@@ -493,13 +493,13 @@ transform: translateX(-50%);
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-ele-hover .pagelayer-shortcode-plus{
502
- display: block;
503
  }
504
 
505
  .pagelayer-shortcode-plus .fas{
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{
css/pagelayer-editor.css CHANGED
@@ -3878,7 +3878,7 @@ background: #fff;
3878
  width: 300px;
3879
  max-height: 350px;
3880
  min-height: 125px;
3881
- height: 100%;
3882
  overflow-y: auto;
3883
  box-shadow: 0 2px 6px rgb(0 0 0 / 5%);
3884
  border-radius: 2px;
3878
  width: 300px;
3879
  max-height: 350px;
3880
  min-height: 125px;
3881
+ height: auto;
3882
  overflow-y: auto;
3883
  box-shadow: 0 2px 6px rgb(0 0 0 / 5%);
3884
  border-radius: 2px;
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.5');
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.6');
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
@@ -6405,14 +6405,16 @@ function pagelayer_show_widget_list(jEle, val){
6405
 
6406
  val = val || '';
6407
  jEle = jQuery(jEle);
6408
-
6409
  var wEle = pagelayer.$$('.pagelayer-widget-tooltip'),
6410
  bounds = jEle[0].getBoundingClientRect(),
6411
  winH = jQuery(window).height(),
6412
- iOffset = pagelayer.$$('#pagelayer-iframe').offset(),
 
6413
  style = {},
6414
  wTop = 'auto',
6415
  wBottom = 'auto',
 
6416
  wHeight = '';
6417
 
6418
  var search_val = function(_val){
@@ -6420,7 +6422,32 @@ function pagelayer_show_widget_list(jEle, val){
6420
  wEle.find('.pagelayer-search-field').trigger('input');
6421
  }
6422
 
6423
- style['left'] = (bounds.left + iOffset.left) - wEle.width() / 2;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6424
 
6425
  if(winH / 2 < bounds.top + 10){
6426
  wBottom = winH - bounds.top + 10;
@@ -6430,6 +6457,7 @@ function pagelayer_show_widget_list(jEle, val){
6430
  wHeight = winH - bounds.bottom - 10;
6431
  }
6432
 
 
6433
  style['top'] = wTop;
6434
  style['bottom'] = wBottom;
6435
  style['max-height'] = '';
@@ -6449,20 +6477,9 @@ function pagelayer_show_widget_list(jEle, val){
6449
 
6450
  jQuery(window).off('scroll.pagelayer_wdlist resize.pagelayer_wdlist');
6451
  jQuery(window).on('scroll.pagelayer_wdlist resize.pagelayer_wdlist', function(){
6452
- pagelayer_show_widget_list(jEle);
 
6453
  });
6454
-
6455
- // In list view?
6456
- if(jEle.closest('[pagelayer-editable]').length > 0){
6457
- wEle.addClass('pagelayer-widget-list-tooltip');
6458
-
6459
- if(wEle.find('.pagelayer-widget-group:visible').length < 1){
6460
- // Hide Widget list
6461
- pagelayer.gDocument.trigger('mousedown.pagelayer_wdlist');
6462
- }
6463
- }else{
6464
- wEle.removeClass('pagelayer-widget-list-tooltip');
6465
- }
6466
 
6467
  wEle.find('.pagelayer-shortcode-holder').off('click');
6468
  wEle.find('.pagelayer-shortcode-holder').on('click', function(e){
6405
 
6406
  val = 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',
6416
  wBottom = 'auto',
6417
+ wLeft = '';
6418
  wHeight = '';
6419
 
6420
  var search_val = function(_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');
6428
+
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();
6435
+ var range = selection.getRangeAt(0);
6436
+ wLeft = (range.getBoundingClientRect().left + iframeLeft) - wEle.width() / 2;
6437
+
6438
+ }else{
6439
+ wEle.removeClass('pagelayer-widget-list-tooltip');
6440
+ wLeft = (bounds.left + iframeLeft) - wEle.width() / 2;
6441
+ }
6442
+
6443
+ var docW = iframeLeft + iframe.width() - 30;
6444
+
6445
+ // Prevent to hide on left or right
6446
+ if(docW < wLeft + wEle.width()){
6447
+ wLeft = docW - wEle.width();
6448
+ }else if(iframeLeft > wLeft){
6449
+ wLeft = iframeLeft;
6450
+ }
6451
 
6452
  if(winH / 2 < bounds.top + 10){
6453
  wBottom = winH - bounds.top + 10;
6457
  wHeight = winH - bounds.bottom - 10;
6458
  }
6459
 
6460
+ style['left'] = wLeft;
6461
  style['top'] = wTop;
6462
  style['bottom'] = wBottom;
6463
  style['max-height'] = '';
6477
 
6478
  jQuery(window).off('scroll.pagelayer_wdlist resize.pagelayer_wdlist');
6479
  jQuery(window).on('scroll.pagelayer_wdlist resize.pagelayer_wdlist', function(){
6480
+ var _val = wEle.find('.pagelayer-search-field').val();
6481
+ pagelayer_show_widget_list(jEle, _val);
6482
  });
 
 
 
 
 
 
 
 
 
 
 
 
6483
 
6484
  wEle.find('.pagelayer-shortcode-holder').off('click');
6485
  wEle.find('.pagelayer-shortcode-holder').on('click', function(e){
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.5
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.6
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.5
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.5 (Sep 16, 2021) =
115
  * [Improvement] The Title Widget has been further improved. Now users can search for widgets with a slash (/) and replace the selected widget with the current widget and also added the plus icon near the bottom of all widgets to add widget after the current widget.
116
  * [Improvement] Login widget has been further improved.
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
 
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
+
117
  = 1.5.5 (Sep 16, 2021) =
118
  * [Improvement] The Title Widget has been further improved. Now users can search for widgets with a slash (/) and replace the selected widget with the current widget and also added the plus icon near the bottom of all widgets to add widget after the current widget.
119
  * [Improvement] Login widget has been further improved.