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

Version Description

(Feb 11, 2022) = * [Task] WordPress 5.9 adds support for capability queries in WP_User_Query. We have tested and made required changes. * [Bug-Fix] In certain cases, some style was not applied properly in the editor. This is fixed. * [Bug-Fix] In the primary menu widget, after the menu item title was changed, the menu title was not updated. This is fixed.

Download this release

Release Info

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

Code changes from version 1.6.3 to 1.6.4

css/pagelayer-editor.css CHANGED
@@ -322,6 +322,10 @@ transform: translateY(-50%);
322
 
323
  .pagelayer-rightbar .pagelayer-leftbar-toggle{
324
  left: -12px;
 
 
 
 
325
  direction: rtl;
326
  }
327
 
@@ -337,6 +341,7 @@ top: 0;
337
  bottom: 0;
338
  left: 0;
339
  right: 0;
 
340
  }
341
 
342
  /*.pagelayer-body-table{
@@ -441,17 +446,18 @@ padding:0px;
441
  cursor: move;
442
  color: #fff;
443
  font-weight: 600;
 
444
  }
445
 
446
  .pagelayer-elpd-close {
447
- float:right;
448
  padding-right:10px;
449
  cursor: pointer;
450
  margin: 0px;
451
- position: relative;
452
  right: 5px;
453
  color: #fff;
454
- font-weight: 600;
 
455
  }
456
 
457
  .pagelayer-elpd-body{
@@ -2272,12 +2278,13 @@ cursor: all-scroll;
2272
  }
2273
 
2274
  .pagelayer-logo{
2275
- font-size:20px;
2276
  font-weight: bold;
2277
  display: block;
2278
  text-align:center;
2279
  vertical-align:middle;
2280
  color:#fff;
 
2281
  }
2282
 
2283
  .pagelayer-logo-text{
@@ -2288,7 +2295,6 @@ vertical-align: super;
2288
  }
2289
 
2290
  .pagelayer-settings-icon{
2291
- float:right;
2292
  padding-right:10px;
2293
  cursor: pointer;
2294
  position: absolute;
@@ -2304,7 +2310,8 @@ position: absolute;
2304
  left: 5px;
2305
  top: 50%;
2306
  transform: translateY(-50%);
2307
- font-size:25px !important;
 
2308
  }
2309
 
2310
  .pagelayer-leftbar{
@@ -2602,6 +2609,52 @@ margin-right:5px;
2602
 
2603
  /* Pagelayer history end*/
2604
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2605
  /* Pagelayer settings*/
2606
 
2607
  .pagelayer-post-settings-holder{
@@ -2747,7 +2800,6 @@ margin-top: -5px;
2747
  }
2748
  /*Tooltip end*/
2749
 
2750
-
2751
  /* Add section modal*/
2752
  .pagelayer-add-section-modal-container{
2753
  position: fixed;
@@ -2781,6 +2833,85 @@ margin: auto;
2781
  position: relative;
2782
  }
2783
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2784
  /* width */
2785
  .pagelayer-add-section-modal::-webkit-scrollbar {
2786
  width: 7px;
322
 
323
  .pagelayer-rightbar .pagelayer-leftbar-toggle{
324
  left: -12px;
325
+ }
326
+
327
+ .pagelayer-rightbar:not(.pagelayer-leftbar-hidden) .pagelayer-leftbar-toggle,
328
+ .pagelayer-leftbar-hidden:not(.pagelayer-rightbar) .pagelayer-leftbar-toggle{
329
  direction: rtl;
330
  }
331
 
341
  bottom: 0;
342
  left: 0;
343
  right: 0;
344
+ border-right: 1px solid #c9d0d9;
345
  }
346
 
347
  /*.pagelayer-body-table{
446
  cursor: move;
447
  color: #fff;
448
  font-weight: 600;
449
+ width:76%;
450
  }
451
 
452
  .pagelayer-elpd-close {
 
453
  padding-right:10px;
454
  cursor: pointer;
455
  margin: 0px;
456
+ position: absolute;
457
  right: 5px;
458
  color: #fff;
459
+ top: 50%;
460
+ transform: translateY(-50%);
461
  }
462
 
463
  .pagelayer-elpd-body{
2278
  }
2279
 
2280
  .pagelayer-logo{
2281
+ font-size:18px;
2282
  font-weight: bold;
2283
  display: block;
2284
  text-align:center;
2285
  vertical-align:middle;
2286
  color:#fff;
2287
+ width:76%;
2288
  }
2289
 
2290
  .pagelayer-logo-text{
2295
  }
2296
 
2297
  .pagelayer-settings-icon{
 
2298
  padding-right:10px;
2299
  cursor: pointer;
2300
  position: absolute;
2310
  left: 5px;
2311
  top: 50%;
2312
  transform: translateY(-50%);
2313
+ font-size: 18px !important;
2314
+ color: #ffffff;
2315
  }
2316
 
2317
  .pagelayer-leftbar{
2609
 
2610
  /* Pagelayer history end*/
2611
 
2612
+ /* Pagelayer General options*/
2613
+ .pagelayer-general-options{
2614
+ color: #777;
2615
+ background-color: #FFFFFF;
2616
+ font-size: 14px;
2617
+ }
2618
+
2619
+ .pagelayer-general-options .pagelayer-option-holder{
2620
+ padding: 10px;
2621
+ border-radius: 4px;
2622
+ transition: all 0.1s;
2623
+ margin-bottom:4px;
2624
+ cursor: pointer;
2625
+ }
2626
+
2627
+ .pagelayer-general-options .pagelayer-option-holder i{
2628
+ margin: 0 10px;
2629
+ }
2630
+
2631
+ .pagelayer-general-options .pagelayer-option-holder:hover{
2632
+ color:#1a7fb0;
2633
+ background: #ebebeb;
2634
+ }
2635
+
2636
+ .pagelayer-general-options .pagelayer-option-holder:active{
2637
+ transform: scale(0.97);
2638
+ cursor: progress;
2639
+ }
2640
+
2641
+ .pagelayer-general-options .pagelayer-options-sections{
2642
+ padding: 10px;
2643
+ }
2644
+
2645
+ .pagelayer-general-options .pagelayer-options-sections:not(:last-child){
2646
+ border-bottom: 1px solid #ebebeb;
2647
+ }
2648
+
2649
+ .pagelayer-general-options h5{
2650
+ font-size: 11px;
2651
+ text-transform: uppercase;
2652
+ color: #777;
2653
+ margin: 15px 5px;
2654
+ }
2655
+
2656
+ /* Pagelayer General options end*/
2657
+
2658
  /* Pagelayer settings*/
2659
 
2660
  .pagelayer-post-settings-holder{
2800
  }
2801
  /*Tooltip end*/
2802
 
 
2803
  /* Add section modal*/
2804
  .pagelayer-add-section-modal-container{
2805
  position: fixed;
2833
  position: relative;
2834
  }
2835
 
2836
+ /* Add modal for editor*/
2837
+ .pagelayer-editor-modal{
2838
+ position:fixed;
2839
+ display:none;
2840
+ justify-content:center;
2841
+ align-items:center;
2842
+ top:0;
2843
+ left:0;
2844
+ width:100%;
2845
+ height:100%;
2846
+ z-index:9999;
2847
+ background-color:rgba(0, 0, 0, 0.3);
2848
+ }
2849
+
2850
+ .pagelayer-editor-modal *{
2851
+ box-sizing:border-box;
2852
+ padding:0;
2853
+ margin:0;
2854
+ }
2855
+
2856
+ .pagelayer-editor-modal-wrap{
2857
+ background-color: #FFF;
2858
+ border-radius:2px;
2859
+ width: 40%;
2860
+ box-shadow: 0 10px 10px rgb(0 0 0 / 25%);
2861
+ }
2862
+
2863
+ .pagelayer-editor-modal-header{
2864
+ display:flex;
2865
+ justify-content:space-between;
2866
+ align-items: center;
2867
+ padding: 20px 30px;
2868
+ border-bottom: 1px solid #ccc;
2869
+ }
2870
+
2871
+ .pagelayer-editor-modal-header i{
2872
+ font-size: 1.3em;
2873
+ cursor:pointer;
2874
+ }
2875
+
2876
+ .pagelayer-editor-modal-header i:hover{
2877
+ color: #3e8ef7;
2878
+ }
2879
+
2880
+ .pagelayer-editor-modal-body{
2881
+ padding: 0 25px;
2882
+ }
2883
+
2884
+ .pagelayer-edt-modal-block{
2885
+ margin: 10px;
2886
+ }
2887
+
2888
+ .pagelayer-edt-modal-block ul{
2889
+ padding:0;
2890
+ margin-bottom:10px;
2891
+ }
2892
+
2893
+ .pagelayer-edt-modal-block li{
2894
+ list-style-type:none;
2895
+ display:flex;
2896
+ flex-direction:row;
2897
+ justify-content:space-between;
2898
+ font-size:1.1em;
2899
+ padding: 10px 0;
2900
+ border-bottom: 1px solid #ccc;
2901
+ color: #282828;
2902
+ }
2903
+
2904
+ .pagelayer-keyboard-shortcut-keys{
2905
+ font-weight: bold;
2906
+ }
2907
+
2908
+ .pagelayer-keyboard-shortcut-keys > span{
2909
+ margin: 0 4px;
2910
+ background-color: #e8e8e8;
2911
+ padding: 5px 7px;
2912
+ border-radius: 3px;
2913
+ }
2914
+
2915
  /* width */
2916
  .pagelayer-add-section-modal::-webkit-scrollbar {
2917
  width: 7px;
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.6.3');
9
  define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
10
  define('PAGELAYER_SLUG', 'pagelayer');
11
  define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
@@ -744,7 +744,7 @@ var pagelayer_recaptch_lang = "'.(!empty($pagelayer_recaptch_lang) ? $pagelayer_
744
  // We need to handle global styles
745
  function pagelayer_global_styles(){
746
 
747
- global $pagelayer;
748
 
749
  $styles = '<style id="pagelayer-global-styles" type="text/css">'.PHP_EOL;
750
 
@@ -787,6 +787,87 @@ function pagelayer_global_styles(){
787
  $pxs = ['font-size', 'letter-spacing', 'word-spacing'];
788
  $arrays = ['padding', 'margin'];
789
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
790
  // Loop CSS settings
791
  foreach($pagelayer->css as $k => $v){
792
 
@@ -820,8 +901,8 @@ function pagelayer_global_styles(){
820
  //echo $key.' - '.$k;pagelayer_print($matches);
821
 
822
  $params = $pagelayer->css_settings[$key];
823
-
824
- $sel = empty($params['sel']) ? ($key == 'body' ? '' : $key) : $params['sel'];
825
 
826
  $style = 'body.pagelayer-body '.$sel.'{'.implode(';', $r)."}\n";
827
 
5
 
6
  define('PAGELAYER_BASE', plugin_basename(PAGELAYER_FILE));
7
  define('PAGELAYER_PRO_BASE', 'pagelayer-pro/pagelayer-pro.php');
8
+ define('PAGELAYER_VERSION', '1.6.4');
9
  define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
10
  define('PAGELAYER_SLUG', 'pagelayer');
11
  define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
744
  // We need to handle global styles
745
  function pagelayer_global_styles(){
746
 
747
+ global $pagelayer, $post;
748
 
749
  $styles = '<style id="pagelayer-global-styles" type="text/css">'.PHP_EOL;
750
 
787
  $pxs = ['font-size', 'letter-spacing', 'word-spacing'];
788
  $arrays = ['padding', 'margin'];
789
 
790
+ // Setup CSS as per post. This overright the global styles
791
+ foreach($pagelayer->css_settings as $k => $params){
792
+ foreach($pagelayer->screens as $sk => $sv){
793
+ $suffix = (!empty($sv) ? '_'.$sv : '');
794
+ $setting = empty($params['key']) ? 'pagelayer_'.$k.'_css_'.$post->post_type : $params['key'].'_'.$post->post_type;
795
+ $tmp = get_option($setting.$suffix);
796
+
797
+ if(empty($tmp)){
798
+ continue;
799
+ }
800
+
801
+ $pagelayer->css[$k.$suffix] = $tmp;
802
+ }
803
+ }
804
+
805
+ // If is not loaded then the pagelayer_parse_vars, pagelayer_css_render not working
806
+ if(empty($pagelayer->customizer_params)){
807
+ pagelayer_load_shortcodes();
808
+ }
809
+
810
+ // Customizer CSS
811
+ foreach($pagelayer->customizer_params as $prop => $param){
812
+
813
+ if(empty($param['customizer_css']) || empty($param['css'])){
814
+ continue;
815
+ }
816
+
817
+ if(!is_array($param['css'])){
818
+ $param['css'] = array($param['css']);
819
+ }
820
+
821
+ $customize_el = array();
822
+ $customize_el['atts'] = $pagelayer->customizer_mods;
823
+
824
+ // Get Image URL
825
+ $attachment = ($param['type'] == 'image') ? pagelayer_image(@$pagelayer->customizer_mods[$prop]) : '';
826
+
827
+ if(!empty($attachment)){
828
+ foreach($attachment as $k => $v){
829
+ $customize_el['tmp'][$prop.'-'.$k] = $v;
830
+ }
831
+ }
832
+
833
+ // Loop the modes and check for values
834
+ foreach($pagelayer->screens as $sk => $sv){
835
+
836
+ $suffix = (!empty($sv) ? '_'.$sv : '');
837
+ $M_prop = $prop.$suffix;
838
+
839
+ // Any value ?
840
+ if(empty($pagelayer->customizer_mods[$M_prop])){
841
+ continue;
842
+ }
843
+
844
+ // Loop through
845
+ foreach($param['css'] as $k => $v){
846
+
847
+ // Make the selector
848
+ $selector = (!is_numeric($k) && !empty($k) ? $k : 'body.pagelayer-body');
849
+
850
+ // Make the CSS
851
+ $customize_css = $selector.'{'. rtrim( trim( pagelayer_css_render($v, $pagelayer->customizer_mods[$M_prop], @$param['sep']) ), ';' ) .'}' ;
852
+
853
+ $customize_css = pagelayer_parse_vars($customize_css, $customize_el);
854
+
855
+ if($sk == 'tablet'){
856
+ $screen_style['tablet'] = $customize_css;
857
+ continue;
858
+ }
859
+
860
+ if($sk == 'mobile'){
861
+ $screen_style['mobile'] = $customize_css;
862
+ continue;
863
+ }
864
+
865
+ $styles .= $customize_css;
866
+ }
867
+
868
+ }
869
+ }
870
+
871
  // Loop CSS settings
872
  foreach($pagelayer->css as $k => $v){
873
 
901
  //echo $key.' - '.$k;pagelayer_print($matches);
902
 
903
  $params = $pagelayer->css_settings[$key];
904
+
905
+ $sel = !isset($params['sel']) ? ($key == 'body' ? '' : $key) : $params['sel'];
906
 
907
  $style = 'body.pagelayer-body '.$sel.'{'.implode(';', $r)."}\n";
908
 
js/pagelayer-editor.js CHANGED
@@ -849,7 +849,6 @@ function pagelayer_setup_drag(){
849
  // Do we have a parent ?
850
  var have_parent = function(Ele){
851
  var pOnId = pagelayer_get_parent(Ele);
852
- var onTag = pagelayer_tag(Ele);
853
 
854
  if(pagelayer_empty(pOnId) || tag == 'pl_col'){
855
  return;
@@ -4186,6 +4185,21 @@ function pagelayer_get_nav_items(jEle, _content){
4186
 
4187
  content = pagelayer_generate_sc(_navItem, true);
4188
  content = pagelayer_Base64.encode(content);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4189
  }else{
4190
  pagelayer_nav_items[postID] = tmp;
4191
  }
@@ -4228,6 +4242,21 @@ function pagelayer_update_nav_menu_data(){
4228
  });
4229
  }
4230
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4231
  // Save the post
4232
  function pagelayer_save(){
4233
 
@@ -4242,7 +4271,10 @@ function pagelayer_save(){
4242
 
4243
  // Update data or meta of the post
4244
  pagelayer_update_post_data();
4245
-
 
 
 
4246
  // Update nav menu
4247
  pagelayer_update_nav_menu_data();
4248
 
@@ -4374,6 +4406,11 @@ function pagelayer_generate_sc(selector, selfEle){
4374
  var final_tag = tag;
4375
  var closestEle = jEle.closest('.pagelayer-col-holder');
4376
 
 
 
 
 
 
4377
  // Define inner row | Note : Commented as we now have a new widget of type inner_row
4378
  /*if(tag == 'pl_row' && closestEle.length > 0 && closestEle.closest(pagelayer_editable).length > 0){
4379
  final_tag = 'pl_inner_row';
@@ -4566,6 +4603,7 @@ function pagelayer_leftbar(){
4566
  '<div id="pagelayer-history" class="pagelayer-leftbar-tab pagelayer-history"></div>'+
4567
  '<div id="pagelayer-post-settings" class="pagelayer-leftbar-tab pagelayer-post-settings"></div>'+
4568
  '<div id="pagelayer-navigator" class="pagelayer-leftbar-tab pagelayer-navigator"></div>'+
 
4569
  '</div>'+
4570
  '</div>';
4571
 
@@ -4723,6 +4761,17 @@ function pagelayer_leftbar(){
4723
  pagelayer.$$('.pagelayer-search-field').val('').trigger('input');
4724
  });
4725
 
 
 
 
 
 
 
 
 
 
 
 
4726
  };
4727
 
4728
  // Post setting holder
@@ -5330,9 +5379,9 @@ function pagelayer_bottombar(){
5330
  '</div>'+
5331
  '</div>'+
5332
  '<i class="pagelayer-mode-button pli pli-desktop"></i>'+
5333
- '<span data-tlite="'+pagelayer_l('Preview Changes')+'"><i class="pagelayer-preview pli pli-eye"></i></span>'+
5334
- '<span data-tlite="'+pagelayer_l('History and Revisions')+'"><i class="pagelayer-history-icon pli pli-history"></i></span>'+
5335
- '<span data-tlite="'+pagelayer_l('Navigator')+'"><i class="pagelayer-navigator-icon pli pli-tree"></i></span>'+
5336
  //'<span data-tlite="Close and Return to Admin Panel"><i class="pagelayer-close-button fa fa-close"></i></span>'+
5337
  '</div>'+
5338
  '</div>';
@@ -5426,6 +5475,114 @@ function pagelayer_bottombar(){
5426
  // Miscellaneuos Functions
5427
  ///////////////////////////////
5428
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5429
  // Setup navigator
5430
  function pagelayer_navigator_setup(){
5431
 
849
  // Do we have a parent ?
850
  var have_parent = function(Ele){
851
  var pOnId = pagelayer_get_parent(Ele);
 
852
 
853
  if(pagelayer_empty(pOnId) || tag == 'pl_col'){
854
  return;
4185
 
4186
  content = pagelayer_generate_sc(_navItem, true);
4187
  content = pagelayer_Base64.encode(content);
4188
+
4189
+ // Send data to save
4190
+ var allowed_post = ['title'];
4191
+
4192
+ for(var key in allowed_post){
4193
+
4194
+ var post_prop = allowed_post[key];
4195
+
4196
+ if(!(post_prop in tmp)){
4197
+ continue;
4198
+ }
4199
+
4200
+ pagelayer_nav_items[postID][post_prop] = tmp[post_prop]
4201
+ }
4202
+
4203
  }else{
4204
  pagelayer_nav_items[postID] = tmp;
4205
  }
4242
  });
4243
  }
4244
 
4245
+ // Save the customizer settings
4246
+ function pagelayer_update_customizer_settings(){
4247
+
4248
+ var tag = 'pl_customizer';
4249
+ var jEle = jQuery(pagelayer_editable+' [pagelayer-tag="'+tag+'"]');
4250
+
4251
+ if(jEle.length < 1){
4252
+ return;
4253
+ }
4254
+
4255
+ var tmp = pagelayer_data(jEle, true);
4256
+ pagelayer_ajax_post_data['pagelayer_customizer_options'] = JSON.stringify(tmp['atts']);
4257
+
4258
+ }
4259
+
4260
  // Save the post
4261
  function pagelayer_save(){
4262
 
4271
 
4272
  // Update data or meta of the post
4273
  pagelayer_update_post_data();
4274
+
4275
+ // Update Customizer Settings
4276
+ pagelayer_update_customizer_settings();
4277
+
4278
  // Update nav menu
4279
  pagelayer_update_nav_menu_data();
4280
 
4406
  var final_tag = tag;
4407
  var closestEle = jEle.closest('.pagelayer-col-holder');
4408
 
4409
+ // Skip to create shortcode to prevent save, allowed by tag
4410
+ if('skip_save' in pagelayer_shortcodes[tag] && !pagelayer_empty(pagelayer_shortcodes[tag]['skip_save'])){
4411
+ return;
4412
+ }
4413
+
4414
  // Define inner row | Note : Commented as we now have a new widget of type inner_row
4415
  /*if(tag == 'pl_row' && closestEle.length > 0 && closestEle.closest(pagelayer_editable).length > 0){
4416
  final_tag = 'pl_inner_row';
4603
  '<div id="pagelayer-history" class="pagelayer-leftbar-tab pagelayer-history"></div>'+
4604
  '<div id="pagelayer-post-settings" class="pagelayer-leftbar-tab pagelayer-post-settings"></div>'+
4605
  '<div id="pagelayer-navigator" class="pagelayer-leftbar-tab pagelayer-navigator"></div>'+
4606
+ '<div id="pagelayer-general-options" class="pagelayer-leftbar-tab pagelayer-general-options"></div>'+
4607
  '</div>'+
4608
  '</div>';
4609
 
4761
  pagelayer.$$('.pagelayer-search-field').val('').trigger('input');
4762
  });
4763
 
4764
+ // Pagelayer General options
4765
+ pagelayer.$$('.pagelayer-options-icon ').click(function(){
4766
+ pagelayer.$$('.pagelayer-elpd-header').show().find('.pagelayer-elpd-title').text(pagelayer_l('general_options'));
4767
+ pagelayer.$$('.pagelayer-logo').hide();
4768
+
4769
+ // Setup General options
4770
+ pagelayer_setup_general_options();
4771
+
4772
+ pagelayer_leftbar_tab('pagelayer-general-options');
4773
+ pagelayer_active = {};
4774
+ });
4775
  };
4776
 
4777
  // Post setting holder
5379
  '</div>'+
5380
  '</div>'+
5381
  '<i class="pagelayer-mode-button pli pli-desktop"></i>'+
5382
+ '<span data-tlite="'+pagelayer_l('preview_changes')+'"><i class="pagelayer-preview pli pli-eye"></i></span>'+
5383
+ '<span data-tlite="'+pagelayer_l('historyand_revisions')+'"><i class="pagelayer-history-icon pli pli-history"></i></span>'+
5384
+ '<span data-tlite="'+pagelayer_l('navigator')+'"><i class="pagelayer-navigator-icon pli pli-tree"></i></span>'+
5385
  //'<span data-tlite="Close and Return to Admin Panel"><i class="pagelayer-close-button fa fa-close"></i></span>'+
5386
  '</div>'+
5387
  '</div>';
5475
  // Miscellaneuos Functions
5476
  ///////////////////////////////
5477
 
5478
+ // Setup General options
5479
+ function pagelayer_setup_general_options(){
5480
+
5481
+ var holder = pagelayer.$$('.pagelayer-general-options');
5482
+
5483
+ if(holder.children().length > 0){
5484
+ return;
5485
+ }
5486
+
5487
+ // TODO: To create this HTML get Array form php
5488
+ var html = '<div class="pagelayer-options-sections pagelayer-hidden">'+
5489
+ '<h5>'+ pagelayer_l('general_options') +'</h5>'+
5490
+ '<div class="pagelayer-option-holder pagelayer-open-customizer">'+
5491
+ '<i class="fas fa-paint-brush"></i>'+
5492
+ '<span>'+ pagelayer_l('customize') +'</span>'+
5493
+ '</div>'+
5494
+ '</div>'+
5495
+ '<div class="pagelayer-options-sections">'+
5496
+ '<h5>'+ pagelayer_l('navigator_options') +'</h5>'+
5497
+ '<div class="pagelayer-option-holder pagelayer-options-history-icon">'+
5498
+ '<i class="pli pli-history"></i>'+
5499
+ '<span>'+ pagelayer_l('historyand_revisions') +'</span>'+
5500
+ '</div>'+
5501
+ '<div class="pagelayer-option-holder pagelayer-options-navigator-icon">'+
5502
+ '<i class="pli pli-tree"></i>'+
5503
+ '<span>'+ pagelayer_l('navigator') +'</span>'+
5504
+ '</div>'+
5505
+ '<div class="pagelayer-option-holder pagelayer-options-preview">'+
5506
+ '<i class="pli pli-eye"></i>'+
5507
+ '<span>'+ pagelayer_l('preview_changes') +'</span>'+
5508
+ '</div>'+
5509
+ '</div>'+
5510
+ '<div class="pagelayer-options-sections">'+
5511
+ '<h5>'+ pagelayer_l('tools') +'</h5>'+
5512
+ '<div class="pagelayer-option-holder pagelayer-open-help">'+
5513
+ '<i class="fas fa-question"></i>'+
5514
+ '<span>'+ pagelayer_l('help') +'</span>'+
5515
+ '</div>'+
5516
+ '<div class="pagelayer-option-holder pagelayer-open-keyboard-shortcuts">'+
5517
+ '<i class="far fa-keyboard"></i>'+
5518
+ '<span>'+ pagelayer_l('keyboard_shortcuts') +'</span>'+
5519
+ '</div>'+
5520
+ '</div>';
5521
+
5522
+ holder.html(html);
5523
+
5524
+ // Open customizer settings
5525
+ holder.find('.pagelayer-open-customizer').click(function(){
5526
+
5527
+ // Is there a customizer settings ?
5528
+ var jEle = jQuery(pagelayer_editable+' [pagelayer-tag="pl_customizer"]');
5529
+
5530
+ // Could not find
5531
+ if(jEle.length < 1){
5532
+ jEle = pagelayer_create_sc('pl_customizer');
5533
+ var id = pagelayer_id(jEle);
5534
+ jQuery(pagelayer_editable).prepend(jEle);
5535
+ pagelayer_element_setup('[pagelayer-id='+id+']', true);
5536
+ pagelayer_set_atts(jEle, pagelayer_customizer_values);
5537
+ }
5538
+
5539
+ jEle.click();
5540
+
5541
+ });
5542
+
5543
+ // Open help / support link
5544
+ holder.find('.pagelayer-open-help').click(function(){
5545
+ window.open(pagelayer_support_url, '_blank');
5546
+ });
5547
+
5548
+ // Show Pagelayer History
5549
+ holder.find('.pagelayer-options-history-icon').click(function(){
5550
+ pagelayer.$$('.pagelayer-bottombar-holder .pagelayer-history-icon').click();
5551
+ });
5552
+
5553
+ // Show Pagelayer Navigator
5554
+ holder.find('.pagelayer-options-navigator-icon').click(function(){
5555
+ pagelayer.$$('.pagelayer-bottombar-holder .pagelayer-navigator-icon').click();
5556
+ });
5557
+
5558
+ // Show Pagelayer Preview
5559
+ holder.find('.pagelayer-options-preview').click(function(){
5560
+ pagelayer.$$('.pagelayer-bottombar-holder .pagelayer-preview').click();
5561
+ });
5562
+
5563
+ // Show keyboard shortcut modal
5564
+ holder.find('.pagelayer-open-keyboard-shortcuts').click(function() {
5565
+
5566
+ var modal = pagelayer.$$('.pagelayer-shortcuts-modal');
5567
+ modal.css('display','flex');
5568
+
5569
+ modal.find('.pagelayer-editor-modal-close-icon').unbind('click');
5570
+ modal.find('.pagelayer-editor-modal-close-icon').click(function(){
5571
+ modal.hide();
5572
+ });
5573
+
5574
+ modal.unbind('click');
5575
+ modal.on('click', function(e){
5576
+
5577
+ if(e.target != this) {
5578
+ return;
5579
+ }
5580
+
5581
+ modal.hide();
5582
+ });
5583
+ });
5584
+ }
5585
+
5586
  // Setup navigator
5587
  function pagelayer_navigator_setup(){
5588
 
js/widgets.js CHANGED
@@ -1103,7 +1103,6 @@ function pagelayer_render_end_pl_wp_menu(el){
1103
  });
1104
 
1105
  pagelayer_render_menu_par = render_ref;
1106
-
1107
 
1108
  pagelayer_primary_menu(el.$);
1109
  }
1103
  });
1104
 
1105
  pagelayer_render_menu_par = render_ref;
 
1106
 
1107
  pagelayer_primary_menu(el.$);
1108
  }
languages/en.json CHANGED
@@ -1961,5 +1961,22 @@
1961
  "hide_text" : "Hide Text",
1962
  "column_menu" : "Column Menu",
1963
  "blend_mode" : "Blend Mode",
1964
- "menu_type_desc" : "If you change it from Mega Menu to another, the Mega Menu content will be deleted on update post."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1965
  }
1961
  "hide_text" : "Hide Text",
1962
  "column_menu" : "Column Menu",
1963
  "blend_mode" : "Blend Mode",
1964
+ "menu_type_desc" : "If you change it from Mega Menu to another, the Mega Menu content will be deleted on update post.",
1965
+ "general_options" : "General Options",
1966
+ "customize" : "Customize",
1967
+ "navigator" : "Navigator",
1968
+ "preview_changes" : "Preview Changes",
1969
+ "keyboard_shortcuts" : "Keyboard Shortcuts",
1970
+ "help" : "Help",
1971
+ "historyand_revisions" : "History and Revisions",
1972
+ "save_post" : "Save Post",
1973
+ "undo" : "Undo",
1974
+ "redo" : "Redo",
1975
+ "copy_widget" : "Copy active widget",
1976
+ "paste_widget" : "Paste copied widget",
1977
+ "duplicate_widget" : "Duplicate active widget",
1978
+ "tools" : "Tools",
1979
+ "navigator_options" : "Navigator Options",
1980
+ "delete_widget" : "Delete active widget",
1981
+ "general_shortcuts" : "General Shortcuts"
1982
  }
main/ajax.php CHANGED
@@ -354,6 +354,18 @@ function pagelayer_save_content(){
354
  }
355
  }
356
 
 
 
 
 
 
 
 
 
 
 
 
 
357
  pagelayer_json_output($msg);
358
 
359
  }
@@ -1362,7 +1374,7 @@ function pagelayer_search_ids() {
1362
 
1363
  case 'author':
1364
  $query_params = [
1365
- 'who' => 'authors',
1366
  'fields' => [
1367
  'ID',
1368
  'display_name',
@@ -1372,7 +1384,13 @@ function pagelayer_search_ids() {
1372
  'user_login',
1373
  'user_nicename',
1374
  ],
1375
- ];
 
 
 
 
 
 
1376
 
1377
  $user_query = new \WP_User_Query( $query_params );
1378
 
354
  }
355
  }
356
 
357
+ // Save Customizer data
358
+ if(!empty($_REQUEST['pagelayer_customizer_options']) && current_user_can('edit_theme_options')){
359
+
360
+ $customizer_options = wp_unslash($_REQUEST['pagelayer_customizer_options']);
361
+ $customizer_options = json_decode($customizer_options, true);
362
+
363
+ // Add current post type
364
+ $customizer_options['pagelayer_current_post_type'] = $_post->post_type;
365
+
366
+ pagelayer_save_customizer_options($customizer_options);
367
+ }
368
+
369
  pagelayer_json_output($msg);
370
 
371
  }
1374
 
1375
  case 'author':
1376
  $query_params = [
1377
+ 'capability' => array( 'edit_posts' ),
1378
  'fields' => [
1379
  'ID',
1380
  'display_name',
1384
  'user_login',
1385
  'user_nicename',
1386
  ],
1387
+ ];
1388
+
1389
+ // Capability queries were only introduced in WP 5.9.
1390
+ if( version_compare( $GLOBALS['wp_version'], '5.9-alpha', '<' ) ){
1391
+ $args['who'] = 'authors';
1392
+ unset( $args['capability'] );
1393
+ }
1394
 
1395
  $user_query = new \WP_User_Query( $query_params );
1396
 
main/class.php CHANGED
@@ -83,8 +83,14 @@ class PageLayer{
83
  var $css = array();
84
  var $css_settings = array();
85
 
 
 
 
 
86
  var $data_attr = array();
87
  var $sc_audio_enqueued = 0;
 
 
88
 
89
  function __construct() {
90
 
@@ -113,11 +119,13 @@ class PageLayer{
113
  'h4' => ['name' => 'H4', 'key' => 'pagelayer_h4_typography'],
114
  'h5' => ['name' => 'H5', 'key' => 'pagelayer_h5_typography'],
115
  'h6' => ['name' => 'H6', 'key' => 'pagelayer_h6_typography'],
116
- 'b' => ['name' => 'Bold', 'sel' => 'strong, b'],
117
- 'i' => ['name' => 'Italics', 'sel' => 'em, i'],
118
  ];
119
 
120
  $this->system_fonts = ['Arial', 'Arial Black', 'Courier', 'Georgia', 'Helvetica', 'impact', 'Tahoma', 'Times New Roman', 'Trebuchet MS', 'Verdana'];
 
 
121
  }
122
 
123
  function load_extra_languages(){
83
  var $css = array();
84
  var $css_settings = array();
85
 
86
+ // Customizer options
87
+ var $customizer_mods = array();
88
+ var $customizer_params = array();
89
+
90
  var $data_attr = array();
91
  var $sc_audio_enqueued = 0;
92
+
93
+ var $support = 'http://pagelayer.deskuss.com';
94
 
95
  function __construct() {
96
 
119
  'h4' => ['name' => 'H4', 'key' => 'pagelayer_h4_typography'],
120
  'h5' => ['name' => 'H5', 'key' => 'pagelayer_h5_typography'],
121
  'h6' => ['name' => 'H6', 'key' => 'pagelayer_h6_typography'],
122
+ 'b' => ['name' => 'Bold', 'sel' => 'strong, body.pagelayer-body b'],
123
+ 'i' => ['name' => 'Italics', 'sel' => 'em, body.pagelayer-body i'],
124
  ];
125
 
126
  $this->system_fonts = ['Arial', 'Arial Black', 'Courier', 'Georgia', 'Helvetica', 'impact', 'Tahoma', 'Times New Roman', 'Trebuchet MS', 'Verdana'];
127
+ $this->customizer_mods = get_option('pagelayer_customizer_mods', []);
128
+ $this->support = (defined('SITEPAD') ? 'http://sitepad.deskuss.com' : $this->support);
129
  }
130
 
131
  function load_extra_languages(){
main/functions.php CHANGED
@@ -787,6 +787,11 @@ function pagelayer_add_shortcode($tag, $params = array()){
787
  continue;
788
  }
789
 
 
 
 
 
 
790
  foreach($props as $prop => $param){
791
 
792
  // Set default values to export for JS
@@ -1950,13 +1955,19 @@ function pagelayer_get_post_term(){
1950
  function pagelayer_get_post_author(){
1951
 
1952
  $args = [
1953
- 'who' => 'authors',
1954
  'fields' => [
1955
  'ID',
1956
  'display_name',
1957
  'user_nicename',
1958
  ]
1959
  ];
 
 
 
 
 
 
1960
 
1961
  $authors = new \WP_User_Query( $args );
1962
 
@@ -3174,4 +3185,238 @@ function pagelayer_save_nav_menu_items($items){
3174
  $post->meta_input = $meta_input;
3175
  wp_update_post($post);
3176
  }
3177
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
787
  continue;
788
  }
789
 
790
+ // Save customizer params
791
+ if( $tag == 'pl_customizer' ){
792
+ $pagelayer->customizer_params = array_merge($pagelayer->customizer_params, $props);
793
+ }
794
+
795
  foreach($props as $prop => $param){
796
 
797
  // Set default values to export for JS
1955
  function pagelayer_get_post_author(){
1956
 
1957
  $args = [
1958
+ 'capability' => array( 'edit_posts' ),
1959
  'fields' => [
1960
  'ID',
1961
  'display_name',
1962
  'user_nicename',
1963
  ]
1964
  ];
1965
+
1966
+ // Capability queries were only introduced in WP 5.9.
1967
+ if( version_compare( $GLOBALS['wp_version'], '5.9-alpha', '<' ) ){
1968
+ $args['who'] = 'authors';
1969
+ unset( $args['capability'] );
1970
+ }
1971
 
1972
  $authors = new \WP_User_Query( $args );
1973
 
3185
  $post->meta_input = $meta_input;
3186
  wp_update_post($post);
3187
  }
3188
+ }
3189
+
3190
+ // Update customizer options
3191
+ function pagelayer_save_customizer_options($customizer_options){
3192
+ global $pagelayer;
3193
+
3194
+ // To load customizer params array
3195
+ if(empty($pagelayer->customizer_params)){
3196
+ pagelayer_load_shortcodes();
3197
+ }
3198
+
3199
+ $customizer_options = apply_filters( 'pagelayer_save_customizer_options', $customizer_options );
3200
+ $customizer_data = array();
3201
+ $customizer_option_data = array();
3202
+
3203
+ foreach($pagelayer->customizer_params as $ck => $cv){
3204
+ foreach($pagelayer->screens as $sk => $sv){
3205
+
3206
+ $screen = (!empty($sv) ? '_'.$sv : '');
3207
+ $screen_key = $ck.$screen;
3208
+
3209
+ // Save to pagelayer customizer mods
3210
+ if( empty($cv['option']) ){
3211
+ if( isset($customizer_options[$screen_key])){
3212
+ $customizer_data[$screen_key] = $customizer_options[$screen_key];
3213
+ }
3214
+ continue;
3215
+ }
3216
+
3217
+ $option_key = $cv['option'].$screen;
3218
+
3219
+ // Update option
3220
+ if( isset($customizer_options[$screen_key] ) ) {
3221
+ update_option( $option_key, $customizer_options[$screen_key]);
3222
+ continue;
3223
+ }
3224
+
3225
+ delete_option($option_key);
3226
+ }
3227
+ }
3228
+
3229
+ // Set Typography settings for global and current post type
3230
+ $posttype=array(
3231
+ '' => '', // Make this empty for global values
3232
+ 'current' => $customizer_options['pagelayer_current_post_type']
3233
+ );
3234
+
3235
+ $typo = ['font-family', 'font-size', 'font-style', 'font-weight', 'font-variant', 'decoration-line', 'line-height', 'text-transform', 'text-spacing', 'word-spacing'];
3236
+
3237
+ foreach($posttype as $type => $tv){
3238
+
3239
+ foreach($pagelayer->css_settings as $set => $params){
3240
+
3241
+ foreach($pagelayer->screens as $sk => $sv){
3242
+
3243
+ $screen = (!empty($sv) ? '_'.$sv : '');
3244
+ $post_type = (!empty($tv) ? '_'.$tv : '');
3245
+ $post_key = (!empty($type) ? $type.'_' : '');
3246
+ $post_key_set = $post_key.$set;
3247
+
3248
+ // Create key as per customizer shortcode
3249
+ $key = $post_key_set.$screen;
3250
+
3251
+ // Create option keys for the global and current post type
3252
+ $option_setting = empty($params['key']) ? 'pagelayer_'.$set.'_css'.$post_type : $params['key'].$post_type;
3253
+
3254
+ $props = array(
3255
+ 'color' => $post_key_set.'_color'.$screen,
3256
+ 'padding' => $post_key_set.'_padding'.$screen,
3257
+ 'margin' => $post_key_set.'_margin'.$screen,
3258
+ 'background-color' => $post_key_set.'_background_color'.$screen,
3259
+ );
3260
+
3261
+ $globalsetting = array();
3262
+
3263
+ // Set Typography
3264
+ if(isset($customizer_options[$key])){
3265
+ foreach($customizer_options[$key] as $k => $v){
3266
+ if($v == 'Default' || empty($v)){
3267
+ unset($customizer_options[$key][$k]);
3268
+ }
3269
+
3270
+ // For sidebar, width default should not be saved
3271
+ if($set == 'sidebar' && $k == 'width' && $v == 20){
3272
+ unset($customizer_options[$key][$k]);
3273
+ }
3274
+
3275
+ $globalsetting[$key][$typo[$k]] = $customizer_options[$key][$k];
3276
+ unset($customizer_options[$key][$k]);
3277
+ }
3278
+ }
3279
+
3280
+ // Set other props with typography
3281
+ foreach($props as $pk => $pv){
3282
+
3283
+ if(!isset($customizer_options[$pv])){
3284
+ continue;
3285
+ }
3286
+
3287
+ $globalsetting[$key][$pk] = $customizer_options[$pv];
3288
+ unset($customizer_options[$pv]);
3289
+
3290
+ }
3291
+
3292
+ // Are we to save ?
3293
+ if(!empty($globalsetting[$key])){
3294
+ update_option($option_setting.$screen, $globalsetting[$key]);
3295
+ }else{
3296
+ delete_option($option_setting.$screen);
3297
+ }
3298
+
3299
+ }
3300
+
3301
+ }
3302
+ }
3303
+
3304
+ $customizer_data = apply_filters( 'pagelayer_customizer_options', $customizer_data, $customizer_options);
3305
+
3306
+ update_option('pagelayer_customizer_mods', $customizer_data);
3307
+ }
3308
+
3309
+ // Get customizer options values
3310
+ // return array to set customizer block attributes
3311
+ function pagelayer_get_customizer_options(){
3312
+ global $pagelayer, $post;
3313
+
3314
+ $options = array();
3315
+
3316
+ // To load customizer params array
3317
+ if(empty($pagelayer->customizer_params)){
3318
+ pagelayer_load_shortcodes();
3319
+ }
3320
+
3321
+ // Get values form options
3322
+ foreach($pagelayer->customizer_params as $ck => $cv){
3323
+
3324
+ if( empty($cv['option']) ){
3325
+ continue;
3326
+ }
3327
+
3328
+ $screens = array('desktop' => '');
3329
+
3330
+ if( !empty($cv['screen']) ){
3331
+ $screens = $pagelayer->screens;
3332
+ }
3333
+
3334
+ foreach($screens as $sk => $sv){
3335
+
3336
+ $screen = (!empty($sv) ? '_'.$sv : '');
3337
+ $screen_key = $cv['option'].$screen;
3338
+ $screen_ck = $ck.$screen;
3339
+
3340
+ // Get option value
3341
+ $c_option = get_option($screen_key);
3342
+
3343
+ if(empty($c_option)){
3344
+ continue;
3345
+ }
3346
+
3347
+ $options[$screen_ck] = $c_option;
3348
+ }
3349
+ }
3350
+
3351
+
3352
+ // Get values from pagelayer mods
3353
+ $mods = get_option('pagelayer_customizer_mods');
3354
+
3355
+ if(!empty($mods)){
3356
+ $options = array_merge($options, $mods);
3357
+ }
3358
+
3359
+ $posttype=array(
3360
+ '' => '',
3361
+ 'current' => $post->post_type
3362
+ );
3363
+
3364
+ $typo = ['font-family', 'font-size', 'font-style', 'font-weight', 'font-variant', 'decoration-line', 'line-height', 'text-transform', 'text-spacing', 'word-spacing'];
3365
+
3366
+ foreach($posttype as $type => $tv){
3367
+
3368
+ foreach($pagelayer->css_settings as $set => $params){
3369
+
3370
+ foreach($pagelayer->screens as $sk => $sv){
3371
+
3372
+ $screen = (!empty($sv) ? '_'.$sv : '');
3373
+ $postprefix = (!empty($tv) ? '_'.$tv : '');
3374
+ $postk = (!empty($type) ? $type.'_' : '');
3375
+ $post_key_set = $postk.$set;
3376
+
3377
+ // Create key as per customizer shortcode
3378
+ $key = $post_key_set.$screen;
3379
+
3380
+ // Create option keys for the global and current post type
3381
+ $setting = empty($params['key']) ? 'pagelayer_'.$set.'_css'.$postprefix : $params['key'].$postprefix;
3382
+
3383
+ $props = array(
3384
+ 'color' => $post_key_set.'_color'.$screen,
3385
+ 'padding' => $post_key_set.'_padding'.$screen,
3386
+ 'margin' => $post_key_set.'_margin'.$screen,
3387
+ 'background-color' => $post_key_set.'_background_color'.$screen,
3388
+ );
3389
+
3390
+ $optarray = get_option($setting.$screen);
3391
+
3392
+ if(!empty($optarray)){
3393
+
3394
+ // Get Typography
3395
+ foreach($typo as $tk => $tv){
3396
+
3397
+ $tval = '';
3398
+
3399
+ if(isset($optarray[$tv])){
3400
+ $tval = $optarray[$tv];
3401
+ }
3402
+
3403
+ $options[$key][$tk] = $tval;
3404
+ }
3405
+
3406
+ foreach($props as $pk => $pv){
3407
+ if(empty( $optarray[$pk])){
3408
+ continue;
3409
+ }
3410
+
3411
+ $options[$pv] = $optarray[$pk];
3412
+ }
3413
+ }
3414
+ }
3415
+ }
3416
+ }
3417
+
3418
+ $options = apply_filters( 'pagelayer_get_customizer_options', $options);
3419
+
3420
+ return $options;
3421
+ }
3422
+
main/live-body.php CHANGED
@@ -52,6 +52,18 @@ global $post, $pagelayer;
52
  $body_class .= ' sitepad-body';
53
  }
54
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  echo '
56
  <html>
57
  <head>
@@ -89,7 +101,7 @@ text-decoration:none;
89
  <div class="pagelayer-errorBox-resolve">
90
  <p>'.__pl('error_submitting').'</p>
91
  <button type="button" class="pagelayer-errorBox-copy" onclick="pagelayer_copy_error(event)">'.__pl('copy').'</button>
92
- <a type="button" class="pagelayer-errorBox-support" href="'. (defined('SITEPAD') ? 'http://sitepad.deskuss.com' : 'http://pagelayer.deskuss.com' ) .'" target="_bank">'.__pl('support').'</a>
93
  </div>
94
  </div>
95
  <div id="pagelayer-loader-wrapper">
@@ -123,13 +135,13 @@ text-decoration:none;
123
  </tr>
124
  <tr height="45">
125
  <td class="pagelayer-topbar-holder" valign="middle" align="center">
 
126
  <div class="pagelayer-elpd-header" style="display:none">
127
  <div class="pagelayer-elpd-close"><i class="pli pli-cross" aria-hidden="true"></i></div>
128
  <div class="pagelayer-elpd-title pagelayer-topbar-mover">Edit</div>
129
  </div>
130
  <div class="pagelayer-logo">
131
- <span class="pagelayer-options-icon pli pli-menu" style="display:none"></span>
132
- <img src="'.$pagelayer->LOGO.'" width="32" /><span class="pagelayer-logo-text pagelayer-topbar-mover">'.$pagelayer->BRAND_TEXT.(defined('PAGELAYER_PREMIUM') && strtolower($pagelayer->BRAND_TEXT) == 'pagelayer' ? '<sup style="margin: 3px; font-size: 12px; letter-spacing: 1px; font-family: "Roboto";">Pro</sup>' : '').'</span>
133
  <span class="pagelayer-settings-icon pli pli-service" aria-hidden="true"></span>
134
  </div>
135
  </td>
@@ -228,6 +240,42 @@ function pagelayer_copy_error(){
228
  }
229
 
230
  </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
  </body>';
232
 
233
  die();
52
  $body_class .= ' sitepad-body';
53
  }
54
 
55
+ $shortcut_groups = [
56
+ 'general_shortcuts' => [
57
+ 'undo' => 'Ctrl+Z',
58
+ 'redo' => 'Ctrl+Y',
59
+ 'save_post' => 'Ctrl+S',
60
+ 'copy_widget' => 'Ctrl+C',
61
+ 'paste_widget' => 'Ctrl+V',
62
+ 'duplicate_widget' => 'Ctrl+D',
63
+ 'delete_widget' => 'Delete'
64
+ ]
65
+ ];
66
+
67
  echo '
68
  <html>
69
  <head>
101
  <div class="pagelayer-errorBox-resolve">
102
  <p>'.__pl('error_submitting').'</p>
103
  <button type="button" class="pagelayer-errorBox-copy" onclick="pagelayer_copy_error(event)">'.__pl('copy').'</button>
104
+ <a type="button" class="pagelayer-errorBox-support" href="'. $pagelayer->support .'" target="_bank">'.__pl('support').'</a>
105
  </div>
106
  </div>
107
  <div id="pagelayer-loader-wrapper">
135
  </tr>
136
  <tr height="45">
137
  <td class="pagelayer-topbar-holder" valign="middle" align="center">
138
+ <span class="pagelayer-options-icon pli pli-menu"></span>
139
  <div class="pagelayer-elpd-header" style="display:none">
140
  <div class="pagelayer-elpd-close"><i class="pli pli-cross" aria-hidden="true"></i></div>
141
  <div class="pagelayer-elpd-title pagelayer-topbar-mover">Edit</div>
142
  </div>
143
  <div class="pagelayer-logo">
144
+ <img src="'.$pagelayer->LOGO.'" width="28" /><span class="pagelayer-logo-text pagelayer-topbar-mover">'.$pagelayer->BRAND_TEXT.(defined('PAGELAYER_PREMIUM') && strtolower($pagelayer->BRAND_TEXT) == 'pagelayer' ? '<sup style="margin: 3px; font-size: 12px; letter-spacing: 1px; font-family: "Roboto";">Pro</sup>' : '').'</span>
 
145
  <span class="pagelayer-settings-icon pli pli-service" aria-hidden="true"></span>
146
  </div>
147
  </td>
240
  }
241
 
242
  </script>
243
+
244
+ <div class="pagelayer-editor-modal pagelayer-shortcuts-modal">
245
+ <div class="pagelayer-editor-modal-wrap">
246
+ <div class="pagelayer-editor-modal-header">
247
+ <h2>'.__pl('keyboard_shortcuts').'</h2>
248
+ <span class="pagelayer-editor-modal-close-icon"><i class="fas fa-times"></i></span>
249
+ </div>
250
+ <div class="pagelayer-editor-modal-body">';
251
+ foreach($shortcut_groups as $grp_name => $group){
252
+
253
+ if(empty($group)) {
254
+ return;
255
+ }
256
+
257
+ echo '<div class="pagelayer-edt-modal-block">'. (!empty($grp_name) ? '<h3>'.__pl($grp_name).'</h3>' :'' ) .'<ul>';
258
+
259
+ foreach($group as $desc => $shortcut) {
260
+ echo '<li><span class="pagelayer-keyboard-shortcut-desc">'.__pl($desc).'</span>
261
+ <span class="pagelayer-keyboard-shortcut-keys">';
262
+
263
+ //Considering the whole shortcut as a single key
264
+ $key = '<span>'.$shortcut.'</span>';
265
+
266
+ //replacing "+" and "," from the string to put it inside <span>
267
+ $key = preg_replace('/\+/', '</span> + <span>', $key);
268
+ $key = preg_replace('/\,/', '</span><span style="display:block; margin-top:10px;">', $key);
269
+
270
+ echo $key.'</span></li>';
271
+ }
272
+
273
+ echo '</ul></div>';
274
+ }
275
+
276
+ echo '</div>
277
+ </div>
278
+ </div>
279
  </body>';
280
 
281
  die();
main/live.php CHANGED
@@ -174,7 +174,9 @@ pagelayer_shortcodes.pl_post_props.params.post_author.list = '.json_encode(pagel
174
  pagelayer_shortcodes.pl_post_props.pageParent.post_parent.list = '.json_encode(pagelayer_parent_post_prop($post)).';
175
  pagelayer_gmaps_key = "'.get_option('pagelayer-gmaps-api-key').'";
176
  pagelayer_ajax_post_data = {};
177
- pagelayer_menus_items_list = '.json_encode($pagelayer_menus_items_list).';';
 
 
178
 
179
  if(defined('PAGELAYER_PREMIUM')){
180
  echo 'pagelayer_shortcodes.pl_popup.advance_options.popup_cookie_name.default = "popup_cookie_'.rand(100, 999).'";';
174
  pagelayer_shortcodes.pl_post_props.pageParent.post_parent.list = '.json_encode(pagelayer_parent_post_prop($post)).';
175
  pagelayer_gmaps_key = "'.get_option('pagelayer-gmaps-api-key').'";
176
  pagelayer_ajax_post_data = {};
177
+ pagelayer_menus_items_list = '.json_encode($pagelayer_menus_items_list).';
178
+ pagelayer_customizer_values = '.json_encode(pagelayer_get_customizer_options()).';
179
+ pagelayer_support_url = "'.$pagelayer->support .'";';
180
 
181
  if(defined('PAGELAYER_PREMIUM')){
182
  echo 'pagelayer_shortcodes.pl_popup.advance_options.popup_cookie_name.default = "popup_cookie_'.rand(100, 999).'";';
main/shortcodes.php CHANGED
@@ -9652,6 +9652,1681 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_post_props', array(
9652
  ),
9653
  )
9654
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9655
 
9656
  ////////////////////////
9657
  // WordPress Group
9652
  ),
9653
  )
9654
  );
9655
+ /*
9656
+ $pagelayer->customizer_styles_options = array(
9657
+ 'params' => __pl('Site Identity'),
9658
+ 'breakpoint' => __pl('BreakPoints'),
9659
+ 'global' => __pl('Global Settings'),
9660
+ 'post_global' => __pl('Current Post Type Settings'),
9661
+ 'global_background' => __pl('Global Background'),
9662
+ 'global_button' => __pl('Global Buttons Style'),
9663
+ );
9664
+
9665
+ if(class_exists('WooCommerce')){
9666
+ $pagelayer->customizer_styles_options['woocommerce'] = __pl('woocommerce');
9667
+ }
9668
+
9669
+ // Customizer Settings
9670
+ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_customizer', array(
9671
+ 'name' => __pl('Customizer'),
9672
+ 'group' => 'other',
9673
+ 'overide_css_selector' => 'body',
9674
+ 'hide_active' => 1,
9675
+ 'skip_save' => 1,
9676
+ 'skip_props_cat_type' => ['product' => ['custom_hf_code']],
9677
+ 'skip_props_cat' => ['ele_bg_styles','ele_styles','border_styles','font_style','animation_styles','motion_effects','responsive_styles','attributes','custom_styles','position_styles', 'animation_styles', 'responsive_styles', 'motion_effects'],
9678
+ 'skip_props' => ['ele_zindex', 'font_family', 'ele_shadow', 'border_shadow_hover', 'hide_desktop', 'hide_tablet', 'hide_mobile'],
9679
+ 'params' => array(
9680
+ 'site_name' => array(
9681
+ 'type' => 'text',
9682
+ 'label' => __pl('Site Name'),
9683
+ 'option' => 'blogname',
9684
+ ),
9685
+ 'site_description' => array(
9686
+ 'type' => 'text',
9687
+ 'label' => __pl('Site Description'),
9688
+ 'option' => 'blogdescription',
9689
+ ),
9690
+ 'site_logo' => array(
9691
+ 'type' => 'image',
9692
+ 'label' => __pl('Site Logo'),
9693
+ 'option' => 'site_logo',
9694
+ ),
9695
+ 'site_icon' => array(
9696
+ 'type' => 'image',
9697
+ 'label' => __pl('Site Fav Icon'),
9698
+ 'option' => 'site_icon',
9699
+ ),
9700
+ ),
9701
+ 'breakpoint' => array(
9702
+ 'content_width' => array(
9703
+ 'type' => 'slider',
9704
+ 'label' => __pl('Content Width'),
9705
+ 'option' => 'pagelayer_content_width',
9706
+ 'min' => 320,
9707
+ 'max' => 2000,
9708
+ 'css' =>['.pagelayer-row-stretch-auto > .pagelayer-row-holder'=>'max-width:{{val}}px;margin-left:auto;margin-right:auto'],
9709
+ ),
9710
+ 'widgets_space' => array(
9711
+ 'type' => 'slider',
9712
+ 'label' => __pl('Widgets Space'),
9713
+ 'option' => 'pagelayer_between_widgets',
9714
+ 'min' => 0,
9715
+ 'max' => 2000,
9716
+ ),
9717
+ 'mobile_breakpoint' => array(
9718
+ 'type' => 'slider',
9719
+ 'label' => __pl('Mobile Breakpoint'),
9720
+ 'option' => 'pagelayer_mobile_breakpoint',
9721
+ 'min' => 0,
9722
+ 'max' => 2000,
9723
+ ),
9724
+ 'tablet_breakpoint' => array(
9725
+ 'type' => 'slider',
9726
+ 'label' => __pl('Tablet Breakpoint'),
9727
+ 'option' => 'pagelayer_tablet_breakpoint',
9728
+ 'min' => 0,
9729
+ 'max' => 2000,
9730
+ ),
9731
+ ),
9732
+ 'global' => array(
9733
+ 'ele_body_group' => array(
9734
+ 'type' => 'access',
9735
+ 'label' => __pl('Body Settings'),
9736
+ 'show_group' => 'body_group',
9737
+ ),
9738
+ 'ele_header_group' => array(
9739
+ 'type' => 'access',
9740
+ 'label' => __pl('Header Settings'),
9741
+ 'show_group' => 'header_group',
9742
+ ),
9743
+ 'ele_h1_group' => array(
9744
+ 'type' => 'access',
9745
+ 'label' => __pl('H1 Settings'),
9746
+ 'show_group' => 'h1_group',
9747
+ ),
9748
+ 'ele_h2_group' => array(
9749
+ 'type' => 'access',
9750
+ 'label' => __pl('H2 Settings'),
9751
+ 'show_group' => 'h2_group',
9752
+ ),
9753
+ 'ele_h3_group' => array(
9754
+ 'type' => 'access',
9755
+ 'label' => __pl('H3 Settings'),
9756
+ 'show_group' => 'h3_group',
9757
+ ),
9758
+ 'ele_h4_group' => array(
9759
+ 'type' => 'access',
9760
+ 'label' => __pl('H4 Group'),
9761
+ 'show_group' => 'h4_group',
9762
+ ),
9763
+ 'ele_h5_group' => array(
9764
+ 'type' => 'access',
9765
+ 'label' => __pl('H5 Settings'),
9766
+ 'show_group' => 'h5_group',
9767
+ ),
9768
+ 'ele_h6_group' => array(
9769
+ 'type' => 'access',
9770
+ 'label' => __pl('H6 Settings'),
9771
+ 'show_group' => 'h6_group',
9772
+ ),
9773
+ 'ele_b_group' => array(
9774
+ 'type' => 'access',
9775
+ 'label' => __pl('B Settings'),
9776
+ 'show_group' => 'b_group',
9777
+ ),
9778
+ 'ele_i_group' => array(
9779
+ 'type' => 'access',
9780
+ 'label' => __pl('I Settings'),
9781
+ 'show_group' => 'i_group',
9782
+ ),
9783
+ 'ele_a_group' => array(
9784
+ 'type' => 'access',
9785
+ 'label' => __pl('A Settings'),
9786
+ 'show_group' => 'a_group',
9787
+ ),
9788
+ 'ele_a_hover_group' => array(
9789
+ 'type' => 'access',
9790
+ 'label' => __pl('A Hover Settings'),
9791
+ 'show_group' => 'a_hover_group',
9792
+ ),
9793
+ 'ele_aside_group' => array(
9794
+ 'type' => 'access',
9795
+ 'label' => __pl('Aside Settings'),
9796
+ 'show_group' => 'aside_group',
9797
+ ),
9798
+ 'ele_p_group' => array(
9799
+ 'type' => 'access',
9800
+ 'label' => __pl('P Settings'),
9801
+ 'show_group' => 'p_group',
9802
+ ),
9803
+ 'ele_entry_header_group' => array(
9804
+ 'type' => 'access',
9805
+ 'label' => __pl('Header Settings'),
9806
+ 'show_group' => 'entry_header_group',
9807
+ ),
9808
+ 'ele_entry_content_group' => array(
9809
+ 'type' => 'access',
9810
+ 'label' => __pl('Content Settings'),
9811
+ 'show_group' => 'content_group',
9812
+ ),
9813
+ 'ele_entry_footer_group' => array(
9814
+ 'type' => 'access',
9815
+ 'label' => __pl('Footer Settings'),
9816
+ 'show_group' => 'footer_group',
9817
+ ),
9818
+ 'body' => array(
9819
+ 'type' => 'typography',
9820
+ 'screen' => 1,
9821
+ 'label' => __pl('body'),
9822
+ 'group' => 'body_group',
9823
+ 'css' => ['body.pagelayer-body' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9824
+ ),
9825
+ 'header' => array(
9826
+ 'type' => 'typography',
9827
+ 'screen' => 1,
9828
+ 'label' => __pl('header'),
9829
+ 'group' => 'header_group',
9830
+ 'css' => ['body.pagelayer-body header' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9831
+ ),
9832
+ 'h1' => array(
9833
+ 'type' => 'typography',
9834
+ 'screen' => 1,
9835
+ 'label' => __pl('h1'),
9836
+ 'group' => 'h1_group',
9837
+ 'css' => ['body.pagelayer-body h1' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9838
+ ),
9839
+ 'h2' => array(
9840
+ 'type' => 'typography',
9841
+ 'screen' => 1,
9842
+ 'label' => __pl('h2'),
9843
+ 'group' => 'h2_group',
9844
+ 'css' => ['body.pagelayer-body h2' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9845
+ ),
9846
+ 'h3' => array(
9847
+ 'type' => 'typography',
9848
+ 'screen' => 1,
9849
+ 'label' => __pl('h3'),
9850
+ 'group' => 'h3_group',
9851
+ 'css' => ['body.pagelayer-body h3' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9852
+ ),
9853
+ 'h4' => array(
9854
+ 'type' => 'typography',
9855
+ 'screen' => 1,
9856
+ 'label' => __pl('h4'),
9857
+ 'group' => 'h4_group',
9858
+ 'css' => ['body.pagelayer-body h4' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9859
+ ),
9860
+ 'h5' => array(
9861
+ 'type' => 'typography',
9862
+ 'screen' => 1,
9863
+ 'label' => __pl('h5'),
9864
+ 'group' => 'h5_group',
9865
+ 'css' => ['body.pagelayer-body h5' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9866
+ ),
9867
+ 'h6' => array(
9868
+ 'type' => 'typography',
9869
+ 'screen' => 1,
9870
+ 'label' => __pl('h6'),
9871
+ 'group' => 'h6_group',
9872
+ 'css' => ['body.pagelayer-body h6' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9873
+ ),
9874
+ 'b' => array(
9875
+ 'type' => 'typography',
9876
+ 'screen' => 1,
9877
+ 'label' => __pl('b'),
9878
+ 'group' => 'b_group',
9879
+ 'css' => ['body.pagelayer-body b' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9880
+ ),
9881
+ 'i' => array(
9882
+ 'type' => 'typography',
9883
+ 'screen' => 1,
9884
+ 'label' => __pl('i'),
9885
+ 'group' => 'i_group',
9886
+ 'css' => ['body.pagelayer-body i' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9887
+ ),
9888
+ 'a' => array(
9889
+ 'type' => 'typography',
9890
+ 'screen' => 1,
9891
+ 'label' => __pl('a'),
9892
+ 'group' => 'a_group',
9893
+ 'css' => ['body.pagelayer-body a' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9894
+ ),
9895
+ 'a_hover' => array(
9896
+ 'type' => 'typography',
9897
+ 'screen' => 1,
9898
+ 'label' => __pl('a-hover'),
9899
+ 'group' => 'a_hover_group',
9900
+ 'css' => ['body.pagelayer-body a:hover' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9901
+ ),
9902
+ 'aside' => array(
9903
+ 'type' => 'typography',
9904
+ 'screen' => 1,
9905
+ 'label' => __pl('aside'),
9906
+ 'group' => 'aside_group',
9907
+ 'css' => ['body.pagelayer-body p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9908
+ ),
9909
+ 'p' => array(
9910
+ 'type' => 'typography',
9911
+ 'screen' => 1,
9912
+ 'label' => __pl('p'),
9913
+ 'group' => 'p_group',
9914
+ 'css' => ['body.pagelayer-body p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9915
+ ),
9916
+ 'entry-header' => array(
9917
+ 'type' => 'typography',
9918
+ 'screen' => 1,
9919
+ 'label' => __pl('entry-header'),
9920
+ 'group' => 'entry_header_group',
9921
+ 'css' => ['body.pagelayer-body .entry-header' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9922
+ ),
9923
+ 'entry_content' => array(
9924
+ 'type' => 'typography',
9925
+ 'screen' => 1,
9926
+ 'label' => __pl('entry-content'),
9927
+ 'group' => 'content_group',
9928
+ 'css' => ['body.pagelayer-body .entry-content' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9929
+ ),
9930
+ 'entry_footer' => array(
9931
+ 'type' => 'typography',
9932
+ 'screen' => 1,
9933
+ 'label' => __pl('entry-footer'),
9934
+ 'group' => 'footer_group',
9935
+ 'css' => ['body.pagelayer-body .entry-footer' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9936
+ ),
9937
+ 'body_color' => array(
9938
+ 'type' => 'color',
9939
+ 'screen' => 1,
9940
+ 'label' => __pl('body_color'),
9941
+ 'group' => 'body_group',
9942
+ 'css' => ['body.pagelayer-body' => 'color:{{val}};'],
9943
+ ),
9944
+ 'header_color' => array(
9945
+ 'type' => 'color',
9946
+ 'screen' => 1,
9947
+ 'group' => 'header_group',
9948
+ 'label' => __pl('header_color'),
9949
+ 'css' => ['body.pagelayer-body header' => 'color:{{val}};'],
9950
+ ),
9951
+ 'h1_color' => array(
9952
+ 'type' => 'color',
9953
+ 'screen' => 1,
9954
+ 'group' => 'h1_group',
9955
+ 'label' => __pl('h1_color'),
9956
+ 'css' => ['body.pagelayer-body h1' => 'color:{{val}};'],
9957
+ ),
9958
+ 'h2_color' => array(
9959
+ 'type' => 'color',
9960
+ 'screen' => 1,
9961
+ 'group' => 'h2_group',
9962
+ 'label' => __pl('h2_color'),
9963
+ 'css' => ['body.pagelayer-body h2' => 'color:{{val}};'],
9964
+ ),
9965
+ 'h3_color' => array(
9966
+ 'type' => 'color',
9967
+ 'screen' => 1,
9968
+ 'group' => 'h3_group',
9969
+ 'label' => __pl('h3_color'),
9970
+ 'css' => ['body.pagelayer-body h3' => 'color:{{val}};'],
9971
+ ),
9972
+ 'h4_color' => array(
9973
+ 'type' => 'color',
9974
+ 'screen' => 1,
9975
+ 'group' => 'h4_group',
9976
+ 'label' => __pl('h4_color'),
9977
+ 'css' => ['body.pagelayer-body h4' => 'color:{{val}};'],
9978
+ ),
9979
+ 'h5_color' => array(
9980
+ 'type' => 'color',
9981
+ 'screen' => 1,
9982
+ 'group' => 'h5_group',
9983
+ 'label' => __pl('h5_color'),
9984
+ 'css' => ['body.pagelayer-body h5' => 'color:{{val}};'],
9985
+ ),
9986
+ 'h6_color' => array(
9987
+ 'type' => 'color',
9988
+ 'screen' => 1,
9989
+ 'group' => 'h6_group',
9990
+ 'label' => __pl('h6_color'),
9991
+ 'css' => ['body.pagelayer-body h6' => 'color:{{val}};'],
9992
+ ),
9993
+ 'b_color' => array(
9994
+ 'type' => 'color',
9995
+ 'screen' => 1,
9996
+ 'group' => 'b_group',
9997
+ 'label' => __pl('b_color'),
9998
+ 'css' => ['body.pagelayer-body b' => 'color:{{val}};'],
9999
+ ),
10000
+ 'i_color' => array(
10001
+ 'type' => 'color',
10002
+ 'screen' => 1,
10003
+ 'group' => 'i_group',
10004
+ 'label' => __pl('i_color'),
10005
+ 'css' => ['body.pagelayer-body i' => 'color:{{val}};'],
10006
+ ),
10007
+ 'a_color' => array(
10008
+ 'type' => 'color',
10009
+ 'screen' => 1,
10010
+ 'group' => 'a_group',
10011
+ 'label' => __pl('a_color'),
10012
+ 'css' => ['body.pagelayer-body a' => 'color:{{val}};'],
10013
+ ),
10014
+ 'a-hover_color' => array(
10015
+ 'type' => 'color',
10016
+ 'screen' => 1,
10017
+ 'group' => 'a_hover_group',
10018
+ 'label' => __pl('a_hover_color'),
10019
+ 'css' => ['body.pagelayer-body a:hover' => 'color:{{val}};'],
10020
+ ),
10021
+ 'aside_color' => array(
10022
+ 'type' => 'color',
10023
+ 'screen' => 1,
10024
+ 'group' => 'aside_group',
10025
+ 'label' => __pl('aside_color'),
10026
+ 'css' => ['body.pagelayer-body aside' => 'color:{{val}};'],
10027
+ ),
10028
+ 'p_color' => array(
10029
+ 'type' => 'color',
10030
+ 'screen' => 1,
10031
+ 'group' => 'p_group',
10032
+ 'label' => __pl('p_color'),
10033
+ 'css' => ['body.pagelayer-body p' => 'color:{{val}};'],
10034
+ ),
10035
+ 'entry-header_color' => array(
10036
+ 'type' => 'color',
10037
+ 'screen' => 1,
10038
+ 'group' => 'entry_header_group',
10039
+ 'label' => __pl('entry_header_color'),
10040
+ 'css' => ['body.pagelayer-body .entry-header' => 'color:{{val}};'],
10041
+ ),
10042
+ 'entry-content_color' => array(
10043
+ 'type' => 'color',
10044
+ 'screen' => 1,
10045
+ 'group' => 'content_group',
10046
+ 'label' => __pl('entry_content_color'),
10047
+ 'css' => ['body.pagelayer-body .entry-content' => 'color:{{val}};'],
10048
+ ),
10049
+ 'entry-footer_color' => array(
10050
+ 'type' => 'color',
10051
+ 'screen' => 1,
10052
+ 'group' => 'footer_group',
10053
+ 'label' => __pl('entry_footer_color'),
10054
+ 'css' => ['body.pagelayer-body .entry-footer' => 'color:{{val}};'],
10055
+ ),
10056
+ 'body_background_color' => array(
10057
+ 'type' => 'color',
10058
+ 'screen' => 1,
10059
+ 'group' => 'body_group',
10060
+ 'label' => __pl('body_background_color'),
10061
+ 'css' => ['body.pagelayer-body' => 'background-color:{{val}};'],
10062
+ ),
10063
+ 'header_background_color' => array(
10064
+ 'type' => 'color',
10065
+ 'screen' => 1,
10066
+ 'group' => 'header_group',
10067
+ 'label' => __pl('header_background_color'),
10068
+ 'css' => ['body.pagelayer-body header' => 'background-color:{{val}};'],
10069
+ ),
10070
+ 'h1_background_color' => array(
10071
+ 'type' => 'color',
10072
+ 'screen' => 1,
10073
+ 'group' => 'h1_group',
10074
+ 'label' => __pl('h1_background_color'),
10075
+ 'css' => ['body.pagelayer-body h1' => 'background-color:{{val}};'],
10076
+ ),
10077
+ 'h2_background_color' => array(
10078
+ 'type' => 'color',
10079
+ 'screen' => 1,
10080
+ 'group' => 'h2_group',
10081
+ 'label' => __pl('h2_background_color'),
10082
+ 'css' => ['body.pagelayer-body h2' => 'background-color:{{val}};'],
10083
+ ),
10084
+ 'h3_background_color' => array(
10085
+ 'type' => 'color',
10086
+ 'screen' => 1,
10087
+ 'group' => 'h3_group',
10088
+ 'label' => __pl('h3_background_color'),
10089
+ 'css' => ['body.pagelayer-body h3' => 'background-color:{{val}};'],
10090
+ ),
10091
+ 'h4_background_color' => array(
10092
+ 'type' => 'color',
10093
+ 'screen' => 1,
10094
+ 'group' => 'h4_group',
10095
+ 'label' => __pl('h4_background_color'),
10096
+ 'css' => ['body.pagelayer-body h4' => 'background-color:{{val}};'],
10097
+ ),
10098
+ 'h5_background_color' => array(
10099
+ 'type' => 'color',
10100
+ 'screen' => 1,
10101
+ 'group' => 'h5_group',
10102
+ 'label' => __pl('h5_background_color'),
10103
+ 'css' => ['body.pagelayer-body h5' => 'background-color:{{val}};'],
10104
+ ),
10105
+ 'h6_background_color' => array(
10106
+ 'type' => 'color',
10107
+ 'screen' => 1,
10108
+ 'group' => 'h6_group',
10109
+ 'label' => __pl('h6_background_color'),
10110
+ 'css' => ['body.pagelayer-body h6' => 'background-color:{{val}};'],
10111
+ ),
10112
+ 'b_background_color' => array(
10113
+ 'type' => 'color',
10114
+ 'screen' => 1,
10115
+ 'group' => 'b_group',
10116
+ 'label' => __pl('b_background_color'),
10117
+ 'css' => ['body.pagelayer-body b' => 'background-color:{{val}};'],
10118
+ ),
10119
+ 'i_background_color' => array(
10120
+ 'type' => 'color',
10121
+ 'screen' => 1,
10122
+ 'group' => 'i_group',
10123
+ 'label' => __pl('i_background_color'),
10124
+ 'css' => ['body.pagelayer-body i' => 'background-color:{{val}};'],
10125
+ ),
10126
+ 'a_background_color' => array(
10127
+ 'type' => 'color',
10128
+ 'screen' => 1,
10129
+ 'group' => 'a_group',
10130
+ 'label' => __pl('a_background_color'),
10131
+ 'css' => ['body.pagelayer-body a' => 'background-color:{{val}};'],
10132
+ ),
10133
+ 'a-hover_background_color' => array(
10134
+ 'type' => 'color',
10135
+ 'screen' => 1,
10136
+ 'group' => 'a_hover_group',
10137
+ 'label' => __pl('a_hover_background_color'),
10138
+ 'css' => ['body.pagelayer-body a:hover' => 'background-color:{{val}};'],
10139
+ ),
10140
+ 'aside_background_color' => array(
10141
+ 'type' => 'color',
10142
+ 'screen' => 1,
10143
+ 'group' => 'aside_group',
10144
+ 'label' => __pl('aside_background_color'),
10145
+ 'css' => ['body.pagelayer-body aside' => 'background-color:{{val}};'],
10146
+ ),
10147
+ 'p_background_color' => array(
10148
+ 'type' => 'color',
10149
+ 'screen' => 1,
10150
+ 'group' => 'p_group',
10151
+ 'label' => __pl('p_background_color'),
10152
+ 'css' => ['body.pagelayer-body p' => 'background-color:{{val}};'],
10153
+ ),
10154
+ 'entry-header_background_color' => array(
10155
+ 'type' => 'color',
10156
+ 'screen' => 1,
10157
+ 'group' => 'entry_header_group',
10158
+ 'label' => __pl('entry_header_background_color'),
10159
+ 'css' => ['body.pagelayer-body .entry-header' => 'background-color:{{val}};'],
10160
+ ),
10161
+ 'entry-content_background_color' => array(
10162
+ 'type' => 'color',
10163
+ 'screen' => 1,
10164
+ 'group' => 'content_group',
10165
+ 'label' => __pl('entry_content_background_color'),
10166
+ 'css' => ['body.pagelayer-body .entry-content' => 'background-color:{{val}};'],
10167
+ ),
10168
+ 'entry-footer_background_color' => array(
10169
+ 'type' => 'color',
10170
+ 'screen' => 1,
10171
+ 'group' => 'footer_group',
10172
+ 'label' => __pl('entry_footer_background_color'),
10173
+ 'css' => ['body.pagelayer-body .entry-footer' => 'background-color:{{val}};'],
10174
+ ),
10175
+ 'body_padding' => array(
10176
+ 'type' => 'padding',
10177
+ 'label' => __pl('body_padding'),
10178
+ 'screen' => 1,
10179
+ 'group' => 'body_group',
10180
+ 'css' => ['body.pagelayer-body' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10181
+ ),
10182
+ 'body_margin' => array(
10183
+ 'type' => 'padding',
10184
+ 'label' => __pl('body_margin'),
10185
+ 'screen' => 1,
10186
+ 'group' => 'body_group',
10187
+ 'css' => ['body.pagelayer-body' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10188
+ ),
10189
+ 'header_padding' => array(
10190
+ 'type' => 'padding',
10191
+ 'label' => __pl('header_padding'),
10192
+ 'screen' => 1,
10193
+ 'group' => 'header_group',
10194
+ 'css' => ['body.pagelayer-body header' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10195
+ ),
10196
+ 'header_margin' => array(
10197
+ 'type' => 'padding',
10198
+ 'label' => __pl('header_margin'),
10199
+ 'screen' => 1,
10200
+ 'group' => 'header_group',
10201
+ 'css' => ['body.pagelayer-body header' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10202
+ ),
10203
+ 'h1_padding' => array(
10204
+ 'type' => 'padding',
10205
+ 'label' => __pl('h1_padding'),
10206
+ 'screen' => 1,
10207
+ 'group' => 'h1_group',
10208
+ 'css' => ['body.pagelayer-body h1' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10209
+ ),
10210
+ 'h1_margin' => array(
10211
+ 'type' => 'padding',
10212
+ 'label' => __pl('h1_margin'),
10213
+ 'screen' => 1,
10214
+ 'group' => 'h1_group',
10215
+ 'css' => ['body.pagelayer-body h1' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10216
+ ),
10217
+ 'h2_padding' => array(
10218
+ 'type' => 'padding',
10219
+ 'label' => __pl('h2_padding'),
10220
+ 'screen' => 1,
10221
+ 'group' => 'h2_group',
10222
+ 'css' => ['body.pagelayer-body h2' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10223
+ ),
10224
+ 'h2_margin' => array(
10225
+ 'type' => 'padding',
10226
+ 'label' => __pl('h2_margin'),
10227
+ 'screen' => 1,
10228
+ 'group' => 'h2_group',
10229
+ 'css' => ['body.pagelayer-body h2' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10230
+ ),
10231
+ 'h3_padding' => array(
10232
+ 'type' => 'padding',
10233
+ 'label' => __pl('h3_padding'),
10234
+ 'screen' => 1,
10235
+ 'group' => 'h3_group',
10236
+ 'css' => ['body.pagelayer-body h3' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10237
+ ),
10238
+ 'h3_margin' => array(
10239
+ 'type' => 'padding',
10240
+ 'label' => __pl('h3_margin'),
10241
+ 'screen' => 1,
10242
+ 'group' => 'h3_group',
10243
+ 'css' => ['body.pagelayer-body h3' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10244
+ ),
10245
+ 'h4_padding' => array(
10246
+ 'type' => 'padding',
10247
+ 'label' => __pl('h4_padding'),
10248
+ 'screen' => 1,
10249
+ 'group' => 'h4_group',
10250
+ 'css' => ['body.pagelayer-body h4' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10251
+ ),
10252
+ 'h4_margin' => array(
10253
+ 'type' => 'padding',
10254
+ 'label' => __pl('h4_margin'),
10255
+ 'screen' => 1,
10256
+ 'group' => 'h4_group',
10257
+ 'css' => ['body.pagelayer-body h4' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10258
+ ),
10259
+ 'h5_padding' => array(
10260
+ 'type' => 'padding',
10261
+ 'label' => __pl('h5_padding'),
10262
+ 'screen' => 1,
10263
+ 'group' => 'h5_group',
10264
+ 'css' => ['body.pagelayer-body h5' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10265
+ ),
10266
+ 'h5_margin' => array(
10267
+ 'type' => 'padding',
10268
+ 'label' => __pl('h5_margin'),
10269
+ 'screen' => 1,
10270
+ 'group' => 'h5_group',
10271
+ 'css' => ['body.pagelayer-body h5' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10272
+ ),
10273
+ 'h6_padding' => array(
10274
+ 'type' => 'padding',
10275
+ 'label' => __pl('h6_padding'),
10276
+ 'screen' => 1,
10277
+ 'group' => 'h6_group',
10278
+ 'css' => ['body.pagelayer-body h6' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10279
+ ),
10280
+ 'h6_margin' => array(
10281
+ 'type' => 'padding',
10282
+ 'label' => __pl('h6_margin'),
10283
+ 'screen' => 1,
10284
+ 'group' => 'h6_group',
10285
+ 'css' => ['body.pagelayer-body h6' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10286
+ ),
10287
+ 'b_padding' => array(
10288
+ 'type' => 'padding',
10289
+ 'label' => __pl('b_padding'),
10290
+ 'screen' => 1,
10291
+ 'group' => 'b_group',
10292
+ 'css' => ['body.pagelayer-body b' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10293
+ ),
10294
+ 'b_margin' => array(
10295
+ 'type' => 'padding',
10296
+ 'label' => __pl('b_margin'),
10297
+ 'screen' => 1,
10298
+ 'group' => 'b_group',
10299
+ 'css' => ['body.pagelayer-body b' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10300
+ ),
10301
+ 'i_padding' => array(
10302
+ 'type' => 'padding',
10303
+ 'label' => __pl('i_padding'),
10304
+ 'screen' => 1,
10305
+ 'group' => 'i_group',
10306
+ 'css' => ['body.pagelayer-body i' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10307
+ ),
10308
+ 'i_margin' => array(
10309
+ 'type' => 'padding',
10310
+ 'label' => __pl('i_margin'),
10311
+ 'screen' => 1,
10312
+ 'group' => 'i_group',
10313
+ 'css' => ['body.pagelayer-body i' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10314
+ ),
10315
+ 'a_padding' => array(
10316
+ 'type' => 'padding',
10317
+ 'label' => __pl('a_padding'),
10318
+ 'screen' => 1,
10319
+ 'group' => 'a_group',
10320
+ 'css' => ['body.pagelayer-body a' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10321
+ ),
10322
+ 'a_margin' => array(
10323
+ 'type' => 'padding',
10324
+ 'label' => __pl('a_margin'),
10325
+ 'screen' => 1,
10326
+ 'group' => 'a_group',
10327
+ 'css' => ['body.pagelayer-body a' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10328
+ ),
10329
+ 'a-hover_padding' => array(
10330
+ 'type' => 'padding',
10331
+ 'label' => __pl('_-hover_padding'),
10332
+ 'screen' => 1,
10333
+ 'group' => 'a_hover_group',
10334
+ 'css' => ['body.pagelayer-body a:hover' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10335
+ ),
10336
+ 'a-hover_margin' => array(
10337
+ 'type' => 'padding',
10338
+ 'label' => __pl('a_hover_margin'),
10339
+ 'screen' => 1,
10340
+ 'group' => 'a_hover_group',
10341
+ 'css' => ['body.pagelayer-body a:hover' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10342
+ ),
10343
+ 'aside_padding' => array(
10344
+ 'type' => 'padding',
10345
+ 'label' => __pl('aside_padding'),
10346
+ 'screen' => 1,
10347
+ 'group' => 'aside_group',
10348
+ 'css' => ['body.pagelayer-body aside' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10349
+ ),
10350
+ 'aside_margin' => array(
10351
+ 'type' => 'padding',
10352
+ 'label' => __pl('aside_margin'),
10353
+ 'screen' => 1,
10354
+ 'group' => 'aside_group',
10355
+ 'css' => ['body.pagelayer-body aside' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10356
+ ),
10357
+ 'p_padding' => array(
10358
+ 'type' => 'padding',
10359
+ 'label' => __pl('p_padding'),
10360
+ 'screen' => 1,
10361
+ 'group' => 'p_group',
10362
+ 'css' => ['body.pagelayer-body p' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10363
+ ),
10364
+ 'p_margin' => array(
10365
+ 'type' => 'padding',
10366
+ 'label' => __pl('p_margin'),
10367
+ 'screen' => 1,
10368
+ 'group' => 'p_group',
10369
+ 'css' => ['body.pagelayer-body p' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10370
+ ),
10371
+ 'entry-header_padding' => array(
10372
+ 'type' => 'padding',
10373
+ 'label' => __pl('entry_header_padding'),
10374
+ 'screen' => 1,
10375
+ 'group' => 'entry_header_group',
10376
+ 'css' => ['body.pagelayer-body .entry-header' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10377
+ ),
10378
+ 'entry-header_margin' => array(
10379
+ 'type' => 'padding',
10380
+ 'label' => __pl('entry_header_margin'),
10381
+ 'screen' => 1,
10382
+ 'group' => 'entry_header_group',
10383
+ 'css' => ['body.pagelayer-body .entry-header' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10384
+ ),
10385
+ 'entry-content_padding' => array(
10386
+ 'type' => 'padding',
10387
+ 'label' => __pl('entry_content_padding'),
10388
+ 'screen' => 1,
10389
+ 'group' => 'content_group',
10390
+ 'css' => ['body.pagelayer-body .entry-content' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10391
+ ),
10392
+ 'entry-content_margin' => array(
10393
+ 'type' => 'padding',
10394
+ 'label' => __pl('entry_content_margin'),
10395
+ 'screen' => 1,
10396
+ 'group' => 'content_group',
10397
+ 'css' => ['body.pagelayer-body .entry-content' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10398
+ ),
10399
+ 'entry-footer_padding' => array(
10400
+ 'type' => 'padding',
10401
+ 'label' => __pl('entry_footer_padding'),
10402
+ 'screen' => 1,
10403
+ 'group' => 'footer_group',
10404
+ 'css' => ['body.pagelayer-body .entry-footer' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10405
+ ),
10406
+ 'entry-footer_margin' => array(
10407
+ 'type' => 'padding',
10408
+ 'label' => __pl('entry_footer_margin'),
10409
+ 'screen' => 1,
10410
+ 'group' => 'footer_group',
10411
+ 'css' => ['body.pagelayer-body .entry-footer' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10412
+ ),
10413
+ ),
10414
+ 'post_global' => array(
10415
+ 'post_body_group' => array(
10416
+ 'type' => 'access',
10417
+ 'label' => __pl('Body Settings'),
10418
+ 'show_group' => 'post_body_group',
10419
+ ),
10420
+ 'post_header_group' => array(
10421
+ 'type' => 'access',
10422
+ 'label' => __pl('Header Settings'),
10423
+ 'show_group' => 'post_header_group',
10424
+ ),
10425
+ 'post_h1_group' => array(
10426
+ 'type' => 'access',
10427
+ 'label' => __pl('H1 Settings'),
10428
+ 'show_group' => 'post_h1_group',
10429
+ ),
10430
+ 'post_h2_group' => array(
10431
+ 'type' => 'access',
10432
+ 'label' => __pl('H2 Settings'),
10433
+ 'show_group' => 'post_h2_group',
10434
+ ),
10435
+ 'post_h3_group' => array(
10436
+ 'type' => 'access',
10437
+ 'label' => __pl('H3 Settings'),
10438
+ 'show_group' => 'post_h3_group',
10439
+ ),
10440
+ 'post_h4_group' => array(
10441
+ 'type' => 'access',
10442
+ 'label' => __pl('H4 Group'),
10443
+ 'show_group' => 'post_h4_group',
10444
+ ),
10445
+ 'post_h5_group' => array(
10446
+ 'type' => 'access',
10447
+ 'label' => __pl('H5 Settings'),
10448
+ 'show_group' => 'post_h5_group',
10449
+ ),
10450
+ 'post_h6_group' => array(
10451
+ 'type' => 'access',
10452
+ 'label' => __pl('H6 Settings'),
10453
+ 'show_group' => 'post_h6_group',
10454
+ ),
10455
+ 'post_b_group' => array(
10456
+ 'type' => 'access',
10457
+ 'label' => __pl('B Settings'),
10458
+ 'show_group' => 'post_b_group',
10459
+ ),
10460
+ 'post_i_group' => array(
10461
+ 'type' => 'access',
10462
+ 'label' => __pl('I Settings'),
10463
+ 'show_group' => 'post_i_group',
10464
+ ),
10465
+ 'post_a_group' => array(
10466
+ 'type' => 'access',
10467
+ 'label' => __pl('A Settings'),
10468
+ 'show_group' => 'post_a_group',
10469
+ ),
10470
+ 'post_a_hover_group' => array(
10471
+ 'type' => 'access',
10472
+ 'label' => __pl('A Hover Settings'),
10473
+ 'show_group' => 'post_a_hover_group',
10474
+ ),
10475
+ 'post_aside_group' => array(
10476
+ 'type' => 'access',
10477
+ 'label' => __pl('Aside Settings'),
10478
+ 'show_group' => 'post_aside_group',
10479
+ ),
10480
+ 'post_p_group' => array(
10481
+ 'type' => 'access',
10482
+ 'label' => __pl('P Settings'),
10483
+ 'show_group' => 'post_p_group',
10484
+ ),
10485
+ 'post_entry_header_group' => array(
10486
+ 'type' => 'access',
10487
+ 'label' => __pl('Header Settings'),
10488
+ 'show_group' => 'post_entry_header_group',
10489
+ ),
10490
+ 'post_entry_content_group' => array(
10491
+ 'type' => 'access',
10492
+ 'label' => __pl('Content Settings'),
10493
+ 'show_group' => 'post_content_group',
10494
+ ),
10495
+ 'post_entry_footer_group' => array(
10496
+ 'type' => 'access',
10497
+ 'label' => __pl('Footer Settings'),
10498
+ 'show_group' => 'post_footer_group',
10499
+ ),
10500
+ 'current_body' => array(
10501
+ 'type' => 'typography',
10502
+ 'screen' => 1,
10503
+ 'label' => __pl('current_body'),
10504
+ 'group' => 'post_body_group',
10505
+ 'customizer_mods' => 'pagelayer_body_typography_{{post_type}}',
10506
+ 'customizer_css' => 1,
10507
+ 'css' => ['body.pagelayer-body ' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10508
+ ),
10509
+ 'current_header' => array(
10510
+ 'type' => 'typography',
10511
+ 'screen' => 1,
10512
+ 'label' => __pl('current_header'),
10513
+ 'group' => 'post_header_group',
10514
+ 'css' => ['body.pagelayer-body header' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10515
+ ),
10516
+ 'current_h1' => array(
10517
+ 'type' => 'typography',
10518
+ 'screen' => 1,
10519
+ 'label' => __pl('current_h1'),
10520
+ 'group' => 'post_h1_group',
10521
+ 'css' => ['body.pagelayer-body h1' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10522
+ ),
10523
+ 'current_h2' => array(
10524
+ 'type' => 'typography',
10525
+ 'screen' => 1,
10526
+ 'label' => __pl('current_h2'),
10527
+ 'group' => 'post_h2_group',
10528
+ 'css' => ['body.pagelayer-body h2' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10529
+ ),
10530
+ 'current_h3' => array(
10531
+ 'type' => 'typography',
10532
+ 'screen' => 1,
10533
+ 'label' => __pl('current_h3'),
10534
+ 'group' => 'post_h3_group',
10535
+ 'css' => ['body.pagelayer-body h3' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10536
+ ),
10537
+ 'current_h4' => array(
10538
+ 'type' => 'typography',
10539
+ 'screen' => 1,
10540
+ 'label' => __pl('current_h4'),
10541
+ 'group' => 'post_h4_group',
10542
+ 'css' => ['body.pagelayer-body h4' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10543
+ ),
10544
+ 'current_h5' => array(
10545
+ 'type' => 'typography',
10546
+ 'screen' => 1,
10547
+ 'label' => __pl('current_h5'),
10548
+ 'group' => 'post_h5_group',
10549
+ 'css' => ['body.pagelayer-body h5' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10550
+ ),
10551
+ 'current_h6' => array(
10552
+ 'type' => 'typography',
10553
+ 'screen' => 1,
10554
+ 'label' => __pl('current_h6'),
10555
+ 'group' => 'post_h6_group',
10556
+ 'css' => ['body.pagelayer-body h6' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10557
+ ),
10558
+ 'current_b' => array(
10559
+ 'type' => 'typography',
10560
+ 'screen' => 1,
10561
+ 'label' => __pl('current_b'),
10562
+ 'group' => 'post_b_group',
10563
+ 'css' => ['body.pagelayer-body b' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10564
+ ),
10565
+ 'current_i' => array(
10566
+ 'type' => 'typography',
10567
+ 'screen' => 1,
10568
+ 'label' => __pl('current_i'),
10569
+ 'group' => 'post_i_group',
10570
+ 'css' => ['body.pagelayer-body i' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10571
+ ),
10572
+ 'current_a' => array(
10573
+ 'type' => 'typography',
10574
+ 'screen' => 1,
10575
+ 'label' => __pl('current_a'),
10576
+ 'group' => 'post_a_group',
10577
+ 'css' => ['body.pagelayer-body a' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10578
+ ),
10579
+ 'current_a-hover' => array(
10580
+ 'type' => 'typography',
10581
+ 'screen' => 1,
10582
+ 'label' => __pl('current_a_hover'),
10583
+ 'group' => 'post_a_hover_group',
10584
+ 'css' => ['body.pagelayer-body a:hover' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10585
+ ),
10586
+ 'current_aside' => array(
10587
+ 'type' => 'typography',
10588
+ 'screen' => 1,
10589
+ 'label' => __pl('current_aside'),
10590
+ 'group' => 'post_aside_group',
10591
+ 'css' => ['body.pagelayer-body p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10592
+ ),
10593
+ 'current_p' => array(
10594
+ 'type' => 'typography',
10595
+ 'screen' => 1,
10596
+ 'label' => __pl('p'),
10597
+ 'group' => 'post_p_group',
10598
+ 'css' => ['body.pagelayer-body p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10599
+ ),
10600
+ 'current_entry-header' => array(
10601
+ 'type' => 'typography',
10602
+ 'screen' => 1,
10603
+ 'label' => __pl('current_entry_header'),
10604
+ 'group' => 'post_entry_header_group',
10605
+ 'css' => ['body.pagelayer-body .entry-header' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10606
+ ),
10607
+ 'current_entry-content' => array(
10608
+ 'type' => 'typography',
10609
+ 'screen' => 1,
10610
+ 'label' => __pl('current_entry_content'),
10611
+ 'group' => 'post_content_group',
10612
+ 'css' => ['body.pagelayer-body .entry-content' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10613
+ ),
10614
+ 'current_entry-footer' => array(
10615
+ 'type' => 'typography',
10616
+ 'screen' => 1,
10617
+ 'label' => __pl('current_entry_footer'),
10618
+ 'group' => 'post_footer_group',
10619
+ 'css' => ['body.pagelayer-body .entry-footer' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10620
+ ),
10621
+ 'current_body_color' => array(
10622
+ 'type' => 'color',
10623
+ 'screen' => 1,
10624
+ 'group' => 'post_body_group',
10625
+ 'label' => __pl('current_body_color'),
10626
+ 'css' => ['body.pagelayer-body ' => 'color:{{val}};'],
10627
+ ),
10628
+ 'current_header_color' => array(
10629
+ 'type' => 'color',
10630
+ 'screen' => 1,
10631
+ 'group' => 'post_header_group',
10632
+ 'label' => __pl('current_header_color'),
10633
+ 'css' => ['body.pagelayer-body header' => 'color:{{val}};'],
10634
+ ),
10635
+ 'current_h1_color' => array(
10636
+ 'type' => 'color',
10637
+ 'screen' => 1,
10638
+ 'group' => 'post_h1_group',
10639
+ 'label' => __pl('current_h1_color'),
10640
+ 'css' => ['body.pagelayer-body h1' => 'color:{{val}};'],
10641
+ ),
10642
+ 'current_h2_color' => array(
10643
+ 'type' => 'color',
10644
+ 'screen' => 1,
10645
+ 'group' => 'post_h2_group',
10646
+ 'label' => __pl('current_h2_color'),
10647
+ 'css' => ['body.pagelayer-body h2' => 'color:{{val}};'],
10648
+ ),
10649
+ 'current_h3_color' => array(
10650
+ 'type' => 'color',
10651
+ 'screen' => 1,
10652
+ 'group' => 'post_h3_group',
10653
+ 'label' => __pl('current_h3_color'),
10654
+ 'css' => ['body.pagelayer-body h3' => 'color:{{val}};'],
10655
+ ),
10656
+ 'current_h4_color' => array(
10657
+ 'type' => 'color',
10658
+ 'screen' => 1,
10659
+ 'label' => __pl('current_h4_color'),
10660
+ 'group' => 'post_h4_group',
10661
+ 'css' => ['body.pagelayer-body h4' => 'color:{{val}};'],
10662
+ ),
10663
+ 'current_h5_color' => array(
10664
+ 'type' => 'color',
10665
+ 'screen' => 1,
10666
+ 'group' => 'post_h5_group',
10667
+ 'label' => __pl('current_h5_color'),
10668
+ 'css' => ['body.pagelayer-body h5' => 'color:{{val}};'],
10669
+ ),
10670
+ 'current_h6_color' => array(
10671
+ 'type' => 'color',
10672
+ 'screen' => 1,
10673
+ 'group' => 'post_h6_group',
10674
+ 'label' => __pl('current_h6_color'),
10675
+ 'css' => ['body.pagelayer-body h6' => 'color:{{val}};'],
10676
+ ),
10677
+ 'current_b_color' => array(
10678
+ 'type' => 'color',
10679
+ 'screen' => 1,
10680
+ 'group' => 'post_b_group',
10681
+ 'label' => __pl('current_b_color'),
10682
+ 'css' => ['body.pagelayer-body b' => 'color:{{val}};'],
10683
+ ),
10684
+ 'current_i_color' => array(
10685
+ 'type' => 'color',
10686
+ 'screen' => 1,
10687
+ 'group' => 'post_i_group',
10688
+ 'label' => __pl('current_i_color'),
10689
+ 'css' => ['body.pagelayer-body i' => 'color:{{val}};'],
10690
+ ),
10691
+ 'current_a_color' => array(
10692
+ 'type' => 'color',
10693
+ 'screen' => 1,
10694
+ 'group' => 'post_a_group',
10695
+ 'label' => __pl('current_a_color'),
10696
+ 'css' => ['body.pagelayer-body a' => 'color:{{val}};'],
10697
+ ),
10698
+ 'current_a-hover_color' => array(
10699
+ 'type' => 'color',
10700
+ 'screen' => 1,
10701
+ 'group' => 'post_a_hover_group',
10702
+ 'label' => __pl('current_a_hover_color'),
10703
+ 'css' => ['body.pagelayer-body a:hover' => 'color:{{val}};'],
10704
+ ),
10705
+ 'current_aside_color' => array(
10706
+ 'type' => 'color',
10707
+ 'screen' => 1,
10708
+ 'group' => 'post_aside_group',
10709
+ 'label' => __pl('current_aside_color'),
10710
+ 'css' => ['body.pagelayer-body aside' => 'color:{{val}};'],
10711
+ ),
10712
+ 'current_p_color' => array(
10713
+ 'type' => 'color',
10714
+ 'screen' => 1,
10715
+ 'group' => 'post_p_group',
10716
+ 'label' => __pl('current_p_color'),
10717
+ 'css' => ['body.pagelayer-body p' => 'color:{{val}};'],
10718
+ ),
10719
+ 'current_entry-header_color' => array(
10720
+ 'type' => 'color',
10721
+ 'screen' => 1,
10722
+ 'group' => 'post_entry_header_group',
10723
+ 'label' => __pl('current_entry_header_color'),
10724
+ 'css' => ['body.pagelayer-body .entry-header' => 'color:{{val}};'],
10725
+ ),
10726
+ 'current_entry-content_color' => array(
10727
+ 'type' => 'color',
10728
+ 'screen' => 1,
10729
+ 'group' => 'post_content_group',
10730
+ 'label' => __pl('current_entry_content_color'),
10731
+ 'css' => ['body.pagelayer-body .entry-content' => 'color:{{val}};'],
10732
+ ),
10733
+ 'current_entry-footer_color' => array(
10734
+ 'type' => 'color',
10735
+ 'screen' => 1,
10736
+ 'group' => 'post_footer_group',
10737
+ 'label' => __pl('current_entry_footer_color'),
10738
+ 'css' => ['body.pagelayer-body .entry-footer' => 'color:{{val}};'],
10739
+ ),
10740
+ 'current_body_background_color' => array(
10741
+ 'type' => 'color',
10742
+ 'screen' => 1,
10743
+ 'group' => 'post_body_group',
10744
+ 'label' => __pl('current_body_background_color'),
10745
+ 'css' => ['body.pagelayer-body ' => 'background-color:{{val}};'],
10746
+ ),
10747
+ 'current_header_background_color' => array(
10748
+ 'type' => 'color',
10749
+ 'screen' => 1,
10750
+ 'group' => 'post_header_group',
10751
+ 'label' => __pl('current_header_background_color'),
10752
+ 'css' => ['body.pagelayer-body header' => 'background-color:{{val}};'],
10753
+ ),
10754
+ 'current_h1_background_color' => array(
10755
+ 'type' => 'color',
10756
+ 'screen' => 1,
10757
+ 'group' => 'post_h1_group',
10758
+ 'label' => __pl('current_h1_background_color'),
10759
+ 'css' => ['body.pagelayer-body h1' => 'background-color:{{val}};'],
10760
+ ),
10761
+ 'current_h2_background_color' => array(
10762
+ 'type' => 'color',
10763
+ 'screen' => 1,
10764
+ 'group' => 'post_h2_group',
10765
+ 'label' => __pl('current_h2_background_color'),
10766
+ 'css' => ['body.pagelayer-body h2' => 'background-color:{{val}};'],
10767
+ ),
10768
+ 'current_h3_background_color' => array(
10769
+ 'type' => 'color',
10770
+ 'screen' => 1,
10771
+ 'group' => 'post_h3_group',
10772
+ 'label' => __pl('current_h3_background_color'),
10773
+ 'css' => ['body.pagelayer-body h3' => 'background-color:{{val}};'],
10774
+ ),
10775
+ 'current_h4_background_color' => array(
10776
+ 'type' => 'color',
10777
+ 'screen' => 1,
10778
+ 'label' => __pl('current_h4_background_color'),
10779
+ 'group' => 'post_h4_group',
10780
+ 'css' => ['body.pagelayer-body h4' => 'background-color:{{val}};'],
10781
+ ),
10782
+ 'current_h5_background_color' => array(
10783
+ 'type' => 'color',
10784
+ 'screen' => 1,
10785
+ 'group' => 'post_h5_group',
10786
+ 'label' => __pl('current_h5_background_color'),
10787
+ 'css' => ['body.pagelayer-body h5' => 'background-color:{{val}};'],
10788
+ ),
10789
+ 'current_h6_background_color' => array(
10790
+ 'type' => 'color',
10791
+ 'screen' => 1,
10792
+ 'group' => 'post_h6_group',
10793
+ 'label' => __pl('current_h6_background_color'),
10794
+ 'css' => ['body.pagelayer-body h6' => 'background-color:{{val}};'],
10795
+ ),
10796
+ 'current_b_background_color' => array(
10797
+ 'type' => 'color',
10798
+ 'screen' => 1,
10799
+ 'group' => 'post_b_group',
10800
+ 'label' => __pl('current_b_background_color'),
10801
+ 'css' => ['body.pagelayer-body b' => 'background-color:{{val}};'],
10802
+ ),
10803
+ 'current_i_background_color' => array(
10804
+ 'type' => 'color',
10805
+ 'screen' => 1,
10806
+ 'group' => 'post_i_group',
10807
+ 'label' => __pl('current_i_background_color'),
10808
+ 'css' => ['body.pagelayer-body i' => 'background-color:{{val}};'],
10809
+ ),
10810
+ 'current_a_background_color' => array(
10811
+ 'type' => 'color',
10812
+ 'screen' => 1,
10813
+ 'group' => 'post_a_group',
10814
+ 'label' => __pl('current_a_background_color'),
10815
+ 'css' => ['body.pagelayer-body a' => 'background-color:{{val}};'],
10816
+ ),
10817
+ 'current_a-hover_background_color' => array(
10818
+ 'type' => 'color',
10819
+ 'screen' => 1,
10820
+ 'group' => 'post_a_hover_group',
10821
+ 'label' => __pl('current_a_hover_background_color'),
10822
+ 'css' => ['body.pagelayer-body a:hover' => 'background-color:{{val}};'],
10823
+ ),
10824
+ 'current_aside_background_color' => array(
10825
+ 'type' => 'color',
10826
+ 'screen' => 1,
10827
+ 'group' => 'post_aside_group',
10828
+ 'label' => __pl('current_aside_background_color'),
10829
+ 'css' => ['body.pagelayer-body aside' => 'background-color:{{val}};'],
10830
+ ),
10831
+ 'current_p_background_color' => array(
10832
+ 'type' => 'color',
10833
+ 'screen' => 1,
10834
+ 'group' => 'post_p_group',
10835
+ 'label' => __pl('current_p_background_color'),
10836
+ 'css' => ['body.pagelayer-body p' => 'background-color:{{val}};'],
10837
+ ),
10838
+ 'current_entry-header_background_color' => array(
10839
+ 'type' => 'color',
10840
+ 'screen' => 1,
10841
+ 'group' => 'post_entry_header_group',
10842
+ 'label' => __pl('current_entry_header_background_color'),
10843
+ 'css' => ['body.pagelayer-body .entry-header' => 'background-color:{{val}};'],
10844
+ ),
10845
+ 'current_entry-content_background_color' => array(
10846
+ 'type' => 'color',
10847
+ 'screen' => 1,
10848
+ 'group' => 'post_content_group',
10849
+ 'label' => __pl('current_entry_content_background_color'),
10850
+ 'css' => ['body.pagelayer-body .entry-content' => 'background-color:{{val}};'],
10851
+ ),
10852
+ 'current_entry-footer_background_color' => array(
10853
+ 'type' => 'color',
10854
+ 'screen' => 1,
10855
+ 'group' => 'post_footer_group',
10856
+ 'label' => __pl('current_entry_footer_background_color'),
10857
+ 'css' => ['body.pagelayer-body .entry-footer' => 'background-color:{{val}};'],
10858
+ ),
10859
+ 'current_body_padding' => array(
10860
+ 'type' => 'padding',
10861
+ 'label' => __pl('current_body_padding'),
10862
+ 'screen' => 1,
10863
+ 'group' => 'post_body_group',
10864
+ 'css' => ['body.pagelayer-body' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10865
+ ),
10866
+ 'current_body_margin' => array(
10867
+ 'type' => 'padding',
10868
+ 'label' => __pl('current_body_margin'),
10869
+ 'screen' => 1,
10870
+ 'group' => 'post_body_group',
10871
+ 'css' => ['body.pagelayer-body' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10872
+ ),
10873
+ 'current_header_padding' => array(
10874
+ 'type' => 'padding',
10875
+ 'label' => __pl('current_header_padding'),
10876
+ 'screen' => 1,
10877
+ 'group' => 'post_header_group',
10878
+ 'css' => ['body.pagelayer-body header' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10879
+ ),
10880
+ 'current_header_margin' => array(
10881
+ 'type' => 'padding',
10882
+ 'label' => __pl('current_header_margin'),
10883
+ 'screen' => 1,
10884
+ 'group' => 'post_header_group',
10885
+ 'css' => ['body.pagelayer-body header' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10886
+ ),
10887
+ 'current_h1_padding' => array(
10888
+ 'type' => 'padding',
10889
+ 'label' => __pl('current_h1_padding'),
10890
+ 'screen' => 1,
10891
+ 'group' => 'post_h1_group',
10892
+ 'css' => ['body.pagelayer-body h1' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10893
+ ),
10894
+ 'current_h1_margin' => array(
10895
+ 'type' => 'padding',
10896
+ 'label' => __pl('current_h1_margin'),
10897
+ 'screen' => 1,
10898
+ 'group' => 'post_h1_group',
10899
+ 'css' => ['body.pagelayer-body h1' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10900
+ ),
10901
+ 'current_h2_padding' => array(
10902
+ 'type' => 'padding',
10903
+ 'label' => __pl('current_h2_padding'),
10904
+ 'screen' => 1,
10905
+ 'group' => 'post_h2_group',
10906
+ 'css' => ['body.pagelayer-body h2' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10907
+ ),
10908
+ 'current_h2_margin' => array(
10909
+ 'type' => 'padding',
10910
+ 'label' => __pl('current_h2_margin'),
10911
+ 'screen' => 1,
10912
+ 'group' => 'post_h2_group',
10913
+ 'css' => ['body.pagelayer-body h2' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10914
+ ),
10915
+ 'current_h3_padding' => array(
10916
+ 'type' => 'padding',
10917
+ 'label' => __pl('current_h3_padding'),
10918
+ 'screen' => 1,
10919
+ 'group' => 'post_h3_group',
10920
+ 'css' => ['body.pagelayer-body h3' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10921
+ ),
10922
+ 'current_h3_margin' => array(
10923
+ 'type' => 'padding',
10924
+ 'label' => __pl('current_h3_margin'),
10925
+ 'screen' => 1,
10926
+ 'group' => 'post_h3_group',
10927
+ 'css' => ['body.pagelayer-body h3' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10928
+ ),
10929
+ 'current_h4_padding' => array(
10930
+ 'type' => 'padding',
10931
+ 'label' => __pl('current_h4_padding'),
10932
+ 'screen' => 1,
10933
+ 'group' => 'post_h4_group',
10934
+ 'css' => ['body.pagelayer-body h4' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10935
+ ),
10936
+ 'current_h4_margin' => array(
10937
+ 'type' => 'padding',
10938
+ 'label' => __pl('current_h4_margin'),
10939
+ 'screen' => 1,
10940
+ 'group' => 'post_h4_group',
10941
+ 'css' => ['body.pagelayer-body h4' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10942
+ ),
10943
+ 'current_h5_padding' => array(
10944
+ 'type' => 'padding',
10945
+ 'label' => __pl('current_h5_padding'),
10946
+ 'screen' => 1,
10947
+ 'group' => 'post_h5_group',
10948
+ 'css' => ['body.pagelayer-body h5' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10949
+ ),
10950
+ 'current_h5_margin' => array(
10951
+ 'type' => 'padding',
10952
+ 'label' => __pl('current_h5_margin'),
10953
+ 'screen' => 1,
10954
+ 'group' => 'post_h5_group',
10955
+ 'css' => ['body.pagelayer-body h5' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10956
+ ),
10957
+ 'current_h6_padding' => array(
10958
+ 'type' => 'padding',
10959
+ 'label' => __pl('current_h6_padding'),
10960
+ 'screen' => 1,
10961
+ 'group' => 'post_h6_group',
10962
+ 'css' => ['body.pagelayer-body h6' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10963
+ ),
10964
+ 'current_h6_margin' => array(
10965
+ 'type' => 'padding',
10966
+ 'label' => __pl('current_h6_margin'),
10967
+ 'screen' => 1,
10968
+ 'group' => 'post_h6_group',
10969
+ 'css' => ['body.pagelayer-body h6' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10970
+ ),
10971
+ 'current_b_padding' => array(
10972
+ 'type' => 'padding',
10973
+ 'label' => __pl('current_b_padding'),
10974
+ 'screen' => 1,
10975
+ 'group' => 'post_b_group',
10976
+ 'css' => ['body.pagelayer-body b' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10977
+ ),
10978
+ 'current_b_margin' => array(
10979
+ 'type' => 'padding',
10980
+ 'label' => __pl('current_b_margin'),
10981
+ 'screen' => 1,
10982
+ 'group' => 'post_b_group',
10983
+ 'css' => ['body.pagelayer-body b' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10984
+ ),
10985
+ 'current_i_padding' => array(
10986
+ 'type' => 'padding',
10987
+ 'label' => __pl('current_i_padding'),
10988
+ 'screen' => 1,
10989
+ 'group' => 'post_i_group',
10990
+ 'css' => ['body.pagelayer-body i' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10991
+ ),
10992
+ 'current_i_margin' => array(
10993
+ 'type' => 'padding',
10994
+ 'label' => __pl('current_i_margin'),
10995
+ 'screen' => 1,
10996
+ 'group' => 'post_i_group',
10997
+ 'css' => ['body.pagelayer-body i' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10998
+ ),
10999
+ 'current_a_padding' => array(
11000
+ 'type' => 'padding',
11001
+ 'label' => __pl('current_a_padding'),
11002
+ 'screen' => 1,
11003
+ 'group' => 'post_a_group',
11004
+ 'css' => ['body.pagelayer-body a' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
11005
+ ),
11006
+ 'current_a_margin' => array(
11007
+ 'type' => 'padding',
11008
+ 'label' => __pl('current_a_margin'),
11009
+ 'screen' => 1,
11010
+ 'group' => 'post_a_group',
11011
+ 'css' => ['body.pagelayer-body a' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11012
+ ),
11013
+ 'current_a-hover_padding' => array(
11014
+ 'type' => 'padding',
11015
+ 'label' => __pl('current_a_hover_padding'),
11016
+ 'screen' => 1,
11017
+ 'group' => 'post_a_hover_group',
11018
+ 'css' => ['body.pagelayer-body a:hover' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
11019
+ ),
11020
+ 'current_a-hover_margin' => array(
11021
+ 'type' => 'padding',
11022
+ 'label' => __pl('current_a_hover_margin'),
11023
+ 'screen' => 1,
11024
+ 'group' => 'post_a_hover_group',
11025
+ 'css' => ['body.pagelayer-body a:hover' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11026
+ ),
11027
+ 'current_aside_padding' => array(
11028
+ 'type' => 'padding',
11029
+ 'label' => __pl('current_aside_padding'),
11030
+ 'screen' => 1,
11031
+ 'group' => 'post_aside_group',
11032
+ 'css' => ['body.pagelayer-body aside' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
11033
+ ),
11034
+ 'current_aside_margin' => array(
11035
+ 'type' => 'padding',
11036
+ 'label' => __pl('current_aside_margin'),
11037
+ 'screen' => 1,
11038
+ 'group' => 'post_aside_group',
11039
+ 'css' => ['body.pagelayer-body aside' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11040
+ ),
11041
+ 'current_p_padding' => array(
11042
+ 'type' => 'padding',
11043
+ 'label' => __pl('current_p_padding'),
11044
+ 'screen' => 1,
11045
+ 'group' => 'post_p_group',
11046
+ 'css' => ['body.pagelayer-body p' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
11047
+ ),
11048
+ 'current_p_margin' => array(
11049
+ 'type' => 'padding',
11050
+ 'label' => __pl('current_p_margin'),
11051
+ 'screen' => 1,
11052
+ 'group' => 'post_p_group',
11053
+ 'css' => ['body.pagelayer-body p' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11054
+ ),
11055
+ 'current_entry-header_padding' => array(
11056
+ 'type' => 'padding',
11057
+ 'label' => __pl('current_entry_header_padding'),
11058
+ 'screen' => 1,
11059
+ 'group' => 'post_entry_header_group',
11060
+ 'css' => ['body.pagelayer-body .entry-header' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
11061
+ ),
11062
+ 'current_entry-header_margin' => array(
11063
+ 'type' => 'padding',
11064
+ 'label' => __pl('current_entry_header_margin'),
11065
+ 'screen' => 1,
11066
+ 'group' => 'post_entry_header_group',
11067
+ 'css' => ['body.pagelayer-body .entry-header' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11068
+ ),
11069
+ 'current_entry-content_padding' => array(
11070
+ 'type' => 'padding',
11071
+ 'label' => __pl('current_entry_content_padding'),
11072
+ 'screen' => 1,
11073
+ 'group' => 'post_content_group',
11074
+ 'css' => ['body.pagelayer-body .entry-content' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
11075
+ ),
11076
+ 'current_entry-content_margin' => array(
11077
+ 'type' => 'padding',
11078
+ 'label' => __pl('current_entry_content_margin'),
11079
+ 'screen' => 1,
11080
+ 'group' => 'post_content_group',
11081
+ 'css' => ['body.pagelayer-body .entry-content' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11082
+ ),
11083
+ 'current_entry-footer_padding' => array(
11084
+ 'type' => 'padding',
11085
+ 'label' => __pl('current_entry_footer_padding'),
11086
+ 'screen' => 1,
11087
+ 'group' => 'post_footer_group',
11088
+ 'css' => ['body.pagelayer-body .entry-footer' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
11089
+ ),
11090
+ 'current_entry-footer_margin' => array(
11091
+ 'type' => 'padding',
11092
+ 'label' => __pl('current_entry_footer_margin'),
11093
+ 'screen' => 1,
11094
+ 'group' => 'post_footer_group',
11095
+ 'css' => ['body.pagelayer-body .entry-footer' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11096
+ ),
11097
+ ),
11098
+ 'global_background' => array(
11099
+ 'ele_bg_type' => array(
11100
+ 'type' => 'radio',
11101
+ 'label' => __pl('Background Type'),
11102
+ 'list' => array(
11103
+ '' => __pl('none'),
11104
+ 'color' => __pl('color'),
11105
+ 'gradient' => __pl('gradient'),
11106
+ 'image' => __pl('image'),
11107
+ ),
11108
+ ),
11109
+ 'ele_bg_color' => array(
11110
+ 'type' => 'color',
11111
+ 'label' => __pl('color'),
11112
+ 'customizer_css' => 1,
11113
+ 'css' => ['body.pagelayer-body' => 'background: {{val}};'],
11114
+ 'req' => ['ele_bg_type' => 'color']
11115
+ ),
11116
+ 'ele_bg_gradient' => array(
11117
+ 'type' => 'gradient',
11118
+ 'label' => '',
11119
+ 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
11120
+ 'customizer_css' => 1,
11121
+ 'css' => ['body.pagelayer-body' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
11122
+ 'req' => ['ele_bg_type' => 'gradient']
11123
+ ),
11124
+ 'ele_img_color' => array(
11125
+ 'type' => 'color',
11126
+ 'label' => __pl('color'),
11127
+ 'desc' => __pl('fallback_color'),
11128
+ 'customizer_css' => 1,
11129
+ 'css' => ['body.pagelayer-body' => 'background-color: {{val}};'],
11130
+ 'req' => ['ele_bg_type' => 'image']
11131
+ ),
11132
+ 'ele_bg_img' => array(
11133
+ 'type' => 'image',
11134
+ 'label' => __pl('Image'),
11135
+ 'customizer_css' => 1,
11136
+ 'css' => ['body.pagelayer-body' => 'background-image: url("{{{ele_bg_img-url}}}");'],
11137
+ 'req' => ['ele_bg_type' => 'image']
11138
+ ),
11139
+ 'ele_bg_attachment' => array(
11140
+ 'type' => 'select',
11141
+ 'label' => __pl('ele_bg_attachment'),
11142
+ 'list' => array(
11143
+ '' => __pl('default'),
11144
+ 'scroll' => __pl('scroll'),
11145
+ 'fixed' => __pl('fixed')
11146
+ ),
11147
+ 'customizer_css' => 1,
11148
+ 'css' => ['body.pagelayer-body' => 'background-attachment: {{val}};'],
11149
+ 'req' => ['ele_bg_type' => 'image']
11150
+ ),
11151
+ 'ele_bg_posx' => array(
11152
+ 'type' => 'select',
11153
+ 'label' => __pl('ele_bg_posx'),
11154
+ 'list' => array(
11155
+ '' => __pl('default'),
11156
+ 'center' => __pl('center'),
11157
+ 'left' => __pl('left'),
11158
+ 'right' => __pl('right'),
11159
+ 'custom' => __pl('custom')
11160
+ ),
11161
+ 'customizer_css' => 1,
11162
+ 'css' => ['body.pagelayer-body' => 'background-position-x: {{val}};'],
11163
+ 'req' => ['ele_bg_type' => 'image']
11164
+ ),
11165
+ 'ele_bg_posx_custom' => array(
11166
+ 'label' => __pl('custom_x'),
11167
+ 'type' => 'slider',
11168
+ 'step' => 1,
11169
+ 'min' => -5000,
11170
+ 'max' => 5000,
11171
+ 'screen' => 1,
11172
+ 'units' => ['px', 'em', '%'],
11173
+ 'customizer_css' => 1,
11174
+ 'css' => ['body.pagelayer-body' => 'background-position-x: {{val}};'],
11175
+ 'req' => array(
11176
+ 'ele_bg_posx' => 'custom'
11177
+ ),
11178
+ ),
11179
+ 'ele_bg_posy' => array(
11180
+ 'type' => 'select',
11181
+ 'label' => __pl('ele_bg_posy'),
11182
+ 'list' => array(
11183
+ '' => __pl('default'),
11184
+ 'center' => __pl('center'),
11185
+ 'top' => __pl('top'),
11186
+ 'bottom' => __pl('bottom'),
11187
+ 'custom' => __pl('custom')
11188
+ ),
11189
+ 'customizer_css' => 1,
11190
+ 'css' => ['body.pagelayer-body' => 'background-position-y: {{val}};'],
11191
+ 'req' => ['ele_bg_type' => 'image']
11192
+ ),
11193
+ 'ele_bg_posy_custom' => array(
11194
+ 'label' => __pl('custom_y'),
11195
+ 'type' => 'slider',
11196
+ 'step' => 1,
11197
+ 'min' => -5000,
11198
+ 'max' => 5000,
11199
+ 'screen' => 1,
11200
+ 'units' => ['px', 'em', '%'],
11201
+ 'customizer_css' => 1,
11202
+ 'css' => ['body.pagelayer-body' => 'background-position-y: {{val}};'],
11203
+ 'req' => array(
11204
+ 'ele_bg_posy' => 'custom'
11205
+ ),
11206
+ ),
11207
+ 'ele_bg_repeat' => array(
11208
+ 'type' => 'select',
11209
+ 'label' => __pl('ele_bg_repeat'),
11210
+ 'customizer_css' => 1,
11211
+ 'css' => ['body.pagelayer-body' => 'background-repeat: {{val}};'],
11212
+ 'list' => array(
11213
+ '' => __pl('default'),
11214
+ 'repeat' => __pl('repeat'),
11215
+ 'no-repeat' => __pl('no-repeat'),
11216
+ 'repeat-x' => __pl('repeat-x'),
11217
+ 'repeat-y' => __pl('repeat-y'),
11218
+ ),
11219
+ 'req' => ['ele_bg_type' => 'image']
11220
+ ),
11221
+ 'ele_bg_size' => array(
11222
+ 'type' => 'select',
11223
+ 'label' => __pl('ele_bg_size'),
11224
+ 'customizer_css' => 1,
11225
+ 'css' => ['body.pagelayer-body' => 'background-size: {{val}};'],
11226
+ 'list' => array(
11227
+ '' => __pl('default'),
11228
+ 'cover' => __pl('cover'),
11229
+ 'contain' => __pl('contain')
11230
+ ),
11231
+ 'req' => ['ele_bg_type' => 'image']
11232
+ ),
11233
+ ),
11234
+ 'global_button' => array(
11235
+ 'button' => array(
11236
+ 'type' => 'typography',
11237
+ 'screen' => 1,
11238
+ 'label' => __pl('Typography'),
11239
+ 'customizer_css' => 1,
11240
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
11241
+ ),
11242
+ 'button_padding' => array(
11243
+ 'type' => 'padding',
11244
+ 'label' => __pl('global_btn_dim'),
11245
+ 'screen' => 1,
11246
+ 'customizer_css' => 1,
11247
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
11248
+ ),
11249
+ 'button_margin' => array(
11250
+ 'type' => 'padding',
11251
+ 'label' => __pl('spacing'),
11252
+ 'customizer_css' => 1,
11253
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11254
+ ),
11255
+ 'global_btn_state' => array(
11256
+ 'type' => 'radio',
11257
+ 'label' => __pl('button_state'),
11258
+ 'default' => 'normal',
11259
+ 'list' => array(
11260
+ 'normal' => __pl('Normal'),
11261
+ 'hover' => __pl('Hover'),
11262
+ ),
11263
+ ),
11264
+ 'button_color' => array(
11265
+ 'type' => 'color',
11266
+ 'label' => __pl('iconbox_button_color'),
11267
+ 'customizer_css' => 1,
11268
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'color:{{val}};'],
11269
+ 'show' => ['global_btn_state' => 'normal']
11270
+ ),
11271
+ 'button_background_color' => array(
11272
+ 'type' => 'color',
11273
+ 'label' => __pl('global_button_bg_color'),
11274
+ 'customizer_css' => 1,
11275
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'background-color:{{val}};'],
11276
+ 'show' => ['global_btn_state' => 'normal']
11277
+ ),
11278
+ 'button_hover_color' => array(
11279
+ 'type' => 'color',
11280
+ 'label' => __pl('iconbox_button_color'),
11281
+ 'customizer_css' => 1,
11282
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder:hover' => 'color:{{val}};'],
11283
+ 'show' => ['global_btn_state' => 'hover'],
11284
+ ),
11285
+ 'button_hover_background_color' => array(
11286
+ 'type' => 'color',
11287
+ 'label' => __pl('global_button_bg_color_hover'),
11288
+ 'customizer_css' => 1,
11289
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder:hover' => 'background-color:{{val}};'],
11290
+ 'show' => ['global_btn_state' => 'hover'],
11291
+ ),
11292
+ ),
11293
+ 'woocommerce' => array(
11294
+ 'shop' => array(
11295
+ 'type' => 'select',
11296
+ 'label' => __pl('shop'),
11297
+ 'option' => 'woocommerce_shop_page_id',
11298
+ 'list' => pagelayer_get_posts(array('page')),
11299
+ ),
11300
+ 'cart' => array(
11301
+ 'type' => 'select',
11302
+ 'label' => __pl('cart'),
11303
+ 'option' => 'woocommerce_cart_page_id',
11304
+ 'list' => pagelayer_get_posts(array('page')),
11305
+ ),
11306
+ 'checkout' => array(
11307
+ 'type' => 'select',
11308
+ 'label' => __pl('checkout'),
11309
+ 'option' => 'woocommerce_checkout_page_id',
11310
+ 'list' => pagelayer_get_posts(array('page')),
11311
+ ),
11312
+ 'my_account' => array(
11313
+ 'type' => 'select',
11314
+ 'label' => __pl('my_account'),
11315
+ 'option' => 'woocommerce_myaccount_page_id',
11316
+ 'list' => pagelayer_get_posts(array('page')),
11317
+ ),
11318
+ 't_&c' => array(
11319
+ 'type' => 'select',
11320
+ 'label' => __pl('t_&c'),
11321
+ 'option' => 'woocommerce_terms_page_id',
11322
+ 'list' => pagelayer_get_posts(array('page')),
11323
+ ),
11324
+ ),
11325
+ 'styles' => $pagelayer->customizer_styles_options,
11326
+ )
11327
+
11328
+ );
11329
+ */
11330
 
11331
  ////////////////////////
11332
  // WordPress Group
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.6.3
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.6.4
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, form builder, landing page, responsiv
4
  Requires at least: 4.7
5
  Tested up to: 5.9
6
  Requires PHP: 5.5
7
- Stable tag: 1.6.3
8
  License: LGPL v2.1
9
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
 
@@ -127,6 +127,11 @@ Do you have questions related to Pagelayer? Use the following links :
127
 
128
  == Changelog ==
129
 
 
 
 
 
 
130
  = 1.6.3 (Jan 31, 2022) =
131
  * [Bug-Fix] In certain cases, the primary menu widget was not rendering properly. This is fixed.
132
  * [Bug-Fix] In certain cases, the posts widget slider was not working properly. This is fixed.
4
  Requires at least: 4.7
5
  Tested up to: 5.9
6
  Requires PHP: 5.5
7
+ Stable tag: 1.6.4
8
  License: LGPL v2.1
9
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
 
127
 
128
  == Changelog ==
129
 
130
+ = 1.6.4 (Feb 11, 2022) =
131
+ * [Task] WordPress 5.9 adds support for capability queries in WP_User_Query. We have tested and made required changes.
132
+ * [Bug-Fix] In certain cases, some style was not applied properly in the editor. This is fixed.
133
+ * [Bug-Fix] In the primary menu widget, after the menu item title was changed, the menu title was not updated. This is fixed.
134
+
135
  = 1.6.3 (Jan 31, 2022) =
136
  * [Bug-Fix] In certain cases, the primary menu widget was not rendering properly. This is fixed.
137
  * [Bug-Fix] In certain cases, the posts widget slider was not working properly. This is fixed.