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

Version Description

(May 10, 2021) = * [Feature] Added icon option for the toggle menu. * [Task] The post info widget has been improved for the tag and category styles. * [Task] Added title and alt attributes for all possible image tags for improving accessibility reading. * [Bug-Fix] In some cases the post props were not working properly. This is fixed.

Download this release

Release Info

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

Code changes from version 1.4.9 to 1.5.0

css/combined.css CHANGED
@@ -329,7 +329,7 @@ max-width: 100%;
329
  .pagelayer-service-btn{
330
  display:inline-block;
331
  position:relative;
332
- z-index:999;
333
  }
334
 
335
  .pagelayer-service-details{
329
  .pagelayer-service-btn{
330
  display:inline-block;
331
  position:relative;
332
+ z-index:9;
333
  }
334
 
335
  .pagelayer-service-details{
css/pagelayer-editor.css CHANGED
@@ -835,6 +835,7 @@ line-height: 20px;
835
  font-style: italic;
836
  margin-top: 5px;
837
  display:block;
 
838
  }
839
 
840
  .pagelayer-elpd-body input,
835
  font-style: italic;
836
  margin-top: 5px;
837
  display:block;
838
+ word-break: break-word;
839
  }
840
 
841
  .pagelayer-elpd-body input,
css/pagelayer-frontend.css CHANGED
@@ -329,7 +329,7 @@ max-width: 100%;
329
  .pagelayer-service-btn{
330
  display:inline-block;
331
  position:relative;
332
- z-index:999;
333
  }
334
 
335
  .pagelayer-service-details{
329
  .pagelayer-service-btn{
330
  display:inline-block;
331
  position:relative;
332
+ z-index:9;
333
  }
334
 
335
  .pagelayer-service-details{
images/404image.jpg ADDED
Binary file
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.4.9');
9
  define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
10
  define('PAGELAYER_SLUG', 'pagelayer');
11
  define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
5
 
6
  define('PAGELAYER_BASE', plugin_basename(PAGELAYER_FILE));
7
  define('PAGELAYER_PRO_BASE', 'pagelayer-pro/pagelayer-pro.php');
8
+ define('PAGELAYER_VERSION', '1.5.0');
9
  define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
10
  define('PAGELAYER_SLUG', 'pagelayer');
11
  define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
js/combined.js CHANGED
@@ -138,6 +138,11 @@ jQuery(window).resize(function() {
138
 
139
  }, 200);
140
 
 
 
 
 
 
141
  });
142
 
143
  // Check if element is visible
@@ -1024,15 +1029,20 @@ function pagelayer_primary_menu(jEle){
1024
  }
1025
 
1026
  // Menu toggle
 
1027
  jQuery(menu_bar).unbind('click');
1028
  jQuery(menu_bar).click(function(){
1029
  jQuery(container).toggleClass('pagelayer-togglt-on');
 
 
 
 
1030
  if(jQuery(container).hasClass('pagelayer-togglt-on')){
1031
- jQuery(this).removeClass('fa-bars');
1032
- jQuery(this).addClass('fa-times');
1033
  }else{
1034
- jQuery(this).addClass('fa-bars');
1035
- jQuery(this).removeClass('fa-times');
1036
  }
1037
  });
1038
 
@@ -1059,8 +1069,8 @@ function pagelayer_primary_menu(jEle){
1059
  close.unbind('click');
1060
  close.click(function(){
1061
  jQuery(container).toggleClass('pagelayer-togglt-on');
1062
- jQuery(menu_bar).removeClass('fa-times');
1063
- jQuery(menu_bar).addClass('fa-bars');
1064
  })
1065
 
1066
  }
138
 
139
  }, 200);
140
 
141
+ // Primary Menu
142
+ jQuery('.pagelayer-wp_menu').each(function(){
143
+ pagelayer_primary_menu(jQuery(this));
144
+ });
145
+
146
  });
147
 
148
  // Check if element is visible
1029
  }
1030
 
1031
  // Menu toggle
1032
+ var toggle_class;
1033
  jQuery(menu_bar).unbind('click');
1034
  jQuery(menu_bar).click(function(){
1035
  jQuery(container).toggleClass('pagelayer-togglt-on');
1036
+
1037
+ toggle_class = jQuery(this).data('icon');
1038
+ toggle_class = ( pagelayer_empty(toggle_class) ? 'fas fa-bars' : toggle_class );
1039
+
1040
  if(jQuery(container).hasClass('pagelayer-togglt-on')){
1041
+ jQuery(this).removeClass(toggle_class);
1042
+ jQuery(this).addClass('fas fa-times');
1043
  }else{
1044
+ jQuery(this).removeClass('fas fa-times');
1045
+ jQuery(this).addClass(toggle_class);
1046
  }
1047
  });
1048
 
1069
  close.unbind('click');
1070
  close.click(function(){
1071
  jQuery(container).toggleClass('pagelayer-togglt-on');
1072
+ jQuery(menu_bar).removeClass('fas fa-times');
1073
+ jQuery(menu_bar).addClass(toggle_class);
1074
  })
1075
 
1076
  }
js/pagelayer-frontend.js CHANGED
@@ -138,6 +138,11 @@ jQuery(window).resize(function() {
138
 
139
  }, 200);
140
 
 
 
 
 
 
141
  });
142
 
143
  // Check if element is visible
@@ -1024,15 +1029,20 @@ function pagelayer_primary_menu(jEle){
1024
  }
1025
 
1026
  // Menu toggle
 
1027
  jQuery(menu_bar).unbind('click');
1028
  jQuery(menu_bar).click(function(){
1029
  jQuery(container).toggleClass('pagelayer-togglt-on');
 
 
 
 
1030
  if(jQuery(container).hasClass('pagelayer-togglt-on')){
1031
- jQuery(this).removeClass('fa-bars');
1032
- jQuery(this).addClass('fa-times');
1033
  }else{
1034
- jQuery(this).addClass('fa-bars');
1035
- jQuery(this).removeClass('fa-times');
1036
  }
1037
  });
1038
 
@@ -1059,8 +1069,8 @@ function pagelayer_primary_menu(jEle){
1059
  close.unbind('click');
1060
  close.click(function(){
1061
  jQuery(container).toggleClass('pagelayer-togglt-on');
1062
- jQuery(menu_bar).removeClass('fa-times');
1063
- jQuery(menu_bar).addClass('fa-bars');
1064
  })
1065
 
1066
  }
138
 
139
  }, 200);
140
 
141
+ // Primary Menu
142
+ jQuery('.pagelayer-wp_menu').each(function(){
143
+ pagelayer_primary_menu(jQuery(this));
144
+ });
145
+
146
  });
147
 
148
  // Check if element is visible
1029
  }
1030
 
1031
  // Menu toggle
1032
+ var toggle_class;
1033
  jQuery(menu_bar).unbind('click');
1034
  jQuery(menu_bar).click(function(){
1035
  jQuery(container).toggleClass('pagelayer-togglt-on');
1036
+
1037
+ toggle_class = jQuery(this).data('icon');
1038
+ toggle_class = ( pagelayer_empty(toggle_class) ? 'fas fa-bars' : toggle_class );
1039
+
1040
  if(jQuery(container).hasClass('pagelayer-togglt-on')){
1041
+ jQuery(this).removeClass(toggle_class);
1042
+ jQuery(this).addClass('fas fa-times');
1043
  }else{
1044
+ jQuery(this).removeClass('fas fa-times');
1045
+ jQuery(this).addClass(toggle_class);
1046
  }
1047
  });
1048
 
1069
  close.unbind('click');
1070
  close.click(function(){
1071
  jQuery(container).toggleClass('pagelayer-togglt-on');
1072
+ jQuery(menu_bar).removeClass('fas fa-times');
1073
+ jQuery(menu_bar).addClass(toggle_class);
1074
  })
1075
 
1076
  }
js/properties.js CHANGED
@@ -3623,6 +3623,7 @@ function pagelayer_elp_dimension(row, prop){
3623
 
3624
  };
3625
 
 
3626
  // Post Category property
3627
  function pagelayer_elp_postCategory(row, prop){
3628
 
@@ -3643,9 +3644,28 @@ function pagelayer_elp_postCategory(row, prop){
3643
  unchecked_list += list.outerHTML;
3644
  }
3645
  }
 
3646
  return ('<div class="pagelayer-post-cat-div" ><ul class="pagelayer-post-category" >'+checked_list+unchecked_list+'</ul></div>');
3647
  }
3648
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3649
  // For making insert new categories functionality.
3650
  row.append(checked_on_top(pagelayer_post_categories.with_checkbox));
3651
 
@@ -3702,20 +3722,21 @@ function pagelayer_elp_postCategory(row, prop){
3702
  var new_cat_elem = jQuery(obj.with_checkbox).find('input[value='+obj.new_cat_id+']').closest('li');
3703
  var post_cat = row.find('.pagelayer-post-category');
3704
 
3705
- // Does the new element have no parents ? Then prepend the <LI> to the existing list shown
3706
  if(!pagelayer_empty(new_cat_elem.parent('.pagelayer-post-category').length)){
3707
  post_cat.prepend(new_cat_elem);
3708
  }else{
3709
 
3710
- // Siblings are already there ?
3711
  if(!pagelayer_empty(new_cat_elem.siblings().length)){
3712
  post_cat.find('#'+new_cat_elem.parent().parent('li').attr('id')).children('ul').append(new_cat_elem);
3713
  // No siblings, hence append
3714
- }else{
3715
  new_cat_elem = new_cat_elem.parent();
3716
  post_cat.find('#'+new_cat_elem.closest('li').attr('id')).append(new_cat_elem);
3717
  }
3718
- post_cat.prepend(new_cat_elem.parents('li'));
 
3719
  }
3720
 
3721
  row.find('#pagelayer_cat_parent').replaceWith(obj.without_checkbox.replace('>', '><option class="level-0" value="0">--No Parent--</option>'));
@@ -3724,6 +3745,7 @@ function pagelayer_elp_postCategory(row, prop){
3724
  row.find('#pagelayer_cat_parent option[value="0"]').attr('selected', true);
3725
  checked_cat(row.find('.pagelayer-post-cat-div'));
3726
  event_function();
 
3727
  }
3728
  });
3729
  });
@@ -3749,6 +3771,7 @@ function pagelayer_elp_postCategory(row, prop){
3749
  event_function();
3750
  }
3751
 
 
3752
  // Post tags property
3753
  function pagelayer_elp_postTags(row, prop){
3754
 
@@ -3771,6 +3794,9 @@ function pagelayer_elp_postTags(row, prop){
3771
  var singleTag = function(tags){
3772
  var html = '';
3773
  jQuery.each(tags, function(index, value){
 
 
 
3774
  html += '<span class="pagelayer-elp-tags-ele" data-val="'+value['term_id']+'"><span class="pagelayer-tags-label" >'+value['name']+'</span><span class="pagelayer-elp-tags-remove"><i class="fas fa-times"></i></span></span>';
3775
  });
3776
  return html;
@@ -3819,6 +3845,7 @@ function pagelayer_elp_postTags(row, prop){
3819
  if(!pagelayer_empty(resp.tag_id)){
3820
  insertTags(val, resp.tag_id);
3821
  tagSearching(resp);
 
3822
  }
3823
  }
3824
  });
@@ -3901,8 +3928,29 @@ function pagelayer_elp_postTags(row, prop){
3901
 
3902
  });
3903
  }
3904
-
3905
- row.find('.pagelayer-post-tags').prepend(singleTag(pagelayer_post_tags.postTags));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3906
 
3907
  tagSearching(pagelayer_post_tags);
3908
 
3623
 
3624
  };
3625
 
3626
+ var first_time_cat = true;
3627
  // Post Category property
3628
  function pagelayer_elp_postCategory(row, prop){
3629
 
3644
  unchecked_list += list.outerHTML;
3645
  }
3646
  }
3647
+
3648
  return ('<div class="pagelayer-post-cat-div" ><ul class="pagelayer-post-category" >'+checked_list+unchecked_list+'</ul></div>');
3649
  }
3650
 
3651
+ // Getting checked and unchecked categories on opening of page props settings.
3652
+ if(first_time_cat == false){
3653
+
3654
+ var $div = jQuery('<div>').html(pagelayer_post_categories.with_checkbox);
3655
+ $div.find('input[type=checkbox]').attr('checked', false);
3656
+
3657
+ if(!pagelayer_empty(prop.c['val'])){
3658
+ for(var no of prop.c['val'].split(',')){
3659
+ $div.find('input[type=checkbox][value='+no+']').attr('checked', true);
3660
+ }
3661
+ }
3662
+
3663
+ pagelayer_post_categories.with_checkbox = $div.html();
3664
+
3665
+ }
3666
+
3667
+ first_time_cat = false;
3668
+
3669
  // For making insert new categories functionality.
3670
  row.append(checked_on_top(pagelayer_post_categories.with_checkbox));
3671
 
3722
  var new_cat_elem = jQuery(obj.with_checkbox).find('input[value='+obj.new_cat_id+']').closest('li');
3723
  var post_cat = row.find('.pagelayer-post-category');
3724
 
3725
+ // Does the new element have no parents ? Then prepend the <LI> to the existing list shown
3726
  if(!pagelayer_empty(new_cat_elem.parent('.pagelayer-post-category').length)){
3727
  post_cat.prepend(new_cat_elem);
3728
  }else{
3729
 
3730
+ // Siblings are already there ?
3731
  if(!pagelayer_empty(new_cat_elem.siblings().length)){
3732
  post_cat.find('#'+new_cat_elem.parent().parent('li').attr('id')).children('ul').append(new_cat_elem);
3733
  // No siblings, hence append
3734
+ }else{
3735
  new_cat_elem = new_cat_elem.parent();
3736
  post_cat.find('#'+new_cat_elem.closest('li').attr('id')).append(new_cat_elem);
3737
  }
3738
+
3739
+ post_cat.prepend(new_cat_elem.parentsUntil('.pagelayer-post-category').last());
3740
  }
3741
 
3742
  row.find('#pagelayer_cat_parent').replaceWith(obj.without_checkbox.replace('>', '><option class="level-0" value="0">--No Parent--</option>'));
3745
  row.find('#pagelayer_cat_parent option[value="0"]').attr('selected', true);
3746
  checked_cat(row.find('.pagelayer-post-cat-div'));
3747
  event_function();
3748
+ pagelayer_post_categories = obj;
3749
  }
3750
  });
3751
  });
3771
  event_function();
3772
  }
3773
 
3774
+ var first_time_tag = true;
3775
  // Post tags property
3776
  function pagelayer_elp_postTags(row, prop){
3777
 
3794
  var singleTag = function(tags){
3795
  var html = '';
3796
  jQuery.each(tags, function(index, value){
3797
+ if(pagelayer_empty(value['term_id'])){
3798
+ return;
3799
+ }
3800
  html += '<span class="pagelayer-elp-tags-ele" data-val="'+value['term_id']+'"><span class="pagelayer-tags-label" >'+value['name']+'</span><span class="pagelayer-elp-tags-remove"><i class="fas fa-times"></i></span></span>';
3801
  });
3802
  return html;
3845
  if(!pagelayer_empty(resp.tag_id)){
3846
  insertTags(val, resp.tag_id);
3847
  tagSearching(resp);
3848
+ pagelayer_post_tags = resp;
3849
  }
3850
  }
3851
  });
3928
 
3929
  });
3930
  }
3931
+
3932
+ var tagsArray = pagelayer_post_tags.postTags;
3933
+
3934
+ // Getting tags on opening of page props settings.
3935
+ if( first_time_tag == false ){
3936
+
3937
+ var i=0;
3938
+ var tags_array = [];
3939
+
3940
+ // Create array for needed term_id with corresponding to the name.
3941
+ if(!pagelayer_empty(prop.c['val'])){
3942
+ for(var name of prop.c['val'].split(',')){
3943
+ tags_array[i] = pagelayer_post_tags.allTags.find(function(val){return val['name'] == name});
3944
+ i++;
3945
+ }
3946
+ }
3947
+
3948
+ tagsArray = tags_array;
3949
+ }
3950
+
3951
+ row.find('.pagelayer-post-tags').prepend(singleTag(tagsArray));
3952
+
3953
+ first_time_tag = false;
3954
 
3955
  tagSearching(pagelayer_post_tags);
3956
 
js/widgets.js CHANGED
@@ -829,6 +829,11 @@ var pagelayer_nav = {};
829
  // Render the Primary menu
830
  function pagelayer_render_pl_wp_menu(el){
831
 
 
 
 
 
 
832
  if(pagelayer_empty(pagelayer_nav[el.atts['nav_list']])){
833
  jQuery.ajax({
834
  url: pagelayer_ajax_url+'&action=pagelayer_fetch_primary_menu',
829
  // Render the Primary menu
830
  function pagelayer_render_pl_wp_menu(el){
831
 
832
+ // Setting default toggle icon. If the icon is empty.
833
+ if(pagelayer_empty(el.atts['menu_toggle_icon'])){
834
+ el.atts['menu_toggle_icon'] = 'fas fa-bars';
835
+ }
836
+
837
  if(pagelayer_empty(pagelayer_nav[el.atts['nav_list']])){
838
  jQuery.ajax({
839
  url: pagelayer_ajax_url+'&action=pagelayer_fetch_primary_menu',
languages/en.json CHANGED
@@ -1166,6 +1166,7 @@
1166
  "theme_commment" : "Theme Comments",
1167
  "post_info" : "Post Info",
1168
  "post_info_list" : "Post Info List",
 
1169
  "post_list" : "Post List",
1170
  "post_title" : "Post Title",
1171
  "classic" : "Classic",
@@ -1869,5 +1870,8 @@
1869
  "page_attributes" : "Page Attributes",
1870
  "post_parent" : "Parent Page",
1871
  "delete_post_conf" : "Are you sure you want to delete this ?",
1872
- "empty_post_content" : "The content of the post is empty. Are you sure you want to save the post with blank content."
 
 
 
1873
  }
1166
  "theme_commment" : "Theme Comments",
1167
  "post_info" : "Post Info",
1168
  "post_info_list" : "Post Info List",
1169
+ "terms_style" : "Tags & Categories Style",
1170
  "post_list" : "Post List",
1171
  "post_title" : "Post Title",
1172
  "classic" : "Classic",
1870
  "page_attributes" : "Page Attributes",
1871
  "post_parent" : "Parent Page",
1872
  "delete_post_conf" : "Are you sure you want to delete this ?",
1873
+ "empty_post_content" : "The content of the post is empty. Are you sure you want to save the post with blank content.",
1874
+ "post_tag_desc" : "Separate with commas or the Enter key.",
1875
+ "post_pass_with_sticky_err" : "Publishing failed! A post can not be Sticky and have a Password.",
1876
+ "menu_toggle_icon_desc" : "If no icon is selected a bar icon will be shown"
1877
  }
main/ajax.php CHANGED
@@ -213,6 +213,11 @@ function pagelayer_save_content(){
213
  }
214
  }
215
 
 
 
 
 
 
216
  $post['comment_status'] = !empty($_REQUEST['comment_status']) ? 'open' : 'closed';
217
  $post['ping_status'] = !empty($_REQUEST['ping_status']) ? 'open' : 'closed';
218
 
@@ -254,26 +259,28 @@ function pagelayer_save_content(){
254
  delete_post_thumbnail($postID);
255
  }
256
 
257
- if(isset($_REQUEST['post_category'])){
258
- if($_post->post_type == 'post'){
259
- $post['post_category'] = explode(',', sanitize_text_field($_REQUEST['post_category']));
260
- }else{
261
- $cat_name = pagelayer_post_type_category($_post->post_type);
262
- if($cat_name){
263
- $post['tax_input'][$cat_name] = explode(',', sanitize_text_field($_REQUEST['post_category']));
264
- }
265
- }
266
  }
267
 
268
- if(isset($_REQUEST['post_tags'])){
269
- if($_post->post_type == 'post'){
270
- $post['tags_input'] = explode(',', sanitize_text_field($_REQUEST['post_tags']));
271
- }else{
272
- $tag_name = pagelayer_post_type_tag($_post->post_type);
273
- if($tag_name){
274
- $post['tax_input'][$tag_name] = explode(',', sanitize_text_field($_REQUEST['post_tags']));
275
- }
276
- }
 
 
 
 
 
 
 
 
 
277
  }
278
 
279
  if(isset($_REQUEST['post_sticky']) && !empty($_REQUEST['post_sticky'])){
@@ -2036,7 +2043,7 @@ function pagelayer_get_post_tags(){
2036
  pagelayer_json_output($ret);
2037
  }
2038
 
2039
- $tag_name = pagelayer_post_type_category($post->post_type);
2040
 
2041
  if(!empty($_POST['new_tag'])){
2042
  $ret['tag_id'] = wp_insert_term($_POST['new_tag'], $tag_name);
213
  }
214
  }
215
 
216
+ if(!empty($post['post_password']) && $_REQUEST['post_sticky'] == true){
217
+ $msg['error'] = __pl('post_pass_with_sticky_err');
218
+ pagelayer_json_output($msg);
219
+ }
220
+
221
  $post['comment_status'] = !empty($_REQUEST['comment_status']) ? 'open' : 'closed';
222
  $post['ping_status'] = !empty($_REQUEST['ping_status']) ? 'open' : 'closed';
223
 
259
  delete_post_thumbnail($postID);
260
  }
261
 
262
+ if(!isset($_REQUEST['post_category'])){
263
+ $_REQUEST['post_category'] = '';
 
 
 
 
 
 
 
264
  }
265
 
266
+ if(!isset($_REQUEST['post_tags'])){
267
+ $_REQUEST['post_tags'] = '';
268
+ }
269
+
270
+ if($_post->post_type == 'post'){
271
+ $post['post_category'] = explode(',', sanitize_text_field($_REQUEST['post_category']));
272
+
273
+ $post['tags_input'] = explode(',', sanitize_text_field($_REQUEST['post_tags']));
274
+ }else{
275
+ $cat_name = pagelayer_post_type_category($_post->post_type);
276
+ if($cat_name){
277
+ $post['tax_input'][$cat_name] = explode(',', sanitize_text_field($_REQUEST['post_category']));
278
+ }
279
+
280
+ $tag_name = pagelayer_post_type_tag($_post->post_type);
281
+ if($tag_name){
282
+ $post['tax_input'][$tag_name] = explode(',', sanitize_text_field($_REQUEST['post_tags']));
283
+ }
284
  }
285
 
286
  if(isset($_REQUEST['post_sticky']) && !empty($_REQUEST['post_sticky'])){
2043
  pagelayer_json_output($ret);
2044
  }
2045
 
2046
+ $tag_name = pagelayer_post_type_tag($post->post_type);
2047
 
2048
  if(!empty($_POST['new_tag'])){
2049
  $ret['tag_id'] = wp_insert_term($_POST['new_tag'], $tag_name);
main/import.php CHANGED
@@ -1431,8 +1431,19 @@ function pagelayer_blog_templates($pgl){
1431
  "id": ""
1432
  }
1433
  ]
 
 
 
 
 
 
 
 
 
 
 
 
1434
  }
1435
-
1436
  }';
1437
 
1438
  $conf = json_decode($conf, true);
@@ -1440,66 +1451,85 @@ function pagelayer_blog_templates($pgl){
1440
  // Do we have the blog template ?
1441
  if(empty($pgl['blog-template'])){
1442
 
1443
- $conf['blog-template']['post_content'] = '[pl_row pagelayer-id="ffbgB5e4xPIruUJC" stretch="auto" col_gap="10" width_content="auto" row_height="default" overlay_hover_delay="400" row_shape_top_color="#227bc3" row_shape_top_width="100" row_shape_top_height="100" row_shape_bottom_color="#e44993" row_shape_bottom_width="100" row_shape_bottom_height="100"]
1444
- [pl_col pagelayer-id="aF6cze85x0CVnb4I" overlay_hover_delay="400"]
1445
- [pl_archive_title pagelayer-id="a6sL2H8c5FJDwHmL" align="left" typo=",,,,,,Solid,,,," ele_margin="0px,0px,18px,0px" font_size="28"]
1446
- [/pl_archive_title]
1447
- [pl_archive_posts pagelayer-id="CrFuxlpqwrKx1cok" type="default" columns="3" columns_mobile="1" col_gap="20" row_gap="40" data_padding="5,5,5,5" bg_color="#ffffff" show_thumb="true" show_title="true" meta="author,date,comments" meta_sep="|" show_content="excerpt" content_color="#121212" content_align="left" pagination="number_prev_next" thumb_size="medium_large" ratio="0.7" title_color="#0986c0" title_typo=",18,,,,,solid,,,," exc_length="10" pagi_prev_text="Previous" pagi_next_text="Next" pagi_end_size="1" pagi_mid_size="2" pagi_align="center"]
1448
- [/pl_archive_posts]
1449
- [/pl_col]
1450
- [/pl_row]';
1451
 
1452
  $pgl['blog-template'] = $conf['blog-template'];
1453
 
1454
  }
1455
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1456
  // Do we have the blog template ?
1457
  if(empty($pgl['single-template'])){
1458
 
1459
- $conf['single-template']['post_content'] = '[pl_row pagelayer-id="TeNMIn3gRsvsyDZj" stretch="auto" col_gap="10" width_content="auto" row_height="default" overlay_hover_delay="400" row_shape_top_color="#227bc3" row_shape_top_width="100" row_shape_top_height="100" row_shape_bottom_color="#e44993" row_shape_bottom_width="100" row_shape_bottom_height="100"]
1460
- [pl_col pagelayer-id="qyP2XV3ClSd9cEWM" overlay_hover_delay="400"]
1461
- [pl_post_title pagelayer-id="nNt87422AXwZoBQg" title_color="" typo=",35,,700,,,solid,,,," align="center"]
1462
- [/pl_post_title]
1463
- [/pl_col]
1464
- [/pl_row]
1465
- [pl_row pagelayer-id="6UuOjtSrBDhWOnWG" stretch="auto" col_gap="10" width_content="fixed" row_height="default" overlay_hover_delay="400" row_shape_top_color="#227bc3" row_shape_top_width="100" row_shape_top_height="100" row_shape_bottom_color="#e44993" row_shape_bottom_width="100" row_shape_bottom_height="100" row_width="70%" fixed_width="70%" fixed_width_tablet="85%" fixed_width_mobile="100%"]
1466
- [pl_col pagelayer-id="gzGSF2JVwcPcNUk6" overlay_hover_delay="400" col_width="80" col="12"]
1467
- [pl_post_info pagelayer-id="gBDuE9nYBu0bIHyv" layout="vertical" space_between="15" align="center" icon_colors="normal" text_colors="normal"]
1468
- [pl_post_info_list pagelayer-id="ZMZjpaTiEc9Ien3t" type="author" info_link="true" info_icon_on="true" info_icon="fas fa-user-circle"]
1469
- [/pl_post_info_list]
1470
- [pl_post_info_list pagelayer-id="xI8gpn9VRfPDkZ0Q" type="date" info_link="true" info_icon_on="true" info_icon="fas fa-calendar-alt" date_format="default"]
1471
- [/pl_post_info_list]
1472
- [pl_post_info_list pagelayer-id="LaEZYd9SjEnQHsg3" type="time" info_link="true" info_icon_on="true" info_icon="fas fa-clock" time_format="default"]
1473
- [/pl_post_info_list]
1474
- [pl_post_info_list pagelayer-id="9lTHiEQJQqESt6YG" type="comments" info_link="true" info_icon_on="true" info_icon="fas fa-comment"]
1475
- [/pl_post_info_list]
1476
- [/pl_post_info]
1477
- [pl_post_excerpt pagelayer-id="NklzzZGW3ve1X8BS" pe_margin="20px,0px,15px,0px" align="left"]
1478
- [/pl_post_excerpt]
1479
- [pl_featured_img pagelayer-id="sZLiICVhGCbBTx1a" size="full" img_filter="0,100,100,0,0,100,100" caption_color="#0986c0" img_hover_delay="400" custom_size="70%,0%" align="center"]
1480
- [/pl_featured_img]
1481
- [pl_post_content pagelayer-id="7JbkxQEvq0skyUUl" ele_margin="25px,0px,35px,0px" font_size="NaN"]
1482
- [/pl_post_content]
1483
- [pl_post_info pagelayer-id="tvno5FCIKdwGa8IE" layout="horizontal" space_between="5" align="left" icon_colors="normal" text_colors="normal" input_typo=",,,,,,Solid,,,,"]
1484
- [pl_post_info_list pagelayer-id="SwoZ4cxl3XFMLE3l" type="terms" info_link="true" info_icon_on="" info_icon="fas fa-user-circle" taxonomy="category" info_before="Category :"]
1485
- [/pl_post_info_list]
1486
- [pl_post_info_list pagelayer-id="sgTqNx5LkBHODkrG" type="terms" info_link="true" info_icon_on="" info_icon="fas fa-user-circle" taxonomy="post_tag" info_before="Tags :"]
1487
- [/pl_post_info_list]
1488
- [/pl_post_info]
1489
- [/pl_col]
1490
- [/pl_row]
1491
- [pl_row pagelayer-id="heO1UxRj8lIQZ52M" stretch="auto" col_gap="10" width_content="auto" row_height="default" overlay_hover_delay="400" row_shape_top_color="#227bc3" row_shape_top_width="100" row_shape_top_height="100" row_shape_bottom_color="#e44993" row_shape_bottom_width="100" row_shape_bottom_height="100"]
1492
- [pl_col pagelayer-id="s3sgObVllcHz0CB7" overlay_hover_delay="400"]
1493
- [pl_post_nav pagelayer-id="RrRky7duRa9KGmsA" lables="true" post_title="true" arrows="true" sep_color="#bdbdbd" sep_rotate="20" sep_width="5" prev_label="Previous" next_label="Next" label_colors="normal" title_colors="normal" arrows_list="angle" icon_colors="normal"]
1494
- [/pl_post_nav]
1495
- [/pl_col]
1496
- [/pl_row]
1497
- [pl_row pagelayer-id="duGtpLrwHkOWbE0m" stretch="auto" col_gap="10" width_content="auto" row_height="default" overlay_hover_delay="400" row_shape_top_color="#227bc3" row_shape_top_width="100" row_shape_top_height="100" row_shape_bottom_color="#e44993" row_shape_bottom_width="100" row_shape_bottom_height="100"]
1498
- [pl_col pagelayer-id="ad58IjV6dHjcRBmV" overlay_hover_delay="400"]
1499
- [pl_post_comment pagelayer-id="bwueyBxPgdNLC1Ec" comment_skin="theme_comment" post_type="current"]
1500
- [/pl_post_comment]
1501
- [/pl_col]
1502
- [/pl_row]';
 
 
 
 
1503
 
1504
  $pgl['single-template'] = $conf['single-template'];
1505
 
1431
  "id": ""
1432
  }
1433
  ]
1434
+ },
1435
+ "404": {
1436
+ "type": "single",
1437
+ "title": "404",
1438
+ "conditions": [
1439
+ {
1440
+ "type": "include",
1441
+ "template": "singular",
1442
+ "sub_template": "404",
1443
+ "id": ""
1444
+ }
1445
+ ]
1446
  }
 
1447
  }';
1448
 
1449
  $conf = json_decode($conf, true);
1451
  // Do we have the blog template ?
1452
  if(empty($pgl['blog-template'])){
1453
 
1454
+ $conf['blog-template']['post_content'] = '<!-- sp:pagelayer/pl_row {"stretch":"auto","col_gap":"0","width_content":"auto","row_height":"default","overlay_hover_delay":"400","row_shape_top_color":"#227bc3","row_shape_top_width":"100","row_shape_top_height":"100","row_shape_bottom_color":"#e44993","row_shape_bottom_width":"100","row_shape_bottom_height":"100","ele_padding_tablet":"0px,0px,0px,0px","ele_padding_mobile":"0px,0px,0px,0px","ele_margin":"80px,0px,40px,0px","ele_padding":"0px,0px,0px,0px","pagelayer-id":"m4k2309"} -->
1455
+ <!-- sp:pagelayer/pl_col {"overlay_hover_delay":"400","widget_space":"0","col_width":"100","col_width_mobile":"100","ele_padding_mobile":"10px,10px,10px,10px","col_width_tablet":"100","ele_padding_tablet":"10px,10px,10px,10px","pagelayer-id":"8yo2717"} -->
1456
+ <!-- sp:pagelayer/pl_archive_posts {"type":"default","columns":"3","columns_mobile":"1","col_gap":"30","row_gap":"30","data_padding":"10,10,10,10","bg_color":"#ffffff","show_thumb":"true","show_title":"true","meta":"date","meta_sep":"","show_content":"excerpt","content_color":"#adb5bdff","content_align":"left","pagination":"number_prev_next","thumb_size":"medium_large","ratio":"0.7","title_color":"#495057ff","title_typo":",20,,bold,,,,,,,","exc_length":"10","pagi_prev_text":"Previous","pagi_next_text":"Next","pagi_end_size":"1","pagi_mid_size":"2","pagi_align":"center","box_shadow":"0,1,5,#00000026,0,","title_spacing":"0,0","meta_color":"#666666ff","meta_align":"left","meta_typo":"Roboto,12,,600,,,,,Uppercase,,","content_padding":"10,0,10,0","pagi_colors":"active","pagi_color":"#495057ff","pagi_hover_color":"#000000ff","pagi_current_color":"#000000ff","pagi_typo":",,,,,,,,,,","meta_tag_pos":"absolute","meta_width":"50%","meta_vposition":"bottom","meta_hposition":"left","meta_vposition_offset":"8px","meta_hposition_offset":"8px","show_more":"true","more":"Read More","align":"right","icon_position":"pagelayer-btn-icon-right","more_typo":"Roboto,12,,bold,,,,,Capitalize,,","btn_type":"pagelayer-btn-custom","size":"pagelayer-btn-custom","icon":"fas fa-angle-right","icon_spacing":"5","btn_bg_color":"#00000000","more_color":"#adb5bdff","btn_hover":"hover","btn_custom_size":"0,0","pagi_padding":"50,0,0,0","columns_tablet":"1","pagelayer-id":"mue2352"} /-->
1457
+ <!-- /sp:pagelayer/pl_col -->
1458
+ <!-- /sp:pagelayer/pl_row -->';
 
 
 
1459
 
1460
  $pgl['blog-template'] = $conf['blog-template'];
1461
 
1462
  }
1463
 
1464
+ // Do we have the blog template ?
1465
+ if(empty($pgl['404'])){
1466
+
1467
+ $conf['404']['post_content'] = '<!-- sp:pagelayer/pl_row {"stretch":"auto","col_gap":"10","width_content":"auto","row_height":"default","overlay_hover_delay":"400","row_shape_top_color":"#227bc3","row_shape_top_width":"100","row_shape_top_height":"100","row_shape_bottom_color":"#e44993","row_shape_bottom_width":"100","row_shape_bottom_height":"100","ele_margin":"120px,0px,120px,0px","ele_padding":"0px,0px,0px,0px","pagelayer-id":"rxs3267"} -->
1468
+ <!-- sp:pagelayer/pl_col {"widget_space":"15","overlay_hover_delay":"400","col_width":"50","col_width_mobile":"40","col_width_tablet":"40","pagelayer-id":"iyr6907"} -->
1469
+ <!-- sp:pagelayer/pl_image {"id":"{{pl_plugin_url}}/images/404image.jpg","id-size":"full","align":"right","img_hover":"normal","img_hover_delay":"400","caption_color":"#0986c0","max-width":"36","custom_size":"400x400","max-width_mobile":"100","max-width_tablet":"100","pagelayer-id":"tem415"} /-->
1470
+ <!-- /sp:pagelayer/pl_col -->
1471
+ <!-- sp:pagelayer/pl_col {"widget_space":"15","overlay_hover_delay":"400","content_pos":"center","col_width":"50","col_width_mobile":"55","col_width_tablet":"55","pagelayer-id":"wnp3287"} -->
1472
+ <!-- sp:pagelayer/pl_heading {"text":"\u003cp\u003eThe page you requested was not found we suggest you to go back to HomePage\u003c\/p\u003e","heading_state":"normal","align":"left","color":"#495057ff","heading_typo":",,,,,,,,,,","heading_text_shadow":",,,","ele_custom_pos":"true","ele_align":"margin","ele_height":"auto","ele_custom_width":"80%","ele_custom_width_mobile":"100%","ele_custom_width_tablet":"100%","pagelayer-id":"a8q1058"} --><p>The page you requested was not found we suggest you to go back to HomePage</p><!-- /sp:pagelayer/pl_heading -->
1473
+ <!-- sp:pagelayer/pl_btn {"text":"Back To HomePage","align":"left","type":"pagelayer-btn-custom","size":"pagelayer-btn-custom","btn_hover_delay":"400","icon_position":"pagelayer-btn-icon-left","icon_spacing":"5","link":"||link_id|page|home||","btn_typo":"Roboto,15,Normal,500,Normal,None,,1,Uppercase,1,1","btn_bg_color":"#ff8474ff","btn_color":"#ffffff","btn_custom_size":"25","btn_hover":"hover","btn_bg_color_hover":"#583d72ff","btn_color_hover":"#ffffffff","btn_shadow":"1,1,1,#000000ff,1,","btn_typo_mobile":",14,,,,,,,,,","btn_typo_tablet":",14,,,,,,,,,","pagelayer-id":"znu8912"} /-->
1474
+ <!-- /sp:pagelayer/pl_col -->
1475
+ <!-- /sp:pagelayer/pl_row -->';
1476
+
1477
+ $pgl['404'] = $conf['404'];
1478
+
1479
+ }
1480
+
1481
+
1482
  // Do we have the blog template ?
1483
  if(empty($pgl['single-template'])){
1484
 
1485
+ $conf['single-template']['post_content'] = '<!-- sp:pagelayer/pl_row {"stretch":"auto","col_gap":"0","width_content":"fixed","row_height":"default","overlay_hover_delay":"400","row_shape_top_color":"#227bc3","row_shape_top_width":"100","row_shape_top_height":"100","row_shape_bottom_color":"#e44993","row_shape_bottom_width":"100","row_shape_bottom_height":"100","ele_margin":"80px,0px,80px,0px","ele_padding":"0px,0px,0px,0px","fixed_width":"75%","fixed_width_mobile":"100%","fixed_width_tablet":"100%","pagelayer-id":"bdr9414"} -->
1486
+ <!-- sp:pagelayer/pl_col {"widget_space":"15","overlay_hover_delay":"400","ele_padding":"10px,10px,10px,10px","content_pos":"center","col_width":"100","pagelayer-id":"yfr4566"} -->
1487
+ <!-- sp:pagelayer/pl_post_title {"title_color":"#495057ff","typo":",35,,bold,,,,1.3,,,","shadow":"0,0,1,#000000ff","align":"left","typo_mobile":",30,,,,,,,,,","typo_tablet":",30,,,,,,,,,","pagelayer-id":"v7n9444"} /-->
1488
+ <!-- sp:pagelayer/pl_post_excerpt {"align":"left","pe_margin":"0px,0px,0px,0px","color":"#adb5bdff","typo":",15,Italic,500,,,,1.5,,,","ele_margin":"0px,0px,0px,0px","ele_padding":"0px,0px,0px,0px","pagelayer-id":"kgd1425"} /-->
1489
+ <!-- sp:pagelayer/pl_featured_img {"size":"full","img_filter":"0,100,100,0,0,100,100","caption_color":"#0986c0","img_hover_delay":"400","align":"center","img_shadow":"0,24,36,#0000001a,0,","custom_size":"80%,60%","pagelayer-id":"4wb1030"} /-->
1490
+ <!-- sp:pagelayer/pl_inner_row {"stretch":"auto","col_gap":"10","width_content":"auto","row_height":"default","overlay_hover_delay":"400","row_shape_top_color":"#227bc3","row_shape_top_width":"100","row_shape_top_height":"100","row_shape_bottom_color":"#e44993","row_shape_bottom_width":"100","row_shape_bottom_height":"100","pagelayer-id":"f8n3612"} -->
1491
+ <!-- sp:pagelayer/pl_inner_col {"widget_space":"15","overlay_hover_delay":"400","content_pos":"center","col":"4","pagelayer-id":"i795860"} -->
1492
+ <!-- sp:pagelayer/pl_post_info {"layout":"vertical","space_between":"25","align":"left","icon_colors":"normal","text_colors":"hover","icon_color_normal":"#495057ff","text_color_normal":"#495057ff","text_color_hover":"#000000ff","input_typo":"Roboto,14,,500,,,,1.6,,,","ele_align":"margin","ele_height":"auto","ele_width":"initial","icon_size":"120%","pagelayer-id":"qip3968"} -->
1493
+ <!-- sp:pagelayer/pl_post_info_list {"type":"author","info_link":"true","info_icon_on":"true","info_icon":"fas fa-user-circle","info_avatar":"true","info_avatar_size":"22","pagelayer-id":"l1i4146"} /-->
1494
+ <!-- sp:pagelayer/pl_post_info_list {"type":"date","info_link":"true","info_icon_on":"true","info_icon":"far fa-clock","date_format":"default","pagelayer-id":"xj43574"} /-->
1495
+ <!-- /sp:pagelayer/pl_post_info -->
1496
+ <!-- /sp:pagelayer/pl_inner_col -->
1497
+ <!-- sp:pagelayer/pl_inner_col {"widget_space":"15","overlay_hover_delay":"400","content_pos":"center","col":"7","pagelayer-id":"t2j1983"} -->
1498
+ <!-- sp:pagelayer/pl_post_info {"layout":"vertical","space_between":"0","align":"right","icon_colors":"normal","text_colors":"normal","icon_color_normal":"#495057ff","text_color_normal":"#0072ffff","text_color_hover":"","input_typo":"Roboto,14,,500,,,,1.6,,,","ele_align":"margin","ele_height":"auto","ele_width":"initial","icon_size":"120%","ele_position":"","ele_hposition":"left","ele_hposition_offset":"100%","ele_bg_type":"","ele_bg_color":"#66aaff26","ele_padding":"0px,0px,0px,0px","align_mobile":"left","align_tablet":"left","anchor_text_colors":"normal","anchor_text_color_normal":"#f48989ff","anchor_background_color_normal":"#4bd34bff","anchor_text_padding":"5,10,5,10","anchor_text_margin":"10,10,10,10","terms_text_colors":"normal","terms_background_color_normal":"#66aaff26","terms_text_color_normal":"#0072ffff","terms_text_padding":"5,10,5,10","terms_text_margin":"0,5,0,5","terms_border_radius":"4,4,4,4","pagelayer-id":"dbq3916"} -->
1499
+ <!-- sp:pagelayer/pl_post_info_list {"type":"terms","info_link":"true","info_icon_on":"","info_icon":"fas fa-user-circle","taxonomy":"category","pagelayer-id":"wpv7212"} /-->
1500
+ <!-- /sp:pagelayer/pl_post_info -->
1501
+ <!-- /sp:pagelayer/pl_inner_col -->
1502
+ <!-- /sp:pagelayer/pl_inner_row -->
1503
+ <!-- sp:pagelayer/pl_inner_row {"stretch":"auto","col_gap":"10","width_content":"auto","row_height":"default","overlay_hover_delay":"400","row_shape_top_color":"#227bc3","row_shape_top_width":"100","row_shape_top_height":"100","row_shape_bottom_color":"#e44993","row_shape_bottom_width":"100","row_shape_bottom_height":"100","pagelayer-id":"trw3096"} -->
1504
+ <!-- sp:pagelayer/pl_inner_col {"widget_space":"15","overlay_hover_delay":"400","content_pos":"center","col":"2","pagelayer-id":"wwu6541"} -->
1505
+ <!-- sp:pagelayer/pl_post_content {"align":"left","pagelayer-id":"ccj4284"} /-->
1506
+ <!-- /sp:pagelayer/pl_inner_col -->
1507
+ <!-- /sp:pagelayer/pl_inner_row -->
1508
+ <!-- sp:pagelayer/pl_inner_row {"stretch":"auto","col_gap":"10","width_content":"auto","row_height":"default","overlay_hover_delay":"400","row_shape_top_color":"#227bc3","row_shape_top_width":"100","row_shape_top_height":"100","row_shape_bottom_color":"#e44993","row_shape_bottom_width":"100","row_shape_bottom_height":"100","pagelayer-id":"wl6689"} -->
1509
+ <!-- sp:pagelayer/pl_inner_col {"widget_space":"15","overlay_hover_delay":"400","content_pos":"center","col":"6","pagelayer-id":"fja274"} -->
1510
+ <!-- sp:pagelayer/pl_post_info {"layout":"vertical","space_between":"0","align":"left","icon_colors":"normal","text_colors":"normal","icon_color_normal":"#495057ff","text_color_normal":"#0072ffff","text_color_hover":"","input_typo":"Roboto,13,,500,,,,1.6,Uppercase,,","ele_align":"margin","ele_height":"auto","ele_width":"initial","icon_size":"120%","ele_position":"","ele_hposition":"left","ele_hposition_offset":"100%","ele_bg_type":"","ele_bg_color":"#66aaff26","ele_padding":"0px,0px,0px,0px","align_mobile":"left","align_tablet":"left","anchor_text_colors":"normal","anchor_text_color_normal":"#f48989ff","anchor_background_color_normal":"#4bd34bff","anchor_text_padding":"5,10,5,10","anchor_text_margin":"10,10,10,10","terms_text_colors":"normal","terms_background_color_normal":"#66aaff26","terms_text_color_normal":"#0072ffff","terms_text_padding":"5,10,5,10","terms_text_margin":"0,5,0,5","terms_border_radius":"4,4,4,4","pagelayer-id":"dcl5111"} -->
1511
+ <!-- sp:pagelayer/pl_post_info_list {"type":"terms","info_link":"true","info_icon_on":"","info_icon":"fas fa-user-circle","taxonomy":"post_tag","info_before":"\ud83d\udd16Tags:","pagelayer-id":"7401458"} /-->
1512
+ <!-- /sp:pagelayer/pl_post_info -->
1513
+ <!-- /sp:pagelayer/pl_inner_col -->
1514
+ <!-- sp:pagelayer/pl_inner_col {"widget_space":"15","overlay_hover_delay":"400","content_pos":"center","col":"6","pagelayer-id":"jzl6522"} -->
1515
+ <!-- sp:pagelayer/pl_share_grp {"type":"icon-label","bg_shape":"pagelayer-social-bg-none","align":"right","vspace":"0","hspace":"0","height":"35","icon_size":"27","icon_space":"0","color_scheme":"pagelayer-scheme-official","icon_color":"#adb5bdff","social_hover_delay":"400","name_typo":"Roboto,15,,500,,,,,,,","count":"","icon_bg_color":"#00000000","social_hover":"","icon_color_hover":"#000000ff","icon_bg_color_hover":"#00000000","vspace_mobile":"10","hspace_mobile":"10","height_mobile":"NaN","icon_size_mobile":"20","name_typo_mobile":",13,,,,,,,,,","align_mobile":"left","align_tablet":"left","vspace_tablet":"10","hspace_tablet":"10","icon_size_tablet":"20","name_typo_tablet":",13,,,,,,,,,","pagelayer-id":"xsb5673"} -->
1516
+ <!-- sp:pagelayer/pl_share {"icon":"fab fa-facebook-square","target":"true","text":"Share on Facebook","pagelayer-id":"9mh2934"} /-->
1517
+ <!-- sp:pagelayer/pl_share {"icon":"fab fa-twitter-square","text":"Share on Twitter","target":"true","pagelayer-id":"rai4926"} /-->
1518
+ <!-- /sp:pagelayer/pl_share_grp -->
1519
+ <!-- /sp:pagelayer/pl_inner_col -->
1520
+ <!-- /sp:pagelayer/pl_inner_row -->
1521
+ <!-- sp:pagelayer/pl_inner_row {"stretch":"auto","col_gap":"10","width_content":"auto","row_height":"default","overlay_hover_delay":"400","row_shape_top_color":"#227bc3","row_shape_top_width":"100","row_shape_top_height":"100","row_shape_bottom_color":"#e44993","row_shape_bottom_width":"100","row_shape_bottom_height":"100","pagelayer-id":"zqp4850"} -->
1522
+ <!-- sp:pagelayer/pl_inner_col {"widget_space":"15","overlay_hover_delay":"400","content_pos":"center","col":"2","pagelayer-id":"q725202"} -->
1523
+ <!-- sp:pagelayer/pl_post_nav {"lables":"true","post_title":"true","arrows":"true","sep_color":"#adb5bdff","sep_rotate":"20","sep_width":"1","prev_label":"Previous","next_label":"Next","label_colors":"hover","title_colors":"normal","arrows_list":"chevron","icon_colors":"hover","label_color":"#adb5bdff","label_hover_color":"","label_typo":",15,,,,,,,,,","title_color":"#000000ff","title_typo":"Roboto,18,,bold,,,,,,,","icon_color":"#adb5bdff","icon_hover_color":"","icon_size":"30","disable_sep":"true","taxonomies":"category","pagelayer-id":"55r4448"} /-->
1524
+ <!-- /sp:pagelayer/pl_inner_col -->
1525
+ <!-- /sp:pagelayer/pl_inner_row -->
1526
+ <!-- /sp:pagelayer/pl_col -->
1527
+ <!-- /sp:pagelayer/pl_row -->
1528
+ <!-- sp:pagelayer/pl_row {"stretch":"auto","col_gap":"0","width_content":"fixed","row_height":"default","overlay_hover_delay":"400","row_shape_top_color":"#227bc3","row_shape_top_width":"100","row_shape_top_height":"100","row_shape_bottom_color":"#e44993","row_shape_bottom_width":"100","row_shape_bottom_height":"100","ele_margin":"0px,0px,0px,0px","ele_padding":"0px,0px,0px,0px","fixed_width":"75%","fixed_width_mobile":"100%","ele_margin_mobile":"0px,0px,0px,0px","ele_padding_mobile":"0px,0px,0px,0px","fixed_width_tablet":"100%","pagelayer-id":"kf35301"} -->
1529
+ <!-- sp:pagelayer/pl_col {"widget_space":"15","overlay_hover_delay":"400","ele_padding":"10px,10px,10px,10px","content_pos":"center","col_width":"100","pagelayer-id":"d539589"} -->
1530
+ <!-- sp:pagelayer/pl_post_comment {"comment_skin":"theme_comment","post_type":"current","pagelayer-id":"1oh7228"} /-->
1531
+ <!-- /sp:pagelayer/pl_col -->
1532
+ <!-- /sp:pagelayer/pl_row -->';
1533
 
1534
  $pgl['single-template'] = $conf['single-template'];
1535
 
main/shortcode_functions.php CHANGED
@@ -823,6 +823,22 @@ function pagelayer_sc_post_props(&$el){
823
  $el['oAtts']['post_parent'] = $post->post_parent;
824
  $el['oAtts']['menu_order'] = $post->menu_order;
825
  $el['oAtts']['post_author'] = $post->post_author;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
826
 
827
  // Load featured image details
828
  if(!empty($el['oAtts']['featured_image'])){
823
  $el['oAtts']['post_parent'] = $post->post_parent;
824
  $el['oAtts']['menu_order'] = $post->menu_order;
825
  $el['oAtts']['post_author'] = $post->post_author;
826
+ $el['oAtts']['post_category'] = '';
827
+ $el['oAtts']['post_tags'] = '';
828
+
829
+ $tag_name = pagelayer_post_type_tag($post->post_type);
830
+ if(!empty($tag_name)){
831
+ $postTags = wp_get_post_terms( $post->ID, $tag_name );
832
+ $names = array_column((array)$postTags, 'name');
833
+ $el['oAtts']['post_tags'] = implode(',', $names);
834
+ }
835
+
836
+ $cat_name = pagelayer_post_type_category($post->post_type);
837
+ if(!empty($cat_name)){
838
+ $category = get_the_terms( $post->ID, $cat_name );
839
+ $ids = array_column((array)$category, 'term_id');
840
+ $el['oAtts']['post_category'] = implode(',', $ids);
841
+ }
842
 
843
  // Load featured image details
844
  if(!empty($el['oAtts']['featured_image'])){
main/shortcodes.php CHANGED
@@ -1864,7 +1864,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_row', array(
1864
  {{slider}}
1865
  </div>
1866
  <div if="{{parallax_img}}" class="pagelayer-parallax-window">
1867
- <img class="pagelayer-img" src="{{{parallax_img-url}}}">
1868
  </div>
1869
  <div if="{{row_shape_position}}" class="pagelayer-row-shape">
1870
  <div class="pagelayer-row-svg">
@@ -2404,7 +2404,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_col', array(
2404
  {{slider}}
2405
  </div>
2406
  <div if="{{parallax_img}}" class="pagelayer-parallax-window">
2407
- <img class="pagelayer-img" src="{{{parallax_img-url}}}">
2408
  </div>
2409
  <div if="{{overlay_type}}" class="pagelayer-background-overlay"></div>
2410
  <div class="pagelayer-col-holder"></div>',
@@ -9089,7 +9089,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_post_props', array(
9089
  'post_sticky' => array(
9090
  'type' => 'checkbox',
9091
  'label' => __pl('sticky_post'),
9092
- 'default' => (empty($post->ID) ? '' : is_sticky($post->ID) ? 'true' : ''),
9093
  'export-def' => 1,
9094
  ),
9095
  'post_author' => array(
@@ -9123,6 +9123,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_post_props', array(
9123
  'post_tags' => array(
9124
  'type' => 'postTags',
9125
  'label' => __pl('add_new_tag'),
 
9126
  )
9127
  ),
9128
  'postFeaturedImage' => array(
1864
  {{slider}}
1865
  </div>
1866
  <div if="{{parallax_img}}" class="pagelayer-parallax-window">
1867
+ <img class="pagelayer-img" src="{{{parallax_img-url}}}" title="{{{parallax_img-title}}}" alt="{{{parallax_img-alt}}}">
1868
  </div>
1869
  <div if="{{row_shape_position}}" class="pagelayer-row-shape">
1870
  <div class="pagelayer-row-svg">
2404
  {{slider}}
2405
  </div>
2406
  <div if="{{parallax_img}}" class="pagelayer-parallax-window">
2407
+ <img class="pagelayer-img" src="{{{parallax_img-url}}}" title="{{{parallax_img-title}}}" alt="{{{parallax_img-alt}}}">
2408
  </div>
2409
  <div if="{{overlay_type}}" class="pagelayer-background-overlay"></div>
2410
  <div class="pagelayer-col-holder"></div>',
9089
  'post_sticky' => array(
9090
  'type' => 'checkbox',
9091
  'label' => __pl('sticky_post'),
9092
+ 'default' => (!empty($post->ID) && is_sticky($post->ID) ? 'true' : ''),
9093
  'export-def' => 1,
9094
  ),
9095
  'post_author' => array(
9123
  'post_tags' => array(
9124
  'type' => 'postTags',
9125
  'label' => __pl('add_new_tag'),
9126
+ 'desc' => __pl('post_tag_desc')
9127
  )
9128
  ),
9129
  'postFeaturedImage' => array(
main/template.php CHANGED
@@ -1577,6 +1577,7 @@ function pagelayer_template_vars(){
1577
  $replacers['{{themes_dir}}'] = dirname(get_stylesheet_directory_uri());
1578
  $replacers['{{content_url}}'] = dirname(dirname(dirname(get_stylesheet_directory_uri())));
1579
  $replacers['{{pl_site_url}}'] = home_url();
 
1580
 
1581
  return $replacers;
1582
 
1577
  $replacers['{{themes_dir}}'] = dirname(get_stylesheet_directory_uri());
1578
  $replacers['{{content_url}}'] = dirname(dirname(dirname(get_stylesheet_directory_uri())));
1579
  $replacers['{{pl_site_url}}'] = home_url();
1580
+ $replacers['{{pl_plugin_url}}'] = PAGELAYER_URL;
1581
 
1582
  return $replacers;
1583
 
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.4.9
7
  Author: Pagelayer Team
8
  Author URI: https://pagelayer.com/
9
  License: LGPL v2.1
3
  Plugin Name: PageLayer
4
  Plugin URI: http://wordpress.org/plugins/pagelayer/
5
  Description: PageLayer is a WordPress page builder plugin. Its very easy to use and very light on the browser.
6
+ Version: 1.5.0
7
  Author: Pagelayer Team
8
  Author URI: https://pagelayer.com/
9
  License: LGPL v2.1
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: page builder, editor, drag-and-drop, landing page, replace image, pagelaye
4
  Requires at least: 4.7
5
  Tested up to: 5.7
6
  Requires PHP: 5.5
7
- Stable tag: 1.4.9
8
  License: LGPL v2.1
9
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
 
@@ -109,6 +109,12 @@ Do you have questions related to PageLayer ? Use the following links :
109
 
110
  == Changelog ==
111
 
 
 
 
 
 
 
112
  = 1.4.9 (April 17, 2021) =
113
  * [Feature] Added the feature to upload Custom Fonts. Users can now use fonts other than Google Fonts by uploading their choice of fonts.
114
  * [Feature] The Page / Post properties are now visible by default while editing a post / page. We have added many options like Categories, Tags, Permalink, Publish Post at a future date, Excerpt, Discussion options, etc.
4
  Requires at least: 4.7
5
  Tested up to: 5.7
6
  Requires PHP: 5.5
7
+ Stable tag: 1.5.0
8
  License: LGPL v2.1
9
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
 
109
 
110
  == Changelog ==
111
 
112
+ = 1.5.0 (May 10, 2021) =
113
+ * [Feature] Added icon option for the toggle menu.
114
+ * [Task] The post info widget has been improved for the tag and category styles.
115
+ * [Task] Added title and alt attributes for all possible image tags for improving accessibility reading.
116
+ * [Bug-Fix] In some cases the post props were not working properly. This is fixed.
117
+
118
  = 1.4.9 (April 17, 2021) =
119
  * [Feature] Added the feature to upload Custom Fonts. Users can now use fonts other than Google Fonts by uploading their choice of fonts.
120
  * [Feature] The Page / Post properties are now visible by default while editing a post / page. We have added many options like Categories, Tags, Permalink, Publish Post at a future date, Excerpt, Discussion options, etc.