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

Version Description

(August 24, 2020) = * [Task] The language strings which were hard-coded have been moved to the pagelayer language pack. * [Task] Added option to open link in new tab for the image box and icon box widget. * [Task] Added filter to get javascript error in Header and footer code in Pagelayer -> Website Settings wizard. * [Bug-Fix] The Textarea property has been further improved, now Textarea resizes vertically. * [Bug-Fix] Removed some incompatible code. * [Bug-Fix] The right side block background color was not correctly applied to the hover in the timeline widget. This is fixed. * [Bug-Fix] In the accordion and collapse widget the active tab color was not working properly. This is fixed. * [Bug-Fix] In certain cases, the Pagelayer editor was stuck at 90% due to a js error related to fonts. This is fixed. * [Bug-Fix] The Modal widget has been further improved and added a max-height option for the modal container. * [Bug-Fix] While editing a page/post if anyone clicked on a link outside the editable area, the page was redirected and changes were not saved. This is fixed.

Download this release

Release Info

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

Code changes from version 1.2.2 to 1.2.3

css/pagelayer-editor.css CHANGED
@@ -811,6 +811,7 @@ width: 100%;
811
 
812
  .pagelayer-elp-textarea{
813
  border-radius: 3px !important;
 
814
  }
815
 
816
  .pagelayer-dark .pagelayer-elpd-body input,
811
 
812
  .pagelayer-elp-textarea{
813
  border-radius: 3px !important;
814
+ resize:vertical;
815
  }
816
 
817
  .pagelayer-dark .pagelayer-elpd-body input,
css/pagelayer-frontend.css CHANGED
@@ -2295,6 +2295,11 @@ top: 50%;
2295
  transform: translate(-50%, -50%);
2296
  }
2297
 
 
 
 
 
 
2298
  .pagelayer-splash-bg-close{
2299
  position: absolute;
2300
  top:0;
2295
  transform: translate(-50%, -50%);
2296
  }
2297
 
2298
+ .pagelayer-modal-content-overflow{
2299
+ max-height:500px;
2300
+ overflow:auto;
2301
+ }
2302
+
2303
  .pagelayer-splash-bg-close{
2304
  position: absolute;
2305
  top:0;
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.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.3');
9
  define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
10
  define('PAGELAYER_SLUG', 'pagelayer');
11
  define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
js/givejs.php CHANGED
@@ -106,7 +106,9 @@ if(!empty($matches[1])){
106
  }
107
 
108
  // Also add the fonts
109
- $export_langs['google_fonts_list'] = $pagelayer->fonts;
 
 
110
 
111
  // And lang string ?
112
  if(!empty($export_langs)){
106
  }
107
 
108
  // Also add the fonts
109
+ if(!empty($pagelayer->fonts)){
110
+ $export_langs['google_fonts_list'] = $pagelayer->fonts;
111
+ }
112
 
113
  // And lang string ?
114
  if(!empty($export_langs)){
js/pagelayer-editor.js CHANGED
@@ -65,6 +65,9 @@ window.onerror = function (msg, url, lineNo, columnNo, error) {
65
  // Lets start
66
  jQuery(document).ready(function(){
67
 
 
 
 
68
  // Set the title of the parent window
69
  try{ pagelayer.$$('head').append(pagelayer.$('title')[0].outerHTML); }catch(e){};
70
 
@@ -142,6 +145,46 @@ jQuery(document).ready(function(){
142
 
143
  });
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  // Executes when pagelayer is fully loaded
146
  function pagelayer_loader_hide(){
147
  var inner = pagelayer.$$('.pagelayer-percent');
@@ -539,8 +582,8 @@ function pagelayer_setup_drag(){
539
  }*/
540
 
541
  // Get the ID
542
- var onId = onWrap.attr('pagelayer-wrap-id');
543
- var onEle = onWrap.children('.pagelayer-ele');
544
 
545
  // Do we have a parent ?
546
  var pOnId = pagelayer_get_parent(onEle);
@@ -777,7 +820,7 @@ function pagelayer_setup_drag(){
777
  'after_loc' : {'method' : method, 'cEle' : onWrap}
778
  });
779
 
780
- pagelayer_isDirty = true;
781
  }
782
 
783
  // Defining the variables as needed
@@ -1852,7 +1895,7 @@ function pagelayer_delete_element(selector){
1852
 
1853
  }
1854
 
1855
- pagelayer_isDirty = true;
1856
  };
1857
 
1858
  // Select an element
@@ -1963,7 +2006,7 @@ function pagelayer_copy_element(selector, insertAfter){
1963
  pagelayer_renumber_col(row);
1964
  }
1965
 
1966
- pagelayer_isDirty = true;
1967
 
1968
  return id;
1969
  };
@@ -2497,7 +2540,7 @@ function pagelayer_set_atts(jEle, atts, val){
2497
  pagelayer_elpd_show_rows();
2498
  }
2499
 
2500
- pagelayer_isDirty = true;
2501
  };
2502
 
2503
  // This function will just set atts and not do anything else
@@ -3191,7 +3234,7 @@ function pagelayer_save(){
3191
  if(obj['error']){
3192
  alert(obj['error']);
3193
  }else{
3194
- pagelayer_isDirty = false;
3195
  alert(obj['success']);
3196
  pagelayer_get_revision();
3197
  }
65
  // Lets start
66
  jQuery(document).ready(function(){
67
 
68
+ // Prevent the click Insite editor
69
+ pagelayer_prevent_click();
70
+
71
  // Set the title of the parent window
72
  try{ pagelayer.$$('head').append(pagelayer.$('title')[0].outerHTML); }catch(e){};
73
 
145
 
146
  });
147
 
148
+ // Prevent the click Insite editor
149
+ function pagelayer_prevent_click(){
150
+ jQuery(document).on('submit', function(event){
151
+ var target = jQuery(event.target);
152
+ if (target.closest(pagelayer_editable).length < 1) {
153
+ event.preventDefault();
154
+ }
155
+ });
156
+
157
+ jQuery(document).on('click', function(event){
158
+ var target = jQuery(event.target);
159
+ if (target.closest('a').length > 0 && target.closest(pagelayer_editable).length < 1) {
160
+ event.preventDefault()
161
+ }
162
+ });
163
+ }
164
+
165
+ // Do pagelayer Dirty
166
+ function pagelayer_do_dirty(){
167
+
168
+ pagelayer_isDirty = true;
169
+
170
+ if (!window.onbeforeunload) {
171
+ window.onbeforeunload = function(){
172
+ return true;
173
+ };
174
+ }
175
+
176
+ }
177
+
178
+ function pagelayer_do_undirty(){
179
+
180
+ pagelayer_isDirty = false;
181
+
182
+ if (window.onbeforeunload) {
183
+ window.onbeforeunload = null;
184
+ }
185
+
186
+ }
187
+
188
  // Executes when pagelayer is fully loaded
189
  function pagelayer_loader_hide(){
190
  var inner = pagelayer.$$('.pagelayer-percent');
582
  }*/
583
 
584
  // Get the ID
585
+ var onId = pagelayer_id(onWrap);
586
+ var onEle = pagelayer_ele_by_id(onId);
587
 
588
  // Do we have a parent ?
589
  var pOnId = pagelayer_get_parent(onEle);
820
  'after_loc' : {'method' : method, 'cEle' : onWrap}
821
  });
822
 
823
+ pagelayer_do_dirty();
824
  }
825
 
826
  // Defining the variables as needed
1895
 
1896
  }
1897
 
1898
+ pagelayer_do_dirty();
1899
  };
1900
 
1901
  // Select an element
2006
  pagelayer_renumber_col(row);
2007
  }
2008
 
2009
+ pagelayer_do_dirty();
2010
 
2011
  return id;
2012
  };
2540
  pagelayer_elpd_show_rows();
2541
  }
2542
 
2543
+ pagelayer_do_dirty();
2544
  };
2545
 
2546
  // This function will just set atts and not do anything else
3234
  if(obj['error']){
3235
  alert(obj['error']);
3236
  }else{
3237
+ pagelayer_do_undirty();
3238
  alert(obj['success']);
3239
  pagelayer_get_revision();
3240
  }
languages/en.json CHANGED
@@ -1761,5 +1761,55 @@
1761
  "copy" : "Copy",
1762
  "support" : "Support",
1763
  "copy_success" : "Copied Successfully",
1764
- "error" : "Error"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1765
  }
1761
  "copy" : "Copy",
1762
  "support" : "Support",
1763
  "copy_success" : "Copied Successfully",
1764
+ "error" : "Error",
1765
+ "container" : "Container",
1766
+ "hf" : "Header and Footer",
1767
+ "body_content" : "Body and Content",
1768
+ "color_notice" : "Note : By default the theme colors would be inherited. If you set any value here, it will override your theme values. These colors can be over-written by the individual elements as well !",
1769
+ "welcome_to" : "Welcome to ",
1770
+ "choose_pagelayer" : "Thanks for Choosing Pagelayer - The most advanced frontend drag & drop page builder. Its very easy to use and very light on the browser.",
1771
+ "choose_sitepad" : "Thanks for Choosing Sitepad - Build Professional websites using an easy to use drag and drop editor.",
1772
+ "pagelayer_desc" : "Pagelayer makes it easy to create webpage in WordPress. You can watch the video tutorial or read our guide on how to create your first page.",
1773
+ "sitepad_desc" : "Sitepad makes it easy to create stunning Websites. You can watch the video tutorial or read our guide on how to create your first page.",
1774
+ "first_page" : "Create Your First Page",
1775
+ "watch_guide" : "Watch the Full Guide",
1776
+ "brand_feature_text" : " is an awesome page builder allows you to create and design you website in a simple way possible. It is user-friendly with fully customizable widgets where user does not require any developer skills.",
1777
+ "dragdrop" : "Drag & Drop Editor",
1778
+ "dragdrop_desc" : "Design your page by dragging widgets from given choices of widget.",
1779
+ "oneclick" : "One Click Publish",
1780
+ "oneclick_desc" : "Just pick a theme, customize the content add images, audio, videos and click Publish.",
1781
+ "widgets" : "Widgets",
1782
+ "widgets_desc" : "We have large number of widgets so you can design your page by selecting the widget from widget area.",
1783
+ "static_pages" : "Static Pages",
1784
+ "static_pages_desc" : "SitePad publishes static web pages (HTML, CSS, JS) to your domain so your site performs faster.",
1785
+ "inline_edit" : "In-line Editing",
1786
+ "inline_edit_desc" : "Simply click on any text and by typing you can add your new text.",
1787
+ "responsive_desc" : "Websites created by SitePad are responsive and compatible with all screen sizes.",
1788
+ "duplicate" : "Duplicate",
1789
+ "duplicate_desc" : "Simply click on this option and it will create exact copy of existing element by saving your time.",
1790
+ "social_media" : "Social Media",
1791
+ "social_media_desc" : "Add links to your social media pages like Facebook, Twitter, LinkedIn, YouTube & many more.",
1792
+ "animation_desc" : "Create your page more attractive with animation effects that trigger when the element is in display area.",
1793
+ "easy_use" : "Easy to Use",
1794
+ "easy_use_desc" : "Simple Drag and Drop Interface to create beautiful websites without any technical knowledge.",
1795
+ "style_option" : "Styling Options",
1796
+ "style_option_desc" : "With large number of styling options you can design your page the way you want such as: background overlay, box shadow etc.",
1797
+ "cpanel_integrate" : "Control Panel Integration",
1798
+ "cpanel_integrate_desc" : "SitePad is integrated with several popular control panels like cPanel, Directadmin, etc.",
1799
+ "real_design" : "Real Time Design",
1800
+ "real_design_desc" : "Whenever you make changes on your page it gets updated instantly on your page. It helps you design your page quickly by saving your time.",
1801
+ "multisites" : "Multiple Sites",
1802
+ "multisites_desc" : "Create multiple sites each having different themes, appearences and content.",
1803
+ "typography_desc" : "With this feature you can beautify your page content by changing font-size, weight, transform, decoration. You can also add google fonts.",
1804
+ "replicate_obj" : "Replicate Objects",
1805
+ "replicate_obj_desc" : "Replicate objects in the drag and drop editor interface to use your customizations multiple times.",
1806
+ "easy_customize" : "Easily Customizable",
1807
+ "whmcs" : "WHMCS Module",
1808
+ "easy_customize_desc" : "Each widget has multiple options to fully customize the widget such as change font colors, sizing and spacing.",
1809
+ "whmcs_desc" : "User can Directly Access SitePad Website Builder from WHMCS Client Area.",
1810
+ "why" : "Why",
1811
+ "content_max_height" : "Content Max Height",
1812
+ "header_code_error" : "There is some error in your Header Code. Please rectify the same !",
1813
+ "footer_code_error" : "There is some error in your Footer Code. Please rectify the same !",
1814
+ "script_close_error" : "Closing < /script > tag is not there. Please rectify it !"
1815
  }
main/freemium.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  //////////////////////////////////////////////////////////////
4
  //===========================================================
5
- // license.php
6
  //===========================================================
7
  // PAGELAYER
8
  // Inspired by the DESIRE to be the BEST OF ALL
2
 
3
  //////////////////////////////////////////////////////////////
4
  //===========================================================
5
+ // freemium.php
6
  //===========================================================
7
  // PAGELAYER
8
  // Inspired by the DESIRE to be the BEST OF ALL
main/functions.php CHANGED
@@ -406,6 +406,11 @@ function pagelayer_is_live(){
406
  return false;
407
  }
408
 
 
 
 
 
 
409
  // Is it the live mode ?
410
  if(pagelayer_optreq('pagelayer-live')){
411
  return true;
@@ -570,8 +575,8 @@ function pagelayer_load_shortcodes(){
570
  include_once(PAGELAYER_DIR.'/lib/pquery/pQuery.php');
571
 
572
  include_once(PAGELAYER_DIR.'/main/shortcode_functions.php');
573
- include_once(PAGELAYER_DIR.'/main/freemium_functions.php');
574
  if(defined('PAGELAYER_PREMIUM')){
 
575
  include_once(PAGELAYER_DIR.'/main/premium_functions.php');
576
  }
577
  include_once(PAGELAYER_DIR.'/main/shortcodes.php');
@@ -1035,6 +1040,18 @@ function pagelayer_xss_content($data){
1035
 
1036
  function pagelayer_getting_started_notice(){
1037
 
 
 
 
 
 
 
 
 
 
 
 
 
1038
  // Are we to disable the promo
1039
  if(isset($_GET['pagelayer-getting-started']) && (int)$_GET['pagelayer-getting-started'] == 0){
1040
  update_option('pagelayer_getting_started', time());
@@ -1061,7 +1078,18 @@ jQuery(document).ready(function(){
1061
  </script>
1062
 
1063
  <div id="pagelayer-getting-started-notice" class="notice notice-success is-dismissible">
1064
- <p style="font-size: 14px; font-weight: 600"><a href="'.PAGELAYER_WWW_URL.'"><img src="'.PAGELAYER_URL.'/images/pagelayer-logo-256.png" style="vertical-align: middle; margin:0px 10px" width="24" /></a>'.__('Thanks for choosing Pagelayer. We recommend that you see the short and sweet <a href="'.admin_url('admin.php?page=pagelayer_getting_started').'">Getting Started Video</a> to know the basics of Pagelayer.', 'pagelayer').'</p>
 
 
 
 
 
 
 
 
 
 
 
1065
  </div>';
1066
 
1067
  }
@@ -1243,7 +1271,7 @@ function pagelayer_show_pro_div($head = '', $message = '', $admin_css = 1){
1243
 
1244
  if(empty($message)){
1245
 
1246
- echo __('This feature is a part of <a href="'.$pro_url.'" target="_blank">'.$pro_txt.'</a>. You will need purchase <a href="'.$pro_url.'" target="_blank">'.$pro_txt.'</a> to use this feature.');
1247
 
1248
  }else{
1249
 
406
  return false;
407
  }
408
 
409
+ // Are you allowed to edit ?
410
+ if(!pagelayer_user_can_edit($post->ID)){
411
+ return false;
412
+ }
413
+
414
  // Is it the live mode ?
415
  if(pagelayer_optreq('pagelayer-live')){
416
  return true;
575
  include_once(PAGELAYER_DIR.'/lib/pquery/pQuery.php');
576
 
577
  include_once(PAGELAYER_DIR.'/main/shortcode_functions.php');
 
578
  if(defined('PAGELAYER_PREMIUM')){
579
+ include_once(PAGELAYER_DIR.'/main/freemium_functions.php');
580
  include_once(PAGELAYER_DIR.'/main/premium_functions.php');
581
  }
582
  include_once(PAGELAYER_DIR.'/main/shortcodes.php');
1040
 
1041
  function pagelayer_getting_started_notice(){
1042
 
1043
+ // Is Sitepad setup done?
1044
+ $setup_done = get_option('sp_setup_done');
1045
+
1046
+ if(defined('SITEPAD') && empty($setup_done)){
1047
+ return;
1048
+ }
1049
+
1050
+ // If SitePad used custom BRAND SM
1051
+ if(defined('BRAND_SM_CUSTOM')){
1052
+ return;
1053
+ }
1054
+
1055
  // Are we to disable the promo
1056
  if(isset($_GET['pagelayer-getting-started']) && (int)$_GET['pagelayer-getting-started'] == 0){
1057
  update_option('pagelayer_getting_started', time());
1078
  </script>
1079
 
1080
  <div id="pagelayer-getting-started-notice" class="notice notice-success is-dismissible">
1081
+ <p style="font-size: 14px; font-weight: 600">';
1082
+ if(defined('SITEPAD')){
1083
+
1084
+ echo '<a href="'.BRAND_SM_URL.'"><img src="'.BRAND_SM_LOGO .'" style="vertical-align: middle; margin:0px 10px" width="24" /></a>'.__('Thanks for choosing '.BRAND_SM .'. We recommend that you see the short and sweet <a href="'.admin_url('admin.php?page=pagelayer_getting_started').'">Getting Started Video</a> to know the basics of '.BRAND_SM.'.');
1085
+
1086
+ }else{
1087
+
1088
+ echo '<a href="'.PAGELAYER_WWW_URL.'"><img src="'.PAGELAYER_URL.'/images/pagelayer-logo-256.png" style="vertical-align: middle; margin:0px 10px" width="24" /></a>'.__('Thanks for choosing Pagelayer. We recommend that you see the short and sweet <a href="'.admin_url('admin.php?page=pagelayer_getting_started').'">Getting Started Video</a> to know the basics of Pagelayer.', 'pagelayer');
1089
+
1090
+ }
1091
+
1092
+ echo '</p>
1093
  </div>';
1094
 
1095
  }
1271
 
1272
  if(empty($message)){
1273
 
1274
+ echo __('This feature is a part of <a href="'.$pro_url.'" target="_blank">'.$pro_txt.'</a>. You will need to purchase <a href="'.$pro_url.'" target="_blank">'.$pro_txt.'</a> to use this feature.');
1275
 
1276
  }else{
1277
 
main/getting_started.php CHANGED
@@ -24,6 +24,7 @@ if(!defined('PAGELAYER_VERSION')) {
24
  exit('Hacking Attempt !');
25
  }
26
 
 
27
  ?>
28
 
29
  <link rel="stylesheet" href="<?php echo PAGELAYER_CSS.'/font-awesome5.min.css';?>">
@@ -32,28 +33,27 @@ if(!defined('PAGELAYER_VERSION')) {
32
  <div class="pagelayer-getting-started-container">
33
  <div class="pagelayer-getting-started-block">
34
  <div class="pagelayer-getting-started-logo">
35
- <?php echo (!defined('SITEPAD')) ? '<img src="'.PAGELAYER_URL.'/images/pagelayer-logo-256.png'.'"/>' : '<img src="'.sitepad_assets_url().'/images/logo256.png'.'"/>' ?>
36
  </div>
37
  <div class="pagelayer-getting-started-desc">
38
- <h1><?php _e('Welcome to ');
39
- echo (!defined('SITEPAD')) ? '<span>Pagelayer</span>' : '<span>Sitepad</span>';?></h1>
40
- <h6><?php echo (!defined('SITEPAD')) ? _e('Thanks for Choosing Pagelayer - The most advanced frontend drag & drop page builder. Its very easy to use and very light on the browser.') : _e('Thanks for Choosing Sitepad - Build Professional websites using an Easy to Use Editor and Publish static web pages.');?></h6>
41
  </div>
42
  <div class="pagelayer-getting-started-video">
43
  <?php echo (!defined('SITEPAD')) ? '<iframe width="700" height="400" src="https://www.youtube.com/embed/t8Iz-v-qce8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>' : '<iframe height="400" width="700" src="https://www.youtube.com/embed/8e3ROkKoFwA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>';?>
44
  </div>
45
  <div class="pagelayer-getting-started-desc">
46
- <h6><?php echo (!defined('SITEPAD')) ? _e('Pagelayer makes it easy to create webpage in WordPress. You can watch the video tutorial or read our guide on how to create your first page.') : _e('Sitepad makes it easy to create stunning Websites. You can watch the video tutorial or read our guide on how to create your first page.');?></h6>
47
  <div class="pagelayer-getting-started-btn">
48
- <a href="<?php echo admin_url('/post-new.php?post_type=page')?>" class="button button-primary btn-sc"><?php _e('Create Your First Page');?></a>
49
- <a href="<?php echo (!defined('SITEPAD')) ? "https://pagelayer.com/getting-started/" : "#"; ?>" class="button button-secondary btn-sc" target="_blank"><?php _e('Watch the Full Guide');?></a>
50
  </div>
51
  </div>
52
  </div>
53
  <div class="pagelayer-features">
54
  <div class="pagelayer-getting-started-desc">
55
- <h1><?php echo (!defined('SITEPAD')) ? _e('Pagelayer Features') : _e('Sitepad Features');?></h1>
56
- <h6><?php echo (!defined('SITEPAD')) ? "Pagelayer" : "Sitepad"; _e(' is an awesome page builder allows you to create and design you website instantly in a simple way possible. It is user-friendly with fully customizable widgets where user does not require any developer skills.');?></h6>
57
  <div class="pagelayer-features-list">
58
  <?php $style = (defined('SITEPAD')) ? 'style="width:30%; height: 265px"' : ''; ?>
59
  <div class="feature-block-card" <?php echo $style; ?>>
@@ -61,8 +61,8 @@ if(!defined('PAGELAYER_VERSION')) {
61
  <?php echo (!defined('SITEPAD')) ? '<i class="fas fa-mouse-pointer" aria-hidden="true">' : '<i class="fas fa-paper-plane" aria-hidden="true"></i>' ?></i>
62
  </div>
63
  <div class="feature-block-content">
64
- <h5><?php echo (!defined('SITEPAD')) ? _e('Drag & Drop Editor') : _e('One Click Publish', 'pagelayer')?></h5>
65
- <p><?php echo (!defined('SITEPAD')) ? _e('Design your page by dragging widgets from given choices of widget.') : _e('Just pick a theme, customize the content add images, audio, videos and click Publish.');?></p>
66
  </div>
67
  </div>
68
  <div class="feature-block-card" <?php echo $style; ?>>
@@ -70,8 +70,8 @@ if(!defined('PAGELAYER_VERSION')) {
70
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-th-list" aria-hidden="true">' : '<i class="fas fa-random" aria-hidden="true"></i>' ?></i>
71
  </div>
72
  <div class="feature-block-content">
73
- <h5><?php echo (!defined('SITEPAD')) ? _e('Widgets') : _e('Static Pages')?></h5>
74
- <p><?php echo (!defined('SITEPAD')) ? _e('We have large number of widgets so you can design your page by selecting the widget from widget area.') : _e('SitePad publishes static web pages (HTML, CSS, JS) to your domain so your site performs faster.');?></p>
75
  </div>
76
  </div>
77
  <div class="feature-block-card" <?php echo $style; ?>>
@@ -79,8 +79,8 @@ if(!defined('PAGELAYER_VERSION')) {
79
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-pencil" aria-hidden="true">' : '<i class="fas fa-mobile-alt" aria-hidden="true"></i>' ?></i>
80
  </div>
81
  <div class="feature-block-content">
82
- <h5><?php echo (!defined('SITEPAD')) ? _e('In-line Editing') : _e('Responsive')?></h5>
83
- <p><?php echo (!defined('SITEPAD')) ? _e('Simply click on any text and by typing you can add your new text.') : _e('Websites created by SitePad are responsive and compatible with all screen sizes.');?></p>
84
  </div>
85
  </div>
86
  <div class="feature-block-card" <?php echo $style; ?>>
@@ -88,8 +88,8 @@ if(!defined('PAGELAYER_VERSION')) {
88
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-clone" aria-hidden="true">' : '<i class="fas fa-share-square" aria-hidden="true"></i>' ?></i>
89
  </div>
90
  <div class="feature-block-content">
91
- <h5><?php echo (!defined('SITEPAD')) ? _e('Duplicate') : _e('Social Media')?></h5>
92
- <p><?php echo (!defined('SITEPAD')) ? _e('Simply click on this option and it will create exact copy of existing element by saving your time.') : _e('Add links to your social media pages like Facebook, Twitter, LinkedIn, YouTube & many more.');?></p>
93
  </div>
94
  </div>
95
  <div class="feature-block-card" <?php echo $style; ?>>
@@ -97,8 +97,8 @@ if(!defined('PAGELAYER_VERSION')) {
97
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-snowflake-o fa-spin" aria-hidden="true">' : '<i class="fas fa-check" aria-hidden="true"></i>' ?></i>
98
  </div>
99
  <div class="feature-block-content">
100
- <h5><?php echo (!defined('SITEPAD')) ? _e('Animation') : _e('Easy to Use')?></h5>
101
- <p><?php echo (!defined('SITEPAD')) ? _e('Create your page more attractive with animation effects that trigger when the element is in display area.') : _e('Simple Drag and Drop Interface to create beautiful websites without any technical knowledge.');?></p>
102
  </div>
103
  </div>
104
  <div class="feature-block-card" <?php echo $style; ?>>
@@ -106,8 +106,8 @@ if(!defined('PAGELAYER_VERSION')) {
106
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-text-width" aria-hidden="true">' : '<i class="fas fa-cog" aria-hidden="true"></i>' ?></i>
107
  </div>
108
  <div class="feature-block-content">
109
- <h5><?php echo (!defined('SITEPAD')) ? _e('Styling Options') : _e('Control Panel Integration')?></h5>
110
- <p><?php echo (!defined('SITEPAD')) ? _e('With large number of styling options you can design your page the way you want such as: background overlay, box shadow etc.') : _e('SitePad is integrated with several popular control panels like cPanel, Directadmin, etc.');?></p>
111
  </div>
112
  </div>
113
  <div class="feature-block-card" <?php echo $style; ?>>
@@ -115,8 +115,8 @@ if(!defined('PAGELAYER_VERSION')) {
115
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-paint-brush" aria-hidden="true">' : '<i class="fas fa-th-large" aria-hidden="true"></i>' ?></i>
116
  </div>
117
  <div class="feature-block-content">
118
- <h5><?php echo (!defined('SITEPAD')) ? _e('Real Time Design') : _e('Multiple Sites')?></h5>
119
- <p><?php echo (!defined('SITEPAD')) ? _e('Whenever you make changes on your page it gets updated instantly on your page. It helps you design your page quickly by saving your time.') : _e('Create multiple sites each having different themes, appearences and content.');?></p>
120
  </div>
121
  </div>
122
  <div class="feature-block-card" <?php echo $style; ?>>
@@ -124,8 +124,8 @@ if(!defined('PAGELAYER_VERSION')) {
124
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-font" aria-hidden="true">' : '<i class="fas fa-copy" aria-hidden="true"></i>' ?></i>
125
  </div>
126
  <div class="feature-block-content">
127
- <h5><?php echo (!defined('SITEPAD')) ? _e('Typography') : _e('Replicate Objects')?></h5>
128
- <p><?php echo (!defined('SITEPAD')) ? _e('With this feature you can beautify your page content by changing font-size, weight, transform, decoration. You can also add google fonts.') : _e('Replicate objects in the drag and drop editor interface to use your customizations multiple times.');?></p>
129
  </div>
130
  </div>
131
  <div class="feature-block-card" <?php echo $style; ?>>
@@ -133,12 +133,12 @@ if(!defined('PAGELAYER_VERSION')) {
133
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-cubes" aria-hidden="true">' : '<i class="fas fa-shopping-cart" aria-hidden="true"></i>' ?></i>
134
  </div>
135
  <div class="feature-block-content">
136
- <h5><?php echo (!defined('SITEPAD')) ? _e('Easily Customizable') : _e('WHMCS Module')?></h5>
137
- <p><?php echo (!defined('SITEPAD')) ? _e('Each widget has multiple options to fully customize the widget such as change font colors, sizing and spacing.') : _e('User can Directly Access SitePad Website Builder from WHMCS Client Area.');?></p>
138
  </div>
139
  </div>
140
  <div class="pagelayer-getting-started-btn">
141
- <a href=" <?php echo (!defined('SITEPAD')) ? "https://pagelayer.com/" : "http://sitepad.com/"?>" class="button button-secondary btn-sc" target="_blank" style="margin-top:20px;"><?php echo (!defined('SITEPAD')) ? _e('Why Pagelayer?') : _e('Why Sitepad?');?></a>
142
  </div>
143
  </div>
144
  </div>
24
  exit('Hacking Attempt !');
25
  }
26
 
27
+ $app = (!defined('SITEPAD') ? 'Pagelayer' : BRAND_SM);
28
  ?>
29
 
30
  <link rel="stylesheet" href="<?php echo PAGELAYER_CSS.'/font-awesome5.min.css';?>">
33
  <div class="pagelayer-getting-started-container">
34
  <div class="pagelayer-getting-started-block">
35
  <div class="pagelayer-getting-started-logo">
36
+ <?php echo (!defined('SITEPAD')) ? '<img src="'.PAGELAYER_URL.'/images/pagelayer-logo-256.png'.'"/>' : '<img src="'.BRAND_SM_LOGO.'" style="width:auto"/>' ?>
37
  </div>
38
  <div class="pagelayer-getting-started-desc">
39
+ <h1><?php echo __pl('welcome_to').$app;?></h1>
40
+ <h6><?php echo (!defined('SITEPAD')) ? __pl('choose_pagelayer') : __pl('choose_sitepad');?></h6>
 
41
  </div>
42
  <div class="pagelayer-getting-started-video">
43
  <?php echo (!defined('SITEPAD')) ? '<iframe width="700" height="400" src="https://www.youtube.com/embed/t8Iz-v-qce8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>' : '<iframe height="400" width="700" src="https://www.youtube.com/embed/8e3ROkKoFwA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>';?>
44
  </div>
45
  <div class="pagelayer-getting-started-desc">
46
+ <h6><?php echo (!defined('SITEPAD')) ? __pl('pagelayer_desc') : __pl('sitepad_desc');?></h6>
47
  <div class="pagelayer-getting-started-btn">
48
+ <a href="<?php echo admin_url('/post-new.php?post_type=page')?>" class="button button-primary btn-sc"><?php echo __pl('first_page');?></a>
49
+ <a href="<?php echo (!defined('SITEPAD')) ? PAGELAYER_WWW_URL.'getting-started' : "https://sitepad.com/docs/getting-started/"; ?>" class="button button-secondary btn-sc" target="_blank"><?php echo __pl('watch_guide');?></a>
50
  </div>
51
  </div>
52
  </div>
53
  <div class="pagelayer-features">
54
  <div class="pagelayer-getting-started-desc">
55
+ <h1><?php echo $app.' '.__pl('feature_style');?></h1>
56
+ <h6><?php echo $app.__pl('brand_feature_text');?></h6>
57
  <div class="pagelayer-features-list">
58
  <?php $style = (defined('SITEPAD')) ? 'style="width:30%; height: 265px"' : ''; ?>
59
  <div class="feature-block-card" <?php echo $style; ?>>
61
  <?php echo (!defined('SITEPAD')) ? '<i class="fas fa-mouse-pointer" aria-hidden="true">' : '<i class="fas fa-paper-plane" aria-hidden="true"></i>' ?></i>
62
  </div>
63
  <div class="feature-block-content">
64
+ <h5><?php echo (!defined('SITEPAD')) ? __pl('dragdrop') : __pl('oneclick')?></h5>
65
+ <p><?php echo (!defined('SITEPAD')) ? __pl('dragdrop_desc') : __pl('oneclick_desc');?></p>
66
  </div>
67
  </div>
68
  <div class="feature-block-card" <?php echo $style; ?>>
70
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-th-list" aria-hidden="true">' : '<i class="fas fa-random" aria-hidden="true"></i>' ?></i>
71
  </div>
72
  <div class="feature-block-content">
73
+ <h5><?php echo (!defined('SITEPAD')) ? __pl('widgets') : __pl('static_pages')?></h5>
74
+ <p><?php echo (!defined('SITEPAD')) ? __pl('widgets_desc') : __pl('static_pages_desc');?></p>
75
  </div>
76
  </div>
77
  <div class="feature-block-card" <?php echo $style; ?>>
79
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-pencil" aria-hidden="true">' : '<i class="fas fa-mobile-alt" aria-hidden="true"></i>' ?></i>
80
  </div>
81
  <div class="feature-block-content">
82
+ <h5><?php echo (!defined('SITEPAD')) ? __pl('inline_edit') : __pl('responsive_styles')?></h5>
83
+ <p><?php echo (!defined('SITEPAD')) ? __pl('inline_edit_desc') : __pl('responsive_desc');?></p>
84
  </div>
85
  </div>
86
  <div class="feature-block-card" <?php echo $style; ?>>
88
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-clone" aria-hidden="true">' : '<i class="fas fa-share-square" aria-hidden="true"></i>' ?></i>
89
  </div>
90
  <div class="feature-block-content">
91
+ <h5><?php echo (!defined('SITEPAD')) ? __pl('duplicate') : __pl('social_media')?></h5>
92
+ <p><?php echo (!defined('SITEPAD')) ? __pl('duplicate_desc') : __pl('social_media_desc');?></p>
93
  </div>
94
  </div>
95
  <div class="feature-block-card" <?php echo $style; ?>>
97
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-snowflake-o fa-spin" aria-hidden="true">' : '<i class="fas fa-check" aria-hidden="true"></i>' ?></i>
98
  </div>
99
  <div class="feature-block-content">
100
+ <h5><?php echo (!defined('SITEPAD')) ? __pl('animation') : __pl('easy_use')?></h5>
101
+ <p><?php echo (!defined('SITEPAD')) ? __pl('animation_desc') : __pl('easy_use_desc');?></p>
102
  </div>
103
  </div>
104
  <div class="feature-block-card" <?php echo $style; ?>>
106
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-text-width" aria-hidden="true">' : '<i class="fas fa-cog" aria-hidden="true"></i>' ?></i>
107
  </div>
108
  <div class="feature-block-content">
109
+ <h5><?php echo (!defined('SITEPAD')) ? __pl('style_option') : __pl('cpanel_integrate')?></h5>
110
+ <p><?php echo (!defined('SITEPAD')) ? __pl('style_option_desc') : __pl('cpanel_integrate_desc');?></p>
111
  </div>
112
  </div>
113
  <div class="feature-block-card" <?php echo $style; ?>>
115
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-paint-brush" aria-hidden="true">' : '<i class="fas fa-th-large" aria-hidden="true"></i>' ?></i>
116
  </div>
117
  <div class="feature-block-content">
118
+ <h5><?php echo (!defined('SITEPAD')) ? __pl('real_design') : __pl('multisites')?></h5>
119
+ <p><?php echo (!defined('SITEPAD')) ? __pl('real_design_desc') : __pl('multisites_desc');?></p>
120
  </div>
121
  </div>
122
  <div class="feature-block-card" <?php echo $style; ?>>
124
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-font" aria-hidden="true">' : '<i class="fas fa-copy" aria-hidden="true"></i>' ?></i>
125
  </div>
126
  <div class="feature-block-content">
127
+ <h5><?php echo (!defined('SITEPAD')) ? __pl('typography') : __pl('replicate_obj')?></h5>
128
+ <p><?php echo (!defined('SITEPAD')) ? __pl('typography_desc') : __pl('replicate_obj_desc');?></p>
129
  </div>
130
  </div>
131
  <div class="feature-block-card" <?php echo $style; ?>>
133
  <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-cubes" aria-hidden="true">' : '<i class="fas fa-shopping-cart" aria-hidden="true"></i>' ?></i>
134
  </div>
135
  <div class="feature-block-content">
136
+ <h5><?php echo (!defined('SITEPAD')) ? __pl('easy_customize') : __pl('whmcs')?></h5>
137
+ <p><?php echo (!defined('SITEPAD')) ? __pl('easy_customize_desc') : __pl('whmcs_desc');?></p>
138
  </div>
139
  </div>
140
  <div class="pagelayer-getting-started-btn">
141
+ <a href=" <?php echo (!defined('SITEPAD')) ? PAGELAYER_WWW_URL : "http://sitepad.com/"?>" class="button button-secondary btn-sc" target="_blank" style="margin-top:20px;"><?php echo __pl('why').' '.$app.'?';?></a>
142
  </div>
143
  </div>
144
  </div>
main/shortcodes.php CHANGED
@@ -5734,6 +5734,14 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
5734
  'type' => 'link',
5735
  'label' => __pl('url'),
5736
  ),
 
 
 
 
 
 
 
 
5737
  'anim_hover' => array(
5738
  'type' => 'select',
5739
  'label' => __pl('icon_animation'),
@@ -5975,7 +5983,13 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
5975
  'heading_url' => array(
5976
  'type' => 'link',
5977
  'label' => __pl('url'),
5978
- 'req' => ['!service_heading' => '']
 
 
 
 
 
 
5979
  ),
5980
  'heading_alignment' => array(
5981
  'type' => 'radio',
@@ -6420,6 +6434,14 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
6420
  'type' => 'link',
6421
  'label' => __pl('url'),
6422
  ),
 
 
 
 
 
 
 
 
6423
  ),
6424
  // icon style
6425
  'service_icon_style' => [
@@ -6694,6 +6716,12 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
6694
  'label' => __pl('url'),
6695
  'req' => ['!service_heading' => '', 'box_url' => '']
6696
  ),
 
 
 
 
 
 
6697
  'heading_alignment' => array(
6698
  'type' => 'radio',
6699
  'label' => __pl('service_box_heading_alignment'),
@@ -7410,13 +7438,13 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
7410
  'type' => 'color',
7411
  'label' => __pl('Active Tab Color '),
7412
  'default' => '#ffffff',
7413
- 'css' => ['{{element}} .pagelayer-accordion-tabs.active' => 'color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'color:{{val}}'],
7414
  ),
7415
  'tabs_active_bg_color' => array(
7416
  'type' => 'color',
7417
  'label' => __pl('Active Tab Background Color '),
7418
  'default' => '#0986c0',
7419
- 'css' => ['{{element}} .pagelayer-accordion-tabs.active'=> 'background-color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'background-color:{{val}}'],
7420
  ),
7421
  'tab_padding' => array(
7422
  'type' => 'slider',
@@ -7621,13 +7649,13 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
7621
  'type' => 'color',
7622
  'label' => __pl('Active Tab Color '),
7623
  'default' => '#fff',
7624
- 'css' => ['{{element}} .pagelayer-accordion-tabs.active' => 'color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'color:{{val}}'],
7625
  ),
7626
  'tabs_active_bg_color' => array(
7627
  'type' => 'color',
7628
  'label' => __pl('Active Tab Background Color '),
7629
  'default' => '#0986c0',
7630
- 'css' => ['{{element}} .pagelayer-accordion-tabs.active'=> 'background-color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'background-color:{{val}}'],
7631
  ),
7632
  'tab_padding' => array(
7633
  'type' => 'slider',
@@ -8990,10 +9018,8 @@ foreach($GLOBALS['wp_widget_factory']->widgets as $widget_key => $widget){
8990
  }
8991
  //}
8992
 
8993
- // Freemium ones
8994
- include_once(dirname(__FILE__).'/freemium.php');
8995
-
8996
  // Its premium
8997
  if(defined('PAGELAYER_PREMIUM')){
 
8998
  include_once(dirname(__FILE__).'/premium.php');
8999
  }
5734
  'type' => 'link',
5735
  'label' => __pl('url'),
5736
  ),
5737
+ 'box_target' => array(
5738
+ 'label' => __pl('open_link_in_new_window'),
5739
+ 'type' => 'checkbox',
5740
+ 'addAttr' => ['{{element}} .pagelayer-box-link' => 'target="_blank"'],
5741
+ 'req' => array(
5742
+ '!box_url' => ''
5743
+ )
5744
+ ),
5745
  'anim_hover' => array(
5746
  'type' => 'select',
5747
  'label' => __pl('icon_animation'),
5983
  'heading_url' => array(
5984
  'type' => 'link',
5985
  'label' => __pl('url'),
5986
+ 'req' => ['!service_heading' => '', 'box_url' => '']
5987
+ ),
5988
+ 'heading_target' => array(
5989
+ 'label' => __pl('open_link_in_new_window'),
5990
+ 'type' => 'checkbox',
5991
+ 'addAttr' => ['{{element}} .pagelayer-service-details a' => 'target="_blank"'],
5992
+ 'req' => [ '!service_heading' => '', 'box_url' => '', '!heading_url' => '']
5993
  ),
5994
  'heading_alignment' => array(
5995
  'type' => 'radio',
6434
  'type' => 'link',
6435
  'label' => __pl('url'),
6436
  ),
6437
+ 'box_target' => array(
6438
+ 'label' => __pl('open_link_in_new_window'),
6439
+ 'type' => 'checkbox',
6440
+ 'addAttr' => ['{{element}} .pagelayer-box-link' => 'target="_blank"'],
6441
+ 'req' => array(
6442
+ '!box_url' => ''
6443
+ )
6444
+ ),
6445
  ),
6446
  // icon style
6447
  'service_icon_style' => [
6716
  'label' => __pl('url'),
6717
  'req' => ['!service_heading' => '', 'box_url' => '']
6718
  ),
6719
+ 'heading_target' => array(
6720
+ 'label' => __pl('open_link_in_new_window'),
6721
+ 'type' => 'checkbox',
6722
+ 'addAttr' => ['{{element}} .pagelayer-service-details a' => 'target="_blank"'],
6723
+ 'req' => [ '!service_heading' => '', 'box_url' => '', '!heading_url' => '']
6724
+ ),
6725
  'heading_alignment' => array(
6726
  'type' => 'radio',
6727
  'label' => __pl('service_box_heading_alignment'),
7438
  'type' => 'color',
7439
  'label' => __pl('Active Tab Color '),
7440
  'default' => '#ffffff',
7441
+ 'css' => ['{{element}} .active .pagelayer-accordion-tabs' => 'color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'color:{{val}}'],
7442
  ),
7443
  'tabs_active_bg_color' => array(
7444
  'type' => 'color',
7445
  'label' => __pl('Active Tab Background Color '),
7446
  'default' => '#0986c0',
7447
+ 'css' => ['{{element}} .active .pagelayer-accordion-tabs'=> 'background-color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'background-color:{{val}}'],
7448
  ),
7449
  'tab_padding' => array(
7450
  'type' => 'slider',
7649
  'type' => 'color',
7650
  'label' => __pl('Active Tab Color '),
7651
  'default' => '#fff',
7652
+ 'css' => ['{{element}} .active .pagelayer-accordion-tabs' => 'color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'color:{{val}}'],
7653
  ),
7654
  'tabs_active_bg_color' => array(
7655
  'type' => 'color',
7656
  'label' => __pl('Active Tab Background Color '),
7657
  'default' => '#0986c0',
7658
+ 'css' => ['{{element}} .active .pagelayer-accordion-tabs'=> 'background-color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'background-color:{{val}}'],
7659
  ),
7660
  'tab_padding' => array(
7661
  'type' => 'slider',
9018
  }
9019
  //}
9020
 
 
 
 
9021
  // Its premium
9022
  if(defined('PAGELAYER_PREMIUM')){
9023
+ include_once(dirname(__FILE__).'/freemium.php');
9024
  include_once(dirname(__FILE__).'/premium.php');
9025
  }
main/website.php CHANGED
@@ -135,17 +135,17 @@ function pagelayer_website_settings_T(){
135
  <?php wp_nonce_field('pagelayer-options'); ?>
136
  <div class="tabs-wrapper">
137
  <h2 class="nav-tab-wrapper pagelayer-wrapper">
138
- <a href="#typography" class="nav-tab">Typography</a>
139
- <a href="#headings" class="nav-tab ">Headings</a>
140
- <a href="#colors" class="nav-tab ">Colors</a>
141
- <a href="#website_container" class="nav-tab">Container</a>
142
  <!--<a href="#pagelayer-sidebar" class="nav-tab">Sidebar</a>-->
143
- <a href="#hf" class="nav-tab ">Header and Footer</a>
144
  </h2>
145
 
146
  <div class="pagelayer-tab-panel" id="typography">
147
 
148
- <center><h2>Body and Content</h2></center>
149
 
150
  <?php pagelayer_website_font_settings('body');?>
151
 
@@ -190,8 +190,9 @@ function pagelayer_website_settings_T(){
190
  pagelayer_website_color('Link Color', 'link');
191
  pagelayer_website_color('Link Hover Color', 'link-hover');
192
  pagelayer_website_color('Heading Color (H1-H6)', 'heading');
 
 
193
  ?>
194
- Note : By default the theme colors would be inherited. If you set any value here, it will override your theme values. These colors can be over-written by the individual elements as well !
195
  </div>
196
 
197
  <div class="pagelayer-tab-panel" id="website_container">
@@ -310,7 +311,7 @@ function pagelayer_website_settings_T(){
310
  </div>
311
 
312
  </div>
313
- <center><input type="submit" name="submit" class="button button-primary" value="Save Changes"></center>
314
  <br /><br />
315
  </form>
316
 
@@ -366,6 +367,7 @@ jQuery(document).ready(function(){
366
  jQuery('.pagelayer-show-custom').each(function(){
367
  pagelayer_handle_custom(jQuery(this));
368
  });
 
369
  });
370
  </script>
371
 
@@ -409,7 +411,7 @@ function pagelayer_website_font_settings($prefix){
409
 
410
  <table>
411
  <tr>
412
- <th scope="row">Font Family </th>
413
  <td>
414
  <label>
415
  <select name="<?php echo $prefix;?>[font-family]">
@@ -424,7 +426,7 @@ function pagelayer_website_font_settings($prefix){
424
  </tr>
425
 
426
  <tr>
427
- <th scope="row">Font Size </th>
428
  <td>
429
  <label>
430
  <select class="pagelayer-show-custom" onchange="pagelayer_handle_custom(this)">
@@ -437,7 +439,7 @@ function pagelayer_website_font_settings($prefix){
437
  </tr>
438
 
439
  <tr>
440
- <th scope="row">Font Style </th>
441
  <td>
442
  <label>
443
  <select name="<?php echo $prefix;?>[font-style]">
@@ -452,7 +454,7 @@ function pagelayer_website_font_settings($prefix){
452
  </tr>
453
 
454
  <tr>
455
- <th scope="row">Font Weight </th>
456
  <td>
457
  <label>
458
  <select name="<?php echo $prefix;?>[font-weight]">
@@ -467,7 +469,7 @@ function pagelayer_website_font_settings($prefix){
467
  </tr>
468
 
469
  <tr>
470
- <th scope="row">Text Transform </th>
471
  <td>
472
  <label>
473
  <select name="<?php echo $prefix;?>[text-transform]">
@@ -482,7 +484,7 @@ function pagelayer_website_font_settings($prefix){
482
  </tr>
483
 
484
  <tr>
485
- <th scope="row">Line Height </th>
486
  <td>
487
  <label>
488
  <select class="pagelayer-show-custom" onchange="pagelayer_handle_custom(this)">
@@ -495,7 +497,7 @@ function pagelayer_website_font_settings($prefix){
495
  </tr>
496
 
497
  <tr>
498
- <th scope="row">Text Spacing </th>
499
  <td>
500
  <label>
501
  <select class="pagelayer-show-custom" onchange="pagelayer_handle_custom(this)">
@@ -508,7 +510,7 @@ function pagelayer_website_font_settings($prefix){
508
  </tr>
509
 
510
  <tr>
511
- <th scope="row">Word Spacing </th>
512
  <td>
513
  <label>
514
  <select class="pagelayer-show-custom" onchange="pagelayer_handle_custom(this)">
@@ -544,4 +546,4 @@ function pagelayer_sidebar_select($name){
544
  <option value="right" '.($val == 'right' ? 'selected="seleted"' : '').'>Right Sidebar</option>
545
  </select>
546
  ';
547
- }
135
  <?php wp_nonce_field('pagelayer-options'); ?>
136
  <div class="tabs-wrapper">
137
  <h2 class="nav-tab-wrapper pagelayer-wrapper">
138
+ <a href="#typography" class="nav-tab"><?php echo __pl('typography');?></a>
139
+ <a href="#headings" class="nav-tab "><?php echo __pl('heading_style');?></a>
140
+ <a href="#colors" class="nav-tab "><?php echo __pl('color');?></a>
141
+ <a href="#website_container" class="nav-tab"><?php echo __pl('container');?></a>
142
  <!--<a href="#pagelayer-sidebar" class="nav-tab">Sidebar</a>-->
143
+ <a href="#hf" class="nav-tab "><?php echo __pl('hf');?></a>
144
  </h2>
145
 
146
  <div class="pagelayer-tab-panel" id="typography">
147
 
148
+ <center><h2><?php echo __pl('body_content'); ?></h2></center>
149
 
150
  <?php pagelayer_website_font_settings('body');?>
151
 
190
  pagelayer_website_color('Link Color', 'link');
191
  pagelayer_website_color('Link Hover Color', 'link-hover');
192
  pagelayer_website_color('Heading Color (H1-H6)', 'heading');
193
+
194
+ echo __pl('color_notice');
195
  ?>
 
196
  </div>
197
 
198
  <div class="pagelayer-tab-panel" id="website_container">
311
  </div>
312
 
313
  </div>
314
+ <center><input type="submit" name="submit" class="button button-primary button-submit" value="Save Changes"></center>
315
  <br /><br />
316
  </form>
317
 
367
  jQuery('.pagelayer-show-custom').each(function(){
368
  pagelayer_handle_custom(jQuery(this));
369
  });
370
+
371
  });
372
  </script>
373
 
411
 
412
  <table>
413
  <tr>
414
+ <th scope="row"><?php echo __pl('font_family'); ?></th>
415
  <td>
416
  <label>
417
  <select name="<?php echo $prefix;?>[font-family]">
426
  </tr>
427
 
428
  <tr>
429
+ <th scope="row"><?php echo __pl('font_size'); ?></th>
430
  <td>
431
  <label>
432
  <select class="pagelayer-show-custom" onchange="pagelayer_handle_custom(this)">
439
  </tr>
440
 
441
  <tr>
442
+ <th scope="row"><?php echo __pl('font_style'); ?></th>
443
  <td>
444
  <label>
445
  <select name="<?php echo $prefix;?>[font-style]">
454
  </tr>
455
 
456
  <tr>
457
+ <th scope="row"><?php echo __pl('font_weight');?></th>
458
  <td>
459
  <label>
460
  <select name="<?php echo $prefix;?>[font-weight]">
469
  </tr>
470
 
471
  <tr>
472
+ <th scope="row"><?php echo __pl('text_transform');?></th>
473
  <td>
474
  <label>
475
  <select name="<?php echo $prefix;?>[text-transform]">
484
  </tr>
485
 
486
  <tr>
487
+ <th scope="row"><?php echo __pl('line_height');?></th>
488
  <td>
489
  <label>
490
  <select class="pagelayer-show-custom" onchange="pagelayer_handle_custom(this)">
497
  </tr>
498
 
499
  <tr>
500
+ <th scope="row"><?php echo __pl('text_spacing');?></th>
501
  <td>
502
  <label>
503
  <select class="pagelayer-show-custom" onchange="pagelayer_handle_custom(this)">
510
  </tr>
511
 
512
  <tr>
513
+ <th scope="row"><?php echo __pl('word_spacing');?></th>
514
  <td>
515
  <label>
516
  <select class="pagelayer-show-custom" onchange="pagelayer_handle_custom(this)">
546
  <option value="right" '.($val == 'right' ? 'selected="seleted"' : '').'>Right Sidebar</option>
547
  </select>
548
  ';
549
+ }
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.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.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.5
6
  Requires PHP: 5.5
7
- Stable tag: 1.2.2
8
  License: LGPL v2.1
9
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
 
@@ -109,6 +109,18 @@ Do you have questions related to PageLayer ? Use the following links :
109
 
110
  == Changelog ==
111
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  = 1.2.2 (August 11, 2020) =
113
  * [Bug-Fix] In some cases, the width of the columns of a Pagelayer Template while editing a post was not applied properly. This is fixed.
114
 
4
  Requires at least: 4.7
5
  Tested up to: 5.5
6
  Requires PHP: 5.5
7
+ Stable tag: 1.2.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.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.
119
+ * [Bug-Fix] In the accordion and collapse widget the active tab color was not working properly. This is fixed.
120
+ * [Bug-Fix] In certain cases, the Pagelayer editor was stuck at 90% due to a js error related to fonts. This is fixed.
121
+ * [Bug-Fix] The Modal widget has been further improved and added a max-height option for the modal container.
122
+ * [Bug-Fix] While editing a page/post if anyone clicked on a link outside the editable area, the page was redirected and changes were not saved. This is fixed.
123
+
124
  = 1.2.2 (August 11, 2020) =
125
  * [Bug-Fix] In some cases, the width of the columns of a Pagelayer Template while editing a post was not applied properly. This is fixed.
126