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

Version Description

(Apr 8, 2019) = * Fixed the hover option icon size * Fixed the video overlay issue

Download this release

Release Info

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

Code changes from version 0.9.0 to 0.9.1

css/pagelayer-editor-frontend.css CHANGED
@@ -66,21 +66,21 @@ right:0px;
66
  z-index: 20;
67
  padding:0px;
68
  margin:0px;
69
- line-height: 100%;
70
  pointer-events:auto;
71
  }
72
 
73
  .pagelayer-eoi{
74
- display:inline-block;
75
- font-size:13px;
76
- padding:4px;
77
- background: #3e8ef7;
78
- color:#fff;
79
  }
80
 
81
  .pagelayer-eoi:hover{
82
- background: #268ab7;
83
- cursor: pointer;
84
  }
85
 
86
  .pagelayer-row-option{
@@ -197,4 +197,4 @@ color: #3e8ef7;
197
 
198
  .pagelayer-add-widget-area p{
199
  margin: 0px !important;
200
- }
66
  z-index: 20;
67
  padding:0px;
68
  margin:0px;
69
+ line-height: 0;
70
  pointer-events:auto;
71
  }
72
 
73
  .pagelayer-eoi{
74
+ display:inline-block !important;
75
+ font-size:13px !important;
76
+ padding:4px !important;
77
+ background: #3e8ef7 !important;
78
+ color:#fff !important;
79
  }
80
 
81
  .pagelayer-eoi:hover{
82
+ background: #268ab7 !important;
83
+ cursor: pointer !important;
84
  }
85
 
86
  .pagelayer-row-option{
197
 
198
  .pagelayer-add-widget-area p{
199
  margin: 0px !important;
200
+ }
css/pagelayer-frontend.css CHANGED
@@ -1811,6 +1811,10 @@ opacity:1;
1811
  width:100%;
1812
  }
1813
 
 
 
 
 
1814
  /** Image End **/
1815
 
1816
  .pagelayer-button {
1811
  width:100%;
1812
  }
1813
 
1814
+ .pagelayer-image *{
1815
+ border-radius:inherit;
1816
+ }
1817
+
1818
  /** Image End **/
1819
 
1820
  .pagelayer-button {
init.php CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit;
5
 
6
  define('PAGELAYER_BASE', plugin_basename(__FILE__));
7
  define('PAGELAYER_FILE', __FILE__);
8
- define('PAGELAYER_VERSION', '0.9.0');
9
  define('PAGELAYER_DIR', WP_PLUGIN_DIR.'/'.basename(dirname(PAGELAYER_FILE)));
10
  define('PAGELAYER_SLUG', 'pagelayer');
11
  define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
@@ -218,6 +218,10 @@ function pagelayer_enqueue_frontend($force = false){
218
 
219
  wp_register_style('font-awesome', PAGELAYER_CSS.'/font-awesome.min.css', array(), PAGELAYER_VERSION);
220
  wp_enqueue_style('font-awesome');
 
 
 
 
221
  }
222
 
223
  }
@@ -246,6 +250,21 @@ function pagelayer_enqueue_fonts(){
246
 
247
  }
248
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
  // Load the live editor if needed
250
  add_action('wp_enqueue_scripts', 'pagelayer_load_live', 9999);
251
 
5
 
6
  define('PAGELAYER_BASE', plugin_basename(__FILE__));
7
  define('PAGELAYER_FILE', __FILE__);
8
+ define('PAGELAYER_VERSION', '0.9.1');
9
  define('PAGELAYER_DIR', WP_PLUGIN_DIR.'/'.basename(dirname(PAGELAYER_FILE)));
10
  define('PAGELAYER_SLUG', 'pagelayer');
11
  define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
218
 
219
  wp_register_style('font-awesome', PAGELAYER_CSS.'/font-awesome.min.css', array(), PAGELAYER_VERSION);
220
  wp_enqueue_style('font-awesome');
221
+
222
+ // Load the global styles
223
+ add_action('wp_head', 'pagelayer_global_styles', 5);
224
+
225
  }
226
 
227
  }
250
 
251
  }
252
 
253
+ // We need to handle global styles
254
+ function pagelayer_global_styles(){
255
+
256
+ $styles = '<style id="pagelayer-global-styles" type="text/css">';
257
+ if(get_option('pagelayer_content_width')){
258
+ $styles .= '.pagelayer-row-holder{ max-width: '.get_option('pagelayer_content_width').'px;}';
259
+ }else{
260
+ $styles .= '.pagelayer-row-holder{ max-width: 1170px;}';
261
+ }
262
+ $styles .= '.pagelayer-row-holder{ margin-left: auto; margin-right: auto;}';
263
+ $styles .= '</style>';
264
+
265
+ echo $styles;
266
+ }
267
+
268
  // Load the live editor if needed
269
  add_action('wp_enqueue_scripts', 'pagelayer_load_live', 9999);
270
 
js/pagelayer-editor.js CHANGED
@@ -901,6 +901,7 @@ function pagelayer_paste_element(to){
901
  function pagelayer_copy_element(selector, insertAfter){
902
  var src = jQuery(selector);
903
  var html = src[0].outerHTML;
 
904
  insertAfter = insertAfter || src;
905
  insertAfter = insertAfter.parent();
906
 
@@ -927,6 +928,13 @@ function pagelayer_copy_element(selector, insertAfter){
927
 
928
  // Setup grid drag
929
  pagelayer_setup_grid_drag();
 
 
 
 
 
 
 
930
  pagelayer_isDirty = true;
931
  };
932
 
@@ -2118,7 +2126,7 @@ function pagelayer_video_url(src){
2118
  videoId = src.split('.be/');
2119
  }
2120
 
2121
- return 'http://youtube.com/embed/'+videoId[1];
2122
 
2123
  break;
2124
 
@@ -2133,7 +2141,7 @@ function pagelayer_video_url(src){
2133
  videoId = src.split('.com/');
2134
  }
2135
 
2136
- return 'http://player.vimeo.com/video/'+videoId[1];
2137
 
2138
  break;
2139
  default:
901
  function pagelayer_copy_element(selector, insertAfter){
902
  var src = jQuery(selector);
903
  var html = src[0].outerHTML;
904
+ var tag = pagelayer_tag(src);
905
  insertAfter = insertAfter || src;
906
  insertAfter = insertAfter.parent();
907
 
928
 
929
  // Setup grid drag
930
  pagelayer_setup_grid_drag();
931
+
932
+ //If column then renumber columns
933
+ if(tag == 'pl_col'){
934
+ var row = src.parent().closest('.pagelayer-row');
935
+ pagelayer_renumber_col(row);
936
+ }
937
+
938
  pagelayer_isDirty = true;
939
  };
940
 
2126
  videoId = src.split('.be/');
2127
  }
2128
 
2129
+ return '//youtube.com/embed/'+videoId[1];
2130
 
2131
  break;
2132
 
2141
  videoId = src.split('.com/');
2142
  }
2143
 
2144
+ return '//player.vimeo.com/video/'+videoId[1];
2145
 
2146
  break;
2147
  default:
js/pagelayer-frontend.js CHANGED
@@ -454,7 +454,7 @@ function pagelayer_dismiss_alert(x){
454
  function pagelayer_pl_video(jEle){
455
 
456
  // A tag will be there ONLY if the lightbox is on
457
- var overlayval = jEle.attr('pagelayer-a-overlay');
458
  var a = jEle.find(".pagelayer-video-holder a");
459
 
460
  // No lightbox
@@ -470,7 +470,7 @@ function pagelayer_pl_video(jEle){
470
 
471
  var target = jQuery(ev.target);
472
 
473
- if (!target.parents("a").length) {
474
  jQuery(this).hide();
475
  jQuery(this).parent().find("#embed_video")[0].src += "?rel=0&autoplay=1";
476
  }
454
  function pagelayer_pl_video(jEle){
455
 
456
  // A tag will be there ONLY if the lightbox is on
457
+ var overlayval = jEle.find('.pagelayer-video-overlay');
458
  var a = jEle.find(".pagelayer-video-holder a");
459
 
460
  // No lightbox
470
 
471
  var target = jQuery(ev.target);
472
 
473
+ if (!target.parent("a").length) {
474
  jQuery(this).hide();
475
  jQuery(this).parent().find("#embed_video")[0].src += "?rel=0&autoplay=1";
476
  }
main/functions.php CHANGED
@@ -486,7 +486,7 @@ function pagelayer_load_shortcodes(){
486
  include_once(PAGELAYER_DIR.'/lib/pquery/gan_parser_html.php');
487
  include_once(PAGELAYER_DIR.'/lib/pquery/gan_selector_html.php');
488
  include_once(PAGELAYER_DIR.'/lib/pquery/gan_xml2array.php');
489
- include_once(PAGELAYER_DIR.'/lib/pquery/pquery.php');
490
 
491
  }
492
 
@@ -675,7 +675,7 @@ function pagelayer_video_url($source){
675
 
676
  }
677
 
678
- return 'http://youtube.com/embed/'.$videoId;
679
 
680
  break;
681
  case 'vimeo':
@@ -696,7 +696,7 @@ function pagelayer_video_url($source){
696
 
697
  }
698
 
699
- return 'http://player.vimeo.com/video/'.$videoId;
700
 
701
  break;
702
  default:
486
  include_once(PAGELAYER_DIR.'/lib/pquery/gan_parser_html.php');
487
  include_once(PAGELAYER_DIR.'/lib/pquery/gan_selector_html.php');
488
  include_once(PAGELAYER_DIR.'/lib/pquery/gan_xml2array.php');
489
+ include_once(PAGELAYER_DIR.'/lib/pquery/pQuery.php');
490
 
491
  }
492
 
675
 
676
  }
677
 
678
+ return '//youtube.com/embed/'.$videoId;
679
 
680
  break;
681
  case 'vimeo':
696
 
697
  }
698
 
699
+ return '//player.vimeo.com/video/'.$videoId;
700
 
701
  break;
702
  default:
main/settings.php CHANGED
@@ -64,6 +64,24 @@ if(!defined('PAGELAYER_VERSION')) {
64
  }
65
  }
66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  $post_type = array('post', 'page', 'product');
68
 
69
  $support_ept = get_option( 'pl_support_ept', ['post', 'page']);
@@ -77,6 +95,7 @@ if(!defined('PAGELAYER_VERSION')) {
77
  <div class="tabs-wrapper">
78
  <h2 class="nav-tab-wrapper">
79
  <a href="#general" class="nav-tab">General</a>
 
80
  <a href="#support" class="nav-tab ">Support</a>
81
  <a href="#faq" class="nav-tab ">FAQ</a>
82
  </h2>
@@ -89,19 +108,27 @@ if(!defined('PAGELAYER_VERSION')) {
89
  <label>
90
  <?php
91
  foreach($post_type as $type){
 
92
  echo '<input type="checkbox" name="pl_support_ept[]" value="'.$type.'" '. (in_array($type, $support_ept) ? "checked" : "") .'/>'.$type.'</br>';
93
  }
94
  ?>
95
  </label></td>
96
  </tr>
97
- <tr>
98
- <th>
99
- <input type="submit" name="submit" class="button button-primary" value="Save Changes">
100
- </th>
101
- <td></td>
102
- </tr>
103
  </table>
104
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  <div class="pagelayer-tab-panel" id="support">
106
  <h2>Support</h2>
107
  <h3>You can contact the PageLayer Group via email. Our email address is <a href="mailto:support@pagelayer.com">support@pagelayer.com</a>. We will get back to you as soon as possible!</h3>
@@ -123,4 +150,8 @@ if(!defined('PAGELAYER_VERSION')) {
123
  </div>
124
  </div>
125
  </div>
 
 
 
 
126
  </form>
64
  }
65
  }
66
 
67
+ if(isset($_REQUEST['pagelayer_content_width'])){
68
+
69
+ $content_width = $_REQUEST['pagelayer_content_width'];
70
+
71
+ if ( get_option( 'pagelayer_content_width' ) !== false ) {
72
+
73
+ // The option already exists, so we just update it.
74
+ update_option( 'pagelayer_content_width', $content_width );
75
+
76
+ } else {
77
+
78
+ // The option hasn't been added yet. We'll add it with $autoload set to 'no'.
79
+ $deprecated = null;
80
+ $autoload = 'no';
81
+ add_option( 'pagelayer_content_width', $content_width, $deprecated, $autoload );
82
+ }
83
+ }
84
+
85
  $post_type = array('post', 'page', 'product');
86
 
87
  $support_ept = get_option( 'pl_support_ept', ['post', 'page']);
95
  <div class="tabs-wrapper">
96
  <h2 class="nav-tab-wrapper">
97
  <a href="#general" class="nav-tab">General</a>
98
+ <a href="#settings" class="nav-tab ">Settings</a>
99
  <a href="#support" class="nav-tab ">Support</a>
100
  <a href="#faq" class="nav-tab ">FAQ</a>
101
  </h2>
108
  <label>
109
  <?php
110
  foreach($post_type as $type){
111
+
112
  echo '<input type="checkbox" name="pl_support_ept[]" value="'.$type.'" '. (in_array($type, $support_ept) ? "checked" : "") .'/>'.$type.'</br>';
113
  }
114
  ?>
115
  </label></td>
116
  </tr>
 
 
 
 
 
 
117
  </table>
118
  </div>
119
+ <div class="pagelayer-tab-panel" id="settings">
120
+ <table>
121
+ <tr>
122
+ <th>Content Width</th>
123
+ <td>
124
+ <input name="pagelayer_content_width" type="number" step="1" min="320" max="5000" placeholder="1170" <?php if(get_option('pagelayer_content_width')){
125
+ echo 'value="'.get_option('pagelayer_content_width').'"';
126
+ }?>>
127
+ <p>Set the custom width of the content area. The default width set is 1170px</p>
128
+ </td>
129
+ <tr>
130
+ </table>
131
+ </div>
132
  <div class="pagelayer-tab-panel" id="support">
133
  <h2>Support</h2>
134
  <h3>You can contact the PageLayer Group via email. Our email address is <a href="mailto:support@pagelayer.com">support@pagelayer.com</a>. We will get back to you as soon as possible!</h3>
150
  </div>
151
  </div>
152
  </div>
153
+ <tr>
154
+ <p>
155
+ <input type="submit" name="submit" class="button button-primary" value="Save Changes">
156
+ </p>
157
  </form>
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: 0.9.0
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: 0.9.1
7
  Author: Pagelayer Team
8
  Author URI: https://pagelayer.com/
9
  License: LGPL v2.1
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: pagelayer
3
  Tags: page builder, editor, landing page, drag-and-drop, pagelayer, softaculous, visual editor, wysiwyg, design, maintenance mode, coming soon, under construction, website builder, landing page builder, front-end builder
4
  Requires at least: 4.7
5
  Tested up to: 5.1
6
- Stable tag: 0.9.0
7
  License: LGPL v2.1
8
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
9
 
@@ -112,5 +112,9 @@ Do you have questions related to PageLayer ? Use the following links :
112
 
113
  == Changelog ==
114
 
 
 
 
 
115
  = 0.9.0 (Apr 4, 2019) =
116
  * Released Plugin
3
  Tags: page builder, editor, landing page, drag-and-drop, pagelayer, softaculous, visual editor, wysiwyg, design, maintenance mode, coming soon, under construction, website builder, landing page builder, front-end builder
4
  Requires at least: 4.7
5
  Tested up to: 5.1
6
+ Stable tag: 0.9.1
7
  License: LGPL v2.1
8
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
9
 
112
 
113
  == Changelog ==
114
 
115
+ = 0.9.1 (Apr 8, 2019) =
116
+ * Fixed the hover option icon size
117
+ * Fixed the video overlay issue
118
+
119
  = 0.9.0 (Apr 4, 2019) =
120
  * Released Plugin