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

Version Description

(August 11, 2020) = * [Bug-Fix] In some cases, the width of the columns of a Pagelayer Template while editing a post was not applied properly. This is fixed.

Download this release

Release Info

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

Code changes from version 1.2.0 to 1.2.2

css/pagelayer-admin.css CHANGED
@@ -90,4 +90,40 @@ border: 1px solid #ccc;
90
 
91
  .pagelayer-notice-info{
92
  border-left: 5px solid #00a0d2 !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  }
90
 
91
  .pagelayer-notice-info{
92
  border-left: 5px solid #00a0d2 !important;
93
+ }
94
+
95
+ .button-pagelayer{
96
+ padding: 12px 25px !important;
97
+ font-size: 15px !important;
98
+ font-weight: bold;
99
+ background: #7444fd !important;
100
+ color: #fff !important;
101
+ border: 1px solid #7444fd !important;
102
+ transition: all .3s linear;
103
+ pointer: cursor;
104
+ }
105
+
106
+ .button-pagelayer:hover{
107
+ background: #fff !important;
108
+ color: #7444fd !important;
109
+ }
110
+
111
+ .pagelayer-pro-div{
112
+ margin: 50px auto;
113
+ display: block;
114
+ max-width: 700px;
115
+ padding: 20px;
116
+ background-color: #fff;
117
+ }
118
+
119
+ .pagelayer-pro-head{
120
+ text-align: center;
121
+ }
122
+
123
+ .pagelayer-pro-message{
124
+ margin: 25px auto;
125
+ font-size: 15px;
126
+ padding: 2px 25px;
127
+ text-align: center;
128
+ line-height: 1.8;
129
  }
css/pagelayer-editor.css CHANGED
@@ -947,6 +947,60 @@ color: #3e8ef7;
947
  content: "\f0d7" !important;
948
  }
949
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
950
  .pagelayer-elp-access-holder{
951
  position: absolute;
952
  border: 1px solid #ccc;
@@ -3241,6 +3295,87 @@ opacity:0;
3241
 
3242
  /* Update Loading animation class end */
3243
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3244
  /* Property modal start*/
3245
  .pagelayer-elp-modal-wrapper{
3246
  position: fixed;
@@ -3351,4 +3486,3 @@ margin-left:5px;
3351
  padding: 4px;
3352
  }
3353
  /* Property link end*/
3354
-
947
  content: "\f0d7" !important;
948
  }
949
 
950
+ .pagelayer-pro-notice {
951
+ position: fixed;
952
+ top: 0px;
953
+ z-index: 10000;
954
+ width: 100%;
955
+ display: none;
956
+ left: 0px;
957
+ height: 100vh;
958
+ }
959
+
960
+ .pagelayer-pro-div{
961
+ margin: 25vh auto;
962
+ max-width: 500px;
963
+ padding: 20px;
964
+ background-color: #fff;
965
+ box-shadow: 0 0 15px -5px;
966
+ }
967
+
968
+ .pagelayer-pro-x{
969
+ float:right;
970
+ font-size: 13px;
971
+ cursor: pointer;
972
+ }
973
+
974
+ .pagelayer-pro-head{
975
+ text-align: center;
976
+ }
977
+
978
+ .pagelayer-pro-message{
979
+ margin: 25px auto;
980
+ font-size: 15px;
981
+ padding: 2px 25px;
982
+ text-align: center;
983
+ line-height: 1.8;
984
+ }
985
+
986
+ .button-pagelayer{
987
+ padding: 12px 25px !important;
988
+ font-size: 15px !important;
989
+ font-weight: bold;
990
+ background: #7444fd !important;
991
+ color: #fff !important;
992
+ border: 1px solid #7444fd !important;
993
+ transition: all .3s linear;
994
+ cursor: pointer;
995
+ text-decoration: none;
996
+ display: inline-block;
997
+ }
998
+
999
+ .button-pagelayer:hover{
1000
+ background: #fff !important;
1001
+ color: #7444fd !important;
1002
+ }
1003
+
1004
  .pagelayer-elp-access-holder{
1005
  position: absolute;
1006
  border: 1px solid #ccc;
3295
 
3296
  /* Update Loading animation class end */
3297
 
3298
+ /* Error box css starts */
3299
+
3300
+ .pagelayer-errorBox{
3301
+ position:absolute;
3302
+ top:10px;
3303
+ left: 0;
3304
+ right: 0;
3305
+ margin-left: auto;
3306
+ margin-right: auto;
3307
+ width:70%;
3308
+ height:234;
3309
+ border-radius:20px;
3310
+ background-color:#fffafa;
3311
+ box-shadow: 1px 1px 8px #ffc7c7;
3312
+ z-index:9999;
3313
+ display:none;
3314
+ }
3315
+
3316
+ .pagelayer-errorBox-close{
3317
+ position:absolute;
3318
+ right:10;
3319
+ top:10;
3320
+ font-size:20px;
3321
+ padding:5px;
3322
+ color:lightgrey;
3323
+ cursor:pointer;
3324
+ }
3325
+
3326
+ .pagelayer-errorBox-main{
3327
+ height:180px;
3328
+ margin:2px 10px;
3329
+ }
3330
+
3331
+ .pagelayer-errorBox-main h2{
3332
+ color:red;
3333
+ font-size:20px;
3334
+ margin:0;
3335
+ }
3336
+
3337
+ .pagelayer-errorBox-main h2 i{
3338
+ font-size:30px;
3339
+ margin:10px;
3340
+ vertical-align:middle;
3341
+ }
3342
+
3343
+ .pagelayer-errorBox-content{
3344
+ margin-left:90px;
3345
+ font-size:13px;
3346
+ overflow:auto;
3347
+ height:130px;
3348
+ border-bottom:1px solid lightgrey;
3349
+ }
3350
+
3351
+ .pagelayer-errorBox-resolve{
3352
+ text-align:right;
3353
+ padding:10px;
3354
+ }
3355
+ .pagelayer-errorBox-resolve p{
3356
+ display:inline;
3357
+ margin:10px;
3358
+ }
3359
+
3360
+ .pagelayer-errorBox-resolve .pagelayer-errorBox-support, .pagelayer-errorBox-resolve .pagelayer-errorBox-copy{
3361
+ cursor:pointer;
3362
+ padding: 5px;
3363
+ border-radius: 5px;
3364
+ color: white;
3365
+ }
3366
+
3367
+ .pagelayer-errorBox-resolve .pagelayer-errorBox-copy{
3368
+ background-color: #616cf3;
3369
+ border: 1px solid blue;
3370
+ }
3371
+
3372
+ .pagelayer-errorBox-resolve .pagelayer-errorBox-support{
3373
+ background-color: #56b45d;
3374
+ border: 1px solid green;
3375
+ }
3376
+
3377
+ /* Error box css ends */
3378
+
3379
  /* Property modal start*/
3380
  .pagelayer-elp-modal-wrapper{
3381
  position: fixed;
3486
  padding: 4px;
3487
  }
3488
  /* Property link end*/
 
css/pagelayer-frontend.css CHANGED
@@ -1724,31 +1724,32 @@ padding-top: 56.25%;
1724
  }
1725
 
1726
  .pagelayer-video .pagelayer-video-holder .pagelayer-video-overlay{
1727
- position:absolute;
1728
- top:0;
1729
- left:0;
1730
- right:0;
1731
- bottom:0;
1732
- background-size: cover;
1733
- background-position: center center;
1734
- background-repeat: no-repeat;
 
1735
  }
1736
 
1737
  .pagelayer-video .pagelayer-video-holder a{
1738
- position:absolute;
1739
- top:0;
1740
- left:0;
1741
- right:0;
1742
- bottom:0;
1743
  }
1744
 
1745
  .pagelayer-video .pagelayer-video-holder .pagelayer-video-overlay i{
1746
- position: absolute;
1747
- top: 50%;
1748
- left: 50%;
1749
- -webkit-transform: translateX(-50%) translateY(-50%);
1750
- -ms-transform: translateX(-50%) translateY(-50%);
1751
- transform: translateX(-50%) translateY(-50%);
1752
  }
1753
  /* Video end */
1754
 
@@ -2294,6 +2295,14 @@ top: 50%;
2294
  transform: translate(-50%, -50%);
2295
  }
2296
 
 
 
 
 
 
 
 
 
2297
  .pagelayer-btn-icon-left .pagelayer-icon-right{
2298
  display: none;
2299
  }
@@ -2894,3 +2903,1944 @@ margin-bottom:auto;
2894
  }
2895
 
2896
  /* Address and Number End */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1724
  }
1725
 
1726
  .pagelayer-video .pagelayer-video-holder .pagelayer-video-overlay{
1727
+ position:absolute;
1728
+ top:0;
1729
+ left:0;
1730
+ right:0;
1731
+ bottom:0;
1732
+ background-size: cover;
1733
+ background-position: center center;
1734
+ background-repeat: no-repeat;
1735
+ cursor: pointer;
1736
  }
1737
 
1738
  .pagelayer-video .pagelayer-video-holder a{
1739
+ position:absolute;
1740
+ top:0;
1741
+ left:0;
1742
+ right:0;
1743
+ bottom:0;
1744
  }
1745
 
1746
  .pagelayer-video .pagelayer-video-holder .pagelayer-video-overlay i{
1747
+ position: absolute;
1748
+ top: 50%;
1749
+ left: 50%;
1750
+ -webkit-transform: translateX(-50%) translateY(-50%);
1751
+ -ms-transform: translateX(-50%) translateY(-50%);
1752
+ transform: translateX(-50%) translateY(-50%);
1753
  }
1754
  /* Video end */
1755
 
2295
  transform: translate(-50%, -50%);
2296
  }
2297
 
2298
+ .pagelayer-splash-bg-close{
2299
+ position: absolute;
2300
+ top:0;
2301
+ left:0;
2302
+ width:100%;
2303
+ height:100%;
2304
+ }
2305
+
2306
  .pagelayer-btn-icon-left .pagelayer-icon-right{
2307
  display: none;
2308
  }
2903
  }
2904
 
2905
  /* Address and Number End */
2906
+
2907
+ /****************/
2908
+ /*** Freemium ***/
2909
+ /****************/
2910
+
2911
+ /*** Breadcrumb ***/
2912
+
2913
+ .pagelayer-breadcrumb-section b{
2914
+ font-weight: 100;
2915
+ }
2916
+
2917
+ /* Breadcrumb End */
2918
+
2919
+ /*** Archive Posts ***/
2920
+ .pagelayer-posts-container{
2921
+ display: grid;
2922
+ }
2923
+
2924
+ .pagelayer-wposts-meta *{
2925
+ font-size: 12px;
2926
+ }
2927
+
2928
+ .pagelayer-pagination{
2929
+ padding: 50px 20px;
2930
+ text-align: center;
2931
+ }
2932
+
2933
+ .pagelayer-pagination .page-numbers:not(:last-child){
2934
+ margin-right: 25px;
2935
+ }
2936
+
2937
+ .pagelayer-pagination a.page-numbers:hover{
2938
+ color: #36b2d1;
2939
+ }
2940
+
2941
+ .pagelayer-wposts-thumb{
2942
+ display:inline-block;
2943
+ position:relative;
2944
+ background-size:cover !important;
2945
+ background-position:center !important;
2946
+ width:100%;
2947
+ }
2948
+
2949
+ /*** Archive Posts End ***/
2950
+
2951
+ /* WordPress Posts */
2952
+ .pagelayer-wposts-title{
2953
+ line-height:1;
2954
+ }
2955
+
2956
+ .pagelayer-wposts-sep{
2957
+ font-weight:100;
2958
+ }
2959
+
2960
+ .pagelayer-wposts-sep:last-child{
2961
+ display:none;
2962
+ }
2963
+
2964
+ .pagelayer-wposts-category a:not(:last-child):after,
2965
+ .pagelayer-wposts-tags a:not(:last-child):after{
2966
+ content:', ';
2967
+ }
2968
+ /* WordPress Posts End*/
2969
+
2970
+ /* Copyright start */
2971
+ .pagelayer-copyright{
2972
+ text-align: center;
2973
+ color: #111;
2974
+ }
2975
+
2976
+ .pagelayer-copyright a{
2977
+ color: #111;
2978
+ }
2979
+ /* Copyright end */
2980
+
2981
+ /* Primary Menu */
2982
+
2983
+ .pagelayer-wp-menu-container .pagelayer-wp_menu-ul a{
2984
+ display:flex;
2985
+ box-shadow: none;
2986
+ white-space: nowrap;
2987
+ position:relative;
2988
+ }
2989
+
2990
+ .pagelayer-menu-type-horizontal .sub-menu{
2991
+ z-index:999;
2992
+ }
2993
+
2994
+ .pagelayer-wp-menu-container ul,
2995
+ .pagelayer-wp-menu-container ul.sub-menu{
2996
+ margin:0px;
2997
+ }
2998
+
2999
+ .pagelayer-menu-type-horizontal *{
3000
+ transition: all 0.5s;
3001
+ }
3002
+
3003
+ .pagelayer-menu-type-horizontal li{
3004
+ display: inline-block;
3005
+ font-weight: 600;
3006
+ }
3007
+
3008
+ .pagelayer-menu-type-horizontal li a{
3009
+ box-shadow: none;
3010
+ border: none;
3011
+ }
3012
+
3013
+ .pagelayer-menu-type-horizontal .sub-menu{
3014
+ position:absolute;
3015
+ min-width: 100%;
3016
+ }
3017
+
3018
+ .pagelayer-menu-type-horizontal .sub-menu .sub-menu{
3019
+ top:0px
3020
+ }
3021
+
3022
+ .pagelayer-menu-type-horizontal ul li{
3023
+ position:relative;
3024
+ }
3025
+
3026
+ .pagelayer-wp-menu-container ul li span.after-icon{
3027
+ height: auto;
3028
+ width: 100%;
3029
+ position: relative;
3030
+ pointer-events: auto;
3031
+ line-height:inherit;
3032
+ color: inherit;
3033
+ font-size: inherit;
3034
+ margin-left:10px;
3035
+ padding-left:5px;
3036
+ padding-right:5px;
3037
+ }
3038
+
3039
+ .pagelayer-wp-menu-container:not([data-align="left"]) .pagelayer-wp_menu-ul span.after-icon{
3040
+ width:auto;
3041
+ }
3042
+
3043
+ .pagelayer-wp-menu-container[data-align="right"] .pagelayer-wp_menu-ul a{justify-content: flex-end;}
3044
+ .pagelayer-wp-menu-container[data-align="left"] .pagelayer-wp_menu-ul a{justify-content: left;}
3045
+ .pagelayer-wp-menu-container[data-align="center"] .pagelayer-wp_menu-ul a{justify-content: center;}
3046
+
3047
+ .pagelayer-wp-menu-container ul li span.after-icon:before{
3048
+ position:absolute;
3049
+ right:0;
3050
+ }
3051
+
3052
+ .pagelayer-wp-menu-container .sub-menu,
3053
+ .pagelayer-primary-menu-bar{
3054
+ display:none;
3055
+ }
3056
+
3057
+ .pagelayer-menu-type-horizontal .sub-menu li{
3058
+ display:block;
3059
+ }
3060
+
3061
+ .pagelayer-primary-menu-bar .fa{
3062
+ padding:5px;
3063
+ }
3064
+
3065
+ .pagelayer-menu-type-vertical li{
3066
+ list-style: none;
3067
+ }
3068
+
3069
+ .pagelayer-menu-type-vertical li a{
3070
+ margin-top: 6px !important;
3071
+ box-shadow: none;
3072
+ border: none;
3073
+ }
3074
+
3075
+ .pagelayer-menu-type-vertical .pagelayer-wp_menu-ul>li>ul.sub-menu{
3076
+ margin-left:0px;
3077
+ }
3078
+
3079
+ .pagelayer-wp-menu-holder[data-layout="dropdown"] .pagelayer-primary-menu-bar,
3080
+ .pagelayer-wp-menu-holder.pagelayer-wp-menu-dropdown .pagelayer-primary-menu-bar{
3081
+ display:block;
3082
+ }
3083
+
3084
+ .pagelayer-wp-menu-holder[data-layout="dropdown"] .pagelayer-wp_menu-ul,
3085
+ .pagelayer-wp-menu-holder.pagelayer-wp-menu-dropdown .pagelayer-wp_menu-ul{
3086
+ display:none;
3087
+ }
3088
+
3089
+ .pagelayer-menu-hover-underline:not(.none) .pagelayer-wp_menu-ul>li>a:before,
3090
+ .pagelayer-menu-hover-framed:not(.none) .pagelayer-wp_menu-ul>li>a:before,
3091
+ .pagelayer-menu-hover-doubleline:not(.none) .pagelayer-wp_menu-ul>li>a:before,
3092
+ .pagelayer-menu-hover-doubleline:not(.none) .pagelayer-wp_menu-ul>li>a:after,
3093
+ .pagelayer-menu-hover-overline:not(.none) .pagelayer-wp_menu-ul>li>a:before{
3094
+ position: absolute;
3095
+ content: '';
3096
+ left: 0px;
3097
+ bottom: 0px;
3098
+ height: 3px;
3099
+ width: 0px;
3100
+ background-color: #2154CF;
3101
+ transition: all 500ms ease;
3102
+ -moz-transition: all 500ms ease;
3103
+ -webkit-transition: all 500ms ease;
3104
+ -ms-transition: all 500ms ease;
3105
+ -o-transition: all 500ms ease;
3106
+ border-width:0px;
3107
+ }
3108
+
3109
+ .pagelayer-menu-hover-doubleline .pagelayer-wp_menu-ul>li>a:after{
3110
+ left:unset;
3111
+ right:0;
3112
+ }
3113
+
3114
+ .pagelayer-menu-hover-framed .pagelayer-wp_menu-ul>li>a:before{
3115
+ background-color:unset !important;
3116
+ height:100% !important;
3117
+ }
3118
+ .pagelayer-menu-hover-framed .pagelayer-wp_menu-ul>li>a:hover:before{
3119
+ border:3px solid #2154CF;
3120
+ }
3121
+
3122
+ .pagelayer-menu-hover-overline .pagelayer-wp_menu-ul>li>a:before,
3123
+ .pagelayer-menu-hover-doubleline .pagelayer-wp_menu-ul>li>a:before{
3124
+ top:0;
3125
+ bottom:unset;
3126
+ }
3127
+
3128
+ .pagelayer-menu-hover-underline.dropin .pagelayer-wp_menu-ul>li>a:before,
3129
+ .pagelayer-menu-hover-framed.dropin .pagelayer-wp_menu-ul>li>a:before,
3130
+ .pagelayer-menu-hover-doubleline.dropin .pagelayer-wp_menu-ul>li>a:before,
3131
+ .pagelayer-menu-hover-doubleline.dropin .pagelayer-wp_menu-ul>li>a:after,
3132
+ .pagelayer-menu-hover-overline.dropin .pagelayer-wp_menu-ul>li>a:before{
3133
+ width:100%;
3134
+ opacity:0;
3135
+ bottom:-5px;
3136
+ }
3137
+
3138
+ .pagelayer-menu-hover-underline.dropout .pagelayer-wp_menu-ul>li>a:before,
3139
+ .pagelayer-menu-hover-framed.dropout .pagelayer-wp_menu-ul>li>a:before,
3140
+ .pagelayer-menu-hover-doubleline.dropout .pagelayer-wp_menu-ul>li>a:before,
3141
+ .pagelayer-menu-hover-doubleline.dropout .pagelayer-wp_menu-ul>li>a:after,
3142
+ .pagelayer-menu-hover-overline.dropout .pagelayer-wp_menu-ul>li>a:before{
3143
+ width:100%;
3144
+ opacity:0;
3145
+ bottom:5px;
3146
+ }
3147
+
3148
+ .pagelayer-menu-hover-underline.dropin .pagelayer-wp_menu-ul>li>a:hover:before,
3149
+ .pagelayer-menu-hover-framed.dropin .pagelayer-wp_menu-ul>li>a:hover:before,
3150
+ .pagelayer-menu-hover-doubleline.dropin .pagelayer-wp_menu-ul>li>a:hover:before,
3151
+ .pagelayer-menu-hover-doubleline.dropin .pagelayer-wp_menu-ul>li>a:hover:after,
3152
+ .pagelayer-menu-hover-overline.dropin .pagelayer-wp_menu-ul>li>a:hover:before,
3153
+ .pagelayer-menu-hover-underline.dropout .pagelayer-wp_menu-ul>li>a:hover:before,
3154
+ .pagelayer-menu-hover-framed.dropout .pagelayer-wp_menu-ul>li>a:hover:before,
3155
+ .pagelayer-menu-hover-doubleline.dropout .pagelayer-wp_menu-ul>li>a:hover:before,
3156
+ .pagelayer-menu-hover-doubleline.dropout .pagelayer-wp_menu-ul>li>a:hover:after,
3157
+ .pagelayer-menu-hover-overline.dropout .pagelayer-wp_menu-ul>li>a:hover:before{
3158
+ bottom:0px;
3159
+ }
3160
+
3161
+ .pagelayer-menu-hover-underline.grow .pagelayer-wp_menu-ul>li>a:before,
3162
+ .pagelayer-menu-hover-framed.grow .pagelayer-wp_menu-ul>li>a:before,
3163
+ .pagelayer-menu-hover-doubleline.grow .pagelayer-wp_menu-ul>li>a:before,
3164
+ .pagelayer-menu-hover-doubleline.grow .pagelayer-wp_menu-ul>li>a:after,
3165
+ .pagelayer-menu-hover-overline.grow .pagelayer-wp_menu-ul>li>a:before{
3166
+ width:100%;
3167
+ transform:scale(0);
3168
+ }
3169
+
3170
+ .pagelayer-menu-hover-underline.fade .pagelayer-wp_menu-ul>li>a:before,
3171
+ .pagelayer-menu-hover-framed.fade .pagelayer-wp_menu-ul>li>a:before,
3172
+ .pagelayer-menu-hover-doubleline.fade .pagelayer-wp_menu-ul>li>a:before,
3173
+ .pagelayer-menu-hover-doubleline.fade .pagelayer-wp_menu-ul>li>a:after,
3174
+ .pagelayer-menu-hover-overline.fade .pagelayer-wp_menu-ul>li>a:before{
3175
+ width:100%;
3176
+ transition-duration:1000ms;
3177
+ opacity:0;
3178
+ }
3179
+
3180
+ .pagelayer-menu-hover-underline .pagelayer-wp_menu-ul>li>a:hover:before,
3181
+ .pagelayer-menu-hover-framed .pagelayer-wp_menu-ul>li>a:hover:before,
3182
+ .pagelayer-menu-hover-doubleline .pagelayer-wp_menu-ul>li>a:hover:before,
3183
+ .pagelayer-menu-hover-doubleline .pagelayer-wp_menu-ul>li>a:hover:after,
3184
+ .pagelayer-menu-hover-overline .pagelayer-wp_menu-ul>li>a:hover:before{
3185
+ transform:scale(1);
3186
+ opacity:1;
3187
+ width:100%;
3188
+ }
3189
+
3190
+ .pagelayer-menu-hover-text .pagelayer-wp_menu-ul>li>a:hover{
3191
+ transform:scale(1.2);
3192
+ }
3193
+
3194
+ .pagelayer-menu-type-dropdown{
3195
+ position:absolute;
3196
+ z-index:999;
3197
+ }
3198
+
3199
+ .pagelayer-togglt-on .pagelayer-wp_menu-ul,
3200
+ .active-sub-menu > ul,
3201
+ .pagelayer-menu-type-horizontal .menu-item-has-children:hover > ul{
3202
+ display:block !important;
3203
+ }
3204
+
3205
+ .pagelayer-menu-type-dropdown.pagelayer-wp_menu-ul,
3206
+ .pagelayer-menu-type-dropdown.pagelayer-wp_menu-right,
3207
+ .pagelayer-menu-type-dropdown.pagelayer-wp_menu-left,
3208
+ .pagelayer-menu-type-dropdown.pagelayer-wp_menu-full{
3209
+ position: fixed;
3210
+ z-index: 999;
3211
+ height: 100%;
3212
+ top: 0;
3213
+ transition: all 0.4s;
3214
+ }
3215
+
3216
+ .pagelayer-menu-type-dropdown.pagelayer-wp_menu-right{
3217
+ right: -100%;
3218
+ }
3219
+
3220
+ .pagelayer-menu-type-dropdown.pagelayer-wp_menu-left{
3221
+ left:-100%;
3222
+ }
3223
+
3224
+ .pagelayer-wp_menu-left.pagelayer-togglt-on{
3225
+ left:0;
3226
+ }
3227
+
3228
+ .pagelayer-wp_menu-right.pagelayer-togglt-on{
3229
+ right:0;
3230
+ }
3231
+
3232
+ .pagelayer-menu-type-dropdown.pagelayer-wp_menu-full{
3233
+ left:0;
3234
+ right:0;
3235
+ top:-100%;
3236
+ }
3237
+
3238
+ .pagelayer-wp_menu-full.pagelayer-togglt-on{
3239
+ top:0;
3240
+ }
3241
+
3242
+ .pagelayer-wp_menu-close{
3243
+ cursor:pointer;
3244
+ }
3245
+
3246
+ .pagelayer-menu-type-dropdown .pagelayer-wp_menu-close{
3247
+ display:block;
3248
+ }
3249
+
3250
+ .pagelayer-wp_menu-close,
3251
+ .pagelayer-wp_menu-down .pagelayer-wp_menu-close{
3252
+ display:none;
3253
+ }
3254
+
3255
+ .pagelayer-wp_menu-close .fa{
3256
+ position:absolute;
3257
+ z-index:99;
3258
+ }
3259
+
3260
+ .pagelayer-menu-type-dropdown.pagelayer-wp_menu-right .pagelayer-wp_menu-ul,
3261
+ .pagelayer-menu-type-dropdown.pagelayer-wp_menu-left .pagelayer-wp_menu-ul,
3262
+ .pagelayer-menu-type-dropdown.pagelayer-wp_menu-full .pagelayer-wp_menu-ul{
3263
+ position:absolute;
3264
+ width:100%;
3265
+ }
3266
+
3267
+ /* Primary Menu End */
3268
+
3269
+ /* Contact Form start */
3270
+ .pagelayer-contact_item input,
3271
+ .pagelayer-contact_item textarea,
3272
+ .pagelayer-contact_item select{
3273
+ width:100%;
3274
+ outline:none;
3275
+ }
3276
+
3277
+ .pagelayer-contact_item textarea{
3278
+ height:auto;
3279
+ }
3280
+
3281
+ .pagelayer-contact-holder input[type="checkbox"] {
3282
+ visibility: hidden;
3283
+ display: contents;
3284
+ }
3285
+
3286
+ .pagelayer-contact-holder label {
3287
+ cursor: pointer;
3288
+ display: block;
3289
+ }
3290
+
3291
+ .pagelayer-contact-holder input[type="checkbox"] + label:before {
3292
+ border: 1px solid #333;
3293
+ content: "\00a0";
3294
+ display: inline-block;
3295
+ font: 16px/1em sans-serif;
3296
+ margin-right: 0.25em;
3297
+ padding: 0;
3298
+ vertical-align: middle;
3299
+ }
3300
+
3301
+ .pagelayer-contact-holder input[type="checkbox"]:checked + label:before {
3302
+ content: "\2713";
3303
+ text-align: center;
3304
+ }
3305
+
3306
+ .pagelayer-contact-holder input[type="checkbox"]:checked + label:after {
3307
+ font-weight: bold;
3308
+ }
3309
+
3310
+ .pagelayer-contact-holder input[type="checkbox"]:focus + label::before {
3311
+ outline: rgb(59, 153, 252) auto 5px;
3312
+ }
3313
+
3314
+ .pagelayer-contact-holder input[type='radio'] {
3315
+ -webkit-appearance:none;
3316
+ border-radius:50%;
3317
+ outline:none;
3318
+ vertical-align: middle;
3319
+ box-shadow:0 0 5px 0px gray inset;
3320
+ padding: 0 !important;
3321
+ }
3322
+
3323
+ .pagelayer-contact-holder input[type='radio']:hover {
3324
+ box-shadow:0 0 5px 0px orange inset;
3325
+ }
3326
+
3327
+ .pagelayer-contact-holder input[type='radio']:before {
3328
+ content:'';
3329
+ display:block;
3330
+ width:60%;
3331
+ height:60%;
3332
+ margin: 20% auto;
3333
+ border-radius:50%;
3334
+ }
3335
+
3336
+ .pagelayer-contact-submit-btn{
3337
+ cursor:pointer;
3338
+ }
3339
+ /* Contact Form End */
3340
+
3341
+ /*** Post Excerpt ***/
3342
+
3343
+ .pagelayer-empty-widget{
3344
+ height:30px;
3345
+ width:100%;
3346
+ background-color: #dedddd;
3347
+ text-align:center;
3348
+ }
3349
+
3350
+ .pagelayer-empty-widget:after {
3351
+ font-family: "FontAwesome" , "Font Awesome 5 Free";
3352
+ font-weight: 900;
3353
+ }
3354
+
3355
+ .pagelayer-post-excerpt.pagelayer-empty-widget:after{
3356
+ content: '\f15c';
3357
+ }
3358
+
3359
+ .pagelayer-featured-img.pagelayer-empty-widget:after{
3360
+ content: '\f03e';
3361
+ }
3362
+
3363
+ /*** Post Excerpt End ***/
3364
+
3365
+ /* Post info*/
3366
+ .pagelayer-post-info-vertical > div{
3367
+ display:inline-block;
3368
+ }
3369
+ /* Post info end*/
3370
+
3371
+
3372
+ /* Post Nav */
3373
+ .pagelayer-post-nav-container{
3374
+ display: flex;
3375
+ align-items: center;
3376
+ }
3377
+
3378
+ .pagelayer-prev-post a,
3379
+ .pagelayer-next-post a{
3380
+ display: inline-flex;
3381
+ align-items: center;
3382
+ }
3383
+
3384
+ .pagelayer-next-post a .pagelayer-post-nav-icon{
3385
+ padding-left:12px;
3386
+ }
3387
+
3388
+ .pagelayer-prev-post a .pagelayer-post-nav-icon{
3389
+ padding-right:12px;
3390
+ }
3391
+
3392
+ .pagelayer-next-post{
3393
+ text-align:right;
3394
+ }
3395
+
3396
+ .pagelayer-prev-post a:hover,
3397
+ .pagelayer-next-post a:hover{
3398
+ text-decoration:none;
3399
+ }
3400
+
3401
+ .pagelayer-prev-post, .pagelayer-next-post{
3402
+ width: calc(50% - 1px);
3403
+ }
3404
+
3405
+ .pagelayer-post-nav-container .pagelayer-prev-holder,
3406
+ .pagelayer-post-nav-container .pagelayer-next-holder{
3407
+ display: -webkit-box;
3408
+ display: -webkit-flex;
3409
+ display: -ms-flexbox;
3410
+ display: flex;
3411
+ -webkit-box-orient: vertical;
3412
+ -webkit-box-direction: normal;
3413
+ -webkit-flex-direction: column;
3414
+ -ms-flex-direction: column;
3415
+ flex-direction: column;
3416
+ }
3417
+
3418
+ .pagelayer-post-nav-separator{
3419
+ align-self: stretch;
3420
+ }
3421
+ /* Post Nav end */
3422
+
3423
+ /*Flipbox css start*/
3424
+ .pagelayer-flipbox-container{
3425
+ margin:0 auto;
3426
+ }
3427
+
3428
+ .pagelayer-flipbox-flipper{
3429
+ position: relative;
3430
+ height: 300px;
3431
+ perspective: 1000px;
3432
+ -webkit-perspective: 1000px;
3433
+ transform-style: preserve-3d;
3434
+ -webkit-transform-style: preserve-3d;
3435
+ }
3436
+
3437
+ .pagelayer-flipbox-front{
3438
+ background-color: #bc1a1a;
3439
+ border-radius: inherit;
3440
+ }
3441
+
3442
+ .pagelayer-flipbox-back{
3443
+ background-color: #f9e73f;
3444
+ display: block;
3445
+ border-radius: inherit;
3446
+ }
3447
+
3448
+ .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-front,
3449
+ .pagelayer-flipbox-flipper .pagelayer-flipbox-back{
3450
+ opacity: 0;
3451
+ }
3452
+
3453
+ .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-back{
3454
+ opacity:1;
3455
+ }
3456
+
3457
+ .pagelayer-flipbox-box{
3458
+ position: absolute;
3459
+ width: 100%;
3460
+ height: 100%;
3461
+ transition: all .8s ease-in-out;
3462
+ -webkit-transition: all .8s ease-in-out;
3463
+ }
3464
+
3465
+ .pagelayer-flipbox-box-overlay{
3466
+ display: flex;
3467
+ display: -webkit-box;
3468
+ display: -webkit-flex;
3469
+ display: -ms-flexbox;
3470
+ width: 100%;
3471
+ height: 100%;
3472
+ align-items: stretch;
3473
+ -webkit-align-items: stretch;
3474
+ -webkit-box-align: stretch;
3475
+ flex-direction: column;
3476
+ -webkit-flex-direction: column;
3477
+ -webkit-box-direction: normal;
3478
+ text-align: center;
3479
+ justify-content: center;
3480
+ -webkit-justify-content: center;
3481
+ padding: 35px;
3482
+ -webkit-box-orient: vertical;
3483
+ -webkit-box-pack: center;
3484
+ }
3485
+
3486
+ .pagelayer-flipbox-3d .pagelayer-flipbox-box-inner{
3487
+ transform: translateZ(90px) scale(.91);
3488
+ -webkit-transform: translateZ(90px) scale(.91);
3489
+ }
3490
+
3491
+ .pagelayer-flipbox-3d .pagelayer-flipbox-box-overlay{
3492
+ transform-style: preserve-3d;
3493
+ -webkit-transform-style: preserve-3d;
3494
+ transform: translateZ(.1px);
3495
+ -webkit-transform: translateZ(.1px);
3496
+ }
3497
+
3498
+ .pagelayer-flipbox-flip .pagelayer-flipbox-flipper{
3499
+ transform-style: preserve-3d;
3500
+ -webkit-transform-style: preserve-3d;
3501
+ perspective: 1000px;
3502
+ -webkit-perspective: 1000px;
3503
+ }
3504
+
3505
+ .pagelayer-flipbox-flip .pagelayer-flipbox-box{
3506
+ transform-style: preserve-3d;
3507
+ -webkit-transform-style: preserve-3d;
3508
+ backface-visibility: hidden;
3509
+ -webkit-backface-visibility: hidden;
3510
+ }
3511
+
3512
+ .pagelayer-flipbox-flip .pagelayer-flipbox-front{
3513
+ -webkit-transform: none;
3514
+ -ms-transform: none;
3515
+ transform: none;
3516
+ z-index: 1
3517
+ }
3518
+
3519
+ .pagelayer-flipbox-flip .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-back{
3520
+ transform: none;
3521
+ -webkit-transform: none;
3522
+ }
3523
+
3524
+ .pagelayer-flipbox-flip.pagelayer-flipbox-direction-right .pagelayer-flipbox-back{
3525
+ transform: rotateX(0) rotateY(-180deg);
3526
+ -webkit-transform: rotateX(0) rotateY(-180deg);
3527
+ }
3528
+
3529
+ .pagelayer-flipbox-flip.pagelayer-flipbox-direction-left .pagelayer-flipbox-back,
3530
+ .pagelayer-flipbox-flip.pagelayer-flipbox-direction-right .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-front{
3531
+ transform: rotateX(0) rotateY(180deg);
3532
+ -webkit-transform: rotateX(0) rotateY(180deg);
3533
+ }
3534
+
3535
+ .pagelayer-flipbox-flip.pagelayer-flipbox-direction-left .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-front{
3536
+ transform: rotateX(0) rotateY(-180deg);
3537
+ -webkit-transform: rotateX(0) rotateY(-180deg);
3538
+ }
3539
+
3540
+ .pagelayer-flipbox-flip.pagelayer-flipbox-direction-up .pagelayer-flipbox-back{
3541
+ transform: rotateX(-180deg) rotateY(0);
3542
+ -webkit-transform: rotateX(-180deg) rotateY(0);
3543
+ }
3544
+
3545
+ .pagelayer-flipbox-flip.pagelayer-flipbox-direction-down .pagelayer-flipbox-back,
3546
+ .pagelayer-flipbox-flip.pagelayer-flipbox-direction-up .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-front{
3547
+ transform: rotateX(180deg) rotateY(0);
3548
+ -webkit-transform: rotateX(180deg) rotateY(0);
3549
+ }
3550
+
3551
+ .pagelayer-flipbox-flip.pagelayer-flipbox-direction-down .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-front{
3552
+ transform: rotateX(-180deg) rotateY(0);
3553
+ -webkit-transform: rotateX(-180deg) rotateY(0);
3554
+ }
3555
+
3556
+ .pagelayer-flipbox-push .pagelayer-flipbox-flipper,
3557
+ .pagelayer-flipbox-slide .pagelayer-flipbox-flipper{
3558
+ overflow:hidden;
3559
+ }
3560
+
3561
+ .pagelayer-flipbox-push .pagelayer-flipbox-front{
3562
+ transform: none;
3563
+ -webkit-transform: none;
3564
+ }
3565
+
3566
+ .pagelayer-flipbox-push.pagelayer-flipbox-direction-right .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-front{
3567
+ transform:translateX(100%) translateY(0);
3568
+ -webkit-transform:translateX(100%) translateY(0);
3569
+ }
3570
+
3571
+ .pagelayer-flipbox-push.pagelayer-flipbox-direction-left .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-front{
3572
+ transform: translateX(-100%) translateY(0);
3573
+ -webkit-transform: translateX(-100%) translateY(0);
3574
+ }
3575
+
3576
+ .pagelayer-flipbox-push.pagelayer-flipbox-direction-up .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-front{
3577
+ transform: translateX(0) translateY(-100%);
3578
+ -webkit-transform: translateX(0) translateY(-100%);
3579
+ }
3580
+
3581
+ .pagelayer-flipbox-push.pagelayer-flipbox-direction-down .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-front{
3582
+ transform: translateX(0) translateY(100%);
3583
+ -webkit-transform: translateX(0) translateY(100%);
3584
+ }
3585
+
3586
+ .pagelayer-flipbox-push .pagelayer-flipbox,
3587
+ .pagelayer-flipbox-slide .pagelayer-flipbox{
3588
+ overflow: hidden;
3589
+ }
3590
+
3591
+ .pagelayer-flipbox-push .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-back,
3592
+ .pagelayer-flipbox-slide .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-back{
3593
+ transform: none;
3594
+ -webkit-transform: none;
3595
+ }
3596
+
3597
+ .pagelayer-flipbox-push.pagelayer-flipbox-direction-right .pagelayer-flipbox-back,
3598
+ .pagelayer-flipbox-slide.pagelayer-flipbox-direction-right .pagelayer-flipbox-back{
3599
+ transform: translateX(-100%) translateY(0);
3600
+ -webkit-transform: translateX(-100%) translateY(0);
3601
+ }
3602
+
3603
+ .pagelayer-flipbox-push.pagelayer-flipbox-direction-left .pagelayer-flipbox-back,
3604
+ .pagelayer-flipbox-slide.pagelayer-flipbox-direction-left .pagelayer-flipbox-back{
3605
+ transform: translateX(100%) translateY(0);
3606
+ -webkit-transform: translateX(100%) translateY(0);
3607
+ }
3608
+
3609
+ .pagelayer-flipbox-push.pagelayer-flipbox-direction-up .pagelayer-flipbox-back,
3610
+ .pagelayer-flipbox-slide.pagelayer-flipbox-direction-up .pagelayer-flipbox-back{
3611
+ transform: translateX(0) translateY(100%);
3612
+ -webkit-transform: translateX(0) translateY(100%);
3613
+ }
3614
+
3615
+ .pagelayer-flipbox-push.pagelayer-flipbox-direction-down .pagelayer-flipbox-back,
3616
+ .pagelayer-flipbox-slide.pagelayer-flipbox-direction-down .pagelayer-flipbox-back{
3617
+ transform: translateX(0) translateY(-100%);
3618
+ -webkit-transform: translateX(0) translateY(-100%);
3619
+ }
3620
+
3621
+ .pagelayer-flipbox-zoom-out .pagelayer-flipbox-flipper .pagelayer-flipbox-front{
3622
+ transition: opacity .45s, width .1ms, -webkit-transform .8s;
3623
+ -webkit-transition: opacity .45s, width .1ms, -webkit-transform .8s;
3624
+ transition: transform .8s, opacity .45s, width .1ms;
3625
+ transition: transform .8s, opacity .45s, width .1ms, -webkit-transform .8s;
3626
+ opacity: 1;
3627
+ -webkit-transform: scale(1);
3628
+ -ms-transform: scale(1);
3629
+ transform: scale(1);
3630
+ z-index: 1;
3631
+ width: 100%
3632
+ }
3633
+
3634
+ .pagelayer-flipbox-zoom-out .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-front{
3635
+ width: 0;
3636
+ opacity: 0;
3637
+ transform: scale(.7);
3638
+ -webkit-transform: scale(.7);
3639
+ transition: opacity .8s .1s, width .1ms .8s, -webkit-transform .8s;
3640
+ -webkit-transition: opacity .8s .1s, width .1ms .8s, -webkit-transform .8s;
3641
+ transition: transform .8s, opacity .8s .1s, width .1ms .8s;
3642
+ transition: transform .8s, opacity .8s .1s, width .1ms .8s, -webkit-transform .8s
3643
+ }
3644
+
3645
+ .pagelayer-flipbox-zoom-in .pagelayer-flipbox-flipper .pagelayer-flipbox-back{
3646
+ -webkit-transition: opacity .5s .2s, -webkit-transform .7s;
3647
+ transition: opacity .5s .2s, -webkit-transform .7s;
3648
+ transition: transform .7s, opacity .5s .2s;
3649
+ transition: transform .7s, opacity .5s .2s, -webkit-transform .7s;
3650
+ opacity: 0;
3651
+ transform: scale(.7);
3652
+ -webkit-transform: scale(.7);
3653
+ }
3654
+
3655
+ .pagelayer-flipbox-zoom-in .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-back{
3656
+ -webkit-transition: opacity .5s, -webkit-transform .7s;
3657
+ transition: opacity .5s, -webkit-transform .7s;
3658
+ transition: transform .7s, opacity .5s;
3659
+ transition: transform .7s, opacity .5s, -webkit-transform .7s;
3660
+ opacity: 1;
3661
+ transform: scale(1);
3662
+ -webkit-transform: scale(1);
3663
+ }
3664
+
3665
+ .pagelayer-flipbox-fade .pagelayer-flipbox-flipper .pagelayer-flipbox-back{
3666
+ opacity: 0
3667
+ }
3668
+
3669
+ .pagelayer-flipbox-fade .pagelayer-flipbox-flipper:hover .pagelayer-flipbox-back{
3670
+ opacity: 1
3671
+ }
3672
+
3673
+ .pagelayer-flipbox-container.pagelayer-flipbox-flipped .pagelayer-flipbox-main .pagelayer-flipbox-front{
3674
+ display: none
3675
+ }
3676
+
3677
+ .pagelayer-flipbox-container.pagelayer-flipbox-flipped .pagelayer-flipbox-main .pagelayer-flipbox-back{
3678
+ transform: none;
3679
+ -webkit-transform: none;
3680
+ opacity: 1;
3681
+ }
3682
+
3683
+ .pagelayer-flipbox-image{
3684
+ width: 100%;
3685
+ margin: 0 auto;
3686
+ object-fit: cover;
3687
+ }
3688
+
3689
+ .pagelayer-flipbox-image img{
3690
+ width: 50%;
3691
+ object-fit: cover;
3692
+ -o-object-fit: cover;
3693
+ }
3694
+
3695
+ .pagelayer-flipbox[pagelayer-a-back_section= "true"] .pagelayer-flipbox-front{
3696
+ display:none;
3697
+ }
3698
+
3699
+ .pagelayer-flipbox[pagelayer-a-back_section= "true"] .pagelayer-flipbox-back{
3700
+ transform: rotateX(0) rotateY(0deg) !important;
3701
+ -webkit-transform: rotateX(0) rotateY(0deg) !important;
3702
+ opacity: 1 !important;
3703
+ }
3704
+
3705
+ .pagelayer-flipbox-back .pagelayer-service-btn.pagelayer-btn-link{
3706
+ background-color:transparent;
3707
+ }
3708
+
3709
+ /*Flipbox End*/
3710
+
3711
+ /* Animated Heading */
3712
+
3713
+ .pagelayer-aheading-holder {
3714
+ display: inline-block;
3715
+ position:relative;
3716
+ }
3717
+
3718
+ .pagelayer-animated-heading{
3719
+ margin: 0;
3720
+ padding: 0;
3721
+ line-height: 1.4;
3722
+ -webkit-background-clip: text;
3723
+ }
3724
+
3725
+ [class*="pagelayer-blobs"]{
3726
+ display:block;
3727
+ position:absolute;
3728
+ mix-blend-mode:color;
3729
+ animation:pagelayer-blobs 10s ease-in-out infinite alternate;
3730
+ }
3731
+
3732
+ .pagelayer-blobs_1{
3733
+ width: 9%;
3734
+ height: 47%;
3735
+ top: 12%;
3736
+ left: 4%;
3737
+ }
3738
+
3739
+ .pagelayer-blobs_2{
3740
+ width: 10%;
3741
+ height: 50%;
3742
+ top: 60%;
3743
+ left: 34%;
3744
+ }
3745
+
3746
+ .pagelayer-blobs_3{
3747
+ width: 20%;
3748
+ height: 46%;
3749
+ top: 10%;
3750
+ left: 20%;
3751
+ }
3752
+
3753
+ .pagelayer-blobs_4{
3754
+ width: 30%;
3755
+ height: 40%;
3756
+ top: 30%;
3757
+ left: 70%;
3758
+ }
3759
+
3760
+ .pagelayer-blobs_5{
3761
+ width: 12%;
3762
+ height: 40%;
3763
+ top: 61%;
3764
+ left: 12%;
3765
+ }
3766
+
3767
+ .pagelayer-blobs_6{
3768
+ width: 25%;
3769
+ height: 45%;
3770
+ top: 5%;
3771
+ left: 45%;
3772
+ }
3773
+
3774
+ .pagelayer-blobs_7{
3775
+ width: 32%;
3776
+ height: 45%;
3777
+ top: 67%;
3778
+ left: 46%;
3779
+ }
3780
+
3781
+ .pagelayer-hEffect-none [class*="pagelayer-blobs"]{
3782
+ display: none;
3783
+ }
3784
+
3785
+ @keyframes pagelayer-blobs{
3786
+ 0%{border-radius:26% 74% 61% 39% / 54% 67% 33% 46%}
3787
+ 10%{border-radius:74% 26% 47% 53% / 68% 46% 54% 32%}
3788
+ 20%{border-radius:48% 52% 30% 70% / 27% 37% 63% 73%}
3789
+ 30%{border-radius:73% 27% 57% 43% / 28% 67% 33% 72%}
3790
+ 40%{border-radius:63% 37% 56% 44% / 25% 28% 72% 75%}
3791
+ 50%{border-radius:39% 61% 70% 30% / 61% 29% 71% 39%}
3792
+ 60%{border-radius:27% 73% 29% 71% / 73% 51% 49% 27%}
3793
+ 70%{border-radius:39% 61% 65% 35% / 74% 65% 35% 26%}
3794
+ 80%{border-radius:55% 45% 37% 63% / 38% 30% 70% 62%}
3795
+ 90%{border-radius:25% 75% 70% 30% / 39% 50% 50% 61%}
3796
+ 100%{border-radius:66% 34% 33% 67% / 65% 73% 27% 35%}
3797
+ }
3798
+
3799
+ .pagelayer-hEffect-blobs,
3800
+ .pagelayer-hEffect-none,
3801
+ .pagelayer-heading-rotating{
3802
+ -webkit-text-fill-color: transparent;
3803
+ }
3804
+
3805
+ .pagelayer-heading-rotating p{
3806
+ display: inline-block;
3807
+ }
3808
+
3809
+ .pagelayer-words-wrapper {
3810
+ display: inline-block;
3811
+ position: relative;
3812
+ text-align: left;
3813
+ }
3814
+ .pagelayer-words-wrapper span {
3815
+ display: inline-block;
3816
+ position: absolute;
3817
+ white-space: nowrap;
3818
+ left: 0;
3819
+ top: 0;
3820
+ }
3821
+ .pagelayer-words-wrapper span.pagelayer-is-visible {
3822
+ position: relative;
3823
+ }
3824
+
3825
+ /*** xrotate-1 ***/
3826
+ .pagelayer-aheading-rotate1 .pagelayer-words-wrapper {
3827
+ -webkit-perspective: 300px;
3828
+ -moz-perspective: 300px;
3829
+ perspective: 300px;
3830
+ }
3831
+ .pagelayer-aheading-rotate1 span {
3832
+ opacity: 0;
3833
+ -webkit-transform-origin: 50% 100%;
3834
+ -moz-transform-origin: 50% 100%;
3835
+ -ms-transform-origin: 50% 100%;
3836
+ -o-transform-origin: 50% 100%;
3837
+ transform-origin: 50% 100%;
3838
+ -webkit-transform: rotateX(180deg);
3839
+ -moz-transform: rotateX(180deg);
3840
+ -ms-transform: rotateX(180deg);
3841
+ -o-transform: rotateX(180deg);
3842
+ transform: rotateX(180deg);
3843
+ }
3844
+ .pagelayer-aheading-rotate1 span.pagelayer-is-visible {
3845
+ opacity: 1;
3846
+ -webkit-transform: rotateX(0deg);
3847
+ -moz-transform: rotateX(0deg);
3848
+ -ms-transform: rotateX(0deg);
3849
+ -o-transform: rotateX(0deg);
3850
+ transform: rotateX(0deg);
3851
+ -webkit-animation: pagelayer-rotate-1-in 1.2s;
3852
+ -moz-animation: pagelayer-rotate-1-in 1.2s;
3853
+ animation: pagelayer-rotate-1-in 1.2s;
3854
+ }
3855
+ .pagelayer-aheading-rotate1 span.pagelayer-is-hidden {
3856
+ -webkit-transform: rotateX(180deg);
3857
+ -moz-transform: rotateX(180deg);
3858
+ -ms-transform: rotateX(180deg);
3859
+ -o-transform: rotateX(180deg);
3860
+ transform: rotateX(180deg);
3861
+ -webkit-animation: pagelayer-rotate-1-out 1.2s;
3862
+ -moz-animation: pagelayer-rotate-1-out 1.2s;
3863
+ animation: pagelayer-rotate-1-out 1.2s;
3864
+ }
3865
+
3866
+ @-webkit-keyframes pagelayer-rotate-1-in {
3867
+ 0% {
3868
+ -webkit-transform: rotateX(180deg);
3869
+ opacity: 0;
3870
+ }
3871
+ 35% {
3872
+ -webkit-transform: rotateX(120deg);
3873
+ opacity: 0;
3874
+ }
3875
+ 65% {
3876
+ opacity: 0;
3877
+ }
3878
+ 100% {
3879
+ -webkit-transform: rotateX(360deg);
3880
+ opacity: 1;
3881
+ }
3882
+ }
3883
+ @-moz-keyframes pagelayer-rotate-1-in {
3884
+ 0% {
3885
+ -moz-transform: rotateX(180deg);
3886
+ opacity: 0;
3887
+ }
3888
+ 35% {
3889
+ -moz-transform: rotateX(120deg);
3890
+ opacity: 0;
3891
+ }
3892
+ 65% {
3893
+ opacity: 0;
3894
+ }
3895
+ 100% {
3896
+ -moz-transform: rotateX(360deg);
3897
+ opacity: 1;
3898
+ }
3899
+ }
3900
+ @keyframes pagelayer-rotate-1-in {
3901
+ 0% {
3902
+ -webkit-transform: rotateX(180deg);
3903
+ -moz-transform: rotateX(180deg);
3904
+ -ms-transform: rotateX(180deg);
3905
+ -o-transform: rotateX(180deg);
3906
+ transform: rotateX(180deg);
3907
+ opacity: 0;
3908
+ }
3909
+ 35% {
3910
+ -webkit-transform: rotateX(120deg);
3911
+ -moz-transform: rotateX(120deg);
3912
+ -ms-transform: rotateX(120deg);
3913
+ -o-transform: rotateX(120deg);
3914
+ transform: rotateX(120deg);
3915
+ opacity: 0;
3916
+ }
3917
+ 65% {
3918
+ opacity: 0;
3919
+ }
3920
+ 100% {
3921
+ -webkit-transform: rotateX(360deg);
3922
+ -moz-transform: rotateX(360deg);
3923
+ -ms-transform: rotateX(360deg);
3924
+ -o-transform: rotateX(360deg);
3925
+ transform: rotateX(360deg);
3926
+ opacity: 1;
3927
+ }
3928
+ }
3929
+ @-webkit-keyframes pagelayer-rotate-1-out {
3930
+ 0% {
3931
+ -webkit-transform: rotateX(0deg);
3932
+ opacity: 1;
3933
+ }
3934
+ 35% {
3935
+ -webkit-transform: rotateX(-40deg);
3936
+ opacity: 1;
3937
+ }
3938
+ 65% {
3939
+ opacity: 0;
3940
+ }
3941
+ 100% {
3942
+ -webkit-transform: rotateX(180deg);
3943
+ opacity: 0;
3944
+ }
3945
+ }
3946
+ @-moz-keyframes pagelayer-rotate-1-out {
3947
+ 0% {
3948
+ -moz-transform: rotateX(0deg);
3949
+ opacity: 1;
3950
+ }
3951
+ 35% {
3952
+ -moz-transform: rotateX(-40deg);
3953
+ opacity: 1;
3954
+ }
3955
+ 65% {
3956
+ opacity: 0;
3957
+ }
3958
+ 100% {
3959
+ -moz-transform: rotateX(180deg);
3960
+ opacity: 0;
3961
+ }
3962
+ }
3963
+ @keyframes pagelayer-rotate-1-out {
3964
+ 0% {
3965
+ -webkit-transform: rotateX(0deg);
3966
+ -moz-transform: rotateX(0deg);
3967
+ -ms-transform: rotateX(0deg);
3968
+ -o-transform: rotateX(0deg);
3969
+ transform: rotateX(0deg);
3970
+ opacity: 1;
3971
+ }
3972
+ 35% {
3973
+ -webkit-transform: rotateX(-40deg);
3974
+ -moz-transform: rotateX(-40deg);
3975
+ -ms-transform: rotateX(-40deg);
3976
+ -o-transform: rotateX(-40deg);
3977
+ transform: rotateX(-40deg);
3978
+ opacity: 1;
3979
+ }
3980
+ 65% {
3981
+ opacity: 0;
3982
+ }
3983
+ 100% {
3984
+ -webkit-transform: rotateX(180deg);
3985
+ -moz-transform: rotateX(180deg);
3986
+ -ms-transform: rotateX(180deg);
3987
+ -o-transform: rotateX(180deg);
3988
+ transform: rotateX(180deg);
3989
+ opacity: 0;
3990
+ }
3991
+ }
3992
+
3993
+ /*** xrotate-2 ***/
3994
+ .pagelayer-aheading-rotate2 .pagelayer-words-wrapper {
3995
+ -webkit-perspective: 300px;
3996
+ -moz-perspective: 300px;
3997
+ perspective: 300px;
3998
+ }
3999
+ .pagelayer-aheading-rotate2 strong, .pagelayer-aheading-rotate2 b {
4000
+ display: inline-block;
4001
+ -webkit-backface-visibility: hidden;
4002
+ backface-visibility: hidden;
4003
+ }
4004
+ .pagelayer-aheading-rotate2 span {
4005
+ opacity: 0;
4006
+ }
4007
+ .pagelayer-aheading-rotate2 strong {
4008
+ -webkit-transform-style: preserve-3d;
4009
+ -moz-transform-style: preserve-3d;
4010
+ -ms-transform-style: preserve-3d;
4011
+ -o-transform-style: preserve-3d;
4012
+ transform-style: preserve-3d;
4013
+ -webkit-transform: translateZ(-20px) rotateX(90deg);
4014
+ -moz-transform: translateZ(-20px) rotateX(90deg);
4015
+ -ms-transform: translateZ(-20px) rotateX(90deg);
4016
+ -o-transform: translateZ(-20px) rotateX(90deg);
4017
+ transform: translateZ(-20px) rotateX(90deg);
4018
+ opacity: 0;
4019
+ }
4020
+ .pagelayer-is-visible .pagelayer-aheading-rotate2 strong {
4021
+ opacity: 1;
4022
+ }
4023
+ .pagelayer-aheading-rotate2 strong.pagelayer-aheading-in {
4024
+ -webkit-animation: pagelayer-rotate-2-in 0.4s forwards;
4025
+ -moz-animation: pagelayer-rotate-2-in 0.4s forwards;
4026
+ animation: pagelayer-rotate-2-in 0.4s forwards;
4027
+ -webkit-background-clip: text;
4028
+ }
4029
+ .pagelayer-aheading-rotate2 strong.pagelayer-aheading-out {
4030
+ -webkit-animation: pagelayer-rotate-2-out 0.4s forwards;
4031
+ -moz-animation: pagelayer-rotate-2-out 0.4s forwards;
4032
+ animation: pagelayer-rotate-2-out 0.4s forwards;
4033
+ -webkit-background-clip: text;
4034
+ }
4035
+ .pagelayer-aheading-rotate2 b {
4036
+ -webkit-transform: translateZ(20px);
4037
+ -moz-transform: translateZ(20px);
4038
+ -ms-transform: translateZ(20px);
4039
+ -o-transform: translateZ(20px);
4040
+ transform: translateZ(20px);
4041
+ -webkit-text-fill-color: transparent;
4042
+ }
4043
+
4044
+ .pagelayer-no-csstransitions .pagelayer-aheading-rotate2 strong {
4045
+ -webkit-transform: rotateX(0deg);
4046
+ -moz-transform: rotateX(0deg);
4047
+ -ms-transform: rotateX(0deg);
4048
+ -o-transform: rotateX(0deg);
4049
+ transform: rotateX(0deg);
4050
+ opacity: 0;
4051
+ }
4052
+ .pagelayer-no-csstransitions .pagelayer-aheading-rotate2 strong b {
4053
+ -webkit-transform: scale(1);
4054
+ -moz-transform: scale(1);
4055
+ -ms-transform: scale(1);
4056
+ -o-transform: scale(1);
4057
+ transform: scale(1);
4058
+ }
4059
+
4060
+ .pagelayer-no-csstransitions .pagelayer-aheading-rotate2 .pagelayer-is-visible strong {
4061
+ opacity: 1;
4062
+ }
4063
+
4064
+ @-webkit-keyframes pagelayer-rotate-2-in {
4065
+ 0% {
4066
+ opacity: 0;
4067
+ -webkit-transform: translateZ(-20px) rotateX(90deg);
4068
+ }
4069
+ 60% {
4070
+ opacity: 1;
4071
+ -webkit-transform: translateZ(-20px) rotateX(-10deg);
4072
+ }
4073
+ 100% {
4074
+ opacity: 1;
4075
+ -webkit-transform: translateZ(-20px) rotateX(0deg);
4076
+ }
4077
+ }
4078
+ @-moz-keyframes pagelayer-rotate-2-in {
4079
+ 0% {
4080
+ opacity: 0;
4081
+ -moz-transform: translateZ(-20px) rotateX(90deg);
4082
+ }
4083
+ 60% {
4084
+ opacity: 1;
4085
+ -moz-transform: translateZ(-20px) rotateX(-10deg);
4086
+ }
4087
+ 100% {
4088
+ opacity: 1;
4089
+ -moz-transform: translateZ(-20px) rotateX(0deg);
4090
+ }
4091
+ }
4092
+ @keyframes pagelayer-rotate-2-in {
4093
+ 0% {
4094
+ opacity: 0;
4095
+ -webkit-transform: translateZ(-20px) rotateX(90deg);
4096
+ -moz-transform: translateZ(-20px) rotateX(90deg);
4097
+ -ms-transform: translateZ(-20px) rotateX(90deg);
4098
+ -o-transform: translateZ(-20px) rotateX(90deg);
4099
+ transform: translateZ(-20px) rotateX(90deg);
4100
+ }
4101
+ 60% {
4102
+ opacity: 1;
4103
+ -webkit-transform: translateZ(-20px) rotateX(-10deg);
4104
+ -moz-transform: translateZ(-20px) rotateX(-10deg);
4105
+ -ms-transform: translateZ(-20px) rotateX(-10deg);
4106
+ -o-transform: translateZ(-20px) rotateX(-10deg);
4107
+ transform: translateZ(-20px) rotateX(-10deg);
4108
+ }
4109
+ 100% {
4110
+ opacity: 1;
4111
+ -webkit-transform: translateZ(-20px) rotateX(0deg);
4112
+ -moz-transform: translateZ(-20px) rotateX(0deg);
4113
+ -ms-transform: translateZ(-20px) rotateX(0deg);
4114
+ -o-transform: translateZ(-20px) rotateX(0deg);
4115
+ transform: translateZ(-20px) rotateX(0deg);
4116
+ }
4117
+ }
4118
+ @-webkit-keyframes pagelayer-rotate-2-out {
4119
+ 0% {
4120
+ opacity: 1;
4121
+ -webkit-transform: translateZ(-20px) rotateX(0);
4122
+ }
4123
+ 60% {
4124
+ opacity: 0;
4125
+ -webkit-transform: translateZ(-20px) rotateX(-100deg);
4126
+ }
4127
+ 100% {
4128
+ opacity: 0;
4129
+ -webkit-transform: translateZ(-20px) rotateX(-90deg);
4130
+ }
4131
+ }
4132
+ @-moz-keyframes pagelayer-rotate-2-out {
4133
+ 0% {
4134
+ opacity: 1;
4135
+ -moz-transform: translateZ(-20px) rotateX(0);
4136
+ }
4137
+ 60% {
4138
+ opacity: 0;
4139
+ -moz-transform: translateZ(-20px) rotateX(-100deg);
4140
+ }
4141
+ 100% {
4142
+ opacity: 0;
4143
+ -moz-transform: translateZ(-20px) rotateX(-90deg);
4144
+ }
4145
+ }
4146
+ @keyframes pagelayer-rotate-2-out {
4147
+ 0% {
4148
+ opacity: 1;
4149
+ -webkit-transform: translateZ(-20px) rotateX(0);
4150
+ -moz-transform: translateZ(-20px) rotateX(0);
4151
+ -ms-transform: translateZ(-20px) rotateX(0);
4152
+ -o-transform: translateZ(-20px) rotateX(0);
4153
+ transform: translateZ(-20px) rotateX(0);
4154
+ }
4155
+ 60% {
4156
+ opacity: 0;
4157
+ -webkit-transform: translateZ(-20px) rotateX(-100deg);
4158
+ -moz-transform: translateZ(-20px) rotateX(-100deg);
4159
+ -ms-transform: translateZ(-20px) rotateX(-100deg);
4160
+ -o-transform: translateZ(-20px) rotateX(-100deg);
4161
+ transform: translateZ(-20px) rotateX(-100deg);
4162
+ }
4163
+ 100% {
4164
+ opacity: 0;
4165
+ -webkit-transform: translateZ(-20px) rotateX(-90deg);
4166
+ -moz-transform: translateZ(-20px) rotateX(-90deg);
4167
+ -ms-transform: translateZ(-20px) rotateX(-90deg);
4168
+ -o-transform: translateZ(-20px) rotateX(-90deg);
4169
+ transform: translateZ(-20px) rotateX(-90deg);
4170
+ }
4171
+ }
4172
+
4173
+ /*** xloading-bar ***/
4174
+ .pagelayer-aheading-loading-bar p {
4175
+ display: inline-block;
4176
+ }
4177
+ .pagelayer-aheading-loading-bar .pagelayer-words-wrapper {
4178
+ overflow: hidden;
4179
+ vertical-align: top;
4180
+ }
4181
+ .pagelayer-aheading-loading-bar .pagelayer-words-wrapper:after {
4182
+ content: '';
4183
+ position: absolute;
4184
+ left: 0;
4185
+ bottom: 0;
4186
+ height: 3px;
4187
+ width: 0;
4188
+ background: #0096a7;
4189
+ z-index: 2;
4190
+ -webkit-transition: width 0.3s -0.1s;
4191
+ -moz-transition: width 0.3s -0.1s;
4192
+ transition: width 0.3s -0.1s;
4193
+ }
4194
+ .pagelayer-aheading-loading-bar .pagelayer-words-wrapper.pagelayer-is-loading:after {
4195
+ width: 100%;
4196
+ -webkit-transition: width 3s;
4197
+ -moz-transition: width 3s;
4198
+ transition: width 3s;
4199
+ }
4200
+ .pagelayer-aheading-loading-bar span{
4201
+ top: .2em;
4202
+ opacity: 0;
4203
+ -webkit-transition: opacity 0.3s;
4204
+ -moz-transition: opacity 0.3s;
4205
+ transition: opacity 0.3s;
4206
+ }
4207
+ .pagelayer-aheading-loading-bar span.pagelayer-is-visible {
4208
+ opacity: 1;
4209
+ top: 0;
4210
+ }
4211
+
4212
+ /*** xslide ***/
4213
+ .pagelayer-aheading-slide p {
4214
+ display: inline-block;
4215
+ }
4216
+ .pagelayer-aheading-slide .pagelayer-words-wrapper {
4217
+ overflow: hidden;
4218
+ vertical-align: top;
4219
+ }
4220
+ .pagelayer-aheading-slide span {
4221
+ opacity: 0;
4222
+ top: .2em;
4223
+ }
4224
+ .pagelayer-aheading-slide span.pagelayer-is-visible {
4225
+ top: 0;
4226
+ opacity: 1;
4227
+ -webkit-animation: pagelayer-slide-in 0.6s;
4228
+ -moz-animation: pagelayer-slide-in 0.6s;
4229
+ animation: pagelayer-slide-in 0.6s;
4230
+ }
4231
+ .pagelayer-aheading-slide span.pagelayer-is-hidden {
4232
+ -webkit-animation: pagelayer-slide-out 0.6s;
4233
+ -moz-animation: pagelayer-slide-out 0.6s;
4234
+ animation: pagelayer-slide-out 0.6s;
4235
+ }
4236
+
4237
+ @-webkit-keyframes pagelayer-slide-in {
4238
+ 0% {
4239
+ opacity: 0;
4240
+ -webkit-transform: translateY(-100%);
4241
+ }
4242
+ 60% {
4243
+ opacity: 1;
4244
+ -webkit-transform: translateY(20%);
4245
+ }
4246
+ 100% {
4247
+ opacity: 1;
4248
+ -webkit-transform: translateY(0);
4249
+ }
4250
+ }
4251
+ @-moz-keyframes pagelayer-slide-in {
4252
+ 0% {
4253
+ opacity: 0;
4254
+ -moz-transform: translateY(-100%);
4255
+ }
4256
+ 60% {
4257
+ opacity: 1;
4258
+ -moz-transform: translateY(20%);
4259
+ }
4260
+ 100% {
4261
+ opacity: 1;
4262
+ -moz-transform: translateY(0);
4263
+ }
4264
+ }
4265
+ @keyframes pagelayer-slide-in {
4266
+ 0% {
4267
+ opacity: 0;
4268
+ -webkit-transform: translateY(-100%);
4269
+ -moz-transform: translateY(-100%);
4270
+ -ms-transform: translateY(-100%);
4271
+ -o-transform: translateY(-100%);
4272
+ transform: translateY(-100%);
4273
+ }
4274
+ 60% {
4275
+ opacity: 1;
4276
+ -webkit-transform: translateY(20%);
4277
+ -moz-transform: translateY(20%);
4278
+ -ms-transform: translateY(20%);
4279
+ -o-transform: translateY(20%);
4280
+ transform: translateY(20%);
4281
+ }
4282
+ 100% {
4283
+ opacity: 1;
4284
+ -webkit-transform: translateY(0);
4285
+ -moz-transform: translateY(0);
4286
+ -ms-transform: translateY(0);
4287
+ -o-transform: translateY(0);
4288
+ transform: translateY(0);
4289
+ }
4290
+ }
4291
+ @-webkit-keyframes pagelayer-slide-out {
4292
+ 0% {
4293
+ opacity: 1;
4294
+ -webkit-transform: translateY(0);
4295
+ }
4296
+ 60% {
4297
+ opacity: 0;
4298
+ -webkit-transform: translateY(120%);
4299
+ }
4300
+ 100% {
4301
+ opacity: 0;
4302
+ -webkit-transform: translateY(100%);
4303
+ }
4304
+ }
4305
+ @-moz-keyframes pagelayer-slide-out {
4306
+ 0% {
4307
+ opacity: 1;
4308
+ -moz-transform: translateY(0);
4309
+ }
4310
+ 60% {
4311
+ opacity: 0;
4312
+ -moz-transform: translateY(120%);
4313
+ }
4314
+ 100% {
4315
+ opacity: 0;
4316
+ -moz-transform: translateY(100%);
4317
+ }
4318
+ }
4319
+ @keyframes pagelayer-slide-out {
4320
+ 0% {
4321
+ opacity: 1;
4322
+ -webkit-transform: translateY(0);
4323
+ -moz-transform: translateY(0);
4324
+ -ms-transform: translateY(0);
4325
+ -o-transform: translateY(0);
4326
+ transform: translateY(0);
4327
+ }
4328
+ 60% {
4329
+ opacity: 0;
4330
+ -webkit-transform: translateY(120%);
4331
+ -moz-transform: translateY(120%);
4332
+ -ms-transform: translateY(120%);
4333
+ -o-transform: translateY(120%);
4334
+ transform: translateY(120%);
4335
+ }
4336
+ 100% {
4337
+ opacity: 0;
4338
+ -webkit-transform: translateY(100%);
4339
+ -moz-transform: translateY(100%);
4340
+ -ms-transform: translateY(100%);
4341
+ -o-transform: translateY(100%);
4342
+ transform: translateY(100%);
4343
+ }
4344
+ }
4345
+
4346
+ /*** xclip ***/
4347
+ .pagelayer-aheading-clip p {
4348
+ display: inline-block;
4349
+ }
4350
+ .pagelayer-aheading-clip .pagelayer-words-wrapper {
4351
+ overflow: hidden;
4352
+ vertical-align: top;
4353
+ }
4354
+ .pagelayer-aheading-clip .pagelayer-words-wrapper:after {
4355
+ /* line */
4356
+ content: '';
4357
+ position: absolute;
4358
+ top: 0;
4359
+ right: 0;
4360
+ width: 3px;
4361
+ height: 100%;
4362
+ background-color: #aebcb9;
4363
+ }
4364
+ .pagelayer-aheading-clip span {
4365
+ opacity: 0;
4366
+ }
4367
+ .pagelayer-aheading-clip span.pagelayer-is-visible {
4368
+ opacity: 1;
4369
+ }
4370
+
4371
+ /*** xzoom ***/
4372
+ .pagelayer-aheading-zoom .pagelayer-words-wrapper {
4373
+ -webkit-perspective: 300px;
4374
+ -moz-perspective: 300px;
4375
+ perspective: 300px;
4376
+ }
4377
+ .pagelayer-aheading-zoom span{
4378
+ opacity: 0;
4379
+ }
4380
+ .pagelayer-aheading-zoom span.pagelayer-is-visible {
4381
+ opacity: 1;
4382
+ -webkit-animation: pagelayer-zoom-in 0.8s;
4383
+ -moz-animation: pagelayer-zoom-in 0.8s;
4384
+ animation: pagelayer-zoom-in 0.8s;
4385
+ }
4386
+ .pagelayer-aheading-zoom span.pagelayer-is-hidden {
4387
+ -webkit-animation: pagelayer-zoom-out 0.8s;
4388
+ -moz-animation: pagelayer-zoom-out 0.8s;
4389
+ animation: pagelayer-zoom-out 0.8s;
4390
+ }
4391
+
4392
+ @-webkit-keyframes pagelayer-zoom-in {
4393
+ 0% {
4394
+ opacity: 0;
4395
+ -webkit-transform: translateZ(100px);
4396
+ }
4397
+ 100% {
4398
+ opacity: 1;
4399
+ -webkit-transform: translateZ(0);
4400
+ }
4401
+ }
4402
+ @-moz-keyframes pagelayer-zoom-in {
4403
+ 0% {
4404
+ opacity: 0;
4405
+ -moz-transform: translateZ(100px);
4406
+ }
4407
+ 100% {
4408
+ opacity: 1;
4409
+ -moz-transform: translateZ(0);
4410
+ }
4411
+ }
4412
+ @keyframes pagelayer-zoom-in {
4413
+ 0% {
4414
+ opacity: 0;
4415
+ -webkit-transform: translateZ(100px);
4416
+ -moz-transform: translateZ(100px);
4417
+ -ms-transform: translateZ(100px);
4418
+ -o-transform: translateZ(100px);
4419
+ transform: translateZ(100px);
4420
+ }
4421
+ 100% {
4422
+ opacity: 1;
4423
+ -webkit-transform: translateZ(0);
4424
+ -moz-transform: translateZ(0);
4425
+ -ms-transform: translateZ(0);
4426
+ -o-transform: translateZ(0);
4427
+ transform: translateZ(0);
4428
+ }
4429
+ }
4430
+ @-webkit-keyframes pagelayer-zoom-out {
4431
+ 0% {
4432
+ opacity: 1;
4433
+ -webkit-transform: translateZ(0);
4434
+ }
4435
+ 100% {
4436
+ opacity: 0;
4437
+ -webkit-transform: translateZ(-100px);
4438
+ }
4439
+ }
4440
+ @-moz-keyframes pagelayer-zoom-out {
4441
+ 0% {
4442
+ opacity: 1;
4443
+ -moz-transform: translateZ(0);
4444
+ }
4445
+ 100% {
4446
+ opacity: 0;
4447
+ -moz-transform: translateZ(-100px);
4448
+ }
4449
+ }
4450
+ @keyframes pagelayer-zoom-out {
4451
+ 0% {
4452
+ opacity: 1;
4453
+ -webkit-transform: translateZ(0);
4454
+ -moz-transform: translateZ(0);
4455
+ -ms-transform: translateZ(0);
4456
+ -o-transform: translateZ(0);
4457
+ transform: translateZ(0);
4458
+ }
4459
+ 100% {
4460
+ opacity: 0;
4461
+ -webkit-transform: translateZ(-100px);
4462
+ -moz-transform: translateZ(-100px);
4463
+ -ms-transform: translateZ(-100px);
4464
+ -o-transform: translateZ(-100px);
4465
+ transform: translateZ(-100px);
4466
+ }
4467
+ }
4468
+
4469
+ /*** xrotate-3 ***/
4470
+ .pagelayer-aheading-rotate3 .pagelayer-words-wrapper {
4471
+ -webkit-perspective: 300px;
4472
+ -moz-perspective: 300px;
4473
+ perspective: 300px;
4474
+ }
4475
+ .pagelayer-aheading-rotate3 span {
4476
+ opacity: 0;
4477
+ }
4478
+ .pagelayer-aheading-rotate3 strong {
4479
+ display: inline-block;
4480
+ -webkit-transform: rotateY(180deg);
4481
+ -moz-transform: rotateY(180deg);
4482
+ -ms-transform: rotateY(180deg);
4483
+ -o-transform: rotateY(180deg);
4484
+ transform: rotateY(180deg);
4485
+ -webkit-backface-visibility: hidden;
4486
+ backface-visibility: hidden;
4487
+ }
4488
+ .pagelayer-is-visible .pagelayer-aheading-rotate3 strong {
4489
+ -webkit-transform: rotateY(0deg);
4490
+ -moz-transform: rotateY(0deg);
4491
+ -ms-transform: rotateY(0deg);
4492
+ -o-transform: rotateY(0deg);
4493
+ transform: rotateY(0deg);
4494
+ }
4495
+ .pagelayer-aheading-rotate3 strong.pagelayer-aheading-in {
4496
+ -webkit-animation: pagelayer-rotate-3-in 0.6s forwards;
4497
+ -moz-animation: pagelayer-rotate-3-in 0.6s forwards;
4498
+ animation: pagelayer-rotate-3-in 0.6s forwards;
4499
+ }
4500
+ .pagelayer-aheading-rotate3 strong.pagelayer-aheading-out {
4501
+ -webkit-animation: pagelayer-rotate-3-out 0.6s forwards;
4502
+ -moz-animation: pagelayer-rotate-3-out 0.6s forwards;
4503
+ animation: pagelayer-rotate-3-out 0.6s forwards;
4504
+ }
4505
+
4506
+ .pagelayer-no-csstransitions .pagelayer-aheading-rotate3 strong {
4507
+ -webkit-transform: rotateY(0deg);
4508
+ -moz-transform: rotateY(0deg);
4509
+ -ms-transform: rotateY(0deg);
4510
+ -o-transform: rotateY(0deg);
4511
+ transform: rotateY(0deg);
4512
+ opacity: 0;
4513
+ }
4514
+
4515
+ .pagelayer-no-csstransitions .pagelayer-aheading-rotate3 .pagelayer-is-visible strong {
4516
+ opacity: 1;
4517
+ }
4518
+
4519
+ @-webkit-keyframes pagelayer-rotate-3-in {
4520
+ 0% {
4521
+ -webkit-transform: rotateY(180deg);
4522
+ }
4523
+ 100% {
4524
+ -webkit-transform: rotateY(0deg);
4525
+ }
4526
+ }
4527
+ @-moz-keyframes pagelayer-rotate-3-in {
4528
+ 0% {
4529
+ -moz-transform: rotateY(180deg);
4530
+ }
4531
+ 100% {
4532
+ -moz-transform: rotateY(0deg);
4533
+ }
4534
+ }
4535
+ @keyframes pagelayer-rotate-3-in {
4536
+ 0% {
4537
+ -webkit-transform: rotateY(180deg);
4538
+ -moz-transform: rotateY(180deg);
4539
+ -ms-transform: rotateY(180deg);
4540
+ -o-transform: rotateY(180deg);
4541
+ transform: rotateY(180deg);
4542
+ }
4543
+ 100% {
4544
+ -webkit-transform: rotateY(0deg);
4545
+ -moz-transform: rotateY(0deg);
4546
+ -ms-transform: rotateY(0deg);
4547
+ -o-transform: rotateY(0deg);
4548
+ transform: rotateY(0deg);
4549
+ }
4550
+ }
4551
+ @-webkit-keyframes pagelayer-rotate-3-out {
4552
+ 0% {
4553
+ -webkit-transform: rotateY(0);
4554
+ }
4555
+ 100% {
4556
+ -webkit-transform: rotateY(-180deg);
4557
+ }
4558
+ }
4559
+ @-moz-keyframes pagelayer-rotate-3-out {
4560
+ 0% {
4561
+ -moz-transform: rotateY(0);
4562
+ }
4563
+ 100% {
4564
+ -moz-transform: rotateY(-180deg);
4565
+ }
4566
+ }
4567
+ @keyframes pagelayer-rotate-3-out {
4568
+ 0% {
4569
+ -webkit-transform: rotateY(0);
4570
+ -moz-transform: rotateY(0);
4571
+ -ms-transform: rotateY(0);
4572
+ -o-transform: rotateY(0);
4573
+ transform: rotateY(0);
4574
+ }
4575
+ 100% {
4576
+ -webkit-transform: rotateY(-180deg);
4577
+ -moz-transform: rotateY(-180deg);
4578
+ -ms-transform: rotateY(-180deg);
4579
+ -o-transform: rotateY(-180deg);
4580
+ transform: rotateY(-180deg);
4581
+ }
4582
+ }
4583
+
4584
+ /*** xscale ***/
4585
+ .pagelayer-aheading-scale span {
4586
+ opacity: 0;
4587
+ }
4588
+ .pagelayer-aheading-scale strong {
4589
+ display: inline-block;
4590
+ opacity: 0;
4591
+ -webkit-transform: scale(0);
4592
+ -moz-transform: scale(0);
4593
+ -ms-transform: scale(0);
4594
+ -o-transform: scale(0);
4595
+ transform: scale(0);
4596
+ }
4597
+ .pagelayer-is-visible .pagelayer-aheading-scale strong {
4598
+ opacity: 1;
4599
+ }
4600
+ .pagelayer-aheading-scale strong.pagelayer-aheading-in {
4601
+ -webkit-animation: pagelayer-scale-up 0.6s forwards;
4602
+ -moz-animation: pagelayer-scale-up 0.6s forwards;
4603
+ animation: pagelayer-scale-up 0.6s forwards;
4604
+ }
4605
+ .pagelayer-aheading-scale strong.pagelayer-aheading-out {
4606
+ -webkit-animation: pagelayer-scale-down 0.6s forwards;
4607
+ -moz-animation: pagelayer-scale-down 0.6s forwards;
4608
+ animation: pagelayer-scale-down 0.6s forwards;
4609
+ }
4610
+
4611
+ .pagelayer-no-csstransitions .pagelayer-aheading-scale strong {
4612
+ -webkit-transform: scale(1);
4613
+ -moz-transform: scale(1);
4614
+ -ms-transform: scale(1);
4615
+ -o-transform: scale(1);
4616
+ transform: scale(1);
4617
+ opacity: 0;
4618
+ }
4619
+
4620
+ .pagelayer-no-csstransitions .pagelayer-aheading-scale .pagelayer-is-visible strong {
4621
+ opacity: 1;
4622
+ }
4623
+
4624
+ @-webkit-keyframes pagelayer-scale-up {
4625
+ 0% {
4626
+ -webkit-transform: scale(0);
4627
+ opacity: 0;
4628
+ }
4629
+ 60% {
4630
+ -webkit-transform: scale(1.2);
4631
+ opacity: 1;
4632
+ }
4633
+ 100% {
4634
+ -webkit-transform: scale(1);
4635
+ opacity: 1;
4636
+ }
4637
+ }
4638
+ @-moz-keyframes pagelayer-scale-up {
4639
+ 0% {
4640
+ -moz-transform: scale(0);
4641
+ opacity: 0;
4642
+ }
4643
+ 60% {
4644
+ -moz-transform: scale(1.2);
4645
+ opacity: 1;
4646
+ }
4647
+ 100% {
4648
+ -moz-transform: scale(1);
4649
+ opacity: 1;
4650
+ }
4651
+ }
4652
+ @keyframes pagelayer-scale-up {
4653
+ 0% {
4654
+ -webkit-transform: scale(0);
4655
+ -moz-transform: scale(0);
4656
+ -ms-transform: scale(0);
4657
+ -o-transform: scale(0);
4658
+ transform: scale(0);
4659
+ opacity: 0;
4660
+ }
4661
+ 60% {
4662
+ -webkit-transform: scale(1.2);
4663
+ -moz-transform: scale(1.2);
4664
+ -ms-transform: scale(1.2);
4665
+ -o-transform: scale(1.2);
4666
+ transform: scale(1.2);
4667
+ opacity: 1;
4668
+ }
4669
+ 100% {
4670
+ -webkit-transform: scale(1);
4671
+ -moz-transform: scale(1);
4672
+ -ms-transform: scale(1);
4673
+ -o-transform: scale(1);
4674
+ transform: scale(1);
4675
+ opacity: 1;
4676
+ }
4677
+ }
4678
+ @-webkit-keyframes pagelayer-scale-down {
4679
+ 0% {
4680
+ -webkit-transform: scale(1);
4681
+ opacity: 1;
4682
+ }
4683
+ 60% {
4684
+ -webkit-transform: scale(0);
4685
+ opacity: 0;
4686
+ }
4687
+ }
4688
+ @-moz-keyframes pagelayer-scale-down {
4689
+ 0% {
4690
+ -moz-transform: scale(1);
4691
+ opacity: 1;
4692
+ }
4693
+ 60% {
4694
+ -moz-transform: scale(0);
4695
+ opacity: 0;
4696
+ }
4697
+ }
4698
+ @keyframes pagelayer-scale-down {
4699
+ 0% {
4700
+ -webkit-transform: scale(1);
4701
+ -moz-transform: scale(1);
4702
+ -ms-transform: scale(1);
4703
+ -o-transform: scale(1);
4704
+ transform: scale(1);
4705
+ opacity: 1;
4706
+ }
4707
+ 60% {
4708
+ -webkit-transform: scale(0);
4709
+ -moz-transform: scale(0);
4710
+ -ms-transform: scale(0);
4711
+ -o-transform: scale(0);
4712
+ transform: scale(0);
4713
+ opacity: 0;
4714
+ }
4715
+ }
4716
+
4717
+ /*** xpush ***/
4718
+ .pagelayer-aheading-push span {
4719
+ opacity: 0;
4720
+ }
4721
+ .pagelayer-aheading-push span.pagelayer-is-visible {
4722
+ opacity: 1;
4723
+ -webkit-animation: pagelayer-push-in 0.6s;
4724
+ -moz-animation: pagelayer-push-in 0.6s;
4725
+ animation: pagelayer-push-in 0.6s;
4726
+ }
4727
+ .pagelayer-aheading-push span.pagelayer-is-hidden {
4728
+ -webkit-animation: pagelayer-push-out 0.6s;
4729
+ -moz-animation: pagelayer-push-out 0.6s;
4730
+ animation: pagelayer-push-out 0.6s;
4731
+ }
4732
+
4733
+ @-webkit-keyframes pagelayer-push-in {
4734
+ 0% {
4735
+ opacity: 0;
4736
+ -webkit-transform: translateX(-100%);
4737
+ }
4738
+ 60% {
4739
+ opacity: 1;
4740
+ -webkit-transform: translateX(10%);
4741
+ }
4742
+ 100% {
4743
+ opacity: 1;
4744
+ -webkit-transform: translateX(0);
4745
+ }
4746
+ }
4747
+ @-moz-keyframes pagelayer-push-in {
4748
+ 0% {
4749
+ opacity: 0;
4750
+ -moz-transform: translateX(-100%);
4751
+ }
4752
+ 60% {
4753
+ opacity: 1;
4754
+ -moz-transform: translateX(10%);
4755
+ }
4756
+ 100% {
4757
+ opacity: 1;
4758
+ -moz-transform: translateX(0);
4759
+ }
4760
+ }
4761
+ @keyframes pagelayer-push-in {
4762
+ 0% {
4763
+ opacity: 0;
4764
+ -webkit-transform: translateX(-100%);
4765
+ -moz-transform: translateX(-100%);
4766
+ -ms-transform: translateX(-100%);
4767
+ -o-transform: translateX(-100%);
4768
+ transform: translateX(-100%);
4769
+ }
4770
+ 60% {
4771
+ opacity: 1;
4772
+ -webkit-transform: translateX(10%);
4773
+ -moz-transform: translateX(10%);
4774
+ -ms-transform: translateX(10%);
4775
+ -o-transform: translateX(10%);
4776
+ transform: translateX(10%);
4777
+ }
4778
+ 100% {
4779
+ opacity: 1;
4780
+ -webkit-transform: translateX(0);
4781
+ -moz-transform: translateX(0);
4782
+ -ms-transform: translateX(0);
4783
+ -o-transform: translateX(0);
4784
+ transform: translateX(0);
4785
+ }
4786
+ }
4787
+ @-webkit-keyframes pagelayer-push-out {
4788
+ 0% {
4789
+ opacity: 1;
4790
+ -webkit-transform: translateX(0);
4791
+ }
4792
+ 60% {
4793
+ opacity: 0;
4794
+ -webkit-transform: translateX(110%);
4795
+ }
4796
+ 100% {
4797
+ opacity: 0;
4798
+ -webkit-transform: translateX(100%);
4799
+ }
4800
+ }
4801
+ @-moz-keyframes pagelayer-push-out {
4802
+ 0% {
4803
+ opacity: 1;
4804
+ -moz-transform: translateX(0);
4805
+ }
4806
+ 60% {
4807
+ opacity: 0;
4808
+ -moz-transform: translateX(110%);
4809
+ }
4810
+ 100% {
4811
+ opacity: 0;
4812
+ -moz-transform: translateX(100%);
4813
+ }
4814
+ }
4815
+ @keyframes pagelayer-push-out {
4816
+ 0% {
4817
+ opacity: 1;
4818
+ -webkit-transform: translateX(0);
4819
+ -moz-transform: translateX(0);
4820
+ -ms-transform: translateX(0);
4821
+ -o-transform: translateX(0);
4822
+ transform: translateX(0);
4823
+ }
4824
+ 60% {
4825
+ opacity: 0;
4826
+ -webkit-transform: translateX(110%);
4827
+ -moz-transform: translateX(110%);
4828
+ -ms-transform: translateX(110%);
4829
+ -o-transform: translateX(110%);
4830
+ transform: translateX(110%);
4831
+ }
4832
+ 100% {
4833
+ opacity: 0;
4834
+ -webkit-transform: translateX(100%);
4835
+ -moz-transform: translateX(100%);
4836
+ -ms-transform: translateX(100%);
4837
+ -o-transform: translateX(100%);
4838
+ transform: translateX(100%);
4839
+ }
4840
+ }
4841
+
4842
+ /* Animated Heading End */
4843
+
4844
+ /********************/
4845
+ /*** Freemium End ***/
4846
+ /********************/
init.php CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit;
5
 
6
  define('PAGELAYER_BASE', plugin_basename(PAGELAYER_FILE));
7
  define('PAGELAYER_PRO_BASE', 'pagelayer-pro/pagelayer-pro.php');
8
- define('PAGELAYER_VERSION', '1.2.0');
9
  define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
10
  define('PAGELAYER_SLUG', 'pagelayer');
11
  define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
@@ -123,7 +123,10 @@ function pagelayer_load_plugin(){
123
 
124
  // Load the language
125
  load_plugin_textdomain('pagelayer', false, PAGELAYER_SLUG.'/languages/');
126
-
 
 
 
127
  // Its premium
128
  if(defined('PAGELAYER_PREMIUM')){
129
 
@@ -154,6 +157,12 @@ function pagelayer_load_plugin(){
154
  'image' => PAGELAYER_URL.'/images/pagelayer-logo-256.png'
155
  ]);
156
 
 
 
 
 
 
 
157
  }
158
 
159
  }
@@ -201,23 +210,23 @@ function pagelayer_admin_menu() {
201
  // UI Settings
202
  add_submenu_page('pagelayer', __('Website Settings'), __('Website Settings'), $capability, 'pagelayer_website_settings', 'pagelayer_website_page');
203
 
204
- // Its premium
205
- if(defined('PAGELAYER_PREMIUM')){
206
-
207
- // Add new template
208
- add_submenu_page('pagelayer', __('Theme Templates'), __('Theme Templates'), $capability, 'edit.php?post_type=pagelayer-template');
209
 
210
- // Add new template Link
211
- //add_submenu_page('pagelayer', __('Add New Template'), __('Add New Template'), $capability, 'edit.php?post_type=pagelayer-template#new');
212
 
213
- // Add new template
214
- add_submenu_page('pagelayer', __('Add New Template'), __('Add New Template'), $capability, 'pagelayer_template_wizard', 'pagelayer_builder_template_wizard');
215
 
216
- // Export Template Wizard
217
- add_submenu_page('pagelayer', __('Export Templates into a Theme'), __('Export Templates'), $capability, 'pagelayer_template_export', 'pagelayer_builder_export');
 
 
 
218
 
219
- // Its free
220
- }else{
221
 
222
  // Go Pro link
223
  add_submenu_page('pagelayer', __('Pagelayer Go Pro'), __('Go Pro'), $capability, PAGELAYER_PRO_URL);
@@ -243,13 +252,21 @@ function pagelayer_website_page(){
243
 
244
  }
245
 
 
 
 
 
 
 
 
 
 
 
 
246
  // This function will handle the Settings Pages in PageLayer
247
  function pagelayer_page_handler(){
248
 
249
  global $wp_version, $pagelayer;
250
-
251
- wp_enqueue_script( 'pagelayer-admin', PAGELAYER_JS.'/pagelayer-admin.js', array('jquery'), PAGELAYER_VERSION);
252
- wp_enqueue_style( 'pagelayer-admin', PAGELAYER_CSS.'/pagelayer-admin.css', array(), PAGELAYER_VERSION);
253
 
254
  include_once(PAGELAYER_DIR.'/main/settings.php');
255
 
@@ -485,14 +502,18 @@ function pagelayer_global_styles(){
485
  }
486
 
487
  .pagelayer-row .pagelayer-col {
488
- margin-left: 0;
489
- width: 100%; }
 
490
  .pagelayer-row.pagelayer-gutters .pagelayer-col {
491
- margin-bottom: 16px; }
 
492
  .pagelayer-first-sm {
493
- order: -1; }
 
494
  .pagelayer-last-sm {
495
- order: 1; }
 
496
  }
497
 
498
  @media (max-width: '.$pagelayer->settings['mobile_breakpoint'].'px){
5
 
6
  define('PAGELAYER_BASE', plugin_basename(PAGELAYER_FILE));
7
  define('PAGELAYER_PRO_BASE', 'pagelayer-pro/pagelayer-pro.php');
8
+ define('PAGELAYER_VERSION', '1.2.2');
9
  define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
10
  define('PAGELAYER_SLUG', 'pagelayer');
11
  define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
123
 
124
  // Load the language
125
  load_plugin_textdomain('pagelayer', false, PAGELAYER_SLUG.'/languages/');
126
+
127
+ // Load our array for builder
128
+ pagelayer_builder_array();
129
+
130
  // Its premium
131
  if(defined('PAGELAYER_PREMIUM')){
132
 
157
  'image' => PAGELAYER_URL.'/images/pagelayer-logo-256.png'
158
  ]);
159
 
160
+ }
161
+
162
+ // Show the getting started video option
163
+ $seen = get_option('pagelayer_getting_started');
164
+ if(empty($seen) && @$_GET['page'] != 'pagelayer_getting_started'){
165
+ add_action('admin_notices', 'pagelayer_getting_started_notice');
166
  }
167
 
168
  }
210
  // UI Settings
211
  add_submenu_page('pagelayer', __('Website Settings'), __('Website Settings'), $capability, 'pagelayer_website_settings', 'pagelayer_website_page');
212
 
213
+ // Add new template
214
+ add_submenu_page('pagelayer', __('Theme Templates'), __('Theme Templates'), $capability, 'edit.php?post_type=pagelayer-template');
 
 
 
215
 
216
+ // Add new template Link
217
+ //add_submenu_page('pagelayer', __('Add New Template'), __('Add New Template'), $capability, 'edit.php?post_type=pagelayer-template#new');
218
 
219
+ // Add new template
220
+ add_submenu_page('pagelayer', __('Add New Template'), __('Add New Template'), $capability, 'pagelayer_template_wizard', 'pagelayer_builder_template_wizard');
221
 
222
+ // Export Template Wizard
223
+ add_submenu_page('pagelayer', __('Export Templates into a Theme'), __('Export Templates'), $capability, 'pagelayer_template_export', 'pagelayer_builder_export');
224
+
225
+ // Getting Started
226
+ add_submenu_page('pagelayer', __('Getting Started'), __('Getting Started'), $capability, 'pagelayer_getting_started', 'pagelayer_getting_started');
227
 
228
+ // Its Free
229
+ if(!defined('PAGELAYER_PREMIUM')){
230
 
231
  // Go Pro link
232
  add_submenu_page('pagelayer', __('Pagelayer Go Pro'), __('Go Pro'), $capability, PAGELAYER_PRO_URL);
252
 
253
  }
254
 
255
+ // Getting Started
256
+ function pagelayer_getting_started(){
257
+
258
+ global $wp_version, $pagelayer;
259
+
260
+ update_option('pagelayer_getting_started', time());
261
+
262
+ include_once(PAGELAYER_DIR.'/main/getting_started.php');
263
+
264
+ }
265
+
266
  // This function will handle the Settings Pages in PageLayer
267
  function pagelayer_page_handler(){
268
 
269
  global $wp_version, $pagelayer;
 
 
 
270
 
271
  include_once(PAGELAYER_DIR.'/main/settings.php');
272
 
502
  }
503
 
504
  .pagelayer-row .pagelayer-col {
505
+ margin-left: 0;
506
+ width: 100%;
507
+ }
508
  .pagelayer-row.pagelayer-gutters .pagelayer-col {
509
+ margin-bottom: 16px;
510
+ }
511
  .pagelayer-first-sm {
512
+ order: -1;
513
+ }
514
  .pagelayer-last-sm {
515
+ order: 1;
516
+ }
517
  }
518
 
519
  @media (max-width: '.$pagelayer->settings['mobile_breakpoint'].'px){
js/pagelayer-editor.js CHANGED
@@ -18,32 +18,49 @@ pagelayer = {
18
  history_lastTime : new Date(),
19
  props_ref : {},
20
  pro_txt : '',
 
21
  }
22
 
23
  var pagelayer_history_obj = {}, pagelayer_revision_obj = {};
24
  var pagelayer_add_section_data = {};
25
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
- /*window.onerror = function (msg, url, lineNo, columnNo, error) {
28
- var string = msg.toLowerCase();
29
- var substring = "script error";
30
- if (string.indexOf(substring) > -1){
31
- alert("Script Error: See browser console for details");
32
- } else {
33
- var message = [
34
- "Message: " + msg,
35
- "URL: " + url,
36
- "Line: " + lineNo,
37
- "Column: "+ columnNo,
38
- "Error object: " + JSON.stringify(error)
39
- ].join('\n');
40
 
41
- console.log(message);
42
- alert("Script Error: See browser console for details");
43
- }
 
 
 
 
 
44
 
45
- return false;
46
- };*/
 
 
 
 
 
 
 
 
 
47
 
48
  // Lets start
49
  jQuery(document).ready(function(){
@@ -118,7 +135,7 @@ jQuery(document).ready(function(){
118
  pagelayer_set_row_option_position();
119
 
120
  // Just the txt
121
- pagelayer.pro_txt = 'This feature is a part of <a href="'+pagelayer_pro_url+'" target="_blank">Pagelayer Pro</a>. You will need purchase <a href="'+pagelayer_pro_url+'" target="_blank">Pagelayer Pro</a> to use this feature.';
122
 
123
  // Hide the loader
124
  pagelayer_loader_hide();
@@ -143,6 +160,7 @@ function pagelayer_loader_hide(){
143
  });
144
  }
145
  }, 1);
 
146
  }
147
 
148
  // Set row-option top zero(0) of the first row
18
  history_lastTime : new Date(),
19
  props_ref : {},
20
  pro_txt : '',
21
+ loaded : 0,
22
  }
23
 
24
  var pagelayer_history_obj = {}, pagelayer_revision_obj = {};
25
  var pagelayer_add_section_data = {};
26
 
27
+ // Console error manager
28
+ window.onerror = function (msg, url, lineNo, columnNo, error) {
29
+ var string = msg.toLowerCase();
30
+ var substring = "script error";
31
+
32
+ if(pagelayer.loaded > 0){
33
+ return;
34
+ }
35
+
36
+ if (string.indexOf(substring) > -1){
37
+ return;
38
+ }
39
 
40
+ if(url.indexOf('pagelayer')=== -1){
41
+ return;
42
+ }
 
 
 
 
 
 
 
 
 
 
43
 
44
+ var message = [
45
+ "Message: " + msg,
46
+ "\r\n<br>URL: " + url,
47
+ "\r\n<br>Line: " + lineNo,
48
+ "\r\n<br>Column: "+ columnNo,
49
+ "\r\n<br>Error object: " + error
50
+ ].join('\n');
51
+ //alert("Script Error: See browser console for details");
52
 
53
+ pagelayer.$$('.pagelayer-errorBox-content').html(message);
54
+ pagelayer.$$('.pagelayer-errorBox-close').on('click', function(){
55
+ pagelayer.$$('.pagelayer-errorBox').fadeOut();
56
+ });
57
+ pagelayer.$$('.pagelayer-errorBox-support').on('click', function(){
58
+ window.open('http://pagelayer.deskuss.com');
59
+ });
60
+ pagelayer.$$('.pagelayer-errorBox').fadeIn();
61
+
62
+ return false;
63
+ };
64
 
65
  // Lets start
66
  jQuery(document).ready(function(){
135
  pagelayer_set_row_option_position();
136
 
137
  // Just the txt
138
+ pagelayer.pro_txt = pagelayer_pro_txt;
139
 
140
  // Hide the loader
141
  pagelayer_loader_hide();
160
  });
161
  }
162
  }, 1);
163
+ pagelayer.loaded = 1;
164
  }
165
 
166
  // Set row-option top zero(0) of the first row
js/pagelayer-frontend.js CHANGED
@@ -17,6 +17,10 @@ jQuery(document).ready(function(){
17
  pagelayer_pl_row_full(jQuery(this));
18
  });
19
 
 
 
 
 
20
  // Setup any sliders
21
  jQuery('.pagelayer-image_slider').each(function(){
22
  pagelayer_pl_image_slider(jQuery(this));
@@ -57,6 +61,22 @@ jQuery(document).ready(function(){
57
  jQuery('.pagelayer-recaptcha').each(function(){
58
  pagelayer_recaptcha_loader(jQuery(this));
59
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
  pagelayer_stars();
62
 
@@ -480,9 +500,9 @@ function pagelayer_dismiss_alert(x){
480
 
481
  // Video light box handler
482
  function pagelayer_pl_video(jEle){
483
-
484
  // Adding loop, autoplay and mute properties on video before loading
485
- jEle.find('.pagelayer-video-iframe').load( function() {
486
 
487
  // Checking of video source if it is youtube or vimeo because
488
  // TODO: Need to check, if this is not local file then return
@@ -523,8 +543,8 @@ function pagelayer_pl_video(jEle){
523
  var target = jQuery(ev.target);
524
 
525
  if (!target.parent("a").length) {
 
526
  jQuery(this).hide();
527
- jQuery(this).parent().find(".pagelayer-video-iframe")[0].src += "?rel=0&autoplay=1";
528
  }
529
  });
530
 
@@ -813,4 +833,330 @@ function pagelayer_recaptcha_loader(jEle, loadScript){
813
 
814
  }, 500);
815
 
816
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  pagelayer_pl_row_full(jQuery(this));
18
  });
19
 
20
+ jQuery('.pagelayer-anim_heading').each(function(){
21
+ pagelayer_anim_heading(jQuery(this));
22
+ });
23
+
24
  // Setup any sliders
25
  jQuery('.pagelayer-image_slider').each(function(){
26
  pagelayer_pl_image_slider(jQuery(this));
61
  jQuery('.pagelayer-recaptcha').each(function(){
62
  pagelayer_recaptcha_loader(jQuery(this));
63
  });
64
+
65
+ jQuery('.pagelayer-wp_menu').each(function(){
66
+ pagelayer_primary_menu(jQuery(this));
67
+ });
68
+
69
+ jQuery('.pagelayer-contact').each(function(){
70
+ pagelayer_contact_form(jQuery(this));
71
+ });
72
+
73
+ jQuery('.pagelayer-countdown').each(function(){
74
+ pagelayer_countdown(jQuery(this));
75
+ });
76
+
77
+ jQuery('.pagelayer-testimonial_slider').each(function(){
78
+ pagelayer_pl_testimonial_slider(jQuery(this));
79
+ });
80
 
81
  pagelayer_stars();
82
 
500
 
501
  // Video light box handler
502
  function pagelayer_pl_video(jEle){
503
+ var videoIframe = jEle.find('.pagelayer-video-iframe');
504
  // Adding loop, autoplay and mute properties on video before loading
505
+ videoIframe.on('load', function() {
506
 
507
  // Checking of video source if it is youtube or vimeo because
508
  // TODO: Need to check, if this is not local file then return
543
  var target = jQuery(ev.target);
544
 
545
  if (!target.parent("a").length) {
546
+ videoIframe[0].src = videoIframe[0].src.replace("&autoplay=0", "rel=0&autoplay=1");
547
  jQuery(this).hide();
 
548
  }
549
  });
550
 
833
 
834
  }, 500);
835
 
836
+ }
837
+
838
+ ////////////
839
+ // Freemium
840
+ ////////////
841
+
842
+ // Contact Form handler - Premium
843
+ function pagelayer_contact_form(jEle){
844
+
845
+ jEle = jQuery(jEle);
846
+ var id = jEle.attr('pagelayer-id');
847
+
848
+ // Set pagelayer id to input field
849
+ jEle.find('form input[name="cfa-pagelayer-id"]').val(id);
850
+
851
+ }
852
+
853
+ // Contact Form Submit handler - Premium
854
+ function pagelayer_contact_submit(jEle, e){
855
+ e.preventDefault();
856
+ //var fdata = jQuery(jEle).closest('form').serialize();
857
+ var redirect = jQuery(jEle).find('input[name="cfa-redirect"]');
858
+ var formData = new FormData( jQuery(jEle)[0] );
859
+
860
+ // Append the nonce
861
+ formData.append('pagelayer_nonce', pagelayer_global_nonce);
862
+
863
+ jQuery.ajax({
864
+ url: pagelayer_ajaxurl+'action=pagelayer_contact_submit',
865
+ type: "POST",
866
+ data: formData,
867
+ processData: false,
868
+ contentType: false,
869
+ cache:false,
870
+ success:function(result){
871
+ var json = jQuery.parseJSON(result);
872
+ if('success' in json){
873
+ jQuery(jEle).parent().find(".pagelayer-message-box").html(json['success']).fadeIn().delay(10000).fadeOut();
874
+
875
+ if(redirect.length > 0 && !pagelayer_empty(redirect.val())){
876
+ window.location.href = redirect.val();
877
+ }
878
+ }else{
879
+ jQuery(jEle).parent().find(".pagelayer-message-box").html(json['failed']).fadeIn().delay(10000).fadeOut();
880
+ }
881
+ }
882
+ });
883
+ jEle.reset();
884
+
885
+ jQuery(jEle).find('.pagelayer-recaptcha').each(function(){
886
+ var widgetID = jQuery(this).attr('recaptcha-widget-id');
887
+
888
+ if(!pagelayer_empty(window.grecaptcha)){
889
+ grecaptcha.reset(widgetID);
890
+ }
891
+ });
892
+
893
+ return false;
894
+ }
895
+
896
+ // Primary Menu Handler - Premium
897
+ function pagelayer_primary_menu(jEle){
898
+
899
+ var container = jEle.find('.pagelayer-wp-menu-container');
900
+ var menu_bar = jEle.find('.pagelayer-primary-menu-bar').find('i.fa');
901
+ var menu_holder = jEle.find('.pagelayer-wp-menu-holder');
902
+ var layout = menu_holder.data('layout');
903
+ var submenu_ind = menu_holder.data('submenu_ind');
904
+ var responsive = menu_holder.data('responsive');
905
+ var drop_breakpoint = menu_holder.data('drop_breakpoint');
906
+ var close = jEle.find('.pagelayer-wp_menu-close');
907
+
908
+ var media_mode = pagelayer_get_media_mode();
909
+
910
+ if( (drop_breakpoint == 'tablet' && (media_mode == 'tablet' || media_mode == 'mobile')) || (drop_breakpoint == 'mobile' && media_mode == 'mobile') ){
911
+
912
+ menu_holder.addClass('pagelayer-wp-menu-dropdown');
913
+ container.addClass('pagelayer-menu-type-dropdown');
914
+ container.removeClass('pagelayer-menu-type-'+layout);
915
+ layout = 'dropdown';
916
+
917
+ }else{
918
+ menu_holder.removeClass('pagelayer-wp-menu-dropdown');
919
+ container.removeClass('pagelayer-menu-type-dropdown');
920
+ container.addClass('pagelayer-menu-type-'+layout);
921
+ }
922
+
923
+ // Menu toggle
924
+ jQuery(menu_bar).unbind('click');
925
+ jQuery(menu_bar).click(function(){
926
+ jQuery(container).toggleClass('pagelayer-togglt-on');
927
+ if(jQuery(container).hasClass('pagelayer-togglt-on')){
928
+ jQuery(this).removeClass('fa-bars');
929
+ jQuery(this).addClass('fa-times');
930
+ }else{
931
+ jQuery(this).addClass('fa-bars');
932
+ jQuery(this).removeClass('fa-times');
933
+ }
934
+ });
935
+
936
+ // If has sub-menu the as icon
937
+ var aEle_sub_menu = jQuery(container).find('.pagelayer-wp_menu-ul li ul.sub-menu').parent().children('a');
938
+
939
+ if(aEle_sub_menu.children('.after-icon').length < 1){
940
+ aEle_sub_menu.append('<span class="after-icon fa fa-'+submenu_ind+'"></span>');
941
+ }
942
+
943
+ // Toggle Sub nav
944
+ var after_icon = jQuery(container).find('.pagelayer-wp_menu-ul li.menu-item-has-children .after-icon');
945
+
946
+ after_icon.unbind('click');
947
+ after_icon.click(function(e){
948
+ e.preventDefault();
949
+ if(window.matchMedia("(max-width: "+pagelayer_settings['tablet_breakpoint']+"px)").matches || layout != 'horizontal'){
950
+ jQuery(this).closest('li').toggleClass('active-sub-menu');
951
+ }else{
952
+ jQuery(this).closest('li').removeClass('active-sub-menu');
953
+ }
954
+ });
955
+
956
+ close.unbind('click');
957
+ close.click(function(){
958
+ jQuery(container).toggleClass('pagelayer-togglt-on');
959
+ jQuery(menu_bar).removeClass('fa-times');
960
+ jQuery(menu_bar).addClass('fa-bars');
961
+ })
962
+
963
+ }
964
+
965
+ var count_int ={};
966
+ // Show countdown render
967
+ function pagelayer_countdown(jEle){
968
+
969
+ var expiry_date = jEle.find('.pagelayer-countdown-container').attr('pagelayer-expiry-date');
970
+ var timetype = jEle.find('.pagelayer-countdown-container').attr('pagelayer-time-type');
971
+ var jEle_id = jEle.attr('pagelayer-id');
972
+
973
+ if(pagelayer_empty(expiry_date) || expiry_date == "{{date}}"){
974
+ var expiry_date = new Date(new Date().getTime() + 24 * 60 * 60 * 1000);
975
+ }
976
+
977
+ var now;
978
+ if(timetype == "server"){
979
+ now = new Date(pagelayer_server_time*1000).getTime();
980
+ }else{
981
+ now = new Date().getTime();
982
+ }
983
+
984
+ var countDownDate = new Date(expiry_date).getTime();
985
+ var distance = countDownDate - now;
986
+
987
+ clearInterval(count_int[jEle_id]);
988
+ count_int[jEle_id] = setInterval(function() {
989
+
990
+ // Time calculations for days, hours, minutes and seconds
991
+ var days = Math.floor(distance / (1000 * 60 * 60 * 24));
992
+ var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
993
+ var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
994
+ var seconds = Math.floor((distance % (1000 * 60)) / 1000);
995
+
996
+ jEle.find('.pagelayer-days-count').html(days);
997
+ jEle.find('.pagelayer-hours-count').html(hours);
998
+ jEle.find('.pagelayer-minutes-count').html(minutes);
999
+ jEle.find('.pagelayer-seconds-count').html(seconds);
1000
+
1001
+ // If the count down is over, write some text
1002
+ if(distance < 0) {
1003
+ clearInterval(count_int[jEle_id]);
1004
+ jEle.find('.pagelayer-countdown-expired').show();
1005
+ jEle.find('.pagelayer-countdown-counter').hide();
1006
+ }
1007
+
1008
+ distance = distance - 1000;
1009
+
1010
+ }, 1000);
1011
+ }
1012
+
1013
+ function pagelayer_pl_testimonial_slider(jEle){
1014
+ var ul = jQuery(jEle.find('.pagelayer-testimonials-holder'));
1015
+
1016
+ // Build the options
1017
+ var options = pagelayer_fetch_dataAttrs(ul, 'data-slides-');
1018
+
1019
+ pagelayer_owl_init(jEle, ul, options);
1020
+ }
1021
+
1022
+ function pagelayer_anim_heading(jEle){
1023
+ var animationDelay = 2500,
1024
+ //loading bar effect
1025
+ barAnimationDelay = 3800,
1026
+ barWaiting = barAnimationDelay - 3000, //3000 is the duration of the transition on the loading bar - set in the scss/css file
1027
+ //letters effect
1028
+ lettersDelay = 50,
1029
+ //type effect
1030
+ typeLettersDelay = 150,
1031
+ selectionDuration = 500,
1032
+ typeAnimationDelay = selectionDuration + 800,
1033
+ //clip effect
1034
+ revealDuration = 600,
1035
+ revealAnimationDelay = 1500;
1036
+
1037
+ initHeadline();
1038
+
1039
+ function initHeadline(){
1040
+ //insert <i> element for each letter of a changing word
1041
+ singleLetters(jQuery('.pagelayer-aheading-holder.letters').find('span'));
1042
+ //initialise headline animation
1043
+ animateHeadline(jQuery('.pagelayer-aheading-holder'));
1044
+ }
1045
+
1046
+ function singleLetters($words){
1047
+ $words.each(function(){
1048
+ var word = jQuery(this),
1049
+ letters = word.text().split(''),
1050
+ selected = word.hasClass('pagelayer-is-visible');
1051
+ for (i in letters) {
1052
+ if(word.parents('.pagelayer-aheading-rotate2').length > 0) letters[i] = '<b>' + letters[i] + '</b>';
1053
+ letters[i] = (selected) ? '<strong class="pagelayer-aheading-in">' + letters[i] + '</strong>': '<strong>' + letters[i] + '</strong>';
1054
+ }
1055
+ var newLetters = letters.join('');
1056
+ word.html(newLetters).css('opacity', 1);
1057
+ });
1058
+ }
1059
+
1060
+ function animateHeadline($headlines){
1061
+ var duration = animationDelay;
1062
+ $headlines.each(function(){
1063
+ var headline = jQuery(this);
1064
+
1065
+ if(headline.hasClass('pagelayer-aheading-loading-bar')){
1066
+ duration = barAnimationDelay;
1067
+ setTimeout(function(){ headline.find('.pagelayer-words-wrapper').addClass('pagelayer-is-loading') }, barWaiting);
1068
+ }else if(headline.hasClass('pagelayer-aheading-clip')){
1069
+ var spanWrapper = headline.find('.pagelayer-words-wrapper'),
1070
+ newWidth = spanWrapper.width() + 10
1071
+ spanWrapper.css('width', newWidth);
1072
+ } else if (!headline.hasClass('type') ){
1073
+ var words = headline.find('.pagelayer-words-wrapper span'),
1074
+ width = 0;
1075
+ words.each(function(){
1076
+ var wordWidth = jQuery(this).width();
1077
+ if (wordWidth > width) width = wordWidth;
1078
+ });
1079
+ headline.find('.pagelayer-words-wrapper').css('width', width);
1080
+ };
1081
+
1082
+ //trigger animation
1083
+ setTimeout(function(){ hideWord( headline.find('.pagelayer-is-visible').eq(0) ) }, duration);
1084
+ });
1085
+ }
1086
+
1087
+ function hideWord($word){
1088
+ var nextWord = takeNext($word);
1089
+
1090
+ if($word.parents('.pagelayer-aheading-holder').hasClass('letters')){
1091
+ var bool = ($word.children('strong').length >= nextWord.children('strong').length) ? true : false;
1092
+ hideLetter($word.find('strong').eq(0), $word, bool, lettersDelay);
1093
+ showLetter(nextWord.find('strong').eq(0), nextWord, bool, lettersDelay);
1094
+
1095
+ }else if($word.parents('.pagelayer-aheading-holder').hasClass('pagelayer-aheading-clip')){
1096
+ $word.parents('.pagelayer-words-wrapper').animate({ width : '2px' }, revealDuration, function(){
1097
+ switchWord($word, nextWord);
1098
+ showWord(nextWord);
1099
+ });
1100
+
1101
+ }else if($word.parents('.pagelayer-aheading-holder').hasClass('pagelayer-aheading-loading-bar')){
1102
+ $word.parents('.pagelayer-words-wrapper').removeClass('pagelayer-is-loading');
1103
+ switchWord($word, nextWord);
1104
+ setTimeout(function(){ hideWord(nextWord) }, barAnimationDelay);
1105
+ setTimeout(function(){ $word.parents('.pagelayer-words-wrapper').addClass('pagelayer-is-loading') }, barWaiting);
1106
+
1107
+ }else{
1108
+ switchWord($word, nextWord);
1109
+ setTimeout(function(){ hideWord(nextWord) }, animationDelay);
1110
+ }
1111
+ }
1112
+
1113
+ function showWord($word, $duration){
1114
+ if($word.parents('.pagelayer-aheading-holder').hasClass('pagelayer-aheading-clip')){
1115
+ $word.parents('.pagelayer-words-wrapper').animate({ 'width' : $word.width() + 10 }, revealDuration, function(){
1116
+ setTimeout(function(){ hideWord($word) }, revealAnimationDelay);
1117
+ });
1118
+ }
1119
+ }
1120
+
1121
+ function hideLetter($letter, $word, $bool, $duration){
1122
+ $letter.removeClass('pagelayer-aheading-in').addClass('pagelayer-aheading-out');
1123
+
1124
+ if(!$letter.is(':last-child')){
1125
+ setTimeout(function(){ hideLetter($letter.next(), $word, $bool, $duration); }, $duration);
1126
+ }else if($bool){
1127
+ setTimeout(function(){ hideWord(takeNext($word)) }, animationDelay);
1128
+ }
1129
+
1130
+ if($letter.is(':last-child') && jQuery('html').hasClass('pagelayer-no-csstransitions')){
1131
+ var nextWord = takeNext($word);
1132
+ switchWord($word, nextWord);
1133
+ }
1134
+ }
1135
+
1136
+ function showLetter($letter, $word, $bool, $duration){
1137
+ $letter.addClass('pagelayer-aheading-in').removeClass('pagelayer-aheading-out');
1138
+
1139
+ if(!$letter.is(':last-child')){
1140
+ setTimeout(function(){ showLetter($letter.next(), $word, $bool, $duration); }, $duration);
1141
+ }else{
1142
+ if(!$bool) { setTimeout(function(){ hideWord($word) }, animationDelay) }
1143
+ }
1144
+ }
1145
+
1146
+ function takeNext($word){
1147
+ return (!$word.is(':last-child')) ? $word.next() : $word.parent().children().eq(0);
1148
+ }
1149
+
1150
+ function takePrev($word){
1151
+ return (!$word.is(':first-child')) ? $word.prev() : $word.parent().children().last();
1152
+ }
1153
+
1154
+ function switchWord($oldWord, $newWord){
1155
+ $oldWord.removeClass('pagelayer-is-visible').addClass('.pagelayer-is-hidden');
1156
+ $newWord.removeClass('.pagelayer-is-hidden').addClass('pagelayer-is-visible');
1157
+ }
1158
+ }
1159
+
1160
+ ////////////////
1161
+ // Freemium End
1162
+ ////////////////
js/properties.js CHANGED
@@ -2567,6 +2567,10 @@ function pagelayer_elp_group(row, prop){
2567
 
2568
  // Handle click of the group
2569
  row.find('.pagelayer-elp-button').on('click', function(){
 
 
 
 
2570
  add_item(row);
2571
  });
2572
 
@@ -2578,6 +2582,16 @@ function pagelayer_elp_group(row, prop){
2578
  });
2579
  };
2580
 
 
 
 
 
 
 
 
 
 
 
2581
  // Moving an element
2582
  function pagelayer_moving_element(jEle, start_pos, end_pos){
2583
  if(start_pos==end_pos){
2567
 
2568
  // Handle click of the group
2569
  row.find('.pagelayer-elp-button').on('click', function(){
2570
+ if('pro' in prop && pagelayer_empty(pagelayer_pro)){
2571
+ pagelayer_pro_notice();
2572
+ return;
2573
+ }
2574
  add_item(row);
2575
  });
2576
 
2582
  });
2583
  };
2584
 
2585
+ function pagelayer_pro_notice(){
2586
+ var div = pagelayer.$$('.pagelayer-pro-notice');
2587
+
2588
+ div.find('.pagelayer-pro-x').click(function(){
2589
+ div.hide();
2590
+ });
2591
+
2592
+ div.show();
2593
+ }
2594
+
2595
  // Moving an element
2596
  function pagelayer_moving_element(jEle, start_pos, end_pos){
2597
  if(start_pos==end_pos){
js/widgets.js CHANGED
@@ -661,3 +661,494 @@ function pagelayer_owl_destroy(jEle, slides_class){
661
  }
662
  }
663
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
661
  }
662
  }
663
  }
664
+
665
+ ////////////
666
+ // Freemium
667
+ ////////////
668
+
669
+ // Render the excerpt
670
+ function pagelayer_render_html_pl_post_excerpt(el){
671
+ el.$.find('.pagelayer-post-excerpt').addClass('pagelayer-empty-widget');
672
+ }
673
+
674
+ // Render the featured image
675
+ function pagelayer_render_html_pl_featured_img(el){
676
+
677
+ var param = {};
678
+
679
+ param['pagelayer_nonce'] = pagelayer_ajax_nonce;
680
+
681
+ // Post Id
682
+ param['post_id'] = pagelayer_postID;
683
+
684
+ // Image size
685
+ if('size' in el.atts){
686
+ param['size'] = el.atts['size'];
687
+ }
688
+
689
+ jQuery.ajax({
690
+ url: pagelayer_ajax_url+'action=pagelayer_fetch_featured_img',
691
+ type: 'post',
692
+ data: param,
693
+ success: function(data){
694
+
695
+ var src = '';
696
+ if(pagelayer_empty(data)){
697
+ src = el.tmp['img-'+el.atts['size']+'-url'] || el.tmp['img-url'];
698
+ src = src || el.atts['img'];
699
+ }else{
700
+ src = data;
701
+ //url = el.atts['img-url'];
702
+ }
703
+
704
+ var img_html = '<img class="pagelayer-img" src="'+pagelayer.blank_img+'" />';
705
+ if(src){
706
+ img_html = '<img class="pagelayer-img" src="'+src+'" />';
707
+ }
708
+
709
+ el.$.find('.pagelayer-featured-img').html(img_html);
710
+
711
+ if('link_type' in el.atts){
712
+
713
+ // Custom url
714
+ if(el.atts['link_type'] == 'custom_url'){
715
+ el.$.find('a').attr('href', el.tmp['link']);
716
+ }
717
+
718
+ // Link to the media file itself
719
+ if(el.atts['link_type'] == 'media_file' || el.atts['link_type'] == 'lightbox'){
720
+ el.$.find('a').attr('href', src);
721
+ }
722
+ }
723
+
724
+ pagelayer_pl_image(el.$);
725
+ }
726
+ });
727
+ }
728
+
729
+ /////////////////
730
+ // Freemium
731
+ /////////////////
732
+
733
+ // If you want to store ajax data then you can use this variable
734
+ var pagelayer_ajax_data = {};
735
+
736
+ var pagelayer_posts_data = {};
737
+
738
+ // Compare two objects
739
+ function pagelayer_compare_object(obj1, obj2){
740
+ var objectsAreSame = true;
741
+ for(var propertyName in obj1){
742
+ if(obj1[propertyName] !== obj2[propertyName]){
743
+ objectsAreSame = false;
744
+ break;
745
+ }
746
+ }
747
+ for(var propertyName in obj2){
748
+ if(obj1[propertyName] !== obj2[propertyName]){
749
+ objectsAreSame = false;
750
+ break;
751
+ }
752
+ }
753
+ return objectsAreSame;
754
+ }
755
+
756
+ // Incase if there is a lightbox
757
+ function pagelayer_render_end_pl_featured_img(el){
758
+ pagelayer_pl_image(el.$);
759
+ }
760
+
761
+ // Render the archive Posts
762
+ function pagelayer_render_pl_archive_posts(el){
763
+
764
+ // Need to do empty
765
+ el.atts['pagelayer_pagination_top'] = '';
766
+ el.atts['pagelayer_pagination_bottom'] = '';
767
+
768
+ }
769
+
770
+ // Render the archive Posts
771
+ function pagelayer_render_end_pl_archive_posts(el){
772
+ var post = {};
773
+
774
+ // All atts
775
+ post['atts'] = JSON.parse(JSON.stringify(el.atts));
776
+ post['atts']['pagelayer-id'] = el['id'];
777
+
778
+ // The nonce
779
+ post['pagelayer_nonce'] = pagelayer_ajax_nonce;
780
+
781
+ var data_handle = function(data){
782
+ //console.log(data);
783
+ var d = jQuery(data);
784
+ el.$.html(d.html());
785
+ pagelayer_ajax_data[el['id']] = data;
786
+ }
787
+
788
+ if(pagelayer_empty(pagelayer_posts_data) || !pagelayer_compare_object(pagelayer_posts_data, post) || pagelayer_empty(pagelayer_ajax_data[el['id']])){
789
+
790
+ pagelayer_posts_data = post;
791
+
792
+ jQuery.ajax({
793
+ url: pagelayer_ajax_url+'action=pagelayer_archive_posts_data',
794
+ type: 'post',
795
+ data: post,
796
+ success: data_handle
797
+ });
798
+ }else{
799
+ data_handle(pagelayer_ajax_data[el['id']]);
800
+ }
801
+ }
802
+
803
+ var pagelayer_nav = {};
804
+
805
+ // Render the Primary menu
806
+ function pagelayer_render_pl_wp_menu(el){
807
+
808
+ if(pagelayer_empty(pagelayer_nav[el.atts['nav_list']])){
809
+ jQuery.ajax({
810
+ url: pagelayer_ajax_url+'&action=pagelayer_fetch_primary_menu',
811
+ type: 'post',
812
+ data: {
813
+ pagelayer_nonce: pagelayer_ajax_nonce,
814
+ nav_list: el.atts['nav_list'],
815
+ },
816
+ async: false,
817
+ success: function(data) {
818
+ //console.log(data);
819
+ //el.$.find('.pagelayer-wp-menu-container').html(data);
820
+ pagelayer_nav[el.atts['nav_list']] = data;
821
+ el.atts['nav_menu'] = data;
822
+ }
823
+ });
824
+ }else{
825
+ el.atts['nav_menu'] = pagelayer_nav[el.atts['nav_list']];
826
+ }
827
+ }
828
+
829
+ // Render end the Primary menu
830
+ function pagelayer_render_end_pl_wp_menu(el){
831
+ pagelayer_primary_menu(el.$);
832
+ }
833
+
834
+ // Render the post navigation
835
+ function pagelayer_render_end_pl_post_nav(el){
836
+
837
+ jQuery.ajax({
838
+ url: pagelayer_ajax_url+'&action=pagelayer_post_nav&postID='+pagelayer_postID,
839
+ type: 'post',
840
+ data: {
841
+ pagelayer_nonce: pagelayer_ajax_nonce,
842
+ data: el['atts'],
843
+ },
844
+ async:false,
845
+ success: function(response){
846
+ //console.log(response);
847
+ var obj = jQuery.parseJSON(response);
848
+ el.$.find('.pagelayer-prev-post').html(obj['atts']['prev_link']);
849
+ el.$.find('.pagelayer-next-post').html(obj['atts']['next_link']);
850
+ }
851
+ });
852
+
853
+ }
854
+
855
+ // Render the site title
856
+ function pagelayer_render_pl_wp_title(el){
857
+ //console.log(el.tmp);
858
+
859
+ // Use default logo
860
+ if(pagelayer_empty(el.atts['logo_img_type'])){
861
+
862
+ // But is there a default logo
863
+ if(!pagelayer_empty(pagelayer_site_logo)){
864
+ el.atts['func_image'] = pagelayer_site_logo[el.atts['logo_img_size']+'-url'] || pagelayer_site_logo['url'];
865
+ }
866
+
867
+ // Custom logo
868
+ }else{
869
+ el.atts['func_image'] = el.tmp['logo_img-'+el.atts['logo_img_size']+'-url'] || el.tmp['logo_img-url'];
870
+ }
871
+ }
872
+
873
+ // Render the Post comment
874
+ function pagelayer_render_end_pl_post_comment(el){
875
+
876
+ var postID = pagelayer_postID;
877
+
878
+ if(el['atts']['post_type'] == 'custom' && el['atts']['post_id']){
879
+ postID = el['atts']['post_id'];
880
+ }
881
+
882
+ jQuery.ajax({
883
+ url: pagelayer_ajax_url+'&action=pagelayer_post_comment&postID='+postID,
884
+ type: 'post',
885
+ data: {
886
+ pagelayer_nonce: pagelayer_ajax_nonce,
887
+ },
888
+ success: function(response){
889
+ el.$.find('.pagelayer-post-comment-container').html(response);
890
+ }
891
+ });
892
+
893
+ }
894
+
895
+ var pagelayer_post_info_timer = {};
896
+
897
+ // Render the Post info list
898
+ function pagelayer_render_pl_post_info_list(el){
899
+
900
+ // Clear any previous timeout
901
+ clearTimeout(pagelayer_post_info_timer[el.id]);
902
+
903
+ // Set a timer for constant change
904
+ pagelayer_post_info_timer[el.id] = setTimeout(function(){
905
+
906
+ // Make the call
907
+ jQuery.ajax({
908
+ url: pagelayer_ajax_url+'&action=pagelayer_post_info&postID='+pagelayer_postID,
909
+ type: 'post',
910
+ data: {
911
+ pagelayer_nonce: pagelayer_ajax_nonce,
912
+ el: el.atts,
913
+ },
914
+ success: function(response){
915
+ var obj = jQuery.parseJSON(response);
916
+ //console.log(obj);el['atts'] = obj;
917
+ el.$.find('.pagelayer-post-info-label').html(obj['post_info_content']);
918
+ el.$.find('.pagelayer-post-info-icon img').attr('src', obj['avatar_url']);
919
+ el.$.find('.pagelayer-post-info-list-container > a').attr('href', obj['link']);
920
+ }
921
+ });
922
+
923
+ }, 500);
924
+
925
+ }
926
+
927
+ // Render the contact form
928
+ function pagelayer_render_pl_contact(el){
929
+
930
+ // Set post id in atts
931
+ el.atts['con_post_id'] = pagelayer_postID;
932
+ el.atts['grecaptcha'] = pagelayer_recaptch_site_key;
933
+ el.$.attr('pagelayer-a-con_post_id', pagelayer_postID);
934
+ }
935
+
936
+ // Render the contact form
937
+ function pagelayer_render_end_pl_contact(el){
938
+
939
+ jQuery(el.$).find('.pagelayer-recaptcha').each(function(){
940
+ var recaptcha = jQuery(this);
941
+ var widgetID = recaptcha.attr('recaptcha-widget-id');
942
+
943
+ if( !pagelayer_empty(window.grecaptcha) && (!pagelayer_empty(widgetID) || widgetID == 0) ){
944
+ grecaptcha.reset(widgetID);
945
+ }else{
946
+ pagelayer_recaptcha_loader(recaptcha, true);
947
+ }
948
+ });
949
+ }
950
+
951
+ // Render the contact form
952
+ function pagelayer_render_pl_contact_item(el){
953
+ var html = '';
954
+ var options = '';
955
+ var placeholder = '';
956
+ var required = '';
957
+
958
+ if(!pagelayer_empty(el.atts['required'])){
959
+ required = 'required';
960
+ }
961
+
962
+ if(!pagelayer_empty(el.atts['label_name']) && pagelayer_empty(el.atts['label_as_holder'])){
963
+ html = '<label for="'+el.atts['field_name']+'">'+
964
+ '<span class="pagelayer-form-label">'+el.atts['label_name']+'</span>';
965
+
966
+ if(!pagelayer_empty(required)){
967
+ html += ' *';
968
+ }
969
+
970
+ html += '</label>';
971
+ }
972
+
973
+ if(!pagelayer_empty(el.atts['label_as_holder'])){
974
+ placeholder = el.atts['label_name'];
975
+ }else{
976
+ if(!pagelayer_empty(el.atts['placeholder'])) placeholder = el.atts['placeholder'];
977
+ }
978
+
979
+ // File accept
980
+ var file_accept = '.jpg,.jpeg,.png,.gif,.pdf,.doc,.docx,.ppt,.pptx,.odt,.avi,.ogg,.m4a,.mov,.mp3,.mp4,.mpg,.wav,.wmv';
981
+
982
+ if(!pagelayer_empty(el.atts['accept_file'])){
983
+ file_accept = el.atts['accept_file'];
984
+ }
985
+
986
+ if(el.atts['field_type'] == 'select'){
987
+ html += '<select name="'+el.atts['field_name']+'" '+required+'>'
988
+ if(!pagelayer_empty(el.atts['label_name']) && !pagelayer_empty(el.atts['label_as_holder'])){
989
+ html += '<option value="" disabled selected>'+el.atts['label_name']+'</option>';
990
+ }else{
991
+ html += '<option value="" disabled selected>---</option>';
992
+ }
993
+
994
+ if(!pagelayer_empty(el.atts['values'])){
995
+ options = el.atts['values'].split("\n");
996
+ for(var x in options){
997
+ html += '<option value="'+options[x].trim()+'">'+options[x].trim()+'</option>';
998
+ }
999
+ }
1000
+ html += '</select>';
1001
+ }else if(el.atts['field_type'] == 'checkbox'){
1002
+ if(!pagelayer_empty(el.atts['values'])){
1003
+ options = el.atts['values'].split("\n");
1004
+ html += '<div class="pagelayer-radcheck-holder">';
1005
+ for(var x in options){
1006
+ html += '<div><input type="checkbox" id="'+options[x].trim()+'" name="'+el.atts['field_name']+'" '+
1007
+ 'value="'+options[x].trim()+'" '+required+'/><label for="'+options[x].trim()+'" class="pagelayer-form-label">'+options[x].trim()+'</label></div>';
1008
+ }
1009
+ html += '</div>';
1010
+ }
1011
+ }else if(el.atts['field_type'] == 'radio'){
1012
+ if(!pagelayer_empty(el.atts['values'])){
1013
+ options = el.atts['values'].split("\n");
1014
+ html += '<div class="pagelayer-radcheck-holder">';
1015
+ for(var x in options){
1016
+ html += '<div><input type="radio" name="'+el.atts['field_name']+'" '+
1017
+ 'value="'+options[x].trim()+'" '+required+'/><span>'+options[x].trim()+'</span></div>';
1018
+ }
1019
+ html += '</div>';
1020
+ }
1021
+ }else if(el.atts['field_type'] == 'textarea'){
1022
+ html += '<textarea name="'+el.atts['field_name']+'" rows="'+el.atts['textarea_rows']+'" placeholder="'+placeholder+'" '+
1023
+ ''+required+'></textarea>';
1024
+ }else if(el.atts['field_type'] == 'file'){
1025
+ html += '<input type="'+el.atts['field_type']+'" '+
1026
+ 'name="'+el.atts['field_name']+'" placeholder="'+placeholder+'" accept="'+file_accept+'" '+required+' />';
1027
+ }else{
1028
+ html += '<input type="'+el.atts['field_type']+'" '+
1029
+ 'name="'+el.atts['field_name']+'" placeholder="'+placeholder+'" '+required+'/>';
1030
+ }
1031
+
1032
+ el.atts['fieldhtml'] = html;
1033
+
1034
+ }
1035
+
1036
+ // Render the post content
1037
+ function pagelayer_render_pl_post_content(el){
1038
+ el.atts['post_content'] = 'Post Content Holder';
1039
+ el.CSS.css.push({'sel': '{{element}} .entry-content', 'val': 'min-height:20px;background-color:#e3e3e3;'});
1040
+ return;
1041
+ }
1042
+
1043
+ // Render the flipbox
1044
+ function pagelayer_render_pl_flipbox(el){
1045
+ el.atts['func_image'] = el.tmp['heading_image-'+el.atts['heading_image_size']+'-url'] || el.tmp['heading_image-url'];
1046
+ el.atts['func_image'] = el.atts['func_image'] || el.atts['heading_image'];
1047
+ }
1048
+
1049
+ // Render the Testimonial Slider
1050
+ function pagelayer_render_end_pl_testimonial_slider(el){
1051
+ pagelayer_owl_destroy(el.$, '.pagelayer-testimonials-holder');
1052
+ pagelayer_pl_testimonial_slider(el.$);
1053
+ }
1054
+
1055
+ // Render the countdown
1056
+ function pagelayer_render_end_pl_countdown(el){
1057
+ var jEle = el.$;
1058
+ pagelayer_countdown(jEle);
1059
+ }
1060
+
1061
+ // Render the share
1062
+ function pagelayer_render_pl_share(el){
1063
+
1064
+ var icon_splited = el.atts['icon'].split(' fa-');
1065
+
1066
+ var icon = icon_splited[1];
1067
+
1068
+ if('text' in el.atts){
1069
+ el.atts['icon_label'] = el.atts['text'];
1070
+ }else{
1071
+ var labelList = { 'Facebook' : ['facebook', 'facebook-official', 'facebook-f', 'facebook-messenger', 'facebook-square'],
1072
+ 'Twitter' : ['twitter', 'twitter-square'],
1073
+ 'Google+' : ['google-plus', 'google-plus-square', 'google-plus-g'],
1074
+ 'Instagram' : ['instagram'],
1075
+ 'Linkedin' : ['linkedin', 'linkedin-square', 'linkedin-in'],
1076
+ 'Pinterest' : ['pinterest', 'pinterest-p', 'pinterest-square'],
1077
+ 'Reddit' : ['reddit-alien', 'reddit-square', 'reddit'],
1078
+ 'Skype' : ['skype'],
1079
+ 'Stumbleupon' : ['stumbleupon', 'stumbleupon-circle'],
1080
+ 'Telegram' : ['telegram', 'telegram-plane'],
1081
+ 'Tumblr' : ['tumblr', 'tumblr-square'],
1082
+ 'VK' : ['vk'],
1083
+ 'Weibo' : ['weibo'],
1084
+ 'WhatsApp' : ['whatsapp', 'whatsapp-square'],
1085
+ 'WordPress' : ['wordpress', 'wordpress-simple'],
1086
+ 'Xing' : ['xing', 'xing-square'],
1087
+ 'Delicious' : ['delicious'],
1088
+ 'Dribbble' : ['dribbble', 'dribbble-square'],
1089
+ 'Snapchat' : ['snapchat-ghost']
1090
+ }
1091
+
1092
+ jQuery.each(labelList, function(key, value){
1093
+ if(jQuery.inArray(icon, value) != -1){
1094
+ el.atts['icon_label'] = key;
1095
+ }
1096
+ });
1097
+ }
1098
+ }
1099
+
1100
+ // Render the share icon
1101
+ function pagelayer_render_end_pl_share(el){
1102
+ pagelayer_social(el.$, '.pagelayer-share-content');
1103
+ }
1104
+
1105
+
1106
+
1107
+ // Render the animated heading
1108
+ function pagelayer_render_pl_anim_heading(el){
1109
+
1110
+ el.atts['rotate_html'] = '';
1111
+
1112
+ // Creates html for rotating text
1113
+ if(!pagelayer_empty(el.atts['rotate_text'])){
1114
+
1115
+ var rotate_text = '';
1116
+ rotate_text = el.atts['rotate_text'].split(',');
1117
+
1118
+ el.atts['rotate_html'] += '<p class="pagelayer-animated-heading pagelayer-rotating-text pagelayer-words-wrapper">';
1119
+
1120
+ jQuery.each(rotate_text, function(i){
1121
+ el.atts['rotate_html'] += '<span';
1122
+ if(i == 0){
1123
+ el.atts['rotate_html'] += ' class="pagelayer-is-visible"';
1124
+ }
1125
+ el.atts['rotate_html'] += '>' + rotate_text[i] + '</span>';
1126
+ });
1127
+
1128
+ el.atts['rotate_html'] += '</p>';
1129
+
1130
+ }
1131
+
1132
+ // Required classes for particular rotate
1133
+ el.atts['rotate_req'] = '';
1134
+ var letters = ['pagelayer-aheading-rotate2','pagelayer-aheading-rotate3','type','pagelayer-aheading-scale'];
1135
+
1136
+ if(jQuery.inArray(el.atts['animations'], letters) != -1){
1137
+ el.atts['rotate_req'] = 'letters ';
1138
+ }
1139
+
1140
+ if(el.atts['animations'] == 'pagelayer-aheading-clip'){
1141
+ el.atts['rotate_req'] = 'is-full-width ';
1142
+ }
1143
+
1144
+ }
1145
+
1146
+ // Render animated heading
1147
+ function pagelayer_render_end_pl_anim_heading(el){
1148
+ var jEle = el.$;
1149
+ pagelayer_anim_heading(jEle);
1150
+ }
1151
+
1152
+ ////////////////
1153
+ // Freemium End
1154
+ ////////////////
languages/en.json CHANGED
@@ -1645,8 +1645,8 @@
1645
  "object_fit" : "Object Fit",
1646
  "object_pos" : "Object Position",
1647
  "popup_styles" : "Popup Styles",
1648
- "close_by_overlay" : "Closed By Overlay",
1649
- "close_by_selector" : "Closed By Selector",
1650
  "action_triggers" : "Action Triggers",
1651
  "advance_options" : "Advance Options",
1652
  "popup_multi_time" : "Popup Show Multiple Time",
@@ -1755,5 +1755,11 @@
1755
  "fallback_color" : "Fallback background color if image fails to load",
1756
  "site_desc" : "Site Description",
1757
  "private" : "Private",
1758
- "splash_title_content_default" : "Splash Title"
 
 
 
 
 
 
1759
  }
1645
  "object_fit" : "Object Fit",
1646
  "object_pos" : "Object Position",
1647
  "popup_styles" : "Popup Styles",
1648
+ "close_by_overlay" : "Close by Overlay",
1649
+ "close_by_selector" : "Close by Selector",
1650
  "action_triggers" : "Action Triggers",
1651
  "advance_options" : "Advance Options",
1652
  "popup_multi_time" : "Popup Show Multiple Time",
1755
  "fallback_color" : "Fallback background color if image fails to load",
1756
  "site_desc" : "Site Description",
1757
  "private" : "Private",
1758
+ "splash_title_content_default" : "Splash Title",
1759
+ "login_widget_width_desc" : "Change the width here. To change the height, change the font size in typography",
1760
+ "error_submitting" : "There is a fatal Javascript error. Kindly copy the content by clicking on the Copy button and please contact our support by clicking on the support button",
1761
+ "copy" : "Copy",
1762
+ "support" : "Support",
1763
+ "copy_success" : "Copied Successfully",
1764
+ "error" : "Error"
1765
  }
main/freemium.php ADDED
@@ -0,0 +1,6156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ //////////////////////////////////////////////////////////////
4
+ //===========================================================
5
+ // license.php
6
+ //===========================================================
7
+ // PAGELAYER
8
+ // Inspired by the DESIRE to be the BEST OF ALL
9
+ // ----------------------------------------------------------
10
+ // Started by: Pulkit Gupta
11
+ // Date: 23rd Jan 2017
12
+ // Time: 23:00 hrs
13
+ // Site: http://pagelayer.com/wordpress (PAGELAYER)
14
+ // ----------------------------------------------------------
15
+ // Please Read the Terms of use at http://pagelayer.com/tos
16
+ // ----------------------------------------------------------
17
+ //===========================================================
18
+ // (c)Pagelayer Team
19
+ //===========================================================
20
+ //////////////////////////////////////////////////////////////
21
+
22
+ // Are we being accessed directly ?
23
+ if(!defined('PAGELAYER_VERSION')) {
24
+ exit('Hacking Attempt !');
25
+ }
26
+
27
+ // Posts options style
28
+ $pagelayer_posts_options = array(
29
+ 'type' => array(
30
+ 'type' => 'select',
31
+ 'label' => __pl('type'),
32
+ 'default' => 'default',
33
+ 'list' => array(
34
+ 'default' => __pl('default'),
35
+ ),
36
+ ),
37
+ 'columns' => array(
38
+ 'type' => 'select',
39
+ 'label' => __pl('columns'),
40
+ 'default' => '3',
41
+ 'screen' => 1,
42
+ 'css' => ['{{element}} .pagelayer-posts-container' => 'grid-template-columns: repeat({{val}},1fr);'],
43
+ 'list' => array(
44
+ '1' => '1',
45
+ '2' => '2',
46
+ '3' => '3',
47
+ '4' => '4',
48
+ '5' => '5',
49
+ '6' => '6',
50
+ ),
51
+ ),
52
+ 'col_gap' => array(
53
+ 'type' => 'slider',
54
+ 'label' => __pl('col_gap'),
55
+ 'min' => 0,
56
+ 'step' => 1,
57
+ 'max' => 100,
58
+ 'default' => 20,
59
+ 'screen' => 1,
60
+ 'css' => ['{{element}} .pagelayer-posts-container' => 'grid-column-gap: {{val}}px;'],
61
+ ),
62
+ 'row_gap' => array(
63
+ 'type' => 'slider',
64
+ 'label' => __pl('row_gap'),
65
+ 'min' => 0,
66
+ 'step' => 1,
67
+ 'max' => 100,
68
+ 'default' => 40,
69
+ 'screen' => 1,
70
+ 'css' => ['{{element}} .pagelayer-posts-container' => 'grid-row-gap: {{val}}px;'],
71
+ ),
72
+ 'data_padding' => array(
73
+ 'type' => 'padding',
74
+ 'label' => __pl('padding'),
75
+ 'default' => '5,5,5,5',
76
+ 'screen' => 1,
77
+ 'css' => ['{{element}} .pagelayer-wposts-content' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'],
78
+ ),
79
+ 'bg_color' => array(
80
+ 'type' => 'color',
81
+ 'label' => __pl('bg_color'),
82
+ 'default' => '#ffffff',
83
+ 'css' => ['{{element}} .pagelayer-wposts-col' => 'background-color:{{val}};'],
84
+ ),
85
+ 'box_shadow' => array(
86
+ 'type' => 'box_shadow',
87
+ 'label' => __pl('box_shadow'),
88
+ 'css' => ['{{element}} .pagelayer-wposts-col' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
89
+ ),
90
+ );
91
+
92
+ // Posts thumb style
93
+ $pagelayer_thumb_style = [
94
+ 'show_thumb' => array(
95
+ 'label' => __pl('show_thumb'),
96
+ 'type' => 'checkbox',
97
+ 'default' => 'true',
98
+ //'addAttr' => ['{{element}} a' => 'target="_blank"'],
99
+ ),
100
+ 'thumb_size' => array(
101
+ 'type' => 'select',
102
+ 'label' => __pl('type'),
103
+ 'default' => 'medium_large',
104
+ 'list' => pagelayer_image_sizes(),
105
+ 'req' => ['show_thumb' => 'true'],
106
+ ),
107
+ 'ratio' => array(
108
+ 'type' => 'slider',
109
+ 'label' => __pl('ratio'),
110
+ 'min' => 0,
111
+ 'step' => 0.1,
112
+ 'max' => 2,
113
+ 'default' => 0.7,
114
+ 'screen' => 1,
115
+ 'css' => ['{{element}} .pagelayer-wposts-thumb' => 'padding: calc(50% * {{val}}) 0;'],
116
+ 'req' => ['show_thumb' => 'true'],
117
+ ),
118
+ ];
119
+
120
+ // Posts type style
121
+ $pagelayer_title_style = [
122
+ 'show_title' => array(
123
+ 'type' => 'checkbox',
124
+ 'label' => __pl('show_title'),
125
+ 'default' => 'true',
126
+ ),
127
+ 'title_color' => array(
128
+ 'type' => 'color',
129
+ 'label' => __pl('color'),
130
+ 'default' => '#0986c0',
131
+ 'css' => ['{{element}} .pagelayer-wposts-title' => 'color:{{val}};'],
132
+ 'req' => ['show_title' => 'true'],
133
+ ),
134
+ 'title_typo' => array(
135
+ 'type' => 'typography',
136
+ 'label' => __pl('typography'),
137
+ 'default' => ',18,,,,,solid,,,,',
138
+ 'screen' => 1,
139
+ 'css' => ['{{element}} .pagelayer-wposts-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
140
+ 'req' => ['show_title' => 'true'],
141
+ ),
142
+ 'title_spacing' => array(
143
+ 'type' => 'dimension',
144
+ 'label' => __pl('top_bottom_spacing'),
145
+ 'screen' => 1,
146
+ 'css' => ['{{element}} .pagelayer-wposts-title' => 'padding-top:{{val[0]}}px; padding-bottom:{{val[1]}}px;'],
147
+ 'req' => ['show_title' => 'true'],
148
+ ),
149
+ ];
150
+
151
+ // Posts meta options
152
+ $pagelayer_meta_style = [
153
+ 'meta' => array(
154
+ 'type' => 'multiselect',
155
+ 'label' => __pl('meta'),
156
+ 'default' => 'author,date',
157
+ 'list' => array(
158
+ 'date' => __pl('date'),
159
+ 'author' => __pl('author'),
160
+ 'comments' => __pl('comments'),
161
+ 'tags' => __pl('tags'),
162
+ 'category' => __pl('category'),
163
+ ),
164
+ ),
165
+ 'meta_sep' => array(
166
+ 'type' => 'text',
167
+ 'label' => __pl('separator'),
168
+ 'default' => ' | ',
169
+ ),
170
+ 'meta_color' => array(
171
+ 'type' => 'color',
172
+ 'label' => __pl('color'),
173
+ 'css' => ['{{element}} .pagelayer-wposts-meta *' => 'color:{{val}};'],
174
+ ),
175
+ 'meta_bg' => array(
176
+ 'type' => 'color',
177
+ 'label' => __pl('bg_color'),
178
+ 'css' => ['{{element}} .pagelayer-wposts-meta' => 'background-color:{{val}};'],
179
+ ),
180
+ 'meta_align' => array(
181
+ 'type' => 'radio',
182
+ 'label' => __pl('alignment'),
183
+ 'screen' => 1,
184
+ 'css' => ['{{element}} .pagelayer-wposts-meta' => 'text-align:{{val}};'],
185
+ 'list' => array(
186
+ 'left' => __pl('left'),
187
+ 'center' => __pl('center'),
188
+ 'right' => __pl('right'),
189
+ ),
190
+ ),
191
+ 'meta_spacing' => array(
192
+ 'type' => 'padding',
193
+ 'label' => __pl('spacing'),
194
+ 'screen' => 1,
195
+ 'css' => ['{{element}} .pagelayer-wposts-meta' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'],
196
+ ),
197
+ 'meta_bor_rad' => array(
198
+ 'type' => 'padding',
199
+ 'label' => __pl('border_radius'),
200
+ 'units' => ['px', '%'],
201
+ 'screen' => 1,
202
+ 'css' => ['{{element}} .pagelayer-wposts-meta' => 'border-top-left-radius: {{val[0]}}; border-top-right-radius: {{val[0]}}; border-bottom-right-radius: {{val[0]}}; border-bottom-left-radius: {{val[0]}};'],
203
+ ),
204
+ 'meta_typo' => array(
205
+ 'type' => 'typography',
206
+ 'label' => __pl('typography'),
207
+ 'screen' => 1,
208
+ 'css' => [
209
+ '{{element}} .pagelayer-wposts-meta *' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
210
+ '{{element}} .pagelayer-wposts-sep' => 'font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important;'
211
+ ],
212
+ ),
213
+ 'meta_tag_pos' => array(
214
+ 'type' => 'select',
215
+ 'label' => __pl('position'),
216
+ 'screen' => 1,
217
+ 'css' => [
218
+ '{{element}} .pagelayer-wposts-post' => 'position: relative;',
219
+ '{{element}} .pagelayer-wposts-meta' => 'position: {{val}};'
220
+ ],
221
+ 'list' => array(
222
+ '' => __pl('default'),
223
+ 'relative' => __pl('relative'),
224
+ 'absolute' => __pl('absolute')
225
+ ),
226
+ ),
227
+ 'meta_width' => [
228
+ 'type' => 'slider',
229
+ 'label' => __pl('width'),
230
+ 'screen' => 1,
231
+ 'units' => ['px','%','em'],
232
+ 'css' => ['{{element}} .pagelayer-wposts-meta' => 'width:{{val}};'],
233
+ 'min' => 0,
234
+ 'max' => 1000,
235
+ 'step' => 1,
236
+ 'req' => ['!meta_tag_pos' => '']
237
+ ],
238
+ 'meta_vposition' => [
239
+ 'type' => 'select',
240
+ 'label' => __pl('verticle_pos'),
241
+ 'screen' => 1,
242
+ 'css' => ['{{element}} .pagelayer-wposts-meta' => '{{val}}:0;'],
243
+ 'list' => [
244
+ '' => __pl('default'),
245
+ 'top' => __pl('top'),
246
+ 'bottom' => __pl('bottom')
247
+ ],
248
+ 'req' => ['!meta_tag_pos' => '']
249
+ ],
250
+ 'meta_vposition_offset' => [
251
+ 'type' => 'slider',
252
+ 'label' => __pl('ver_offset'),
253
+ 'screen' => 1,
254
+ 'units' => ['px','%','em'],
255
+ 'css' => ['{{element}} .pagelayer-wposts-meta' => '{{meta_vposition}}:{{val}};'],
256
+ 'min' => -1000,
257
+ 'max' => 1000,
258
+ 'step' => 1,
259
+ 'req' => [
260
+ '!meta_vposition' => '',
261
+ '!meta_tag_pos' => ''
262
+ ]
263
+ ],
264
+ 'meta_hposition' => [
265
+ 'type' => 'select',
266
+ 'label' => __pl('horizontal_pos'),
267
+ 'screen' => 1,
268
+ 'css' => ['{{element}} .pagelayer-wposts-meta' => '{{val}}:0;'],
269
+ 'list' => [
270
+ '' => __pl('default'),
271
+ 'left' => __pl('left'),
272
+ 'right' => __pl('right')
273
+ ],
274
+ 'req' => ['!meta_tag_pos' => '']
275
+ ],
276
+ 'meta_hposition_offset' => [
277
+ 'type' => 'slider',
278
+ 'label' => __pl('hor_offset'),
279
+ 'screen' => 1,
280
+ 'units' => ['px','%','em'],
281
+ 'css' => ['{{element}} .pagelayer-wposts-meta' => '{{meta_hposition}}:{{val}};'],
282
+ 'min' => -1000,
283
+ 'max' => 1000,
284
+ 'step' => 1,
285
+ 'req' => [
286
+ '!meta_hposition' => '',
287
+ '!meta_tag_pos' => ''
288
+ ]
289
+ ]
290
+ ];
291
+
292
+ // Posts content style
293
+ $pagelayer_content_style = [
294
+ 'show_content' => array(
295
+ 'type' => 'select',
296
+ 'label' => __pl('show_content'),
297
+ 'default' => 'excerpt',
298
+ 'list' => array(
299
+ '' => __pl('none'),
300
+ 'excerpt' => __pl('excerpt'),
301
+ 'full' => __pl('full'),
302
+ ),
303
+ ),
304
+ 'exc_length' => array(
305
+ 'type' => 'spinner',
306
+ 'label' => __pl('exc_length'),
307
+ 'min' => 0,
308
+ 'step' => 1,
309
+ 'max' => 500,
310
+ 'default' => 10,
311
+ 'req' => ['show_content' => 'excerpt']
312
+ ),
313
+ 'content_color' => array(
314
+ 'type' => 'color',
315
+ 'label' => __pl('color'),
316
+ 'default' => '#121212',
317
+ 'css' => ['{{element}} .pagelayer-wposts-content' => 'color:{{val}};'],
318
+ ),
319
+ 'content_padding' => array(
320
+ 'type' => 'padding',
321
+ 'label' => __pl('padding'),
322
+ 'css' => ['{{element}} .pagelayer-wposts-content .pagelayer-wposts-excerpt' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
323
+ ),
324
+ 'content_align' => array(
325
+ 'type' => 'radio',
326
+ 'label' => __pl('alignment'),
327
+ 'default' => 'left',
328
+ 'screen' => 1,
329
+ 'css' => ['{{element}} .pagelayer-wposts-content' => 'text-align:{{val}};'],
330
+ 'list' => array(
331
+ 'left' => __pl('left'),
332
+ 'center' => __pl('center'),
333
+ 'right' => __pl('right'),
334
+ ),
335
+ ),
336
+ ];
337
+
338
+ // Post More style
339
+ $pagelayer_more_style = [
340
+ 'show_more' => array(
341
+ 'type' => 'checkbox',
342
+ 'label' => __pl('show'),
343
+ ),
344
+ 'more' => array(
345
+ 'type' => 'text',
346
+ 'label' => __pl('text'),
347
+ 'default' => 'read more &#187;',
348
+ 'req' => ['show_more' => 'true'],
349
+ ),
350
+ 'more_typo' => array(
351
+ 'type' => 'typography',
352
+ 'label' => __pl('typography'),
353
+ 'screen' => 1,
354
+ 'css' => ['{{element}} .pagelayer-wposts-more' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
355
+ 'req' => ['show_more' => 'true'],
356
+ ),
357
+ 'full_width' => array(
358
+ 'type' => 'checkbox',
359
+ 'label' => __pl('stretch'),
360
+ 'screen' => 1,
361
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'width: 100%; text-align: center;'],
362
+ 'req' => ['show_more' => 'true'],
363
+ ),
364
+ 'align' => array(
365
+ 'type' => 'radio',
366
+ 'label' => __pl('obj_align_label'),
367
+ 'screen' => 1,
368
+ 'css' => ['{{element}} .pagelayer-wposts-mdiv' => 'text-align: {{val}}'],
369
+ 'list' => array(
370
+ 'left' => __pl('left'),
371
+ 'center' => __pl('center'),
372
+ 'right' => __pl('right')
373
+ ),
374
+ 'req' => array(
375
+ 'full_width' => '',
376
+ 'show_more' => 'true',
377
+ )
378
+ ),
379
+ 'icon' => array(
380
+ 'type' => 'icon',
381
+ 'label' => __pl('service_box_font_icon_label'),
382
+ 'req' => ['show_more' => 'true'],
383
+ ),
384
+ 'icon_position' => array(
385
+ 'type' => 'radio',
386
+ 'label' => __pl('alignment'),
387
+ 'list' => array(
388
+ 'pagelayer-btn-icon-left' => __pl('left'),
389
+ 'pagelayer-btn-icon-right' => __pl('right')
390
+ ),
391
+ 'req' => ['show_more' => 'true'],
392
+ ),
393
+ 'icon_spacing' => array(
394
+ 'type' => 'slider',
395
+ 'label' => __pl('icon_spacing'),
396
+ 'min' => 1,
397
+ 'step' => 1,
398
+ 'max' => 100,
399
+ 'screen' => 1,
400
+ 'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'],
401
+ 'req' => array(
402
+ '!icon' => 'none',
403
+ 'show_more' => 'true',
404
+ ),
405
+ ),
406
+ 'btn_type' => array(
407
+ 'type' => 'select',
408
+ 'label' => __pl('button_type'),
409
+ //'addClass' => ['{{element}} .pagelayer-btn-holder' => '{{val}}'],
410
+ 'list' => array(
411
+ 'pagelayer-btn-link' => __pl('btn_type_link'),
412
+ 'pagelayer-btn-default' => __pl('btn_type_default'),
413
+ 'pagelayer-btn-primary' => __pl('btn_type_primary'),
414
+ 'pagelayer-btn-secondary' => __pl('btn_type_secondary'),
415
+ 'pagelayer-btn-success' => __pl('btn_type_success'),
416
+ 'pagelayer-btn-info' => __pl('btn_type_info'),
417
+ 'pagelayer-btn-warning' => __pl('btn_type_warning'),
418
+ 'pagelayer-btn-danger' => __pl('btn_type_danger'),
419
+ 'pagelayer-btn-dark' => __pl('btn_type_dark'),
420
+ 'pagelayer-btn-light' => __pl('btn_type_light'),
421
+ 'pagelayer-btn-custom' => __pl('btn_type_custom')
422
+ ),
423
+ 'req' => ['show_more' => 'true'],
424
+ ),
425
+ 'size' => array(
426
+ 'type' => 'select',
427
+ 'label' => __pl('button_size_label'),
428
+ 'list' => array(
429
+ 'pagelayer-btn-mini' => __pl('mini'),
430
+ 'pagelayer-btn-small' => __pl('small'),
431
+ 'pagelayer-btn-large' => __pl('large'),
432
+ 'pagelayer-btn-extra-large' => __pl('extra_large'),
433
+ 'pagelayer-btn-double-large' => __pl('double_large'),
434
+ 'pagelayer-btn-custom' => __pl('custom'),
435
+ ),
436
+ 'req' => ['show_more' => 'true'],
437
+ ),
438
+ 'btn_custom_size' => array(
439
+ 'type' => 'dimension',
440
+ 'label' => __pl('btn_custom_size'),
441
+ 'screen' => 1,
442
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: {{val[0]}}px {{val[1]}}px;'],
443
+ 'req' => array(
444
+ 'size' => 'pagelayer-btn-custom',
445
+ 'show_more' => 'true',
446
+ ),
447
+ ),
448
+ 'btn_hover' => array(
449
+ 'type' => 'radio',
450
+ 'label' => __pl('state'),
451
+ 'default' => '',
452
+ 'list' => array(
453
+ '' => __pl('normal'),
454
+ 'hover' => __pl('hover'),
455
+ ),
456
+ 'req' => array(
457
+ 'btn_type' => 'pagelayer-btn-custom',
458
+ 'show_more' => 'true',
459
+ ),
460
+ ),
461
+ 'btn_bg_color' => array(
462
+ 'type' => 'color',
463
+ 'label' => __pl('btn_bg_color_label'),
464
+ 'screen' => 1,
465
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'background-color: {{val}};'],
466
+ 'req' => array(
467
+ 'btn_type' => 'pagelayer-btn-custom',
468
+ 'show_more' => 'true',
469
+ ),
470
+ 'show' => array(
471
+ 'btn_hover' => ''
472
+ ),
473
+ ),
474
+ 'more_color' => array(
475
+ 'type' => 'color',
476
+ 'label' => __pl('color'),
477
+ 'screen' => 1,
478
+ 'css' => ['{{element}} .pagelayer-wposts-more' => 'color:{{val}};'],
479
+ 'req' => array(
480
+ 'btn_type' => 'pagelayer-btn-custom',
481
+ 'show_more' => 'true',
482
+ ),
483
+ 'show' => array(
484
+ 'btn_hover' => ''
485
+ ),
486
+ ),
487
+ 'btn_hover_delay' => array(
488
+ 'type' => 'spinner',
489
+ 'label' => __pl('btn_hover_delay_label'),
490
+ 'desc' => __pl('btn_hover_delay_desc'),
491
+ 'min' => 0,
492
+ 'step' => 100,
493
+ 'max' => 5000,
494
+ 'screen' => 1,
495
+ 'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
496
+ 'show' => array(
497
+ 'btn_hover' => 'hover'
498
+ ),
499
+ 'req' => ['show_more' => 'true'],
500
+ ),
501
+ 'btn_bg_color_hover' => array(
502
+ 'type' => 'color',
503
+ 'label' => __pl('btn_bg_color_hover_label'),
504
+ 'screen' => 1,
505
+ 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'background-color: {{val}};'],
506
+ 'req' => array(
507
+ 'btn_type' => 'pagelayer-btn-custom',
508
+ 'show_more' => 'true',
509
+ ),
510
+ 'show' => array(
511
+ 'btn_hover' => 'hover'
512
+ ),
513
+ ),
514
+ 'more_color_hover' => array(
515
+ 'type' => 'color',
516
+ 'label' => __pl('color'),
517
+ 'screen' => 1,
518
+ 'css' => ['{{element}} .pagelayer-wposts-more:hover' => 'color:{{val}};'],
519
+ 'req' => array(
520
+ 'btn_type' => 'pagelayer-btn-custom',
521
+ 'show_more' => 'true',
522
+ ),
523
+ 'show' => array(
524
+ 'btn_hover' => 'hover'
525
+ ),
526
+ ),
527
+ ];
528
+
529
+ // Post More style
530
+ $pagelayer_btn_border_style = [
531
+ 'btn_bor_hover' => array(
532
+ 'type' => 'radio',
533
+ 'label' => __pl('state'),
534
+ 'default' => '',
535
+ //'no_val' => 1,// Dont set any value to element
536
+ 'list' => array(
537
+ '' => __pl('normal'),
538
+ 'hover' => __pl('hover'),
539
+ )
540
+ ),
541
+ 'btn_border_type' => array(
542
+ 'type' => 'select',
543
+ 'label' => __pl('border_type'),
544
+ 'screen' => 1,
545
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-style: {{val}}'],
546
+ 'list' => [
547
+ '' => __pl('none'),
548
+ 'solid' => __pl('solid'),
549
+ 'double' => __pl('double'),
550
+ 'dotted' => __pl('dotted'),
551
+ 'dashed' => __pl('dashed'),
552
+ 'groove' => __pl('groove'),
553
+ ],
554
+ 'show' => array(
555
+ 'btn_bor_hover' => ''
556
+ )
557
+ ),
558
+ 'btn_border_color' => array(
559
+ 'type' => 'color',
560
+ 'label' => __pl('border_color_label'),
561
+ 'screen' => 1,
562
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-color: {{val}};'],
563
+ 'req' => array(
564
+ '!btn_border_type' => ''
565
+ ),
566
+ 'show' => array(
567
+ 'btn_bor_hover' => ''
568
+ ),
569
+ ),
570
+ 'btn_border_width' => array(
571
+ 'type' => 'padding',
572
+ 'label' => __pl('border_width'),
573
+ 'screen' => 1,
574
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
575
+ 'req' => [
576
+ '!btn_border_type' => ''
577
+ ],
578
+ 'show' => array(
579
+ 'btn_bor_hover' => ''
580
+ ),
581
+ ),
582
+ 'btn_border_radius' => array(
583
+ 'type' => 'padding',
584
+ 'label' => __pl('border_radius'),
585
+ 'screen' => 1,
586
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
587
+ 'req' => array(
588
+ '!btn_border_type' => ''
589
+ ),
590
+ 'show' => array(
591
+ 'btn_bor_hover' => ''
592
+ ),
593
+ ),
594
+ 'btn_border_type_hover' => array(
595
+ 'type' => 'select',
596
+ 'label' => __pl('border_type'),
597
+ 'screen' => 1,
598
+ 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-style: {{val}}'],
599
+ 'list' => [
600
+ '' => __pl('none'),
601
+ 'solid' => __pl('solid'),
602
+ 'double' => __pl('double'),
603
+ 'dotted' => __pl('dotted'),
604
+ 'dashed' => __pl('dashed'),
605
+ 'groove' => __pl('groove'),
606
+ ],
607
+ 'show' => array(
608
+ 'btn_bor_hover' => 'hover'
609
+ )
610
+ ),
611
+ 'btn_border_color_hover' => array(
612
+ 'type' => 'color',
613
+ 'label' => __pl('border_color_hover_label'),
614
+ 'screen' => 1,
615
+ 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-color: {{val}};'],
616
+ 'req' => array(
617
+ '!btn_border_type_hover' => ''
618
+ ),
619
+ 'show' => array(
620
+ 'btn_bor_hover' => 'hover'
621
+ ),
622
+ ),
623
+ 'btn_border_width_hover' => array(
624
+ 'type' => 'padding',
625
+ 'label' => __pl('border_width_hover'),
626
+ 'screen' => 1,
627
+ 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
628
+ 'req' => [
629
+ '!btn_border_type_hover' => ''
630
+ ],
631
+ 'show' => array(
632
+ 'btn_bor_hover' => 'hover'
633
+ ),
634
+ ),
635
+ 'btn_border_radius_hover' => array(
636
+ 'type' => 'padding',
637
+ 'label' => __pl('border_radius_hover'),
638
+ 'screen' => 1,
639
+ 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
640
+ 'req' => array(
641
+ '!btn_border_type_hover' => ''
642
+ ),
643
+ 'show' => array(
644
+ 'btn_bor_hover' => 'hover'
645
+ ),
646
+ ),
647
+ ];
648
+
649
+ // Archives Post title
650
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_archive_title', array(
651
+ 'name' => __pl('archive_title'),
652
+ 'group' => 'archive',
653
+ 'html' => '<div class="pagelayer-archive-title">'. pagelayer_get_the_title() .'</div>',
654
+ 'params' => array(
655
+ 'align' => array(
656
+ 'type' => 'radio',
657
+ 'label' => __pl('alignment'),
658
+ 'np' => 1,
659
+ 'list' => [
660
+ 'left' => __pl('left'),
661
+ 'center' => __pl('center'),
662
+ 'right' => __pl('right'),
663
+ ],
664
+ 'css' => ['{{element}} .pagelayer-archive-title' => 'text-align: {{val}}'],
665
+ ),
666
+ 'color' => array(
667
+ 'type' => 'color',
668
+ 'label' => __pl('color'),
669
+ 'css' => ['{{element}} .pagelayer-archive-title' => 'color:{{val}}'],
670
+ ),
671
+ 'typo' => array(
672
+ 'type' => 'typography',
673
+ 'label' => __pl('typography'),
674
+ 'css' => ['{{element}} .pagelayer-archive-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
675
+ ),
676
+ )
677
+ )
678
+ );
679
+
680
+ // Archive Posts shows the posts as per the QUERY of the current page
681
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_archive_posts', array(
682
+ 'name' => __pl('archive_posts'),
683
+ 'group' => 'archive',
684
+ 'html' => '{{pagelayer_pagination_top}}
685
+ <div class="pagelayer-posts-container">{{pagelayer_archive_posts}}</div>
686
+ {{pagelayer_pagination_bottom}}',
687
+ 'params' => $pagelayer_posts_options,
688
+ 'thumb_style' => $pagelayer_thumb_style,
689
+ 'title_style' => $pagelayer_title_style,
690
+ 'meta_options' => $pagelayer_meta_style,
691
+ 'content_style' => $pagelayer_content_style,
692
+ 'more_style' => $pagelayer_more_style,
693
+ 'paginate_links' => array(
694
+ 'pagination' => array(
695
+ 'type' => 'select',
696
+ 'label' => __pl('pagination'),
697
+ 'default' => 'number_prev_next',
698
+ 'list' => array(
699
+ '' => __pl('none'),
700
+ 'number' => __pl('number'),
701
+ 'number_prev_next' => __pl('number_prev_next'),
702
+ ),
703
+ ),
704
+ 'pagination_on' => array(
705
+ 'type' => 'select',
706
+ 'label' => __pl('pagination_on'),
707
+ 'list' => array(
708
+ '' => __pl('bottom'),
709
+ 'top' => __pl('top'),
710
+ ),
711
+ 'req' => ['!pagination' => '']
712
+ ),
713
+ 'pagi_prev_text' => array(
714
+ 'type' => 'text',
715
+ 'label' => __pl('prev_text'),
716
+ 'default' => 'Previous',
717
+ 'req' => ['!pagination' => ['', 'number']]
718
+ ),
719
+ 'pagi_next_text' => array(
720
+ 'type' => 'text',
721
+ 'label' => __pl('next_text'),
722
+ 'default' => 'Next',
723
+ 'req' => ['!pagination' => ['', 'number']]
724
+ ),
725
+ 'pagi_end_size' => array(
726
+ 'type' => 'spinner',
727
+ 'label' => __pl('pagi_end_size'),
728
+ 'default' => 1,
729
+ 'req' => ['!pagination' => '']
730
+ ),
731
+ 'pagi_mid_size' => array(
732
+ 'type' => 'spinner',
733
+ 'label' => __pl('pagi_mid_size'),
734
+ 'default' => 2,
735
+ 'req' => ['!pagination' => '']
736
+ ),
737
+ 'before_page_number' => array(
738
+ 'type' => 'text',
739
+ 'label' => __pl('before_page_number'),
740
+ 'req' => ['!pagination' => '']
741
+ ),
742
+ 'after_page_number' => array(
743
+ 'type' => 'text',
744
+ 'label' => __pl('after_page_number'),
745
+ 'req' => ['!pagination' => '']
746
+ ),
747
+ ),
748
+ 'paginate_links_style' => array(
749
+ 'pagi_typo' => array(
750
+ 'type' => 'typography',
751
+ 'label' => __pl('typography'),
752
+ 'screen' => 1,
753
+ 'css' => [
754
+ '{{element}} .pagelayer-pagination' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
755
+ ],
756
+ 'req' => ['!pagination' => '']
757
+ ),
758
+ 'pagi_align' => array(
759
+ 'type' => 'radio',
760
+ 'label' => __pl('alignment'),
761
+ 'list' => array(
762
+ 'left' => __pl('left'),
763
+ 'center' => __pl('center'),
764
+ 'right' => __pl('right'),
765
+ ),
766
+ 'css' => ['{{element}} .pagelayer-pagination' => 'text-align:{{val}}'],
767
+ 'req' => ['!pagination' => '']
768
+ ),
769
+ 'pagi_colors' => array(
770
+ 'type' => 'radio',
771
+ 'label' => __pl('colors'),
772
+ 'list' => array(
773
+ 'normal' => __pl('normal'),
774
+ 'hover' => __pl('hover'),
775
+ 'active' => __pl('active'),
776
+ ),
777
+ 'req' => ['!pagination' => '']
778
+ ),
779
+ 'pagi_color' => array(
780
+ 'type' => 'color',
781
+ 'label' => __pl('color'),
782
+ 'css' => ['{{element}} .pagelayer-pagination a.page-numbers' => 'color:{{val}}'],
783
+ 'show' => [ 'pagi_colors' => 'normal'],
784
+ 'req' => ['!pagination' => '']
785
+ ),
786
+ 'pagi_hover_color' => array(
787
+ 'type' => 'color',
788
+ 'label' => __pl('current_color'),
789
+ 'css' => ['{{element}} .pagelayer-pagination a.page-numbers:hover' => 'color:{{val}}'],
790
+ 'show' => [ 'pagi_colors' => 'hover'],
791
+ 'req' => ['!pagination' => '']
792
+ ),
793
+ 'pagi_current_color' => array(
794
+ 'type' => 'color',
795
+ 'label' => __pl('current_color'),
796
+ 'css' => ['{{element}} .pagelayer-pagination .current' => 'color:{{val}}'],
797
+ 'show' => [ 'pagi_colors' => 'active']
798
+ ),
799
+ 'pagi_space_between' => array(
800
+ 'type' => 'slider',
801
+ 'label' => __pl('space_between'),
802
+ 'css' => ['{{element}} .pagelayer-pagination .page-numbers:not(:last-child)' => 'margin-right:{{val}}px'],
803
+ 'req' => ['!pagination' => '']
804
+ ),
805
+ 'pagi_padding' => array(
806
+ 'type' => 'padding',
807
+ 'label' => __pl('padding'),
808
+ 'css' => ['{{element}} .pagelayer-pagination' => 'padding:{{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
809
+ 'req' => ['!pagination' => '']
810
+ ),
811
+ ),
812
+ 'styles' => array(
813
+ 'thumb_style' => __pl('thumb_style'),
814
+ 'title_style' => __pl('title_style'),
815
+ 'meta_options' => __pl('meta_options'),
816
+ 'content_style' => __pl('content_style'),
817
+ 'more_style' => __pl('more_style'),
818
+ 'paginate_links' => __pl('paginate_links'),
819
+ 'paginate_links_style' => __pl('paginate_links_style'),
820
+ ),
821
+ )
822
+ );
823
+
824
+ // Site Title
825
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_wp_title', array(
826
+ 'name' => __pl('Site Title'),
827
+ 'group' => 'wordpress',
828
+ 'html' => '<div class="pagelayer-wp-title-content">
829
+ <div class="pagelayer-wp-title-section">
830
+ <a href="'.get_site_url().'" class="pagelayer-wp-title-link pagelayer-ele-link">
831
+ <img if={{site_logo}} class="pagelayer-img pagelayer-wp-title-img" src="{{func_image}}"/>
832
+ <div class="pagelayer-wp-title-heading">'.get_bloginfo( 'name' ).'</div>
833
+ <div if="{{site_desc}}" class="pagelayer-wp-title-desc">'.get_bloginfo( 'description' ).'</div>
834
+ </a>
835
+ </div>
836
+ <div>',
837
+ 'params' => array(
838
+ 'site_title_style' => array(
839
+ 'type' => 'typography',
840
+ 'label' => __pl('typography'),
841
+ 'screen' => 1,
842
+ 'css' => ['{{element}} .pagelayer-wp-title-heading' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
843
+ ),
844
+ 'site_title_state' => array(
845
+ 'type' => 'radio',
846
+ 'label' => __pl('state'),
847
+ 'default' => 'normal',
848
+ 'list' => array(
849
+ 'normal' => __pl('normal'),
850
+ 'hover' => __pl('hover'),
851
+ ),
852
+ ),
853
+ 'title_color' => array(
854
+ 'type' => 'color',
855
+ 'label' => __pl('text_color'),
856
+ 'css' => ['{{element}} .pagelayer-wp-title-heading' => 'color:{{val}};'],
857
+ 'show' => ['!site_title_state' => 'hover'],
858
+ ),
859
+ 'title_color_hover' => array(
860
+ 'type' => 'color',
861
+ 'label' => __pl('text_color'),
862
+ 'css' => ['{{element}} .pagelayer-wp-title-heading:hover' => 'color:{{val}};'],
863
+ 'show' => ['site_title_state' => 'hover'],
864
+ ),
865
+ 'title_hover_delay' => array(
866
+ 'type' => 'spinner',
867
+ 'label' => __pl('service_icon_hover_delay'),
868
+ 'min' => 0,
869
+ 'step' => 100,
870
+ 'max' => 5000,
871
+ 'css' => ['{{element}} .pagelayer-wp-title-heading' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
872
+ 'show' => ['site_title_state' => 'hover'],
873
+ ),
874
+ 'text-align' => array(
875
+ 'type' => 'radio',
876
+ 'label' => __pl('alignment'),
877
+ 'default' => 'center',
878
+ 'screen' => 1,
879
+ 'list' => array(
880
+ 'left' => __pl('left'),
881
+ 'center' => __pl('center'),
882
+ 'right' => __pl('right')
883
+ ),
884
+ 'css' => ['{{element}} .pagelayer-wp-title-heading' => 'text-align:{{val}};'],
885
+ ),
886
+ 'title_padding' => array(
887
+ 'type' => 'padding',
888
+ 'label' => __pl('padding'),
889
+ 'screen' => 1,
890
+ 'css' => ['{{element}} .pagelayer-wp-title-heading' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
891
+ ),
892
+ ),
893
+ 'site_description' => array(
894
+ 'site_desc' => array(
895
+ 'type' => 'checkbox',
896
+ 'label' => __pl('site_desc'),
897
+ ),
898
+ 'site_desc_style' => array(
899
+ 'type' => 'typography',
900
+ 'label' => __pl('typography'),
901
+ 'screen' => 1,
902
+ 'css' => ['{{element}} .pagelayer-wp-title-desc' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
903
+ 'req' => ['site_desc' => 'true']
904
+ ),
905
+ 'site_desc_state' => array(
906
+ 'type' => 'radio',
907
+ 'label' => __pl('state'),
908
+ 'default' => 'normal',
909
+ 'list' => array(
910
+ 'normal' => __pl('normal'),
911
+ 'hover' => __pl('hover'),
912
+ ),
913
+ 'req' => ['site_desc' => 'true']
914
+ ),
915
+ 'desc_color' => array(
916
+ 'type' => 'color',
917
+ 'label' => __pl('text_color'),
918
+ 'css' => ['{{element}} .pagelayer-wp-title-desc' => 'color:{{val}};'],
919
+ 'show' => ['site_desc_state' => 'normal'],
920
+ 'req' => ['site_desc' => 'true']
921
+ ),
922
+ 'desc_color_hover' => array(
923
+ 'type' => 'color',
924
+ 'label' => __pl('text_color'),
925
+ 'css' => ['{{element}} .pagelayer-wp-title-desc:hover' => 'color:{{val}};'],
926
+ 'show' => ['site_desc_state' => 'hover'],
927
+ 'req' => ['site_desc' => 'true']
928
+ ),
929
+ 'desc_hover_delay' => array(
930
+ 'type' => 'spinner',
931
+ 'label' => __pl('service_icon_hover_delay'),
932
+ 'min' => 0,
933
+ 'step' => 100,
934
+ 'max' => 5000,
935
+ 'css' => ['{{element}} .pagelayer-wp-title-desc' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
936
+ 'show' => ['site_desc_state' => 'hover'],
937
+ 'req' => ['site_desc' => 'true']
938
+ ),
939
+ 'desc_text_align' => array(
940
+ 'type' => 'radio',
941
+ 'label' => __pl('alignment'),
942
+ 'screen' => 1,
943
+ 'list' => array(
944
+ 'left' => __pl('left'),
945
+ 'center' => __pl('center'),
946
+ 'right' => __pl('right')
947
+ ),
948
+ 'css' => ['{{element}} .pagelayer-wp-title-desc' => 'text-align:{{val}};'],
949
+ 'req' => ['site_desc' => 'true']
950
+ ),
951
+ 'desc_padding' => array(
952
+ 'type' => 'padding',
953
+ 'label' => __pl('padding'),
954
+ 'screen' => 1,
955
+ 'css' => ['{{element}} .pagelayer-wp-title-desc' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
956
+ 'req' => ['site_desc' => 'true']
957
+ ),
958
+ ),
959
+ 'logo_style' => array(
960
+ 'site_logo' => array(
961
+ 'type' => 'checkbox',
962
+ 'label' => __pl('site_logo'),
963
+ //'desc' => __pl('site_logo_desc'),
964
+ ),
965
+ 'logo_img_type' => array(
966
+ 'type' => 'select',
967
+ 'label' => __pl('logo_img_type'),
968
+ 'list' => array(
969
+ '' => __pl('default_logo'),
970
+ 'custom-logo' => __pl('custom_logo'),
971
+ ),
972
+ 'req' => array(
973
+ 'site_logo' => 'true'
974
+ )
975
+ ),
976
+ 'logo_img' => array(
977
+ 'type' => 'image',
978
+ 'label' => __pl('logo_select'),
979
+ 'req' => array(
980
+ 'site_logo' => 'true',
981
+ 'logo_img_type' => 'custom-logo',
982
+ )
983
+ ),
984
+ 'logo_img_size' => array(
985
+ 'type' => 'radio',
986
+ 'label' => __pl('logo_size'),
987
+ 'default' => 'full',
988
+ 'list' => array(
989
+ 'full' => __pl('full'),
990
+ 'thumbnail' => __pl('thumbnail'),
991
+ 'custom' => __pl('custom'),
992
+ ),
993
+ 'req' => array(
994
+ 'site_logo' => 'true'
995
+ )
996
+ ),
997
+ 'logo_img_custom_size' => array(
998
+ 'type' => 'slider',
999
+ 'label' => __pl('logo_custom_size'),
1000
+ 'min' => 10,
1001
+ 'max' => 100,
1002
+ 'default' => 20,
1003
+ 'screen' => 1,
1004
+ 'css' => ['{{element}} .pagelayer-wp-title-img' => 'width:{{val}}%; height: auto;'],
1005
+ 'req' => array(
1006
+ 'logo_img_size' => 'custom',
1007
+ 'site_logo' => 'true'
1008
+ )
1009
+ ),
1010
+ 'align' => array(
1011
+ 'type' => 'radio',
1012
+ 'label' => __pl('alignment'),
1013
+ 'default' => 'left',
1014
+ 'list' => array(
1015
+ 'left' => __pl('left'),
1016
+ 'top' => __pl('top'),
1017
+ 'right' => __pl('right')
1018
+ ),
1019
+ 'addClass' => ['{{element}} .pagelayer-wp-title-link' => 'pagelayer-wp-title-align-{{val}}'],
1020
+ 'req' => array(
1021
+ 'site_logo' => 'true'
1022
+ )
1023
+ ),
1024
+ 'vertical_align' => array(
1025
+ 'type' => 'radio',
1026
+ 'label' => __pl('vertical_alignment'),
1027
+ 'default' => 'middle',
1028
+ 'list' => array(
1029
+ 'top' => __pl('top'),
1030
+ 'middle' => __pl('middle'),
1031
+ 'bottom' => __pl('bottom')
1032
+ ),
1033
+ 'addClass' => ['{{element}} .pagelayer-wp-title-link' => 'pagelayer-wp-title-vertical-{{val}}'],
1034
+ 'req' => ['site_logo' => 'true',
1035
+ '!align' => 'top']
1036
+ ),
1037
+ ),
1038
+ 'styles' => [
1039
+ 'site_description' => __pl('site_desc'),
1040
+ 'logo_style' => __pl('logo_style'),
1041
+ ]
1042
+ )
1043
+ );
1044
+
1045
+ // Copyright
1046
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_copyright', array(
1047
+ 'name' => __pl('copyright'),
1048
+ 'group' => 'other',
1049
+ 'icon' => 'fa fa-copyright',
1050
+ 'html' => '<div class="pagelayer-copyright">
1051
+ <a href="'.home_url().'">
1052
+ '.pagelayer_get_option('pagelayer-copyright').'
1053
+ </a>
1054
+ </div>',
1055
+ 'params' => array(
1056
+ /*'link' => array(
1057
+ 'type' => 'link',
1058
+ 'label' => __pl('icon_link_field_label'),
1059
+ 'default' => ,
1060
+ ),*/
1061
+ 'color' => array(
1062
+ 'type' => 'color',
1063
+ 'label' => __pl('color'),
1064
+ 'css' => ['{{element}} .pagelayer-copyright *, {{element}} .pagelayer-copyright' => 'color:{{val}}'],
1065
+ ),
1066
+ 'typography' => array(
1067
+ 'type' => 'typography',
1068
+ 'label' => __pl('typography'),
1069
+ 'screen' => 1,
1070
+ 'css' => ['{{element}} .pagelayer-copyright *, {{element}} .pagelayer-copyright' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1071
+ ),
1072
+ 'align' => array(
1073
+ 'type' => 'radio',
1074
+ 'label' => __pl('alignment'),
1075
+ 'screen' => 1,
1076
+ 'list' => [
1077
+ 'left' => __pl('left'),
1078
+ 'center' => __pl('center'),
1079
+ 'right' => __pl('right'),
1080
+ ],
1081
+ 'css' => ['{{element}} .pagelayer-copyright' => 'text-align: {{val}}'],
1082
+ ),
1083
+ )
1084
+ )
1085
+ );
1086
+
1087
+ // Primary Menu
1088
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_wp_menu', array(
1089
+ 'name' => __pl('primary_menu'),
1090
+ 'group' => 'wordpress',
1091
+ 'html' => '<div class="pagelayer-wp-menu-holder" data-layout="{{layout}}" data-submenu_ind="{{submenu_ind}}" data-drop_breakpoint="{{drop_breakpoint}}">
1092
+ <div class="pagelayer-primary-menu-bar"><i class="fa fa-bars"></i></div>
1093
+ <div class="pagelayer-wp-menu-container pagelayer-menu-type-{{layout}} pagelayer-menu-hover-{{pointer}} {{m_animation}} {{slide_style}}" data-align="{{align}}">
1094
+ <div class="pagelayer-wp_menu-close"><i class="fa fa-times"></i></div>
1095
+ {{nav_menu}}
1096
+ </div>
1097
+ </div>',
1098
+ 'params' => array(
1099
+ 'nav_list' => array(// Never use the same name as we are replacing in IMPORT
1100
+ 'type' => 'select',
1101
+ 'label' => __pl('select_menu'),
1102
+ 'default' => pagelayer_get_menu_list(true),
1103
+ 'list' => pagelayer_get_menu_list(),
1104
+ ),
1105
+ 'align' => array(
1106
+ 'type' => 'radio',
1107
+ 'label' => __pl('alignment'),
1108
+ 'default' => 'left',
1109
+ 'screen' => 1,
1110
+ 'list' => array(
1111
+ 'left' => __pl('left'),
1112
+ 'center' => __pl('center'),
1113
+ 'right' => __pl('right'),
1114
+ ),
1115
+ 'css' => ['{{element}} ul' => 'text-align:{{val}};'],
1116
+ ),
1117
+ 'layout' => array(
1118
+ 'type' => 'select',
1119
+ 'label' => __pl('layout'),
1120
+ 'default' => 'horizontal',
1121
+ 'list' => array(
1122
+ 'horizontal' => __pl('horizontal'),
1123
+ 'vertical' => __pl('vertical'),
1124
+ 'dropdown' => __pl('dropdown'),
1125
+ ),
1126
+ ),
1127
+ 'drop_breakpoint' => array(
1128
+ 'type' => 'select',
1129
+ 'label' => __pl('drop_breakpoint'),
1130
+ 'list' => array(
1131
+ 'none' => __pl('none'),
1132
+ 'mobile' => __pl('mobile'),
1133
+ 'tablet' => __pl('tablet'),
1134
+ ),
1135
+ 'req' => [ '!layout' => 'dropdown']
1136
+ ),
1137
+ 'pointer' => array(
1138
+ 'type' => 'select',
1139
+ 'label' => __pl('pointer'),
1140
+ 'default' => 'underline',
1141
+ 'list' => array(
1142
+ '' => __pl('none'),
1143
+ 'underline' => __pl('underline'),
1144
+ 'overline' => __pl('overline'),
1145
+ 'doubleline' => __pl('double_line'),
1146
+ 'framed' => __pl('Framed'),
1147
+ 'background' => __pl('bg_color'),
1148
+ 'text' => __pl('text'),
1149
+ ),
1150
+ ),
1151
+ 'm_animation' => array(
1152
+ 'type' => 'select',
1153
+ 'label' => __pl('animation'),
1154
+ 'default' => 'slide',
1155
+ 'list' => array(
1156
+ 'none' => __pl('none'),
1157
+ 'fade' => __pl('fade'),
1158
+ 'slide' => __pl('slide'),
1159
+ 'grow' => __pl('Grow'),
1160
+ 'dropin' => __pl('drop_in'),
1161
+ 'dropout' => __pl('Drop_out'),
1162
+ ),
1163
+ ),
1164
+ 'list_style' => array(
1165
+ 'type' => 'select',
1166
+ 'label' => __pl('list_style'),
1167
+ 'default' => 'none',
1168
+ 'list' => array(
1169
+ 'none' => __pl('none'),
1170
+ 'circle' => __pl('list_list_type_circle'),
1171
+ 'decimal' => __pl('decimal'),
1172
+ 'square' => __pl('list_list_type_square'),
1173
+ 'disc' => __pl('list_list_type_disc'),
1174
+ 'inherit' => __pl('inherit'),
1175
+ 'upper-roman' => __pl('upper_roman'),
1176
+ 'upper-alpha' => __pl('upper_alpha'),
1177
+ 'lower-roman' => __pl('lower_roman'),
1178
+ 'lower-alpha' => __pl('lower_alpha'),
1179
+ ),
1180
+ 'css' => ['{{element}} .pagelayer-wp-menu-container li' => 'list-style: {{val}};']
1181
+ ),
1182
+ 'submenu_ind' => array(
1183
+ 'type' => 'select',
1184
+ 'label' => __pl('sbmenu_indicator'),
1185
+ 'default' => 'caret-down',
1186
+ 'list' => array(
1187
+ '' => __pl('none'),
1188
+ 'caret-down' => __pl('caret_down'),
1189
+ 'chevron-down' => __pl('chevron'),
1190
+ 'angle-down' => __pl('angle'),
1191
+ 'plus' => __pl('Plus'),
1192
+ 'arrow-down' => __pl('arrow_down'),
1193
+ ),
1194
+ ),
1195
+ ),
1196
+ 'menu_style' => [
1197
+ 'menu_colors' => array(
1198
+ 'type' => 'radio',
1199
+ 'label' => __pl('Background'),
1200
+ //'no_val' => 1,// Dont set any value to element
1201
+ 'list' => [
1202
+ '' => __pl('normal'),
1203
+ 'hover' => __pl('hover'),
1204
+ 'active' => __pl('active'),
1205
+ ],
1206
+ ),
1207
+ 'menu_color' => [
1208
+ 'type' => 'color',
1209
+ 'label' => __pl('color'),
1210
+ 'css' => ['{{element}} .pagelayer-wp_menu-ul>li a:first-child' => 'color: {{val}};'],
1211
+ 'show' => ['menu_colors' => ''],
1212
+ 'screen' => 1
1213
+ ],
1214
+ 'menu_bg_color' => [
1215
+ 'type' => 'color',
1216
+ 'label' => __pl('p_bg_color'),
1217
+ 'css' => ['{{element}} .pagelayer-wp_menu-ul>li' => 'background-color: {{val}};'],
1218
+ 'show' => ['menu_colors' => ''],
1219
+ 'screen' => 1
1220
+ ],
1221
+ 'menu_color_hover' => [
1222
+ 'type' => 'color',
1223
+ 'label' => __pl('color'),
1224
+ 'css' => ['{{element}} .pagelayer-wp_menu-ul>li>a:hover' => 'color: {{val}};',
1225
+ '{{element}} .pagelayer-wp_menu-ul>li.active-sub-menu>a:hover' => 'color: {{val}};'],
1226
+ 'show' => ['menu_colors' => 'hover'],
1227
+ 'screen' => 1
1228
+ ],
1229
+ 'menu_bg_color_hover' => [
1230
+ 'type' => 'color',
1231
+ 'label' => __pl('p_bg_color'),
1232
+ 'default' => '#00ccff',
1233
+ 'css' => ['{{element}} .pagelayer-menu-hover-background .pagelayer-wp_menu-ul>li:hover' => 'background-color: {{val}};','{{element}} .pagelayer-wp_menu-ul>li>a:hover:before' => 'background-color: {{val}};border-color:{{val}}',
1234
+ '{{element}} .pagelayer-wp_menu-ul>li>a:hover:after' => 'background-color: {{val}};border-color:{{val}}',
1235
+ '{{element}} .pagelayer-wp_menu-ul>li.active-sub-menu' => 'background-color: {{val}};'],
1236
+ 'show' => ['menu_colors' => 'hover'],
1237
+ 'screen' => 1
1238
+ ],
1239
+ 'menu_color_active' => [
1240
+ 'type' => 'color',
1241
+ 'label' => __pl('color'),
1242
+ 'css' => ['{{element}} .pagelayer-wp_menu-ul>li.current-menu-item>a' => 'color: {{val}};'],
1243
+ 'show' => ['menu_colors' => 'active'],
1244
+ 'screen' => 1
1245
+ ],
1246
+ 'menu_bg_color_active' => [
1247
+ 'type' => 'color',
1248
+ 'label' => __pl('p_bg_color'),
1249
+ 'default' => '#00ccff',
1250
+ 'css' => ['{{element}} .pagelayer-wp_menu-ul>li.current-menu-item' => 'background-color: {{val}};'],
1251
+ 'show' => ['menu_colors' => 'active'],
1252
+ 'screen' => 1
1253
+ ],
1254
+ 'menu_typo' => array(
1255
+ 'type' => 'typography',
1256
+ 'label' => __pl('typography'),
1257
+ 'screen' => 1,
1258
+ 'css' => ['{{element}} .pagelayer-wp-menu-container ul li a' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
1259
+ '{{element}} .pagelayer-heading-holder' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1260
+ ),
1261
+ 'menu_pointer_height' => [
1262
+ 'type' => 'slider',
1263
+ 'label' => __pl('pointer_height'),
1264
+ 'screen' => 1,
1265
+ 'min' => 1,
1266
+ 'max' => 50,
1267
+ 'css' => ['{{element}} .pagelayer-menu-hover-underline:not(.none) .pagelayer-wp_menu-ul>li>a:before, {{element}} .pagelayer-menu-hover-doubleline:not(.none) .pagelayer-wp_menu-ul>li>a:before, {{element}} .pagelayer-menu-hover-doubleline:not(.none) .pagelayer-wp_menu-ul>li>a:after, {{element}} .pagelayer-menu-hover-overline:not(.none) .pagelayer-wp_menu-ul>li>a:before' => 'height:{{val}}px;',
1268
+ '{{element}} .pagelayer-menu-hover-framed .pagelayer-wp_menu-ul>li>a:hover:before' => 'border-width: {{val}}px'],
1269
+ 'show' => ['pointer' => ['underline', 'overline', 'doubleline', 'framed']],
1270
+ ],
1271
+ 'horizontal_padding' => [
1272
+ 'type' => 'slider',
1273
+ 'label' => __pl('horizontal_padding'),
1274
+ 'default' => 10,
1275
+ 'screen' => 1,
1276
+ 'css' => ['{{element}} .pagelayer-wp_menu-ul>li a' => 'padding-left: {{val}}px;padding-right: {{val}}px;'],
1277
+ ],
1278
+ 'vertical_padding' => [
1279
+ 'type' => 'slider',
1280
+ 'label' => __pl('vertical_padding'),
1281
+ 'default' => 10,
1282
+ 'screen' => 1,
1283
+ 'css' => ['{{element}} .pagelayer-wp_menu-ul>li>a' => 'padding-top: {{val}}px;padding-bottom : {{val}}px;'],
1284
+ ],
1285
+ ],
1286
+ 'submenu_style' => [
1287
+ 'submenu_colors' => array(
1288
+ 'type' => 'radio',
1289
+ 'label' => __pl('Background'),
1290
+ //'no_val' => 1,// Dont set any value to element
1291
+ 'list' => [
1292
+ '' => __pl('normal'),
1293
+ 'hover' => __pl('hover'),
1294
+ 'active' => __pl('active'),
1295
+ ],
1296
+ ),
1297
+ 'submenu_color' => [
1298
+ 'type' => 'color',
1299
+ 'label' => __pl('color'),
1300
+ 'default' => '#ffffff',
1301
+ 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li a' => 'color: {{val}};'],
1302
+ 'show' => ['submenu_colors' => ''],
1303
+ 'screen' => 1
1304
+ ],
1305
+ 'submenu_bg_color' => [
1306
+ 'type' => 'color',
1307
+ 'label' => __pl('bg_color'),
1308
+ 'default' => '#0986c0',
1309
+ 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu' => 'background-color: {{val}};'],
1310
+ 'show' => ['submenu_colors' => ''],
1311
+ 'screen' => 1
1312
+ ],
1313
+ 'submenu_color_hover' => [
1314
+ 'type' => 'color',
1315
+ 'label' => __pl('color'),
1316
+ 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li a:hover' => 'color: {{val}};', '{{element}} .pagelayer-wp-menu-container ul.sub-menu>li.active-sub-menu a:hover' => 'color: {{val}};'],
1317
+ 'show' => ['submenu_colors' => 'hover'],
1318
+ 'screen' => 1
1319
+ ],
1320
+ 'submenu_bg_color_hover' => [
1321
+ 'type' => 'color',
1322
+ 'label' => __pl('bg_color'),
1323
+ 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li:hover' => 'background-color: {{val}};', '{{element}} .pagelayer-wp-menu-container ul.sub-menu>li.active-sub-menu' => 'background-color: {{val}};'],
1324
+ 'show' => ['submenu_colors' => 'hover'],
1325
+ 'screen' => 1
1326
+ ],
1327
+ 'submenu_color_active' => [
1328
+ 'type' => 'color',
1329
+ 'label' => __pl('color'),
1330
+ 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li.current-menu-item a' => 'color: {{val}};'],
1331
+ 'show' => ['submenu_colors' => 'active'],
1332
+ 'screen' => 1
1333
+ ],
1334
+ 'submenu_bg_color_active' => [
1335
+ 'type' => 'color',
1336
+ 'label' => __pl('bg_color'),
1337
+ 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu>li.current-menu-item' => 'background-color: {{val}};'],
1338
+ 'show' => ['submenu_colors' => 'active'],
1339
+ 'screen' => 1
1340
+ ],
1341
+ 'submenu_typo' => array(
1342
+ 'type' => 'typography',
1343
+ 'label' => __pl('typography'),
1344
+ 'screen' => 1,
1345
+ 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu li a' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
1346
+ '{{element}} .pagelayer-heading-holder' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1347
+ ),
1348
+ 'submenu_horizontal_padding' => [
1349
+ 'type' => 'slider',
1350
+ 'label' => __pl('horizontal_padding'),
1351
+ 'default' => 10,
1352
+ 'screen' => 1,
1353
+ 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu li a' => 'padding-left: {{val}}px;padding-right: {{val}}px;'],
1354
+ ],
1355
+ 'submenu_vertical_padding' => [
1356
+ 'type' => 'slider',
1357
+ 'label' => __pl('vertical_padding'),
1358
+ 'default' => 10,
1359
+ 'screen' => 1,
1360
+ 'css' => ['{{element}} .pagelayer-wp-menu-container ul.sub-menu li a' => 'padding-top: {{val}}px;padding-bottom : {{val}}px;'],
1361
+ ],
1362
+ 'submenu_left_margin' => [
1363
+ 'type' => 'slider',
1364
+ 'label' => __pl('left_margin'),
1365
+ 'default' => 10,
1366
+ 'screen' => 1,
1367
+ 'css' => ['{{element}} .pagelayer-wp-menu-container .sub-menu a' => 'margin-left: {{val}}px;', '{{element}} .pagelayer-wp-menu-container .sub-menu .sub-menu a' => 'margin-left: calc(2 * {{val}}px);'],
1368
+ ],
1369
+ 'submenu_position' => [
1370
+ 'type' => 'radio',
1371
+ 'label' => __pl('position'),
1372
+ 'default' => 'left',
1373
+ 'list' => array(
1374
+ 'left' => __pl('left'),
1375
+ 'right' => __pl('right'),
1376
+ ),
1377
+ 'css' => ['{{element}} .pagelayer-menu-type-horizontal .sub-menu' => '{{val}}:0px;', '{{element}} .pagelayer-menu-type-horizontal .sub-menu .sub-menu' => 'left:unset;{{val}}:100% !important;top:0px;'],
1378
+ 'req' => ['layout' => 'horizontal'],
1379
+ ],
1380
+ ],
1381
+ 'menu_toggle' => [
1382
+ 'menu_toggle_align' => array(
1383
+ 'type' => 'radio',
1384
+ 'label' => __pl('alignment'),
1385
+ 'default' => 'center',
1386
+ 'screen' => 1,
1387
+ 'list' => array(
1388
+ 'left' => __pl('left'),
1389
+ 'center' => __pl('center'),
1390
+ 'right' => __pl('right'),
1391
+ ),
1392
+ 'css' => ['{{element}} .pagelayer-primary-menu-bar' => 'text-align:{{val}}'],
1393
+ ),
1394
+ 'menu_toggle_color' => array(
1395
+ 'type' => 'color',
1396
+ 'label' => __pl('color'),
1397
+ 'css' => ['{{element}} .pagelayer-primary-menu-bar i' => 'color:{{val}}'],
1398
+ ),
1399
+ 'menu_toggle_bg_color' => array(
1400
+ 'type' => 'color',
1401
+ 'label' => __pl('bg_color'),
1402
+ 'default' => '#0986c050',
1403
+ 'css' => ['{{element}} .pagelayer-primary-menu-bar i' => 'background-color:{{val}}'],
1404
+ ),
1405
+ 'menu_toggle_size' => array(
1406
+ 'type' => 'slider',
1407
+ 'label' => __pl('font_size'),
1408
+ 'default' => 30,
1409
+ 'screen' => 1,
1410
+ 'css' => ['{{element}} .pagelayer-primary-menu-bar i' => 'font-size:{{val}}px'],
1411
+ ),
1412
+ 'menu_toggle_padding' => array(
1413
+ 'type' => 'slider',
1414
+ 'label' => __pl('padding'),
1415
+ 'screen' => 1,
1416
+ 'css' => ['{{element}} .pagelayer-primary-menu-bar i' => 'padding:{{val}}px'],
1417
+ ),
1418
+ ],
1419
+ 'dropdown_style' => [
1420
+ 'slide_style' => array(
1421
+ 'type' => 'select',
1422
+ 'label' => __pl('slide_style'),
1423
+ 'default' => 'pagelayer-wp_menu-right',
1424
+ 'list' => array(
1425
+ 'pagelayer-wp_menu-down' => __pl('slide-down'),
1426
+ 'pagelayer-wp_menu-right' => __pl('slide-right'),
1427
+ 'pagelayer-wp_menu-left' => __pl('slide-left'),
1428
+ 'pagelayer-wp_menu-full' => __pl('full_screen')
1429
+ ),
1430
+ 'req' => ['!drop_breakpoint' => 'none']
1431
+ ),
1432
+ 'dropdown_align' => array(
1433
+ 'type' => 'radio',
1434
+ 'label' => __pl('alignment'),
1435
+ 'screen' => 1,
1436
+ 'list' => array(
1437
+ 'flex-start' => __pl('left'),
1438
+ 'center' => __pl('center'),
1439
+ 'flex-end' => __pl('right'),
1440
+ ),
1441
+ 'css' => ['{{element}} .pagelayer-menu-type-dropdown .pagelayer-wp_menu-ul a' => 'justify-content: {{val}};'],
1442
+ ),
1443
+ 'menu_width' => [
1444
+ 'type' => 'spinner',
1445
+ 'label' => __pl('width'),
1446
+ 'default' => 30,
1447
+ 'min' => 1,
1448
+ 'screen' => 1,
1449
+ 'css' => ['{{element}} .pagelayer-menu-type-dropdown' => 'width:{{val}}%;'],
1450
+ 'req' => [
1451
+ '!drop_breakpoint' => 'none',
1452
+ '!slide_style' => ['pagelayer-wp_menu-full','pagelayer-wp_menu-down']
1453
+ ]
1454
+ ],
1455
+ 'menu_down_width' => [
1456
+ 'type' => 'spinner',
1457
+ 'label' => __pl('width'),
1458
+ 'default' => 100,
1459
+ 'min' => 1,
1460
+ 'screen' => 1,
1461
+ 'css' => ['{{element}} .pagelayer-menu-type-dropdown' => 'width:{{val}}%;'],
1462
+ 'req' => [
1463
+ '!drop_breakpoint' => 'none',
1464
+ 'slide_style' => 'pagelayer-wp_menu-down'
1465
+ ]
1466
+ ],
1467
+ 'menu_items_width' => [
1468
+ 'type' => 'spinner',
1469
+ 'label' => __pl('menu_items_width'),
1470
+ 'default' => 100,
1471
+ 'min' => 1,
1472
+ 'max' => 100,
1473
+ 'css' => ['{{element}} .pagelayer-menu-type-dropdown .pagelayer-wp_menu-ul' => 'width:{{val}}%;'],
1474
+ 'req' => [
1475
+ '!drop_breakpoint' => 'none',
1476
+ '!slide_style' => ['pagelayer-wp_menu-down']
1477
+ ]
1478
+ ],
1479
+ 'menu_posx' => array(
1480
+ 'type' => 'slider',
1481
+ 'label' => __pl('horizontal_pos'),
1482
+ 'screen' => 1,
1483
+ 'min' => 0,
1484
+ 'step' => 1,
1485
+ 'max' => 100,
1486
+ 'default' => 0,
1487
+ 'css' => ['{{element}} .pagelayer-menu-type-dropdown .pagelayer-wp_menu-ul' => 'left: {{val}}%;'],
1488
+ 'req' => [
1489
+ '!drop_breakpoint' => 'none',
1490
+ '!slide_style' => 'pagelayer-wp_menu-down'
1491
+ ]
1492
+ ),
1493
+ 'menu_posy' => array(
1494
+ 'type' => 'slider',
1495
+ 'label' => __pl('verticle_postion'),
1496
+ 'screen' => 1,
1497
+ 'min' => 0,
1498
+ 'step' => 1,
1499
+ 'max' => 100,
1500
+ 'default' => 8,
1501
+ 'css' => ['{{element}} .pagelayer-menu-type-dropdown .pagelayer-wp_menu-ul' => 'top: {{val}}%; transform: translateY(-{{val}}%);'],
1502
+ 'req' => [
1503
+ '!drop_breakpoint' => 'none',
1504
+ '!slide_style' => 'pagelayer-wp_menu-down'
1505
+ ]
1506
+ ),
1507
+ 'menu_bg' => array(
1508
+ 'type' => 'radio',
1509
+ 'label' => __pl('col_bg_styles'),
1510
+ 'default' => 'color',
1511
+ 'list' => array(
1512
+ '' => __pl('none'),
1513
+ 'color' => __pl('color'),
1514
+ 'gradient' => __pl('gradient'),
1515
+ ),
1516
+ 'req' => ['!drop_breakpoint' => 'none']
1517
+ ),
1518
+ 'menu_items_bg' => array(
1519
+ 'type' => 'color',
1520
+ 'label' => __pl('color'),
1521
+ 'default' => '#ffffff',
1522
+ 'css' => ['{{element}} .pagelayer-menu-type-dropdown' => 'background-color:{{val}}'],
1523
+ 'req' => [
1524
+ 'menu_bg' => 'color',
1525
+ '!drop_breakpoint' => 'none'
1526
+ ],
1527
+ ),
1528
+ 'menu_items_gradient' => array(
1529
+ 'type' => 'gradient',
1530
+ 'label' => '',
1531
+ 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
1532
+ 'css' => ['{{element}} .pagelayer-menu-type-dropdown' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
1533
+ 'req' => [
1534
+ 'menu_bg' => 'gradient',
1535
+ '!drop_breakpoint' => 'none'
1536
+ ],
1537
+ ),
1538
+ ],
1539
+ 'close_style' =>[
1540
+ 'close_size' => array(
1541
+ 'type' => 'slider',
1542
+ 'label' => __pl('font_size'),
1543
+ 'default' => 25,
1544
+ 'screen' => 1,
1545
+ 'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'font-size:{{val}}px'],
1546
+ 'req' => ['!drop_breakpoint' => 'none'],
1547
+ ),
1548
+ 'close_padding' => array(
1549
+ 'type' => 'slider',
1550
+ 'label' => __pl('padding'),
1551
+ 'default' => 8,
1552
+ 'screen' => 1,
1553
+ 'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'padding:{{val}}px'],
1554
+ 'req' => ['!drop_breakpoint' => 'none'],
1555
+ ),
1556
+ 'close_pos_x' => array(
1557
+ 'type' => 'slider',
1558
+ 'label' => __pl('horizontal_pos'),
1559
+ 'step' => 1,
1560
+ 'max' => 100,
1561
+ 'default' => 0,
1562
+ 'screen' => 1,
1563
+ 'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'left:{{val}}%;'],
1564
+ 'req' => ['!drop_breakpoint' => 'none'],
1565
+ ),
1566
+ 'close_pos_y' => array(
1567
+ 'type' => 'slider',
1568
+ 'label' => __pl('verticle_postion'),
1569
+ 'step' => 1,
1570
+ 'max' => 100,
1571
+ 'default' => 0,
1572
+ 'screen' => 1,
1573
+ 'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'top:{{val}}%;'],
1574
+ 'req' => ['!drop_breakpoint' => 'none'],
1575
+ ),
1576
+ 'close_state' => array(
1577
+ 'type' => 'radio',
1578
+ 'label' => __pl('state'),
1579
+ 'default' => '',
1580
+ 'list' => array(
1581
+ '' => __pl('normal'),
1582
+ 'hover' => __pl('hover'),
1583
+ ),
1584
+ ),
1585
+ 'close_color' => array(
1586
+ 'type' => 'color',
1587
+ 'label' => __pl('color'),
1588
+ 'default' => '#ffffff68',
1589
+ 'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'color:{{val}}'],
1590
+ 'req' => ['!drop_breakpoint' => 'none'],
1591
+ 'show' => ['close_state' => '']
1592
+ ),
1593
+ 'close_bg_color' => array(
1594
+ 'type' => 'color',
1595
+ 'label' => __pl('bg_color'),
1596
+ 'default' => '#00000036',
1597
+ 'css' => ['{{element}} .pagelayer-wp_menu-close i' => 'background-color:{{val}}'],
1598
+ 'req' => ['!drop_breakpoint' => 'none'],
1599
+ 'show' => ['close_state' => '']
1600
+ ),
1601
+ 'close_hover_delay' => array(
1602
+ 'type' => 'spinner',
1603
+ 'label' => __pl('delay'),
1604
+ 'min' => 0,
1605
+ 'step' => 100,
1606
+ 'max' => 5000,
1607
+ 'default' => 600,
1608
+ 'css' => ['{{element}} .pagelayer-wp_menu-close i' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
1609
+ 'show' => ['close_state' => 'hover']
1610
+ ),
1611
+ 'close_color_hover' => array(
1612
+ 'type' => 'color',
1613
+ 'label' => __pl('color'),
1614
+ 'default' => '#ffffff',
1615
+ 'css' => ['{{element}} .pagelayer-wp_menu-close i:hover' => 'color:{{val}}'],
1616
+ 'req' => ['!drop_breakpoint' => 'none'],
1617
+ 'show' => ['close_state' => 'hover']
1618
+ ),
1619
+ 'close_bg_color_hover' => array(
1620
+ 'type' => 'color',
1621
+ 'label' => __pl('bg_color'),
1622
+ 'default' => '#000000',
1623
+ 'css' => ['{{element}} .pagelayer-wp_menu-close i:hover' => 'background-color:{{val}}'],
1624
+ 'req' => ['!drop_breakpoint' => 'none'],
1625
+ 'show' => ['close_state' => 'hover']
1626
+ ),
1627
+ ],
1628
+ 'styles' => [
1629
+ 'menu_style' => __pl('menu_style'),
1630
+ 'submenu_style' => __pl('submenu_style'),
1631
+ 'menu_toggle' => __pl('toggle_style'),
1632
+ 'dropdown_style' => __pl('dropdown_style'),
1633
+ 'close_style' => __pl('close_style'),
1634
+ ]
1635
+ )
1636
+ );
1637
+
1638
+ // Breadcrumb
1639
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_breadcrumb', array(
1640
+ 'name' => __pl('breadcrumb'),
1641
+ 'group' => 'other',
1642
+ 'html' => '<span if="{{prefix}}" class="pagelayer-breadcrumb-prefix">{{prefix}}</span>
1643
+ <span class="pagelayer-breadcrumb-section">'.
1644
+ pagelayer_get_breadcrumb().
1645
+ '</span>',
1646
+ //'html' => yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ).pagelayer_get_breadcrumb(),
1647
+ 'params' => array(
1648
+ 'home' => array(
1649
+ 'type' => 'text',
1650
+ 'label' => __pl('home_label'),
1651
+ 'default' => 'Home',
1652
+ ),
1653
+ 'breadcrumb_color' => array(
1654
+ 'type' => 'color',
1655
+ 'label' => __pl('color'),
1656
+ 'css' => ['{{element}} .pagelayer-breadcrumb-section a' => 'color:{{val}};']
1657
+ ),
1658
+ 'breadcrumb_hover' => array(
1659
+ 'type' => 'color',
1660
+ 'label' => __pl('hovered_color'),
1661
+ 'css' => ['{{element}} .pagelayer-breadcrumb-section a:hover' => 'color:{{val}};']
1662
+ ),
1663
+ 'cur_color' => array(
1664
+ 'type' => 'color',
1665
+ 'label' => __pl('cur_color'),
1666
+ 'css' => ['{{element}} .pagelayer-breadcrumb-section' => 'color:{{val}};']
1667
+ ),
1668
+ 'typo' => array(
1669
+ 'type' => 'typography',
1670
+ 'label' => __pl('typography'),
1671
+ 'screen' => 1,
1672
+ 'css' => ['{{element}} .pagelayer-breadcrumb-section' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1673
+ ),
1674
+ 'alignment' => array(
1675
+ 'type' => 'radio',
1676
+ 'label' => __pl('alignment'),
1677
+ 'default' => 'center',
1678
+ 'screen' => 1,
1679
+ 'css' =>'text-align:{{val}};',
1680
+ 'list' => array(
1681
+ 'left' => __pl('left'),
1682
+ 'center' => __pl('center'),
1683
+ 'right' => __pl('right'),
1684
+ ),
1685
+ ),
1686
+ ),
1687
+ 'prefix_style' => [
1688
+ 'prefix' => array(
1689
+ 'type' => 'text',
1690
+ 'label' => __pl('breadcrumb_prefix'),
1691
+ ),
1692
+ 'search_prefix' => array(
1693
+ 'type' => 'text',
1694
+ 'label' => __pl('search_prefix'),
1695
+ ),
1696
+ '404_prefix' => array(
1697
+ 'type' => 'text',
1698
+ 'label' => __pl('404_prefix'),
1699
+ ),
1700
+ 'prefix_color' => array(
1701
+ 'type' => 'color',
1702
+ 'label' => __pl('color'),
1703
+ 'css' => ['{{element}} .pagelayer-breadcrumb-prefix' => 'color:{{val}};']
1704
+ ),
1705
+ 'prefix_typo' => array(
1706
+ 'type' => 'typography',
1707
+ 'label' => __pl('typography'),
1708
+ 'screen' => 1,
1709
+ 'css' => ['{{element}} .pagelayer-breadcrumb-prefix' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1710
+ ),
1711
+ ],
1712
+ 'separator_style' => [
1713
+ 'separator' => array(
1714
+ 'type' => 'text',
1715
+ 'label' => __pl('separator_style'),
1716
+ 'default' => '&nbsp;&#187;&nbsp;',
1717
+ ),
1718
+ 'separator_color' => array(
1719
+ 'type' => 'color',
1720
+ 'label' => __pl('color'),
1721
+ 'default' => '#333333',
1722
+ 'css' => ['{{element}} .pagelayer-breadcrumb-sep' => 'color:{{val}};']
1723
+ ),
1724
+ ],
1725
+ 'styles' => [
1726
+ 'prefix_style' => __pl('prefix_style'),
1727
+ 'separator_style' => __pl('separator_style'),
1728
+ ]
1729
+ )
1730
+ );
1731
+
1732
+ // Contact Form
1733
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_contact', array(
1734
+ 'name' => __pl('contact_form'),
1735
+ 'group' => 'other',
1736
+ 'has_group' => [
1737
+ 'section' => 'params',
1738
+ 'prop' => 'elements'
1739
+ ],
1740
+ 'holder' => '.pagelayer-contact-holder',
1741
+ 'html' => '<div class="pagelayer-contact-form-div pagelayer-contact-form-holder">
1742
+ <form class="pagelayer-contact-form" id="{{form}}" name="{{name}}" onsubmit="return pagelayer_contact_submit(this, event)" method="POST">
1743
+ <div class="pagelayer-contact-holder">
1744
+ </div>
1745
+ <input type="hidden" name="cfa-pagelayer-id"/>
1746
+ <input if="{{con_post_id}}" type="hidden" name="cfa-post-id" value="{{con_post_id}}"/>
1747
+ <input if="{{contact_custom_templ}}" type="hidden" name="cfa-custom-template" value="{{contact_custom_templ}}"/>
1748
+ <input if="{{redirect_url}}" type="hidden" name="cfa-redirect" value="{{{redirect_url}}}"/>
1749
+ <div class="g-recaptcha pagelayer-recaptcha" data-sitekey="{{grecaptcha}}" if="{{captcha}}"></div>
1750
+ <div class="pagelayer-contact-submit-holder">
1751
+ <button if="{{submit}}" type="submit" form="{{form}}" class="pagelayer-contact-submit-btn pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{icon_position}}">
1752
+ <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
1753
+ <span if="{{submit}}" class="pagelayer-btn-text">{{submit}}</span>
1754
+ <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
1755
+ </button>
1756
+ <div>
1757
+ </form>
1758
+ <div class="pagelayer-message-box"></div>
1759
+ </div>',
1760
+ 'params' => array(
1761
+ 'elements' => array(
1762
+ 'type' => 'group',
1763
+ 'label' => __pl('Label'),
1764
+ 'sc' => PAGELAYER_SC_PREFIX.'_contact_item',
1765
+ 'item_label' => array(
1766
+ 'default' => __pl('Label'),
1767
+ 'param' => 'label_name'
1768
+ ),
1769
+ 'count' => 1,
1770
+ 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('field_name'))),
1771
+ ),
1772
+ 'redirect_show' => array(
1773
+ 'type' => 'checkbox',
1774
+ 'label' => __pl('redirect_url'),
1775
+ ),
1776
+ 'redirect_url' => array(
1777
+ 'type' => 'link',
1778
+ 'label' => __pl('redirect_urllabel'),
1779
+ 'desc' => __pl('redirect_urldesc'),
1780
+ 'req' => array(
1781
+ 'redirect_show' => 'true'
1782
+ )
1783
+ ),
1784
+ 'captcha' => array(
1785
+ 'type' => 'checkbox',
1786
+ 'label' => __pl('use_recaptcha'),
1787
+ 'default' => '',
1788
+ 'desc' => __pl('use_recaptcha_desc'),
1789
+ ),
1790
+ 'form' => array(
1791
+ 'type' => 'text',
1792
+ 'label' => __pl('form_id'),
1793
+ 'desc' => __pl('form_id_desc'),
1794
+ 'default' => 'contact-form',
1795
+ ),
1796
+ 'name' => array(
1797
+ 'type' => 'text',
1798
+ 'label' => __pl('form_name'),
1799
+ 'default' => 'Contact Form',
1800
+ 'desc' => __pl('form_name_desc'),
1801
+ ),
1802
+ 'form_position' => array(
1803
+ 'type' => 'radio',
1804
+ 'label' => __pl('alignment'),
1805
+ 'default' => 'default',
1806
+ 'screen' => 1,
1807
+ 'list' => array(
1808
+ 'left' => __pl('left'),
1809
+ 'center' => __pl('center'),
1810
+ 'right' => __pl('right')
1811
+ ),
1812
+ 'css' => ['{{element}} .pagelayer-contact-form' => 'text-align: {{val}}'],
1813
+ ),
1814
+ ),
1815
+ 'label_style' =>[
1816
+ 'form_label_color' => array(
1817
+ 'type' => 'color',
1818
+ 'label' => __pl('label_color'),
1819
+ 'default' => '',
1820
+ 'show' => ['field_state' => ''],
1821
+ 'css' => ['{{element}} label' => 'color: {{val}}'],
1822
+ ),
1823
+ 'label_typo' => array(
1824
+ 'type' => 'typography',
1825
+ 'label' => __pl('typography'),
1826
+ 'screen' => 1,
1827
+ 'css' => ['{{element}} label' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1828
+ ),
1829
+ 'space_label' => array(
1830
+ 'type' => 'padding',
1831
+ 'label' => __pl('space_between'),
1832
+ 'default' => ',,10,',
1833
+ 'screen' => 1,
1834
+ 'css' => ['{{element}} label' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'],
1835
+ ),
1836
+ 'form_placeholder_color' => array(
1837
+ 'type' => 'color',
1838
+ 'label' => __pl('placeholder_color'),
1839
+ 'default' => '',
1840
+ 'show' => ['field_state' => ''],
1841
+ 'css' => ['{{element}} ::placeholder' => 'color: {{val}}'],
1842
+ ),
1843
+ 'placeholder_typo' => array(
1844
+ 'type' => 'typography',
1845
+ 'label' => __pl('typography'),
1846
+ 'screen' => 1,
1847
+ 'css' => ['{{element}} ::placeholder' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1848
+ ),
1849
+ ],
1850
+ 'input_style' => [
1851
+ 'input_state' => array(
1852
+ 'type' => 'radio',
1853
+ 'label' => __pl('state'),
1854
+ 'default' => 'normal',
1855
+ 'list' => array(
1856
+ 'normal' => __pl('normal'),
1857
+ 'hover' => __pl('hover'),
1858
+ ),
1859
+ ),
1860
+ 'form_input_color' => array(
1861
+ 'type' => 'color',
1862
+ 'label' => __pl('text_color'),
1863
+ 'css' => [
1864
+ '{{element}} textarea, {{element}} input, {{element}} select, {{element}} date' => 'color: {{val}}'
1865
+ ],
1866
+ 'req' => array(
1867
+ 'input_state' => 'normal'
1868
+ ),
1869
+ ),
1870
+ 'form_input_bg' => array(
1871
+ 'type' => 'color',
1872
+ 'label' => __pl('bg_color'),
1873
+ 'css' => [
1874
+ '{{element}} textarea, {{element}} input, {{element}} select, {{element}} date' => 'background-color: {{val}}',
1875
+ ],
1876
+ 'req' => array(
1877
+ 'input_state' => 'normal',
1878
+ ),
1879
+ ),
1880
+ 'input_hover_delay' => array(
1881
+ 'type' => 'spinner',
1882
+ 'label' => __pl('input_hover_delay_label'),
1883
+ 'min' => 0,
1884
+ 'step' => 100,
1885
+ 'max' => 5000,
1886
+ 'css' => ['{{element}} textarea:hover, {{element}} input:hover, {{element}} select:hover, {{element}} date:hover' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
1887
+ 'show' => array(
1888
+ 'input_state' => 'hover'
1889
+ ),
1890
+ ),
1891
+ 'form_input_color_hover' => array(
1892
+ 'type' => 'color',
1893
+ 'label' => __pl('text_color'),
1894
+ 'css' => [
1895
+ '{{element}} textarea:hover, {{element}} input:hover, {{element}} select:hover, {{element}} date:hover' => 'color: {{val}}'
1896
+ ],
1897
+ 'req' => array(
1898
+ 'input_state' => 'hover'
1899
+ ),
1900
+ ),
1901
+ 'form_input_bg_hover' => array(
1902
+ 'type' => 'color',
1903
+ 'label' => __pl('bg_color'),
1904
+ 'css' => [
1905
+ '{{element}} textarea:hover, {{element}} input:hover, {{element}} select:hover, {{element}} date:hover' => 'background-color: {{val}}'
1906
+ ],
1907
+ 'req' => array(
1908
+ 'input_state' => 'hover'
1909
+ ),
1910
+ ),
1911
+ 'input_typo' => array(
1912
+ 'type' => 'typography',
1913
+ 'label' => __pl('typography'),
1914
+ 'screen' => 1,
1915
+ 'css' => ['{{element}} select, {{element}} input' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
1916
+ ),
1917
+ 'input_height' => array(
1918
+ 'type' => 'spinner',
1919
+ 'label' => __pl('text_field_height'),
1920
+ 'min' => 1,
1921
+ 'max' => 1000,
1922
+ 'step' => 1,
1923
+ 'screen' => 1,
1924
+ 'css' => [
1925
+ '{{element}} input, {{element}} select, {{element}} textarea'=> 'line-height: {{val}}px; min-height: {{val}}px',
1926
+ ],
1927
+ ),
1928
+ 'input_padding' => array(
1929
+ 'type' => 'dimension',
1930
+ 'label' => __pl('padding'),
1931
+ 'screen' => 1,
1932
+ 'default' => '10,10',
1933
+ 'css' => [
1934
+ '{{element}} input, {{element}} select, {{element}} textarea'=> 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[0]}}px; padding-left:{{val[1]}}px',
1935
+ ],
1936
+ ),
1937
+ /* 'input_state' => array(
1938
+ 'type' => 'radio',
1939
+ 'label' => __pl('state'),
1940
+ 'default' => '',
1941
+ 'list' => [
1942
+ '' => __pl('normal'),
1943
+ 'hover' => __pl('hover'),
1944
+ ],
1945
+ ), */
1946
+ ],
1947
+ 'form_style' => [
1948
+ 'field_state' => array(
1949
+ 'type' => 'radio',
1950
+ 'label' => '',
1951
+ 'default' => '',
1952
+ 'list' => array(
1953
+ '' => __pl('normal'),
1954
+ 'hover' => __pl('hover'),
1955
+ 'focus' => __pl('focus'),
1956
+ ),
1957
+ ),
1958
+ 'field_border_type' => array(
1959
+ 'type' => 'select',
1960
+ 'label' => __pl('border_type'),
1961
+ 'css' => [
1962
+ '{{element}} input, {{element}} select, {{element}} textarea' => 'border-style: {{val}}',
1963
+ '{{element}} input[type="checkbox"] + label:before' => 'border-style: {{val}}'
1964
+ ],
1965
+ 'list' => [
1966
+ '' => __pl('none'),
1967
+ 'solid' => __pl('solid'),
1968
+ 'double' => __pl('double'),
1969
+ 'dotted' => __pl('dotted'),
1970
+ 'dashed' => __pl('dashed'),
1971
+ 'groove' => __pl('groove'),
1972
+ ],
1973
+ 'show' => array(
1974
+ 'field_state' => ''
1975
+ ),
1976
+ ),
1977
+ 'field_border_color' => array(
1978
+ 'type' => 'color',
1979
+ 'label' => __pl('service_box_icon_border_color_label'),
1980
+ 'default' => '#0986c0',
1981
+ 'css' => [
1982
+ '{{element}} input, {{element}} select, {{element}} textarea' => 'border-color: {{val}};',
1983
+ '{{element}} input[type="checkbox"] + label:before' => 'border-color: {{val}};'
1984
+ ],
1985
+ 'req' => array(
1986
+ '!field_border_type' => ''
1987
+ ),
1988
+ 'show' => array(
1989
+ 'field_state' => ''
1990
+ ),
1991
+ ),
1992
+ 'field_border_width' => array(
1993
+ 'type' => 'padding',
1994
+ 'label' => __pl('border_width'),
1995
+ 'screen' => 1,
1996
+ 'css' => ['{{element}} input, {{element}} select, {{element}} textarea, {{element}} input[type="checkbox"] + label:before' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
1997
+ 'req' => [
1998
+ '!field_border_type' => ''
1999
+ ],
2000
+ 'show' => array(
2001
+ 'field_state' => ''
2002
+ ),
2003
+ ),
2004
+ 'field_border_radius' => array(
2005
+ 'type' => 'padding',
2006
+ 'label' => __pl('border_radius'),
2007
+ 'screen' => 1,
2008
+ 'css' => ['{{element}} input, {{element}} select, {{element}} textarea, {{element}} input[type="checkbox"] + label:before' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
2009
+ 'req' => array(
2010
+ '!field_border_type' => ''
2011
+ ),
2012
+ 'show' => array(
2013
+ 'field_state' => ''
2014
+ ),
2015
+ ),
2016
+ 'field_shadow' => array(
2017
+ 'type' => 'box_shadow',
2018
+ 'label' => __pl('text_shadow'),
2019
+ 'screen' => 1,
2020
+ 'css' => [
2021
+ '{{element}} input, {{element}} select, {{element}} textarea, {{element}} input[type="checkbox"] + label:before' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'
2022
+ ],
2023
+ 'show' => ['field_state' => ''],
2024
+ ),
2025
+ 'field_hover_delay' => array(
2026
+ 'type' => 'spinner',
2027
+ 'label' => __pl('service_btn_hover_delay'),
2028
+ 'min' => 0,
2029
+ 'step' => 100,
2030
+ 'max' => 5000,
2031
+ 'default' => 400,
2032
+ 'css' => ['{{element}} input, {{element}} select, {{element}} textarea' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
2033
+ 'show' => array(
2034
+ 'field_state' => 'hover'
2035
+ ),
2036
+ ),
2037
+ 'field_border_type_hover' => array(
2038
+ 'type' => 'select',
2039
+ 'label' => __pl('border_type'),
2040
+ 'css' => ['{{element}} input:hover, {{element}} select:hover, {{element}} textarea:hover' => 'border-style: {{val}}'],
2041
+ 'list' => [
2042
+ '' => __pl('none'),
2043
+ 'solid' => __pl('solid'),
2044
+ 'double' => __pl('double'),
2045
+ 'dotted' => __pl('dotted'),
2046
+ 'dashed' => __pl('dashed'),
2047
+ 'groove' => __pl('groove'),
2048
+ ],
2049
+ 'show' => array(
2050
+ 'field_state' => 'hover'
2051
+ ),
2052
+ ),
2053
+ 'field_border_color_hover' => array(
2054
+ 'type' => 'color',
2055
+ 'label' => __pl('service_box_icon_border_color_label'),
2056
+ 'css' => ['{{element}} input:hover, {{element}} select:hover, {{element}} textarea:hover' => 'border-color: {{val}};'],
2057
+ 'default' => '#0986c0',
2058
+ 'req' => array(
2059
+ '!field_border_type_hover' => ''
2060
+ ),
2061
+ 'show' => array(
2062
+ 'field_state' => 'hover'
2063
+ ),
2064
+ ),
2065
+ 'field_border_width_hover' => array(
2066
+ 'type' => 'padding',
2067
+ 'label' => __pl('border_width'),
2068
+ 'screen' => 1,
2069
+ 'css' => ['{{element}} input:hover, {{element}} select:hover, {{element}} textarea:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
2070
+ 'req' => [
2071
+ '!field_border_type_hover' => ''
2072
+ ],
2073
+ 'show' => array(
2074
+ 'field_state' => 'hover'
2075
+ ),
2076
+ ),
2077
+ 'field_border_radius_hover' => array(
2078
+ 'type' => 'padding',
2079
+ 'label' => __pl('border_radius'),
2080
+ 'screen' => 1,
2081
+ 'css' => ['{{element}} input:hover, {{element}} select:hover, {{element}} textarea:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
2082
+ 'req' => array(
2083
+ '!field_border_type_hover' => ''
2084
+ ),
2085
+ 'show' => array(
2086
+ 'field_state' => 'hover'
2087
+ ),
2088
+ ),
2089
+ 'field_shadow_hover' => array(
2090
+ 'type' => 'box_shadow',
2091
+ 'label' => __pl('text_shadow'),
2092
+ 'screen' => 1,
2093
+ 'css' => [
2094
+ '{{element}} input:hover, {{element}} select:hover, {{element}} textarea:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'
2095
+ ],
2096
+ 'show' => ['field_state' => 'hover'],
2097
+ ),
2098
+ 'field_border_type_focus' => array(
2099
+ 'type' => 'select',
2100
+ 'label' => __pl('border_type'),
2101
+ 'css' => ['{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'border-style: {{val}}'],
2102
+ 'list' => [
2103
+ '' => __pl('none'),
2104
+ 'solid' => __pl('solid'),
2105
+ 'double' => __pl('double'),
2106
+ 'dotted' => __pl('dotted'),
2107
+ 'dashed' => __pl('dashed'),
2108
+ 'groove' => __pl('groove'),
2109
+ ],
2110
+ 'show' => array(
2111
+ 'field_state' => 'focus'
2112
+ ),
2113
+ ),
2114
+ 'field_border_color_focus' => array(
2115
+ 'type' => 'color',
2116
+ 'label' => __pl('service_box_icon_border_color_label'),
2117
+ 'css' => ['{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'border-color: {{val}};'],
2118
+ 'default' => '#0986c0',
2119
+ 'req' => array(
2120
+ '!field_border_type_focus' => ''
2121
+ ),
2122
+ 'show' => array(
2123
+ 'field_state' => 'focus'
2124
+ ),
2125
+ ),
2126
+ 'field_border_width_focus' => array(
2127
+ 'type' => 'padding',
2128
+ 'label' => __pl('border_width'),
2129
+ 'screen' => 1,
2130
+ 'css' => ['{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
2131
+ 'req' => [
2132
+ '!field_border_type_focus' => ''
2133
+ ],
2134
+ 'show' => array(
2135
+ 'field_state' => 'focus'
2136
+ ),
2137
+ ),
2138
+ 'field_border_radius_focus' => array(
2139
+ 'type' => 'padding',
2140
+ 'label' => __pl('border_radius'),
2141
+ 'screen' => 1,
2142
+ 'css' => ['{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
2143
+ 'req' => array(
2144
+ '!field_border_type_focus' => ''
2145
+ ),
2146
+ 'show' => array(
2147
+ 'field_state' => 'focus'
2148
+ ),
2149
+ ),
2150
+ 'field_shadow_focus' => array(
2151
+ 'type' => 'box_shadow',
2152
+ 'label' => __pl('text_shadow'),
2153
+ 'screen' => 1,
2154
+ 'css' => [
2155
+ '{{element}} input:focus, {{element}} select:focus, {{element}} textarea:focus' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'
2156
+ ],
2157
+ 'show' => ['field_state' => 'focus'],
2158
+ ),
2159
+ ],
2160
+ 'radio_style' => [
2161
+ 'form_box_color' => array(
2162
+ 'type' => 'color',
2163
+ 'label' => __pl('color'),
2164
+ 'default' => '',
2165
+ 'css' => [
2166
+ '{{element}} input[type="radio"]:checked:before' => 'color: {{val}}',
2167
+ '{{element}} input[type="checkbox"]:checked + label:before' => 'color: {{val}}'
2168
+ ],
2169
+ ),
2170
+ 'form_box_bg_color' => array(
2171
+ 'type' => 'color',
2172
+ 'label' => __pl('bg_color'),
2173
+ 'default' => '',
2174
+ 'css' => [
2175
+ '{{element}} input[type="radio"]:checked:before' => 'background-color: {{val}}',
2176
+ '{{element}} input[type="checkbox"]:checked + label:before' => 'background-color: {{val}}'
2177
+ ],
2178
+ ),
2179
+ 'inline_radio' => array(
2180
+ 'type' => 'checkbox',
2181
+ 'label' => __pl('inline'),
2182
+ 'screen' => 1,
2183
+ 'css' => ['{{element}} .pagelayer-radcheck-holder' => 'display:flex; align-items:center;']
2184
+ ),
2185
+ 'radio_padding' => array(
2186
+ 'type' => 'dimension',
2187
+ 'label' => __pl('padding'),
2188
+ 'screen' => 1,
2189
+ 'default' => '10,10',
2190
+ 'css' => [
2191
+ '{{element}} input[type="checkbox"] + label:before, {{element}} input[type="radio"]'=> 'height:{{val[0]}}px; min-height:{{val[0]}}px; width:{{val[1]}}px;',
2192
+ ],
2193
+ ),
2194
+ 'radio_spacing' => array(
2195
+ 'type' => 'padding',
2196
+ 'label' => __pl('space_around'),
2197
+ 'screen' => 1,
2198
+ 'css' => [
2199
+ '{{element}} .pagelayer-radcheck-holder>div'=> 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;',
2200
+ ],
2201
+ ),
2202
+ ],
2203
+ 'button_style' => [
2204
+ 'hide_btn' => array(
2205
+ 'type' => 'checkbox',
2206
+ 'label' => __pl('hide_btn'),
2207
+ ),
2208
+ 'submit' => array(
2209
+ 'type' => 'text',
2210
+ 'label' => __pl('submit_button_label'),
2211
+ 'default' => 'Submit',
2212
+ 'edit' => '.pagelayer-btn-text',
2213
+ 'req' => ['!hide_btn' => 'true'],
2214
+ ),
2215
+ 'btn_typo' => array(
2216
+ 'type' => 'typography',
2217
+ 'label' => __pl('quote_content_typo'),
2218
+ 'screen' => 1,
2219
+ 'css' => [
2220
+ '{{element}} .pagelayer-btn-text' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
2221
+ '{{element}} .pagelayer-btn-holder' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
2222
+ ],
2223
+ 'req' => ['!hide_btn' => 'true'],
2224
+ ),
2225
+ 'stretch' => array(
2226
+ 'type' => 'checkbox',
2227
+ 'label' => __pl('stretch_button_label'),
2228
+ 'screen' => 1,
2229
+ 'css' => ['{{element}} .pagelayer-contact-submit-btn' => 'width: 100%'],
2230
+ 'req' => ['!hide_btn' => 'true'],
2231
+ ),
2232
+ 'btn_spacing' => array(
2233
+ 'type' => 'padding',
2234
+ 'label' => __pl('spacing'),
2235
+ 'css' => ['{{element}} .pagelayer-contact-submit-btn' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
2236
+ 'req' => [
2237
+ '!hide_btn' => 'true',
2238
+ ]
2239
+ ),
2240
+ 'type' => array(
2241
+ 'type' => 'select',
2242
+ 'label' => __pl('button_type_label'),
2243
+ 'default' => 'pagelayer-btn-default',
2244
+ //'addClass' => ['{{element}} .pagelayer-btn-holder' => '{{val}}'],
2245
+ 'list' => array(
2246
+ 'pagelayer-btn-default' => __pl('btn_type_default'),
2247
+ 'pagelayer-btn-primary' => __pl('btn_type_primary'),
2248
+ 'pagelayer-btn-secondary' => __pl('btn_type_secondary'),
2249
+ 'pagelayer-btn-success' => __pl('btn_type_success'),
2250
+ 'pagelayer-btn-info' => __pl('btn_type_info'),
2251
+ 'pagelayer-btn-warning' => __pl('btn_type_warning'),
2252
+ 'pagelayer-btn-danger' => __pl('btn_type_danger'),
2253
+ 'pagelayer-btn-dark' => __pl('btn_type_dark'),
2254
+ 'pagelayer-btn-light' => __pl('btn_type_light'),
2255
+ 'pagelayer-btn-link' => __pl('btn_type_link'),
2256
+ 'pagelayer-btn-custom' => __pl('btn_type_custom')
2257
+ ),
2258
+ 'req' => ['!hide_btn' => 'true'],
2259
+ ),
2260
+ 'size' => array(
2261
+ 'type' => 'select',
2262
+ 'label' => __pl('button_size_label'),
2263
+ 'default' => 'pagelayer-btn-small',
2264
+ 'list' => array(
2265
+ 'pagelayer-btn-mini' => __pl('mini'),
2266
+ 'pagelayer-btn-small' => __pl('small'),
2267
+ 'pagelayer-btn-large' => __pl('large'),
2268
+ 'pagelayer-btn-extra-large' => __pl('extra_large'),
2269
+ 'pagelayer-btn-double-large' => __pl('double_large'),
2270
+ 'pagelayer-btn-custom' => __pl('custom'),
2271
+ ),
2272
+ 'req' => ['!hide_btn' => 'true'],
2273
+ ),
2274
+ 'btn_custom_size' => array(
2275
+ 'type' => 'dimension',
2276
+ 'label' => __pl('btn_custom_size'),
2277
+ 'default' => '5,10',
2278
+ 'screen' => 1,
2279
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[0]}}px; padding-left:{{val[1]}}px;'],
2280
+ 'req' => array(
2281
+ 'size' => 'pagelayer-btn-custom',
2282
+ '!hide_btn' => 'true'
2283
+ ),
2284
+ ),
2285
+ 'contect_btn_align' => array(
2286
+ 'type' => 'radio',
2287
+ 'label' => __pl('alignment'),
2288
+ 'screen' => 1,
2289
+ 'css' => ['{{element}} .pagelayer-contact-submit-holder' => 'text-align:{{val}}'],
2290
+ 'list' => array(
2291
+ 'left' => __pl('left'),
2292
+ 'center' => __pl('center'),
2293
+ 'right' => __pl('right'),
2294
+ ),
2295
+ 'req' => ['!hide_btn' => 'true'],
2296
+ ),
2297
+ 'btn_hover' => array(
2298
+ 'type' => 'radio',
2299
+ 'label' => __pl('state'),
2300
+ 'default' => '',
2301
+ //'no_val' => 1,// Dont set any value to element
2302
+ 'list' => array(
2303
+ '' => __pl('normal'),
2304
+ 'hover' => __pl('hover'),
2305
+ ),
2306
+ 'req' => array(
2307
+ 'type' => 'pagelayer-btn-custom',
2308
+ '!hide_btn' => 'true'
2309
+ ),
2310
+ ),
2311
+ 'btn_bg_color' => array(
2312
+ 'type' => 'color',
2313
+ 'label' => __pl('btn_bg_color_label'),
2314
+ 'default' => '#0986c0',
2315
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'background-color: {{val}};'],
2316
+ 'req' => array(
2317
+ 'type' => 'pagelayer-btn-custom',
2318
+ ),
2319
+ 'show' => array(
2320
+ 'btn_hover' => '',
2321
+ '!hide_btn' => 'true'
2322
+ ),
2323
+ ),
2324
+ 'btn_color' => array(
2325
+ 'type' => 'color',
2326
+ 'label' => __pl('btn_color_label'),
2327
+ 'default' => '#ffffff',
2328
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'color: {{val}};'],
2329
+ 'req' => array(
2330
+ 'type' => 'pagelayer-btn-custom',
2331
+ ),
2332
+ 'show' => array(
2333
+ 'btn_hover' => '',
2334
+ '!hide_btn' => 'true'
2335
+ ),
2336
+ ),
2337
+ 'btn_hover_delay' => array(
2338
+ 'type' => 'spinner',
2339
+ 'label' => __pl('btn_hover_delay_label'),
2340
+ 'desc' => __pl('btn_hover_delay_desc'),
2341
+ 'min' => 0,
2342
+ 'step' => 100,
2343
+ 'max' => 5000,
2344
+ 'default' => 400,
2345
+ 'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
2346
+ 'show' => array(
2347
+ 'btn_hover' => 'hover',
2348
+ '!hide_btn' => 'true'
2349
+ ),
2350
+ ),
2351
+ 'btn_bg_color_hover' => array(
2352
+ 'type' => 'color',
2353
+ 'label' => __pl('btn_bg_color_hover_label'),
2354
+ 'default' => '',
2355
+ 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'background-color: {{val}};'],
2356
+ 'req' => array(
2357
+ 'type' => 'pagelayer-btn-custom',
2358
+ ),
2359
+ 'show' => array(
2360
+ 'btn_hover' => 'hover',
2361
+ '!hide_btn' => 'true'
2362
+ ),
2363
+ ),
2364
+ 'btn_color_hover' => array(
2365
+ 'type' => 'color',
2366
+ 'label' => __pl('btn_color_hover_label'),
2367
+ 'default' => '',
2368
+ 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'color: {{val}};'],
2369
+ 'req' => array(
2370
+ 'type' => 'pagelayer-btn-custom',
2371
+ ),
2372
+ 'show' => array(
2373
+ 'btn_hover' => 'hover',
2374
+ '!hide_btn' => 'true'
2375
+ ),
2376
+ ),
2377
+ ],
2378
+ 'icon_style' => [
2379
+ 'icon' => array(
2380
+ 'type' => 'icon',
2381
+ 'label' => __pl('service_box_font_icon_label'),
2382
+ 'default' => '',
2383
+ ),
2384
+ 'icon_position' => array(
2385
+ 'type' => 'radio',
2386
+ 'label' => __pl('alignment'),
2387
+ 'default' => 'pagelayer-btn-icon-left',
2388
+ 'list' => array(
2389
+ 'pagelayer-btn-icon-left' => __pl('left'),
2390
+ 'pagelayer-btn-icon-right' => __pl('right')
2391
+ ),
2392
+ ),
2393
+ 'icon_spacing' => array(
2394
+ 'type' => 'slider',
2395
+ 'label' => __pl('icon_spacing'),
2396
+ 'min' => 1,
2397
+ 'step' => 1,
2398
+ 'max' => 100,
2399
+ 'default' => 5,
2400
+ 'screen' => 1,
2401
+ 'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'],
2402
+ 'req' => array(
2403
+ '!icon' => 'none'
2404
+ ),
2405
+ ),
2406
+ ],
2407
+ 'border_style' => [
2408
+ 'btn_bor_hover' => array(
2409
+ 'type' => 'radio',
2410
+ 'label' => __pl('state'),
2411
+ 'default' => '',
2412
+ //'no_val' => 1,// Dont set any value to element
2413
+ 'list' => array(
2414
+ '' => __pl('normal'),
2415
+ 'hover' => __pl('hover'),
2416
+ )
2417
+ ),
2418
+ 'btn_border_type' => array(
2419
+ 'type' => 'select',
2420
+ 'label' => __pl('border_type'),
2421
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-style: {{val}}'],
2422
+ 'list' => [
2423
+ '' => __pl('none'),
2424
+ 'solid' => __pl('solid'),
2425
+ 'double' => __pl('double'),
2426
+ 'dotted' => __pl('dotted'),
2427
+ 'dashed' => __pl('dashed'),
2428
+ 'groove' => __pl('groove'),
2429
+ ],
2430
+ 'show' => array(
2431
+ 'btn_bor_hover' => ''
2432
+ ),
2433
+ ),
2434
+ 'btn_border_color' => array(
2435
+ 'type' => 'color',
2436
+ 'label' => __pl('border_color_label'),
2437
+ 'default' => '#42414f',
2438
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-color: {{val}};'],
2439
+ 'req' => array(
2440
+ '!btn_border_type' => ''
2441
+ ),
2442
+ 'show' => array(
2443
+ 'btn_bor_hover' => ''
2444
+ ),
2445
+ ),
2446
+ 'btn_border_width' => array(
2447
+ 'type' => 'padding',
2448
+ 'label' => __pl('border_width'),
2449
+ 'screen' => 1,
2450
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
2451
+ 'req' => [
2452
+ '!btn_border_type' => ''
2453
+ ],
2454
+ 'show' => array(
2455
+ 'btn_bor_hover' => ''
2456
+ ),
2457
+ ),
2458
+ 'btn_border_radius' => array(
2459
+ 'type' => 'padding',
2460
+ 'label' => __pl('border_radius'),
2461
+ 'screen' => 1,
2462
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
2463
+ 'req' => array(
2464
+ '!btn_border_type' => ''
2465
+ ),
2466
+ 'show' => array(
2467
+ 'btn_bor_hover' => ''
2468
+ ),
2469
+ ),
2470
+ 'btn_border_type_hover' => array(
2471
+ 'type' => 'select',
2472
+ 'label' => __pl('border_type'),
2473
+ 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-style: {{val}}'],
2474
+ 'list' => [
2475
+ '' => __pl('none'),
2476
+ 'solid' => __pl('solid'),
2477
+ 'double' => __pl('double'),
2478
+ 'dotted' => __pl('dotted'),
2479
+ 'dashed' => __pl('dashed'),
2480
+ 'groove' => __pl('groove'),
2481
+ ],
2482
+ 'show' => array(
2483
+ 'btn_bor_hover' => 'hover'
2484
+ ),
2485
+ ),
2486
+ 'btn_border_color_hover' => array(
2487
+ 'type' => 'color',
2488
+ 'label' => __pl('border_color_hover_label'),
2489
+ 'default' => '#42414f',
2490
+ 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-color: {{val}};'],
2491
+ 'req' => array(
2492
+ '!btn_border_type_hover' => ''
2493
+ ),
2494
+ 'show' => array(
2495
+ 'btn_bor_hover' => 'hover'
2496
+ ),
2497
+ ),
2498
+ 'btn_border_width_hover' => array(
2499
+ 'type' => 'padding',
2500
+ 'label' => __pl('border_width_hover'),
2501
+ 'screen' => 1,
2502
+ 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
2503
+ 'req' => [
2504
+ '!btn_border_type_hover' => ''
2505
+ ],
2506
+ 'show' => array(
2507
+ 'btn_bor_hover' => 'hover'
2508
+ ),
2509
+ ),
2510
+ 'btn_border_radius_hover' => array(
2511
+ 'type' => 'padding',
2512
+ 'label' => __pl('border_radius_hover'),
2513
+ 'screen' => 1,
2514
+ 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
2515
+ 'req' => array(
2516
+ '!btn_border_type_hover' => ''
2517
+ ),
2518
+ 'show' => array(
2519
+ 'btn_bor_hover' => 'hover'
2520
+ ),
2521
+ ),
2522
+ ],
2523
+ 'mail_template' => array(
2524
+ 'contact_custom_templ' => array(
2525
+ 'type' => 'checkbox',
2526
+ 'label' => __pl('custom_templ'),
2527
+ ),
2528
+ 'templ_modal' => array(
2529
+ 'type' => 'modal',
2530
+ 'label' => __pl('create_mail_templ'),
2531
+ 'show_group' => 'contact_templ_modal',
2532
+ 'req' => ['contact_custom_templ' => 'true'],
2533
+ ),
2534
+ 'to_email' => array(
2535
+ 'type' => 'text',
2536
+ 'label' => __pl('to_email'),
2537
+ 'group' => 'contact_templ_modal',
2538
+ 'req' => ['contact_custom_templ' => 'true'],
2539
+ ),
2540
+ 'from_email' => array(
2541
+ 'type' => 'text',
2542
+ 'label' => __pl('from_email'),
2543
+ 'group' => 'contact_templ_modal',
2544
+ 'req' => ['contact_custom_templ' => 'true'],
2545
+ ),
2546
+ 'cont_subject' => array(
2547
+ 'type' => 'text',
2548
+ 'label' => __pl('subject'),
2549
+ 'group' => 'contact_templ_modal',
2550
+ 'req' => ['contact_custom_templ' => 'true'],
2551
+ ),
2552
+ 'cont_header' => array(
2553
+ 'type' => 'textarea',
2554
+ 'label' => __pl('additional_head'),
2555
+ 'group' => 'contact_templ_modal',
2556
+ 'req' => ['contact_custom_templ' => 'true'],
2557
+ ),
2558
+ 'cont_body' => array(
2559
+ 'type' => 'textarea',
2560
+ 'label' => __pl('message_body'),
2561
+ 'desc' => __pl('usr_field_desc'),
2562
+ 'rows' => 4,
2563
+ 'group' => 'contact_templ_modal',
2564
+ 'req' => ['contact_custom_templ' => 'true'],
2565
+ ),
2566
+ 'cont_use_html' => array(
2567
+ 'type' => 'checkbox',
2568
+ 'label' => __pl('use_html'),
2569
+ 'group' => 'contact_templ_modal',
2570
+ 'req' => ['contact_custom_templ' => 'true'],
2571
+ ),
2572
+ ),
2573
+ 'styles' => [
2574
+ 'label_style' => __pl('label_style'),
2575
+ 'input_style' => __pl('input_style'),
2576
+ 'radio_style' => __pl('radio_style'),
2577
+ 'form_style' => __pl('form_style'),
2578
+ 'button_style' => __pl('button_style'),
2579
+ 'icon_style' => __pl('icon_style'),
2580
+ 'border_style' => __pl('btn_border_style'),
2581
+ 'mail_template' => __pl('mail_template'),
2582
+ ]
2583
+ )
2584
+ );
2585
+
2586
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_contact_item', array(
2587
+ 'name' => __pl('contact_item'),
2588
+ 'group' => 'other',
2589
+ 'not_visible' => 1,
2590
+ 'html' => '{{fieldhtml}}',
2591
+ 'params' => array(
2592
+ 'label_name' => array(
2593
+ 'type' => 'text',
2594
+ 'label' => __pl('label_name'),
2595
+ 'default' => 'Input Label',
2596
+ 'edit' => '.pagelayer-form-label',
2597
+ ),
2598
+ 'field_type' => array(
2599
+ 'type' => 'select',
2600
+ 'label' => __pl('input_field_type'),
2601
+ 'default' => 'text',
2602
+ 'list' => array(
2603
+ 'text' => __pl('text'),
2604
+ 'email' => __pl('e-mail'),
2605
+ 'number' => __pl('number'),
2606
+ 'tel' => __pl('telephone'),
2607
+ 'checkbox' => __pl('checkbox'),
2608
+ 'radio' => __pl('radio'),
2609
+ 'textarea' => __pl('textarea'),
2610
+ 'select' => __pl('select'),
2611
+ 'date' => __pl('date'),
2612
+ 'file' => __pl('file'),
2613
+ ),
2614
+ ),
2615
+ 'values' => array(
2616
+ 'type' => 'textarea',
2617
+ 'label' => __pl('values'),
2618
+ 'default' => "One\nTwo",
2619
+ 'show' => array(
2620
+ 'field_type' => ['select', 'checkbox', 'radio']
2621
+ ),
2622
+ ),
2623
+ 'textarea_rows' => array(
2624
+ 'type' => 'spinner',
2625
+ 'label' => __pl('row'),
2626
+ 'default' => 6,
2627
+ 'min' => 1,
2628
+ 'max' => 100,
2629
+ 'step' => 1,
2630
+ 'screen' => 1,
2631
+ 'req' => array(
2632
+ 'field_type' => ['textarea']
2633
+ ),
2634
+ ),
2635
+ 'accept_file' => array(
2636
+ 'type' => 'text',
2637
+ 'label' => __pl('accept_file'),
2638
+ 'req' => array(
2639
+ 'field_type' => ['file']
2640
+ ),
2641
+ ),
2642
+ 'required' => array(
2643
+ 'type' => 'checkbox',
2644
+ 'label' => __pl('required_label'),
2645
+ 'default' => '',
2646
+ ),
2647
+ 'label_as_holder' => array(
2648
+ 'type' => 'checkbox',
2649
+ 'label' => __pl('show_label_as_placeholder'),
2650
+ 'default' => '',
2651
+ ),
2652
+ 'placeholder' => array(
2653
+ 'type' => 'text',
2654
+ 'label' => __pl('placeholder'),
2655
+ 'default' => '',
2656
+ 'show' => [
2657
+ '!label_as_holder' => 'true',
2658
+ ],
2659
+ ),
2660
+ 'field_name' => array(
2661
+ 'type' => 'text',
2662
+ 'label' => __pl('input_field_name'),
2663
+ 'default' => 'Fieldname',
2664
+ ),
2665
+ 'field_width' => array(
2666
+ 'type' => 'slider',
2667
+ 'label' => __pl('width'),
2668
+ 'default' => 100,
2669
+ 'min' => 1,
2670
+ 'max' => 100,
2671
+ 'step' => 1,
2672
+ 'screen' => 1,
2673
+ 'css' => ['{{wrap}}' => 'width:{{val}}%'],
2674
+ ),
2675
+ 'field_display' => array(
2676
+ 'type' => 'select',
2677
+ 'label' => __pl('display'),
2678
+ 'screen' => 1,
2679
+ 'default' => '',
2680
+ 'css' => ['{{wrap}}' => 'display:{{val}}'],
2681
+ 'list' => array(
2682
+ '' => __pl('full'),
2683
+ 'inline-block' => __pl('inline'),
2684
+ ),
2685
+ ),
2686
+ 'space_between' => array(
2687
+ 'type' => 'padding',
2688
+ 'label' => __pl('space_between'),
2689
+ 'default' => ',,10,',
2690
+ 'screen' => 1,
2691
+ 'css' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;',
2692
+ ),
2693
+ )
2694
+ )
2695
+ );
2696
+
2697
+
2698
+
2699
+ // Post Title
2700
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_title', array(
2701
+ 'name' => __pl('post_title'),
2702
+ 'group' => 'other',
2703
+ 'html' => '<div class="pagelayer-post-title">
2704
+ <a class="pagelayer-ele-link" if-ext="{{link}}" href="{{{link}}}">
2705
+ <span if="{{before}}">{{before}} </span>'.pagelayer_get_the_title(false).'<span if="{{after}}"> {{after}}</span>
2706
+ </a>
2707
+ </div>',
2708
+ 'params' => array(
2709
+ 'before' => array(
2710
+ 'type' => 'text',
2711
+ 'label' => __pl('before'),
2712
+ ),
2713
+ 'after' => array(
2714
+ 'type' => 'text',
2715
+ 'label' => __pl('after'),
2716
+ ),
2717
+ 'link' => array(
2718
+ 'type' => 'link',
2719
+ 'label' => __pl('image_link_label'),
2720
+ ),
2721
+ 'title_color' => array(
2722
+ 'type' => 'color',
2723
+ 'label' => __pl('color'),
2724
+ 'default' => '#0986c0',
2725
+ 'css' => [
2726
+ '{{element}} .pagelayer-post-title'=> 'color:{{val}}',
2727
+ '{{element}} .pagelayer-post-title *'=> 'color:{{val}}'
2728
+ ],
2729
+ ),
2730
+ 'typo' => array(
2731
+ 'type' => 'typography',
2732
+ 'label' => __pl('typography'),
2733
+ 'default' => ',35,,700,,,solid,,,,',
2734
+ 'screen' => 1,
2735
+ 'css' => ['{{element}} .pagelayer-post-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
2736
+ ),
2737
+ 'shadow' => array(
2738
+ 'type' => 'shadow',
2739
+ 'label' => __pl('shadow'),
2740
+ 'css' => ['{{element}} .pagelayer-post-title' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
2741
+ ),
2742
+ 'align' => array(
2743
+ 'type' => 'radio',
2744
+ 'label' => __pl('alignment'),
2745
+ 'list' => [
2746
+ 'left' => __pl('left'),
2747
+ 'center' => __pl('center'),
2748
+ 'right' => __pl('right'),
2749
+ ],
2750
+ 'css' => 'text-align: {{val}}',
2751
+ ),
2752
+ )
2753
+ )
2754
+ );
2755
+
2756
+ // Post Content
2757
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_content', array(
2758
+ 'name' => __pl('post_content'),
2759
+ 'group' => 'other',
2760
+ 'html' => '<div class="entry-content pagelayer-post-excerpt">{{post_content}}</div>',
2761
+ 'params' => array(
2762
+ 'color' => array(
2763
+ 'type' => 'color',
2764
+ 'label' => __pl('color'),
2765
+ 'css' => ['{{element}} .pagelayer-post-excerpt' => 'color:{{val}}'],
2766
+ ),
2767
+ 'typo' => array(
2768
+ 'type' => 'typography',
2769
+ 'label' => __pl('typography'),
2770
+ 'css' => ['{{element}} .pagelayer-post-excerpt' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
2771
+ ),
2772
+ 'align' => array(
2773
+ 'type' => 'radio',
2774
+ 'label' => __pl('alignment'),
2775
+ 'list' => [
2776
+ 'left' => __pl('left'),
2777
+ 'center' => __pl('center'),
2778
+ 'right' => __pl('right'),
2779
+ ],
2780
+ 'css' => 'text-align: {{val}}'
2781
+ ),
2782
+ )
2783
+ )
2784
+ );
2785
+
2786
+ // Post Excerpt
2787
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_excerpt', array(
2788
+ 'name' => __pl('post_excerpt'),
2789
+ 'group' => 'other',
2790
+ 'html' => '<div class="pagelayer-post-excerpt'.( pagelayer_is_live_template() ? ' pagelayer-empty-widget' : '' ).'">'.( pagelayer_is_live_template() ? '' : get_the_excerpt()).'</div>',
2791
+ 'params' => array(
2792
+ 'color' => array(
2793
+ 'type' => 'color',
2794
+ 'label' => __pl('color'),
2795
+ 'css' => ['{{element}} .pagelayer-post-excerpt' => 'color:{{val}}'],
2796
+ ),
2797
+ 'typo' => array(
2798
+ 'type' => 'typography',
2799
+ 'label' => __pl('typography'),
2800
+ 'screen' => 1,
2801
+ 'css' => ['{{element}} .pagelayer-post-excerpt' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
2802
+ ),
2803
+ 'align' => array(
2804
+ 'type' => 'radio',
2805
+ 'label' => __pl('alignment'),
2806
+ 'list' => [
2807
+ 'left' => __pl('left'),
2808
+ 'center' => __pl('center'),
2809
+ 'right' => __pl('right'),
2810
+ ],
2811
+ 'css' => 'text-align: {{val}}',
2812
+ ),
2813
+ )
2814
+ )
2815
+ );
2816
+
2817
+ // Featured Image
2818
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_featured_img', array(
2819
+ 'name' => __pl('featured_img'),
2820
+ 'group' => 'other',
2821
+ 'html' => '<a if-ext="{{link_type}}" href="{{func_link}}" class="pagelayer-ele-link" pagelayer-image-link-type="{{link_type}}">
2822
+ <div class="pagelayer-featured-img">{{img_html}}</div>
2823
+ </a>
2824
+ <p if="{{caption}}" class="pagelayer-featured-caption">{{caption}}</p>',
2825
+ 'params' => array(
2826
+ 'img' => array(
2827
+ 'label' => __pl('fallback_img'),
2828
+ 'type' => 'image',
2829
+ ),
2830
+ 'size' => array(
2831
+ 'label' => __pl('obj_image_size_label'),
2832
+ 'type' => 'select',
2833
+ 'default' => 'full',
2834
+ 'list' => array(
2835
+ 'full' => __pl('full'),
2836
+ 'large' => __pl('large'),
2837
+ 'medium' => __pl('medium'),
2838
+ 'thumbnail' => __pl('thumbnail'),
2839
+ 'custom' => __pl('custom')
2840
+ )
2841
+ ),
2842
+ 'custom_size' => array(
2843
+ 'type' => 'dimension',
2844
+ 'units' => ['px', '%'],
2845
+ 'screen' => 1,
2846
+ 'label' => __pl('image_custom_size_label'),
2847
+ 'css' => ['{{element}} img' => 'width: {{val[0]}}; height: {{val[1]}};'],
2848
+ 'req' => ['size' => 'custom']
2849
+ ),
2850
+ 'align' => array(
2851
+ 'type' => 'radio',
2852
+ 'label' => __pl('alignment'),
2853
+ 'screen' => 1,
2854
+ 'list' => [
2855
+ 'left' => __pl('left'),
2856
+ 'center' => __pl('center'),
2857
+ 'right' => __pl('right'),
2858
+ ],
2859
+ 'css' => 'text-align: {{val}}',
2860
+ ),
2861
+ 'img_filter' => array(
2862
+ 'type' => 'filter',
2863
+ 'label' => __pl('filter'),
2864
+ 'default' => '0,100,100,0,0,100,100',
2865
+ 'css' => ['{{element}} img' => 'filter: blur({{val[0]}}px) brightness({{val[1]}}%) contrast({{val[2]}}%) grayscale({{val[3]}}%) hue-rotate({{val[4]}}deg) opacity({{val[5]}}%) saturate({{val[6]}}%)'],
2866
+ ),
2867
+ 'img_shadow' => array(
2868
+ 'type' => 'box_shadow',
2869
+ 'label' => __pl('shadow'),
2870
+ 'css' => ['{{element}} img' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
2871
+ ),
2872
+ ),
2873
+ 'link_settings' => [
2874
+ 'link_type' => array(
2875
+ 'label' => __pl('image_link_label'),
2876
+ 'type' => 'select',
2877
+ 'default' => '',
2878
+ 'list' => array(
2879
+ '' => __pl('none'),
2880
+ 'custom_url' => __pl('custom_url'),
2881
+ 'media_file' => __pl('media_file'),
2882
+ 'lightbox' => __pl('lightbox')
2883
+ )
2884
+ ),
2885
+ 'link' => array(
2886
+ 'label' => __pl('image_link_label'),
2887
+ 'desc' => __pl('image_link_desc'),
2888
+ 'type' => 'link',
2889
+ 'req' => array(
2890
+ 'link_type' => 'custom_url'
2891
+ )
2892
+ ),
2893
+ 'rel' => array(
2894
+ 'label' => __pl('image_rel_label'),
2895
+ 'type' => 'text',
2896
+ 'default' => '',
2897
+ 'addAttr' => ['{{element}} a' => 'rel="{{rel}}"'],
2898
+ 'req' => array(
2899
+ 'link_type' => 'media_file'
2900
+ )
2901
+ ),
2902
+ 'target' => array(
2903
+ 'label' => __pl('open_link_in_new_window'),
2904
+ 'type' => 'checkbox',
2905
+ 'addAttr' => ['{{element}} a' => 'target="_blank"'],
2906
+ 'req' => array(
2907
+ 'link_type' => ['custom_url', 'media_file']
2908
+ )
2909
+ ),
2910
+ ],
2911
+ 'caption_style' => [
2912
+ 'caption' => array(
2913
+ 'label' => __pl('gallery_grid_caption_label'),
2914
+ 'desc' => __pl('gallery_grid_caption_desc'),
2915
+ 'type' => 'text',
2916
+ ),
2917
+ 'caption_color' => array(
2918
+ 'label' => __pl('Caption Color'),
2919
+ 'type' => 'color',
2920
+ 'default' => '#0986c0',
2921
+ 'css' => ['{{element}} .pagelayer-featured-caption' => 'color: {{val}}'],
2922
+ ),
2923
+ 'caption_typo' => array(
2924
+ 'type' => 'typography',
2925
+ 'label' => __pl('typography'),
2926
+ 'screen' => 1,
2927
+ 'css' => ['{{element}} .pagelayer-featured-caption' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
2928
+ ),
2929
+ ],
2930
+ 'border_style' => [
2931
+ 'f_border_hover' => array(
2932
+ 'type' => 'radio',
2933
+ 'label' => '',
2934
+ 'default' => '',
2935
+ 'list' => array(
2936
+ '' => __pl('normal'),
2937
+ 'hover' => __pl('hover'),
2938
+ ),
2939
+ ),
2940
+ 'img_border_type' => array(
2941
+ 'type' => 'select',
2942
+ 'label' => __pl('border_type'),
2943
+ 'css' => ['{{element}} img' => 'border-style: {{val}}'],
2944
+ 'list' => [
2945
+ '' => __pl('none'),
2946
+ 'solid' => __pl('solid'),
2947
+ 'double' => __pl('double'),
2948
+ 'dotted' => __pl('dotted'),
2949
+ 'dashed' => __pl('dashed'),
2950
+ 'groove' => __pl('groove'),
2951
+ ],
2952
+ 'show' => array(
2953
+ 'f_border_hover' => ''
2954
+ ),
2955
+ ),
2956
+ 'img_border_color' => array(
2957
+ 'type' => 'color',
2958
+ 'label' => __pl('service_box_icon_border_color_label'),
2959
+ 'default' => '#0986c0',
2960
+ 'css' => ['{{element}} img' => 'border-color: {{val}};'],
2961
+ 'req' => array(
2962
+ '!img_border_type' => ''
2963
+ ),
2964
+ 'show' => array(
2965
+ 'f_border_hover' => ''
2966
+ ),
2967
+ ),
2968
+ 'img_border_width' => array(
2969
+ 'type' => 'padding',
2970
+ 'label' => __pl('border_width'),
2971
+ 'screen' => 1,
2972
+ 'css' => ['{{element}} img' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
2973
+ 'req' => [
2974
+ '!img_border_type' => ''
2975
+ ],
2976
+ 'show' => array(
2977
+ 'f_border_hover' => ''
2978
+ ),
2979
+ ),
2980
+ 'img_border_radius' => array(
2981
+ 'type' => 'padding',
2982
+ 'label' => __pl('border_radius'),
2983
+ 'screen' => 1,
2984
+ 'css' => ['{{element}} img' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
2985
+ 'show' => array(
2986
+ 'f_border_hover' => ''
2987
+ ),
2988
+ ),
2989
+ 'img_hover_delay' => array(
2990
+ 'type' => 'spinner',
2991
+ 'label' => __pl('service_btn_hover_delay'),
2992
+ 'min' => 0,
2993
+ 'step' => 100,
2994
+ 'max' => 2000,
2995
+ 'default' => 400,
2996
+ 'css' => ['{{element}} img' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
2997
+ 'show' => ['f_border_hover' => 'hover'],
2998
+ ),
2999
+ 'img_border_type_hover' => array(
3000
+ 'type' => 'select',
3001
+ 'label' => __pl('border_type'),
3002
+ 'css' => ['{{element}} img:hover' => 'border-style: {{val}}'],
3003
+ 'list' => [
3004
+ '' => __pl('none'),
3005
+ 'solid' => __pl('solid'),
3006
+ 'double' => __pl('double'),
3007
+ 'dotted' => __pl('dotted'),
3008
+ 'dashed' => __pl('dashed'),
3009
+ 'groove' => __pl('groove'),
3010
+ ],
3011
+ 'show' => array(
3012
+ 'f_border_hover' => 'hover'
3013
+ ),
3014
+ ),
3015
+ 'img_border_color_hover' => array(
3016
+ 'type' => 'color',
3017
+ 'label' => __pl('service_box_icon_border_color_label'),
3018
+ 'css' => ['{{element}} img:hover' => 'border-color: {{val}};'],
3019
+ 'default' => '#0986c0',
3020
+ 'req' => array(
3021
+ '!img_border_type_hover' => ''
3022
+ ),
3023
+ 'show' => array(
3024
+ 'f_border_hover' => 'hover'
3025
+ ),
3026
+ ),
3027
+ 'img_border_width_hover' => array(
3028
+ 'type' => 'padding',
3029
+ 'label' => __pl('border_width'),
3030
+ 'screen' => 1,
3031
+ 'css' => ['{{element}} img:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
3032
+ 'req' => [
3033
+ '!img_border_type_hover' => ''
3034
+ ],
3035
+ 'show' => array(
3036
+ 'f_border_hover' => 'hover'
3037
+ ),
3038
+ ),
3039
+ 'img_border_radius_hover' => array(
3040
+ 'type' => 'padding',
3041
+ 'label' => __pl('border_radius'),
3042
+ 'screen' => 1,
3043
+ 'css' => ['{{element}} img:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
3044
+ 'show' => array(
3045
+ 'f_border_hover' => 'hover'
3046
+ ),
3047
+ ),
3048
+ ],
3049
+ 'styles' => [
3050
+ 'caption_style' => __pl('caption_style'),
3051
+ 'link_settings' => __pl('link_settings'),
3052
+ 'border_style' => __pl('border_style')
3053
+ ]
3054
+ )
3055
+ );
3056
+
3057
+ // Post info
3058
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_info', array(
3059
+ 'name' => __pl('post_info'),
3060
+ 'group' => 'other',
3061
+ 'has_group' => [
3062
+ 'section' => 'params',
3063
+ 'prop' => 'elements',
3064
+ ],
3065
+ 'holder' => '.pagelayer-post-info-container',
3066
+ 'html' => '<div class="pagelayer-post-info-container pagelayer-post-info-{{layout}}"></div>',
3067
+ 'params' => array(
3068
+ 'elements' => array(
3069
+ 'type' => 'group',
3070
+ 'label' => __pl('post_info_list'),
3071
+ 'sc' => PAGELAYER_SC_PREFIX.'_post_info_list',
3072
+ 'item_label' => array(
3073
+ 'default' => __pl('info_list'),
3074
+ 'param' => 'type',
3075
+ ),
3076
+ 'count' => 1,
3077
+ 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('post_info'))),
3078
+ ),
3079
+ 'layout' => array(
3080
+ 'type' => 'select',
3081
+ 'label' => __pl('layout'),
3082
+ 'default' => 'vertical',
3083
+ 'list' => array(
3084
+ 'horizontal' => __pl('horizontal'),
3085
+ 'vertical' => __pl('vertical'),
3086
+ ),
3087
+ ),
3088
+ 'space_between' => array(
3089
+ 'type' => 'slider',
3090
+ 'label' => __pl('list_spacing_label'),
3091
+ 'default' => 15,
3092
+ 'screen' => 1,
3093
+ 'css' => ['{{element}} .pagelayer-post-info-vertical .pagelayer-post-info-list-container' => 'margin-right:{{val}}px',
3094
+ '{{element}} .pagelayer-post-info-horizontal .pagelayer-post-info-list-container' => 'margin-bottom:{{val}}px']
3095
+ ),
3096
+ 'align' => array(
3097
+ 'type' => 'radio',
3098
+ 'label' => __pl('alignment'),
3099
+ 'default' => 'left',
3100
+ 'screen' => 1,
3101
+ 'list' => array(
3102
+ 'left' => __pl('left'),
3103
+ 'center' => __pl('center'),
3104
+ 'right' => __pl('right'),
3105
+ ),
3106
+ 'css' => ['{{element}} .pagelayer-post-info-container' => 'text-align:{{val}}']
3107
+ ),
3108
+ ),
3109
+ 'icon_style' => array(
3110
+ 'icon_size' => array(
3111
+ 'type' => 'slider',
3112
+ 'label' => __pl('font_size'),
3113
+ 'units' => ['px', 'em', '%'],
3114
+ 'screen' => 1,
3115
+ 'css' => ['{{element}} .pagelayer-post-info-icon span' => 'font-size:{{val}}'],
3116
+ ),
3117
+ 'icon_colors' => array(
3118
+ 'type' => 'radio',
3119
+ 'label' => __pl('color'),
3120
+ 'default' => 'normal',
3121
+ 'list' => array(
3122
+ 'normal' => __pl('normal'),
3123
+ 'hover' => __pl('hover'),
3124
+ ),
3125
+ ),
3126
+ 'icon_color_normal' => array(
3127
+ 'type' => 'color',
3128
+ 'label' => __pl('color'),
3129
+ 'css' => ['{{element}} .pagelayer-post-info-icon span' => 'color:{{val}}'],
3130
+ 'show' => ['icon_colors' => 'normal']
3131
+ ),
3132
+ 'icon_color_hover' => array(
3133
+ 'type' => 'color',
3134
+ 'label' => __pl('color'),
3135
+ 'css' => ['{{element}} .pagelayer-post-info-icon span:hover' => 'color:{{val}}'],
3136
+ 'show' => ['icon_colors' => 'hover']
3137
+ ),
3138
+ ),
3139
+ 'text_style' => array(
3140
+ 'input_typo' => array(
3141
+ 'type' => 'typography',
3142
+ 'label' => __pl('typography'),
3143
+ 'screen' => 1,
3144
+ 'css' => ['{{element}} .pagelayer-post-info-list-container a' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
3145
+ ),
3146
+ 'text_colors' => array(
3147
+ 'type' => 'radio',
3148
+ 'label' => __pl('color'),
3149
+ 'default' => 'normal',
3150
+ 'list' => array(
3151
+ 'normal' => __pl('normal'),
3152
+ 'hover' => __pl('hover'),
3153
+ ),
3154
+ ),
3155
+ 'text_color_normal' => array(
3156
+ 'type' => 'color',
3157
+ 'label' => __pl('color'),
3158
+ 'css' => ['{{element}} .pagelayer-post-info-label' => 'color:{{val}}',
3159
+ '{{element}} .pagelayer-post-info-label a' => 'color:{{val}}'],
3160
+ 'show' => ['text_colors' => 'normal']
3161
+ ),
3162
+ 'text_color_hover' => array(
3163
+ 'type' => 'color',
3164
+ 'label' => __pl('color'),
3165
+ 'css' => ['{{element}} .pagelayer-post-info-label:hover' => 'color:{{val}}',
3166
+ '{{element}} .pagelayer-post-info-label:hover a' => 'color:{{val}}'],
3167
+ 'show' => ['text_colors' => 'hover']
3168
+ ),
3169
+ ),
3170
+ 'styles' => array(
3171
+ 'icon_style' => __pl('icon_style'),
3172
+ 'text_style' => __pl('text_style'),
3173
+ ),
3174
+ )
3175
+ );
3176
+
3177
+ // Post info list
3178
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_info_list', array(
3179
+ 'name' => __pl('post_info_list'),
3180
+ 'group' => 'other',
3181
+ 'html' => '<div class="pagelayer-post-info-list-container">
3182
+ <a if-ext="{{info_link}}" href="{{link}}" class="pagelayer-post-info-list-link">
3183
+ <span class="pagelayer-post-info-icon">
3184
+ <span if="{{info_icon_on}}" class="{{info_icon}}"></span>
3185
+ <img class="pagelayer-img" if="{{info_avatar}}" src="{{avatar_url}}"></span>
3186
+ </span>
3187
+ <span if="{{info_before}}" class="pagelayer-post-info-before">{{info_before}}</span>
3188
+ <span class="pagelayer-post-info-label">{{post_info_content}}</span>
3189
+ </a>
3190
+ </div>',
3191
+ 'not_visible' => 1,
3192
+ 'params' => array(
3193
+ 'type' => array(
3194
+ 'type' => 'select',
3195
+ 'label' => __pl('type'),
3196
+ 'default' => 'author',
3197
+ 'list' => array(
3198
+ 'author' => __pl('author'),
3199
+ 'date' => __pl('date'),
3200
+ 'time' => __pl('time'),
3201
+ 'comments' => __pl('comments'),
3202
+ 'terms' => __pl('Terms'),
3203
+ 'custom' => __pl('custom'),
3204
+ ),
3205
+ ),
3206
+ 'date_format' => array(
3207
+ 'type' => 'select',
3208
+ 'label' => __pl('date_format'),
3209
+ 'default' => 'default',
3210
+ 'list' => array(
3211
+ 'default' => __pl('default'),
3212
+ '0' => 'F j, Y',
3213
+ '1' => 'Y-m-d',
3214
+ '2' => 'm/d/Y',
3215
+ '3' => 'd/m/Y',
3216
+ 'custom' => __pl('custom'),
3217
+ ),
3218
+ 'req' => ['type' => 'date'],
3219
+ ),
3220
+ 'date_format_custom' => array(
3221
+ 'type' => 'text',
3222
+ 'label' => __pl('custom_date_format'),
3223
+ 'default' => 's - M -Y',
3224
+ 'req' => ['date_format' => 'custom', 'type' => 'date'],
3225
+ ),
3226
+ 'time_format' => array(
3227
+ 'type' => 'select',
3228
+ 'label' => __pl('time_format'),
3229
+ 'default' => 'default',
3230
+ 'list' => array(
3231
+ 'default' => __pl('default'),
3232
+ '0' => 'g:i a',
3233
+ '1' => 'g:i A',
3234
+ '2' => 'H:i',
3235
+ 'custom' => __pl('custom'),
3236
+ ),
3237
+ 'req' => ['type' => 'time'],
3238
+ ),
3239
+ 'time_format_custom' => array(
3240
+ 'type' => 'text',
3241
+ 'label' => __pl('custom_time_format'),
3242
+ 'default' => 'g:i a',
3243
+ 'req' => ['time_format' => 'custom', 'type' => 'time'],
3244
+ ),
3245
+ 'taxonomy' => array(
3246
+ 'type' => 'select',
3247
+ 'label' => __pl('Post_taxonomy'),
3248
+ 'default' => 'category',
3249
+ 'list' => pagelayer_tax_list(),
3250
+ 'req' => ['type' => 'terms'],
3251
+ ),
3252
+ 'type_custom' => array(
3253
+ 'type' => 'text',
3254
+ 'label' => __pl('custom'),
3255
+ 'req' => ['type' => 'custom'],
3256
+ ),
3257
+ 'info_before' => array(
3258
+ 'type' => 'text',
3259
+ 'label' => __pl('before'),
3260
+ ),
3261
+ 'info_avatar' => array(
3262
+ 'type' => 'checkbox',
3263
+ 'label' => __pl('avatar_style'),
3264
+ 'req' => ['type' => 'author'],
3265
+ ),
3266
+ 'info_avatar_size' => array(
3267
+ 'type' => 'slider',
3268
+ 'label' => __pl('obj_size_label'),
3269
+ 'default' => 22,
3270
+ 'screen' => 1,
3271
+ 'css' => ['{{element}} .pagelayer-post-info-icon img' => 'height:{{val}}px;width:{{val}}px;border-radius:50%;display:inline-block;'],
3272
+ 'req' => ['info_avatar' => 'true', 'type' => 'author'],
3273
+ ),
3274
+ 'info_link' => array(
3275
+ 'type' => 'checkbox',
3276
+ 'label' => __pl('link_settings'),
3277
+ 'default' => true,
3278
+ 'req' => ['!type' => 'time'],
3279
+ ),
3280
+ 'info_custom_link' => array(
3281
+ 'type' => 'text',
3282
+ 'label' => __pl('custom_link'),
3283
+ 'default' => '#',
3284
+ 'req' => ['type' => 'custom'],
3285
+ ),
3286
+ 'info_icon_on' => array(
3287
+ 'type' => 'checkbox',
3288
+ 'label' => __pl('icon'),
3289
+ 'default' => true,
3290
+ 'req' => ['info_avatar' => ''],
3291
+ ),
3292
+ 'info_icon' => array(
3293
+ 'type' => 'icon',
3294
+ 'label' => __pl('icon_list'),
3295
+ 'default' => 'fas fa-user-circle',
3296
+ 'req' => ['info_icon_on' => 'true', 'info_avatar' => ''],
3297
+ ),
3298
+ ),
3299
+ )
3300
+ );
3301
+
3302
+ // Post navigation
3303
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_nav', array(
3304
+ 'name' => __pl('post_nav'),
3305
+ 'group' => 'other',
3306
+ 'html' => '<div class="pagelayer-post-nav-container">
3307
+ <div class="pagelayer-prev-post">
3308
+ {{prev_link}}
3309
+ </div>
3310
+ <div class="pagelayer-post-nav-separator"></div>
3311
+ <div class="pagelayer-next-post">
3312
+ {{next_link}}
3313
+ </div>
3314
+ </div>',
3315
+ 'params' => array(
3316
+ 'in_same_term' => array(
3317
+ 'type' => 'checkbox',
3318
+ 'label' => __pl('in_same_term'),
3319
+ 'default' => '',
3320
+ ),
3321
+ 'taxonomies' => array(
3322
+ 'type' => 'select',
3323
+ 'label' => __pl('Post_taxonomy'),
3324
+ 'default' => 'category',
3325
+ 'list' => pagelayer_tax_list(),
3326
+ 'req' => ['in_same_term' => 'true'],
3327
+ ),
3328
+ ),
3329
+ 'nav_label' => array(
3330
+ 'lables' => array(
3331
+ 'type' => 'checkbox',
3332
+ 'label' => __pl('label'),
3333
+ 'default' => 'true',
3334
+ ),
3335
+ 'prev_label' => array(
3336
+ 'type' => 'text',
3337
+ 'label' => __pl('prev_label'),
3338
+ 'default' => __pl('Previous'),
3339
+ 'req' => ['lables' => 'true'],
3340
+ ),
3341
+ 'next_label' => array(
3342
+ 'type' => 'text',
3343
+ 'label' => __pl('next_label'),
3344
+ 'default' => __pl('Next'),
3345
+ 'req' => ['lables' => 'true'],
3346
+ ),
3347
+ 'label_colors' => array(
3348
+ 'type' => 'radio',
3349
+ 'label' => __pl('color'),
3350
+ 'default' => 'normal',
3351
+ 'list' => array(
3352
+ 'normal' => __pl('normal'),
3353
+ 'hover' => __pl('hover'),
3354
+ ),
3355
+ 'req' => ['lables' => 'true'],
3356
+ ),
3357
+ 'label_color' => array(
3358
+ 'type' => 'color',
3359
+ 'label' => __pl('color'),
3360
+ 'css' => ['{{element}} .pagelayer-post-nav-link' => 'color:{{val}}'],
3361
+ 'show' => ['label_colors' => 'normal'],
3362
+ 'req' => ['lables' => 'true'],
3363
+ ),
3364
+ 'label_hover_color' => array(
3365
+ 'type' => 'color',
3366
+ 'label' => __pl('color'),
3367
+ 'css' => ['{{element}} .pagelayer-post-nav-link:hover' => 'color:{{val}}'],
3368
+ 'show' => ['label_colors' => 'hover'],
3369
+ 'req' => ['lables' => 'true'],
3370
+ ),
3371
+ 'label_typo' => array(
3372
+ 'type' => 'typography',
3373
+ 'label' => __pl('typography'),
3374
+ 'screen' => 1,
3375
+ 'css' => ['{{element}} .pagelayer-post-nav-link' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
3376
+ 'req' => ['lables' => 'true'],
3377
+ ),
3378
+
3379
+ ),
3380
+ 'nav_title' => array(
3381
+ 'post_title' => array(
3382
+ 'type' => 'checkbox',
3383
+ 'label' => __pl('post_title'),
3384
+ 'default' => 'true',
3385
+ ),
3386
+ 'title_colors' => array(
3387
+ 'type' => 'radio',
3388
+ 'label' => __pl('color'),
3389
+ 'default' => 'normal',
3390
+ 'list' => array(
3391
+ 'normal' => __pl('normal'),
3392
+ 'hover' => __pl('hover'),
3393
+ ),
3394
+ 'req' => ['post_title' => 'true'],
3395
+ ),
3396
+ 'title_color' => array(
3397
+ 'type' => 'color',
3398
+ 'label' => __pl('color'),
3399
+ 'css' => ['{{element}} .pagelayer-post-nav-title' => 'color:{{val}}'],
3400
+ 'show' => ['title_colors' => 'normal'],
3401
+ 'req' => ['post_title' => 'true'],
3402
+ ),
3403
+ 'title_hover_color' => array(
3404
+ 'type' => 'color',
3405
+ 'label' => __pl('color'),
3406
+ 'css' => ['{{element}} .pagelayer-post-nav-title:hover' => 'color:{{val}}'],
3407
+ 'show' => ['title_colors' => 'hover'],
3408
+ 'req' => ['post_title' => 'true'],
3409
+ ),
3410
+ 'title_typo' => array(
3411
+ 'type' => 'typography',
3412
+ 'label' => __pl('typography'),
3413
+ 'screen' => 1,
3414
+ 'css' => ['{{element}} .pagelayer-post-nav-title' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
3415
+ 'req' => ['post_title' => 'true'],
3416
+ ),
3417
+ ),
3418
+ 'nav_icon' => array(
3419
+ 'arrows' => array(
3420
+ 'type' => 'checkbox',
3421
+ 'label' => __pl('arrows'),
3422
+ 'default' => 'true',
3423
+ ),
3424
+ 'arrows_list' => array(
3425
+ 'type' => 'select',
3426
+ 'label' => __pl('arrows_list'),
3427
+ 'default' => 'angle',
3428
+ 'list' => array(
3429
+ 'angle' => __pl('angle'),
3430
+ 'arrow' => __pl('Arrow'),
3431
+ 'angle-double' => __pl('angle_double'),
3432
+ 'arrow-circle' => __pl('arrow_circle'),
3433
+ 'arrow-circle-o' => __pl('arrow_circle_O'),
3434
+ 'chevron' => __pl('chevron'),
3435
+ 'chevron-circle' => __pl('chevron_circle'),
3436
+ 'caret' => __pl('caret'),
3437
+ 'long-arrow' => __pl('long_arrow'),
3438
+ ),
3439
+ 'req' => ['arrows' => 'true'],
3440
+ ),
3441
+ 'icon_colors' => array(
3442
+ 'type' => 'radio',
3443
+ 'label' => __pl('color'),
3444
+ 'default' => 'normal',
3445
+ 'list' => array(
3446
+ 'normal' => __pl('normal'),
3447
+ 'hover' => __pl('hover'),
3448
+ ),
3449
+ 'req' => ['arrows' => 'true'],
3450
+ ),
3451
+ 'icon_color' => array(
3452
+ 'type' => 'color',
3453
+ 'label' => __pl('color'),
3454
+ 'css' => ['{{element}} .pagelayer-post-nav-icon' => 'color:{{val}}'],
3455
+ 'show' => ['icon_colors' => 'normal'],
3456
+ 'req' => ['arrows' => 'true'],
3457
+ ),
3458
+ 'icon_hover_color' => array(
3459
+ 'type' => 'color',
3460
+ 'label' => __pl('color'),
3461
+ 'css' => ['{{element}} .pagelayer-post-nav-icon:hover' => 'color:{{val}}'],
3462
+ 'show' => ['icon_colors' => 'hover'],
3463
+ 'req' => ['arrows' => 'true'],
3464
+ ),
3465
+ 'icon_size' => array(
3466
+ 'type' => 'slider',
3467
+ 'label' => __pl('font_size'),
3468
+ 'screen' => 1,
3469
+ 'css' => ['{{element}} .pagelayer-post-nav-icon' => 'font-size:{{val}}px'],
3470
+ 'req' => ['arrows' => 'true'],
3471
+ ),
3472
+ ),
3473
+ 'nav_sep' => array(
3474
+ 'sep_color' => array(
3475
+ 'type' => 'color',
3476
+ 'label' => __pl('color'),
3477
+ 'default' => '#bdbdbd',
3478
+ 'css' => ['{{element}} .pagelayer-post-nav-separator' => 'background-color:{{val}}'],
3479
+ ),
3480
+ 'sep_rotate' => array(
3481
+ 'type' => 'slider',
3482
+ 'label' => __pl('Rotate'),
3483
+ 'default' => 20,
3484
+ 'max' => 360,
3485
+ 'screen' => 1,
3486
+ 'css' => ['{{element}} .pagelayer-post-nav-separator' => 'transform: rotate({{val}}deg);'],
3487
+ ),
3488
+ 'sep_width' => array(
3489
+ 'type' => 'slider',
3490
+ 'label' => __pl('width'),
3491
+ 'default' => 1,
3492
+ 'max' => 10,
3493
+ 'screen' => 1,
3494
+ 'css' => ['{{element}} .pagelayer-post-nav-separator' => 'width: {{val}}px;'],
3495
+ ),
3496
+
3497
+ ),
3498
+ 'styles' => array(
3499
+ 'nav_label' => __pl('label_style'),
3500
+ 'nav_title' => __pl('title_style'),
3501
+ 'nav_icon' => __pl('icon_style'),
3502
+ 'nav_sep' => __pl('separator_style'),
3503
+ ),
3504
+ )
3505
+ );
3506
+
3507
+ // Post comment
3508
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_post_comment', array(
3509
+ 'name' => __pl('post_commment'),
3510
+ 'group' => 'other',
3511
+ 'html' => '<div class="pagelayer-post-comment-container">
3512
+ {{post_comment}}
3513
+ </div>',
3514
+ 'params' => array(
3515
+ 'comment_skin' => array(
3516
+ 'type' => 'select',
3517
+ 'label' => __pl('skin'),
3518
+ 'default' => 'theme_comment',
3519
+ 'list' => array(
3520
+ 'theme_comment' => __pl('theme_tamplate'),
3521
+ ),
3522
+ ),
3523
+ 'post_type' => array(
3524
+ 'type' => 'radio',
3525
+ 'label' => __pl('post_type'),
3526
+ 'default' => 'current',
3527
+ 'list' => array(
3528
+ 'current' => __pl('current'),
3529
+ 'custom' => __pl('custom'),
3530
+ ),
3531
+ ),
3532
+ 'post_id' => array(
3533
+ 'type' => 'select',
3534
+ 'label' => __pl('post_list'),
3535
+ 'default' => '',
3536
+ 'list' => pagelayer_get_posts(),
3537
+ 'req' => ['post_type' => 'custom']
3538
+ ),
3539
+ ),
3540
+ )
3541
+ );
3542
+
3543
+ // Flipbox
3544
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_flipbox', array(
3545
+ 'name' => __pl('Flipbox'),
3546
+ 'group' => 'other',
3547
+ 'html' => '<div class="pagelayer-flipbox-container pagelayer-flipbox-{{back_section}} pagelayer-flipbox-{{flip_animation}} pagelayer-flipbox-direction-{{animation_direction}}">
3548
+ <div class="pagelayer-flipbox-overlay"></div>
3549
+ <div class="pagelayer-flipbox-main">
3550
+ <div class="pagelayer-flipbox-flipper">
3551
+ <div class="pagelayer-flipbox-box pagelayer-flipbox-front" style="background-image:url({{front_background}});">
3552
+ <div class="pagelayer-flipbox-box-overlay">
3553
+ <div class="pagelayer-flipbox-box-inner">
3554
+ <div class="pagelayer-flipbox-content">
3555
+ <div class="pagelayer-icon-holder pagelayer-service-icon pagelayer-service-{{icon_view}}">
3556
+ <i class="{{icon}} {{bg_shape}} {{icon_size}} pagelayer-animation-{{anim_hover}}"></i>
3557
+ </div>
3558
+ <div if="{{heading_image}}" class="pagelayer-flipbox-image">
3559
+ <img class="pagelayer-img pagelayer-animation-{{anim_hover}}" src="{{func_image}}">
3560
+ </div>
3561
+ <h2 if={{front_heading}}>{{front_heading}}</h2>
3562
+ <p if={{front_content}}>{{front_content}}</p>
3563
+ </div>
3564
+ </div>
3565
+ </div>
3566
+ </div>
3567
+ <div class="pagelayer-flipbox-box pagelayer-flipbox-back" style="">
3568
+ <div class="pagelayer-flipbox-box-overlay">
3569
+ <div class="pagelayer-flipbox-box-inner">
3570
+ <div class="pagelayer-flipbox-content">
3571
+ <h2 if={{back_heading}}>{{back_heading}}</h2>
3572
+ <p if={{back_content}}>{{back_content}}</p>
3573
+ <a if="{{display_button}}" href="{{{back_button_url}}}" class="pagelayer-service-btn {{back_button_type}} pagelayer-ele-link pagelayer-button {{back_button_size}}">{{back_button_text}}</a>
3574
+ </div>
3575
+ </div>
3576
+ </div>
3577
+ </div>
3578
+ </div>
3579
+ </div>
3580
+ </div>',
3581
+ 'params' => array(
3582
+ 'height' => array(
3583
+ 'type' => 'slider',
3584
+ 'label' => __pl('block_height'),
3585
+ 'min' => 100,
3586
+ 'max' => 1200,
3587
+ 'default' => 500,
3588
+ 'screen' => 1,
3589
+ 'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'height: {{val}}px;'],
3590
+ ),
3591
+ 'content_width' => array(
3592
+ 'type' => 'slider',
3593
+ 'label' => __pl('content_width'),
3594
+ 'min' => 50,
3595
+ 'max' => 100,
3596
+ 'default' => 100,
3597
+ 'screen' => 1,
3598
+ 'css' => ['{{element}} .pagelayer-flipbox-content' => 'width: {{val}}%; margin:0 auto;'],
3599
+ ),
3600
+ 'flip_animation' => array(
3601
+ 'type' => 'select',
3602
+ 'label' => __pl('animation_styles'),
3603
+ 'default' => 'flip',
3604
+ 'list' => array(
3605
+ 'flip' => __pl('flip'),
3606
+ 'slide' => __pl('slide'),
3607
+ 'push' => __pl('push'),
3608
+ 'zoom-in' => __pl('zoom-in'),
3609
+ 'zoom-out' => __pl('zoom-out'),
3610
+ 'fade' => __pl('fade'),
3611
+ ),
3612
+ ),
3613
+ 'animation_direction' => array(
3614
+ 'type' => 'select',
3615
+ 'label' => __pl('animation_direction'),
3616
+ 'default' => 'right',
3617
+ 'list' => array(
3618
+ 'up' => __pl('top'),
3619
+ 'down' => __pl('bottom'),
3620
+ 'right' => __pl('right'),
3621
+ 'left' => __pl('left'),
3622
+ ),
3623
+ 'req' => array(
3624
+ '!flip_animation' => ['fade','zoom-out','zoom-in'],
3625
+ ),
3626
+ ),
3627
+ 'animation_duration' => array(
3628
+ 'type' => 'spinner',
3629
+ 'label' => __pl('animation_duration'),
3630
+ 'default' => 600,
3631
+ 'min' => 100,
3632
+ 'step' => 50,
3633
+ 'max' => 2000,
3634
+ 'css' => ['{{element}} .pagelayer-flipbox-box' => 'transition: all {{val}}ms ease-in-out !important;
3635
+ -webkit-transition: all {{val}}ms ease-in-out !important;']
3636
+ ),
3637
+ 'flip_border_type' => array(
3638
+ 'type' => 'select',
3639
+ 'label' => __pl('border_type'),
3640
+ 'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'border-style: {{val}}'],
3641
+ 'list' => array(
3642
+ '' => __pl('none'),
3643
+ 'solid' => __pl('solid'),
3644
+ 'double' => __pl('double'),
3645
+ 'dotted' => __pl('dotted'),
3646
+ 'dashed' => __pl('dashed'),
3647
+ 'groove' => __pl('groove'),
3648
+ ),
3649
+ ),
3650
+ 'flip_border_color' => array(
3651
+ 'type' => 'color',
3652
+ 'label' => __pl('border_color'),
3653
+ 'default' => '#0986c0',
3654
+ 'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'border-color: {{val}};'],
3655
+ 'req' => array(
3656
+ '!flip_border_type' => ''
3657
+ ),
3658
+ ),
3659
+ 'flip_border_width' => array(
3660
+ 'type' => 'padding',
3661
+ 'label' => __pl('border_width'),
3662
+ 'screen' => 1,
3663
+ 'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
3664
+ 'req' => array(
3665
+ '!flip_border_type' => ''
3666
+ ),
3667
+ ),
3668
+ 'flip_border_radius' => array(
3669
+ 'type' => 'padding',
3670
+ 'label' => __pl('border_radius'),
3671
+ 'units' => ['px', '%'],
3672
+ 'screen' => 1,
3673
+ 'css' => ['{{element}} .pagelayer-flipbox-flipper' => 'border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}; -webkit-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}; -moz-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};'],
3674
+ ),
3675
+ ),
3676
+ 'front_section' => array(
3677
+ 'heading_element' => array(
3678
+ 'type' => 'radio',
3679
+ 'label' => __pl('visual_element'),
3680
+ 'default' => '',
3681
+ 'list' => array(
3682
+ '' => __pl('none'),
3683
+ 'icon' => __pl('icon'),
3684
+ 'image' => __pl('image'),
3685
+ ),
3686
+ ),
3687
+ 'icon' => array(
3688
+ 'type' => 'icon',
3689
+ 'label' => __pl('icon'),
3690
+ 'default' => 'fas fa-star',
3691
+ 'req' => array(
3692
+ 'heading_element'=>'icon',
3693
+ ),
3694
+ ),
3695
+ 'icon_view' => array(
3696
+ 'type' => 'select',
3697
+ 'label' => __pl('iconbox_icon_view'),
3698
+ 'default' => 'default',
3699
+ 'list' =>array(
3700
+ 'default' => __pl('default'),
3701
+ 'stacked' => __pl('Stacked'),
3702
+ 'framed' => __pl('Framed'),
3703
+ ),
3704
+ 'req' => array(
3705
+ 'heading_element'=>'icon',
3706
+ ),
3707
+ ),
3708
+ 'bg_shape' => array(
3709
+ 'type' => 'select',
3710
+ 'label' => __pl('icon_background_shape'),
3711
+ 'default' => 'pagelayer-icon-circle',
3712
+ 'list' => array(
3713
+ '' => __pl('icon_shape_none'),
3714
+ 'pagelayer-icon-circle' => __pl('icon_shape_circle'),
3715
+ 'pagelayer-icon-square' => __pl('icon_shape_square'),
3716
+ 'pagelayer-icon-rounded' => __pl('icon_shape_rounded')
3717
+ ),
3718
+ 'req' => array(
3719
+ 'heading_element'=>'icon',
3720
+ '!icon_view' => 'default',
3721
+ ),
3722
+ ),
3723
+ 'icon_color_style' => array(
3724
+ 'type' => 'color',
3725
+ 'label' => __pl('color'),
3726
+ 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'position: relative; color: {{val}};',
3727
+ '{{element}} pagelayer-flipbox-content i:before' => 'position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);'],
3728
+ 'default' => '#ffffff',
3729
+ 'req' => array(
3730
+ 'heading_element'=>'icon',
3731
+ ),
3732
+ ),
3733
+ 'bg_color' => array(
3734
+ 'type' => 'color',
3735
+ 'label' => __pl('icon_background_color'),
3736
+ 'default' => '#ef9229',
3737
+ 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'background-color: {{val}};'],
3738
+ 'req' => array(
3739
+ 'heading_element'=>'icon',
3740
+ '!bg_shape' => '',
3741
+ 'icon_view' => 'stacked',
3742
+ ),
3743
+ 'show' => array(
3744
+ 'icon_hover' => ''
3745
+ ),
3746
+ ),
3747
+ 'icon_background_size' => array(
3748
+ 'type' => 'spinner',
3749
+ 'label' => __pl('icon_background_size'),
3750
+ 'default' => 20,
3751
+ 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'padding: calc(0.5em + {{val}}px);'],
3752
+ 'min' => 1,
3753
+ 'max' => 100,
3754
+ 'step' => 1,
3755
+ 'screen' => 1,
3756
+ 'req' => array(
3757
+ 'heading_element'=>'icon',
3758
+ ),
3759
+ ),
3760
+ 'icon_size' => array(
3761
+ 'type' => 'select',
3762
+ 'label' => __pl('size_label'),
3763
+ 'default' => 'pagelayer-icon-large',
3764
+ 'list' => array(
3765
+ 'pagelayer-icon-mini' => __pl('mini'),
3766
+ 'pagelayer-icon-small' => __pl('small'),
3767
+ 'pagelayer-icon-large' => __pl('large'),
3768
+ 'pagelayer-icon-extra-large' => __pl('extra_large'),
3769
+ 'pagelayer-icon-double-large' => __pl('double_large'),
3770
+ 'pagelayer-icon-custom' => __pl('custom'),
3771
+ ),
3772
+ 'req' => array(
3773
+ 'heading_element'=>'icon',
3774
+ ),
3775
+ ),
3776
+ 'icon_size_custom' => array(
3777
+ 'type' => 'spinner',
3778
+ 'label' => __pl('icon_custom_size'),
3779
+ 'min' => 1,
3780
+ 'step' => 1,
3781
+ 'max' => 100,
3782
+ 'default' => 26,
3783
+ 'screen' => 1,
3784
+ 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'font-size: {{val}}px'],
3785
+ 'req' => array(
3786
+ 'icon_size' => 'pagelayer-icon-custom'
3787
+ ),
3788
+ ),
3789
+ 'icon_rotate' => array(
3790
+ 'type' => 'spinner',
3791
+ 'label' => __pl('icon_rotate'),
3792
+ 'default' => 0,
3793
+ 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'transform: rotate({{val}}deg)'],
3794
+ 'min' => 0,
3795
+ 'max' => 360,
3796
+ 'step' => 1,
3797
+ 'screen' => 1,
3798
+ 'req' => array(
3799
+ 'heading_element'=>'icon',
3800
+ ),
3801
+ ),
3802
+ 'icon_border_type' => array(
3803
+ 'type' => 'select',
3804
+ 'label' => __pl('border_type'),
3805
+ 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'border-style: {{val}}'],
3806
+ 'list' => [
3807
+ '' => __pl('none'),
3808
+ 'solid' => __pl('solid'),
3809
+ 'double' => __pl('double'),
3810
+ 'dotted' => __pl('dotted'),
3811
+ 'dashed' => __pl('dashed'),
3812
+ 'groove' => __pl('groove'),
3813
+ ],
3814
+ 'req' => array(
3815
+ 'heading_element'=>'icon',
3816
+ ),
3817
+ ),
3818
+ 'icon_border_color' => array(
3819
+ 'type' => 'color',
3820
+ 'label' => __pl('icon_border_color'),
3821
+ 'default' => '#0986c0',
3822
+ 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'border-color: {{val}};'],
3823
+ 'req' => array(
3824
+ '!icon_border_type' => ''
3825
+ ),
3826
+ ),
3827
+ 'icon_border_width' => array(
3828
+ 'type' => 'padding',
3829
+ 'label' => __pl('border_width'),
3830
+ 'screen' => 1,
3831
+ 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
3832
+ 'req' => [
3833
+ '!icon_border_type' => ''
3834
+ ],
3835
+ ),
3836
+ 'icon_border_radius' => array(
3837
+ 'type' => 'padding',
3838
+ 'label' => __pl('border_radius'),
3839
+ 'screen' => 1,
3840
+ 'css' => ['{{element}} .pagelayer-flipbox-content i' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
3841
+ 'req' => array(
3842
+ '!icon_border_type' => ''
3843
+ ),
3844
+ ),
3845
+ 'heading_image'=> array(
3846
+ 'type' => 'image',
3847
+ 'label' => __pl('image'),
3848
+ 'default' => '',
3849
+ 'req' => array(
3850
+ 'heading_element' => 'image',
3851
+ ),
3852
+ ),
3853
+ 'heading_image_size' => array(
3854
+ 'type' => 'radio',
3855
+ 'label' => __pl('image_size'),
3856
+ 'default' => 'full',
3857
+ 'list' => array(
3858
+ 'full' => __pl('full'),
3859
+ 'thumbnail' => __pl('thumbnail'),
3860
+ 'custom' => __pl('custom'),
3861
+ ),
3862
+ 'req' => array(
3863
+ 'heading_element' => 'image',
3864
+ ),
3865
+ ),
3866
+ 'heading_image_custom_size' => array(
3867
+ 'type' => 'slider',
3868
+ 'label' => __pl('img_custom_size'),
3869
+ 'min' => 0,
3870
+ 'max' => 100,
3871
+ 'screen' => 1,
3872
+ 'default' => 50,
3873
+ 'css' => ['{{element}} .pagelayer-flipbox-image img' => 'width:{{val}}%; height: auto;'],
3874
+ 'req' => array(
3875
+ 'heading_element' => 'image',
3876
+ 'heading_image_size' => 'custom',
3877
+ )
3878
+ ),
3879
+ 'heading_image_spacing' => array(
3880
+ 'type' => 'slider',
3881
+ 'label' => __pl('spacing'),
3882
+ 'min' => 0,
3883
+ 'max' => 100,
3884
+ 'screen' => 1,
3885
+ 'default' => 20,
3886
+ 'css' => ['{{element}} .pagelayer-flipbox-image img' => 'margin-bottom:{{val}}px;'],
3887
+ 'req' => array(
3888
+ 'heading_element' => 'image',
3889
+ )
3890
+ ),
3891
+ 'front-text-align' => array(
3892
+ 'type' => 'radio',
3893
+ 'label' => __pl('alignment'),
3894
+ 'default' => 'center',
3895
+ 'screen' => 1,
3896
+ 'list' => array(
3897
+ 'left' => __pl('left'),
3898
+ 'center' => __pl('center'),
3899
+ 'right' => __pl('right')
3900
+ ),
3901
+ 'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-box-overlay' => 'text-align:{{val}} !important;'],
3902
+ ),
3903
+ 'front_heading' => array(
3904
+ 'type' => 'text',
3905
+ 'default' => 'Flipbox Heading',
3906
+ 'label' => __pl('heading_name'),
3907
+ ),
3908
+ 'heading_color' => array(
3909
+ 'type' => 'color',
3910
+ 'label' => __pl('color'),
3911
+ 'default' => '#ffffff',
3912
+ 'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-content h2' => 'color:{{val}};'],
3913
+ ),
3914
+ 'heading_typography' => array(
3915
+ 'type' => 'typography',
3916
+ 'label' => __pl('typography'),
3917
+ 'default' => 'Poppins,40,,500,,,solid,,,,',
3918
+ 'screen' => 1,
3919
+ 'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-content h2' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
3920
+ ),
3921
+ 'front_content' => array(
3922
+ 'type' => 'textarea',
3923
+ 'label' => __pl('content'),
3924
+ 'default' => 'Flipbox content comes here such as It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.',
3925
+ ),
3926
+ 'front_content_color' => array(
3927
+ 'type' => 'color',
3928
+ 'label' => __pl('text_color'),
3929
+ 'default' => '#ffffff',
3930
+ 'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-content p' => 'color:{{val}};'],
3931
+ ),
3932
+ 'front_content_typography' => array(
3933
+ 'type' => 'typography',
3934
+ 'label' => __pl('text_style'),
3935
+ 'default' => ',16,,500,,,solid,,,,',
3936
+ 'screen' => 1,
3937
+ 'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-content p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
3938
+ ),
3939
+ 'front_shadow' => array(
3940
+ 'type' => 'box_shadow',
3941
+ 'label' => __pl('shadow'),
3942
+ 'css' => ['{{element}} .pagelayer-flipbox-front' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
3943
+ ),
3944
+ 'front_background_type' => array(
3945
+ 'type' => 'radio',
3946
+ 'label' => __pl('background_type'),
3947
+ 'default' => '',
3948
+ 'list' => array(
3949
+ 'color' => __pl('color'),
3950
+ 'gradient' => __pl('gradient'),
3951
+ 'image' => __pl('image'),
3952
+ ),
3953
+ ),
3954
+ 'front_background_color' => array(
3955
+ 'type' => 'color',
3956
+ 'label' => __pl('bg_color'),
3957
+ 'default' => '',
3958
+ 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-color:{{val}};'],
3959
+ 'req' => array(
3960
+ 'front_background_type' => 'color',
3961
+ ),
3962
+ ),
3963
+ 'front_background_gradient' => array(
3964
+ 'type' => 'gradient',
3965
+ 'label' => __pl('background_gradient'),
3966
+ 'default' => '150,#f12711,40,#f5af19,60,#f5af19,100',
3967
+ 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%) !important;'],
3968
+ 'req' => array(
3969
+ 'front_background_type' => 'gradient',
3970
+ ),
3971
+ ),
3972
+ 'front_background_image' => array(
3973
+ 'type' => 'image',
3974
+ 'label' => __pl('image'),
3975
+ 'default' => PAGELAYER_URL.'/images/default-image.png',
3976
+ 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-image:url("{{{front_background_image-url}}}") !important;'],
3977
+ 'req' => array(
3978
+ 'front_background_type' => 'image',
3979
+ ),
3980
+ ),
3981
+ 'front_background_attachment' => array(
3982
+ 'type' => 'select',
3983
+ 'label' => __pl('background_attachment'),
3984
+ 'list' => array(
3985
+ '' => __pl('default'),
3986
+ 'scroll' => __pl('scroll'),
3987
+ 'fixed' => __pl('fixed')
3988
+ ),
3989
+ 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-attachment: {{val}}'],
3990
+ 'req' => array(
3991
+ 'front_background_type' => 'image',
3992
+ ),
3993
+ ),
3994
+ 'front_background_posx' => array(
3995
+ 'type' => 'select',
3996
+ 'label' => __pl('ele_bg_posx'),
3997
+ 'list' => array(
3998
+ '' => __pl('default'),
3999
+ 'center' => __pl('center'),
4000
+ 'left' => __pl('left'),
4001
+ 'right' => __pl('right')
4002
+ ),
4003
+ 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-position-x: {{val}};'],
4004
+ 'req' => array(
4005
+ 'front_background_type' => 'image',
4006
+ ),
4007
+ ),
4008
+ 'front_background_posy' => array(
4009
+ 'type' => 'select',
4010
+ 'label' => __pl('ele_bg_posy'),
4011
+ 'list' => array(
4012
+ '' => __pl('default'),
4013
+ 'center' => __pl('center'),
4014
+ 'top' => __pl('top'),
4015
+ 'bottom' => __pl('bottom')
4016
+ ),
4017
+ 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-position-y: {{val}};'],
4018
+ 'req' => array(
4019
+ 'front_background_type' => 'image',
4020
+ ),
4021
+ ),
4022
+ 'front_background_repeat' => array(
4023
+ 'type' => 'select',
4024
+ 'label' => __pl('repeat'),
4025
+ 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-repeat: {{val}};'],
4026
+ 'list' => array(
4027
+ '' => __pl('default'),
4028
+ 'repeat' => __pl('repeat'),
4029
+ 'no-repeat' => __pl('no-repeat'),
4030
+ 'repeat-x' => __pl('repeat-x'),
4031
+ 'repeat-y' => __pl('repeat-y'),
4032
+ ),
4033
+ 'req' => array(
4034
+ 'front_background_type' => 'image',
4035
+ ),
4036
+ ),
4037
+ 'front_background_size' => array(
4038
+ 'type' => 'select',
4039
+ 'label' => __pl('ele_bg_size'),
4040
+ 'css' => ['{{element}} .pagelayer-flipbox-front' => 'background-size: {{val}};'],
4041
+ 'list' => array(
4042
+ '' => __pl('default'),
4043
+ 'cover' => __pl('cover'),
4044
+ 'contain' => __pl('contain')
4045
+ ),
4046
+ 'req' => array(
4047
+ 'front_background_type' => 'image',
4048
+ ),
4049
+ ),
4050
+ 'front_section_padding' => array(
4051
+ 'type' => 'padding',
4052
+ 'label' => __pl('padding'),
4053
+ 'screen' => 1,
4054
+ 'default' => '100,100,100,100',
4055
+ 'css' => ['{{element}} .pagelayer-flipbox-front .pagelayer-flipbox-box-overlay' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
4056
+ ),
4057
+ ),
4058
+ 'back_section' => array(
4059
+ 'back_section' => array(
4060
+ 'type' => 'checkbox',
4061
+ 'label' => __pl('back_side'),
4062
+ ),
4063
+ 'back-text-align' => array(
4064
+ 'type' => 'radio',
4065
+ 'label' => __pl('alignment'),
4066
+ 'default' => 'center',
4067
+ 'screen' => 1,
4068
+ 'list' => array(
4069
+ 'left' => __pl('left'),
4070
+ 'center' => __pl('center'),
4071
+ 'right' => __pl('right')
4072
+ ),
4073
+ 'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-box-overlay' => 'text-align:{{val}} !important;'],
4074
+ ),
4075
+ 'back_heading' => array(
4076
+ 'type' => 'text',
4077
+ 'label' => __pl('title'),
4078
+ 'default' => 'Flipbox Back Heading',
4079
+ ),
4080
+ 'back_heading_color' => array(
4081
+ 'type' => 'color',
4082
+ 'label' => __pl('color'),
4083
+ 'default' => '#000000',
4084
+ 'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-content h2' => 'color:{{val}};'],
4085
+ ),
4086
+ 'back_heading_typography' => array(
4087
+ 'type' => 'typography',
4088
+ 'label' => __pl('typography'),
4089
+ 'default' => 'Poppins,40,,500,,,solid,,,,',
4090
+ 'screen' => 1,
4091
+ 'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-content h2' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
4092
+ ),
4093
+ 'back_content' => array(
4094
+ 'type' => 'textarea',
4095
+ 'label' => __pl('content'),
4096
+ 'default' => 'Flipbox content comes here such as It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.',
4097
+ ),
4098
+ 'back_content_color' => array(
4099
+ 'type' => 'color',
4100
+ 'label' => __pl('text_color'),
4101
+ 'default' => '#3c3f40',
4102
+ 'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-content p' => 'color:{{val}};'],
4103
+ ),
4104
+ 'back_content_typography' => array(
4105
+ 'type' => 'typography',
4106
+ 'label' => __pl('text_style'),
4107
+ 'default' => ',16,,500,,,solid,,,,',
4108
+ 'screen' => 1,
4109
+ 'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-content p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
4110
+ ),
4111
+ 'back_shadow' => array(
4112
+ 'type' => 'box_shadow',
4113
+ 'label' => __pl('shadow'),
4114
+ 'css' => ['{{element}} .pagelayer-flipbox-back' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
4115
+ ),
4116
+ 'display_button' => array(
4117
+ 'type' => 'checkbox',
4118
+ 'label' => __pl('button'),
4119
+ ),
4120
+ 'back_button_url' => array(
4121
+ 'type' => 'link',
4122
+ 'label' => __pl('btn_url_label'),
4123
+ 'req' => array(
4124
+ '!display_button' => '',
4125
+ ),
4126
+ ),
4127
+ 'back_button_text' => array(
4128
+ 'type' => 'text',
4129
+ 'label' => __pl('button_text_label'),
4130
+ 'default' => 'Click Here!',
4131
+ 'req' => array(
4132
+ '!display_button' => '',
4133
+ ),
4134
+ ),
4135
+ 'back_button_typography' => array(
4136
+ 'type' => 'typography',
4137
+ 'label' => __pl('typography'),
4138
+ 'default' => ',20,,500,,,solid,,,,',
4139
+ 'screen' => 1,
4140
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
4141
+ 'req' => array(
4142
+ '!display_button' => '',
4143
+ ),
4144
+ ),
4145
+ 'back_button_type' => array(
4146
+ 'type' => 'select',
4147
+ 'label' => __pl('type'),
4148
+ 'default' => 'pagelayer-btn-default',
4149
+ 'list' => array(
4150
+ 'pagelayer-btn-default' => __pl('btn_type_default'),
4151
+ 'pagelayer-btn-primary' => __pl('btn_type_primary'),
4152
+ 'pagelayer-btn-secondary' => __pl('btn_type_secondary'),
4153
+ 'pagelayer-btn-success' => __pl('btn_type_success'),
4154
+ 'pagelayer-btn-info' => __pl('btn_type_info'),
4155
+ 'pagelayer-btn-warning' => __pl('btn_type_warning'),
4156
+ 'pagelayer-btn-danger' => __pl('btn_type_danger'),
4157
+ 'pagelayer-btn-dark' => __pl('btn_type_dark'),
4158
+ 'pagelayer-btn-light' => __pl('btn_type_light'),
4159
+ 'pagelayer-btn-link' => __pl('btn_type_link'),
4160
+ 'pagelayer-btn-custom' => __pl('btn_type_custom')
4161
+ ),
4162
+ 'req' => array(
4163
+ '!display_button' => '',
4164
+ ),
4165
+ ),
4166
+ 'back_button_size' => array(
4167
+ 'type' => 'select',
4168
+ 'label' => __pl('button_size'),
4169
+ 'default' => 'pagelayer-btn-mini',
4170
+ 'list' => array(
4171
+ 'pagelayer-btn-mini' => __pl('mini'),
4172
+ 'pagelayer-btn-small' => __pl('small'),
4173
+ 'pagelayer-btn-large' => __pl('large'),
4174
+ 'pagelayer-btn-extra-large' => __pl('extra_large'),
4175
+ 'pagelayer-btn-double-large' => __pl('double_large'),
4176
+ ),
4177
+ 'req' => array(
4178
+ '!display_button' => '',
4179
+ ),
4180
+ ),
4181
+ 'back_btn_spacing' => array(
4182
+ 'type' => 'slider',
4183
+ 'label' => __pl('spacing'),
4184
+ 'min' => 0,
4185
+ 'max' => 200,
4186
+ 'default' => 10,
4187
+ 'screen' => 1,
4188
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top: {{val}}px;'],
4189
+ 'req' => array(
4190
+ '!display_button' => '',
4191
+ ),
4192
+ ),
4193
+ 'back_btn_state' => array(
4194
+ 'type' => 'radio',
4195
+ 'label' => __pl('button_state'),
4196
+ 'default' => 'normal',
4197
+ 'list' => array(
4198
+ 'normal' => __pl('normal'),
4199
+ 'hover' => __pl('hover'),
4200
+ ),
4201
+ 'req' => array(
4202
+ 'back_button_type' => 'pagelayer-btn-custom',
4203
+ '!display_button' => '',
4204
+ ),
4205
+ ),
4206
+ 'back_button_color' => array(
4207
+ 'type' => 'color',
4208
+ 'label' => __pl('button_color'),
4209
+ 'default' => '#ffffff',
4210
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'color:{{val}};'],
4211
+ 'show' => array(
4212
+ 'back_btn_state' => 'normal',
4213
+ ),
4214
+ ),
4215
+ 'back_button_bg_color' => array(
4216
+ 'type' => 'color',
4217
+ 'label' => __pl('button_bg_color'),
4218
+ 'default' => '#0986c0',
4219
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'background-color:{{val}};'],
4220
+ 'show' => array(
4221
+ 'back_btn_state' => 'normal',
4222
+ ),
4223
+ ),
4224
+ 'back_btn_hover_delay' => array(
4225
+ 'type' => 'spinner',
4226
+ 'label' => __pl('btn_hover_delay'),
4227
+ 'min' => 0,
4228
+ 'step' => 100,
4229
+ 'max' => 5000,
4230
+ 'default' => 400,
4231
+ 'css' => ['{{element}} .pagelayer-service-btn' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
4232
+ 'show' => array(
4233
+ 'back_btn_state' => 'hover',
4234
+ ),
4235
+ ),
4236
+ 'back_button_color_hover' => array(
4237
+ 'type' => 'color',
4238
+ 'label' => __pl('button_color'),
4239
+ 'default' => '',
4240
+ 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'color:{{val}} !important;'],
4241
+ 'show' => array(
4242
+ 'back_btn_state' => 'hover',
4243
+ ),
4244
+ ),
4245
+ 'back_button_bg_color_hover' => array(
4246
+ 'type' => 'color',
4247
+ 'label' => __pl('button_bg_color'),
4248
+ 'default' => '',
4249
+ 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'background-color:{{val}} !important;'],
4250
+ 'show' => array(
4251
+ 'back_btn_state' => 'hover'
4252
+ ),
4253
+ ),
4254
+ 'back_background_type' => array(
4255
+ 'type' => 'radio',
4256
+ 'label' => __pl('background_type'),
4257
+ 'default' => '',
4258
+ 'list' => array(
4259
+ 'color' => __pl('color'),
4260
+ 'gradient' => __pl('gradient'),
4261
+ 'image' => __pl('image'),
4262
+ ),
4263
+ ),
4264
+ 'back_background_color' => array(
4265
+ 'type' => 'color',
4266
+ 'label' => __pl('bg_color'),
4267
+ 'default' => '',
4268
+ 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-color:{{val}};'],
4269
+ 'req' => array(
4270
+ 'back_background_type' => 'color',
4271
+ ),
4272
+ ),
4273
+ 'back_background_gradient' => array(
4274
+ 'type' => 'gradient',
4275
+ 'label' => __pl('background_gradient'),
4276
+ 'default' => '150,#1488CC,40,#2B32B2,60,#2B32B2,100',
4277
+ 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%) !important;'],
4278
+ 'req' => array(
4279
+ 'back_background_type' => 'gradient',
4280
+ ),
4281
+ ),
4282
+ 'back_background_image' => array(
4283
+ 'type' => 'image',
4284
+ 'label' => __pl('image'),
4285
+ 'default' => PAGELAYER_URL.'/images/default-image.png',
4286
+ 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-image:url("{{{back_background_image-url}}}") !important;'],
4287
+ 'req' => array(
4288
+ 'back_background_type' => 'image',
4289
+ ),
4290
+ ),
4291
+ 'back_background_attachment' => array(
4292
+ 'type' => 'select',
4293
+ 'label' => __pl('background_attachment'),
4294
+ 'list' => array(
4295
+ '' => __pl('default'),
4296
+ 'scroll' => __pl('scroll'),
4297
+ 'fixed' => __pl('fixed')
4298
+ ),
4299
+ 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-attachment: {{val}}'],
4300
+ 'req' => array(
4301
+ 'back_background_type' => 'image',
4302
+ ),
4303
+ ),
4304
+ 'back_background_posx' => array(
4305
+ 'type' => 'select',
4306
+ 'label' => __pl('ele_bg_posx'),
4307
+ 'list' => array(
4308
+ '' => __pl('default'),
4309
+ 'center' => __pl('center'),
4310
+ 'left' => __pl('left'),
4311
+ 'right' => __pl('right')
4312
+ ),
4313
+ 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-position-x: {{val}};'],
4314
+ 'req' => array(
4315
+ 'back_background_type' => 'image',
4316
+ ),
4317
+ ),
4318
+ 'back_background_posy' => array(
4319
+ 'type' => 'select',
4320
+ 'label' => __pl('ele_bg_posy'),
4321
+ 'list' => array(
4322
+ '' => __pl('default'),
4323
+ 'center' => __pl('center'),
4324
+ 'top' => __pl('top'),
4325
+ 'bottom' => __pl('bottom')
4326
+ ),
4327
+ 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-position-y: {{val}};'],
4328
+ 'req' => array(
4329
+ 'back_background_type' => 'image',
4330
+ ),
4331
+ ),
4332
+ 'back_background_repeat' => array(
4333
+ 'type' => 'select',
4334
+ 'label' => __pl('ele_bg_repeat'),
4335
+ 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-repeat: {{val}};'],
4336
+ 'list' => array(
4337
+ '' => __pl('default'),
4338
+ 'repeat' => __pl('repeat'),
4339
+ 'no-repeat' => __pl('no-repeat'),
4340
+ 'repeat-x' => __pl('repeat-x'),
4341
+ 'repeat-y' => __pl('repeat-y'),
4342
+ ),
4343
+ 'req' => array(
4344
+ 'back_background_type' => 'image',
4345
+ ),
4346
+ ),
4347
+ 'back_background_size' => array(
4348
+ 'type' => 'select',
4349
+ 'label' => __pl('ele_bg_size'),
4350
+ 'css' => ['{{element}} .pagelayer-flipbox-back' => 'background-size: {{val}};'],
4351
+ 'list' => array(
4352
+ '' => __pl('default'),
4353
+ 'cover' => __pl('cover'),
4354
+ 'contain' => __pl('contain')
4355
+ ),
4356
+ 'req' => array(
4357
+ 'back_background_type' => 'image',
4358
+ ),
4359
+ ),
4360
+ 'back_section_padding' => array(
4361
+ 'type' => 'padding',
4362
+ 'label' => __pl('padding'),
4363
+ 'default' => '100,100,100,100',
4364
+ 'screen' => 1,
4365
+ 'css' => ['{{element}} .pagelayer-flipbox-back .pagelayer-flipbox-box-overlay' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
4366
+ ),
4367
+ ),
4368
+ 'styles' => [
4369
+ 'front_section' => __pl('front_section'),
4370
+ 'back_section' => __pl('back_section'),
4371
+ ]
4372
+ )
4373
+ );
4374
+
4375
+ // Countdown Timer
4376
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_countdown', array(
4377
+ 'name' => __pl('countdown_timer'),
4378
+ 'group' => 'other',
4379
+ 'html' => '<div class="pagelayer-countdown-container" pagelayer-expiry-date={{date}} pagelayer-time-type={{time_zone}}>
4380
+ <div class="pagelayer-countdown-expired">
4381
+ <p if={{expired_text}}>{{expired_text}}</p>
4382
+ </div>
4383
+ <div class="pagelayer-countdown-counter">
4384
+ <div if={{days}} class="pagelayer-countdown-days pagelayer-countdown-item pagelayer-countdown-{{display}}">
4385
+ <div class="pagelayer-days-count pagelayer-countdown-count"></div>
4386
+ <div if={{show_label}} class="pagelayer-countdown-name">
4387
+ <span if={{days_label_text}}>{{days_label_text}}</span>
4388
+ </div>
4389
+ </div>
4390
+ <div if={{hours}} class="pagelayer-countdown-hours pagelayer-countdown-item pagelayer-countdown-{{display}}">
4391
+ <div class="pagelayer-hours-count pagelayer-countdown-count"></div>
4392
+ <div if={{show_label}} class="pagelayer-countdown-name">
4393
+ <span if={{hours_label_text}}>{{hours_label_text}}</span>
4394
+ </div>
4395
+ </div>
4396
+ <div if={{minutes}} class="pagelayer-countdown-minutes pagelayer-countdown-item pagelayer-countdown-{{display}}">
4397
+ <div class="pagelayer-minutes-count pagelayer-countdown-count"></div>
4398
+ <div if={{show_label}} class="pagelayer-countdown-name">
4399
+ <span if={{minutes_label_text}} >{{minutes_label_text}}</span>
4400
+ </div>
4401
+ </div>
4402
+ <div if={{seconds}} class="pagelayer-countdown-seconds pagelayer-countdown-item pagelayer-countdown-{{display}}">
4403
+ <div class="pagelayer-seconds-count pagelayer-countdown-count"></div>
4404
+ <div if={{show_label}} class="pagelayer-countdown-name">
4405
+ <span if={{seconds_label_text}} >{{seconds_label_text}}</span>
4406
+ </div>
4407
+ </div>
4408
+ </div>
4409
+ </div>',
4410
+ 'params' => array(
4411
+ 'date' => array(
4412
+ 'type' => 'datetime',
4413
+ 'displayMode' => 'datetime', // date | datetime (default)
4414
+ 'returnMode' => 'YYYY-MM-DD H:m:s', // mysql format uses here (default: Y-m-d H:i:s )
4415
+ 'label' => __pl('date_picker_label'),
4416
+ 'default' => '',
4417
+ ),
4418
+ 'time_zone' => array(
4419
+ 'type' => 'select',
4420
+ 'label' => __pl('time_zone'),
4421
+ 'default' => 'server',
4422
+ 'list' => array(
4423
+ 'server' => __pl('server_time'),
4424
+ 'local' => __pl('user_local')
4425
+ ),
4426
+ ),
4427
+ 'number_color' => array(
4428
+ 'type' => 'color',
4429
+ 'label' => __pl('color'),
4430
+ 'default' => '#ffffff',
4431
+ 'css' => ['{{element}} .pagelayer-countdown-count' => 'color:{{number_color}}'],
4432
+ ),
4433
+ 'number_style' => array(
4434
+ 'type' => 'typography',
4435
+ 'label' => __pl('typography'),
4436
+ 'default' => ',50,,500,,,solid,,,,',
4437
+ 'screen' => 1,
4438
+ 'css' => ['{{element}} .pagelayer-countdown-count' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
4439
+ ),
4440
+ 'number_spacing' => array(
4441
+ 'type' => 'padding',
4442
+ 'label' => __pl('spacing'),
4443
+ 'units' => ['px', 'em', '%'],
4444
+ 'screen' => 1,
4445
+ 'css' => ['{{element}} .pagelayer-countdown-count' => 'margin-top: {{val[0]}}; margin-right: {{val[1]}}; margin-bottom: {{val[2]}}; margin-left: {{val[3]}};'],
4446
+ ),
4447
+ 'days' => array(
4448
+ 'type' => 'checkbox',
4449
+ 'label' => __pl('days'),
4450
+ 'default' => 'true',
4451
+ ),
4452
+ 'hours' => array(
4453
+ 'type' => 'checkbox',
4454
+ 'label' => __pl('hours'),
4455
+ 'default' => 'true',
4456
+ ),
4457
+ 'minutes' => array(
4458
+ 'type' => 'checkbox',
4459
+ 'label' => __pl('minutes'),
4460
+ 'default' => 'true',
4461
+ ),
4462
+ 'seconds' => array(
4463
+ 'type' => 'checkbox',
4464
+ 'label' => __pl('seconds'),
4465
+ 'default' => 'true',
4466
+ ),
4467
+ ),
4468
+ 'expired_text' =>[
4469
+ 'display_expired_text' => array(
4470
+ 'type' => 'checkbox',
4471
+ 'label' => __pl('expired_text'),
4472
+ ),
4473
+ 'expired_text' => array(
4474
+ 'type' => 'text',
4475
+ 'label' => __pl('text'),
4476
+ 'default' => 'Countdown Timer Expired',
4477
+ ),
4478
+ 'expired_color' => array(
4479
+ 'type' => 'color',
4480
+ 'label' => __pl('text_color'),
4481
+ 'default' => '#000000',
4482
+ 'css' => ['{{element}} .pagelayer-countdown-expired p' => 'color:{{expired_color}};'],
4483
+ ),
4484
+ 'expired_style' => array(
4485
+ 'type' => 'typography',
4486
+ 'label' => __pl('expired_style'),
4487
+ 'default' => ',50,,500,,,solid,,,,',
4488
+ 'screen' => 1,
4489
+ 'css' => ['{{element}} .pagelayer-countdown-expired p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
4490
+ ),
4491
+ 'expired_padding' => array(
4492
+ 'type' => 'padding',
4493
+ 'label' => __pl('padding'),
4494
+ 'units' => ['px', '%'],
4495
+ 'screen' => 1,
4496
+ 'css' => ['{{element}} .pagelayer-countdown-expired' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};'],
4497
+ ),
4498
+ 'expired_align' => array(
4499
+ 'type' => 'radio',
4500
+ 'label' => __pl('alignment'),
4501
+ 'default' => 'center',
4502
+ 'screen' => 1,
4503
+ 'list' => array(
4504
+ 'left' => __pl('left'),
4505
+ 'center' => __pl('center'),
4506
+ 'right' => __pl('right'),
4507
+ ),
4508
+ 'css' => ['{{element}} .pagelayer-countdown-expired' => 'text-align:{{val}};'],
4509
+ ),
4510
+ ],
4511
+ 'text_style' =>[
4512
+ 'show_label' => array(
4513
+ 'type' => 'checkbox',
4514
+ 'label' => __pl('show_title'),
4515
+ 'default' => 'true',
4516
+ ),
4517
+ 'custom_label_text' => array(
4518
+ 'type' => 'checkbox',
4519
+ 'label' => __pl('custom_label_text'),
4520
+ 'show' => array(
4521
+ 'show_label' => 'true',
4522
+ ),
4523
+ ),
4524
+ 'days_label_text' => array(
4525
+ 'type' => 'text',
4526
+ 'label' => __pl('days'),
4527
+ 'default' => __pl('days'),
4528
+ 'show' => array(
4529
+ '!custom_label_text' => '',
4530
+ '!days' => '',
4531
+ ),
4532
+ ),
4533
+ 'hours_label_text' => array(
4534
+ 'type' => 'text',
4535
+ 'label' => __pl('hours'),
4536
+ 'default' => __pl('hours'),
4537
+ 'show' => array(
4538
+ '!custom_label_text' => '',
4539
+ '!hours' => '',
4540
+ ),
4541
+ ),
4542
+ 'minutes_label_text' => array(
4543
+ 'type' => 'text',
4544
+ 'label' => __pl('minutes'),
4545
+ 'default' => __pl('minutes'),
4546
+ 'show' => array(
4547
+ '!custom_label_text' => '',
4548
+ '!minutes' => '',
4549
+ ),
4550
+ ),
4551
+ 'seconds_label_text' => array(
4552
+ 'type' => 'text',
4553
+ 'label' => __pl('seconds'),
4554
+ 'default' => __pl('seconds'),
4555
+ 'show' => array(
4556
+ '!custom_label_text' => '',
4557
+ '!seconds' => '',
4558
+ ),
4559
+ ),
4560
+ 'font_color' => array(
4561
+ 'type' => 'color',
4562
+ 'label' => __pl('text_color'),
4563
+ 'default' => '#ffffff',
4564
+ 'css' => ['{{element}} .pagelayer-countdown-name span' => 'color:{{font_color}}'],
4565
+ 'show' => array(
4566
+ 'show_label' => 'true',
4567
+ ),
4568
+ ),
4569
+ 'cd_text_style' => array(
4570
+ 'type' => 'typography',
4571
+ 'label' => __pl('typography'),
4572
+ 'default' => ',18,,500,,,solid,,,,',
4573
+ 'screen' => 1,
4574
+ 'css' => ['{{element}} .pagelayer-countdown-name' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
4575
+ 'show' => array(
4576
+ 'show_label' => 'true',
4577
+ ),
4578
+ ),
4579
+ ],
4580
+ 'block_styles' =>[
4581
+ 'display' => array(
4582
+ 'type' => 'select',
4583
+ 'label' => __pl('display'),
4584
+ 'default' => 'block',
4585
+ 'list' => [
4586
+ 'block' => __pl('block'),
4587
+ 'inline' => __pl('inline'),
4588
+ ],
4589
+ ),
4590
+ 'block_color' => array(
4591
+ 'type' => 'color',
4592
+ 'label' => __pl('bg_color'),
4593
+ 'default' => '#2b1661',
4594
+ 'css' => ['{{element}} .pagelayer-countdown-item' => 'background-color:{{block_color}}'],
4595
+ ),
4596
+ 'blocks_padding' => array(
4597
+ 'type' => 'padding',
4598
+ 'label' => __pl('padding'),
4599
+ 'units' => ['px', 'em', '%'],
4600
+ 'screen' => 1,
4601
+ 'css' => ['{{element}} .pagelayer-countdown-item' => 'padding-top: {{val[0]}}; padding-right: {{val[1]}}; padding-bottom: {{val[2]}}; padding-left: {{val[3]}}'],
4602
+ ),
4603
+ 'blocks_space' => array(
4604
+ 'type' => 'padding',
4605
+ 'label' => __pl('block_space'),
4606
+ 'units' => ['px', 'em'],
4607
+ 'screen' => 1,
4608
+ 'css' => ['{{element}} .pagelayer-countdown-item' => 'margin-top: {{val[0]}}; margin-right: {{val[1]}}; margin-bottom: {{val[2]}}; margin-left: {{val[3]}}'],
4609
+ ),
4610
+ 'cd_border_state' => array(
4611
+ 'type' => 'radio',
4612
+ 'label' => __pl(''),
4613
+ 'default' => '',
4614
+ 'list' => array(
4615
+ '' => __pl('normal'),
4616
+ 'hover' => __pl('hover'),
4617
+ ),
4618
+ ),
4619
+ 'cd_border_type' => array(
4620
+ 'type' => 'select',
4621
+ 'label' => __pl('border_type'),
4622
+ 'css' => ['{{element}} .pagelayer-countdown-item' => 'border-style: {{val}}'],
4623
+ 'list' => [
4624
+ '' => __pl('none'),
4625
+ 'solid' => __pl('solid'),
4626
+ 'double' => __pl('double'),
4627
+ 'dotted' => __pl('dotted'),
4628
+ 'dashed' => __pl('dashed'),
4629
+ 'groove' => __pl('groove'),
4630
+ ],
4631
+ 'show' => array(
4632
+ 'cd_border_state' => ''
4633
+ ),
4634
+ ),
4635
+ 'cd_border_color' => array(
4636
+ 'type' => 'color',
4637
+ 'label' => __pl('border_color'),
4638
+ 'default' => '#0986c0',
4639
+ 'css' => ['{{element}} .pagelayer-countdown-item' => 'border-color: {{val}};'],
4640
+ 'req' => array(
4641
+ '!cd_border_type' => ''
4642
+ ),
4643
+ 'show' => array(
4644
+ 'cd_border_state' => ''
4645
+ ),
4646
+ ),
4647
+ 'cd_border_width' => array(
4648
+ 'type' => 'padding',
4649
+ 'label' => __pl('border_width'),
4650
+ 'screen' => 1,
4651
+ 'css' => ['{{element}} .pagelayer-countdown-item' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
4652
+ 'req' => [
4653
+ '!cd_border_type' => ''
4654
+ ],
4655
+ 'show' => array(
4656
+ 'cd_border_state' => ''
4657
+ ),
4658
+ ),
4659
+ 'cd_border_radius' => array(
4660
+ 'type' => 'padding',
4661
+ 'label' => __pl('border_radius'),
4662
+ 'units' => ['px', '%'],
4663
+ 'screen' => 1,
4664
+ 'css' => ['{{element}} .pagelayer-countdown-item' => 'border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}; -webkit-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}; -moz-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};'],
4665
+ 'show' => array(
4666
+ 'cd_border_state' => ''
4667
+ ),
4668
+ ),
4669
+ 'cd_border_type_hover' => array(
4670
+ 'type' => 'select',
4671
+ 'label' => __pl('border_type'),
4672
+ 'css' => ['{{element}} .pagelayer-countdown-item:hover' => 'border-style: {{val}}'],
4673
+ 'list' => [
4674
+ '' => __pl('none'),
4675
+ 'solid' => __pl('solid'),
4676
+ 'double' => __pl('double'),
4677
+ 'dotted' => __pl('dotted'),
4678
+ 'dashed' => __pl('dashed'),
4679
+ 'groove' => __pl('groove'),
4680
+ ],
4681
+ 'show' => array(
4682
+ 'cd_border_state' => 'hover'
4683
+ ),
4684
+ ),
4685
+ 'cd_border_color_hover' => array(
4686
+ 'type' => 'color',
4687
+ 'label' => __pl('border_color'),
4688
+ 'css' => ['{{element}} .pagelayer-countdown-item:hover' => 'border-color: {{val}};'],
4689
+ 'default' => '#0986c0',
4690
+ 'req' => array(
4691
+ '!cd_border_type_hover' => ''
4692
+ ),
4693
+ 'show' => array(
4694
+ 'cd_border_state' => 'hover'
4695
+ ),
4696
+ ),
4697
+ 'cd_border_width_hover' => array(
4698
+ 'type' => 'padding',
4699
+ 'label' => __pl('border_width'),
4700
+ 'screen' => 1,
4701
+ 'css' => ['{{element}} .pagelayer-countdown-item:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
4702
+ 'req' => [
4703
+ '!cd_border_type_hover' => ''
4704
+ ],
4705
+ 'show' => array(
4706
+ 'cd_border_state' => 'hover'
4707
+ ),
4708
+ ),
4709
+ 'cd_border_radius_hover' => array(
4710
+ 'type' => 'padding',
4711
+ 'label' => __pl('border_radius'),
4712
+ 'units' => ['px', '%'],
4713
+ 'screen' => 1,
4714
+ 'css' => ['{{element}} .pagelayer-countdown-item:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
4715
+ 'show' => array(
4716
+ 'cd_border_state' => 'hover'
4717
+ ),
4718
+ ),
4719
+ 'cd_shadow' => array(
4720
+ 'type' => 'box_shadow',
4721
+ 'label' => __pl('shadow'),
4722
+ 'css' => ['{{element}} .pagelayer-countdown-item' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
4723
+ 'show' => array(
4724
+ 'cd_border_state' => '',
4725
+ ),
4726
+ ),
4727
+ 'cd_shadow_hover' => array(
4728
+ 'type' => 'box_shadow',
4729
+ 'label' => __pl('shadow'),
4730
+ 'css' => ['{{element}} .pagelayer-countdown-item:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
4731
+ 'show' => array(
4732
+ 'cd_border_state' => 'hover'
4733
+ ),
4734
+ ),
4735
+ ],
4736
+ 'styles' => [
4737
+ 'text_style' => __pl('title_style'),
4738
+ 'expired_text' => __pl('expired_text'),
4739
+ 'block_styles' => __pl('block_styles'),
4740
+ ],
4741
+ )
4742
+ );
4743
+
4744
+ // Button Group
4745
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_btn_grp', array(
4746
+ 'name' => __pl('btn_grp'),
4747
+ 'group' => 'button',
4748
+ 'has_group' => [
4749
+ 'section' => 'params',
4750
+ 'prop' => 'elements'
4751
+ ],
4752
+ 'params' => array(
4753
+ 'elements' => array(
4754
+ 'type' => 'group',
4755
+ 'label' => __pl('buttons'),
4756
+ 'sc' => PAGELAYER_SC_PREFIX.'_btn',
4757
+ 'item_label' => array(
4758
+ 'default' => __pl('button'),
4759
+ 'param' => 'text'
4760
+ ),
4761
+ 'count' => 2,
4762
+ 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('button_name'))),
4763
+ ),
4764
+ 'align' => array(
4765
+ 'type' => 'radio',
4766
+ 'label' => __pl('alignment'),
4767
+ 'default' => 'center',
4768
+ 'screen' => 1,
4769
+ 'css' => [
4770
+ '{{element}}' => 'text-align: {{val}}',
4771
+ '{{element}} .pagelayer-btn' => 'text-align: {{val}}'
4772
+ ],
4773
+ 'list' => array(
4774
+ 'left' => __pl('left'),
4775
+ 'center' => __pl('center'),
4776
+ 'right' => __pl('right')
4777
+ )
4778
+ ),
4779
+ 'group_layout' => array(
4780
+ 'type' => 'radio',
4781
+ 'label' => __pl('layout'),
4782
+ 'default' => 'horizontal',
4783
+ 'css' => ['{{element}} > div' => 'display: inline-block;'],
4784
+ 'list' => array(
4785
+ 'horizontal' => __pl('horizontal'),
4786
+ '' => __pl('vertical')
4787
+ )
4788
+ ),
4789
+ 'hindent' => array(
4790
+ 'type' => 'spinner',
4791
+ 'label' => __pl('space_between'),
4792
+ 'default' => '5',
4793
+ 'css' => ['{{element}} .pagelayer-btn' => 'padding-left: {{val}}px; padding-right: {{val}}px;'],
4794
+ 'min' => 0,
4795
+ 'step' => 1,
4796
+ 'max' => 50,
4797
+ 'default' => 3,
4798
+ 'screen' => 1,
4799
+ 'req' => ['group_layout' => 'horizontal']
4800
+ ),
4801
+ 'vindent' => array(
4802
+ 'type' => 'spinner',
4803
+ 'label' => __pl('space_between'),
4804
+ 'default' => '5',
4805
+ 'css' => ['{{element}} .pagelayer-btn' => 'padding-top: {{val}}px; padding-bottom: {{val}}px;'],
4806
+ 'min' => 0,
4807
+ 'step' => 1,
4808
+ 'max' => 50,
4809
+ 'default' => 3,
4810
+ 'screen' => 1,
4811
+ 'req' => ['group_layout' => '']
4812
+ )
4813
+ )
4814
+ )
4815
+ );
4816
+
4817
+ // Testimonial Slider
4818
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_testimonial_slider', array(
4819
+ 'name' => __pl('testimonial_slider'),
4820
+ 'group' => 'other',
4821
+ 'has_group' => [
4822
+ 'section' => 'params',
4823
+ 'prop' => 'elements'
4824
+ ],
4825
+ 'icon' => 'pli pli-commenting-o',
4826
+ 'child_selector' => '>.pagelayer-owl-stage-outer>.pagelayer-owl-stage>.pagelayer-owl-item', // Make it very specifc
4827
+ 'holder' => '.pagelayer-testimonials-holder',
4828
+ 'html' => '<div class="pagelayer-testimonials-holder pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme"></div>',
4829
+ 'params' => array(
4830
+ 'elements' => array(
4831
+ 'type' => 'group',
4832
+ 'label' => __pl('testimonial'),
4833
+ 'sc' => PAGELAYER_SC_PREFIX.'_testimonial',
4834
+ 'item_label' => array(
4835
+ 'default' => __pl('testimonial'),
4836
+ 'param' => 'cite'
4837
+ ),
4838
+ 'count' => 3,
4839
+ 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('testimonial')))
4840
+ ),
4841
+ ),
4842
+ 'slider_options' => $pagelayer->slider_options,
4843
+ 'arrow_styles' => $pagelayer->slider_arrow_styles,
4844
+ 'pager_styles' => $pagelayer->slider_pager_styles,
4845
+ 'styles' => [
4846
+ 'slider_options' => __pl('slider_options'),
4847
+ 'arrow_styles' => __pl('arrow_styles'),
4848
+ 'pager_styles' => __pl('pager_styles'),
4849
+ ]
4850
+ ));
4851
+
4852
+
4853
+
4854
+ // Pricing Table
4855
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_pricing', array(
4856
+ 'name' => __pl('pricing_table'),
4857
+ 'group' => 'other',
4858
+ 'has_group' => [
4859
+ 'section' => 'feature_style',
4860
+ 'prop' => 'elements'
4861
+ ],
4862
+ 'holder' => '.pagelayer-pricing-ul',
4863
+ 'html' => '<div class="pagelayer-pricing-details">
4864
+ <div if="{{ribbon_text}}" class="pagelayer-pricing-ribbon-container">
4865
+ <div class="pagelayer-pricing-ribbon">
4866
+ {{ribbon_text}}
4867
+ </div>
4868
+ </div>
4869
+ <h3 if="{{plan_title}}" class="pagelayer-pricing-type">{{plan_title}}</h3>
4870
+ <h4 if="{{plan_sub_title}}" class="pagelayer-pricing-sub-title">{{plan_sub_title}}</h4>
4871
+ </div>
4872
+ <div class="pagelayer-pricing-rate-section">
4873
+ <h4 if="{{original_price}}" class="pagelayer-pricing-price pagelayer-pricing-original">
4874
+ <span class="pagelayer-pricing-rate">
4875
+ <span if="{{currency}}">{{currency}}</span><span class="pagelayer-pricing-orig-amt">{{original_price}}</span>
4876
+ </span>
4877
+ </h4>
4878
+ <h2 class="pagelayer-pricing-price">
4879
+ <span if="{{currency}}" class="pagelayer-pricing-currency pagelayer-pricing-currency-{{currency_position}}">{{currency}}</span>
4880
+ <span if="{{price}}" class="pagelayer-pricing-rate pagelayer-pricing-amt">{{price}}</span>
4881
+ </h2>
4882
+ <p if="{{period}}" class="pagelayer-pricing-duration">{{period}}</p>
4883
+ </div>
4884
+ <div class="pagelayer-pricing-features">
4885
+ <ul class="pagelayer-pricing-ul"></ul>
4886
+ <a if="{{price_button}}" href="{{{button_url}}}" class="pagelayer-pricing-btn {{button_type}} pagelayer-ele-link pagelayer-button {{button_size}}">{{button_text}}</a>
4887
+ <p if="{{additional_info}}" class="pagelayer-pricing-additional">{{additional_info}}</p>
4888
+ </div>',
4889
+ 'params' => array(
4890
+ 'plan_title' => array(
4891
+ 'type' => 'text',
4892
+ 'label' => __pl('plan_type'),
4893
+ 'default' => 'Standard',
4894
+ 'edit' => '.pagelayer-pricing-type',
4895
+ ),
4896
+ 'title_color' => array(
4897
+ 'type' => 'color',
4898
+ 'label' => __pl('color'),
4899
+ 'default' => '#ffffff',
4900
+ 'css' => ['{{element}} .pagelayer-pricing-type' => 'color:{{val}};'],
4901
+ ),
4902
+ 'title_size' => array(
4903
+ 'type' => 'typography',
4904
+ 'label' => __pl('typography'),
4905
+ 'default' => 'Poppins,20,,500,,,solid,,,,',
4906
+ 'css' => ['{{element}} .pagelayer-pricing-type' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
4907
+ ),
4908
+ ),
4909
+ //styles
4910
+ 'header_style' => [
4911
+ 'header_background_color' => array(
4912
+ 'type' => 'color',
4913
+ 'label' => __pl('bg_color'),
4914
+ 'default' => '#d55400',
4915
+ 'css' => ['{{element}} .pagelayer-pricing-details' => 'background-color:{{val}} !important;'],
4916
+ ),
4917
+ 'header_padding' => array(
4918
+ 'label' => __pl('padding'),
4919
+ 'type' => 'padding',
4920
+ 'default' => '10,10,10,10',
4921
+ 'css' => ['{{element}} .pagelayer-pricing-details' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
4922
+ ),
4923
+ 'header_border_type' => array(
4924
+ 'type' => 'select',
4925
+ 'label' => __pl('border_type'),
4926
+ 'css' => ['{{element}} .pagelayer-pricing-details' =>'border-style: {{val}};'],
4927
+ 'list' => [
4928
+ '' => __pl('none'),
4929
+ 'solid' => __pl('solid'),
4930
+ 'double' => __pl('double'),
4931
+ 'dotted' => __pl('dotted'),
4932
+ 'dashed' => __pl('dashed'),
4933
+ 'groove' => __pl('groove'),
4934
+ ],
4935
+ ),
4936
+ 'header_border_color' => array(
4937
+ 'type' => 'color',
4938
+ 'label' => __pl('border_color'),
4939
+ 'default' => '#e5e5e8',
4940
+ 'css' => ['{{element}} .pagelayer-pricing-details' => 'border-color: {{val}};'],
4941
+ 'req' => ['!header_border_type' => '']
4942
+ ),
4943
+ 'header_border_width' => array(
4944
+ 'type' => 'padding',
4945
+ 'label' => __pl('border_width'),
4946
+ 'default' => '0,0,0,0',
4947
+ 'css' => ['{{element}} .pagelayer-pricing-details' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
4948
+ 'req' => ['!header_border_type' => '']
4949
+ ),
4950
+ 'header_border_radius' => array(
4951
+ 'type' => 'padding',
4952
+ 'label' => __pl('border_radius'),
4953
+ 'css' => ['{{element}} .pagelayer-pricing-details' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
4954
+ 'req' => ['!header_border_type' => '']
4955
+ ),
4956
+ ],
4957
+ 'subtitle_style' => [
4958
+ 'plan_sub_title' => array(
4959
+ 'type' => 'text',
4960
+ 'label' => __pl('subtitle'),
4961
+ 'default' => 'For beginners',
4962
+ 'edit' => '.pagelayer-pricing-sub-title',
4963
+ ),
4964
+ 'subtitle_color' => array(
4965
+ 'type' => 'color',
4966
+ 'label' => __pl('color'),
4967
+ 'default' => '#ffffff',
4968
+ 'css' => ['{{element}} .pagelayer-pricing-sub-title' => 'color:{{val}}'],
4969
+ ),
4970
+ 'subtitle_size' => array(
4971
+ 'type' => 'typography',
4972
+ 'label' => __pl('typography'),
4973
+ 'default' => 'Poppins,18,,500,,,solid,,,,',
4974
+ 'css' => ['{{element}} .pagelayer-pricing-sub-title' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
4975
+ ),
4976
+ ],
4977
+ 'price_style' => [
4978
+ 'price' => array(
4979
+ 'type' => 'text',
4980
+ 'label' => __pl('plan_price'),
4981
+ 'default' => '49',
4982
+ 'edit' => '.pagelayer-pricing-amt',
4983
+ ),
4984
+ 'sale' => array(
4985
+ 'type' => 'checkbox',
4986
+ 'label' => __pl('sale'),
4987
+ ),
4988
+ 'original_price' => array(
4989
+ 'type' => 'text',
4990
+ 'label' => __pl('old_price'),
4991
+ 'default' => '100',
4992
+ 'edit' => '.pagelayer-pricing-orig-amt',
4993
+ 'css' => ['{{element}} .pagelayer-pricing-original '=> 'display:inline-block;'],
4994
+ 'req' => array(
4995
+ 'sale' => 'true'
4996
+ )
4997
+ ),
4998
+ 'price_size' => array(
4999
+ 'label' => __pl('price_size'),
5000
+ 'type' => 'typography',
5001
+ 'default' => 'Poppins,45,,500,,,solid,,,,',
5002
+ 'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-rate' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5003
+ ),
5004
+ 'price_sale_size' => array(
5005
+ 'label' => __pl('old_price_size'),
5006
+ 'type' => 'typography',
5007
+ 'default' => 'Poppins,35,,500,,,solid,,,,',
5008
+ 'css' => ['{{element}} .pagelayer-pricing-original .pagelayer-pricing-rate' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5009
+ 'req' => array(
5010
+ 'sale' => 'true'
5011
+ )
5012
+ ),
5013
+ 'price_state' => array(
5014
+ 'type' => 'radio',
5015
+ 'label' => __pl('price_state'),
5016
+ 'default' => 'normal',
5017
+ 'list' => array(
5018
+ 'normal' => __pl('normal'),
5019
+ 'hover' => __pl('hover'),
5020
+ ),
5021
+ ),
5022
+ 'price_line_height' => array(
5023
+ 'label' => __pl('price_line_height'),
5024
+ 'type' => 'slider',
5025
+ 'min' => 0,
5026
+ 'max' => 500,
5027
+ 'default' => 30,
5028
+ 'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-currency' => 'line-height:{{val}}%;'],
5029
+ ),
5030
+ 'price_color' => array(
5031
+ 'type' => 'color',
5032
+ 'label' => __pl('color'),
5033
+ 'default' => '#ffffff',
5034
+ 'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-rate' => 'color:{{val}}'],
5035
+ 'show' => ['price_state' => 'normal'],
5036
+ ),
5037
+ 'old_price_color' => array(
5038
+ 'type' => 'color',
5039
+ 'label' => __pl('old_price_color'),
5040
+ 'default' => '#ffffff',
5041
+ 'css' => ['{{element}} .pagelayer-pricing-price.pagelayer-pricing-original .pagelayer-pricing-rate' => 'color:{{val}}'],
5042
+ 'show' => ['price_state' => 'normal'],
5043
+ 'req' => ['sale' => 'true'],
5044
+ ),
5045
+ 'old_price_line_color' => array(
5046
+ 'type' => 'color',
5047
+ 'label' => __pl('old_price_line_color'),
5048
+ 'default' => '#000000',
5049
+ 'css' => ['{{element}} .pagelayer-pricing-price.pagelayer-pricing-original' => 'color:{{val}}'],
5050
+ 'show' => ['price_state' => 'normal'],
5051
+ 'req' => ['sale' => 'true'],
5052
+ ),
5053
+ 'price_background_color' => array(
5054
+ 'type' => 'color',
5055
+ 'label' => __pl('background_color'),
5056
+ 'default' => '#e98b2b',
5057
+ 'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'background-color:{{val}}'],
5058
+ 'show' => ['price_state' => 'normal'],
5059
+ ),
5060
+ 'price_color_hover' => array(
5061
+ 'type' => 'color',
5062
+ 'label' => __pl('color'),
5063
+ 'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-rate:hover' => 'color:{{val}}'],
5064
+ 'show' => ['price_state' => 'hover'],
5065
+ ),
5066
+ 'old_price_color_hover' => array(
5067
+ 'type' => 'color',
5068
+ 'label' => __pl('old_price_color'),
5069
+ 'default' => '#ffffff',
5070
+ 'css' => ['{{element}} .pagelayer-pricing-price.pagelayer-pricing-original .pagelayer-pricing-rate:hover' => 'color:{{val}}'],
5071
+ 'show' => ['price_state' => 'hover'],
5072
+ 'req' => ['sale' => 'true'],
5073
+ ),
5074
+ 'old_price_line_color_hover' => array(
5075
+ 'type' => 'color',
5076
+ 'label' => __pl('old_price_line_color'),
5077
+ 'css' => ['{{element}} .pagelayer-pricing-price.pagelayer-pricing-original:hover' => 'color:{{val}}'],
5078
+ 'show' => ['price_state' => 'hover'],
5079
+ 'req' => ['sale' => 'true'],
5080
+ ),
5081
+ 'price_background_color_hover' => array(
5082
+ 'type' => 'color',
5083
+ 'label' => __pl('background_color'),
5084
+ 'css' => ['{{element}} .pagelayer-pricing-rate-section:hover' => 'background-color:{{val}}'],
5085
+ 'show' => ['price_state' => 'hover'],
5086
+ ),
5087
+ 'price_border_type' => array(
5088
+ 'type' => 'select',
5089
+ 'label' => __pl('border_type'),
5090
+ 'css' => ['{{element}} .pagelayer-pricing-rate-section' =>'border-style: {{val}};'],
5091
+ 'list' => [
5092
+ '' => __pl('none'),
5093
+ 'solid' => __pl('solid'),
5094
+ 'double' => __pl('double'),
5095
+ 'dotted' => __pl('dotted'),
5096
+ 'dashed' => __pl('dashed'),
5097
+ 'groove' => __pl('groove'),
5098
+ ],
5099
+ ),
5100
+ 'price_border_color' => array(
5101
+ 'type' => 'color',
5102
+ 'label' => __pl('border_color'),
5103
+ 'default' => '#42414f',
5104
+ 'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'border-color: {{val}};'],
5105
+ 'req' => ['!price_border_type' => '']
5106
+ ),
5107
+ 'price_border_width' => array(
5108
+ 'type' => 'padding',
5109
+ 'label' => __pl('border_width'),
5110
+ 'css' => ['{{element}} .pagelayer-pricing-rate-section' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
5111
+ 'req' => ['!price_border_type' => '']
5112
+ ),
5113
+ 'price_border_radius' => array(
5114
+ 'type' => 'padding',
5115
+ 'label' => __pl('border_radius'),
5116
+ 'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
5117
+ 'req' => ['!price_border_type' => '']
5118
+ ),
5119
+ 'price_margin' => array(
5120
+ 'type' => 'padding',
5121
+ 'label' => __pl('margin'),
5122
+ 'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'margin: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
5123
+ ),
5124
+ 'price_padding' => array(
5125
+ 'type' => 'padding',
5126
+ 'label' => __pl('padding'),
5127
+ 'css' => ['{{element}} .pagelayer-pricing-rate-section' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
5128
+ ),
5129
+ ],
5130
+ 'currency_style' => [
5131
+ 'currency' => array(
5132
+ 'type' => 'text',
5133
+ 'label' => __pl('currency'),
5134
+ 'default' => '$',
5135
+ 'edit' => '.pagelayer-pricing-currency',
5136
+ ),
5137
+ 'currency_color' => array(
5138
+ 'type' => 'color',
5139
+ 'label' => __pl('color'),
5140
+ 'default' => '#ffffff',
5141
+ 'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-currency' => 'color:{{val}}'],
5142
+ ),
5143
+ 'currency_size' => array(
5144
+ 'label' => __pl('currency_size'),
5145
+ 'type' => 'typography',
5146
+ 'default' => 'Poppins,35,,500,,,solid,,,,',
5147
+ 'css' => ['{{element}} .pagelayer-pricing-price .pagelayer-pricing-currency' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5148
+ ),
5149
+ 'currency_position' => array(
5150
+ 'type' => 'radio',
5151
+ 'label' => __pl('position'),
5152
+ 'default' => 'top',
5153
+ 'list' => array(
5154
+ 'top' => __pl('top'),
5155
+ 'middle' => __pl('middle'),
5156
+ 'bottom' => __pl('bottom'),
5157
+ ),
5158
+ ),
5159
+ ],
5160
+ 'period_style' => [
5161
+ 'period_inline' => array(
5162
+ 'type' => 'checkbox',
5163
+ 'label' => __pl('inline'),
5164
+ 'css' => ['{{element}} .pagelayer-pricing-duration' => 'display:inline-block;'],
5165
+ ),
5166
+ 'period' => array(
5167
+ 'type' => 'text',
5168
+ 'label' => __pl('period'),
5169
+ 'default' => 'Per Month',
5170
+ 'edit' => '.pagelayer-pricing-duration',
5171
+ ),
5172
+ 'period_color' => array(
5173
+ 'type' => 'color',
5174
+ 'label' => __pl('color'),
5175
+ 'default' => '#ffffff',
5176
+ 'css' => ['{{element}} .pagelayer-pricing-duration' => 'color:{{val}}'],
5177
+ ),
5178
+ 'period_size' => array(
5179
+ 'type' => 'typography',
5180
+ 'label' => __pl('heading_typo'),
5181
+ 'default' => ',16,,500,,,solid,,,,',
5182
+ 'css' => ['{{element}} .pagelayer-pricing-duration' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5183
+ ),
5184
+ ],
5185
+ 'feature_style' => [
5186
+ 'elements' => array(
5187
+ 'type' => 'group',
5188
+ 'label' => __pl('features_item'),
5189
+ 'sc' => PAGELAYER_SC_PREFIX.'_list_item',
5190
+ 'item_label' => array(
5191
+ 'default' => __pl('Features Item'),
5192
+ 'param' => 'item'
5193
+ ),
5194
+ 'count' => 3,
5195
+ 'text' =>strtr(__pl('add_new_item'), array('%name%' => __pl('Feature'))),
5196
+ ),
5197
+ 'features_background_color' => array(
5198
+ 'type' => 'color',
5199
+ 'label' => __pl('background_color'),
5200
+ 'default' => '#ffffff',
5201
+ 'css' => ['{{element}} .pagelayer-pricing-features' => 'background-color:{{val}}'],
5202
+ ),
5203
+ 'features_text_color' => array(
5204
+ 'type' => 'color',
5205
+ 'label' => __pl('color'),
5206
+ 'default' => '#000000',
5207
+ 'css' => ['{{element}} .pagelayer-pricing-ul li span' => 'color:{{val}}'],
5208
+ ),
5209
+ 'features_text_typo' => array(
5210
+ 'type' => 'typography',
5211
+ 'label' => __pl('typography'),
5212
+ 'default' => ',18,,500,,,solid,,,,',
5213
+ 'css' => ['{{element}} .pagelayer-pricing-ul li span' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5214
+ ),
5215
+ 'pri_features_spacing' => array(
5216
+ 'label' => __pl('space_between'),
5217
+ 'type' => 'slider',
5218
+ 'css' => ['{{element}} .pagelayer-pricing-ul > :not(:last-child) ' => 'margin-bottom:{{val}}px'],
5219
+ ),
5220
+ 'features_padding' => array(
5221
+ 'label' => __pl('padding'),
5222
+ 'type' => 'padding',
5223
+ 'css' => ['{{element}} .pagelayer-pricing-features' => 'padding: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important;'],
5224
+ ),
5225
+ ],
5226
+ 'additional_info' => [
5227
+ 'additional_info' => array(
5228
+ 'type' => 'textarea',
5229
+ 'label' => __pl('additional_info'),
5230
+ 'default' => 'Some Additional Information',
5231
+ 'edit' => '.pagelayer-pricing-additional',
5232
+ ),
5233
+ 'additional_text_color' => array(
5234
+ 'type' => 'color',
5235
+ 'label' => __pl('color'),
5236
+ 'default' => '#000000',
5237
+ 'css' => ['{{element}} .pagelayer-pricing-additional' => 'color:{{val}}'],
5238
+ ),
5239
+ 'addition_text_typo' => array(
5240
+ 'type' => 'typography',
5241
+ 'label' => __pl('heading_typo'),
5242
+ 'default' => ',16,,500,,,solid,,,,',
5243
+ 'css' => ['{{element}} .pagelayer-pricing-additional' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5244
+ ),
5245
+ ],
5246
+ 'button_style' => [
5247
+ 'price_button' => array(
5248
+ 'type' => 'checkbox',
5249
+ 'label' => __pl('show_btn'),
5250
+ 'default' => 'true',
5251
+ ),
5252
+ 'button_type' => array(
5253
+ 'type' => 'select',
5254
+ 'label' => __pl('type'),
5255
+ 'default' => 'pagelayer-btn-danger',
5256
+ 'list' => array(
5257
+ 'pagelayer-btn-default' => __pl('btn_type_default'),
5258
+ 'pagelayer-btn-primary' => __pl('btn_type_primary'),
5259
+ 'pagelayer-btn-secondary' => __pl('btn_type_secondary'),
5260
+ 'pagelayer-btn-success' => __pl('btn_type_success'),
5261
+ 'pagelayer-btn-info' => __pl('btn_type_info'),
5262
+ 'pagelayer-btn-warning' => __pl('btn_type_warning'),
5263
+ 'pagelayer-btn-danger' => __pl('btn_type_danger'),
5264
+ 'pagelayer-btn-dark' => __pl('btn_type_dark'),
5265
+ 'pagelayer-btn-light' => __pl('btn_type_light'),
5266
+ 'pagelayer-btn-link' => __pl('btn_type_link'),
5267
+ 'pagelayer-btn-custom' => __pl('btn_type_custom')
5268
+ ),
5269
+ 'req' => array(
5270
+ 'price_button' => 'true'
5271
+ ),
5272
+ ),
5273
+ 'button_size' => array(
5274
+ 'type' => 'select',
5275
+ 'label' => __pl('button_size_label'),
5276
+ 'default' => 'pagelayer-btn-mini',
5277
+ 'list' => array(
5278
+ 'pagelayer-btn-mini' => __pl('mini'),
5279
+ 'pagelayer-btn-small' => __pl('small'),
5280
+ 'pagelayer-btn-large' => __pl('large'),
5281
+ 'pagelayer-btn-extra-large' => __pl('extra_large'),
5282
+ 'pagelayer-btn-double-large' => __pl('double_large'),
5283
+ 'pagelayer-btn-custom' => __pl('custom'),
5284
+ ),
5285
+ 'req' => array(
5286
+ 'price_button' => 'true'
5287
+ )
5288
+ ),
5289
+ 'button_size_custom' => array(
5290
+ 'type' => 'dimension',
5291
+ 'label' => __pl('padding'),
5292
+ 'screen' => 1,
5293
+ 'css' => ['{{element}} .pagelayer-pricing-btn' => 'padding:{{val[0]}}px {{val[1]}}px;'],
5294
+ 'req' => array(
5295
+ 'button_size' => 'pagelayer-btn-custom'
5296
+ )
5297
+ ),
5298
+ 'button_url' => array(
5299
+ 'type' => 'link',
5300
+ 'label' => __pl('btn_url_label'),
5301
+ 'req' => array(
5302
+ 'price_button' => 'true'
5303
+ ),
5304
+ ),
5305
+ 'button_text' => array(
5306
+ 'type' => 'text',
5307
+ 'label' => __pl('button_text_label'),
5308
+ 'default' => 'Buy This Plan',
5309
+ 'edit' => '.pagelayer-pricing-btn',
5310
+ 'req' => array(
5311
+ 'price_button' => 'true'
5312
+ ),
5313
+ ),
5314
+ 'btn_typo' => array(
5315
+ 'type' => 'typography',
5316
+ 'label' => __pl('typography'),
5317
+ 'screen' => 1,
5318
+ 'css' => [
5319
+ '{{element}} .pagelayer-pricing-btn' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
5320
+ ],
5321
+ ),
5322
+ 'btn_spacing' => array(
5323
+ 'type' => 'slider',
5324
+ 'label' => __pl('spacing'),
5325
+ 'min' => '0',
5326
+ 'max' => '200',
5327
+ 'default' => '10',
5328
+ 'css' => ['{{element}} .pagelayer-pricing-btn' => 'margin-top: {{val}}px;'],
5329
+ 'req' => [
5330
+ 'price_button' => 'true',
5331
+ ]
5332
+ ),
5333
+ 'btn_state' => array(
5334
+ 'type' => 'radio',
5335
+ 'label' => __pl('button_state'),
5336
+ 'default' => 'normal',
5337
+ 'list' => array(
5338
+ 'normal' => __pl('Normal'),
5339
+ 'hover' => __pl('Hover'),
5340
+ ),
5341
+ 'req' => array(
5342
+ 'price_button' => 'true',
5343
+ 'button_type' => 'pagelayer-btn-custom'
5344
+ ),
5345
+ ),
5346
+ 'button_color' => array(
5347
+ 'type' => 'color',
5348
+ 'label' => __pl('iconbox_button_color'),
5349
+ 'default' => '#ffffff',
5350
+ 'css' => ['{{element}} .pagelayer-pricing-btn' => 'color:{{val}};'],
5351
+ 'req' => [
5352
+ 'price_button' => 'true',
5353
+ 'button_type' => 'pagelayer-btn-custom',
5354
+ ],
5355
+ 'show' => ['btn_state' => 'normal']
5356
+ ),
5357
+ 'button_bg_color' => array(
5358
+ 'type' => 'color',
5359
+ 'label' => __pl('button_bg_color'),
5360
+ 'default' => '#0986c0',
5361
+ 'css' => ['{{element}} .pagelayer-pricing-btn' => 'background-color:{{val}};'],
5362
+ 'req' => [
5363
+ 'button_type' => 'pagelayer-btn-custom',
5364
+ ],
5365
+ 'show' => ['btn_state' => 'normal']
5366
+ ),
5367
+ 'price_btn_border_type' => array(
5368
+ 'type' => 'select',
5369
+ 'label' => __pl('border_type'),
5370
+ 'css' => ['{{element}} .pagelayer-pricing-btn' =>'border-style: {{val}};'],
5371
+ 'list' => [
5372
+ '' => __pl('none'),
5373
+ 'solid' => __pl('solid'),
5374
+ 'double' => __pl('double'),
5375
+ 'dotted' => __pl('dotted'),
5376
+ 'dashed' => __pl('dashed'),
5377
+ 'groove' => __pl('groove'),
5378
+ ],
5379
+ 'show' => ['btn_state' => 'normal']
5380
+ ),
5381
+ 'price_btn_border_color' => array(
5382
+ 'type' => 'color',
5383
+ 'label' => __pl('border_color'),
5384
+ 'css' => ['{{element}} .pagelayer-pricing-btn' => 'border-color: {{val}};'],
5385
+ 'req' => ['!price_btn_border_type' => ''],
5386
+ 'show' => ['btn_state' => 'normal']
5387
+ ),
5388
+ 'price_btn_border_width' => array(
5389
+ 'type' => 'padding',
5390
+ 'label' => __pl('border_width'),
5391
+ 'css' => ['{{element}} .pagelayer-pricing-btn' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
5392
+ 'req' => ['!price_btn_border_type' => ''],
5393
+ 'show' => ['btn_state' => 'normal']
5394
+ ),
5395
+ 'price_btn_border_radius' => array(
5396
+ 'type' => 'padding',
5397
+ 'label' => __pl('border_radius'),
5398
+ 'css' => ['{{element}} .pagelayer-pricing-btn' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
5399
+ 'show' => ['btn_state' => 'normal']
5400
+ ),
5401
+ 'pricing_btn_hover_delay' => array(
5402
+ 'type' => 'spinner',
5403
+ 'label' => __pl('btn_hover_delay'),
5404
+ 'min' => 0,
5405
+ 'step' => 100,
5406
+ 'max' => 5000,
5407
+ 'default' => 400,
5408
+ 'css' => ['{{element}} .pagelayer-pricing-btn' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
5409
+ 'show' => ['btn_state' => 'hover'],
5410
+ ),
5411
+ 'pricing_btn_color_hover' => array(
5412
+ 'type' => 'color',
5413
+ 'label' => __pl('iconbox_button_color'),
5414
+ 'default' => '',
5415
+ 'css' => ['{{element}} .pagelayer-pricing-btn:hover' => 'color:{{val}};'],
5416
+ 'show' => ['btn_state' => 'hover'],
5417
+ ),
5418
+ 'pricing_btn_bg_color_hover' => array(
5419
+ 'type' => 'color',
5420
+ 'label' => __pl('button_bg_color_hover'),
5421
+ 'default' => '',
5422
+ 'css' => ['{{element}} .pagelayer-pricing-btn:hover' => 'background-color:{{val}};'],
5423
+ 'show' => ['btn_state' => 'hover'],
5424
+ ),
5425
+ 'price_btn_border_type_hover' => array(
5426
+ 'type' => 'select',
5427
+ 'label' => __pl('border_type'),
5428
+ 'css' => ['{{element}} .pagelayer-pricing-btn:hover' =>'border-style: {{val}};'],
5429
+ 'list' => [
5430
+ '' => __pl('none'),
5431
+ 'solid' => __pl('solid'),
5432
+ 'double' => __pl('double'),
5433
+ 'dotted' => __pl('dotted'),
5434
+ 'dashed' => __pl('dashed'),
5435
+ 'groove' => __pl('groove'),
5436
+ ],
5437
+ 'show' => ['btn_state' => 'hover']
5438
+ ),
5439
+ 'price_btn_border_color_hover' => array(
5440
+ 'type' => 'color',
5441
+ 'label' => __pl('border_color'),
5442
+ 'css' => ['{{element}} .pagelayer-pricing-btn:hover' => 'border-color: {{val}};'],
5443
+ 'req' => ['!price_btn_border_type_hover' => ''],
5444
+ 'show' => ['btn_state' => 'hover']
5445
+ ),
5446
+ 'price_btn_border_width_hover' => array(
5447
+ 'type' => 'padding',
5448
+ 'label' => __pl('border_width'),
5449
+ 'css' => ['{{element}} .pagelayer-pricing-btn:hover' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
5450
+ 'req' => ['!price_btn_border_type_hover' => ''],
5451
+ 'show' => ['btn_state' => 'hover']
5452
+ ),
5453
+ 'price_btn_border_radius_hover' => array(
5454
+ 'type' => 'padding',
5455
+ 'label' => __pl('border_radius'),
5456
+ 'css' => ['{{element}} .pagelayer-pricing-btn:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
5457
+ 'show' => ['btn_state' => 'hover']
5458
+ ),
5459
+ ],
5460
+ 'ribbon_style' => [
5461
+ 'ribbon' => array(
5462
+ 'type' => 'checkbox',
5463
+ 'label' => __pl('ribbion_display'),
5464
+ ),
5465
+ 'ribbon_text' => array(
5466
+ 'type' => 'text',
5467
+ 'label' => __pl('ribbion_text'),
5468
+ 'default' => 'Popular',
5469
+ 'css' => ['{{element}} .pagelayer-pricing-ribbon'=> 'display:inline-block;'],
5470
+ 'req' => array(
5471
+ 'ribbon' => 'true'
5472
+ )
5473
+ ),
5474
+ 'ribbon_text_size' => array(
5475
+ 'type' => 'typography',
5476
+ 'label' => __pl('ribbon_text_size'),
5477
+ 'default' => ',16,,500,,,solid,,,,',
5478
+ 'css' => ['{{element}} .pagelayer-pricing-ribbon' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5479
+ 'req' => array(
5480
+ 'ribbon' => 'true'
5481
+ )
5482
+ ),
5483
+ 'ribbon_text_color' => array(
5484
+ 'type' => 'color',
5485
+ 'label' => __pl('color'),
5486
+ 'default' => '#ffffff',
5487
+ 'css' => ['{{element}} .pagelayer-pricing-ribbon' => 'color:{{val}}'],
5488
+ 'req' => array(
5489
+ 'ribbon' => 'true'
5490
+ )
5491
+ ),
5492
+ 'ribbon_background' => array(
5493
+ 'type' => 'color',
5494
+ 'label' => __pl('background_color'),
5495
+ 'default' => '#fd6129',
5496
+ 'css' => ['{{element}} .pagelayer-pricing-ribbon' => 'background-color:{{val}}'],
5497
+ 'req' => array(
5498
+ 'ribbon' => 'true'
5499
+ )
5500
+ ),
5501
+ ],
5502
+ 'styles' => [
5503
+ 'subtitle_style' => __pl('subtitle'),
5504
+ 'header_style' => __pl('header_style'),
5505
+ 'currency_style' => __pl('currency_style'),
5506
+ 'price_style' => __pl('price_style'),
5507
+ 'period_style' => __pl('period_style'),
5508
+ 'feature_style' => __pl('feature_style'),
5509
+ 'button_style' => __pl('button_style'),
5510
+ 'additional_info' => __pl('addition_info'),
5511
+ 'ribbon_style' => __pl('ribbon_style'),
5512
+ ],
5513
+ )
5514
+ );
5515
+
5516
+ // Social Share Group
5517
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_share_grp', array(
5518
+ 'name' => __pl('social_share'),
5519
+ 'group' => 'button',
5520
+ 'has_group' => [
5521
+ 'section' => 'params',
5522
+ 'prop' => 'elements'
5523
+ ],
5524
+ 'params' => array(
5525
+ 'elements' => array(
5526
+ 'type' => 'group',
5527
+ 'label' => __pl('social_share_grp'),
5528
+ 'sc' => PAGELAYER_SC_PREFIX.'_share',
5529
+ 'item_label' => array(
5530
+ 'default' => __pl('share_item'),
5531
+ 'param' => 'icon'
5532
+ ),
5533
+ 'count' => 3,
5534
+ 'text' => strtr(__pl('add_new_item'), array('%name%' => __pl('share_name'))),
5535
+ ),
5536
+ ),
5537
+ 'layout_style' => [
5538
+ 'type' => array(
5539
+ 'type' => 'select',
5540
+ 'label' => __pl('type'),
5541
+ //'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-style: {{val}}'],
5542
+ 'addClass' => 'pagelayer-share-type-{{val}}',
5543
+ 'default' => 'icon-label',
5544
+ 'list' => [
5545
+ 'icon' => __pl('icon'),
5546
+ 'icon-label' => __pl('icon-label'),
5547
+ 'label' => __pl('label'),
5548
+ ],
5549
+ ),
5550
+ 'count' => array(
5551
+ 'type' => 'radio',
5552
+ 'label' => __pl('count_in_line'),
5553
+ 'default' => '',
5554
+ 'screen' => 1,
5555
+ 'css' => ['{{element}} > div' => 'width: calc(100% / {{val}});'],
5556
+ 'list' => array(
5557
+ '' => __pl('auto'),
5558
+ '1' => '1',
5559
+ '2' => '2',
5560
+ '3' => '3',
5561
+ '4' => '4',
5562
+ '5' => '5',
5563
+ '6' => '6',
5564
+ ),
5565
+ 'req' => array(
5566
+ '!type' => 'icon'
5567
+ )
5568
+ ),
5569
+ 'bg_shape' => array(
5570
+ 'type' => 'select',
5571
+ 'label' => __pl('icon_background_shape'),
5572
+ 'default' => 'pagelayer-social-shape-square',
5573
+ //'css' => ['{{element}} i' => 'height:1em; width:1em; position: absolute; top: 50%; left: 50%; transform: translate(-50% , -50%);',
5574
+ //'{{element}} .pagelayer-icon-holder' => 'position: relative; min-height: 1em; min-width: 1em;'],
5575
+ 'addClass' => '{{val}}',
5576
+ 'list' => array(
5577
+ 'pagelayer-social-bg-none' => __pl('icon_shape_none'),
5578
+ 'pagelayer-social-shape-circle' => __pl('icon_shape_circle'),
5579
+ 'pagelayer-social-shape-square' => __pl('icon_shape_square'),
5580
+ 'pagelayer-social-shape-rounded' => __pl('icon_shape_rounded'),
5581
+ 'pagelayer-social-shape-boxed' => __pl('icon_shape_boxed'),
5582
+ 'pagelayer-social-outline-border' => __pl('icon_shape_outline')
5583
+ ),
5584
+ ),
5585
+ /* 'bg_size' => array(
5586
+ 'type' => 'spinner',
5587
+ 'label' => __pl('social_grp_size_label'),
5588
+ 'css' => ['{{element}} .pagelayer-icon-holder' => 'height: calc(1em + {{val}}px); width: calc(1em + {{val}}px);'],
5589
+ 'min' => 0,
5590
+ 'step' => 1,
5591
+ 'max' => 100,
5592
+ 'default' => 10,
5593
+ 'req' => array(
5594
+ '!bg_shape' => ''
5595
+ )
5596
+ ), */
5597
+ 'align' => array(
5598
+ 'type' => 'radio',
5599
+ 'label' => __pl('obj_align_label'),
5600
+ 'default' => 'center',
5601
+ 'css' => 'text-align: {{val}};',
5602
+ 'screen' => 1,
5603
+ 'list' => array(
5604
+ 'left' => __pl('left'),
5605
+ 'center' => __pl('center'),
5606
+ 'right' => __pl('right')
5607
+ )
5608
+ ),
5609
+ /* 'group_layout' => array(
5610
+ 'type' => 'radio',
5611
+ 'label' => __pl('layout'),
5612
+ 'css' => ['{{element}} > div' => 'display: inline-block;'],
5613
+ 'default' => 'horizontal',
5614
+ 'list' => array(
5615
+ '' => __pl('vertical'),
5616
+ 'horizontal' => __pl('horizontal')
5617
+ )
5618
+ ), */
5619
+ 'vspace' => array(
5620
+ 'type' => 'spinner',
5621
+ 'label' => __pl('space_between_col'),
5622
+ 'css' => ['{{element}} .pagelayer-share' => 'padding-top: {{val}}px; padding-bottom: {{val}}px;'],
5623
+ 'min' => 0,
5624
+ 'step' => 1,
5625
+ 'max' => 100,
5626
+ 'default' => 2,
5627
+ 'screen' => 1,
5628
+ /* 'req' => array(
5629
+ 'group_layout' => 'horizontal'
5630
+ ) */
5631
+ ),
5632
+ 'hspace' => array(
5633
+ 'type' => 'spinner',
5634
+ 'label' => __pl('space_between_row'),
5635
+ 'css' => ['{{element}} .pagelayer-share' => 'padding-left: {{val}}px; padding-right: {{val}}px;'],
5636
+ 'min' => 0,
5637
+ 'step' => 1,
5638
+ 'max' => 100,
5639
+ 'default' => 2,
5640
+ 'screen' => 1,
5641
+ /* 'req' => array(
5642
+ 'group_layout' => ''
5643
+ ) */
5644
+ ),
5645
+ 'height' => array(
5646
+ 'type' => 'slider',
5647
+ 'label' => __pl('height'),
5648
+ 'css' => ['{{element}} .pagelayer-share-content' => 'min-height: {{val}}px;'],
5649
+ 'min' => 0,
5650
+ 'step' => 1,
5651
+ 'max' => 100,
5652
+ 'default' => 35,
5653
+ 'screen' => 1,
5654
+ ),
5655
+ /* 'width' => array(
5656
+ 'type' => 'slider',
5657
+ 'label' => __pl('width'),
5658
+ 'css' => ['{{element}} .pagelayer-share-content' => 'min-width: {{val}}px;'],
5659
+ 'min' => 0,
5660
+ 'step' => 1,
5661
+ 'max' => 100,
5662
+ ), */
5663
+ ],
5664
+ 'icon_style' => [
5665
+ 'icon_size' => array(
5666
+ 'type' => 'spinner',
5667
+ 'label' => __pl('social_grp_size_label'),
5668
+ 'css' => ['{{element}} i' => 'font-size: {{val}}px;',
5669
+ '{{element}} .pagelayer-icon-holder' => 'font-size: {{val}}px;'],
5670
+ 'min' => 1,
5671
+ 'step' => 1,
5672
+ 'max' => 500,
5673
+ 'default' => 25,
5674
+ 'screen' => 1,
5675
+ ),
5676
+ 'icon_space' => array(
5677
+ 'type' => 'spinner',
5678
+ 'label' => __pl('space_around'),
5679
+ 'css' => ['{{element}} .pagelayer-icon-holder' => 'padding-left: calc(0.5em + {{val}}px); padding-right: calc(0.5em + {{val}}px);'],
5680
+ 'min' => 0,
5681
+ 'step' => 1,
5682
+ 'max' => 100,
5683
+ 'default' => 5,
5684
+ 'screen' => 1,
5685
+ ),
5686
+ 'color_scheme' => array(
5687
+ 'type' => 'select',
5688
+ 'label' => __pl('color'),
5689
+ 'default' => 'pagelayer-scheme-official',
5690
+ 'addClass' => '{{val}}',
5691
+ 'list' => array(
5692
+ '' => __pl('custom'),
5693
+ 'pagelayer-scheme-official' => __pl('official')
5694
+ )
5695
+ ),
5696
+ 'social_hover' => array(
5697
+ 'type' => 'radio',
5698
+ 'label' => __pl('state'),
5699
+ 'default' => '',
5700
+ //'no_val' => 1,// Dont set any value to element
5701
+ 'list' => array(
5702
+ '' => __pl('normal'),
5703
+ 'hover' => __pl('hover'),
5704
+ )
5705
+ ),
5706
+ 'icon_color' => array(
5707
+ 'type' => 'color',
5708
+ 'label' => __pl('social_color_label'),
5709
+ 'default' => '#ffffff',
5710
+ 'css' => ['{{element}} .pagelayer-share-buttons i' => 'color: {{val}} !important;'],
5711
+ 'req' => array(
5712
+ 'color_scheme' => ''
5713
+ ),
5714
+ 'show' => ['social_hover' => '']
5715
+ ),
5716
+ 'icon_bg_color' => array(
5717
+ 'type' => 'color',
5718
+ 'label' => __pl('social_bg_color_label'),
5719
+ 'default' => '#0986c0',
5720
+ 'css' => ['{{element}} .pagelayer-share-content' => 'background-color: {{val}} !important;'],
5721
+ 'req' => array(
5722
+ '!bg_shape' => '',
5723
+ 'color_scheme' => ''
5724
+ ),
5725
+ 'show' => ['social_hover' => '']
5726
+ ),
5727
+ 'icon_border_type' => array(
5728
+ 'type' => 'select',
5729
+ 'label' => __pl('border_type'),
5730
+ 'css' => ['{{element}} .pagelayer-share-content' => 'border-style: {{val}}'],
5731
+ 'list' => [
5732
+ '' => __pl('none'),
5733
+ 'solid' => __pl('solid'),
5734
+ 'double' => __pl('double'),
5735
+ 'dotted' => __pl('dotted'),
5736
+ 'dashed' => __pl('dashed'),
5737
+ 'groove' => __pl('groove'),
5738
+ ],
5739
+ 'show' => ['social_hover' => '']
5740
+ ),
5741
+ 'icon_border_color' => array(
5742
+ 'type' => 'color',
5743
+ 'label' => __pl('service_box_icon_border_color_label'),
5744
+ 'default' => '#42414f',
5745
+ 'css' => ['{{element}} .pagelayer-share-content' => 'border-color: {{val}} !important;'],
5746
+ 'req' => array(
5747
+ '!icon_border_type' => '',
5748
+ 'color_scheme' => ''
5749
+ ),
5750
+ 'show' => ['social_hover' => '']
5751
+ ),
5752
+ 'icon_border_width' => array(
5753
+ 'type' => 'padding',
5754
+ 'label' => __pl('border_width'),
5755
+ 'screen' => 1,
5756
+ 'css' => ['{{element}} .pagelayer-share-content' => 'border-top-width: {{val[0]}}px !important; border-right-width: {{val[1]}}px !important; border-bottom-width: {{val[2]}}px !important; border-left-width: {{val[3]}}px !important'],
5757
+ 'req' => [
5758
+ '!icon_border_type' => ''
5759
+ ],
5760
+ 'show' => ['social_hover' => '']
5761
+ ),
5762
+ 'icon_border_radius' => array(
5763
+ 'type' => 'padding',
5764
+ 'label' => __pl('border_radius'),
5765
+ 'screen' => 1,
5766
+ 'css' => ['{{element}} .pagelayer-share-content' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
5767
+ 'req' => array(
5768
+ '!icon_border_type' => ''
5769
+ ),
5770
+ 'show' => ['social_hover' => '']
5771
+ ),
5772
+ 'social_hover_delay' => array(
5773
+ 'type' => 'spinner',
5774
+ 'label' => __pl('btn_hover_delay_label'),
5775
+ 'desc' => __pl('btn_hover_delay_desc'),
5776
+ 'min' => 0,
5777
+ 'step' => 100,
5778
+ 'max' => 5000,
5779
+ 'default' => 400,
5780
+ 'css' => ['{{element}} .pagelayer-share-content' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;',
5781
+ '{{element}} .pagelayer-share-content i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
5782
+ 'show' => array(
5783
+ 'social_hover' => 'hover'
5784
+ ),
5785
+ ),
5786
+ 'icon_color_hover' => array(
5787
+ 'type' => 'color',
5788
+ 'label' => __pl('social_color_label'),
5789
+ 'css' => ['{{element}} .pagelayer-share-buttons:hover i' => 'color: {{val}} !important;'],
5790
+ 'req' => array(
5791
+ 'color_scheme' => ''
5792
+ ),
5793
+ 'show' => ['social_hover' => 'hover']
5794
+ ),
5795
+ 'icon_bg_color_hover' => array(
5796
+ 'type' => 'color',
5797
+ 'label' => __pl('social_bg_color_label'),
5798
+ 'css' => ['{{element}} .pagelayer-share-content:hover' => 'background-color: {{val}} !important;'],
5799
+ 'req' => array(
5800
+ '!bg_shape' => '',
5801
+ 'color_scheme' => ''
5802
+ ),
5803
+ 'show' => ['social_hover' => 'hover']
5804
+ ),
5805
+ 'icon_border_type_hover' => array(
5806
+ 'type' => 'select',
5807
+ 'label' => __pl('border_type'),
5808
+ 'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-style: {{val}}'],
5809
+ 'list' => [
5810
+ '' => __pl('none'),
5811
+ 'solid' => __pl('solid'),
5812
+ 'double' => __pl('double'),
5813
+ 'dotted' => __pl('dotted'),
5814
+ 'dashed' => __pl('dashed'),
5815
+ 'groove' => __pl('groove'),
5816
+ ],
5817
+ 'show' => ['social_hover' => 'hover']
5818
+ ),
5819
+ 'icon_border_color_hover' => array(
5820
+ 'type' => 'color',
5821
+ 'label' => __pl('border_color_hover_label'),
5822
+ 'default' => '#42414f',
5823
+ 'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-color: {{val}} !important;'],
5824
+ 'req' => array(
5825
+ '!icon_border_type_hover' => '',
5826
+ 'color_scheme' => ''
5827
+ ),
5828
+ 'show' => ['social_hover' => 'hover']
5829
+ ),
5830
+ 'icon_border_width_hover' => array(
5831
+ 'type' => 'padding',
5832
+ 'label' => __pl('border_width_hover'),
5833
+ 'screen' => 1,
5834
+ 'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-top-width: {{val[0]}}px !important; border-right-width: {{val[1]}}px !important; border-bottom-width: {{val[2]}}px !important; border-left-width: {{val[3]}}px !important'],
5835
+ 'req' => [
5836
+ '!icon_border_type_hover' => ''
5837
+ ],
5838
+ 'show' => ['social_hover' => 'hover']
5839
+ ),
5840
+ 'icon_border_radius_hover' => array(
5841
+ 'type' => 'padding',
5842
+ 'label' => __pl('border_radius_hover'),
5843
+ 'screen' => 1,
5844
+ 'css' => ['{{element}} .pagelayer-share-content:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
5845
+ 'req' => array(
5846
+ '!icon_border_type_hover' => ''
5847
+ ),
5848
+ 'show' => ['social_hover' => 'hover']
5849
+ ),
5850
+ ],
5851
+ 'label_style' => [
5852
+ 'hide_name' => array(
5853
+ 'type' => 'checkbox',
5854
+ 'label' => __pl('hide_name'),
5855
+ 'screen' => 1,
5856
+ 'css' => ['{{element}} .pagelayer-icon-name span' => 'display: none;'],
5857
+ ),
5858
+ 'name_typo' => array(
5859
+ 'type' => 'typography',
5860
+ 'label' => __pl('quote_content_typo'),
5861
+ 'default' => ',15,,,,,solid,,,,',
5862
+ 'screen' => 1,
5863
+ 'css' => ['{{element}} .pagelayer-icon-name' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
5864
+ ),
5865
+ ],
5866
+ 'styles' => [
5867
+ 'layout_style' => __pl('layout_style'),
5868
+ 'icon_style' => __pl('icon_style'),
5869
+ 'label_style' => __pl('label_style'),
5870
+ ]
5871
+ )
5872
+ );
5873
+
5874
+ // Social Share Button
5875
+ pagelayer_freemium_shortcode(PAGELAYER_SC_PREFIX.'_share', array(
5876
+ 'name' => __pl('icon'),
5877
+ 'group' => 'button',
5878
+ 'not_visible' => 1,
5879
+ 'html' => '
5880
+ <a class="pagelayer-ele-link" title="{{icon}}" href="{{social_url}}" target="_blank">
5881
+ <div class="pagelayer-share-content">
5882
+ <div class="pagelayer-icon-holder pagelayer-share-buttons">
5883
+ <i class="pagelayer-social-fa {{icon}}"></i>
5884
+ </div>
5885
+ <div class="pagelayer-icon-name">
5886
+ <span class="pagelayer-icon-name-span">{{icon_label}}</span>
5887
+ </div>
5888
+ </div>
5889
+ </a>',
5890
+ 'params' => array(
5891
+ 'icon' => array(
5892
+ 'type' => 'icon',
5893
+ 'label' => __pl('list_icon_label'),
5894
+ 'default' => 'fab fa-facebook-square',
5895
+ 'addAttr' => ['{{element}} .pagelayer-share-content' => 'data-icon="{{icon}}"'],
5896
+ 'list' => ['facebook', 'facebook-f', 'facebook-square', 'facebook-messenger', 'twitter', 'twitter-square', 'google-plus', 'google-plus-square', 'google-plus-g', 'instagram', 'linkedin', 'linkedin-in', 'pinterest', 'pinterest-p', 'pinterest-square', 'reddit-alien', 'reddit-square', 'reddit', 'skype', 'stumbleupon', 'stumbleupon-circle', 'telegram', 'telegram-plane', 'tumblr', 'tumblr-square', 'vk', 'weibo', 'whatsapp', 'whatsapp-square', 'wordpress', 'wordpress-simple', 'xing', 'xing-square', 'delicious', 'dribbble', 'dribbble-square', 'snapchat-ghost'],
5897
+ ),
5898
+ 'text' => array(
5899
+ 'type' => 'text',
5900
+ 'label' => __pl('custom_label_text'),
5901
+ 'edit' => '.pagelayer-icon-name-span'
5902
+ ),
5903
+ 'target' => array(
5904
+ 'label' => __pl('open_link_in_new_window'),
5905
+ 'type' => 'checkbox',
5906
+ 'addAttr' => ['{{element}} a' => 'target="_blank"'],
5907
+ ),
5908
+ )
5909
+ )
5910
+ );
5911
+
5912
+
5913
+
5914
+ // Animated heading
5915
+ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_anim_heading', array(
5916
+ 'name' => __pl('animated_heading'),
5917
+ 'group' => 'text',
5918
+ 'innerHTML' => 'text',
5919
+ 'html' => '<a if-ext="{{link}}" href="{{link}}">
5920
+ <div class="pagelayer-aheading-holder {{rotate_req}}{{animations}}">
5921
+ <p if="{{text}}" class="pagelayer-animated-heading pagelayer-animated-title">{{text}}&nbsp;</p>{{rotate_html}}
5922
+ <p if="{{after_text}}" class="pagelayer-animated-heading">{{after_text}}</p>
5923
+ <div class="pagelayer-blobs_1"></div><div class="pagelayer-blobs_2"></div><div class="pagelayer-blobs_3"></div><div class="pagelayer-blobs_4"></div><div class="pagelayer-blobs_5"></div><div class="pagelayer-blobs_6"></div><div class="pagelayer-blobs_7"></div>
5924
+ </div>
5925
+ </a>',
5926
+ 'params' => array(
5927
+ 'type' => array(
5928
+ 'type' => 'select',
5929
+ 'label' => __pl('type'),
5930
+ 'default' => 'effects',
5931
+ 'addClass' => 'pagelayer-heading-{{val}}',
5932
+ 'list' => array(
5933
+ 'effects' => __pl('effects'),
5934
+ 'rotating' => __pl('rotating'),
5935
+ ),
5936
+ ),
5937
+ 'effects' => array(
5938
+ 'type' => 'select',
5939
+ 'label' => __pl('effects'),
5940
+ 'default' => 'blobs',
5941
+ 'addClass' => 'pagelayer-hEffect-{{val}}',
5942
+ 'list' => array(
5943
+ 'none' => __pl('none'),
5944
+ 'blobs' => __pl('blobs'),
5945
+ 'stroke' => __pl('stroke'),
5946
+ 'shadow' => __pl('shadow'),
5947
+ ),
5948
+ 'req' => [ 'type' => 'effects' ]
5949
+ ),
5950
+ 'animations' => array(
5951
+ 'type' => 'select',
5952
+ 'label' => __pl('effects'),
5953
+ 'default' => 'pagelayer-aheading-rotate1',
5954
+ 'list' => array(
5955
+ 'pagelayer-aheading-rotate1' => __pl('rotate-1'),
5956
+ 'pagelayer-aheading-rotate2' => __pl('rotate-2'),
5957
+ 'pagelayer-aheading-rotate3' => __pl('rotate-3'),
5958
+ 'pagelayer-aheading-loading-bar' => __pl('loading-bar'),
5959
+ 'pagelayer-aheading-slide' => __pl('slide'),
5960
+ 'pagelayer-aheading-clip' => __pl('clip'),
5961
+ 'pagelayer-aheading-zoom' => __pl('zoom'),
5962
+ 'pagelayer-aheading-scale' => __pl('scale'),
5963
+ 'pagelayer-aheading-push' => __pl('push'),
5964
+ ),
5965
+ 'req' => [ 'type' => 'rotating' ]
5966
+ ),
5967
+ 'align' => array(
5968
+ 'type' => 'radio',
5969
+ 'label' => __pl('alignment'),
5970
+ 'default' => 'center',
5971
+ 'screen' => 1,
5972
+ 'css' => 'text-align: {{val}};',
5973
+ 'list' => array(
5974
+ 'left' => __pl('left'),
5975
+ 'center' => __pl('center'),
5976
+ 'right' => __pl('right'),
5977
+ )
5978
+ ),
5979
+ ),
5980
+ 'title_style' => [
5981
+ 'text' => array(
5982
+ 'type' => 'text',
5983
+ 'label' => __pl('title'),
5984
+ 'default' => __pl('animated_heading'),
5985
+ 'edit' => '.pagelayer-animated-title',
5986
+ ),
5987
+ 'rotate_text' => array(
5988
+ 'type' => 'textarea',
5989
+ 'label' => __pl('rotate_text'),
5990
+ 'default' => __pl('rotate_default'),
5991
+ 'req' => [ 'type' => 'rotating' ]
5992
+ ),
5993
+ 'after_text' => array(
5994
+ 'type' => 'text',
5995
+ 'label' => __pl('after_text'),
5996
+ 'req' => [ 'type' => 'rotating' ]
5997
+ ),
5998
+ 'typo' => array(
5999
+ 'type' => 'typography',
6000
+ 'label' => __pl('typography'),
6001
+ 'screen' => 1,
6002
+ 'default' => ',40,,700,,,solid,,,,',
6003
+ 'css' => ['{{element}} .pagelayer-animated-heading' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
6004
+ ),
6005
+ 'color_type' => array(
6006
+ 'type' => 'radio',
6007
+ 'label' => __pl(''),
6008
+ 'default' => 'color',
6009
+ 'list' => array(
6010
+ 'color' => __pl('color'),
6011
+ 'gradient' => __pl('gradient'),
6012
+ ),
6013
+ ),
6014
+ 'color' => array(
6015
+ 'type' => 'color',
6016
+ 'label' => __pl('color'),
6017
+ 'default' => '#A236FA',
6018
+ 'css' => [
6019
+ '{{element}} .pagelayer-animated-heading' => 'background:{{val}}; -webkit-background-clip: text;',
6020
+ '{{element}}.pagelayer-hEffect-shadow .pagelayer-animated-heading' => 'color:{{val}};',
6021
+ '{{element}} .pagelayer-rotating-text *' => 'background:{{val}}; -webkit-background-clip: text;',
6022
+ '{{element}} .pagelayer-aheading-loading-bar .pagelayer-words-wrapper:after' => 'background:{{val}};',
6023
+ '{{element}} .pagelayer-aheading-clip .pagelayer-words-wrapper:after' => 'background:{{val}};'
6024
+ ],
6025
+ 'req' => ['color_type' => 'color']
6026
+ ),
6027
+ 'gradient' => array(
6028
+ 'type' => 'gradient',
6029
+ 'label' => '',
6030
+ 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
6031
+ 'css' => [
6032
+ '{{element}} .pagelayer-animated-heading' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%); -webkit-background-clip: text;',
6033
+ '{{element}} .pagelayer-rotating-text *' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%); -webkit-background-clip: text;',
6034
+ '{{element}} .pagelayer-aheading-loading-bar .pagelayer-words-wrapper:after' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);',
6035
+ '{{element}} .pagelayer-aheading-clip .pagelayer-words-wrapper:after' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'
6036
+ ],
6037
+ 'req' => [
6038
+ 'color_type' => 'gradient',
6039
+ '!effects' => 'shadow'
6040
+ ]
6041
+ ),
6042
+ ],
6043
+ 'misc_style' => [
6044
+ 'blob_1' => array(
6045
+ 'type' => 'color',
6046
+ 'label' => __pl('blob_1_color'),
6047
+ 'default' => '#ff1493',
6048
+ 'css' => ['{{element}} .pagelayer-blobs_1' => 'background:{{val}}'],
6049
+ 'req' => [
6050
+ 'effects' => 'blobs',
6051
+ 'type' => 'effects'
6052
+ ]
6053
+ ),
6054
+ 'blob_2' => array(
6055
+ 'type' => 'color',
6056
+ 'label' => __pl('blob_2_color'),
6057
+ 'default' => '#ff4500',
6058
+ 'css' => ['{{element}} .pagelayer-blobs_2' => 'background:{{val}}'],
6059
+ 'req' => [
6060
+ 'effects' => 'blobs',
6061
+ 'type' => 'effects'
6062
+ ]
6063
+ ),
6064
+ 'blob_3' => array(
6065
+ 'type' => 'color',
6066
+ 'label' => __pl('blob_3_color'),
6067
+ 'default' => '#00ff00',
6068
+ 'css' => ['{{element}} .pagelayer-blobs_3' => 'background:{{val}}'],
6069
+ 'req' => [
6070
+ 'effects' => 'blobs',
6071
+ 'type' => 'effects'
6072
+ ]
6073
+ ),
6074
+ 'blob_4' => array(
6075
+ 'type' => 'color',
6076
+ 'label' => __pl('blob_4_color'),
6077
+ 'default' => '#ff0000',
6078
+ 'css' => ['{{element}} .pagelayer-blobs_4' => 'background:{{val}}'],
6079
+ 'req' => [
6080
+ 'effects' => 'blobs',
6081
+ 'type' => 'effects'
6082
+ ]
6083
+ ),
6084
+ 'blob_5' => array(
6085
+ 'type' => 'color',
6086
+ 'label' => __pl('blob_5_color'),
6087
+ 'default' => '#ffff00',
6088
+ 'css' => ['{{element}} .pagelayer-blobs_5' => 'background:{{val}}'],
6089
+ 'req' => [
6090
+ 'effects' => 'blobs',
6091
+ 'type' => 'effects'
6092
+ ]
6093
+ ),
6094
+ 'blob_6' => array(
6095
+ 'type' => 'color',
6096
+ 'label' => __pl('blob_6_color'),
6097
+ 'default' => '#00ffff',
6098
+ 'css' => ['{{element}} .pagelayer-blobs_6' => 'background:{{val}}'],
6099
+ 'req' => [
6100
+ 'effects' => 'blobs',
6101
+ 'type' => 'effects'
6102
+ ]
6103
+ ),
6104
+ 'blob_7' => array(
6105
+ 'type' => 'color',
6106
+ 'label' => __pl('blob_7_color'),
6107
+ 'default' => '#ff8c00',
6108
+ 'css' => ['{{element}} .pagelayer-blobs_7' => 'background:{{val}}'],
6109
+ 'req' => [
6110
+ 'effects' => 'blobs',
6111
+ 'type' => 'effects'
6112
+ ]
6113
+ ),
6114
+ 'stroke' => array(
6115
+ 'type' => 'slider',
6116
+ 'label' => __pl('stroke_thickness'),
6117
+ 'min' => 1,
6118
+ 'step' => 1,
6119
+ 'max' => 50,
6120
+ 'default' => 5,
6121
+ 'screen' => 1,
6122
+ 'css' => ['{{element}} .pagelayer-animated-heading' => '-webkit-text-stroke: {{val}}px transparent;'],
6123
+ 'req' => [ 'effects' => 'stroke' ]
6124
+ ),
6125
+ 'stroke_color' => array(
6126
+ 'type' => 'color',
6127
+ 'label' => __pl('stroke_color'),
6128
+ 'default' => '#ffffff',
6129
+ 'css' => ['{{element}} .pagelayer-animated-heading' => 'color:{{val}}'],
6130
+ 'req' => [ 'effects' => 'stroke' ]
6131
+ ),
6132
+ 'shadow_color' => array(
6133
+ 'type' => 'shadow',
6134
+ 'label' => __pl('shadow'),
6135
+ 'default' => '2,2,,#999999',
6136
+ 'screen' => 1,
6137
+ 'css' => ['{{element}} .pagelayer-animated-heading' => 'text-shadow: {{val[0]}}px {{val[1]}}px #fff, calc({{val[0]}}px * 2) calc({{val[1]}}px * 2) {{val[3]}};'],
6138
+ 'req' => [ 'effects' => 'shadow' ]
6139
+ ),
6140
+ 'rotate_color' => array(
6141
+ 'type' => 'color',
6142
+ 'label' => __pl('rotate_color'),
6143
+ 'css' => [
6144
+ '{{element}} .pagelayer-rotating-text *' => 'background:{{val}}; -webkit-background-clip: text;',
6145
+ '{{element}} .pagelayer-aheading-loading-bar .pagelayer-words-wrapper:after' => 'background:{{val}};',
6146
+ '{{element}} .pagelayer-aheading-clip .pagelayer-words-wrapper:after' => 'background:{{val}};'
6147
+ ],
6148
+ 'req' => ['type' => 'rotating']
6149
+ ),
6150
+ ],
6151
+ 'styles' => [
6152
+ 'title_style' => __pl('title_style'),
6153
+ 'misc_style' => __pl('misc_style'),
6154
+ ]
6155
+ )
6156
+ );
main/freemium_functions.php ADDED
@@ -0,0 +1,831 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ //////////////////////////////////////////////////////////////
4
+ //===========================================================
5
+ // freemium_functions.php
6
+ //===========================================================
7
+ // PAGELAYER
8
+ // Inspired by the DESIRE to be the BEST OF ALL
9
+ // ----------------------------------------------------------
10
+ // Started by: Pulkit Gupta
11
+ // Date: 23rd Jan 2017
12
+ // Time: 23:00 hrs
13
+ // Site: http://pagelayer.com/wordpress (PAGELAYER)
14
+ // ----------------------------------------------------------
15
+ // Please Read the Terms of use at http://pagelayer.com/tos
16
+ // ----------------------------------------------------------
17
+ //===========================================================
18
+ // (c)Pagelayer Team
19
+ //===========================================================
20
+ //////////////////////////////////////////////////////////////
21
+
22
+ // Are we being accessed directly ?
23
+ if(!defined('PAGELAYER_VERSION')) {
24
+ exit('Hacking Attempt !');
25
+ }
26
+
27
+ // Get page title - 2C
28
+ function pagelayer_get_the_title( $including_context = false ) {
29
+ $title = '';
30
+
31
+ if(pagelayer_is_live() || wp_doing_ajax()){
32
+ return 'Title';
33
+ }
34
+
35
+ if ( is_singular() ) {
36
+ $title = get_the_title();
37
+
38
+ if ( $including_context ) {
39
+ $post_type_obj = get_post_type_object( get_post_type() );
40
+ $title = sprintf( '%s: %s', $post_type_obj->labels->singular_name, $title );
41
+ }
42
+ } elseif ( is_search() ) {
43
+ $title = sprintf( __( 'Search Results for: %s'), get_search_query() );
44
+
45
+ if ( get_query_var( 'paged' ) ) {
46
+ $title .= sprintf( __( '&nbsp;&ndash; Page %s' ), get_query_var( 'paged' ) );
47
+ }
48
+ } elseif ( is_category() ) {
49
+ $title = single_cat_title( '', false );
50
+
51
+ if ( $including_context ) {
52
+ $title = sprintf( __( 'Category Archives: %s' ), $title );
53
+ }
54
+ } elseif ( is_tag() ) {
55
+ $title = single_tag_title( '', false );
56
+ if ( $including_context ) {
57
+ $title = sprintf( __( 'Tag Archives: %s' ), $title );
58
+ }
59
+ } elseif ( is_author() ) {
60
+ $title = get_the_author() ;
61
+
62
+ if ( $including_context ) {
63
+ $title = sprintf( __( 'Author Archives: %s' ), $title );
64
+ }
65
+ } elseif ( is_year() ) {
66
+ $title = get_the_date( _x( 'Y', 'yearly archives date format' ) );
67
+
68
+ if ( $including_context ) {
69
+ $title = sprintf( __( 'Yearly Archives: %s' ), $title );
70
+ }
71
+ } elseif ( is_month() ) {
72
+ $title = get_the_date( _x( 'F Y', 'monthly archives date format' ) );
73
+
74
+ if ( $including_context ) {
75
+ $title = sprintf( __( 'Monthly Archives: %s' ), $title );
76
+ }
77
+ } elseif ( is_day() ) {
78
+ $title = get_the_date( _x( 'F j, Y', 'daily archives date format' ) );
79
+
80
+ if ( $including_context ) {
81
+ $title = sprintf( __( 'Daily Archives: %s' ), $title );
82
+ }
83
+ } elseif ( is_tax( 'post_format' ) ) {
84
+ if ( is_tax( 'post_format', 'post-format-aside' ) ) {
85
+ $title = _x( 'Asides', 'post format archive title' );
86
+ } elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) {
87
+ $title = _x( 'Galleries', 'post format archive title' );
88
+ } elseif ( is_tax( 'post_format', 'post-format-image' ) ) {
89
+ $title = _x( 'Images', 'post format archive title' );
90
+ } elseif ( is_tax( 'post_format', 'post-format-video' ) ) {
91
+ $title = _x( 'Videos', 'post format archive title' );
92
+ } elseif ( is_tax( 'post_format', 'post-format-quote' ) ) {
93
+ $title = _x( 'Quotes', 'post format archive title' );
94
+ } elseif ( is_tax( 'post_format', 'post-format-link' ) ) {
95
+ $title = _x( 'Links', 'post format archive title' );
96
+ } elseif ( is_tax( 'post_format', 'post-format-status' ) ) {
97
+ $title = _x( 'Statuses', 'post format archive title' );
98
+ } elseif ( is_tax( 'post_format', 'post-format-audio' ) ) {
99
+ $title = _x( 'Audio', 'post format archive title' );
100
+ } elseif ( is_tax( 'post_format', 'post-format-chat' ) ) {
101
+ $title = _x( 'Chats', 'post format archive title' );
102
+ }
103
+ } elseif ( is_post_type_archive() ) {
104
+ $title = post_type_archive_title( '', false );
105
+
106
+ if ( $including_context ) {
107
+ $title = sprintf( __( 'Archives: %s' ), $title );
108
+ }
109
+ } elseif ( is_tax() ) {
110
+ $title = single_term_title( '', false );
111
+
112
+ if ( $including_context ) {
113
+ $tax = get_taxonomy( get_queried_object()->taxonomy );
114
+ $title = sprintf( __( '%1$s: %2$s' ), $tax->labels->singular_name, $title );
115
+ }
116
+ } elseif ( is_404() ) {
117
+ $title = __( 'Page Not Found' );
118
+ } elseif ( is_archive() ) {
119
+ $title = get_the_archive_title();
120
+ } elseif ( is_home() ) {
121
+ $title = single_post_title('', false);
122
+ }
123
+
124
+ return $title;
125
+ }
126
+
127
+ // Get Taxonomies
128
+ function pagelayer_tax_list($item = '', $page = false){
129
+
130
+ // Get types
131
+ $types = pagelayer_post_types($page);
132
+
133
+ // Loop thru
134
+ foreach($types as $slug => $label){
135
+
136
+ // Get the items
137
+ $items = get_object_taxonomies($slug, 'objects');
138
+
139
+ foreach($items as $name => $v) {
140
+ if(!isset($taxonomies[$name])){
141
+ $taxonomies[$name] = array('label' => $v->labels->singular_name, 'posttypes' => array($label));
142
+ }else{
143
+ $taxonomies[$name]['posttypes'][] = $label;
144
+ }
145
+ }
146
+ }
147
+
148
+ // Make it simple
149
+ foreach($taxonomies as $k => $v){
150
+ $taxonomies[$k] = $v['label'].' ('.implode(', ', $v['posttypes']).')';
151
+ }
152
+
153
+ $pos = array_search($item, array_keys($taxonomies));
154
+ if(!empty($pos)) {
155
+ $cut = array_splice($taxonomies, $pos, 1);
156
+ $taxonomies = $cut + $taxonomies;
157
+ }
158
+
159
+ return $taxonomies;
160
+ }
161
+
162
+ /////////////////////////////////////
163
+ // Miscellaneous Shortcode Functions
164
+ /////////////////////////////////////
165
+
166
+ // The types of Posts
167
+ function pagelayer_post_types($page = false){
168
+
169
+ // Get the types
170
+ $args = array('public' => TRUE);
171
+ $types = get_post_types($args, 'objects');
172
+
173
+ // Unset Page if not required
174
+ if($page == false){
175
+ unset($types['page']);
176
+ }
177
+
178
+ // Remove Attachment types !
179
+ unset($types['attachment']);
180
+
181
+ foreach($types as $name => $type){
182
+ $return[$name] = $type->labels->singular_name;
183
+ }
184
+
185
+ return $return;
186
+ }
187
+
188
+ // Get all posts and pages list
189
+ function pagelayer_get_posts($args = array()){
190
+
191
+ if(empty($args)){
192
+ $args = array_keys(pagelayer_post_types(true));
193
+ }
194
+
195
+ $posts_list = array();
196
+
197
+ // Get type
198
+ foreach($args as $p){
199
+
200
+ // Create post list
201
+ foreach(get_posts(['post_type' => $p]) as $post){
202
+ $posts_list[$post->ID] = $post->post_title;
203
+ }
204
+ }
205
+
206
+ return $posts_list;
207
+ }
208
+
209
+ // Get Menu List()
210
+ function pagelayer_get_menu_list($return_def = false){
211
+
212
+ $menus = wp_get_nav_menus();
213
+ $nav_menu = array();
214
+
215
+ $default = $menus[0]->term_id;
216
+
217
+ foreach ( $menus as $menu ) {
218
+ $nav_menu[$menu->term_id] = $menu->name;
219
+
220
+ if($default > $menu->term_id){
221
+ $default = $menu->term_id;
222
+ }
223
+ }
224
+
225
+ if($return_def){
226
+ return $default;
227
+ }
228
+
229
+ return $nav_menu;
230
+
231
+ }
232
+
233
+ // Animated Heading
234
+ function pagelayer_sc_anim_heading(&$el){
235
+
236
+ $el['atts']['rotate_html'] = '';
237
+
238
+ //Creates html for rotating text
239
+ if(!empty($el['atts']['rotate_text'])){
240
+
241
+ $rotate_text = '';
242
+ $rotate_text = explode(',', $el['atts']['rotate_text']);
243
+
244
+ $el['atts']['rotate_html'] .= '<p class="pagelayer-animated-heading pagelayer-rotating-text pagelayer-words-wrapper">';
245
+ //print_r($rotate_text);
246
+ foreach($rotate_text as $key => $val){
247
+ //print_r($key);
248
+ $el['atts']['rotate_html'] .= '<span';
249
+ if( $key == 0){
250
+ $el['atts']['rotate_html'] .= ' class="pagelayer-is-visible"';
251
+ }
252
+ $el['atts']['rotate_html'] .= '>' . $rotate_text[$key] . '</span>';
253
+ }
254
+
255
+ $el['atts']['rotate_html'] .= '</p>';
256
+
257
+ }
258
+
259
+ //Required classes for particular rotate
260
+ $el['atts']['rotate_req'] = '';
261
+ $letters = ['rotate-2','rotate-3','type','scale'];
262
+
263
+ if(!empty($el['atts']['animations'])){
264
+ if(in_array($el['atts']['animations'], $letters)){
265
+ $el['atts']['rotate_req'] = 'letters ';
266
+ }
267
+
268
+ if($el['atts']['animations'] == 'clip'){
269
+ $el['atts']['rotate_req'] = 'is-full-width ';
270
+ }
271
+ }
272
+
273
+ }
274
+
275
+ // Contact Form
276
+ function pagelayer_sc_contact(&$el){
277
+ $el['atts']['grecaptcha'] = get_option('pagelayer_google_captcha');
278
+
279
+ if(!empty($el['atts']['captcha'])){
280
+ if(!wp_script_is('pagelayer_cap_script', 'registered')){
281
+ $pagelayer_cap_lang = get_option('pagelayer_google_captcha_lang');
282
+ $lang = empty($pagelayer_cap_lang) ? '' : '&hl='.$pagelayer_cap_lang;
283
+ wp_register_script('pagelayer_cap_script', "https://www.google.com/recaptcha/api.js?render=explicit$lang", array(), PAGELAYER_VERSION, true);
284
+ }
285
+
286
+ wp_enqueue_script('pagelayer_cap_script');
287
+ }
288
+ }
289
+
290
+ // Contact Form Item
291
+ function pagelayer_sc_contact_item(&$el){
292
+ $html = '';
293
+ $options = array();
294
+ $placeholder = '';
295
+ $required = '';
296
+
297
+ if(!empty($el['atts']['required'])){
298
+ $required = 'required';
299
+ }
300
+
301
+ if(!empty($el['atts']['label_name']) && empty($el['atts']['label_as_holder'])){
302
+ $html = '<label for="'.$el['atts']['field_name'].'"><span class="pagelayer-form-label">'.$el['atts']['label_name'].'</span>';
303
+
304
+ if(!empty($required)){
305
+ $html .= ' *';
306
+ }
307
+
308
+ $html .= '</label>';
309
+ }
310
+
311
+ if(!empty($el['atts']['label_as_holder'])){
312
+ $placeholder = $el['atts']['label_name'];
313
+ }else{
314
+ if(!empty($el['atts']['placeholder'])) $placeholder = $el['atts']['placeholder'];
315
+ }
316
+
317
+ // File accept
318
+ $file_accept = '.jpg,.jpeg,.png,.gif,.pdf,.doc,.docx,.ppt,.pptx,.odt,.avi,.ogg,.m4a,.mov,.mp3,.mp4,.mpg,.wav,.wmv';
319
+
320
+ if(!empty($el['atts']['accept_file'])){
321
+ $file_accept = $el['atts']['accept_file'];
322
+ }
323
+
324
+ if($el['atts']['field_type'] == 'select'){
325
+
326
+ $html .= '<select name="'.$el['atts']['field_name'].'" '.$required.'>';
327
+
328
+ if(!empty($el['atts']['label_name']) && !empty($el['atts']['label_as_holder'])){
329
+ $html .= '<option value="" disabled selected>'.$el['atts']['label_name'].'</option>';
330
+ }else{
331
+ $html .= '<option value="" disabled selected>---</option>';
332
+ }
333
+
334
+ if(!empty($el['atts']['values'])){
335
+ $options = explode("\n", $el['atts']['values']);
336
+ for($x = 0; $x < sizeof($options); $x++){
337
+ $html .= '<option value="'.trim($options[$x]).'" >'.trim($options[$x]).'</option>';
338
+ }
339
+ }
340
+ $html .= '</select>';
341
+ }elseif($el['atts']['field_type'] == 'checkbox'){
342
+ $html .= '<div class="pagelayer-radcheck-holder">';
343
+ if(!empty($el['atts']['values'])){
344
+ $options = explode("\n", $el['atts']['values']);
345
+ for($x = 0; $x < sizeof($options); $x++){
346
+ $html .= '<div><input type="checkbox" id="'.trim($options[$x]).'" name="'.$el['atts']['field_name'].'" '.$required.' value="'.trim($options[$x]).'"/><label for="'.trim($options[$x]).'" class="pagelayer-form-label">'.trim($options[$x]).'</label></div>';
347
+ }
348
+ }
349
+ $html .= '</div>';
350
+ }elseif($el['atts']['field_type'] == 'radio'){
351
+ $html .= '<div class="pagelayer-radcheck-holder">';
352
+ if(!empty($el['atts']['values'])){
353
+ $options = explode("\n", $el['atts']['values']);
354
+ for($x = 0; $x < sizeof($options); $x++){
355
+ $html .= '<div><input type="radio" name="'.$el['atts']['field_name'].'"'.$required.' value="'.trim($options[$x]).'"/><span>
356
+ '.trim($options[$x]).'</span></div>';
357
+ }
358
+ }
359
+ $html .= '</div>';
360
+ }elseif($el['atts']['field_type'] == 'textarea'){
361
+ $html .= '<textarea name="'.$el['atts']['field_name'].'" rows="'.$el['atts']['textarea_rows'].'" '.$required.' placeholder="'.$placeholder.'"></textarea>';
362
+ }elseif($el['atts']['field_type'] == 'file'){
363
+ $html .= '<input type="'.$el['atts']['field_type'].'" '.$required.' name="'.$el['atts']['field_name'].'" accept="'.$file_accept.'" />';
364
+ }else{
365
+ $html .= '<input type="'.$el['atts']['field_type'].'" '.$required.' placeholder="'.$placeholder.'" name="'.$el['atts']['field_name'].'" />';
366
+ }
367
+
368
+ $el['atts']['fieldhtml'] = $html;
369
+ }
370
+
371
+ // Featured Image Handler
372
+ function pagelayer_sc_featured_img(&$el){
373
+
374
+ // Image size
375
+ if(!empty($el['atts']['size'])){
376
+ $size = $el['atts']['size'];
377
+ }
378
+
379
+ if($size){
380
+ $src = get_the_post_thumbnail_url(null, $size);
381
+ }else{
382
+ $src = get_the_post_thumbnail_url();
383
+ }
384
+
385
+ if(empty($src)){
386
+ $src = !empty($el['tmp']['img-'.$size.'-url']) ? @$el['tmp']['img-'.$size.'-url'] : @$el['tmp']['img-url'];
387
+ }
388
+
389
+ $el['atts']['img_html'] = '';
390
+
391
+ if(!empty($src)){
392
+ $el['atts']['img_html'] = '<img class="pagelayer-img" src="'.$src.'" />';
393
+ }elseif(pagelayer_is_live_template()){
394
+ $el['atts']['img_html'] = '<img class="pagelayer-img" src="'.PAGELAYER_URL.'/images/default-image.png" />';
395
+ }
396
+
397
+ // What is the link ?
398
+ if(!empty($el['atts']['link_type'])){
399
+
400
+ // Custom url
401
+ if($el['atts']['link_type'] == 'custom_url'){
402
+ $el['atts']['func_link'] = $el['tmp']['link'];
403
+ }
404
+
405
+ // Link to the media file itself
406
+ if($el['atts']['link_type'] == 'media_file' || $el['atts']['link_type'] == 'lightbox'){
407
+ $el['atts']['func_link'] = $src;
408
+ }
409
+
410
+ }
411
+
412
+ }
413
+
414
+ // Site Title Handler
415
+ function pagelayer_sc_wp_title(&$el){
416
+
417
+ // Decide the image URL
418
+ $el['atts']['func_image'] = @$el['tmp']['id-'.$el['atts']['id-size'].'-url'];
419
+ $el['atts']['func_image'] = empty($el['atts']['func_image']) ? @$el['tmp']['id-url'] : $el['atts']['func_id'];
420
+
421
+ // Default Logo
422
+ if(empty($el['atts']['logo_img_type'])){
423
+
424
+ // Load it
425
+ $logo = pagelayer_site_logo();
426
+
427
+ // Only if we get it
428
+ if(!empty($logo)){
429
+
430
+ $el['atts']['func_image'] = @$logo[$el['atts']['logo_img_size'].'-url'];
431
+ $el['atts']['func_image'] = empty($el['atts']['func_image']) ? @$logo['url'] : $el['atts']['func_image'];
432
+
433
+ }
434
+
435
+ // Custom logo
436
+ }else{
437
+
438
+ $el['atts']['func_image'] = @$el['tmp']['logo_img-'.$el['atts']['logo_img_size'].'-url'];
439
+ $el['atts']['func_image'] = empty($el['atts']['func_image']) ? @$el['tmp']['logo_img-url'] : $el['atts']['func_image'];
440
+
441
+ }
442
+ }
443
+
444
+ // Primary menu Handler
445
+ function pagelayer_sc_wp_menu(&$el){
446
+
447
+ $el['atts']['nav_menu'] = wp_nav_menu( array(
448
+ 'menu' => wp_get_nav_menu_object(@$el['atts']['nav_list']),
449
+ 'menu_id' => @$el['atts']['nav_list'],
450
+ 'menu_class' => 'pagelayer-wp_menu-ul',
451
+ //'theme_location' => 'primary',
452
+ 'echo' => false,
453
+ ) );
454
+ }
455
+
456
+ // Post Navigation Handler
457
+ function pagelayer_sc_post_nav(&$el){
458
+
459
+ $in_same_term = false;
460
+ $taxonomies = 'category';
461
+ $title = '';
462
+ $arrows_list = $el['atts']['arrows_list'];
463
+
464
+ if(!empty($el['atts']['in_same_term'])){
465
+ $in_same_term = true;
466
+ $taxonomies = $el['atts']['taxonomies'];
467
+ }
468
+
469
+ if(!empty($el['atts']['post_title'])){
470
+ $title = '<span class="pagelayer-post-nav-title">%title</span>';
471
+ }
472
+
473
+ $next_label = '<span class="pagelayer-next-holder">
474
+ <span class="pagelayer-post-nav-link"> '.$el["atts"]["next_label"].'</span>'.$title.'
475
+ </span>
476
+ <span class="pagelayer-post-nav-icon fa fa-'.$arrows_list.'-right"></span>';
477
+
478
+ $prev_label = '<span class="pagelayer-post-nav-icon fa fa-'.$arrows_list.'-left"></span>
479
+ <span class="pagelayer-next-holder">
480
+ <span class="pagelayer-post-nav-link"> '.$el["atts"]["prev_label"].'</span>'.$title.'
481
+ </span>';
482
+
483
+ $el['atts']['next_link'] = get_next_post_link('%link', $next_label, $in_same_term, '', $taxonomies);
484
+
485
+ $el['atts']['prev_link'] = get_previous_post_link('%link', $prev_label, $in_same_term, '', $taxonomies );
486
+ }
487
+
488
+ // Comments Handler
489
+ function pagelayer_sc_post_comment(&$el){
490
+ global $post;
491
+
492
+ // Is it custom ?
493
+ if($el['atts']['post_type'] == 'custom' && !empty($el['atts']['post_id'])){
494
+ $orig_post = $post;
495
+ $post = get_post($el['atts']['post_id']);
496
+ }
497
+
498
+ $post_id = $post->ID;
499
+ //echo $post_id.' - '.$el['atts']['post_id'];
500
+
501
+ if ( comments_open($post_id) || get_comments_number($post_id) ) {
502
+
503
+ // Handel comments template echo
504
+ ob_start();
505
+ comments_template();
506
+
507
+ $el['atts']['post_comment'] = '<div class="pagelayer-comments-template">'.ob_get_clean().'</div>';
508
+
509
+ // Comments are now closed
510
+ if(!comments_open($post_id)){
511
+ $el['atts']['post_comment'] = '<div class="pagelayer-comments-close">
512
+ <h2>Comments are closed!</h2>
513
+ </div>';
514
+ }
515
+
516
+ }else{
517
+ $el['atts']['post_comment'] = '';
518
+ }
519
+
520
+ if(pagelayer_is_live_template() || $post->post_type == 'pagelayer-template'){
521
+ $el['atts']['post_comment'] = '<div class="pagelayer-comments-close">
522
+ <center><h4>Comments section !</h4></center>
523
+ </div>';
524
+ }
525
+
526
+ if(!empty($orig_post)){
527
+ $post = $orig_post;
528
+ }
529
+
530
+ }
531
+
532
+ // post navigation Handler
533
+ function pagelayer_sc_post_info_list(&$el){
534
+
535
+ $el['atts']['post_info_content'] ='';
536
+
537
+ switch($el['atts']['type']){
538
+ case 'author':
539
+
540
+ $author_id = get_the_author_meta( 'ID' ) ? get_the_author_meta( 'ID' ) : $GLOBALS['post']->post_author;
541
+
542
+ $el['atts']['link'] = get_author_posts_url( $author_id );
543
+ $el['atts']['avatar_url'] = get_avatar_url( $author_id, 96 );
544
+ $el['atts']['post_info_content'] = get_the_author_meta( 'display_name', $author_id );
545
+ break;
546
+
547
+ case 'date':
548
+
549
+ $format = [
550
+ 'default' => 'F j, Y',
551
+ '0' => 'F j, Y',
552
+ '1' => 'Y-m-d',
553
+ '2' => 'm/d/Y',
554
+ '3' => 'd/m/Y',
555
+ 'custom' => empty( $el['atts']['date_format_custom'] ) ? 'F j, Y' : $el['atts']['date_format_custom'],
556
+ ];
557
+
558
+ $el['atts']['post_info_content'] = get_the_time( $format[ $el['atts']['date_format'] ] );
559
+ $el['atts']['link'] = get_day_link( get_post_time( 'Y' ), get_post_time( 'm' ), get_post_time( 'j' ) );
560
+
561
+ break;
562
+
563
+ case 'time':
564
+
565
+ $format = [
566
+ 'default' => 'g:i a',
567
+ '0' => 'g:i a',
568
+ '1' => 'g:i A',
569
+ '2' => 'H:i',
570
+ 'custom' => empty( $el['atts']['time_format_custom'] ) ? 'F j, Y' : $el['atts']['time_format_custom'],
571
+ ];
572
+ $el['atts']['post_info_content'] = get_the_time( $format[ $el['atts']['time_format'] ] );
573
+
574
+ break;
575
+
576
+ case 'comments':
577
+
578
+ $el['atts']['post_info_content'] = (int) get_comments_number();
579
+ $el['atts']['link'] = get_comments_link();
580
+
581
+ break;
582
+
583
+ case 'terms':
584
+
585
+ $taxonomy = $el['atts']['taxonomy'];
586
+ $terms = wp_get_post_terms( get_the_ID(), $taxonomy );
587
+ foreach ( $terms as $term ) {
588
+ $el['atts']['post_info_content'] .= ' <a href="'. get_term_link( $term ) .'"> '. $term->name .' </a>';
589
+ }
590
+
591
+ if(pagelayer_is_live_template() || $GLOBALS['post']->post_type == 'pagelayer-template'){
592
+ $el['atts']['post_info_content'] .= 'Dummy '.ucfirst(str_replace('_', ' ', $el['atts']['taxonomy']));
593
+ }
594
+
595
+ $el['atts']['info_link'] = '';
596
+ break;
597
+
598
+ case 'custom':
599
+
600
+ $el['atts']['post_info_content'] = $el['atts']['type_custom'];
601
+ $el['atts']['link'] = $el['atts']['info_custom_link'];
602
+
603
+ break;
604
+ }
605
+
606
+
607
+ }
608
+
609
+ // Post Content Handler - 2C
610
+ function pagelayer_sc_post_content(&$el){
611
+ static $did_posts = [];
612
+
613
+ global $pagelayer;
614
+
615
+ $post_obj = get_post();
616
+
617
+ if(empty( $post_obj )){
618
+ return false;
619
+ }
620
+
621
+ if ( post_password_required( $post_obj->ID ) ) {
622
+ return get_the_password_form( $post_obj->ID );
623
+ }
624
+
625
+ // Avoid recursion
626
+ if ( isset( $did_posts[$post_obj->ID] ) || pagelayer_is_live_template($post_obj) ) {
627
+ $el['atts']['post_content'] = '<div style="min-height:20px;background-color:#e3e3e3;text-align:center">Post Content Holder</div>';
628
+ return;
629
+ }
630
+
631
+ // Is it an attachment
632
+ if(is_attachment()){
633
+ $el['atts']['post_content'] = '<center>'.wp_get_attachment_image( get_the_ID(), 'full' ).'</center>';
634
+ return;
635
+ }
636
+
637
+ // To prevent recursion, set it to True
638
+ $did_posts[$post_obj->ID] = true;
639
+
640
+ $content = $post_obj->post_content;
641
+ //$content = do_shortcode($content);
642
+
643
+ // If we are rendering a template and this post content is being edited live, then dont_make_editable is set true in pagelayer_get_post_content. Hence we need to set it as false and revert it after rendering the posts content !
644
+ if(!empty($pagelayer->dont_make_editable)){
645
+ $reset = $pagelayer->dont_make_editable;
646
+ $pagelayer->dont_make_editable = false;
647
+ }
648
+
649
+ $content = apply_filters( 'the_content', $content );
650
+
651
+ if(!empty($reset)){
652
+ $pagelayer->dont_make_editable = $reset;
653
+ }
654
+
655
+ $el['atts']['post_content'] = $content;
656
+ }
657
+
658
+ // Archive Posts shows the posts as per the QUERY of the current page
659
+ function pagelayer_sc_archive_posts(&$el){
660
+ global $wp_query;
661
+
662
+ $query_args = $wp_query->query_vars;
663
+
664
+ if(pagelayer_is_live() || (wp_doing_ajax() && @$_REQUEST['action'] == 'pagelayer_archive_posts_data')){
665
+ $query_args = ['post_type' => 'post'];
666
+ $dummy_pagination = 10;
667
+ }
668
+
669
+ $allow_param = array('show_thumb', 'thumb_size', 'show_content', 'show_title', 'more', 'btn_type', 'size', 'icon_position', 'icon', 'show_more', 'meta_sep', 'exc_length' );
670
+
671
+ $param = array();
672
+
673
+ foreach($allow_param as $val){
674
+ $param[$val] = !empty($el['atts'][$val]) ? $el['atts'][$val] : '';
675
+ }
676
+
677
+ if($el['atts']['meta']){
678
+
679
+ $meta_arr = explode(',',$el['atts']['meta']);
680
+ //pagelayer_print($el['atts']['meta']);
681
+ foreach($meta_arr as $arr){
682
+ $param[$arr] = $arr;
683
+ }
684
+
685
+ }
686
+
687
+ $el['atts']['pagelayer_pagination_top'] = '';
688
+ $el['atts']['pagelayer_pagination_bottom'] = '';
689
+
690
+ if(!empty($el['atts']['pagination'])){
691
+ // Create array for pagination
692
+ $pagination = array(
693
+ 'prev_next' => $el['atts']['pagination'] == 'number' ? false : true,
694
+ 'prev_text' => __( @$el['atts']['pagi_prev_text'] ),
695
+ 'next_text' => __( @$el['atts']['pagi_next_text'] ),
696
+ 'end_size' => $el['atts']['pagi_end_size'],
697
+ 'mid_size' => $el['atts']['pagi_mid_size'],
698
+ 'before_page_number' => @$el['atts']['before_page_number'],
699
+ 'after_page_number' => @$el['atts']['after_page_number'],
700
+ );
701
+
702
+ if(!empty($dummy_pagination)){
703
+ $pagination['total'] = 10;
704
+ }
705
+
706
+ if( @$el['atts']['pagination_on'] == 'top'){
707
+ $el['atts']['pagelayer_pagination_top'] = '<div class="pagelayer-pagination">'.paginate_links($pagination).'</div>';
708
+ }else{
709
+ $el['atts']['pagelayer_pagination_bottom'] = '<div class="pagelayer-pagination">'.paginate_links($pagination).'</div>';
710
+ }
711
+ }
712
+
713
+ //pagelayer_print($param);
714
+ $el['atts']['pagelayer_archive_posts'] = pagelayer_posts($param, $query_args);
715
+ }
716
+
717
+ // Flipbox handler
718
+ function pagelayer_sc_flipbox(&$el){
719
+
720
+ // Flipbox front heading image
721
+ if(!empty($el['atts']['heading_image'])){
722
+ $el['atts']['func_image'] = @$el['tmp']['heading_image-'.$el['atts']['heading_image_size'].'-url'];
723
+ $el['atts']['func_image'] = empty($el['atts']['func_image']) ? @$el['tmp']['heading_image-url'] : $el['atts']['func_image'];
724
+ }
725
+ }
726
+
727
+ // Social Share Handler
728
+ function pagelayer_sc_share(&$el){
729
+
730
+ if(empty($el['atts']['icon'])){
731
+ return;
732
+ }
733
+
734
+ $icon_splited = explode(' fa-', $el['atts']['icon']);
735
+ $el['classes'][] = ['.pagelayer-share-content' => 'pagelayer-'.$icon_splited[1]];
736
+
737
+ $icon = $icon_splited[1];
738
+
739
+ $labelList = array(
740
+ 'Facebook' => array(
741
+ 'icons' => array('facebook', 'facebook-f', 'facebook-messenger', 'facebook-square', 'facebook-official'),
742
+ 'url' => 'https://www.facebook.com/sharer/sharer.php?u='
743
+ ),
744
+ 'Twitter' => array(
745
+ 'icons' => array('twitter', 'twitter-square'),
746
+ 'url' => 'https://twitter.com/share?url='
747
+ ),
748
+ 'Google+' => array(
749
+ 'icons' => array('google-plus', 'google-plus-square', 'google-plus-g'),
750
+ 'url' => 'https://plus.google.com/share?url='
751
+ ),
752
+ 'Instagram' => array(
753
+ 'icons' => array('instagram'),
754
+ 'url' => ''
755
+ ),
756
+ 'Linkedin' => array(
757
+ 'icons' => array('linkedin', 'linkedin-in', 'linkedin-square'),
758
+ 'url' => 'https://www.linkedin.com/shareArticle?url='
759
+ ),
760
+ 'pinterest' => array(
761
+ 'icons' => array('pinterest', 'pinterest-p', 'pinterest-square'),
762
+ 'url' => '//www.pinterest.com/pin/create/button/?url='
763
+ ),
764
+ 'Reddit' => array(
765
+ 'icons' => array('reddit-alien', 'reddit-square', 'reddit'),
766
+ 'url' => 'https://reddit.com/submit?url='
767
+ ),
768
+ 'Skype' => array(
769
+ 'icons' => array('skype'),
770
+ 'url' => ''
771
+ ),
772
+ 'Stumbleupon' => array(
773
+ 'icons' => array('stumbleupon', 'stumbleupon-circle'),
774
+ 'url' => 'https://www.stumbleupon.com/submit?url='
775
+ ),
776
+ 'Telegram' => array(
777
+ 'icons' => array('telegram', 'telegram-plane'),
778
+ 'url' => 'https://t.me/share/url?url='
779
+ ),
780
+ 'Tumblr' => array(
781
+ 'icons' => array('tumblr', 'tumblr-square'),
782
+ 'url' => 'https://www.tumblr.com/share/link?url='
783
+ ),
784
+ 'VK' => array(
785
+ 'icons' => array('vk'),
786
+ 'url' => 'http://vk.com/share.php?url='
787
+ ),
788
+ 'Weibo' => array(
789
+ 'icons' => array('weibo'),
790
+ 'url' => 'http://service.weibo.com/share/share.php?url='
791
+ ),
792
+ 'WhatsApp' => array(
793
+ 'icons' => array('whatsapp', 'whatsapp-square'),
794
+ 'url' => 'whatsapp://send?text='
795
+ ),
796
+ 'WordPress' => array(
797
+ 'icons' => array('wordpress', 'wordpress-simple'),
798
+ 'url' => 'https://wordpress.com/press-this.php?u='
799
+ ),
800
+ 'Xing' => array(
801
+ 'icons' => array('xing', 'xing-square'),
802
+ 'url' => 'https://www.xing.com/spi/shares/new?url='
803
+ ),
804
+ 'Delicious' => array(
805
+ 'icons' => array('delicious'),
806
+ 'url' => 'https://delicious.com/save?v=5&noui&jump=close&url='
807
+ ),
808
+ 'Dribbble' => array(
809
+ 'icons' => array('dribbble', 'dribbble-square'),
810
+ 'url' => ''
811
+ )
812
+ );
813
+
814
+ if(!empty($el['atts']['text'])){
815
+ $el['atts']['icon_label'] = $el['atts']['text'];
816
+ }else{
817
+ foreach($labelList as $key => $val){
818
+ if(in_array($icon, $val['icons'])){
819
+ $el['atts']['icon_label'] = $key;
820
+ break;
821
+ }
822
+ }
823
+ }
824
+
825
+ foreach($labelList as $key => $val){
826
+ if(in_array($icon, $val['icons'])){
827
+ $el['atts']['social_url'] = $val['url'].$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
828
+ break;
829
+ }
830
+ }
831
+ }
main/functions.php CHANGED
@@ -570,6 +570,7 @@ function pagelayer_load_shortcodes(){
570
  include_once(PAGELAYER_DIR.'/lib/pquery/pQuery.php');
571
 
572
  include_once(PAGELAYER_DIR.'/main/shortcode_functions.php');
 
573
  if(defined('PAGELAYER_PREMIUM')){
574
  include_once(PAGELAYER_DIR.'/main/premium_functions.php');
575
  }
@@ -630,23 +631,19 @@ function pagelayer_load_shortcodes(){
630
  function pagelayer_add_shortcode($tag, $params = array()){
631
 
632
  global $pagelayer;
633
-
634
- // Is there a handler function ?
635
- if(!empty($params['func'])){
636
-
637
- if($tag == 'pl_row'){
638
- $inner_tag = 'pl_inner_row';
639
- add_shortcode($inner_tag, 'pagelayer_render_shortcode');
640
- }
641
 
642
- if($tag == 'pl_col'){
643
- $inner_tag = 'pl_inner_col';
644
- add_shortcode($inner_tag, 'pagelayer_render_shortcode');
645
- }
646
-
647
- add_shortcode($tag, 'pagelayer_render_shortcode');//$params['func']);
648
- //unset($params['func']);
649
  }
 
 
 
 
 
 
 
 
650
 
651
  // Is there a group ?
652
  if(empty($params['group'])){
@@ -711,6 +708,42 @@ function pagelayer_add_shortcode($tag, $params = array()){
711
 
712
  }
713
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
714
  // Returns the permalink values
715
  function pagelayer_permalink($id){
716
 
@@ -1000,6 +1033,39 @@ function pagelayer_xss_content($data){
1000
 
1001
  }
1002
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1003
  // Show promo notice on dashboard
1004
  function pagelayer_show_promo(){
1005
 
@@ -1137,6 +1203,61 @@ function pagelayer_maybe_promo($opts){
1137
 
1138
  }
1139
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1140
  // Bread Crumbs with links
1141
  function pagelayer_get_breadcrumb(){
1142
 
@@ -1840,6 +1961,8 @@ function pagelayer_export_media($content){
1840
  // Insert a post which is a Pagelayer Post
1841
  function pagelayer_insert_content($post, &$ret){
1842
 
 
 
1843
  // Replace Vars
1844
  $template_vars = pagelayer_template_vars();
1845
 
@@ -1852,6 +1975,8 @@ function pagelayer_insert_content($post, &$ret){
1852
  // Add slashes for safe insert
1853
  $post['post_content'] = wp_slash($post['post_content']);
1854
 
 
 
1855
  // Now insert / update the post
1856
  $ret = wp_insert_post($post);
1857
 
570
  include_once(PAGELAYER_DIR.'/lib/pquery/pQuery.php');
571
 
572
  include_once(PAGELAYER_DIR.'/main/shortcode_functions.php');
573
+ include_once(PAGELAYER_DIR.'/main/freemium_functions.php');
574
  if(defined('PAGELAYER_PREMIUM')){
575
  include_once(PAGELAYER_DIR.'/main/premium_functions.php');
576
  }
631
  function pagelayer_add_shortcode($tag, $params = array()){
632
 
633
  global $pagelayer;
 
 
 
 
 
 
 
 
634
 
635
+ if($tag == 'pl_row'){
636
+ $inner_tag = 'pl_inner_row';
637
+ add_shortcode($inner_tag, 'pagelayer_render_shortcode');
 
 
 
 
638
  }
639
+
640
+ if($tag == 'pl_col'){
641
+ $inner_tag = 'pl_inner_col';
642
+ add_shortcode($inner_tag, 'pagelayer_render_shortcode');
643
+ }
644
+
645
+ add_shortcode($tag, 'pagelayer_render_shortcode');//$params['func']);
646
+ //unset($params['func']);
647
 
648
  // Is there a group ?
649
  if(empty($params['group'])){
708
 
709
  }
710
 
711
+ // Add a freemium shortcode i.e. available for render, but not to drag or edit
712
+ function pagelayer_freemium_shortcode($tag, $params = array()){
713
+
714
+ // If we are the free version, we just allow render and some edits
715
+ if(!defined('PAGELAYER_PREMIUM')){
716
+
717
+ $params['not_visible'] = 1;
718
+ $params['freemium'] = 1;
719
+
720
+ $cats = $params['styles'];
721
+
722
+ if(!empty($params['settings'])){
723
+ $cats = array_merge($cats, $params['settings']);
724
+ }
725
+
726
+ $cats['params'] = $params['name'];
727
+ //pagelayer_print($cats);
728
+
729
+ foreach($cats as $k => $v){
730
+ if(empty($params[$k])) continue;
731
+
732
+ foreach($params[$k] as $kk => $vv){
733
+
734
+ if(empty($params[$k][$kk]['np'])){
735
+ $params[$k][$kk]['pro'] = 1;
736
+ }
737
+
738
+ }
739
+
740
+ }
741
+
742
+ }
743
+
744
+ return pagelayer_add_shortcode($tag, $params);
745
+ }
746
+
747
  // Returns the permalink values
748
  function pagelayer_permalink($id){
749
 
1033
 
1034
  }
1035
 
1036
+ function pagelayer_getting_started_notice(){
1037
+
1038
+ // Are we to disable the promo
1039
+ if(isset($_GET['pagelayer-getting-started']) && (int)$_GET['pagelayer-getting-started'] == 0){
1040
+ update_option('pagelayer_getting_started', time());
1041
+ die('DONE');
1042
+ }
1043
+
1044
+ echo '
1045
+ <script type="application/javascript">
1046
+ jQuery(document).ready(function(){
1047
+ jQuery("#pagelayer-getting-started-notice").click(function(e){
1048
+
1049
+ if(jQuery(e.target).hasClass("notice-dismiss")){
1050
+ var data;
1051
+ jQuery("#pagelayer-getting-started-notice").hide();
1052
+ // Save this preference
1053
+ jQuery.post("'.admin_url('?pagelayer-getting-started=0').'", data, function(response) {
1054
+ //alert(response);
1055
+ });
1056
+ return false;
1057
+ }
1058
+
1059
+ });
1060
+ });
1061
+ </script>
1062
+
1063
+ <div id="pagelayer-getting-started-notice" class="notice notice-success is-dismissible">
1064
+ <p style="font-size: 14px; font-weight: 600"><a href="'.PAGELAYER_WWW_URL.'"><img src="'.PAGELAYER_URL.'/images/pagelayer-logo-256.png" style="vertical-align: middle; margin:0px 10px" width="24" /></a>'.__('Thanks for choosing Pagelayer. We recommend that you see the short and sweet <a href="'.admin_url('admin.php?page=pagelayer_getting_started').'">Getting Started Video</a> to know the basics of Pagelayer.', 'pagelayer').'</p>
1065
+ </div>';
1066
+
1067
+ }
1068
+
1069
  // Show promo notice on dashboard
1070
  function pagelayer_show_promo(){
1071
 
1203
 
1204
  }
1205
 
1206
+ // Show the Pro notice
1207
+ function pagelayer_show_pro_notice(){
1208
+
1209
+ if(defined('PAGELAYER_PREMIUM')){
1210
+ return;
1211
+ }
1212
+
1213
+ echo '<div class="pagelayer-notice pagelayer-notice-info">'.__('This feature is a part of <a href="'.PAGELAYER_PRO_URL.'" target="_blank">Pagelayer Pro</a>. You will need to purchase <a href="'.PAGELAYER_PRO_URL.'" target="_blank">Pagelayer Pro</a> to use this feature.').'</div>';
1214
+
1215
+ }
1216
+
1217
+ // Show the Pro Div
1218
+ function pagelayer_show_pro_div($head = '', $message = '', $admin_css = 1){
1219
+
1220
+ if(defined('PAGELAYER_PREMIUM')){
1221
+ return;
1222
+ }
1223
+
1224
+ if(basename(get_template_directory()) == 'popularfx'){
1225
+ $pro_url = 'https://popularfx.com/pricing?from=pagelayer-plugin';
1226
+ $pro_txt = 'PopularFX Pro';
1227
+ }else{
1228
+ $pro_url = PAGELAYER_PRO_URL;
1229
+ $pro_txt = 'Pagelayer Pro';
1230
+ }
1231
+
1232
+ if(!empty($admin_css)){
1233
+ wp_enqueue_style( 'pagelayer-admin', PAGELAYER_CSS.'/pagelayer-admin.css', array(), PAGELAYER_VERSION);
1234
+ }
1235
+
1236
+ echo '<div class="pagelayer-pro-div">';
1237
+
1238
+ if(!empty($head)){
1239
+ echo '<h1 class="pagelayer-pro-head">'.$head.'</h1>';
1240
+ }
1241
+
1242
+ echo '<div class="pagelayer-pro-message">';
1243
+
1244
+ if(empty($message)){
1245
+
1246
+ echo __('This feature is a part of <a href="'.$pro_url.'" target="_blank">'.$pro_txt.'</a>. You will need purchase <a href="'.$pro_url.'" target="_blank">'.$pro_txt.'</a> to use this feature.');
1247
+
1248
+ }else{
1249
+
1250
+ echo $message;
1251
+ echo ' '.__('This feature is a part of <a href="'.$pro_url.'" target="_blank">'.$pro_txt.'</a>.');
1252
+
1253
+ }
1254
+
1255
+ echo '</div>
1256
+ <center><a class="button button-pagelayer" href="'.$pro_url.'" target="_blank">Get '.$pro_txt.'</a></center>
1257
+ </div>';
1258
+
1259
+ }
1260
+
1261
  // Bread Crumbs with links
1262
  function pagelayer_get_breadcrumb(){
1263
 
1961
  // Insert a post which is a Pagelayer Post
1962
  function pagelayer_insert_content($post, &$ret){
1963
 
1964
+ $post = apply_filters('pagelayer_start_insert_content', $post);
1965
+
1966
  // Replace Vars
1967
  $template_vars = pagelayer_template_vars();
1968
 
1975
  // Add slashes for safe insert
1976
  $post['post_content'] = wp_slash($post['post_content']);
1977
 
1978
+ $post = apply_filters('pagelayer_pre_insert_content', $post);
1979
+
1980
  // Now insert / update the post
1981
  $ret = wp_insert_post($post);
1982
 
main/getting_started.php ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ //////////////////////////////////////////////////////////////
4
+ //===========================================================
5
+ // getting_started.php
6
+ //===========================================================
7
+ // PAGELAYER
8
+ // Inspired by the DESIRE to be the BEST OF ALL
9
+ // ----------------------------------------------------------
10
+ // Started by: Pulkit Gupta
11
+ // Date: 23rd Jan 2017
12
+ // Time: 23:00 hrs
13
+ // Site: http://pagelayer.com/wordpress (PAGELAYER)
14
+ // ----------------------------------------------------------
15
+ // Please Read the Terms of use at http://pagelayer.com/tos
16
+ // ----------------------------------------------------------
17
+ //===========================================================
18
+ // (c)Pagelayer Team
19
+ //===========================================================
20
+ //////////////////////////////////////////////////////////////
21
+
22
+ // Are we being accessed directly ?
23
+ if(!defined('PAGELAYER_VERSION')) {
24
+ exit('Hacking Attempt !');
25
+ }
26
+
27
+ ?>
28
+
29
+ <link rel="stylesheet" href="<?php echo PAGELAYER_CSS.'/font-awesome5.min.css';?>">
30
+
31
+ <div class="pagelayer-getting-started">
32
+ <div class="pagelayer-getting-started-container">
33
+ <div class="pagelayer-getting-started-block">
34
+ <div class="pagelayer-getting-started-logo">
35
+ <?php echo (!defined('SITEPAD')) ? '<img src="'.PAGELAYER_URL.'/images/pagelayer-logo-256.png'.'"/>' : '<img src="'.sitepad_assets_url().'/images/logo256.png'.'"/>' ?>
36
+ </div>
37
+ <div class="pagelayer-getting-started-desc">
38
+ <h1><?php _e('Welcome to ');
39
+ echo (!defined('SITEPAD')) ? '<span>Pagelayer</span>' : '<span>Sitepad</span>';?></h1>
40
+ <h6><?php echo (!defined('SITEPAD')) ? _e('Thanks for Choosing Pagelayer - The most advanced frontend drag & drop page builder. Its very easy to use and very light on the browser.') : _e('Thanks for Choosing Sitepad - Build Professional websites using an Easy to Use Editor and Publish static web pages.');?></h6>
41
+ </div>
42
+ <div class="pagelayer-getting-started-video">
43
+ <?php echo (!defined('SITEPAD')) ? '<iframe width="700" height="400" src="https://www.youtube.com/embed/t8Iz-v-qce8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>' : '<iframe height="400" width="700" src="https://www.youtube.com/embed/8e3ROkKoFwA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>';?>
44
+ </div>
45
+ <div class="pagelayer-getting-started-desc">
46
+ <h6><?php echo (!defined('SITEPAD')) ? _e('Pagelayer makes it easy to create webpage in WordPress. You can watch the video tutorial or read our guide on how to create your first page.') : _e('Sitepad makes it easy to create stunning Websites. You can watch the video tutorial or read our guide on how to create your first page.');?></h6>
47
+ <div class="pagelayer-getting-started-btn">
48
+ <a href="<?php echo admin_url('/post-new.php?post_type=page')?>" class="button button-primary btn-sc"><?php _e('Create Your First Page');?></a>
49
+ <a href="<?php echo (!defined('SITEPAD')) ? "https://pagelayer.com/getting-started/" : "#"; ?>" class="button button-secondary btn-sc" target="_blank"><?php _e('Watch the Full Guide');?></a>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <div class="pagelayer-features">
54
+ <div class="pagelayer-getting-started-desc">
55
+ <h1><?php echo (!defined('SITEPAD')) ? _e('Pagelayer Features') : _e('Sitepad Features');?></h1>
56
+ <h6><?php echo (!defined('SITEPAD')) ? "Pagelayer" : "Sitepad"; _e(' is an awesome page builder allows you to create and design you website instantly in a simple way possible. It is user-friendly with fully customizable widgets where user does not require any developer skills.');?></h6>
57
+ <div class="pagelayer-features-list">
58
+ <?php $style = (defined('SITEPAD')) ? 'style="width:30%; height: 265px"' : ''; ?>
59
+ <div class="feature-block-card" <?php echo $style; ?>>
60
+ <div class="feature-block">
61
+ <?php echo (!defined('SITEPAD')) ? '<i class="fas fa-mouse-pointer" aria-hidden="true">' : '<i class="fas fa-paper-plane" aria-hidden="true"></i>' ?></i>
62
+ </div>
63
+ <div class="feature-block-content">
64
+ <h5><?php echo (!defined('SITEPAD')) ? _e('Drag & Drop Editor') : _e('One Click Publish', 'pagelayer')?></h5>
65
+ <p><?php echo (!defined('SITEPAD')) ? _e('Design your page by dragging widgets from given choices of widget.') : _e('Just pick a theme, customize the content add images, audio, videos and click Publish.');?></p>
66
+ </div>
67
+ </div>
68
+ <div class="feature-block-card" <?php echo $style; ?>>
69
+ <div class="feature-block">
70
+ <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-th-list" aria-hidden="true">' : '<i class="fas fa-random" aria-hidden="true"></i>' ?></i>
71
+ </div>
72
+ <div class="feature-block-content">
73
+ <h5><?php echo (!defined('SITEPAD')) ? _e('Widgets') : _e('Static Pages')?></h5>
74
+ <p><?php echo (!defined('SITEPAD')) ? _e('We have large number of widgets so you can design your page by selecting the widget from widget area.') : _e('SitePad publishes static web pages (HTML, CSS, JS) to your domain so your site performs faster.');?></p>
75
+ </div>
76
+ </div>
77
+ <div class="feature-block-card" <?php echo $style; ?>>
78
+ <div class="feature-block">
79
+ <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-pencil" aria-hidden="true">' : '<i class="fas fa-mobile-alt" aria-hidden="true"></i>' ?></i>
80
+ </div>
81
+ <div class="feature-block-content">
82
+ <h5><?php echo (!defined('SITEPAD')) ? _e('In-line Editing') : _e('Responsive')?></h5>
83
+ <p><?php echo (!defined('SITEPAD')) ? _e('Simply click on any text and by typing you can add your new text.') : _e('Websites created by SitePad are responsive and compatible with all screen sizes.');?></p>
84
+ </div>
85
+ </div>
86
+ <div class="feature-block-card" <?php echo $style; ?>>
87
+ <div class="feature-block">
88
+ <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-clone" aria-hidden="true">' : '<i class="fas fa-share-square" aria-hidden="true"></i>' ?></i>
89
+ </div>
90
+ <div class="feature-block-content">
91
+ <h5><?php echo (!defined('SITEPAD')) ? _e('Duplicate') : _e('Social Media')?></h5>
92
+ <p><?php echo (!defined('SITEPAD')) ? _e('Simply click on this option and it will create exact copy of existing element by saving your time.') : _e('Add links to your social media pages like Facebook, Twitter, LinkedIn, YouTube & many more.');?></p>
93
+ </div>
94
+ </div>
95
+ <div class="feature-block-card" <?php echo $style; ?>>
96
+ <div class="feature-block">
97
+ <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-snowflake-o fa-spin" aria-hidden="true">' : '<i class="fas fa-check" aria-hidden="true"></i>' ?></i>
98
+ </div>
99
+ <div class="feature-block-content">
100
+ <h5><?php echo (!defined('SITEPAD')) ? _e('Animation') : _e('Easy to Use')?></h5>
101
+ <p><?php echo (!defined('SITEPAD')) ? _e('Create your page more attractive with animation effects that trigger when the element is in display area.') : _e('Simple Drag and Drop Interface to create beautiful websites without any technical knowledge.');?></p>
102
+ </div>
103
+ </div>
104
+ <div class="feature-block-card" <?php echo $style; ?>>
105
+ <div class="feature-block">
106
+ <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-text-width" aria-hidden="true">' : '<i class="fas fa-cog" aria-hidden="true"></i>' ?></i>
107
+ </div>
108
+ <div class="feature-block-content">
109
+ <h5><?php echo (!defined('SITEPAD')) ? _e('Styling Options') : _e('Control Panel Integration')?></h5>
110
+ <p><?php echo (!defined('SITEPAD')) ? _e('With large number of styling options you can design your page the way you want such as: background overlay, box shadow etc.') : _e('SitePad is integrated with several popular control panels like cPanel, Directadmin, etc.');?></p>
111
+ </div>
112
+ </div>
113
+ <div class="feature-block-card" <?php echo $style; ?>>
114
+ <div class="feature-block">
115
+ <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-paint-brush" aria-hidden="true">' : '<i class="fas fa-th-large" aria-hidden="true"></i>' ?></i>
116
+ </div>
117
+ <div class="feature-block-content">
118
+ <h5><?php echo (!defined('SITEPAD')) ? _e('Real Time Design') : _e('Multiple Sites')?></h5>
119
+ <p><?php echo (!defined('SITEPAD')) ? _e('Whenever you make changes on your page it gets updated instantly on your page. It helps you design your page quickly by saving your time.') : _e('Create multiple sites each having different themes, appearences and content.');?></p>
120
+ </div>
121
+ </div>
122
+ <div class="feature-block-card" <?php echo $style; ?>>
123
+ <div class="feature-block">
124
+ <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-font" aria-hidden="true">' : '<i class="fas fa-copy" aria-hidden="true"></i>' ?></i>
125
+ </div>
126
+ <div class="feature-block-content">
127
+ <h5><?php echo (!defined('SITEPAD')) ? _e('Typography') : _e('Replicate Objects')?></h5>
128
+ <p><?php echo (!defined('SITEPAD')) ? _e('With this feature you can beautify your page content by changing font-size, weight, transform, decoration. You can also add google fonts.') : _e('Replicate objects in the drag and drop editor interface to use your customizations multiple times.');?></p>
129
+ </div>
130
+ </div>
131
+ <div class="feature-block-card" <?php echo $style; ?>>
132
+ <div class="feature-block">
133
+ <?php echo (!defined('SITEPAD')) ? '<i class="fa fa-cubes" aria-hidden="true">' : '<i class="fas fa-shopping-cart" aria-hidden="true"></i>' ?></i>
134
+ </div>
135
+ <div class="feature-block-content">
136
+ <h5><?php echo (!defined('SITEPAD')) ? _e('Easily Customizable') : _e('WHMCS Module')?></h5>
137
+ <p><?php echo (!defined('SITEPAD')) ? _e('Each widget has multiple options to fully customize the widget such as change font colors, sizing and spacing.') : _e('User can Directly Access SitePad Website Builder from WHMCS Client Area.');?></p>
138
+ </div>
139
+ </div>
140
+ <div class="pagelayer-getting-started-btn">
141
+ <a href=" <?php echo (!defined('SITEPAD')) ? "https://pagelayer.com/" : "http://sitepad.com/"?>" class="button button-secondary btn-sc" target="_blank" style="margin-top:20px;"><?php echo (!defined('SITEPAD')) ? _e('Why Pagelayer?') : _e('Why Sitepad?');?></a>
142
+ </div>
143
+ </div>
144
+ </div>
145
+ </div>
146
+ </div>
147
+
148
+ <style>
149
+
150
+ .pagelayer-getting-started{
151
+ padding-top: 50px;
152
+ }
153
+
154
+ .pagelayer-getting-started-container{
155
+ margin: 0 auto;
156
+ max-width: 1000px;
157
+ padding: 0;
158
+ text-align: center;
159
+ }
160
+
161
+ .pagelayer-getting-started-block{
162
+ background-color: #fff;
163
+ border: 2px solid #e1e1e1;
164
+ border-radius: 2px;
165
+ margin-bottom: 30px;
166
+ position: relative;
167
+ padding-top: 40px;
168
+ }
169
+
170
+ .pagelayer-getting-started-logo img{
171
+ width: 10%;
172
+ height: auto;
173
+ }
174
+
175
+ .pagelayer-getting-started-desc{
176
+ padding: 40px;
177
+ }
178
+
179
+ .pagelayer-getting-started-desc h1{
180
+ color: #222;
181
+ font-size: 24px;
182
+ margin: 0 0 24px 0;
183
+ }
184
+
185
+ .pagelayer-getting-started-desc h6{
186
+ font-size: 16px;
187
+ font-weight: 400;
188
+ line-height: 1.6;
189
+ margin: 0 85px 0 85px;
190
+ }
191
+
192
+ .pagelayer-getting-started-btn{
193
+ max-width: 600px;
194
+ margin: 0 auto 0 auto;
195
+ margin-top: 36px !important;
196
+ }
197
+
198
+ .btn-sc{
199
+ font-size: 14px !important;
200
+ min-height: 46px !important;
201
+ line-height: 3.14285714 ! important;
202
+ padding: 0px 36px !important;
203
+ }
204
+
205
+ .button-primary{
206
+ margin-right: 20px !important;
207
+ border-radius: 3px !important;
208
+ }
209
+
210
+ .pagelayer-features{
211
+ background-color: #fff;
212
+ border: 2px solid #e1e1e1;
213
+ border-radius: 2px 2px 0 0;
214
+ position: relative;
215
+ }
216
+
217
+ .feature-block-card{
218
+ width: 25%;
219
+ display: inline-block;
220
+ margin: 60px 10px 0 10px;
221
+ vertical-align: top;
222
+ box-shadow: 0px 0px 20px 0px rgba(0,0,0,.1);
223
+ padding: 20px;
224
+ height: 220px;
225
+ }
226
+
227
+ .feature-block{
228
+ background: linear-gradient(to right, rgb(116, 116, 191), rgb(52, 138, 199));
229
+ border-radius: 50%;
230
+ width: 54px;
231
+ height: 54px;
232
+ position: relative;
233
+ display: inline-block;
234
+ }
235
+
236
+ .feature-block i{
237
+ font-size: 30px;
238
+ color: #fff;
239
+ position: absolute;
240
+ top: 13px;
241
+ left: 0;
242
+ right: 0;
243
+ }
244
+
245
+ .feature-block-content h5{
246
+ color: #222;
247
+ font-size: 20px;
248
+ margin: 10px 0 0 0;
249
+ }
250
+
251
+ .feature-block-content p{
252
+ color: #222;
253
+ font-size: 16px;
254
+ margin-top: 10px;
255
+ }
256
+
257
+ .fa-spin{
258
+ -webkit-animation: fa-spin 2s infinite linear;
259
+ animation: fa-spin 2s infinite linear;
260
+ }
261
+ </style>
main/import.php CHANGED
@@ -39,7 +39,7 @@ function pagelayer_import(){
39
  $pagelayer_pages = @json_decode(file_get_contents($pagelayer_theme_path.'/pagelayer-data.conf'), true);
40
 
41
  if(isset($_POST['theme'])){
42
- $GLOBALS['pl_saved'] = pagelayer_import_theme($pagelayer_theme);
43
  }
44
 
45
  // Have we already imported ?
@@ -105,22 +105,6 @@ padding: 5px 10px;
105
  border-top: 1px solid #ccc;
106
  }
107
 
108
- .button-pagelayer{
109
- padding: 12px 25px !important;
110
- font-size: 15px !important;
111
- font-weight: bold;
112
- background: #7444fd !important;
113
- color: #fff !important;
114
- border: 1px solid #7444fd !important;
115
- transition: all .3s linear;
116
- pointer: cursor;
117
- }
118
-
119
- .button-pagelayer:hover{
120
- background: #fff !important;
121
- color: #7444fd !important;
122
- }
123
-
124
  /* The Modal (background) */
125
  .pagelayer-modal {
126
  display: none;
@@ -216,7 +200,7 @@ font-weight: 600;
216
  </div>
217
  </div>
218
 
219
- </div>
220
 
221
  <script>
222
 
@@ -304,16 +288,22 @@ jQuery(document).ready(function(){
304
  <div style="position:fixed; bottom: 30px; right: 30px;">
305
  <input name="import_theme" class="button button-pagelayer" value="Import Theme Content" type="button" onclick="pagelayer_modal(\'#pagelayerModal\')" />
306
  </div>';
 
 
 
 
307
 
308
  }
309
 
310
  // The actual function to import the theme
311
- function pagelayer_import_theme($new_theme){
312
 
313
  global $wpdb, $wp_rewrite;
314
- global $pagelayer, $pagelayer_theme, $pagelayer_theme_url, $pagelayer_theme_path, $pagelayer_pages, $pl_error;
315
 
316
- $pagelayer_theme_path = get_stylesheet_directory();
 
 
317
  //die($pagelayer_theme_path);
318
 
319
  // Delete Old Data ?
@@ -344,7 +334,8 @@ global $pagelayer, $pagelayer_theme, $pagelayer_theme_url, $pagelayer_theme_path
344
  $pgl = @json_decode($pgl, true);
345
 
346
  if(empty($pgl['header'])){
347
- die('Header list not found. Report to Website Builder Team');
 
348
  }
349
 
350
  // Check the theme files
@@ -355,13 +346,14 @@ global $pagelayer, $pagelayer_theme, $pagelayer_theme_url, $pagelayer_theme_path
355
 
356
  // Does the page exist ?
357
  if(!file_exists($path) || pagelayer_cleanpath(realpath($path)) != $path){
358
- die('Something is fishy with this theme as the template '.$k.' of type '.$v['type'].' was not found');
 
359
  }
360
 
361
  }
362
 
363
  // Create the menu
364
- $menu_id = pagelayer_create_header_menu();
365
 
366
  // Check the theme files
367
  foreach($pgl as $k => $v){
@@ -408,13 +400,14 @@ global $pagelayer, $pagelayer_theme, $pagelayer_theme_url, $pagelayer_theme_path
408
 
409
  // Did we save the rev ?
410
  if(empty($ret)){
411
- die('Could not update the Pagelayer Template '.$k);
 
412
  }
413
 
414
  // Save our template type
415
  update_post_meta($post_id, 'pagelayer_template_type', $v['type']);
416
  update_post_meta($post_id, 'pagelayer_template_conditions', $v['conditions']);
417
- update_post_meta($post_id, 'pagelayer_imported_content', $new_theme->template);
418
 
419
  // Any conditions having Page IDs that need to be updated ?
420
  if(!empty($v['conditions'])){
@@ -439,7 +432,8 @@ global $pagelayer, $pagelayer_theme, $pagelayer_theme_url, $pagelayer_theme_path
439
  //r_print($data);die();
440
 
441
  if(empty($data['page'])){
442
- die('Pages list not found. Report to Website Builder Team');
 
443
  }
444
 
445
  // Check the theme files
@@ -449,12 +443,14 @@ global $pagelayer, $pagelayer_theme, $pagelayer_theme_url, $pagelayer_theme_path
449
 
450
  // Does it have the title and slug ?
451
  if(empty($v['post_title']) || empty($v['post_name'])){
452
- die('Something is fishy with this theme as there is no title or slug for '.$k);
 
453
  }
454
 
455
  // Does the page exist ?
456
  if(!file_exists($path) || pagelayer_cleanpath(realpath($path)) != $path){
457
- die('Something is fishy with this theme');
 
458
  }
459
 
460
  }
@@ -499,10 +495,11 @@ global $pagelayer, $pagelayer_theme, $pagelayer_theme_url, $pagelayer_theme_path
499
 
500
  // Did we save the post ?
501
  if(empty($ret)){
502
- die('Could not update the page '.$v['post_name']);
 
503
  }
504
 
505
- update_post_meta($ret, 'pagelayer_imported_content', $new_theme->template);
506
 
507
  $pages_id_map[$v['ID']] = $ret;
508
 
@@ -535,10 +532,10 @@ global $pagelayer, $pagelayer_theme, $pagelayer_theme_url, $pagelayer_theme_path
535
  }
536
 
537
  // Save that we have imported the theme
538
- update_option('pagelayer_theme_'.get_template().'_imported', time(), true);
539
 
540
  // Call a function for the theme if they want to execute something
541
- $ret = apply_filters('pagelayer_theme_imported', get_template());
542
 
543
  if(isset($_POST['set_home_page'])){
544
 
@@ -582,10 +579,10 @@ global $pagelayer, $pagelayer_theme, $pagelayer_theme_url, $pagelayer_theme_path
582
  }
583
 
584
  // Create the menu
585
- function pagelayer_create_header_menu(){
586
 
587
  // Create the menu if not exists
588
- $menu_name = 'PFX Header Menu';
589
  $menu_exists = wp_get_nav_menu_object($menu_name);
590
 
591
  // If there is no menu we will need to add it
39
  $pagelayer_pages = @json_decode(file_get_contents($pagelayer_theme_path.'/pagelayer-data.conf'), true);
40
 
41
  if(isset($_POST['theme'])){
42
+ $GLOBALS['pl_saved'] = pagelayer_import_theme($pagelayer_theme->template);
43
  }
44
 
45
  // Have we already imported ?
105
  border-top: 1px solid #ccc;
106
  }
107
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  /* The Modal (background) */
109
  .pagelayer-modal {
110
  display: none;
200
  </div>
201
  </div>
202
 
203
+ </div>
204
 
205
  <script>
206
 
288
  <div style="position:fixed; bottom: 30px; right: 30px;">
289
  <input name="import_theme" class="button button-pagelayer" value="Import Theme Content" type="button" onclick="pagelayer_modal(\'#pagelayerModal\')" />
290
  </div>';
291
+
292
+ add_filter('pagelayer_right_bar_promos', '__return_false');
293
+
294
+ pagelayer_page_footer(1);
295
 
296
  }
297
 
298
  // The actual function to import the theme
299
+ function pagelayer_import_theme($template_name, $pagelayer_theme_path = ''){
300
 
301
  global $wpdb, $wp_rewrite;
302
+ global $pagelayer, $pl_error;
303
 
304
+ if(empty($pagelayer_theme_path)){
305
+ $pagelayer_theme_path = get_stylesheet_directory();
306
+ }
307
  //die($pagelayer_theme_path);
308
 
309
  // Delete Old Data ?
334
  $pgl = @json_decode($pgl, true);
335
 
336
  if(empty($pgl['header'])){
337
+ $pl_error[] = 'Header list not found. Report to Website Builder Team';
338
+ return false;
339
  }
340
 
341
  // Check the theme files
346
 
347
  // Does the page exist ?
348
  if(!file_exists($path) || pagelayer_cleanpath(realpath($path)) != $path){
349
+ $pl_error[] = 'Something is fishy with this theme as the template '.$k.' of type '.$v['type'].' was not found';
350
+ return false;
351
  }
352
 
353
  }
354
 
355
  // Create the menu
356
+ $menu_id = pagelayer_create_header_menu($template_name);
357
 
358
  // Check the theme files
359
  foreach($pgl as $k => $v){
400
 
401
  // Did we save the rev ?
402
  if(empty($ret)){
403
+ $pl_error[] = 'Could not update the Pagelayer Template '.$k;
404
+ return false;
405
  }
406
 
407
  // Save our template type
408
  update_post_meta($post_id, 'pagelayer_template_type', $v['type']);
409
  update_post_meta($post_id, 'pagelayer_template_conditions', $v['conditions']);
410
+ update_post_meta($post_id, 'pagelayer_imported_content', $template_name);
411
 
412
  // Any conditions having Page IDs that need to be updated ?
413
  if(!empty($v['conditions'])){
432
  //r_print($data);die();
433
 
434
  if(empty($data['page'])){
435
+ $pl_error[] = 'Pages list not found. This is not a proper template !';
436
+ return false;
437
  }
438
 
439
  // Check the theme files
443
 
444
  // Does it have the title and slug ?
445
  if(empty($v['post_title']) || empty($v['post_name'])){
446
+ $pl_error[] = 'Something is fishy with this theme as there is no title or slug for '.$k;
447
+ return false;
448
  }
449
 
450
  // Does the page exist ?
451
  if(!file_exists($path) || pagelayer_cleanpath(realpath($path)) != $path){
452
+ $pl_error[] = 'Something is fishy with this theme';
453
+ return false;
454
  }
455
 
456
  }
495
 
496
  // Did we save the post ?
497
  if(empty($ret)){
498
+ $pl_error[] = 'Could not update the page '.$v['post_name'];
499
+ return false;
500
  }
501
 
502
+ update_post_meta($ret, 'pagelayer_imported_content', $template_name);
503
 
504
  $pages_id_map[$v['ID']] = $ret;
505
 
532
  }
533
 
534
  // Save that we have imported the theme
535
+ update_option('pagelayer_theme_'.$template_name.'_imported', time(), true);
536
 
537
  // Call a function for the theme if they want to execute something
538
+ $ret = apply_filters('pagelayer_theme_imported', $template_name);
539
 
540
  if(isset($_POST['set_home_page'])){
541
 
579
  }
580
 
581
  // Create the menu
582
+ function pagelayer_create_header_menu($name){
583
 
584
  // Create the menu if not exists
585
+ $menu_name = (empty($name) ? 'Pagelayer' : $name).' Header Menu';
586
  $menu_exists = wp_get_nav_menu_object($menu_name);
587
 
588
  // If there is no menu we will need to add it
main/live-body.php CHANGED
@@ -62,6 +62,18 @@ width: '. $pagelayer->settings['mobile_breakpoint'] .'px;
62
  </head>
63
 
64
  <body class="pagelayer-normalize pagelayer-body">
 
 
 
 
 
 
 
 
 
 
 
 
65
  <div id="pagelayer-loader-wrapper">
66
  <div class="pagelayer-animation-section">
67
  <div class="pagelayer-loader">
@@ -125,6 +137,10 @@ echo '
125
  </tr>
126
  </table>
127
 
 
 
 
 
128
  <script>
129
  var pagelayer_iframe_cw = document.getElementById("pagelayer-iframe").contentWindow;
130
 
@@ -142,6 +158,18 @@ function loader(ran) {
142
  }, 50);
143
  }
144
  loader(90);
 
 
 
 
 
 
 
 
 
 
 
 
145
  </script>
146
  </body>';
147
 
62
  </head>
63
 
64
  <body class="pagelayer-normalize pagelayer-body">
65
+ <div class="pagelayer-errorBox">
66
+ <div class="pagelayer-errorBox-close"><i class="fas fa-times"></i></div>
67
+ <div class="pagelayer-errorBox-main">
68
+ <h2><i class="fas fa-times"></i>'.__pl('error').'</h2>
69
+ <div class="pagelayer-errorBox-content"></div>
70
+ </div>
71
+ <div class="pagelayer-errorBox-resolve">
72
+ <p>'.__pl('error_submitting').'</p>
73
+ <button type="button" class="pagelayer-errorBox-copy" onclick="pagelayer_copy_error(event)">'.__pl('copy').'</button>
74
+ <button type="button" class="pagelayer-errorBox-support">'.__pl('support').'</button>
75
+ </div>
76
+ </div>
77
  <div id="pagelayer-loader-wrapper">
78
  <div class="pagelayer-animation-section">
79
  <div class="pagelayer-loader">
137
  </tr>
138
  </table>
139
 
140
+ <div class="pagelayer-pro-notice">';
141
+ pagelayer_show_pro_div('Premium Feature<span class="pli pli-cross pagelayer-pro-x"></span>', '', 0);
142
+ echo '</div>
143
+
144
  <script>
145
  var pagelayer_iframe_cw = document.getElementById("pagelayer-iframe").contentWindow;
146
 
158
  }, 50);
159
  }
160
  loader(90);
161
+
162
+ // ErrorBox content copy function
163
+ function pagelayer_copy_error(){
164
+ var tempInput = document.createElement("textarea");
165
+ tempInput.value = document.querySelector(".pagelayer-errorBox-content").innerText;
166
+ document.body.appendChild(tempInput);
167
+ tempInput.select();
168
+ document.execCommand("copy");
169
+ document.body.removeChild(tempInput);
170
+ alert("'.__pl('copy_success').'");
171
+ }
172
+
173
  </script>
174
  </body>';
175
 
main/live.php CHANGED
@@ -106,11 +106,15 @@ class PageLayer_LiveEditor{
106
  // Get CAPTCHA site key
107
  $pagelayer_recaptch_site_key = get_option('pagelayer_google_captcha');
108
 
 
 
 
109
  echo '
110
  <script type="text/javascript">
111
  pagelayer_ver = "'.PAGELAYER_VERSION.'";
112
  pagelayer_pro = '.(int)defined('PAGELAYER_PREMIUM').';
113
  pagelayer_pro_url = "'.PAGELAYER_PRO_URL.'";
 
114
  pagelayer_api_url = "'.PAGELAYER_API.'";
115
  pagelayer_ajax_url = "'.admin_url( 'admin-ajax.php' ).'?&";
116
  pagelayer_ajax_nonce = "'.wp_create_nonce('pagelayer_ajax').'";
106
  // Get CAPTCHA site key
107
  $pagelayer_recaptch_site_key = get_option('pagelayer_google_captcha');
108
 
109
+ $pro_url = defined('POPULARFX_PRO_URL') ? POPULARFX_PRO_URL : PAGELAYER_PRO_URL;
110
+ $pro_txt = defined('POPULARFX_PRO_URL') ? 'PopularFX Pro' : 'Pagelayer Pro';
111
+
112
  echo '
113
  <script type="text/javascript">
114
  pagelayer_ver = "'.PAGELAYER_VERSION.'";
115
  pagelayer_pro = '.(int)defined('PAGELAYER_PREMIUM').';
116
  pagelayer_pro_url = "'.PAGELAYER_PRO_URL.'";
117
+ pagelayer_pro_txt = "'.addslashes('This feature is a part of <a href="'.$pro_url.'" target="_blank">'.$pro_txt.'</a>. You will need purchase <a href="'.$pro_url.'" target="_blank">'.$pro_txt.'</a> to use this feature.').'";
118
  pagelayer_api_url = "'.PAGELAYER_API.'";
119
  pagelayer_ajax_url = "'.admin_url( 'admin-ajax.php' ).'?&";
120
  pagelayer_ajax_nonce = "'.wp_create_nonce('pagelayer_ajax').'";
main/settings.php CHANGED
@@ -55,7 +55,7 @@ function pagelayer_page_header($title = 'Pagelayer Editor'){
55
  }
56
 
57
  // The Pagelayer Settings footer
58
- function pagelayer_page_footer(){
59
 
60
  echo '
61
  </td>';
@@ -122,25 +122,29 @@ function pagelayer_page_footer(){
122
  <br />';
123
 
124
  if(!defined('SITEPAD')){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
 
126
- echo '<div style="width:45%;background:#FFF;padding:15px; margin:auto">
127
- <b>Let your followers know that you use Pagelayer to build your website :</b>
128
- <form method="get" action="https://twitter.com/intent/tweet" id="tweet" onsubmit="return dotweet(this);">
129
- <textarea name="text" cols="45" row="3" style="resize:none;">I easily built my #WordPress #site using @pagelayer</textarea>
130
- &nbsp; &nbsp; <input type="submit" value="Tweet!" class="button button-primary" onsubmit="return false;" id="twitter-btn" style="margin-top:20px;"/>
131
- </form>
132
-
133
- </div>
134
- <br />
135
-
136
- <script>
137
- function dotweet(ele){
138
- window.open(jQuery("#"+ele.id).attr("action")+"?"+jQuery("#"+ele.id).serialize(), "_blank", "scrollbars=no, menubar=no, height=400, width=500, resizable=yes, toolbar=no, status=no");
139
- return false;
140
  }
141
- </script>
142
 
143
- <hr />
144
  <a href="'.PAGELAYER_WWW_URL.'" target="_blank">Pagelayer</a> v'.PAGELAYER_VERSION.' You can report any bugs <a href="http://wordpress.org/support/plugin/pagelayer" target="_blank">here</a>.';
145
 
146
  }
55
  }
56
 
57
  // The Pagelayer Settings footer
58
+ function pagelayer_page_footer($no_twitter = 0){
59
 
60
  echo '
61
  </td>';
122
  <br />';
123
 
124
  if(!defined('SITEPAD')){
125
+
126
+ if(empty($no_twitter)){
127
+
128
+ echo '
129
+ <div style="width:45%;background:#FFF;padding:15px; margin:auto">
130
+ <b>Let your followers know that you use Pagelayer to build your website :</b>
131
+ <form method="get" action="https://twitter.com/intent/tweet" id="tweet" onsubmit="return dotweet(this);">
132
+ <textarea name="text" cols="45" row="3" style="resize:none;">I easily built my #WordPress #site using @pagelayer</textarea>
133
+ &nbsp; &nbsp; <input type="submit" value="Tweet!" class="button button-primary" onsubmit="return false;" id="twitter-btn" style="margin-top:20px;"/>
134
+ </form>
135
+ </div>
136
+ <br />
137
+
138
+ <script>
139
+ function dotweet(ele){
140
+ window.open(jQuery("#"+ele.id).attr("action")+"?"+jQuery("#"+ele.id).serialize(), "_blank", "scrollbars=no, menubar=no, height=400, width=500, resizable=yes, toolbar=no, status=no");
141
+ return false;
142
+ }
143
+ </script>';
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  }
 
146
 
147
+ echo '<hr />
148
  <a href="'.PAGELAYER_WWW_URL.'" target="_blank">Pagelayer</a> v'.PAGELAYER_VERSION.' You can report any bugs <a href="http://wordpress.org/support/plugin/pagelayer" target="_blank">here</a>.';
149
 
150
  }
main/shortcode_functions.php CHANGED
@@ -66,6 +66,11 @@ function pagelayer_render_shortcode($atts, $content = '', $tag = ''){
66
  // Is there any function ?
67
  $func = @$pagelayer->shortcodes[$tag]['func'];
68
 
 
 
 
 
 
69
  // Create the element array. NOTE : This is similar to the JS el and is temporary
70
  $el = [];
71
  $el['atts'] = $atts;
@@ -618,9 +623,17 @@ function pagelayer_var($var){
618
  // Replace the variables
619
  function pagelayer_parse_el_vars($str, &$el){
620
 
 
 
 
 
 
 
 
 
621
  $str = str_replace('{{element}}', $el['selector'], $str);
622
  $is_live = pagelayer_is_live();
623
- if(!empty($is_live)){
624
  $str = str_replace('{{wrap}}', $el['wrap'], $str);
625
  }else{
626
  $str = str_replace('{{wrap}}', $el['selector'], $str);
66
  // Is there any function ?
67
  $func = @$pagelayer->shortcodes[$tag]['func'];
68
 
69
+ // If not, we will search for a default func if prefix of tag is pl_
70
+ if(empty($func) && substr($tag, 0, 3) == 'pl_'){
71
+ $func = 'pagelayer_sc_'.substr($tag, 3);
72
+ }
73
+
74
  // Create the element array. NOTE : This is similar to the JS el and is temporary
75
  $el = [];
76
  $el['atts'] = $atts;
623
  // Replace the variables
624
  function pagelayer_parse_el_vars($str, &$el){
625
 
626
+ global $pagelayer, $post;
627
+
628
+ if(!empty( $pagelayer->rendering_template_id ) && $post->ID != $pagelayer->rendering_template_id){
629
+ $is_editable = false;
630
+ }else{
631
+ $is_editable = true;
632
+ }
633
+
634
  $str = str_replace('{{element}}', $el['selector'], $str);
635
  $is_live = pagelayer_is_live();
636
+ if(!empty($is_live) && $is_editable){
637
  $str = str_replace('{{wrap}}', $el['wrap'], $str);
638
  }else{
639
  $str = str_replace('{{wrap}}', $el['selector'], $str);
main/shortcodes.php CHANGED
@@ -1851,7 +1851,6 @@ $pagelayer->styles['custom_styles'] = [
1851
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_row', array(
1852
  'name' => __pl('row'),
1853
  'group' => 'grid',
1854
- 'func' => 'pagelayer_sc_row',
1855
  'skip_props_cat' => ['position_styles'],
1856
  'skip_props' => ['ele_sticky_in_container'],
1857
  'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
@@ -2392,7 +2391,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_row', array(
2392
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_col', array(
2393
  'name' => __pl('column'),
2394
  'group' => 'grid',
2395
- 'func' => 'pagelayer_sc_col',
2396
  'skip_props_cat' => ['position_styles'],
2397
  'skip_props' => ['ele_sticky_in_container'],
2398
  'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
@@ -2768,7 +2766,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_col', array(
2768
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_heading', array(
2769
  'name' => __pl('title'),
2770
  'group' => 'text',
2771
- 'func' => 'pagelayer_sc_heading',
2772
  'innerHTML' => 'text',
2773
  'html' => '<a if-ext="{{link}}" href="{{{link}}}">
2774
  <div if={{text}} class="pagelayer-heading-holder">{{text}}</div>
@@ -2868,7 +2865,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_heading', array(
2868
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_text', array(
2869
  'name' => __pl('Rich Text'),
2870
  'group' => 'text',
2871
- 'func' => 'pagelayer_sc_code',
2872
  'innerHTML' => 'text',
2873
  'html' => '<div class="pagelayer-text-holder">{{text}}</div>',
2874
  'params' => array(
@@ -2901,7 +2897,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_quote', array(
2901
  </a>
2902
  </div>
2903
  </div>',
2904
- 'func' => 'pagelayer_sc_quote',
2905
  'params' => array(
2906
  'quote_content' => array(
2907
  'type' => 'textarea',
@@ -3124,7 +3119,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list_item', array(
3124
  'name' => __pl('list_item'),
3125
  'group' => 'text',
3126
  'not_visible' => 1,
3127
- 'func' => 'pagelayer_sc_list_item',
3128
  'innerHTML' => 'item',
3129
  'html' => '<li if="{{item}}" class="pagelayer-list-li">
3130
  <a if-ext="{{item_url}}" class="pagelayer-list-url pagelayer-ele-link" href="{{item_url}}">
@@ -3166,7 +3160,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list_item', array(
3166
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
3167
  'name' => __pl('list'),
3168
  'group' => 'text',
3169
- 'func' => 'pagelayer_sc_list',
3170
  'has_group' => [
3171
  'section' => 'params',
3172
  'prop' => 'elements'
@@ -3405,7 +3398,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
3405
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
3406
  'name' => __pl('icon'),
3407
  'group' => 'text',
3408
- 'func' => 'pagelayer_sc_icon',
3409
  'html' => '<div class="pagelayer-icon-holder">
3410
  <a if-ext="{{link}}" class="pagelayer-ele-link" href="{{{link}}}">
3411
  <i class="{{icon}} {{bg_shape}} {{icon_size}} pagelayer-animation-{{anim_hover}}"></i>
@@ -3811,7 +3803,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
3811
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_badge', array(
3812
  'name' => __pl('Badge'),
3813
  'group' => 'text',
3814
- 'func' => 'pagelayer_sc_badge',
3815
  'innerHTML' => 'title',
3816
  'html' => '<div class="pagelayer-badge-span">
3817
  <span if="{{text}}" class="pagelayer-badge-text">{{text}}</span>
@@ -4017,7 +4008,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_badge', array(
4017
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tooltip', array(
4018
  'name' => __pl('Tooltip'),
4019
  'group' => 'text',
4020
- 'func' => 'pagelayer_sc_tooltip',
4021
  'innerHTML' => 'tooltip_text',
4022
  'html' => '<div class="pagelayer-tooltip-container">
4023
  <span if="{{tooltip_icon}}" class="pagelayer-tooltip-icon"><i class="{{tooltip_icon}}"></i></span>
@@ -4198,7 +4188,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tooltip', array(
4198
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image', array(
4199
  'name' => __pl('image'),
4200
  'group' => 'image',
4201
- 'func' => 'pagelayer_sc_image',
4202
  'innerHTML' => 'text',
4203
  'html' => '<div class="pagelayer-image-holder">
4204
  <a if-ext="{{link_type}}" class="pagelayer-ele-link" href="{{func_link}}" pagelayer-image-link-type="{{link_type}}">
@@ -4544,7 +4533,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_slider', array(
4544
  'html' => '<div class="pagelayer-image-slider-div">
4545
  <ul class="pagelayer-image-slider-ul pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme">{{ul}}</ul>
4546
  </div>',
4547
- 'func' => 'pagelayer_sc_image_slider',
4548
  'settings' => [
4549
  'params' => __pl('Image Slider'),
4550
  'slider_options' => __pl('slider_options'),
@@ -4698,7 +4686,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_slider', array(
4698
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_grid_gallery', array(
4699
  'name' => __pl('Grid Gallery'),
4700
  'group' => 'image',
4701
- 'func' => 'pagelayer_sc_grid_gallery',
4702
  'html' => '<div class="pagelayer-grid-gallery-container">
4703
  {{ul}}
4704
  </div>
@@ -4846,7 +4833,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_grid_gallery', array(
4846
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
4847
  'name' => __pl('button'),
4848
  'group' => 'button',
4849
- 'func' => 'pagelayer_sc_btn',
4850
  'html' => '<a class="pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{icon_position}}">
4851
  <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
4852
  <span if="{{text}}" class="pagelayer-btn-text">{{text}}</span>
@@ -5246,7 +5232,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
5246
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social', array(
5247
  'name' => __pl('Social Profile'),
5248
  'group' => 'button',
5249
- 'func' => 'pagelayer_sc_social',
5250
  'not_visible' => 1,
5251
  'html' => '<div class="pagelayer-icon-holder">
5252
  <a if-ext="{{social_url}}" class="pagelayer-ele-link" href="{{{social_url}}}">
@@ -5275,7 +5260,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social', array(
5275
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
5276
  'name' => __pl('Social Profile'),
5277
  'group' => 'button',
5278
- 'func' => 'pagelayer_sc_social_grp',
5279
  'has_group' => [
5280
  'section' => 'params',
5281
  'prop' => 'elements'
@@ -5585,11 +5569,10 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
5585
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video', array(
5586
  'name' => __pl('video'),
5587
  'group' => 'media',
5588
- 'func' => 'pagelayer_sc_video',
5589
  'html' => '<div class="pagelayer-video-holder pagelayer-video-{{video_ratio}}">
5590
  <iframe if="{{src}}" id="embed_video" class="pagelayer-video-iframe" width="100%" height="auto" src="{{vid_src}}" frameborder="0"></iframe>
5591
  <a if-ext={{lightbox}} href="{{{src-url}}}">
5592
- <div if={{overlay}} class="pagelayer-video-overlay" style="background-image:url("{{video_overlay_image-url}}");">
5593
  <i class="{{play_icon}}" aria-hidden="true"></i>
5594
  </div>
5595
  </a>
@@ -5598,7 +5581,7 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video', array(
5598
  'src' => array(
5599
  'type' => 'video',
5600
  'label' => __pl('video_src_label'),
5601
- 'default' => 'https://www.youtube.com/watch?v=VT7WfVp1owQ',
5602
  'desc' => __pl('video_src_desc'),
5603
  ),
5604
  'lightbox' => array(
@@ -5705,7 +5688,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video', array(
5705
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
5706
  'name' => __pl('Image Box'),
5707
  'group' => 'other',
5708
- 'func' => 'pagelayer_sc_service',
5709
  'innerHTML' => 'service_text',
5710
  'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
5711
  <div if="{{service_image}}" class="pagelayer-service-image">
@@ -6378,7 +6360,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
6378
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
6379
  'name' => __pl('Icon Box'),
6380
  'group' => 'other',
6381
- 'func' => 'pagelayer_sc_iconbox',
6382
  'innerHTML' => 'service_text',
6383
  'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
6384
  <div class="pagelayer-service-icon pagelayer-service-{{service_icon_view}}">
@@ -7087,7 +7068,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
7087
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
7088
  'name' => __pl('tabs'),
7089
  'group' => 'other',
7090
- 'func' => 'pagelayer_sc_tabs',
7091
  'has_group' => [
7092
  'section' => 'params',
7093
  'prop' => 'elements'
@@ -7316,7 +7296,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tab', array(
7316
  'name' => __pl('tab'),
7317
  'group' => 'other',
7318
  'not_visible' => 1,
7319
- 'func' => 'pagelayer_sc_tab',
7320
  'innerHTML' => 'text',
7321
  'html' => '<div class="pagelayer-tabcontent">{{text}}</div>',
7322
  'params' => array(
@@ -7351,7 +7330,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tab', array(
7351
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
7352
  'name' => __pl('accordion'),
7353
  'group' => 'other',
7354
- 'func' => 'pagelayer_sc_accordion',
7355
  'has_group' => [
7356
  'section' => 'params',
7357
  'prop' => 'elements'
@@ -7528,7 +7506,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion_item', array(
7528
  'name' => __pl('Accordion item'),
7529
  'group' => 'other',
7530
  'not_visible' => 1,
7531
- 'func' => 'pagelayer_sc_accordion_item',
7532
  'innerHTML' => 'text',
7533
  'html' => '<a if="{{title}}" class="pagelayer-accordion-tabs">{{title}}<span class="pagelayer-accordion-icon"><i></i></span></a>
7534
  <div if="{{text}}" class="pagelayer-accordion-panel">{{text}}</div>',
@@ -7563,7 +7540,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion_item', array(
7563
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
7564
  'name' => __pl('Collapse'),
7565
  'group' => 'other',
7566
- 'func' => 'pagelayer_sc_collapse',
7567
  'has_group' => [
7568
  'section' => 'params',
7569
  'prop' => 'elements'
@@ -7739,7 +7715,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
7739
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_space', array(
7740
  'name' => __pl('space'),
7741
  'group' => 'other',
7742
- 'func' => 'pagelayer_sc_space',
7743
  'html' => '<div class="pagelayer-space-holder"></div>',
7744
  'params' => array(
7745
  'height' => array(
@@ -7761,7 +7736,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_space', array(
7761
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_embed', array(
7762
  'name' => __pl('embed'),
7763
  'group' => 'other',
7764
- 'func' => 'pagelayer_sc_embed',
7765
  'innerHTML' => 'data',
7766
  'html' => '<div if={{data}} class="pagelayer-embed-container">{{data}}</div>',
7767
  'params' => array(
@@ -7779,7 +7753,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_embed', array(
7779
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_shortcodes', array(
7780
  'name' => __pl('shortcodes'),
7781
  'group' => 'other',
7782
- 'func' => 'pagelayer_sc_shortcodes',
7783
  'innerHTML' => 'data',
7784
  'holder' => '.pagelayer-shortcodes-container',
7785
  'html' => '<div class="pagelayer-shortcodes-container">{{{shortcode}}}</div>',
@@ -7797,7 +7770,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_shortcodes', array(
7797
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_google_maps', array(
7798
  'name' => __pl('Google Maps'),
7799
  'group' => 'other',
7800
- 'func' => 'pagelayer_sc_google_maps',
7801
  'innerHTML' => 'address',
7802
  'html' => '<div class="pagelayer-google-maps-holder">
7803
  <iframe marginheight="0" scrolling="no" marginwidth="0" frameborder="0" src="https://maps.google.com/maps?q={{address}}&t=m&z={{zoom}}&output=embed&iwloc=near" aria-label="{{address}}"></iframe>
@@ -7838,7 +7810,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_google_maps', array(
7838
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
7839
  'name' => __pl('testimonial'),
7840
  'group' => 'other',
7841
- 'func' => 'pagelayer_sc_testimonial',
7842
  'innerHTML' => 'quote_content',
7843
  'html' => '<div if="{{quote_content}}" class="pagelayer-testimonial-content">{{quote_content}}</div>
7844
  <div class="pagelayer-testimonial-author-details">
@@ -8027,7 +7998,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
8027
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_progress', array(
8028
  'name' => __pl('Progress Bars'),
8029
  'group' => 'other',
8030
- 'func' => 'pagelayer_sc_progress',
8031
  'innerHTML' => 'progress_text',
8032
  'html' =>'<div if="{{title}}" class="pagelayer-progress-title">{{title}}</div>
8033
  <div if="{{progress_pre_suf}}" class="pagelayer-progress-goal">
@@ -8225,7 +8195,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_progress', array(
8225
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_block', array(
8226
  'name' => __pl('Color Block'),
8227
  'group' => 'other',
8228
- 'func' => 'pagelayer_sc_block',
8229
  'params' => array(
8230
  'block_color' => array(
8231
  'type' => 'color',
@@ -8251,7 +8220,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_block', array(
8251
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_alert', array(
8252
  'name' => __pl('Alert'),
8253
  'group' => 'other',
8254
- 'func' => 'pagelayer_sc_alert',
8255
  'innerHTML' => 'alert_content',
8256
  'html' => '<div class="pagelayer-alert-content">
8257
  <i if="{{alert_icon}}" class="pagelayer-alert-icon {{alert_icon}}"></i>
@@ -8375,7 +8343,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_alert', array(
8375
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_anchor', array(
8376
  'name' => __pl('Anchor'),
8377
  'group' => 'other',
8378
- 'func' => 'pagelayer_sc_anchor',
8379
  'html' => '<div id="{{title}}" class="pagelayer-anchor-holder"></div>',
8380
  'params' => array(
8381
  'title' => array(
@@ -8391,7 +8358,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_anchor', array(
8391
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_stars', array(
8392
  'name' => __pl('Stars'),
8393
  'group' => 'other',
8394
- 'func' => 'pagelayer_sc_stars',
8395
  'html' => '<span if="{{rating_title}}" class="pagelayer-stars-title">{{rating_title}}</span>
8396
  <div class="pagelayer-stars-container" title="{{number_of_ratings}}/{{number_of_stars}}" pagelayer-stars-value="{{number_of_ratings}}" pagelayer-stars-count="{{number_of_stars}}">
8397
  </div>',
@@ -8488,7 +8454,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_stars', array(
8488
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_divider', array(
8489
  'name' => __pl('Divider'),
8490
  'group' => 'other',
8491
- 'func' => 'pagelayer_sc_divider',
8492
  'html' => '<div class="pagelayer-divider-holder">
8493
  <span class="pagelayer-divider-seperator"></span>
8494
  </div>',
@@ -8559,7 +8524,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_divider', array(
8559
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_counter', array(
8560
  'name' => __pl('Counter'),
8561
  'group' => 'other',
8562
- 'func' => 'pagelayer_sc_counter',
8563
  'html' => '<div class="pagelayer-counter-holder">
8564
  <div if="{{counter_start_number}}" class="pagelayer-counter-content">
8565
  <span if="{{number_prefix}}">{{number_prefix}}</span><span class="pagelayer-counter-display">{{counter_start_number}}</span><span if="{{number_suffix}}">{{number_suffix}}</span>
@@ -8677,7 +8641,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_counter', array(
8677
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_address', array(
8678
  'name' => __pl('address'),
8679
  'group' => 'other',
8680
- 'func' => 'pagelayer_sc_address',
8681
  'icon' => 'fas fa-map-marker-alt',
8682
  'html' => '<div class="pagelayer-address-holder">
8683
  <span class="pagelayer-address-icon"><i class="{{icon}}"></i></span>
@@ -8747,7 +8710,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_address', array(
8747
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_email', array(
8748
  'name' => __pl('email'),
8749
  'group' => 'other',
8750
- 'func' => 'pagelayer_sc_email',
8751
  'icon' => 'fas fa-envelope',
8752
  'html' => '<div class="pagelayer-email-holder">
8753
  <span class="pagelayer-email-icon"><i class="{{icon}}"></i></span>
@@ -8823,7 +8785,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_email', array(
8823
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_phone', array(
8824
  'name' => __pl('phone'),
8825
  'group' => 'other',
8826
- 'func' => 'pagelayer_sc_phone',
8827
  'icon' => 'fas fa-phone-alt',
8828
  'html' => '<div class="pagelayer-phone-holder">
8829
  <span class="pagelayer-phone-icon"><i class="{{icon}}"></i></span>
@@ -8899,7 +8860,6 @@ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_phone', array(
8899
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_post_props', array(
8900
  'name' => __pl('Body and Post Props'),
8901
  'group' => 'other',
8902
- 'func' => 'pagelayer_sc_body',
8903
  'not_visible' => 1,
8904
  'overide_css_selector' => 'body',
8905
  'hide_active' => 1,
@@ -8982,7 +8942,6 @@ if(!empty($wp_registered_sidebars)){
8982
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_widgets', array(
8983
  'name' => __pl('Sidebars / Widget Area'),
8984
  'group' => 'wordpress',
8985
- 'func' => 'pagelayer_sc_wp_widgets',
8986
  'html' => '<div class="pagelayer-wp-sidebar-title">{{title}}</div>
8987
  <div class="pagelayer-wp-sidebar-holder">{{{data}}}</div>',
8988
  'params' => array(
@@ -9031,6 +8990,9 @@ foreach($GLOBALS['wp_widget_factory']->widgets as $widget_key => $widget){
9031
  }
9032
  //}
9033
 
 
 
 
9034
  // Its premium
9035
  if(defined('PAGELAYER_PREMIUM')){
9036
  include_once(dirname(__FILE__).'/premium.php');
1851
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_row', array(
1852
  'name' => __pl('row'),
1853
  'group' => 'grid',
 
1854
  'skip_props_cat' => ['position_styles'],
1855
  'skip_props' => ['ele_sticky_in_container'],
1856
  'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
2391
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_col', array(
2392
  'name' => __pl('column'),
2393
  'group' => 'grid',
 
2394
  'skip_props_cat' => ['position_styles'],
2395
  'skip_props' => ['ele_sticky_in_container'],
2396
  'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
2766
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_heading', array(
2767
  'name' => __pl('title'),
2768
  'group' => 'text',
 
2769
  'innerHTML' => 'text',
2770
  'html' => '<a if-ext="{{link}}" href="{{{link}}}">
2771
  <div if={{text}} class="pagelayer-heading-holder">{{text}}</div>
2865
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_text', array(
2866
  'name' => __pl('Rich Text'),
2867
  'group' => 'text',
 
2868
  'innerHTML' => 'text',
2869
  'html' => '<div class="pagelayer-text-holder">{{text}}</div>',
2870
  'params' => array(
2897
  </a>
2898
  </div>
2899
  </div>',
 
2900
  'params' => array(
2901
  'quote_content' => array(
2902
  'type' => 'textarea',
3119
  'name' => __pl('list_item'),
3120
  'group' => 'text',
3121
  'not_visible' => 1,
 
3122
  'innerHTML' => 'item',
3123
  'html' => '<li if="{{item}}" class="pagelayer-list-li">
3124
  <a if-ext="{{item_url}}" class="pagelayer-list-url pagelayer-ele-link" href="{{item_url}}">
3160
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
3161
  'name' => __pl('list'),
3162
  'group' => 'text',
 
3163
  'has_group' => [
3164
  'section' => 'params',
3165
  'prop' => 'elements'
3398
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
3399
  'name' => __pl('icon'),
3400
  'group' => 'text',
 
3401
  'html' => '<div class="pagelayer-icon-holder">
3402
  <a if-ext="{{link}}" class="pagelayer-ele-link" href="{{{link}}}">
3403
  <i class="{{icon}} {{bg_shape}} {{icon_size}} pagelayer-animation-{{anim_hover}}"></i>
3803
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_badge', array(
3804
  'name' => __pl('Badge'),
3805
  'group' => 'text',
 
3806
  'innerHTML' => 'title',
3807
  'html' => '<div class="pagelayer-badge-span">
3808
  <span if="{{text}}" class="pagelayer-badge-text">{{text}}</span>
4008
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tooltip', array(
4009
  'name' => __pl('Tooltip'),
4010
  'group' => 'text',
 
4011
  'innerHTML' => 'tooltip_text',
4012
  'html' => '<div class="pagelayer-tooltip-container">
4013
  <span if="{{tooltip_icon}}" class="pagelayer-tooltip-icon"><i class="{{tooltip_icon}}"></i></span>
4188
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image', array(
4189
  'name' => __pl('image'),
4190
  'group' => 'image',
 
4191
  'innerHTML' => 'text',
4192
  'html' => '<div class="pagelayer-image-holder">
4193
  <a if-ext="{{link_type}}" class="pagelayer-ele-link" href="{{func_link}}" pagelayer-image-link-type="{{link_type}}">
4533
  'html' => '<div class="pagelayer-image-slider-div">
4534
  <ul class="pagelayer-image-slider-ul pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme">{{ul}}</ul>
4535
  </div>',
 
4536
  'settings' => [
4537
  'params' => __pl('Image Slider'),
4538
  'slider_options' => __pl('slider_options'),
4686
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_grid_gallery', array(
4687
  'name' => __pl('Grid Gallery'),
4688
  'group' => 'image',
 
4689
  'html' => '<div class="pagelayer-grid-gallery-container">
4690
  {{ul}}
4691
  </div>
4833
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
4834
  'name' => __pl('button'),
4835
  'group' => 'button',
 
4836
  'html' => '<a class="pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{icon_position}}">
4837
  <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
4838
  <span if="{{text}}" class="pagelayer-btn-text">{{text}}</span>
5232
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social', array(
5233
  'name' => __pl('Social Profile'),
5234
  'group' => 'button',
 
5235
  'not_visible' => 1,
5236
  'html' => '<div class="pagelayer-icon-holder">
5237
  <a if-ext="{{social_url}}" class="pagelayer-ele-link" href="{{{social_url}}}">
5260
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
5261
  'name' => __pl('Social Profile'),
5262
  'group' => 'button',
 
5263
  'has_group' => [
5264
  'section' => 'params',
5265
  'prop' => 'elements'
5569
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video', array(
5570
  'name' => __pl('video'),
5571
  'group' => 'media',
 
5572
  'html' => '<div class="pagelayer-video-holder pagelayer-video-{{video_ratio}}">
5573
  <iframe if="{{src}}" id="embed_video" class="pagelayer-video-iframe" width="100%" height="auto" src="{{vid_src}}" frameborder="0"></iframe>
5574
  <a if-ext={{lightbox}} href="{{{src-url}}}">
5575
+ <div if={{overlay}} class="pagelayer-video-overlay" style="background-image:url({{video_overlay_image-url}});">
5576
  <i class="{{play_icon}}" aria-hidden="true"></i>
5577
  </div>
5578
  </a>
5581
  'src' => array(
5582
  'type' => 'video',
5583
  'label' => __pl('video_src_label'),
5584
+ 'default' => 'https://www.youtube.com/watch?v=t8Iz-v-qce8',
5585
  'desc' => __pl('video_src_desc'),
5586
  ),
5587
  'lightbox' => array(
5688
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
5689
  'name' => __pl('Image Box'),
5690
  'group' => 'other',
 
5691
  'innerHTML' => 'service_text',
5692
  'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
5693
  <div if="{{service_image}}" class="pagelayer-service-image">
6360
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
6361
  'name' => __pl('Icon Box'),
6362
  'group' => 'other',
 
6363
  'innerHTML' => 'service_text',
6364
  'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
6365
  <div class="pagelayer-service-icon pagelayer-service-{{service_icon_view}}">
7068
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
7069
  'name' => __pl('tabs'),
7070
  'group' => 'other',
 
7071
  'has_group' => [
7072
  'section' => 'params',
7073
  'prop' => 'elements'
7296
  'name' => __pl('tab'),
7297
  'group' => 'other',
7298
  'not_visible' => 1,
 
7299
  'innerHTML' => 'text',
7300
  'html' => '<div class="pagelayer-tabcontent">{{text}}</div>',
7301
  'params' => array(
7330
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
7331
  'name' => __pl('accordion'),
7332
  'group' => 'other',
 
7333
  'has_group' => [
7334
  'section' => 'params',
7335
  'prop' => 'elements'
7506
  'name' => __pl('Accordion item'),
7507
  'group' => 'other',
7508
  'not_visible' => 1,
 
7509
  'innerHTML' => 'text',
7510
  'html' => '<a if="{{title}}" class="pagelayer-accordion-tabs">{{title}}<span class="pagelayer-accordion-icon"><i></i></span></a>
7511
  <div if="{{text}}" class="pagelayer-accordion-panel">{{text}}</div>',
7540
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
7541
  'name' => __pl('Collapse'),
7542
  'group' => 'other',
 
7543
  'has_group' => [
7544
  'section' => 'params',
7545
  'prop' => 'elements'
7715
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_space', array(
7716
  'name' => __pl('space'),
7717
  'group' => 'other',
 
7718
  'html' => '<div class="pagelayer-space-holder"></div>',
7719
  'params' => array(
7720
  'height' => array(
7736
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_embed', array(
7737
  'name' => __pl('embed'),
7738
  'group' => 'other',
 
7739
  'innerHTML' => 'data',
7740
  'html' => '<div if={{data}} class="pagelayer-embed-container">{{data}}</div>',
7741
  'params' => array(
7753
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_shortcodes', array(
7754
  'name' => __pl('shortcodes'),
7755
  'group' => 'other',
 
7756
  'innerHTML' => 'data',
7757
  'holder' => '.pagelayer-shortcodes-container',
7758
  'html' => '<div class="pagelayer-shortcodes-container">{{{shortcode}}}</div>',
7770
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_google_maps', array(
7771
  'name' => __pl('Google Maps'),
7772
  'group' => 'other',
 
7773
  'innerHTML' => 'address',
7774
  'html' => '<div class="pagelayer-google-maps-holder">
7775
  <iframe marginheight="0" scrolling="no" marginwidth="0" frameborder="0" src="https://maps.google.com/maps?q={{address}}&t=m&z={{zoom}}&output=embed&iwloc=near" aria-label="{{address}}"></iframe>
7810
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
7811
  'name' => __pl('testimonial'),
7812
  'group' => 'other',
 
7813
  'innerHTML' => 'quote_content',
7814
  'html' => '<div if="{{quote_content}}" class="pagelayer-testimonial-content">{{quote_content}}</div>
7815
  <div class="pagelayer-testimonial-author-details">
7998
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_progress', array(
7999
  'name' => __pl('Progress Bars'),
8000
  'group' => 'other',
 
8001
  'innerHTML' => 'progress_text',
8002
  'html' =>'<div if="{{title}}" class="pagelayer-progress-title">{{title}}</div>
8003
  <div if="{{progress_pre_suf}}" class="pagelayer-progress-goal">
8195
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_block', array(
8196
  'name' => __pl('Color Block'),
8197
  'group' => 'other',
 
8198
  'params' => array(
8199
  'block_color' => array(
8200
  'type' => 'color',
8220
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_alert', array(
8221
  'name' => __pl('Alert'),
8222
  'group' => 'other',
 
8223
  'innerHTML' => 'alert_content',
8224
  'html' => '<div class="pagelayer-alert-content">
8225
  <i if="{{alert_icon}}" class="pagelayer-alert-icon {{alert_icon}}"></i>
8343
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_anchor', array(
8344
  'name' => __pl('Anchor'),
8345
  'group' => 'other',
 
8346
  'html' => '<div id="{{title}}" class="pagelayer-anchor-holder"></div>',
8347
  'params' => array(
8348
  'title' => array(
8358
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_stars', array(
8359
  'name' => __pl('Stars'),
8360
  'group' => 'other',
 
8361
  'html' => '<span if="{{rating_title}}" class="pagelayer-stars-title">{{rating_title}}</span>
8362
  <div class="pagelayer-stars-container" title="{{number_of_ratings}}/{{number_of_stars}}" pagelayer-stars-value="{{number_of_ratings}}" pagelayer-stars-count="{{number_of_stars}}">
8363
  </div>',
8454
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_divider', array(
8455
  'name' => __pl('Divider'),
8456
  'group' => 'other',
 
8457
  'html' => '<div class="pagelayer-divider-holder">
8458
  <span class="pagelayer-divider-seperator"></span>
8459
  </div>',
8524
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_counter', array(
8525
  'name' => __pl('Counter'),
8526
  'group' => 'other',
 
8527
  'html' => '<div class="pagelayer-counter-holder">
8528
  <div if="{{counter_start_number}}" class="pagelayer-counter-content">
8529
  <span if="{{number_prefix}}">{{number_prefix}}</span><span class="pagelayer-counter-display">{{counter_start_number}}</span><span if="{{number_suffix}}">{{number_suffix}}</span>
8641
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_address', array(
8642
  'name' => __pl('address'),
8643
  'group' => 'other',
 
8644
  'icon' => 'fas fa-map-marker-alt',
8645
  'html' => '<div class="pagelayer-address-holder">
8646
  <span class="pagelayer-address-icon"><i class="{{icon}}"></i></span>
8710
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_email', array(
8711
  'name' => __pl('email'),
8712
  'group' => 'other',
 
8713
  'icon' => 'fas fa-envelope',
8714
  'html' => '<div class="pagelayer-email-holder">
8715
  <span class="pagelayer-email-icon"><i class="{{icon}}"></i></span>
8785
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_phone', array(
8786
  'name' => __pl('phone'),
8787
  'group' => 'other',
 
8788
  'icon' => 'fas fa-phone-alt',
8789
  'html' => '<div class="pagelayer-phone-holder">
8790
  <span class="pagelayer-phone-icon"><i class="{{icon}}"></i></span>
8860
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_post_props', array(
8861
  'name' => __pl('Body and Post Props'),
8862
  'group' => 'other',
 
8863
  'not_visible' => 1,
8864
  'overide_css_selector' => 'body',
8865
  'hide_active' => 1,
8942
  pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_widgets', array(
8943
  'name' => __pl('Sidebars / Widget Area'),
8944
  'group' => 'wordpress',
 
8945
  'html' => '<div class="pagelayer-wp-sidebar-title">{{title}}</div>
8946
  <div class="pagelayer-wp-sidebar-holder">{{{data}}}</div>',
8947
  'params' => array(
8990
  }
8991
  //}
8992
 
8993
+ // Freemium ones
8994
+ include_once(dirname(__FILE__).'/freemium.php');
8995
+
8996
  // Its premium
8997
  if(defined('PAGELAYER_PREMIUM')){
8998
  include_once(dirname(__FILE__).'/premium.php');
main/template.php CHANGED
@@ -24,6 +24,803 @@ if(!defined('PAGELAYER_VERSION')) {
24
  exit('Hacking Attempt !');
25
  }
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  // Pagelayer Template Loading Mechanism
28
  add_action('setup_theme', 'pagelayer_template_setup_theme', 5);
29
  function pagelayer_template_setup_theme(){
@@ -153,9 +950,11 @@ function pagelayer_template_include($template){
153
  echo '<div class="pagelayer-content">';
154
  pagelayer_template_render($template);
155
  echo '</div>';
156
- /*if(!empty($pagelayer->template_header) || !empty($pagelayer->template_footer)){
 
 
157
  get_sidebar();
158
- }*/
159
  get_footer();
160
 
161
  return false;
@@ -522,6 +1321,9 @@ min-width: 100%;
522
  function pagelayer_get_post_content($id){
523
  global $pagelayer;
524
 
 
 
 
525
  // Get the content
526
  $post = get_post($id);
527
 
@@ -537,6 +1339,9 @@ function pagelayer_get_post_content($id){
537
  $content = str_replace( ']]>', ']]&gt;', $content );
538
  $pagelayer->dont_make_editable = false;
539
 
 
 
 
540
  return $content;
541
 
542
  }
24
  exit('Hacking Attempt !');
25
  }
26
 
27
+ // Define our array
28
+ function pagelayer_builder_array(){
29
+
30
+ global $pagelayer;
31
+
32
+ // Array for custom post type data
33
+ $pagelayer->builder = array(
34
+ 'name' => 'pagelayer-template',
35
+ 'type_slug' => 'pagelayer_template_type',
36
+ 'type'=> [
37
+ '' => __('Select'),
38
+ 'header' => __('Header'),
39
+ 'footer' => __('Footer'),
40
+ 'single' => array(
41
+ 'label' => __('Single'),
42
+ 'need_selection' => 'singular', // To select the value in template select and hide it
43
+ ),
44
+ 'archive' => array(
45
+ 'label' => __('Archive'),
46
+ 'need_selection' => 'archives', // To select the value in template select and hide it
47
+ ),
48
+ 'popup' => __('Popup'),
49
+ 'section' => array(
50
+ 'label' => __('Section'),
51
+ 'no_condition' => 1, // To hide the conditions options
52
+ ),
53
+ 'global_section' => array(
54
+ 'label' => __('Global Section'),
55
+ 'no_condition' => 1, // To hide the conditions options
56
+ 'hide_drop' => 1,
57
+ ),
58
+ 'global_widget' => array(
59
+ 'label' => __('Global Widget'),
60
+ 'no_condition' => 1, // To hide the conditions options
61
+ 'hide_drop' => 1,
62
+ ),
63
+ ],
64
+ 'action' => [
65
+ 'include' => __('Include'),
66
+ 'exclude' => __('Exclude'),
67
+ ],
68
+ 'dispay_on' => [
69
+ '' => __('Full Site'),
70
+ 'archives' => array(
71
+ 'label' => __('Archives'),
72
+ 'check_conditions' => function ( $args = null ){
73
+ return is_archive() || is_home() || is_search();
74
+ },
75
+ ),
76
+ 'singular' => array(
77
+ 'label' => __('Singular'),
78
+ 'check_conditions' => function ( $args = null ){
79
+ return ( is_singular() && ! is_embed() ) || is_404();
80
+ },
81
+ ),
82
+ ],
83
+ // NOTE: Templates list array name should be dispay_on name with suffix _templates
84
+ 'archives_templates'=> [
85
+ '' => __('All Archives / Posts Archive'),
86
+ 'author' => array(
87
+ 'label' => __('Author Archives'),
88
+ 'check_conditions' => function ( $args = null ){
89
+ return is_author($args['id']);
90
+ },
91
+ 'filter_type' => 'author', // should be (author, taxonomy and post type)
92
+ ),
93
+ 'date' => array(
94
+ 'label' => __('Date Archives'),
95
+ 'check_conditions' => function ( $args = null ){
96
+ return is_date();
97
+ },
98
+ 'no_id_section' => 1, // ID select section not required
99
+ ),
100
+ 'search' => array(
101
+ 'label' => __('Search Results'),
102
+ 'check_conditions' => function ( $args = null ){
103
+ return is_search();
104
+ },
105
+ 'no_id_section' => 1, // Id select section not required
106
+ ),
107
+ ],
108
+ // NOTE: Templates list array name should be dispay_on name with suffix _templates
109
+ 'singular_templates'=> [
110
+ '' => __('All Singular'), // singular.php
111
+ 'by_author' => array(
112
+ 'label' => __('By Author'),
113
+ 'check_conditions' => function ( $args = null ){
114
+ return is_singular() && get_post_field( 'post_author' ) === $args['id'];
115
+ },
116
+ 'filter_type' => 'author',
117
+ ),
118
+ 'front_page' => array(
119
+ 'label' => __('Front Page'),
120
+ 'check_conditions' => function ( $args = null ){
121
+ return is_front_page();
122
+ },
123
+ 'no_id_section' => 1, // Id select section not required
124
+ ),
125
+ '404' => array(
126
+ 'label' => __('404'),
127
+ 'check_conditions' => function ( $args = null ){
128
+ return is_404();
129
+ },
130
+ 'no_id_section' => 1, // Id select section not required
131
+ ),
132
+ //'direct_child_of' => __('Direct Child Of'),
133
+ //'any_child_of' => __('Any Child Of'),
134
+ ], // conditions by post type
135
+
136
+ );
137
+
138
+ add_shortcode($pagelayer->builder['name'], 'pagelayer_builder_posts_shortcode');
139
+
140
+ add_filter( 'manage_'. $pagelayer->builder['name'] .'_posts_columns', 'pagelayer_builder_add_columns' );
141
+
142
+ add_action( 'manage_'. $pagelayer->builder['name'] .'_posts_custom_column' , 'pagelayer_builder_columns', 10, 2 );
143
+
144
+ add_filter( 'views_edit-' . $pagelayer->builder['name'], 'pagelayer_builder_template_tabs' );
145
+
146
+ }
147
+
148
+ // Create template builder conditions for singular by post type
149
+ function pagelayer_builder_singular_conditions($post_types = []){
150
+ $condition = [];
151
+
152
+ if(empty($post_types)){
153
+ $post_types = pagelayer_get_public_post_types();
154
+ //unset( $post_types['product'] ); // WooCommerce related
155
+ $post_types['attachment'] = get_post_type_object( 'attachment' )->label;
156
+ }
157
+
158
+ foreach ( $post_types as $post_type => $label ) {
159
+ //$post_type_object = get_post_type_object( $post_type );
160
+
161
+ $condition[$label] = [ //TC: Need to change the name of variable
162
+ $post_type => array(
163
+ 'label' => $label,
164
+ 'check_conditions' => function ( $args = null ) use ($post_type){
165
+ if ( isset($args['id']) && !empty($args['id']) ) {
166
+ $id = (int) $args['id'];
167
+ if ( $id ) {
168
+ return is_singular($post_type) && get_queried_object_id() === $id;
169
+ }
170
+ }
171
+
172
+ return is_singular( $post_type );
173
+ },
174
+ 'filter_type' => 'post',
175
+ 'object_type' => $post_type,
176
+ ),
177
+ ];
178
+
179
+ $taxonomies = get_object_taxonomies( $post_type, 'objects' );
180
+ $post_taxonomies = wp_filter_object_list( $taxonomies, [
181
+ 'public' => true,
182
+ 'show_in_nav_menus' => true,
183
+ ] );
184
+
185
+ foreach ( $post_taxonomies as $slug => $object ) {
186
+
187
+ $condition[$label] += [
188
+ $object->name => array(
189
+ 'label' => sprintf( __( 'In %s' ), $object->labels->singular_name ),
190
+ 'check_conditions' => function ( $args = null ) use ($object){
191
+ return is_singular() && has_term( (int) $args['id'], $object->name );
192
+ },
193
+ 'filter_type' => 'taxonomy',
194
+ 'object_type' => $object->name,
195
+ ),
196
+ ];
197
+
198
+ if ( $object->hierarchical ) {
199
+ $condition[$label] += [
200
+ 'in_' . $object->name . '_children' => array(
201
+ 'label' => sprintf( __( 'In Child %s' ), $object->labels->name ),
202
+ 'check_conditions' => function ( $args = null ) use ($object){
203
+ $id = (int) $args['id'];
204
+ if ( ! is_singular() || ! $id ) {
205
+ return false;
206
+ }
207
+ $child_terms = get_term_children( $id, $object->name );
208
+
209
+ return ! empty( $child_terms ) && has_term( $child_terms, $object->name );
210
+ },
211
+ 'filter_type' => 'taxonomy',
212
+ 'object_type' => $object->name,
213
+ ),
214
+ ];
215
+ }
216
+
217
+ }
218
+
219
+ $condition[$label] += [
220
+ $object->name . '_by_author' => array(
221
+ 'label' => sprintf( __( '%s By Author' ), $label ),
222
+ 'check_conditions' => function ( $args = null ) use ($post_type){
223
+ return is_singular($post_type) && get_post_field( 'post_author' ) === $args['id'];
224
+ },
225
+ 'filter_type' => 'author',
226
+ 'object_type' => $post_type . '_by_author',
227
+ ),
228
+ ];
229
+
230
+ }
231
+
232
+ return $condition;
233
+ }
234
+
235
+ // Create template builder conditions for archives by post type
236
+ function pagelayer_builder_archives_conditions($post_types = []){
237
+
238
+ $condition = [];
239
+
240
+ if(empty($post_types)){
241
+ $post_types = pagelayer_get_public_post_types();
242
+ unset( $post_types['product'] );
243
+ }
244
+
245
+ foreach ( $post_types as $post_type => $label ) {
246
+ //$post_type_object = get_post_type_object( $post_type );
247
+ if ( ! get_post_type_archive_link( $post_type ) ) {
248
+ continue;
249
+ }
250
+
251
+ $condition[$label] = [ //TC: Need to change the name of variable
252
+ $post_type => array(
253
+ 'label' => $label,
254
+ 'check_conditions' => function ( $args = null ) use ($post_type){
255
+ return is_post_type_archive( $post_type->name ) || ( 'post' === $post_type->name && is_home() );
256
+ },
257
+ 'no_id_section' => 1, // Id select section not required
258
+ ),
259
+ ];
260
+
261
+ $taxonomies = get_object_taxonomies( $post_type, 'objects' );
262
+ $post_taxonomies = wp_filter_object_list( $taxonomies, [
263
+ 'public' => true,
264
+ 'show_in_nav_menus' => true,
265
+ ] );
266
+
267
+ foreach ( $post_taxonomies as $slug => $object ) {
268
+
269
+ $condition[$label] += [
270
+ $object->name => array(
271
+ 'label' => sprintf( __( '%s' ), $object->label ),
272
+ 'check_conditions' => function ( $args = null ) use ($object){
273
+ $taxonomy = $object->name;
274
+ $id = (int) $args['id'];
275
+
276
+ if ( 'category' === $taxonomy ) {
277
+ return is_category( $id );
278
+ }
279
+
280
+ if ( 'post_tag' === $taxonomy ) {
281
+ return is_tag( $id );
282
+ }
283
+
284
+ return is_tax( $taxonomy, $id );
285
+ },
286
+ 'filter_type' => 'taxonomy',
287
+ 'object_type' => $object->name,
288
+ ),
289
+ ];
290
+
291
+ }
292
+
293
+ }
294
+
295
+ return $condition;
296
+ }
297
+
298
+ // Handle the links for the add URL
299
+ add_action('admin_head', 'pagelayer_builder_admin_head', 9999);
300
+ function pagelayer_builder_admin_head(){
301
+ global $pagelayer, $post_type;
302
+
303
+ if($post_type != $pagelayer->builder['name']){
304
+ return;
305
+ }
306
+
307
+ echo '<script type="text/javascript">
308
+
309
+ jQuery(document).ready(function(){
310
+ var but = jQuery(".page-title-action");
311
+
312
+ if(but.length < 1){
313
+ return;
314
+ }
315
+
316
+ but.attr("href", "'.esc_url(admin_url('admin.php?page=pagelayer_template_wizard')).'");
317
+
318
+ var export_but = jQuery(but[0].outerHTML);
319
+ export_but.html("'.__pl('export_template').'");
320
+ export_but.addClass("pagelayer-temp-export-but");
321
+ export_but.attr("href", "'.esc_url(admin_url('admin.php?page=pagelayer_template_export')).'");
322
+ //console.log(export_but[0].outerHTML);
323
+
324
+ but.after(export_but);
325
+ });
326
+
327
+ </script>';
328
+
329
+ }
330
+
331
+ // This function will handle the Template Builder pages in PageLayer
332
+ add_action('init', 'pagelayer_builder_post_type', 9999);
333
+ function pagelayer_builder_post_type() {
334
+ global $pagelayer;
335
+
336
+ // Add Template Post Supports
337
+ $supports = array(
338
+ 'title', // post title
339
+ 'editor', // post content
340
+ 'author', // post author
341
+ 'excerpt', // post excerpt
342
+ 'custom-fields', // custom fields
343
+ 'revisions', // post revisions
344
+ 'post-formats', // post formats
345
+ );
346
+
347
+ // Add Template Post lables
348
+ $labels = array(
349
+ 'name' => _x('Pagelayer Templates', 'plural'),
350
+ 'singular_name' => _x('Pagelayer Template', 'singular'),
351
+ 'menu_name' => _x('Pagelayer Templates', 'admin menu'),
352
+ 'name_admin_bar' => _x('Pagelayer Templates', 'admin bar'),
353
+ 'add_new' => _x('Add New', 'add templates'),
354
+ 'add_new_item' => __('Add New'),
355
+ 'new_item' => __('New Template'),
356
+ 'edit_item' => __('Edit Template'),
357
+ 'view_item' => __('View Template'),
358
+ 'all_items' => __('All Templates'),
359
+ 'search_items' => __('Search Templates'),
360
+ 'not_found' => __('No Pagelayer templates found'),
361
+ );
362
+
363
+ $args = array(
364
+ 'supports' => $supports,
365
+ 'labels' => $labels,
366
+ 'menu_icon' => PAGELAYER_URL.'/images/pagelayer-logo-19.png',
367
+ 'public' => true,
368
+ 'show_in_menu' => false,
369
+ 'publicly_queryable' => true,
370
+ 'query_var' => true,
371
+ 'rewrite' => false,
372
+ 'has_archive' => true,
373
+ 'hierarchical' => false,
374
+ 'exclude_from_search' => true,
375
+ );
376
+
377
+ // Register custom post type
378
+ register_post_type($pagelayer->builder['name'] , $args);
379
+
380
+ // Add any other templates as well
381
+ $pagelayer->builder['archives_templates'] += pagelayer_builder_archives_conditions();
382
+ $pagelayer->builder['singular_templates'] += pagelayer_builder_singular_conditions();
383
+
384
+ }
385
+
386
+ // Register shortcode for custom post type
387
+ function pagelayer_builder_posts_shortcode($atts){
388
+
389
+ global $pagelayer;
390
+
391
+ // If id not exist
392
+ if( !isset($atts['id']) ){return '';}
393
+
394
+ // Get the post data
395
+ $post = get_post((int) $atts['id']);
396
+
397
+ // If post is not empty
398
+ if(empty($post)){return '';}
399
+
400
+ $pagelayer->dont_make_editable = true;
401
+ $content = $post->post_content;
402
+ $content = apply_filters( 'the_content', $content );
403
+ $pagelayer->dont_make_editable = false;
404
+
405
+ return $content;
406
+
407
+ }
408
+
409
+ // Handle edit link of the post type
410
+ add_filter('get_edit_post_link', 'pagelayer_builder_edit_link', 10, 3);
411
+ function pagelayer_builder_edit_link($link, $postID, $context){
412
+ global $pagelayer;
413
+
414
+ $post = get_post($postID);
415
+
416
+ if($post->post_type != $pagelayer->builder['name']){
417
+ return $link;
418
+ }
419
+
420
+ return admin_url('admin.php?page=pagelayer_template_wizard&post='.$post->ID);
421
+
422
+ }
423
+
424
+ // Handle row actions for pagelayer-template
425
+ add_filter('post_row_actions', 'pagelayer_builder_row_actions', 10, 2);
426
+ function pagelayer_builder_row_actions($actions, $post){
427
+ global $pagelayer;
428
+
429
+ if($post->post_type != $pagelayer->builder['name']){
430
+ return $actions;
431
+ }
432
+
433
+ $actions['edit'] = '<a href="'.esc_url(admin_url('admin.php?page=pagelayer_template_wizard&post='.$post->ID)).'">'.__( 'Edit', 'pagelayer') .'</a>';;
434
+ $actions['pagelayer'] = '<a href="'.esc_url( pagelayer_shortlink($post->ID).'&pagelayer-live=1' ).'">'.__pl('edit_using').'</a>';
435
+
436
+ return $actions;
437
+ }
438
+
439
+ // Add the custom columns to the pagelayer-template post type:
440
+ function pagelayer_builder_add_columns($columns) {
441
+
442
+ // unset for re-setup
443
+ unset( $columns['taxonomy-pagelayer_template_type'] );
444
+
445
+ $offset = 2;
446
+ $type = array(
447
+ 'pagelayer_template_type' => __( 'Type' ),
448
+ 'pagelayer_template_conditions' => __( 'Display On' ),
449
+ 'pagelayer_template_shortcode' => __( 'Shortcode' )
450
+ );
451
+
452
+ // Add the $type array in 2 position of $columns;
453
+ $columns = array_slice( $columns, 0, $offset, true ) + $type + array_slice( $columns, $offset, null, true );
454
+
455
+ //print_r($columns);die();
456
+
457
+ return $columns;
458
+
459
+ }
460
+
461
+ // Add the data to the custom columns for the pagelayer-template post type:
462
+ function pagelayer_builder_columns( $column, $post_id ) {
463
+ global $pagelayer;
464
+
465
+ switch ( $column ) {
466
+ case 'pagelayer_template_type' :
467
+ $type = get_post_meta( $post_id, 'pagelayer_template_type', true );
468
+
469
+ if(!empty($type)){
470
+ $type = pagelayer_multi_array_search($pagelayer->builder['type'], $type);
471
+
472
+ if(is_array($type) && array_key_exists('label', $type)){
473
+ $type = $type['label'];
474
+ }
475
+
476
+ echo '<span>' . $type . '</span>';
477
+ }else{
478
+ echo __('None');
479
+ }
480
+
481
+ break;
482
+
483
+ case 'pagelayer_template_conditions' :
484
+ $dis_conditions = get_post_meta( $post_id, 'pagelayer_template_conditions', true );
485
+ if( !empty($dis_conditions) ){
486
+ $dis_html = '';
487
+ foreach($dis_conditions as $condi){
488
+ $dis_html .= '<span>';
489
+
490
+ if(isset($condi['template'])){
491
+ $template = pagelayer_multi_array_search($pagelayer->builder['dispay_on'], $condi['template']);
492
+
493
+ if(is_array($template) && array_key_exists('label', $template)){
494
+ $template = $template['label'];
495
+ }
496
+
497
+ $dis_html .= $template;
498
+ }
499
+
500
+ if(isset($condi['sub_template'])){
501
+ $sub_template = pagelayer_multi_array_search($pagelayer->builder[$condi['template'].'_templates'], $condi['sub_template']);
502
+
503
+ if(is_array($sub_template) && array_key_exists('label', $sub_template)){
504
+ $sub_template = $sub_template['label'];
505
+ }
506
+
507
+ if(!empty($sub_template)){
508
+ $dis_html .= ' > '. $sub_template;
509
+ }
510
+ }
511
+
512
+ if(!empty($condi['id'])){
513
+ $dis_html .= ' > #'. $condi['id'];
514
+ }
515
+
516
+ $dis_html .= '</span></br>';
517
+ }
518
+ }
519
+
520
+ if(!empty($dis_html)){
521
+ echo $dis_html;
522
+ }else{
523
+ echo __('None');
524
+ }
525
+
526
+ break;
527
+
528
+ case 'pagelayer_template_shortcode' :
529
+
530
+ echo '[pagelayer-template id="'.$post_id.'"]';
531
+
532
+ break;
533
+
534
+ }
535
+ }
536
+
537
+ // Print template tabs.
538
+ function pagelayer_builder_template_tabs( $views ) {
539
+ global $pagelayer;
540
+
541
+ $current_type = '';
542
+ $active_class = ' nav-tab-active';
543
+
544
+ if ( ! empty( $_REQUEST[$pagelayer->builder['type_slug']] ) ) {
545
+ $current_type = $_REQUEST[$pagelayer->builder['type_slug']];
546
+ $active_class = '';
547
+ }
548
+
549
+ $url_args = [
550
+ 'post_type' => $pagelayer->builder['name'],
551
+ ];
552
+
553
+ $baseurl = add_query_arg( $url_args, admin_url( 'edit.php' ) );
554
+
555
+ $template_types = $pagelayer->builder['type'];
556
+
557
+ if ( 1 >= count( $template_types ) ) {
558
+ return $views;
559
+ }
560
+
561
+ // If any pre define title
562
+ $all_title = '';
563
+ if ( ! $all_title ) {
564
+ $all_title = __( 'All' );
565
+ }
566
+
567
+ echo '<div id="pagelayer-template-tabs-wrapper" class="nav-tab-wrapper" style="margin-bottom:10px">
568
+ <a class="nav-tab'. $active_class .'" href="'. $baseurl .'"> '. $all_title .'</a>';
569
+
570
+ foreach ( $template_types as $type => $class_name ) {
571
+ $active_class = '';
572
+
573
+ // If type is empty
574
+ if( empty($type) ) continue;
575
+
576
+ if ( $current_type === $type ) {
577
+ $active_class = ' nav-tab-active';
578
+ }
579
+
580
+ $type_url = add_query_arg( $pagelayer->builder['type_slug'], $type, $baseurl );
581
+ $type_label = is_array($class_name) && array_key_exists( 'label', $class_name) ? $class_name['label'] : $class_name;
582
+
583
+ echo "<a class='nav-tab{$active_class}' href='{$type_url}'>{$type_label}</a>";
584
+ }
585
+
586
+ echo '</div>';
587
+
588
+ return $views;
589
+ }
590
+
591
+ // Add filter for pagelayer template
592
+ add_action( 'parse_query', 'pagelayer_builder_query_filter_types' );
593
+ function pagelayer_builder_query_filter_types( \WP_Query $query ) {
594
+ global $pagenow, $typenow, $pagelayer;
595
+
596
+ if ( ! ('edit.php' === $pagenow && $pagelayer->builder['name'] === $typenow) || ! empty( $query->query_vars['meta_key'] ) ) {
597
+ return;
598
+ }
599
+
600
+ if ( empty($_REQUEST[$pagelayer->builder['type_slug']]) ){
601
+ return;
602
+ }
603
+
604
+ $current_tab = $_REQUEST[$pagelayer->builder['type_slug']];
605
+
606
+ $template_types = $pagelayer->builder['type'];
607
+
608
+ if( !array_key_exists($current_tab , $template_types )){
609
+ return;
610
+ }
611
+
612
+ $query->query_vars['meta_key'] = 'pagelayer_template_type';
613
+ $query->query_vars['meta_value'] = $current_tab;
614
+ }
615
+
616
+ // Add the button for choose template type - Remove
617
+ add_action('edit_form_after_title', 'pagelayer_builder_editor_button', 11);
618
+ function pagelayer_builder_editor_button(){
619
+
620
+ global $pagelayer, $post;
621
+
622
+ if($post->post_type != $pagelayer->builder['name']){
623
+ return;
624
+ }
625
+
626
+ // Get the current screen
627
+ $current_screen = get_current_screen();
628
+
629
+ // For gutenberg - Add the code in the footer
630
+ if(method_exists($current_screen, 'is_block_editor') && $current_screen->is_block_editor()){
631
+ add_action('admin_footer', 'pagelayer_builder_gutenberg');
632
+ return;
633
+ }
634
+
635
+ echo '
636
+ <div style="margin-top:15px;display:inline-block;">
637
+ <a href="'.esc_url(admin_url('admin.php?page=pagelayer_template_wizard&post='.$post->ID)).'" class="button button-primary button-large" style="height:auto; padding:6px; font-size:15px;">
638
+ <img src="'.PAGELAYER_URL.'/images/pagelayer-logo-40.png" align="top" width="24" /> <span>'.__('Edit Template Options').'</span>
639
+ </a>
640
+ </div>';
641
+
642
+ }
643
+
644
+ // For gutenberg editor
645
+ function pagelayer_builder_gutenberg(){
646
+
647
+ global $pagelayer, $post;
648
+
649
+ echo '
650
+ <div id="pagelayer-editor-template-edit" style="margin-left:15px; display:none">
651
+ <a href="'.esc_url(admin_url('admin.php?page=pagelayer_template_wizard&post='.$post->ID)).'" class="button button-primary button-large" style="height:auto; padding:6px; font-size:15px;">
652
+ <img src="'.PAGELAYER_URL.'/images/pagelayer-logo-40.png" align="top" width="24" /> <span>'.__('Edit Template Options').'</span>
653
+ </a>
654
+ </div>
655
+
656
+ <script type="text/javascript">
657
+ jQuery(document).ready(function(){
658
+
659
+ var pagelayer_timer;
660
+ var pagelayer_button = function(){
661
+ var button = jQuery("#pagelayer-editor-template-edit");
662
+ var g = jQuery(".edit-post-header-toolbar");
663
+ if(g.length < 1){
664
+ return;
665
+ }
666
+ button.detach();
667
+ //console.log(button);
668
+ g.append(button);
669
+ button.show();
670
+ clearInterval(pagelayer_timer);
671
+ }
672
+ pagelayer_timer = setInterval(pagelayer_button, 100);
673
+ });
674
+ </script>';
675
+ }
676
+
677
+ // Load all templates
678
+ function pagelayer_builder_load_templates(){
679
+
680
+ global $pagelayer;
681
+
682
+ // Load all post types that are pagelayer-template
683
+ $args = [
684
+ 'post_type' => $pagelayer->builder['name'],
685
+ 'status' => 'publish',
686
+ 'meta_key' => 'pagelayer_template_conditions',
687
+ 'posts_per_page' => -1 // For get all posts
688
+ ];
689
+
690
+ $query = new WP_Query($args);
691
+ //print_r($query->posts);die();
692
+
693
+ // Cache the same
694
+ $pagelayer->templates = $query->posts;
695
+
696
+ }
697
+
698
+ // Load all our templates
699
+ add_action( 'template_redirect', 'pagelayer_builder_template_redirect');
700
+ function pagelayer_builder_template_redirect(){
701
+
702
+ global $pagelayer, $post;
703
+
704
+ // Load all post types that are pagelayer-template
705
+ pagelayer_builder_load_templates();
706
+
707
+ // If there is a match for a header
708
+ $pagelayer->template_header = pagelayer_builder_try_to_apply('header');
709
+
710
+ // Singular style posts
711
+ if ( is_singular() || is_404() ) {
712
+ $pagelayer->template_post = pagelayer_builder_try_to_apply('single');
713
+
714
+ // Archive style posts
715
+ } elseif ( is_archive() || is_home() || is_search() ) {
716
+ $pagelayer->template_post = pagelayer_builder_try_to_apply('archive');
717
+ }
718
+
719
+ // If there is a match for a footer
720
+ $pagelayer->template_footer = pagelayer_builder_try_to_apply('footer');
721
+
722
+ // If the post type is pagelayer-template, then we are viewing i.e. EDITING PAGELAYER
723
+ if(!empty($post) && $post->post_type == $pagelayer->builder['name']){
724
+
725
+ // Turn on template editor and default it to pagelayer-content
726
+ $pagelayer->template_editor = 'pagelayer-content';
727
+ $pagelayer->template_post = $post->ID;
728
+
729
+ // The type
730
+ $pagelayer_template_type = get_post_meta($post->ID, 'pagelayer_template_type', true);
731
+
732
+ // If the type is header
733
+ if( $pagelayer_template_type == 'header' ){
734
+
735
+ $pagelayer->template_editor = 'pagelayer-header';
736
+ $pagelayer->template_header = $post->ID;// Fill in that we are rendering the header we want to edit
737
+ $pagelayer->template_post = 0;
738
+ $pagelayer->template_footer = 0;
739
+
740
+ // If the type is footer
741
+ }elseif( $pagelayer_template_type == 'footer' ){
742
+
743
+ $pagelayer->template_editor = 'pagelayer-footer';
744
+ $pagelayer->template_header = 0;
745
+ $pagelayer->template_post = 0;
746
+ $pagelayer->template_footer = $post->ID;// Fill in that we are rendering the footer we want to edit
747
+
748
+ }
749
+
750
+ }
751
+
752
+ // If there is a match for a popup, get all ids with priority
753
+ $pagelayer->template_popup_ids = pagelayer_builder_try_to_apply('popup', true);
754
+
755
+ // Return all the posts
756
+ //return $query['posts'];
757
+
758
+ // Remove the filter first because it was added by
759
+ remove_filter('template_include', 'pagelayer_template_include', 1000);
760
+
761
+ // Add the filter again
762
+ add_filter('template_include', 'pagelayer_template_include', 1000, 1);
763
+
764
+ }
765
+
766
+ // For check which template will be applied
767
+ function pagelayer_builder_try_to_apply($type , $return_all = false){
768
+
769
+ global $pagelayer;
770
+
771
+ // Get templates id by type
772
+ $ids = pagelayer_builder_template_ids($type);
773
+ $sel_id = pagelayer_template_check_conditons($ids, false, $return_all);
774
+
775
+ if( !empty($ids) && !empty($sel_id) ){
776
+ return $sel_id;
777
+ }
778
+
779
+ return false;
780
+
781
+ }
782
+
783
+ // Get template post ids and conditions by type
784
+ function pagelayer_builder_template_ids($type){
785
+
786
+ global $pagelayer;
787
+
788
+ // No templates
789
+ if(empty($pagelayer->templates)){
790
+ return [];
791
+ }
792
+
793
+ // List of templates to return
794
+ $id_list = array();
795
+ foreach($pagelayer->templates as $template){
796
+
797
+ // The type
798
+ $pagelayer_template_type = get_post_meta($template->ID, 'pagelayer_template_type', true);
799
+
800
+ if($type == $pagelayer_template_type){
801
+ $id_list[] = $template->ID;
802
+ }
803
+
804
+ }
805
+
806
+ return $id_list;
807
+ }
808
+
809
+ // Its Free
810
+ if(!defined('PAGELAYER_PREMIUM')){
811
+
812
+ // Wizard to create / edit templates
813
+ function pagelayer_builder_template_wizard(){
814
+ pagelayer_show_pro_div('Theme Template Creator', 'With the Pagelayer Theme Templates wizard you can create Headers, Footers, Singular, Archives and WooCommerce Templates. It allows you to control each and every aspect of your theme. You can also set conditions for these templates !');
815
+ }
816
+
817
+ // Wizard to export theme
818
+ function pagelayer_builder_export(){
819
+ pagelayer_show_pro_div('Export Templates', 'With the Pagelayer Export wizard you can export your Headers, Footers, Singular, Archives and WooCommerce Templates. These templates can then be imported in any other WordPress site.');
820
+ }
821
+
822
+ }
823
+
824
  // Pagelayer Template Loading Mechanism
825
  add_action('setup_theme', 'pagelayer_template_setup_theme', 5);
826
  function pagelayer_template_setup_theme(){
950
  echo '<div class="pagelayer-content">';
951
  pagelayer_template_render($template);
952
  echo '</div>';
953
+
954
+ // If a template needs to call the sidebar !
955
+ if(!empty($pagelayer->template_call_sidebar)){
956
  get_sidebar();
957
+ }
958
  get_footer();
959
 
960
  return false;
1321
  function pagelayer_get_post_content($id){
1322
  global $pagelayer;
1323
 
1324
+ // Need to set post ID in Pagelayer boject, so we can get it while do shortcode
1325
+ $pagelayer->rendering_template_id = $id;
1326
+
1327
  // Get the content
1328
  $post = get_post($id);
1329
 
1339
  $content = str_replace( ']]>', ']]&gt;', $content );
1340
  $pagelayer->dont_make_editable = false;
1341
 
1342
+ // Reset the id
1343
+ $pagelayer->rendering_template_id = 0;
1344
+
1345
  return $content;
1346
 
1347
  }
main/website.php CHANGED
@@ -284,9 +284,7 @@ function pagelayer_website_settings_T(){
284
  </div>
285
 
286
  <div class="pagelayer-tab-panel" id="hf">
287
- <?php if(!defined('PAGELAYER_PREMIUM')){
288
- echo '<div class="pagelayer-notice pagelayer-notice-info">'.__('This feature is a part of <a href="'.PAGELAYER_PRO_URL.'" target="_blank">Pagelayer Pro</a>. You will need purchase <a href="'.PAGELAYER_PRO_URL.'" target="_blank">Pagelayer Pro</a> to use this feature.').'</div>';
289
- } ?>
290
  <table width="100%">
291
  <tr>
292
  <td colspan="2">
284
  </div>
285
 
286
  <div class="pagelayer-tab-panel" id="hf">
287
+ <?php pagelayer_show_pro_notice();?>
 
 
288
  <table width="100%">
289
  <tr>
290
  <td colspan="2">
pagelayer.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: PageLayer
4
  Plugin URI: http://wordpress.org/plugins/pagelayer/
5
  Description: PageLayer is a WordPress page builder plugin. Its very easy to use and very light on the browser.
6
- Version: 1.2.0
7
  Author: Pagelayer Team
8
  Author URI: https://pagelayer.com/
9
  License: LGPL v2.1
3
  Plugin Name: PageLayer
4
  Plugin URI: http://wordpress.org/plugins/pagelayer/
5
  Description: PageLayer is a WordPress page builder plugin. Its very easy to use and very light on the browser.
6
+ Version: 1.2.2
7
  Author: Pagelayer Team
8
  Author URI: https://pagelayer.com/
9
  License: LGPL v2.1
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: pagelayer
3
  Tags: page builder, editor, landing page, drag-and-drop, pagelayer, form-builder, popup, widgets, softaculous, visual editor, wysiwyg, design, maintenance mode, coming soon, under construction, website builder, landing page builder, front-end builder, site-builder
4
  Requires at least: 4.7
5
- Tested up to: 5.4
6
  Requires PHP: 5.5
7
- Stable tag: 1.2.0
8
  License: LGPL v2.1
9
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
 
@@ -109,6 +109,18 @@ Do you have questions related to PageLayer ? Use the following links :
109
 
110
  == Changelog ==
111
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  = 1.2.0 (July 23, 2020) =
113
  * [Improvement] Mobile and tablet preview on the editor has been improved. Now the width of the preview will be determined according to the values set in the Website Settings of Pagelayer.
114
  * [Improvement] The element hide media query has been improved for Desktops, Tablets and Mobiles.
2
  Contributors: pagelayer
3
  Tags: page builder, editor, landing page, drag-and-drop, pagelayer, form-builder, popup, widgets, softaculous, visual editor, wysiwyg, design, maintenance mode, coming soon, under construction, website builder, landing page builder, front-end builder, site-builder
4
  Requires at least: 4.7
5
+ Tested up to: 5.5
6
  Requires PHP: 5.5
7
+ Stable tag: 1.2.2
8
  License: LGPL v2.1
9
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
 
109
 
110
  == Changelog ==
111
 
112
+ = 1.2.2 (August 11, 2020) =
113
+ * [Bug-Fix] In some cases, the width of the columns of a Pagelayer Template while editing a post was not applied properly. This is fixed.
114
+
115
+ = 1.2.1 (August 10, 2020) =
116
+ * [Improvement] If there is a Javascript error during Pagelayer editor loading, the users will be shown the error and also a support option will be shown to the user !
117
+ * [Improvement] For the Splash Widget, clicking on the grey background will close the splash box.
118
+ * [Improvement] Its now possible to import templates of a theme which are made with Pagelayer.
119
+ * [Task] Added a Getting Started informative page and video for our users.
120
+ * [Task] Improved the login widget in the premium version of Pagelayer.
121
+ * [Bug-Fix] On window resize, the Facebook page widget will be resized as well.
122
+ * [Bug-Fix] For the Video widget, the overlay image was not shown properly and also the video would not play when the image overlay was clicked. This is fixed.
123
+
124
  = 1.2.0 (July 23, 2020) =
125
  * [Improvement] Mobile and tablet preview on the editor has been improved. Now the width of the preview will be determined according to the values set in the Website Settings of Pagelayer.
126
  * [Improvement] The element hide media query has been improved for Desktops, Tablets and Mobiles.