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

Version Description

(November 17, 2019) = * [Task] We have launched Pagelayer Pro with features like 60+ widgets, 400+ sections, Theme Builder, WooCommerce Builder, Theme Creator and Exporter, Form Builder, Popup Builder, etc. * [Bug-Fix] Animation effects used $ instead of jQuery which broke things in WordPress 5.3. This is fixed.

Download this release

Release Info

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

Code changes from version 1.0.2 to 1.0.3

Files changed (6) hide show
  1. init.php +18 -4
  2. js/properties.js +8 -8
  3. main/functions.php +17 -16
  4. main/license.php +6 -2
  5. pagelayer.php +1 -1
  6. readme.txt +6 -2
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.0.2');
9
define('PAGELAYER_DIR', WP_PLUGIN_DIR.'/'.basename(dirname(PAGELAYER_FILE)));
10
define('PAGELAYER_SLUG', 'pagelayer');
11
define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
@@ -108,11 +108,11 @@ function pagelayer_load_plugin(){
108
pagelayer_maybe_promo([
109
'after' => 1,// In days
110
'interval' => 30,// In days
111
- //'pro_url' => 'https://pagelayer.com/themes/wordpress/corporate/Bizworx_Pro',
112
'rating' => 'https://wordpress.org/plugins/pagelayer/#reviews',
113
- 'twitter' => 'https://twitter.com/pagelayer?status='.rawurlencode('I love #Pagelayer Site Builder by @pagelayer team for my #WordPress site - '.home_url()),
114
'facebook' => 'https://www.facebook.com/pagelayer',
115
- 'website' => '//pagelayer.com',
116
'image' => PAGELAYER_URL.'/images/pagelayer-logo-256.png'
117
]);
118
@@ -508,5 +508,19 @@ function pagelayer_quick_link($actions, $post){
508
return $actions;
509
}
510
511
// Pagelayer Template Loading Mechanism
512
include_once(PAGELAYER_DIR.'/main/template.php');
5
6
define('PAGELAYER_BASE', plugin_basename(PAGELAYER_FILE));
7
define('PAGELAYER_PRO_BASE', 'pagelayer-pro/pagelayer-pro.php');
8
+ define('PAGELAYER_VERSION', '1.0.3');
9
define('PAGELAYER_DIR', WP_PLUGIN_DIR.'/'.basename(dirname(PAGELAYER_FILE)));
10
define('PAGELAYER_SLUG', 'pagelayer');
11
define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
108
pagelayer_maybe_promo([
109
'after' => 1,// In days
110
'interval' => 30,// In days
111
+ 'pro_url' => PAGELAYER_PRO_URL,
112
'rating' => 'https://wordpress.org/plugins/pagelayer/#reviews',
113
+ 'twitter' => 'https://twitter.com/pagelayer?status='.rawurlencode('I love #Pagelayer Site Builder by @pagelayer team for my #WordPress site - '.home_url()),
114
'facebook' => 'https://www.facebook.com/pagelayer',
115
+ 'website' => PAGELAYER_WWW_URL,
116
'image' => PAGELAYER_URL.'/images/pagelayer-logo-256.png'
117
]);
118
508
return $actions;
509
}
510
511
+ // Add settings link on plugin page
512
+ add_filter('plugin_action_links_pagelayer/pagelayer.php', 'pagelayer_plugin_action_links');
513
+ function pagelayer_plugin_action_links($links){
514
+
515
+ if(!defined('PAGELAYER_PREMIUM')){
516
+ $links[] = '<a href="'.PAGELAYER_PRO_URL.'" style="color:#3db634;" target="_blank">'._x('Go Pro', 'Upgrade to Pagelayer Pro for many more features', 'pagelayer').'</a>';
517
+ }
518
+
519
+ $settings_link = '<a href="admin.php?page=pagelayer">Settings</a>';
520
+ array_unshift($links, $settings_link);
521
+
522
+ return $links;
523
+ }
524
+
525
// Pagelayer Template Loading Mechanism
526
include_once(PAGELAYER_DIR.'/main/template.php');
js/properties.js CHANGED
@@ -988,22 +988,22 @@ function pagelayer_elp_multiselect(row, prop){
988
989
function _pagelayer_trigger_anim(row, anim){
990
var id = row.closest('[pagelayer-element-id]').attr('pagelayer-element-id');
991
- var classList = $('[pagelayer-id='+id+']').attr('class');
992
classList = classList.split(/\s+/);
993
//console.log(classList);
994
var options = [];
995
row.find('option').each(function(){
996
- var found = $.inArray( $(this).val(), classList );
997
if( found != -1){
998
- //var found = $(this).val();
999
- $('[pagelayer-id='+id+']').removeClass($(this).val());
1000
//break;
1001
}
1002
- //options.push($(this).val());
1003
});
1004
- $('[pagelayer-id='+id+']').removeClass('pagelayer-wow').addClass(anim + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
1005
- $(this).removeClass(anim+ ' animated');
1006
- });
1007
}
1008
1009
// The Checkbox property
988
989
function _pagelayer_trigger_anim(row, anim){
990
var id = row.closest('[pagelayer-element-id]').attr('pagelayer-element-id');
991
+ var classList = jQuery('[pagelayer-id='+id+']').attr('class');
992
classList = classList.split(/\s+/);
993
//console.log(classList);
994
var options = [];
995
row.find('option').each(function(){
996
+ var found = jQuery.inArray( jQuery(this).val(), classList );
997
if( found != -1){
998
+ //var found = jQuery(this).val();
999
+ jQuery('[pagelayer-id='+id+']').removeClass(jQuery(this).val());
1000
//break;
1001
}
1002
+ //options.push(jQuery(this).val());
1003
+ });
1004
+ jQuery('[pagelayer-id='+id+']').removeClass('pagelayer-wow').addClass(anim + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
1005
+ jQuery(this).removeClass(anim+ ' animated');
1006
});
1007
}
1008
1009
// The Checkbox property
main/functions.php CHANGED
@@ -833,9 +833,17 @@ margin: 4px 2px;
833
transition-duration: 0.4s;
834
cursor: pointer;
835
}
836
- .pagelayer_promo_button:focus{
837
border: none;
838
color: white;
839
}
840
.pagelayer_promo_button1 {
841
color: white;
@@ -843,34 +851,20 @@ background-color: #4CAF50;
843
border:3px solid #4CAF50;
844
}
845
.pagelayer_promo_button1:hover {
846
- box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19);
847
- color: white;
848
border:3px solid #4CAF50;
849
}
850
.pagelayer_promo_button2 {
851
color: white;
852
background-color: #0085ba;
853
}
854
- .pagelayer_promo_button2:hover {
855
- box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19);
856
- color: white;
857
- }
858
.pagelayer_promo_button3 {
859
color: white;
860
background-color: #365899;
861
}
862
- .pagelayer_promo_button3:hover {
863
- box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19);
864
- color: white;
865
- }
866
.pagelayer_promo_button4 {
867
color: white;
868
background-color: rgb(66, 184, 221);
869
}
870
- .pagelayer_promo_button4:hover {
871
- box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19);
872
- color: white;
873
- }
874
.pagelayer_promo-close{
875
float:right;
876
text-decoration:none;
@@ -905,12 +899,19 @@ color: red;
905
echo '
906
<p style="font-size:13px">We are glad you like <a href="'.$opts['website'].'"><b>Pagelayer</b></a> and have been using it since the past few days. It is time to take the next step !</p>
907
<p>
908
'.(empty($opts['rating']) ? '' : '<a class="pagelayer_promo_button pagelayer_promo_button2" target="_blank" href="'.$opts['rating'].'">Rate it 5★\'s</a>').'
909
'.(empty($opts['facebook']) ? '' : '<a class="pagelayer_promo_button pagelayer_promo_button3" target="_blank" href="'.$opts['facebook'].'"><span class="dashicons dashicons-thumbs-up"></span> Facebook</a>').'
910
'.(empty($opts['twitter']) ? '' : '<a class="pagelayer_promo_button pagelayer_promo_button4" target="_blank" href="'.$opts['twitter'].'"><span class="dashicons dashicons-twitter"></span> Tweet</a>').'
911
'.(empty($opts['website']) ? '' : '<a class="pagelayer_promo_button pagelayer_promo_button4" target="_blank" href="'.$opts['website'].'">Visit our website</a>').'
912
</p>
913
- </div>';
914
915
}
916
833
transition-duration: 0.4s;
834
cursor: pointer;
835
}
836
+ .pagelayer_promo_button:focus,
837
+ .pagelayer_promo_button:hover{
838
border: none;
839
color: white;
840
+ box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19);
841
+ color: white;
842
+ }
843
+ .pagelayer_promo_buy {
844
+ color: white;
845
+ padding: 8px 12px;
846
+ font-size: 14px;
847
}
848
.pagelayer_promo_button1 {
849
color: white;
851
border:3px solid #4CAF50;
852
}
853
.pagelayer_promo_button1:hover {
854
border:3px solid #4CAF50;
855
}
856
.pagelayer_promo_button2 {
857
color: white;
858
background-color: #0085ba;
859
}
860
.pagelayer_promo_button3 {
861
color: white;
862
background-color: #365899;
863
}
864
.pagelayer_promo_button4 {
865
color: white;
866
background-color: rgb(66, 184, 221);
867
}
868
.pagelayer_promo-close{
869
float:right;
870
text-decoration:none;
899
echo '
900
<p style="font-size:13px">We are glad you like <a href="'.$opts['website'].'"><b>Pagelayer</b></a> and have been using it since the past few days. It is time to take the next step !</p>
901
<p>
902
+ '.(empty($opts['pro_url']) ? '' : '<a class="pagelayer_promo_button pagelayer_promo_buy" target="_blank" href="'.$opts['pro_url'].'">Buy Pagelayer Pro</a>').'
903
'.(empty($opts['rating']) ? '' : '<a class="pagelayer_promo_button pagelayer_promo_button2" target="_blank" href="'.$opts['rating'].'">Rate it 5★\'s</a>').'
904
'.(empty($opts['facebook']) ? '' : '<a class="pagelayer_promo_button pagelayer_promo_button3" target="_blank" href="'.$opts['facebook'].'"><span class="dashicons dashicons-thumbs-up"></span> Facebook</a>').'
905
'.(empty($opts['twitter']) ? '' : '<a class="pagelayer_promo_button pagelayer_promo_button4" target="_blank" href="'.$opts['twitter'].'"><span class="dashicons dashicons-twitter"></span> Tweet</a>').'
906
'.(empty($opts['website']) ? '' : '<a class="pagelayer_promo_button pagelayer_promo_button4" target="_blank" href="'.$opts['website'].'">Visit our website</a>').'
907
</p>
908
+ <p style="font-size:13px"><a href="'.$opts['pro_url'].'"><b>Pagelayer Pro</b></a> has many more features like 60+ widgets, 400+ sections, Theme Builder, WooCommerce Builder, Theme Creator and Exporter, Form Builder, Popup Builder, etc.';
909
+
910
+ if(date('Ymd') <= 20200331){
911
+ echo '<br><span style="font-size: 14px"><b>Promotional Offer</b></span> : If you buy <a href="'.$opts['pro_url'].'"><b>Pagelayer Pro</b></a> before <b>31st March, 2020</b> then you will get an additional year free and your license will expire on <b>31st March, 2022</b>.';
912
+ }
913
+
914
+ echo '</p></div>';
915
916
}
917
main/license.php CHANGED
@@ -204,8 +204,12 @@ function pagelayer_license_T(){
204
}
205
206
// If the license is active and you are the free version, then suggest to install the pro
207
- if(!empty($pagelayer->license['status']) && !defined('PAGELAYER_PRO') && empty($_REQUEST['install_pro'])){
208
- echo '<div id="message" class="updated"><p>'. __('You have activated the license, but are using the Free version ! <a href="'.admin_url('admin.php?page=pagelayer_license&install_pro=1').'" class="button button-primary">Install Pro Now</a>', 'pagelayer'). '</p></div><br />';
209
}
210
211
// Any errors ?
204
}
205
206
// If the license is active and you are the free version, then suggest to install the pro
207
+ if(!empty($pagelayer->license['status']) && !defined('PAGELAYER_PREMIUM') && empty($_REQUEST['install_pro'])){
208
+ echo '<div class="updated"><p>'. __('You have activated the license, but are using the Free version ! <a href="'.admin_url('admin.php?page=pagelayer_license&install_pro=1').'" class="button button-primary">Install Pro Now</a>', 'pagelayer'). '</p></div><br />';
209
+ }
210
+
211
+ if(date('Ymd') <= 20200331 && !defined('PAGELAYER_PREMIUM')){
212
+ echo '<div class="updated"><p><span style="font-size: 14px"><b>Promotional Offer</b></span> : If you buy <a href="'.PAGELAYER_PRO_URL.'"><b>Pagelayer Pro</b></a> before <b>31st March, 2020</b> then you will get an additional year free and your license will expire on <b>31st March, 2022</b></p></div><br />.';
213
}
214
215
// Any errors ?
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.0.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.0.3
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.3
6
Requires PHP: 5.4
7
- Stable tag: 1.0.2
8
License: LGPL v2.1
9
License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
@@ -109,7 +109,11 @@ Do you have questions related to PageLayer ? Use the following links :
109
110
== Changelog ==
111
112
- = 1.0.2 (November 15, 2019) =
113
* [Feature] You can now drag the left bar to the right or keep it in the center. Even if you close it, the properties will appear if you edit an existing element.
114
* [Feature] Added a navigator to see the elements structurally.
115
* [Feature] Added Font-Awesome 5 with backward compatibility for v4.
4
Requires at least: 4.7
5
Tested up to: 5.3
6
Requires PHP: 5.4
7
+ Stable tag: 1.0.3
8
License: LGPL v2.1
9
License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
109
110
== Changelog ==
111
112
+ = 1.0.3 (November 17, 2019) =
113
+ * [Task] We have launched Pagelayer Pro with features like 60+ widgets, 400+ sections, Theme Builder, WooCommerce Builder, Theme Creator and Exporter, Form Builder, Popup Builder, etc.
114
+ * [Bug-Fix] Animation effects used $ instead of jQuery which broke things in WordPress 5.3. This is fixed.
115
+
116
+ = 1.0.2 (November 17, 2019) =
117
* [Feature] You can now drag the left bar to the right or keep it in the center. Even if you close it, the properties will appear if you edit an existing element.
118
* [Feature] Added a navigator to see the elements structurally.
119
* [Feature] Added Font-Awesome 5 with backward compatibility for v4.