|
@@ -94,8 +94,13 @@ |
|
94
|
94
|
'href="/"',
|
|
95
|
95
|
'rel="{{rel}}"',
|
|
96
|
96
|
],
|
|
97
|
97
|
|
|
98
|
+// Define group and set default content if it has inner_row child
|
|
99
|
+'has_group' => [
|
|
100
|
+ 'section' => 'params',
|
|
101
|
+ 'prop' => 'elements',
|
|
102
|
+ ],
|
|
98
|
103
|
*/
|
|
99
|
104
|
|
|
100
|
105
|
////////////////////////
|
|
101
|
106
|
// Default Styles
|
|
@@ -101,8 +106,539 @@ |
|
101
|
106
|
// Default Styles
|
|
102
|
107
|
////////////////////////
|
|
103
|
108
|
global $pagelayer;
|
|
104
|
109
|
|
|
110
|
+$pagelayer->anim_in_options = array(
|
|
111
|
+ '' => __pl('none'),
|
|
112
|
+ __pl('fading') => [
|
|
113
|
+ 'fadeIn' => __pl('fadein'),
|
|
114
|
+ 'fadeInDown' => __pl('fadeindown'),
|
|
115
|
+ 'fadeInUp' => __pl('fadeinup'),
|
|
116
|
+ 'fadeInLeft' => __pl('fadeinleft'),
|
|
117
|
+ 'fadeInRight' => __pl('fadeinright'),
|
|
118
|
+ ],
|
|
119
|
+ __pl('zooming') => [
|
|
120
|
+ 'zoomIn' => __pl('zoomin'),
|
|
121
|
+ 'zoomInDown' => __pl('zoomindown'),
|
|
122
|
+ 'zoomInUp' => __pl('zoominup'),
|
|
123
|
+ 'zoomInLeft' => __pl('zoominleft'),
|
|
124
|
+ 'zoomInRight' => __pl('zoominright'),
|
|
125
|
+ ],
|
|
126
|
+ __pl('bounceing') => [
|
|
127
|
+ 'bounceIn' => __pl('bouncein'),
|
|
128
|
+ 'bounceInDown' => __pl('bounceindown'),
|
|
129
|
+ 'bounceInUp' => __pl('bounceinup'),
|
|
130
|
+ 'bounceInLeft' => __pl('bounceinleft'),
|
|
131
|
+ 'bounceInRight' => __pl('bounceinright'),
|
|
132
|
+ ],
|
|
133
|
+ __pl('sliding') => [
|
|
134
|
+ 'slideInDown' => __pl('slideindown'),
|
|
135
|
+ 'slideInUp' => __pl('slideinup'),
|
|
136
|
+ 'slideInLeft' => __pl('slideinleft'),
|
|
137
|
+ 'slideInRight' => __pl('slideinright'),
|
|
138
|
+ ],
|
|
139
|
+ __pl('rotating') => [
|
|
140
|
+ 'rotateIn' => __pl('rotatein'),
|
|
141
|
+ 'rotateInDown' => __pl('rotateindown'),
|
|
142
|
+ 'rotateInUp' => __pl('rotateinup'),
|
|
143
|
+ 'rotateInLeft' => __pl('rotateinleft'),
|
|
144
|
+ 'rotateInRight' => __pl('rotateinright'),
|
|
145
|
+ ],
|
|
146
|
+ __pl('effects') => [
|
|
147
|
+ 'lightSpeedIn' => __pl('lightspeedin'),
|
|
148
|
+ 'bounce' => __pl('bounce'),
|
|
149
|
+ 'pulse' => __pl('pulse'),
|
|
150
|
+ 'rubberBand' => __pl('rubberband'),
|
|
151
|
+ 'flash' => __pl('flash'),
|
|
152
|
+ 'swing' => __pl('swing'),
|
|
153
|
+ 'jello' => __pl('jello'),
|
|
154
|
+ 'tada' => __pl('tada'),
|
|
155
|
+ 'wobble' => __pl('wobble'),
|
|
156
|
+ 'rollin' => __pl('rollin'),
|
|
157
|
+ 'headShake' => __pl('headshake'),
|
|
158
|
+ 'shake' => __pl('shake'),
|
|
159
|
+ ],
|
|
160
|
+);
|
|
161
|
+
|
|
162
|
+$pagelayer->anim_out_options = array(
|
|
163
|
+ '' => __pl('none'),
|
|
164
|
+ __pl('fading') => [
|
|
165
|
+ 'fadeOut' => __pl('fadeout'),
|
|
166
|
+ 'fadeOutDown' => __pl('fadeoutdown'),
|
|
167
|
+ 'fadeOutUp' => __pl('fadeoutup'),
|
|
168
|
+ 'fadeOutLeft' => __pl('fadeoutleft'),
|
|
169
|
+ 'fadeOutRight' => __pl('fadeoutright'),
|
|
170
|
+ ],
|
|
171
|
+ __pl('zooming') => [
|
|
172
|
+ 'zoomOut' => __pl('zoomout'),
|
|
173
|
+ 'zoomOutDown' => __pl('zoomoutdown'),
|
|
174
|
+ 'zoomOutUp' => __pl('zoomoutup'),
|
|
175
|
+ 'zoomOutLeft' => __pl('zoomoutleft'),
|
|
176
|
+ 'zoomOutRight' => __pl('zoomoutright'),
|
|
177
|
+ ],
|
|
178
|
+ __pl('bounceing') => [
|
|
179
|
+ 'bounceOut' => __pl('bounceout'),
|
|
180
|
+ 'bounceOutDown' => __pl('bounceoutdown'),
|
|
181
|
+ 'bounceOutUp' => __pl('bounceoutup'),
|
|
182
|
+ 'bounceOutLeft' => __pl('bounceoutleft'),
|
|
183
|
+ 'bounceOutRight' => __pl('bounceoutright'),
|
|
184
|
+ ],
|
|
185
|
+ __pl('sliding') => [
|
|
186
|
+ 'slideOutDown' => __pl('slideoutdown'),
|
|
187
|
+ 'slideOutUp' => __pl('slideoutup'),
|
|
188
|
+ 'slideOutLeft' => __pl('slideoutleft'),
|
|
189
|
+ 'slideOutRight' => __pl('slideoutright'),
|
|
190
|
+ ],
|
|
191
|
+ __pl('rotating') => [
|
|
192
|
+ 'rotateOut' => __pl('rotateout'),
|
|
193
|
+ 'rotateOutDown' => __pl('rotateoutdown'),
|
|
194
|
+ 'rotateOutUp' => __pl('rotateoutup'),
|
|
195
|
+ 'rotateOutLeft' => __pl('rotateoutleft'),
|
|
196
|
+ 'rotateOutRight' => __pl('rotateoutright'),
|
|
197
|
+ ],
|
|
198
|
+ __pl('effects') => [
|
|
199
|
+ 'lightSpeedIn' => __pl('lightspeedin'),
|
|
200
|
+ 'bounce' => __pl('bounce'),
|
|
201
|
+ 'pulse' => __pl('pulse'),
|
|
202
|
+ 'rubberBand' => __pl('rubberband'),
|
|
203
|
+ 'flash' => __pl('flash'),
|
|
204
|
+ 'swing' => __pl('swing'),
|
|
205
|
+ 'jello' => __pl('jello'),
|
|
206
|
+ 'tada' => __pl('tada'),
|
|
207
|
+ 'wobble' => __pl('wobble'),
|
|
208
|
+ 'rollin' => __pl('rollin'),
|
|
209
|
+ 'headShake' => __pl('headshake'),
|
|
210
|
+ 'shake' => __pl('shake'),
|
|
211
|
+ ],
|
|
212
|
+);
|
|
213
|
+
|
|
214
|
+$pagelayer->slider_arrow_styles = [
|
|
215
|
+ 'arrows_bg' => array(
|
|
216
|
+ 'type' => 'color',
|
|
217
|
+ 'label' => __pl('bg_color'),
|
|
218
|
+ 'default' => '#6a6969',
|
|
219
|
+ 'css' => [
|
|
220
|
+ '{{element}} .pagelayer-owl-prev' => 'background-color: {{val}} !important',
|
|
221
|
+ '{{element}} .pagelayer-owl-next' => 'background-color: {{val}} !important',
|
|
222
|
+ ]
|
|
223
|
+ ),
|
|
224
|
+ 'arraow_color' => array(
|
|
225
|
+ 'type' => 'color',
|
|
226
|
+ 'label' => __pl('color'),
|
|
227
|
+ 'default' => '#ffffff',
|
|
228
|
+ 'css' => [
|
|
229
|
+ '{{element}} .pagelayer-owl-prev' => 'color: {{val}} !important',
|
|
230
|
+ '{{element}} .pagelayer-owl-next' => 'color: {{val}} !important',
|
|
231
|
+ ]
|
|
232
|
+ ),
|
|
233
|
+ 'nav_size' => array(
|
|
234
|
+ 'type' => 'slider',
|
|
235
|
+ 'label' => __pl('arraow_size'),
|
|
236
|
+ 'min' => 0,
|
|
237
|
+ 'step' => 1,
|
|
238
|
+ 'max' => 200,
|
|
239
|
+ 'screen' => 1,
|
|
240
|
+ 'css' => [
|
|
241
|
+ '{{element}} .pagelayer-owl-prev span' => 'font-size: {{val}}px !important;',
|
|
242
|
+ '{{element}} .pagelayer-owl-next span' => 'font-size: {{val}}px !important;'
|
|
243
|
+ ]
|
|
244
|
+ ),
|
|
245
|
+ 'arraow_bg_size' => array(
|
|
246
|
+ 'type' => 'spinner',
|
|
247
|
+ 'label' => __pl('background_size'),
|
|
248
|
+ 'min' => 0,
|
|
249
|
+ 'step' => 1,
|
|
250
|
+ 'max' => 500,
|
|
251
|
+ 'default' => 20,
|
|
252
|
+ 'screen' => 1,
|
|
253
|
+ 'css' => [
|
|
254
|
+ '{{element}} .pagelayer-owl-prev' => 'width: {{val}}px; height: {{val}}px',
|
|
255
|
+ '{{element}} .pagelayer-owl-next' => 'width: {{val}}px; height: {{val}}px'
|
|
256
|
+ ]
|
|
257
|
+ ),
|
|
258
|
+ 'arraow_bg_shape' => array(
|
|
259
|
+ 'type' => 'spinner',
|
|
260
|
+ 'label' => __pl('background_shape'),
|
|
261
|
+ 'min' => 0,
|
|
262
|
+ 'step' => 1,
|
|
263
|
+ 'max' => 100,
|
|
264
|
+ 'default' => 20,
|
|
265
|
+ 'screen' => 1,
|
|
266
|
+ 'css' => [
|
|
267
|
+ '{{element}} .pagelayer-owl-prev' => 'border-radius: {{val}}% !important;',
|
|
268
|
+ '{{element}} .pagelayer-owl-next' => 'border-radius: {{val}}% !important;',
|
|
269
|
+ ]
|
|
270
|
+ ),
|
|
271
|
+ 'arrow_pos_type' => array(
|
|
272
|
+ 'type' => 'select',
|
|
273
|
+ 'label' => __pl('position'),
|
|
274
|
+ 'list' => array(
|
|
275
|
+ '' => __pl('default'),
|
|
276
|
+ 'custom' => __pl('custom'),
|
|
277
|
+ 'top' => __pl('top'),
|
|
278
|
+ 'bottom' => __pl('bottom')
|
|
279
|
+ ),
|
|
280
|
+ ),
|
|
281
|
+ 'arrow_pos_top' => array(
|
|
282
|
+ 'label' => __pl('alignment'),
|
|
283
|
+ 'type' => 'radio',
|
|
284
|
+ 'list' => array(
|
|
285
|
+ 'left' => __pl('left'),
|
|
286
|
+ 'center' => __pl('center'),
|
|
287
|
+ 'right' => __pl('right'),
|
|
288
|
+ ),
|
|
289
|
+ 'default' => 'center',
|
|
290
|
+ 'req' => [ 'arrow_pos_type' => 'top'],
|
|
291
|
+ 'addClass' => ['pagelayer-slide-arrow-pos-top'],
|
|
292
|
+ 'css' => ['{{element}} .pagelayer-owl-nav' => 'justify-content:{{arrow_pos_top}}']
|
|
293
|
+ ),
|
|
294
|
+ 'arrow_pos_bottom' => array(
|
|
295
|
+ 'label' => __pl('alignment'),
|
|
296
|
+ 'type' => 'radio',
|
|
297
|
+ 'list' => array(
|
|
298
|
+ 'left' => __pl('left'),
|
|
299
|
+ 'center' => __pl('center'),
|
|
300
|
+ 'right' => __pl('right'),
|
|
301
|
+ ),
|
|
302
|
+ 'default' => 'center',
|
|
303
|
+ 'req' => ['arrow_pos_type' => 'bottom'],
|
|
304
|
+ 'addClass' => ['pagelayer-slide-arrow-pos-bottom'],
|
|
305
|
+ 'css' => [
|
|
306
|
+ '{{element}} .pagelayer-owl-nav' => 'justify-content:{{arrow_pos_bottom}}'
|
|
307
|
+ ]
|
|
308
|
+ ),
|
|
309
|
+ 'arrow_icon_type' => array(
|
|
310
|
+ 'type' => 'select',
|
|
311
|
+ 'label' => __pl('icon_type'),
|
|
312
|
+ 'list' => array(
|
|
313
|
+ '' => __pl('default'),
|
|
314
|
+ 'custom' => __pl('custom'),
|
|
315
|
+ ),
|
|
316
|
+ ),
|
|
317
|
+ 'arrow_icon' => array(
|
|
318
|
+ 'type' => 'icon',
|
|
319
|
+ 'label' => __pl('list_icon_label'),
|
|
320
|
+ 'show' => ['arrow_icon_style' => ''],
|
|
321
|
+ 'default' => 'fas fa-angle-left',
|
|
322
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-navText="{{arrow_icon}}"'],
|
|
323
|
+ 'list' => ['angle-double-left', 'arrow-alt-circle-left', 'arrow-circle-left', 'arrow-left', 'long-arrow-alt-left', 'arrow-alt-circle-left', 'angle-double-left', 'angle-left'],
|
|
324
|
+ 'css' => [
|
|
325
|
+ '{{element}} .pagelayer-owl-prev i' => 'font-size: {{nav_size}}px !important;',
|
|
326
|
+ '{{element}} .pagelayer-owl-next i' => 'font-size: {{nav_size}}px !important;'
|
|
327
|
+ ],
|
|
328
|
+ 'req' => ['!arrow_icon_type' => '']
|
|
329
|
+ ),
|
|
330
|
+ 'arrow_pos_style' => array(
|
|
331
|
+ 'type' => 'radio',
|
|
332
|
+ 'label' => __pl('arrow_pos'),
|
|
333
|
+ 'list' => array(
|
|
334
|
+ '' => __pl('left_arrow'),
|
|
335
|
+ 'right' => __pl('right_arrow'),
|
|
336
|
+ ),
|
|
337
|
+ 'show' => ['arrow_pos_type' => 'custom']
|
|
338
|
+ ),
|
|
339
|
+ 'arrow_left_horizontal_pos' => array(
|
|
340
|
+ 'type' => 'slider',
|
|
341
|
+ 'label' => __pl('horizontal_pos'),
|
|
342
|
+ 'min' => 0,
|
|
343
|
+ 'step' => 1,
|
|
344
|
+ 'max' => 100,
|
|
345
|
+ 'screen' => 1,
|
|
346
|
+ 'css' => [
|
|
347
|
+ '{{element}} .pagelayer-owl-prev' => 'left: {{val}}% !important;',
|
|
348
|
+ ],
|
|
349
|
+ 'req' => ['arrow_pos_type' => 'custom'],
|
|
350
|
+ 'show' => ['arrow_pos_style' => ''],
|
|
351
|
+ ),
|
|
352
|
+ 'arrow_right_horizontal_pos' => array(
|
|
353
|
+ 'type' => 'slider',
|
|
354
|
+ 'label' => __pl('horizontal_pos'),
|
|
355
|
+ 'min' => 0,
|
|
356
|
+ 'step' => 1,
|
|
357
|
+ 'max' => 100,
|
|
358
|
+ 'screen' => 1,
|
|
359
|
+ 'css' => [
|
|
360
|
+ '{{element}} .pagelayer-owl-next' => 'right: {{val}}% !important;',
|
|
361
|
+ ],
|
|
362
|
+ 'req' => ['arrow_pos_type' => 'custom'],
|
|
363
|
+ 'show' => ['!arrow_pos_style' => ''],
|
|
364
|
+ ),
|
|
365
|
+ 'arrow_vertical_pos' => array(
|
|
366
|
+ 'type' => 'slider',
|
|
367
|
+ 'label' => __pl('vertical_pos'),
|
|
368
|
+ 'min' => 0,
|
|
369
|
+ 'step' => 1,
|
|
370
|
+ 'max' => 100,
|
|
371
|
+ 'screen' => 1,
|
|
372
|
+ 'css' => [
|
|
373
|
+ '{{element}} .pagelayer-owl-prev' => 'top: {{val}}% !important;',
|
|
374
|
+ '{{element}} .pagelayer-owl-next' => 'top: {{val}}% !important;',
|
|
375
|
+ ],
|
|
376
|
+ 'req' => ['arrow_pos_type' => 'custom'],
|
|
377
|
+ ),
|
|
378
|
+];
|
|
379
|
+
|
|
380
|
+$pagelayer->slider_pager_styles = [
|
|
381
|
+ 'show_num' => array(
|
|
382
|
+ 'type' => 'checkbox',
|
|
383
|
+ 'label' => __pl('show_num'),
|
|
384
|
+ 'addClass' => ['pagelayer-slide-dot-number'],
|
|
385
|
+ 'css' => ['{{element}} .pagelayer-owl-dot span::before' => 'line-height: {{dot_height}}px;'],
|
|
386
|
+ ),
|
|
387
|
+ 'dot_state' => array(
|
|
388
|
+ 'type' => 'radio',
|
|
389
|
+ 'label' => __pl('dot_state'),
|
|
390
|
+ 'list' => array(
|
|
391
|
+ '' => __pl('normal'),
|
|
392
|
+ 'active' => __pl('active'),
|
|
393
|
+ ),
|
|
394
|
+ ),
|
|
395
|
+ 'pager_color' => array(
|
|
396
|
+ 'type' => 'color',
|
|
397
|
+ 'label' => __pl('color'),
|
|
398
|
+ 'css' => ['{{element}} .pagelayer-owl-dot span' => 'background-color: {{val}} !important'],
|
|
399
|
+ 'show' => ['dot_state' => ''],
|
|
400
|
+ ),
|
|
401
|
+ 'dot_num_color' => array(
|
|
402
|
+ 'type' => 'color',
|
|
403
|
+ 'label' => __pl('number_color'),
|
|
404
|
+ 'css' => ['{{element}} .pagelayer-owl-dot span::before' => 'color:{{val}}'],
|
|
405
|
+ 'req' => ['!show_num' => ''],
|
|
406
|
+ 'show' => ['dot_state' => ''],
|
|
407
|
+ ),
|
|
408
|
+ 'dot_size' => array(
|
|
409
|
+ 'type' => 'slider',
|
|
410
|
+ 'label' => __pl('dot_size'),
|
|
411
|
+ 'min' => 0,
|
|
412
|
+ 'step' => 1,
|
|
413
|
+ 'max' => 200,
|
|
414
|
+ 'screen' => 1,
|
|
415
|
+ 'css' => [
|
|
416
|
+ '{{element}} .pagelayer-owl-dot span' => 'width: {{val}}px !important; height: {{val}}px !important;'
|
|
417
|
+ ],
|
|
418
|
+ 'show' => ['dot_state' => ''],
|
|
419
|
+ ),
|
|
420
|
+ 'dot_width' => array(
|
|
421
|
+ 'type' => 'slider',
|
|
422
|
+ 'label' => __pl('dot_width'),
|
|
423
|
+ 'min' => 0,
|
|
424
|
+ 'step' => 1,
|
|
425
|
+ 'max' => 200,
|
|
426
|
+ 'screen' => 1,
|
|
427
|
+ 'css' => [
|
|
428
|
+ '{{element}} .pagelayer-owl-dot span' => 'width: {{val}}px !important;'
|
|
429
|
+ ],
|
|
430
|
+ 'show' => ['dot_state' => ''],
|
|
431
|
+ ),
|
|
432
|
+ 'dot_height' => array(
|
|
433
|
+ 'type' => 'slider',
|
|
434
|
+ 'label' => __pl('dot_height'),
|
|
435
|
+ 'min' => 0,
|
|
436
|
+ 'step' => 1,
|
|
437
|
+ 'max' => 200,
|
|
438
|
+ 'screen' => 1,
|
|
439
|
+ 'css' => [
|
|
440
|
+ '{{element}} .pagelayer-owl-dot span' => 'height: {{val}}px !important;'
|
|
441
|
+ ],
|
|
442
|
+ 'show' => ['dot_state' => ''],
|
|
443
|
+ ),
|
|
444
|
+ 'dot_radius' => array(
|
|
445
|
+ 'type' => 'padding',
|
|
446
|
+ 'label' => __pl('dot_radius'),
|
|
447
|
+ 'min' => 0,
|
|
448
|
+ 'step' => 1,
|
|
449
|
+ 'max' => 200,
|
|
450
|
+ 'screen' => 1,
|
|
451
|
+ 'css' => [
|
|
452
|
+ '{{element}} .pagelayer-owl-dot span' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important;'
|
|
453
|
+ ],
|
|
454
|
+ 'show' => ['dot_state' => ''],
|
|
455
|
+ ),
|
|
456
|
+ 'active_pager_color' => array(
|
|
457
|
+ 'type' => 'color',
|
|
458
|
+ 'label' => __pl('active_pager_color'),
|
|
459
|
+ 'css' => ['{{element}} .pagelayer-owl-dot.active span' => 'background-color: {{val}} !important'],
|
|
460
|
+ 'show' => ['!dot_state' => ''],
|
|
461
|
+ ),
|
|
462
|
+ 'active_dot_num_color' => array(
|
|
463
|
+ 'type' => 'color',
|
|
464
|
+ 'label' => __pl('number_color'),
|
|
465
|
+ 'css' => ['{{element}} .pagelayer-owl-dot.active span::before' => 'color:{{val}}'],
|
|
466
|
+ 'req' => ['!show_num' => ''],
|
|
467
|
+ 'show' => ['!dot_state' => ''],
|
|
468
|
+ ),
|
|
469
|
+ 'active_dot_size' => array(
|
|
470
|
+ 'type' => 'slider',
|
|
471
|
+ 'label' => __pl('active_dot_size'),
|
|
472
|
+ 'min' => 0,
|
|
473
|
+ 'step' => 1,
|
|
474
|
+ 'max' => 200,
|
|
475
|
+ 'screen' => 1,
|
|
476
|
+ 'css' => [
|
|
477
|
+ '{{element}} .pagelayer-owl-dot.active span' => 'width: {{val}}px !important; height: {{val}}px !important;'
|
|
478
|
+ ],
|
|
479
|
+ 'show' => ['!dot_state' => ''],
|
|
480
|
+ ),
|
|
481
|
+ 'active_dot_width' => array(
|
|
482
|
+ 'type' => 'slider',
|
|
483
|
+ 'label' => __pl('dot_width'),
|
|
484
|
+ 'min' => 0,
|
|
485
|
+ 'step' => 1,
|
|
486
|
+ 'max' => 200,
|
|
487
|
+ 'screen' => 1,
|
|
488
|
+ 'css' => [
|
|
489
|
+ '{{element}} .pagelayer-owl-dot.active span' => 'width: {{val}}px !important;'
|
|
490
|
+ ],
|
|
491
|
+ 'show' => ['!dot_state' => ''],
|
|
492
|
+ ),
|
|
493
|
+ 'active_dot_height' => array(
|
|
494
|
+ 'type' => 'slider',
|
|
495
|
+ 'label' => __pl('dot_height'),
|
|
496
|
+ 'min' => 0,
|
|
497
|
+ 'step' => 1,
|
|
498
|
+ 'max' => 200,
|
|
499
|
+ 'screen' => 1,
|
|
500
|
+ 'css' => [
|
|
501
|
+ '{{element}} .pagelayer-owl-dot.active span' => 'height: {{val}}px !important;'
|
|
502
|
+ ],
|
|
503
|
+ 'show' => ['!dot_state' => ''],
|
|
504
|
+ ),
|
|
505
|
+ 'active_dot_radius' => array(
|
|
506
|
+ 'type' => 'padding',
|
|
507
|
+ 'label' => __pl('dot_radius'),
|
|
508
|
+ 'min' => 0,
|
|
509
|
+ 'step' => 1,
|
|
510
|
+ 'max' => 200,
|
|
511
|
+ 'screen' => 1,
|
|
512
|
+ 'css' => [
|
|
513
|
+ '{{element}} .pagelayer-owl-dot.active span' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important;'
|
|
514
|
+ ],
|
|
515
|
+ 'show' => ['!dot_state' => ''],
|
|
516
|
+ ),
|
|
517
|
+ 'dot_border_type' => array(
|
|
518
|
+ 'type' => 'select',
|
|
519
|
+ 'label' => __pl('border_type'),
|
|
520
|
+ 'list' => [
|
|
521
|
+ '' => __pl('none'),
|
|
522
|
+ 'solid' => __pl('solid'),
|
|
523
|
+ 'double' => __pl('double'),
|
|
524
|
+ 'dotted' => __pl('dotted'),
|
|
525
|
+ 'dashed' => __pl('dashed'),
|
|
526
|
+ 'groove' => __pl('groove'),
|
|
527
|
+ ],
|
|
528
|
+ 'css' => [ '{{element}} .pagelayer-owl-dot span' => 'border-style: {{val}};' ],
|
|
529
|
+ ),
|
|
530
|
+ 'dot_border_width' => array(
|
|
531
|
+ 'type' => 'padding',
|
|
532
|
+ 'label' => __pl('border_width'),
|
|
533
|
+ 'screen' => 1,
|
|
534
|
+ 'css' => [ '{{element}} .pagelayer-owl-dot span' => 'border-width: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;' ],
|
|
535
|
+ 'req' => ['!dot_border_type' => ''],
|
|
536
|
+ ),
|
|
537
|
+ 'dot_border_color' => array(
|
|
538
|
+ 'type' => 'color',
|
|
539
|
+ 'label' => __pl('border_color'),
|
|
540
|
+ 'css' => [ '{{element}} .pagelayer-owl-dot span' => 'border-color: {{val}};' ],
|
|
541
|
+ 'req' => ['!dot_border_type' => ''],
|
|
542
|
+ ),
|
|
543
|
+ 'dot_pos' => array(
|
|
544
|
+ 'type' => 'select',
|
|
545
|
+ 'label' => __pl('position'),
|
|
546
|
+ 'list' => array(
|
|
547
|
+ '' => __pl('bottom'),
|
|
548
|
+ 'top' => __pl('top'),
|
|
549
|
+ 'right' => __pl('right'),
|
|
550
|
+ 'left' => __pl('left'),
|
|
551
|
+ ),
|
|
552
|
+ 'addClass' => ['pagelayer-slide-dot-pos-{{val}}'],
|
|
553
|
+ 'css' => ['{{element}} .pagelayer-owl-dots' => '{{val}}: 10px'],
|
|
554
|
+ ),
|
|
555
|
+ 'pager_top_space' => array(
|
|
556
|
+ 'type' => 'slider',
|
|
557
|
+ 'label' => __pl('service_btn_spacing'),
|
|
558
|
+ 'min' => 0,
|
|
559
|
+ 'step' => 1,
|
|
560
|
+ 'max' => 200,
|
|
561
|
+ 'screen' => 1,
|
|
562
|
+ 'css' => [
|
|
563
|
+ '{{element}} .pagelayer-owl-dots' => 'margin-top: {{val}}px !important;'
|
|
564
|
+ ]
|
|
565
|
+ )
|
|
566
|
+];
|
|
567
|
+
|
|
568
|
+$pagelayer->slider_options = [
|
|
569
|
+ 'slide_items' => array(
|
|
570
|
+ 'type' => 'spinner',
|
|
571
|
+ 'label' => __pl('number_of_items'),
|
|
572
|
+ 'np' => 1,
|
|
573
|
+ 'min' => 1,
|
|
574
|
+ 'step' => 1,
|
|
575
|
+ 'max' => 10,
|
|
576
|
+ 'default' => 1,
|
|
577
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-items="{{slide_items}}"'],
|
|
578
|
+ ),
|
|
579
|
+ 'slidein_anim' => array(
|
|
580
|
+ 'type' => 'select',
|
|
581
|
+ 'label' => __pl('animation_in'),
|
|
582
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-animate-in="{{slidein_anim}}"'],
|
|
583
|
+ 'list' => $pagelayer->anim_in_options,
|
|
584
|
+ 'req' => ['slide_items' => '1']
|
|
585
|
+ ),
|
|
586
|
+ 'slideout_anim' => array(
|
|
587
|
+ 'type' => 'select',
|
|
588
|
+ 'label' => __pl('animation_out'),
|
|
589
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-animate-out="{{slideout_anim}}"'],
|
|
590
|
+ 'list' => $pagelayer->anim_out_options,
|
|
591
|
+ 'req' => ['slide_items' => '1']
|
|
592
|
+ ),
|
|
593
|
+ 'slide_margin' => array(
|
|
594
|
+ 'type' => 'slider',
|
|
595
|
+ 'label' => __pl('space_between'),
|
|
596
|
+ 'min' => 0,
|
|
597
|
+ 'step' => 1,
|
|
598
|
+ 'max' => 100,
|
|
599
|
+ 'default' => 10,
|
|
600
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-margin="{{slide_margin}}"'],
|
|
601
|
+ 'req' => ['!slide_items' => '1']
|
|
602
|
+ ),
|
|
603
|
+ 'slide_loop' => array(
|
|
604
|
+ 'type' => 'checkbox',
|
|
605
|
+ 'label' => __pl('loop'),
|
|
606
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-loop="{{slide_loop}}"'],
|
|
607
|
+ ),
|
|
608
|
+ 'slide_controls' => array(
|
|
609
|
+ 'type' => 'select',
|
|
610
|
+ 'label' => __pl('slider_controls'),
|
|
611
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-controls="{{slide_controls}}"'],
|
|
612
|
+ 'list' => array(
|
|
613
|
+ '' => __pl('Arrows and Pager'),
|
|
614
|
+ 'arrows' => __pl('Arrows'),
|
|
615
|
+ 'pager' => __pl('Pager'),
|
|
616
|
+ 'none' => __pl('none'),
|
|
617
|
+ )
|
|
618
|
+ ),
|
|
619
|
+ 'slide_autoplay' => array(
|
|
620
|
+ 'type' => 'checkbox',
|
|
621
|
+ 'label' => __pl('autoplay'),
|
|
622
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-autoplay="{{slide_autoplay}}"'],
|
|
623
|
+ ),
|
|
624
|
+ 'slide_timeout' => array(
|
|
625
|
+ 'type' => 'spinner',
|
|
626
|
+ 'label' => __pl('autoplay_timeout'),
|
|
627
|
+ 'min' => 1000,
|
|
628
|
+ 'step' => 200,
|
|
629
|
+ 'max' => 10000,
|
|
630
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-autoplay-timeout="{{slide_timeout}}"'],
|
|
631
|
+ 'req' => ['slide_autoplay' => 'true']
|
|
632
|
+ ),
|
|
633
|
+ 'slide_hoverpause' => array(
|
|
634
|
+ 'type' => 'checkbox',
|
|
635
|
+ 'label' => __pl('autoplay_hover_pause'),
|
|
636
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-autoplay-hover-pause="{{slide_hoverpause}}"'],
|
|
637
|
+ 'req' => ['slide_autoplay' => 'true']
|
|
638
|
+ ),
|
|
639
|
+];
|
|
640
|
+
|
|
105
|
641
|
$pagelayer->styles['ele_bg_styles'] = [
|
|
106
|
642
|
'ele_bg_hover' => [
|
|
107
|
643
|
'type' => 'radio',
|
|
108
|
644
|
'label' => __pl('Background'),
|
|
@@ -127,9 +663,8 @@ |
|
127
|
663
|
],
|
|
128
|
664
|
'ele_bg_color' => [
|
|
129
|
665
|
'type' => 'color',
|
|
130
|
666
|
'label' => __pl('color'),
|
|
131
|
|
- 'default' => '',
|
|
132
|
667
|
'css' => 'background: {{val}};',
|
|
133
|
668
|
'show' => ['ele_bg_hover' => ''],
|
|
134
|
669
|
'req' => ['ele_bg_type' => 'color']
|
|
135
|
670
|
],
|
|
@@ -135,9 +670,9 @@ |
|
135
|
670
|
],
|
|
136
|
671
|
'ele_bg_gradient' => [
|
|
137
|
672
|
'type' => 'gradient',
|
|
138
|
673
|
'label' => '',
|
|
139
|
|
- 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
|
|
674
|
+ 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
|
|
140
|
675
|
'css' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);',
|
|
141
|
676
|
'show' => ['ele_bg_hover' => ''],
|
|
142
|
677
|
'req' => ['ele_bg_type' => 'gradient']
|
|
143
|
678
|
],
|
|
@@ -144,10 +679,10 @@ |
|
144
|
679
|
'ele_img_color' => [
|
|
145
|
680
|
'type' => 'color',
|
|
146
|
681
|
'label' => __pl('color'),
|
|
147
|
682
|
'default' => '',
|
|
148
|
|
- 'desc' => __pl('fallback background color if image is failed to load.'),
|
|
149
|
|
- 'css' => 'background: {{val}};',
|
|
683
|
+ 'desc' => __pl('fallback_color'),
|
|
684
|
+ 'css' => 'background-color: {{val}};',
|
|
150
|
685
|
'show' => ['ele_bg_hover' => ''],
|
|
151
|
686
|
'req' => ['ele_bg_type' => 'image']
|
|
152
|
687
|
],
|
|
153
|
688
|
'ele_bg_img' => [
|
|
@@ -152,9 +687,9 @@ |
|
152
|
687
|
],
|
|
153
|
688
|
'ele_bg_img' => [
|
|
154
|
689
|
'type' => 'image',
|
|
155
|
690
|
'label' => __pl('Image'),
|
|
156
|
|
- 'css' => 'background: url({{{ele_bg_img-url}}});',
|
|
691
|
+ 'css' => 'background-image: url("{{{ele_bg_img-url}}}");',
|
|
157
|
692
|
'show' => ['ele_bg_hover' => ''],
|
|
158
|
693
|
'req' => ['ele_bg_type' => 'image']
|
|
159
|
694
|
],
|
|
160
|
695
|
'ele_bg_attachment' => [
|
|
@@ -175,14 +710,28 @@ |
|
175
|
710
|
'list' => [
|
|
176
|
711
|
'' => __pl('default'),
|
|
177
|
712
|
'center' => __pl('center'),
|
|
178
|
713
|
'left' => __pl('left'),
|
|
179
|
|
- 'right' => __pl('right')
|
|
714
|
+ 'right' => __pl('right'),
|
|
715
|
+ 'custom' => __pl('custom')
|
|
180
|
716
|
],
|
|
181
|
717
|
'show' => ['ele_bg_hover' => ''],
|
|
182
|
718
|
'css' => 'background-position-x: {{val}};',
|
|
183
|
719
|
'req' => ['ele_bg_type' => 'image']
|
|
184
|
720
|
],
|
|
721
|
+ 'ele_bg_posx_custom' => array(
|
|
722
|
+ 'label' => __pl('custom_x'),
|
|
723
|
+ 'type' => 'slider',
|
|
724
|
+ 'step' => 1,
|
|
725
|
+ 'min' => -5000,
|
|
726
|
+ 'max' => 5000,
|
|
727
|
+ 'screen' => 1,
|
|
728
|
+ 'units' => ['px', 'em', '%'],
|
|
729
|
+ 'css' => 'background-position-x: {{val}};',
|
|
730
|
+ 'req' => array(
|
|
731
|
+ 'ele_bg_posx' => 'custom'
|
|
732
|
+ ),
|
|
733
|
+ ),
|
|
185
|
734
|
'ele_bg_posy' => [
|
|
186
|
735
|
'type' => 'select',
|
|
187
|
736
|
'label' => __pl('ele_bg_posy'),
|
|
188
|
737
|
'list' => [
|
|
@@ -188,14 +737,28 @@ |
|
188
|
737
|
'list' => [
|
|
189
|
738
|
'' => __pl('default'),
|
|
190
|
739
|
'center' => __pl('center'),
|
|
191
|
740
|
'top' => __pl('top'),
|
|
192
|
|
- 'bottom' => __pl('bottom')
|
|
741
|
+ 'bottom' => __pl('bottom'),
|
|
742
|
+ 'custom' => __pl('custom')
|
|
193
|
743
|
],
|
|
194
|
744
|
'show' => ['ele_bg_hover' => ''],
|
|
195
|
745
|
'css' => 'background-position-y: {{val}};',
|
|
196
|
746
|
'req' => ['ele_bg_type' => 'image']
|
|
197
|
747
|
],
|
|
748
|
+ 'ele_bg_posy_custom' => array(
|
|
749
|
+ 'label' => __pl('custom_y'),
|
|
750
|
+ 'type' => 'slider',
|
|
751
|
+ 'step' => 1,
|
|
752
|
+ 'min' => -5000,
|
|
753
|
+ 'max' => 5000,
|
|
754
|
+ 'screen' => 1,
|
|
755
|
+ 'units' => ['px', 'em', '%'],
|
|
756
|
+ 'css' => 'background-position-y: {{val}};',
|
|
757
|
+ 'req' => array(
|
|
758
|
+ 'ele_bg_posy' => 'custom'
|
|
759
|
+ ),
|
|
760
|
+ ),
|
|
198
|
761
|
'ele_bg_repeat' => [
|
|
199
|
762
|
'type' => 'select',
|
|
200
|
763
|
'label' => __pl('ele_bg_repeat'),
|
|
201
|
764
|
'css' => 'background-repeat: {{val}};',
|
|
@@ -220,18 +783,8 @@ |
|
220
|
783
|
],
|
|
221
|
784
|
'show' => ['ele_bg_hover' => ''],
|
|
222
|
785
|
'req' => ['ele_bg_type' => 'image']
|
|
223
|
786
|
],
|
|
224
|
|
- 'ele_bg_hover_delay' => [
|
|
225
|
|
- 'type' => 'spinner',
|
|
226
|
|
- 'label' => __pl('ele_bg_hover_delay'),
|
|
227
|
|
- 'min' => 0,
|
|
228
|
|
- 'step' => 100,
|
|
229
|
|
- 'max' => 5000,
|
|
230
|
|
- 'default' => 400,
|
|
231
|
|
- 'css' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;',
|
|
232
|
|
- 'show' => ['ele_bg_hover' => 'hover']
|
|
233
|
|
- ],
|
|
234
|
787
|
'ele_bg_type_hover' => [
|
|
235
|
788
|
'type' => 'radio',
|
|
236
|
789
|
'label' => __pl('background_type'),
|
|
237
|
790
|
'default' => '',
|
|
@@ -242,12 +795,22 @@ |
|
242
|
795
|
'image' => __pl('image'),
|
|
243
|
796
|
],
|
|
244
|
797
|
'show' => ['ele_bg_hover' => 'hover']
|
|
245
|
798
|
],
|
|
799
|
+ 'ele_bg_hover_delay' => [
|
|
800
|
+ 'type' => 'spinner',
|
|
801
|
+ 'label' => __pl('ele_bg_hover_delay'),
|
|
802
|
+ 'min' => 0,
|
|
803
|
+ 'step' => 100,
|
|
804
|
+ 'max' => 5000,
|
|
805
|
+ 'default' => 400,
|
|
806
|
+ 'css' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;',
|
|
807
|
+ 'req' => ['ele_bg_hover' => 'hover',
|
|
808
|
+ '!ele_bg_type_hover' => '']
|
|
809
|
+ ],
|
|
246
|
810
|
'ele_bg_color_hover' => [
|
|
247
|
811
|
'type' => 'color',
|
|
248
|
812
|
'label' => __pl('color_hover'),
|
|
249
|
|
- 'default' => '',
|
|
250
|
813
|
'css' => ['{{element}}:hover' => 'background: {{val}};'],
|
|
251
|
814
|
'show' => ['ele_bg_hover' => 'hover'],
|
|
252
|
815
|
'req' => ['ele_bg_type_hover' => 'color']
|
|
253
|
816
|
],
|
|
@@ -253,9 +816,9 @@ |
|
253
|
816
|
],
|
|
254
|
817
|
'ele_bg_gradient_hover' => [
|
|
255
|
818
|
'type' => 'gradient',
|
|
256
|
819
|
'label' => '',
|
|
257
|
|
- 'default' => '150,#44d3f6ff,25,#72e584ff,75,#2ca4ebff,100',
|
|
820
|
+ 'default' => '150,#44d3f6,25,#72e584,75,#2ca4eb,100',
|
|
258
|
821
|
'css' => ['{{element}}:hover' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
|
|
259
|
822
|
'show' => ['ele_bg_hover' => 'hover'],
|
|
260
|
823
|
'req' => ['ele_bg_type_hover' => 'gradient']
|
|
261
|
824
|
],
|
|
@@ -261,9 +824,9 @@ |
|
261
|
824
|
],
|
|
262
|
825
|
'ele_bg_img_hover' => [
|
|
263
|
826
|
'type' => 'image',
|
|
264
|
827
|
'label' => __pl('Image Hover'),
|
|
265
|
|
- 'css' => ['{{element}}:hover' => 'background: url({{{ele_bg_img_hover-url}}});'],
|
|
828
|
+ 'css' => ['{{element}}:hover' => 'background: url("{{{ele_bg_img_hover-url}}}");'],
|
|
266
|
829
|
'show' => ['ele_bg_hover' => 'hover'],
|
|
267
|
830
|
'req' => ['ele_bg_type_hover' => 'image']
|
|
268
|
831
|
],
|
|
269
|
832
|
'ele_bg_attachment_hover' => [
|
|
@@ -349,15 +912,20 @@ |
|
349
|
912
|
],
|
|
350
|
913
|
'ele_zindex' => [
|
|
351
|
914
|
'type' => 'slider',
|
|
352
|
915
|
'label' => __pl('z-index'),
|
|
353
|
|
- 'css' => 'z-index: {{val}}',
|
|
916
|
+ 'css' => ['{{wrap}}' => 'z-index: {{val}} !important; position: relative;'],
|
|
354
|
917
|
],
|
|
355
|
918
|
'ele_shadow' => [
|
|
356
|
|
- 'type' => 'shadow',
|
|
919
|
+ 'type' => 'box_shadow',
|
|
357
|
920
|
'label' => __pl('shadow'),
|
|
358
|
|
- 'css' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;',
|
|
359
|
|
- ]
|
|
921
|
+ 'css' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;',
|
|
922
|
+ ],
|
|
923
|
+ 'border_shadow_hover' => [ // This is actually box shadow hover
|
|
924
|
+ 'type' => 'box_shadow',
|
|
925
|
+ 'label' => __pl('box_shadow_hover'),
|
|
926
|
+ 'css' => ['{{element}}:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'],
|
|
927
|
+ ],
|
|
360
|
928
|
];
|
|
361
|
929
|
|
|
362
|
930
|
$pagelayer->styles['border_styles'] = [
|
|
363
|
931
|
'border_hover' => [
|
|
@@ -372,8 +940,9 @@ |
|
372
|
940
|
],
|
|
373
|
941
|
'border_type' => [
|
|
374
|
942
|
'type' => 'select',
|
|
375
|
943
|
'label' => __pl('border_type'),
|
|
944
|
+ 'screen' => 1,
|
|
376
|
945
|
'list' => [
|
|
377
|
946
|
'' => __pl('none'),
|
|
378
|
947
|
'solid' => __pl('solid'),
|
|
379
|
948
|
'double' => __pl('double'),
|
|
@@ -388,8 +957,9 @@ |
|
388
|
957
|
'type' => 'padding',
|
|
389
|
958
|
'label' => __pl('border_width'),
|
|
390
|
959
|
'default' => '1,1,1,1',
|
|
391
|
960
|
'units' => ['px', 'em'],
|
|
961
|
+ 'screen' => 1,
|
|
392
|
962
|
'show' => [
|
|
393
|
963
|
'border_hover' => ''
|
|
394
|
964
|
],
|
|
395
|
965
|
'req' => [
|
|
@@ -400,8 +970,9 @@ |
|
400
|
970
|
'border_color' => [
|
|
401
|
971
|
'type' => 'color',
|
|
402
|
972
|
'label' => __pl('border_color'),
|
|
403
|
973
|
'default' => '#CCC',
|
|
974
|
+ 'screen' => 1,
|
|
404
|
975
|
'show' => [
|
|
405
|
976
|
'border_hover' => ''
|
|
406
|
977
|
],
|
|
407
|
978
|
'req' => [
|
|
@@ -412,20 +983,16 @@ |
|
412
|
983
|
'border_radius' => [
|
|
413
|
984
|
'type' => 'padding',
|
|
414
|
985
|
'label' => __pl('border_radius'),
|
|
415
|
986
|
'units' => ['px', 'em'],
|
|
987
|
+ 'screen' => 1,
|
|
416
|
988
|
'show' => ['border_hover' => ''],
|
|
417
|
989
|
'css' => '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]}};',
|
|
418
|
990
|
],
|
|
419
|
|
- 'border_shadow' => [
|
|
420
|
|
- 'type' => 'shadow',
|
|
421
|
|
- 'label' => __pl('text_shadow'),
|
|
422
|
|
- 'css' => ['{{element}}' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
|
|
423
|
|
- 'show' => ['border_hover' => ''],
|
|
424
|
|
- ],
|
|
425
|
991
|
'border_type_hover' => [
|
|
426
|
992
|
'type' => 'select',
|
|
427
|
993
|
'label' => __pl('border_type'),
|
|
994
|
+ 'screen' => 1,
|
|
428
|
995
|
'list' => [
|
|
429
|
996
|
'' => __pl('none'),
|
|
430
|
997
|
'solid' => __pl('solid'),
|
|
431
|
998
|
'double' => __pl('double'),
|
|
@@ -439,8 +1006,9 @@ |
|
439
|
1006
|
'border_width_hover' => [
|
|
440
|
1007
|
'type' => 'padding',
|
|
441
|
1008
|
'label' => __pl('border_width'),
|
|
442
|
1009
|
'units' => ['px', 'em'],
|
|
1010
|
+ 'screen' => 1,
|
|
443
|
1011
|
'show' => [
|
|
444
|
1012
|
'border_hover' => 'hover'
|
|
445
|
1013
|
],
|
|
446
|
1014
|
'req' => [
|
|
@@ -450,8 +1018,9 @@ |
|
450
|
1018
|
],
|
|
451
|
1019
|
'border_color_hover' => [
|
|
452
|
1020
|
'type' => 'color',
|
|
453
|
1021
|
'label' => __pl('border_color'),
|
|
1022
|
+ 'screen' => 1,
|
|
454
|
1023
|
'show' => [
|
|
455
|
1024
|
'border_hover' => 'hover'
|
|
456
|
1025
|
],
|
|
457
|
1026
|
'req' => [
|
|
@@ -461,20 +1030,300 @@ |
|
461
|
1030
|
],
|
|
462
|
1031
|
'border_radius_hover' => [
|
|
463
|
1032
|
'type' => 'padding',
|
|
464
|
1033
|
'label' => __pl('border_radius'),
|
|
1034
|
+ 'screen' => 1,
|
|
465
|
1035
|
'units' => ['px', 'em'],
|
|
466
|
1036
|
'show' => ['border_hover' => 'hover'],
|
|
467
|
1037
|
'css' => ['{{element}}:hover' => '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]}};'],
|
|
468
|
1038
|
],
|
|
469
|
|
- 'border_shadow_hover' => [
|
|
470
|
|
- 'type' => 'shadow',
|
|
471
|
|
- 'label' => __pl('text_shadow'),
|
|
472
|
|
- 'css' => ['{{element}}:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
|
|
473
|
|
- 'show' => ['border_hover' => 'hover'],
|
|
1039
|
+];
|
|
1040
|
+
|
|
1041
|
+$pagelayer->styles['font_style'] = [
|
|
1042
|
+ 'font_family' => [
|
|
1043
|
+ 'type'=> 'font_family',
|
|
1044
|
+ 'label' => __pl('font_family'),
|
|
1045
|
+ 'screen' => 1,
|
|
1046
|
+ 'css' => ['{{element}}' => 'font-family: {{val}} !important;'],
|
|
474
|
1047
|
],
|
|
1048
|
+ 'font_size' => [
|
|
1049
|
+ 'type' => 'spinner',
|
|
1050
|
+ 'label' => __pl('font_size'),
|
|
1051
|
+ 'screen' => 1,
|
|
1052
|
+ 'min' => 0,
|
|
1053
|
+ 'step' => 1,
|
|
1054
|
+ 'max' => 200,
|
|
1055
|
+ 'css' => ['{{element}}' => 'font-size: {{val}}px !important;'],
|
|
1056
|
+ ],
|
|
1057
|
+ 'font_style' => [
|
|
1058
|
+ 'type' => 'select',
|
|
1059
|
+ 'label' => __pl('font_style'),
|
|
1060
|
+ 'screen' => 1,
|
|
1061
|
+ 'css' => ['{{element}}' => 'font-style: {{val}} !important'],
|
|
1062
|
+ 'list' => [
|
|
1063
|
+ '' => 'Default',
|
|
1064
|
+ 'Normal' => 'Normal',
|
|
1065
|
+ 'Italic' => 'Italic',
|
|
1066
|
+ 'Oblique' => 'Oblique',
|
|
1067
|
+ ],
|
|
1068
|
+ ],
|
|
1069
|
+ 'font_weight' => [
|
|
1070
|
+ 'type' => 'select',
|
|
1071
|
+ 'label' => __pl('font_weight'),
|
|
1072
|
+ 'screen' => 1,
|
|
1073
|
+ 'css' => ['{{element}}' => 'font-weight: {{val}} !important'],
|
|
1074
|
+ 'list' => [
|
|
1075
|
+ '0' => 'Default',
|
|
1076
|
+ '100' => '100',
|
|
1077
|
+ '200' => '200',
|
|
1078
|
+ '300' => '300',
|
|
1079
|
+ '400' => '400',
|
|
1080
|
+ '500' => '500',
|
|
1081
|
+ '600' => '600',
|
|
1082
|
+ '700' => '700',
|
|
1083
|
+ '800' => '800',
|
|
1084
|
+ '900' => '900',
|
|
1085
|
+ 'normal' => 'Normal',
|
|
1086
|
+ 'lighter' => 'Lighter',
|
|
1087
|
+ 'bold' => 'Bold',
|
|
1088
|
+ 'bolder' => 'Bolder',
|
|
1089
|
+ 'unset' => 'Unset',
|
|
1090
|
+ ],
|
|
1091
|
+ ],
|
|
1092
|
+ 'font_variant' => [
|
|
1093
|
+ 'type' => 'select',
|
|
1094
|
+ 'label' => __pl('font_variant'),
|
|
1095
|
+ 'screen' => 1,
|
|
1096
|
+ 'css' => ['{{element}}' => 'font-variant: {{val}} !important'],
|
|
1097
|
+ 'list' => [
|
|
1098
|
+ '' => 'Default',
|
|
1099
|
+ 'Normal' => 'Normal',
|
|
1100
|
+ 'Small-caps' => 'Small Caps',
|
|
1101
|
+ ],
|
|
1102
|
+ ],
|
|
1103
|
+ 'font_decoration_line' => [
|
|
1104
|
+ 'type' => 'select',
|
|
1105
|
+ 'label' => __pl('decoration_line'),
|
|
1106
|
+ 'screen' => 1,
|
|
1107
|
+ 'css' => ['{{element}}' => 'text-decoration-line: {{val}} !important'],
|
|
1108
|
+ 'list' => [
|
|
1109
|
+ 'none' => 'None',
|
|
1110
|
+ 'Overline' => 'Overline',
|
|
1111
|
+ 'Line-through' => 'Line Through',
|
|
1112
|
+ 'Underline' => 'Underline',
|
|
1113
|
+ 'Underline Overline' => 'Underline Overline',
|
|
1114
|
+ ],
|
|
1115
|
+ ],
|
|
1116
|
+ 'font_decoration_style' => [
|
|
1117
|
+ 'type' => 'select',
|
|
1118
|
+ 'label' => __pl('decoration_style'),
|
|
1119
|
+ 'screen' => 1,
|
|
1120
|
+ 'css' => ['{{element}}' => 'text-decoration-style: {{val}} !important'],
|
|
1121
|
+ 'list' => [
|
|
1122
|
+ '' => __pl('none'),
|
|
1123
|
+ 'solid' => __pl('solid'),
|
|
1124
|
+ 'double' => __pl('double'),
|
|
1125
|
+ 'dotted' => __pl('dotted'),
|
|
1126
|
+ 'dashed' => __pl('dashed'),
|
|
1127
|
+ 'wavy' => __pl('Wavy'),
|
|
1128
|
+ ],
|
|
1129
|
+ 'req' => [
|
|
1130
|
+ '!ele_font_decoration_line' => 'none',
|
|
1131
|
+ ],
|
|
1132
|
+ ],
|
|
1133
|
+ 'line_height' => [
|
|
1134
|
+ 'type' => 'spinner',
|
|
1135
|
+ 'label' => __pl('line_height'),
|
|
1136
|
+ 'screen' => 1,
|
|
1137
|
+ 'min' => 0,
|
|
1138
|
+ 'step' => 0.1,
|
|
1139
|
+ 'max' => 15,
|
|
1140
|
+ 'css' => ['{{element}}' => 'line-height: {{val}}em !important;'],
|
|
1141
|
+ ],
|
|
1142
|
+ 'text_transform' => [
|
|
1143
|
+ 'type' => 'select',
|
|
1144
|
+ 'label' => __pl('text_transform'),
|
|
1145
|
+ 'screen' => 1,
|
|
1146
|
+ 'css' => ['{{element}}' => 'text-transform: {{val}} !important'],
|
|
1147
|
+ 'list' => [
|
|
1148
|
+ '' => 'Default',
|
|
1149
|
+ 'Capitalize' => 'Capitalize',
|
|
1150
|
+ 'Uppercase' => 'Uppercase',
|
|
1151
|
+ 'Lowercase' => 'Lowercase',
|
|
1152
|
+ ],
|
|
1153
|
+ ],
|
|
1154
|
+ 'text_spacing' => [
|
|
1155
|
+ 'type' => 'spinner',
|
|
1156
|
+ 'label' => __pl('text_spacing'),
|
|
1157
|
+ 'screen' => 1,
|
|
1158
|
+ 'min' => -10,
|
|
1159
|
+ 'step' => 0.1,
|
|
1160
|
+ 'max' => 10,
|
|
1161
|
+ 'css' => ['{{element}}' => 'letter-spacing: {{val}}px !important;'],
|
|
1162
|
+ ],
|
|
1163
|
+ 'word_spacing' => [
|
|
1164
|
+ 'type' => 'spinner',
|
|
1165
|
+ 'label' => __pl('word_spacing'),
|
|
1166
|
+ 'screen' => 1,
|
|
1167
|
+ 'min' => 0,
|
|
1168
|
+ 'step' => 1,
|
|
1169
|
+ 'max' => 50,
|
|
1170
|
+ 'css' => ['{{element}}' => 'word-spacing: {{val}}px !important;'],
|
|
1171
|
+ ],
|
|
475
|
1172
|
];
|
|
476
|
1173
|
|
|
1174
|
+$pagelayer->styles['position_styles'] = [
|
|
1175
|
+ 'ele_custom_pos' => array(
|
|
1176
|
+ 'type' => 'checkbox',
|
|
1177
|
+ 'label' => __pl('enable'),
|
|
1178
|
+ ),
|
|
1179
|
+ 'ele_width' => [
|
|
1180
|
+ 'type' => 'select',
|
|
1181
|
+ 'label' => __pl('width'),
|
|
1182
|
+ 'screen' => 1,
|
|
1183
|
+ 'css' => ['{{wrap}}' => 'width:{{val}} !important;'],
|
|
1184
|
+ 'list' => [
|
|
1185
|
+ 'initial' => __pl('default'),
|
|
1186
|
+ '100%' => __pl('full'),
|
|
1187
|
+ '' => __pl('custom'),
|
|
1188
|
+ ],
|
|
1189
|
+ 'req' => ['ele_custom_pos' => 'true']
|
|
1190
|
+ ],
|
|
1191
|
+ 'ele_custom_width' => [
|
|
1192
|
+ 'type' => 'slider',
|
|
1193
|
+ 'label' => __pl('custom_width'),
|
|
1194
|
+ 'screen' => 1,
|
|
1195
|
+ 'units' => ['px','%','vw'],
|
|
1196
|
+ 'css' => ['{{wrap}}' => 'width:{{val}} !important;'],
|
|
1197
|
+ 'min' => 0,
|
|
1198
|
+ 'max' => 1000,
|
|
1199
|
+ 'step' => 1,
|
|
1200
|
+ 'req' => [
|
|
1201
|
+ 'ele_width' => '',
|
|
1202
|
+ 'ele_custom_pos' => 'true'
|
|
1203
|
+ ]
|
|
1204
|
+ ],
|
|
1205
|
+ 'ele_align' => [
|
|
1206
|
+ 'type' => 'select',
|
|
1207
|
+ 'label' => __pl('alignment'),
|
|
1208
|
+ 'default' => 'margin',
|
|
1209
|
+ 'screen' => 1,
|
|
1210
|
+ 'css' => ['{{wrap}}' => 'position:relative; left:{{val}}; transform:translateX(-{{val}});'],
|
|
1211
|
+ 'list' => [
|
|
1212
|
+ '0%' => __pl('left'),
|
|
1213
|
+ '50%' => __pl('center'),
|
|
1214
|
+ '100%' => __pl('right'),
|
|
1215
|
+ ],
|
|
1216
|
+ 'req' => [
|
|
1217
|
+ 'ele_width' => '',
|
|
1218
|
+ 'ele_custom_pos' => 'true'
|
|
1219
|
+ ]
|
|
1220
|
+ ],
|
|
1221
|
+ 'ele_height' => [
|
|
1222
|
+ 'type' => 'select',
|
|
1223
|
+ 'label' => __pl('height'),
|
|
1224
|
+ 'screen' => 1,
|
|
1225
|
+ 'default' => 'auto',
|
|
1226
|
+ 'css' => ['{{wrap}}' => 'height:{{val}};'],
|
|
1227
|
+ 'list' => [
|
|
1228
|
+ 'auto' => __pl('default'),
|
|
1229
|
+ '100%' => __pl('full'),
|
|
1230
|
+ '' => __pl('custom'),
|
|
1231
|
+ ],
|
|
1232
|
+ 'req' => ['ele_custom_pos' => 'true']
|
|
1233
|
+ ],
|
|
1234
|
+ 'ele_custom_height' => [
|
|
1235
|
+ 'type' => 'slider',
|
|
1236
|
+ 'label' => __pl('custom_height'),
|
|
1237
|
+ 'screen' => 1,
|
|
1238
|
+ 'units' => ['px','%','vh'],
|
|
1239
|
+ 'css' => ['{{wrap}}' => 'height:{{val}};'],
|
|
1240
|
+ 'min' => 0,
|
|
1241
|
+ 'max' => 1000,
|
|
1242
|
+ 'step' => 1,
|
|
1243
|
+ 'req' => [
|
|
1244
|
+ 'ele_height' => '',
|
|
1245
|
+ 'ele_custom_pos' => 'true'
|
|
1246
|
+ ]
|
|
1247
|
+ ],
|
|
1248
|
+ 'ele_position' => [
|
|
1249
|
+ 'type' => 'select',
|
|
1250
|
+ 'label' => __pl('position'),
|
|
1251
|
+ 'default' => '',
|
|
1252
|
+ 'screen' => 1,
|
|
1253
|
+ 'css' => ['{{wrap}}' => 'position:{{val}} !important; z-index: 1; transform: translateX(-0%);'],
|
|
1254
|
+ 'list' => [
|
|
1255
|
+ '' => __pl('default'),
|
|
1256
|
+ 'absolute' => __pl('absolute'),
|
|
1257
|
+ 'fixed' => __pl('fixed'),
|
|
1258
|
+ 'relative' => __pl('relative'),
|
|
1259
|
+ ],
|
|
1260
|
+ 'req' => ['ele_custom_pos' => 'true']
|
|
1261
|
+ ],
|
|
1262
|
+ 'ele_vposition' => [
|
|
1263
|
+ 'type' => 'select',
|
|
1264
|
+ 'label' => __pl('verticle_pos'),
|
|
1265
|
+ 'screen' => 1,
|
|
1266
|
+ 'css' => ['{{wrap}}' => '{{val}}:0;'],
|
|
1267
|
+ 'list' => [
|
|
1268
|
+ '' => __pl('default'),
|
|
1269
|
+ 'top' => __pl('top'),
|
|
1270
|
+ 'bottom' => __pl('bottom')
|
|
1271
|
+ ],
|
|
1272
|
+ 'req' => [
|
|
1273
|
+ '!ele_position' => '',
|
|
1274
|
+ 'ele_custom_pos' => 'true'
|
|
1275
|
+ ]
|
|
1276
|
+ ],
|
|
1277
|
+ 'ele_vposition_offset' => [
|
|
1278
|
+ 'type' => 'slider',
|
|
1279
|
+ 'label' => __pl('ver_offset'),
|
|
1280
|
+ 'screen' => 1,
|
|
1281
|
+ 'units' => ['px','%','em'],
|
|
1282
|
+ 'css' => ['{{wrap}}' => '{{ele_vposition}}:{{val}};'],
|
|
1283
|
+ 'default' => 0,
|
|
1284
|
+ 'min' => -1000,
|
|
1285
|
+ 'max' => 1000,
|
|
1286
|
+ 'step' => 1,
|
|
1287
|
+ 'req' => [
|
|
1288
|
+ '!ele_vposition' => '',
|
|
1289
|
+ '!ele_position' => '',
|
|
1290
|
+ 'ele_custom_pos' => 'true'
|
|
1291
|
+ ]
|
|
1292
|
+ ],
|
|
1293
|
+ 'ele_hposition' => [
|
|
1294
|
+ 'type' => 'select',
|
|
1295
|
+ 'label' => __pl('horizontal_pos'),
|
|
1296
|
+ 'screen' => 1,
|
|
1297
|
+ 'css' => ['{{wrap}}' => '{{val}}:0;'],
|
|
1298
|
+ 'list' => [
|
|
1299
|
+ '' => __pl('default'),
|
|
1300
|
+ 'left' => __pl('left'),
|
|
1301
|
+ 'right' => __pl('right')
|
|
1302
|
+ ],
|
|
1303
|
+ 'req' => [
|
|
1304
|
+ '!ele_position' => '',
|
|
1305
|
+ 'ele_custom_pos' => 'true'
|
|
1306
|
+ ]
|
|
1307
|
+ ],
|
|
1308
|
+ 'ele_hposition_offset' => [
|
|
1309
|
+ 'type' => 'slider',
|
|
1310
|
+ 'label' => __pl('hor_offset'),
|
|
1311
|
+ 'screen' => 1,
|
|
1312
|
+ 'units' => ['px','%','em'],
|
|
1313
|
+ 'css' => ['{{wrap}}' => '{{ele_hposition}}:{{val}};'],
|
|
1314
|
+ 'default' => 0,
|
|
1315
|
+ 'min' => -1000,
|
|
1316
|
+ 'max' => 1000,
|
|
1317
|
+ 'step' => 1,
|
|
1318
|
+ 'req' => [
|
|
1319
|
+ '!ele_hposition' => '',
|
|
1320
|
+ '!ele_position' => '',
|
|
1321
|
+ 'ele_custom_pos' => 'true'
|
|
1322
|
+ ]
|
|
1323
|
+ ]
|
|
1324
|
+];
|
|
1325
|
+
|
|
477
|
1326
|
$pagelayer->styles['animation_styles'] = [
|
|
478
|
1327
|
'animation' => [
|
|
479
|
1328
|
'type' => 'select',
|
|
480
|
1329
|
'label' => __pl('animation'),
|
|
@@ -479,59 +1328,9 @@ |
|
479
|
1328
|
'type' => 'select',
|
|
480
|
1329
|
'label' => __pl('animation'),
|
|
481
|
1330
|
'default' => '',
|
|
482
|
1331
|
'addClass' => ['{{val}}',( !pagelayer_is_live() ? 'pagelayer-wow' : '' )],
|
|
483
|
|
- 'list' => [
|
|
484
|
|
- '' => __pl('none'),
|
|
485
|
|
- __pl('fading') => [
|
|
486
|
|
- 'fadeIn' => __pl('fadein'),
|
|
487
|
|
- 'fadeInDown' => __pl('fadeindown'),
|
|
488
|
|
- 'fadeInUp' => __pl('fadeinup'),
|
|
489
|
|
- 'fadeInLeft' => __pl('fadeinleft'),
|
|
490
|
|
- 'fadeInRight' => __pl('fadeinright'),
|
|
491
|
|
- ],
|
|
492
|
|
- __pl('zooming') => [
|
|
493
|
|
- 'zoomIn' => __pl('zoomin'),
|
|
494
|
|
- 'zoomInDown' => __pl('zoomindown'),
|
|
495
|
|
- 'zoomInUp' => __pl('zoominup'),
|
|
496
|
|
- 'zoomInLeft' => __pl('zoominleft'),
|
|
497
|
|
- 'zoomInRight' => __pl('zoominright'),
|
|
498
|
|
- ],
|
|
499
|
|
- __pl('bounceing') => [
|
|
500
|
|
- 'bounceIn' => __pl('bouncein'),
|
|
501
|
|
- 'bounceInDown' => __pl('bounceindown'),
|
|
502
|
|
- 'bounceInUp' => __pl('bounceinup'),
|
|
503
|
|
- 'bounceInLeft' => __pl('bounceinleft'),
|
|
504
|
|
- 'bounceInRight' => __pl('bounceinright'),
|
|
505
|
|
- ],
|
|
506
|
|
- __pl('sliding') => [
|
|
507
|
|
- 'slideInDown' => __pl('slideindown'),
|
|
508
|
|
- 'slideInUp' => __pl('slideinup'),
|
|
509
|
|
- 'slideInLeft' => __pl('slideinleft'),
|
|
510
|
|
- 'slideInRight' => __pl('slideinright'),
|
|
511
|
|
- ],
|
|
512
|
|
- __pl('rotating') => [
|
|
513
|
|
- 'rotateIn' => __pl('rotatein'),
|
|
514
|
|
- 'rotateInDown' => __pl('rotateindown'),
|
|
515
|
|
- 'rotateInUp' => __pl('rotateinup'),
|
|
516
|
|
- 'rotateInLeft' => __pl('rotateinleft'),
|
|
517
|
|
- 'rotateInRight' => __pl('rotateinright'),
|
|
518
|
|
- ],
|
|
519
|
|
- __pl('effects') => [
|
|
520
|
|
- 'lightSpeedIn' => __pl('lightspeedin'),
|
|
521
|
|
- 'bounce' => __pl('bounce'),
|
|
522
|
|
- 'pulse' => __pl('pulse'),
|
|
523
|
|
- 'rubberBand' => __pl('rubberband'),
|
|
524
|
|
- 'flash' => __pl('flash'),
|
|
525
|
|
- 'swing' => __pl('swing'),
|
|
526
|
|
- 'jello' => __pl('jello'),
|
|
527
|
|
- 'tada' => __pl('tada'),
|
|
528
|
|
- 'wobble' => __pl('wobble'),
|
|
529
|
|
- 'rollin' => __pl('rollin'),
|
|
530
|
|
- 'headShake' => __pl('headshake'),
|
|
531
|
|
- 'shake' => __pl('shake'),
|
|
532
|
|
- ],
|
|
533
|
|
- ],
|
|
1332
|
+ 'list' => $pagelayer->anim_in_options
|
|
534
|
1333
|
],
|
|
535
|
1334
|
'animation_speed' => [
|
|
536
|
1335
|
'type' => 'select',
|
|
537
|
1336
|
'label' => __pl('animate_speed'),
|
|
@@ -559,10 +1358,692 @@ |
|
559
|
1358
|
'req' => [
|
|
560
|
1359
|
'!animation' => ''
|
|
561
|
1360
|
]
|
|
562
|
1361
|
],
|
|
1362
|
+ 'ele_hover_anim' => array(
|
|
1363
|
+ 'type' => 'select',
|
|
1364
|
+ 'label' => __pl('cta_hover_anim_label'),
|
|
1365
|
+ 'addClass' => 'pagelayer-animation-{{val}}',
|
|
1366
|
+ 'list' => [
|
|
1367
|
+ '' => __pl('none'),
|
|
1368
|
+ 'grow' => __pl('Grow'),
|
|
1369
|
+ 'shrink' => __pl('Shrink'),
|
|
1370
|
+ 'pulse' => __pl('Pulse'),
|
|
1371
|
+ 'pulse-grow' => __pl('Pulse Grow'),
|
|
1372
|
+ 'pulse-shrink' => __pl('Pulse Shrink'),
|
|
1373
|
+ 'push' => __pl('Push'),
|
|
1374
|
+ 'pop' => __pl('Pop'),
|
|
1375
|
+ 'buzz' => __pl('Buzz'),
|
|
1376
|
+ 'buzz-out' => __pl('Buzz Out'),
|
|
1377
|
+ 'float' => __pl('Float'),
|
|
1378
|
+ 'sink' => __pl('Sink'),
|
|
1379
|
+ 'bob' => __pl('Bob'),
|
|
1380
|
+ 'hang' => __pl('Hang'),
|
|
1381
|
+ 'bounce-in' => __pl('Bounce In'),
|
|
1382
|
+ 'bounce-out' => __pl('Bounce Out'),
|
|
1383
|
+ 'rotate' => __pl('Rotate'),
|
|
1384
|
+ 'grow-rotate' => __pl('Grow Rotate'),
|
|
1385
|
+ 'skew-forward' => __pl('Skew Forward'),
|
|
1386
|
+ 'skew-backward' => __pl('Skew Backward'),
|
|
1387
|
+ 'wobble-vertical' => __pl('Wobble Vertical'),
|
|
1388
|
+ 'wobble-horizontal' => __pl('Wobble Horizontal'),
|
|
1389
|
+ 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
|
|
1390
|
+ 'wobble-top-to-right' => __pl('Wobble Top To Right'),
|
|
1391
|
+ 'wobble-top' => __pl('Wobble Top'),
|
|
1392
|
+ 'wobble-bottom' => __pl('Wobble Bottom'),
|
|
1393
|
+ 'wobble-skew' => __pl('Wobble Skew'),
|
|
1394
|
+ ],
|
|
1395
|
+ 'pro' => 1,
|
|
1396
|
+ ),
|
|
1397
|
+ 'ele_sticky_pos' => array(
|
|
1398
|
+ 'type' => 'select',
|
|
1399
|
+ 'label' => __pl('scroll_sticky'),
|
|
1400
|
+ 'addClass' => 'pagelayer-sticky-ele',
|
|
1401
|
+ 'addAttr' => 'data-sticky-position="{{ele_sticky_pos}}"',
|
|
1402
|
+ 'list' => array(
|
|
1403
|
+ '' => __pl('none'),
|
|
1404
|
+ 'top' => __pl('top'),
|
|
1405
|
+ 'bottom' => __pl('bottom'),
|
|
1406
|
+ ),
|
|
1407
|
+ 'pro' => 1,
|
|
1408
|
+ ),
|
|
1409
|
+ 'ele_sticky_on' => array(
|
|
1410
|
+ 'type' => 'multiselect',
|
|
1411
|
+ 'label' => __pl('sticky_on'),
|
|
1412
|
+ 'default' => 'desktop,tablet,mobile',
|
|
1413
|
+ 'addAttr' => 'data-sticky-on="{{ele_sticky_on}}"',
|
|
1414
|
+ 'list' => array(
|
|
1415
|
+ 'desktop' => __pl('desktop'),
|
|
1416
|
+ 'tablet' => __pl('tablet'),
|
|
1417
|
+ 'mobile' => __pl('mobile'),
|
|
1418
|
+ ),
|
|
1419
|
+ 'req' => [ '!ele_sticky_pos' => ''],
|
|
1420
|
+ 'pro' => 1,
|
|
1421
|
+ ),
|
|
1422
|
+ 'ele_sticky_offset' => array(
|
|
1423
|
+ 'type' => 'slider',
|
|
1424
|
+ 'label' => __pl('offset'),
|
|
1425
|
+ 'addAttr' => 'data-sticky-offset="{{ele_sticky_offset}}"',
|
|
1426
|
+ 'req' => [ '!ele_sticky_pos' => ''],
|
|
1427
|
+ 'pro' => 1,
|
|
1428
|
+ ),
|
|
1429
|
+ 'ele_sticky_in_col' => array(
|
|
1430
|
+ 'type' => 'checkbox',
|
|
1431
|
+ 'label' => __pl('sticky_in_col'),
|
|
1432
|
+ 'addAttr' => 'data-sticky_in_col="{{ele_sticky_in_col}}"',
|
|
1433
|
+ 'req' => [ '!ele_sticky_pos' => ''],
|
|
1434
|
+ 'pro' => 1,
|
|
1435
|
+ ),
|
|
563
|
1436
|
];
|
|
564
|
1437
|
|
|
1438
|
+$pagelayer->styles['motion_effects'] = [
|
|
1439
|
+ 'ele_motion_effects' => [
|
|
1440
|
+ 'type' => 'radio',
|
|
1441
|
+ 'label' => '',
|
|
1442
|
+ 'list' => [
|
|
1443
|
+ '' => __pl('Scrolling'),
|
|
1444
|
+ 'mouse' => __pl('Mouse'),
|
|
1445
|
+ ],
|
|
1446
|
+ ],
|
|
1447
|
+ 'ele_scrolling_effects' => array(
|
|
1448
|
+ 'type' => 'checkbox',
|
|
1449
|
+ 'label' => __pl('Scrolling Effects'),
|
|
1450
|
+ 'addClass' => 'pagelayer-scrolling-effects',
|
|
1451
|
+ 'show' => ['ele_motion_effects' => ''],
|
|
1452
|
+ 'pro' => 1
|
|
1453
|
+ ),
|
|
1454
|
+ // Vertical Scroll Group
|
|
1455
|
+ 'ele_vertical_scroll_group' => array(
|
|
1456
|
+ 'type' => 'access',
|
|
1457
|
+ 'label' => __pl('Vertical Scroll'),
|
|
1458
|
+ 'show_group' => 'scrolling_v',
|
|
1459
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1460
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1461
|
+ ),
|
|
1462
|
+ // Vertical Scroll Settings
|
|
1463
|
+ 'ele_vertical_scroll' => array(
|
|
1464
|
+ 'type' => 'checkbox',
|
|
1465
|
+ 'label' => __pl('Enable'),
|
|
1466
|
+ 'group' => 'scrolling_v',
|
|
1467
|
+ 'addAttr' => 'ele_vertical_scroll="{{ele_vertical_scroll}}"',
|
|
1468
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1469
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1470
|
+ ),
|
|
1471
|
+ 'ele_v_sc_direction' => array(
|
|
1472
|
+ 'type' => 'select',
|
|
1473
|
+ 'label' => __pl('Direction'),
|
|
1474
|
+ 'group' => 'scrolling_v',
|
|
1475
|
+ 'default' => 'opposite',
|
|
1476
|
+ 'list' => array(
|
|
1477
|
+ 'opposite' => __pl('Opposite'),
|
|
1478
|
+ 'similar' => __pl('Similar'),
|
|
1479
|
+ ),
|
|
1480
|
+ 'addAttr' => 'ele_v_sc_direction="{{ele_v_sc_direction}}"',
|
|
1481
|
+ 'req' => ['!ele_vertical_scroll' => '', '!ele_scrolling_effects' => ''],
|
|
1482
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1483
|
+ ),
|
|
1484
|
+ 'ele_v_sc_speed' => array(
|
|
1485
|
+ 'type' => 'slider',
|
|
1486
|
+ 'label' => __pl('speed'),
|
|
1487
|
+ 'group' => 'scrolling_v',
|
|
1488
|
+ 'min' => 0,
|
|
1489
|
+ 'step' => 0.1,
|
|
1490
|
+ 'max' => 10,
|
|
1491
|
+ 'default' => 5,
|
|
1492
|
+ 'addAttr' => 'ele_v_sc_speed="{{ele_v_sc_speed}}"',
|
|
1493
|
+ 'req' => [ '!ele_vertical_scroll' => '', '!ele_scrolling_effects' => ''],
|
|
1494
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1495
|
+ ),
|
|
1496
|
+ 'ele_v_sc_top_viewport' => array(
|
|
1497
|
+ 'type' => 'slider',
|
|
1498
|
+ 'label' => __pl('Top'),
|
|
1499
|
+ 'group' => 'scrolling_v',
|
|
1500
|
+ 'min' => 0,
|
|
1501
|
+ 'step' => 1,
|
|
1502
|
+ 'max' => 100,
|
|
1503
|
+ 'default' => 100,
|
|
1504
|
+ 'screen' => 1,
|
|
1505
|
+ 'addAttr' => 'ele_v_sc_top_viewport="{{ele_v_sc_top_viewport}}"',
|
|
1506
|
+ 'req' => [ '!ele_vertical_scroll' => '', '!ele_scrolling_effects' => ''],
|
|
1507
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1508
|
+ ),
|
|
1509
|
+ 'ele_v_sc_bottom_viewport' => array(
|
|
1510
|
+ 'type' => 'slider',
|
|
1511
|
+ 'label' => __pl('bottom'),
|
|
1512
|
+ 'group' => 'scrolling_v',
|
|
1513
|
+ 'min' => 0,
|
|
1514
|
+ 'step' => 1,
|
|
1515
|
+ 'max' => 100,
|
|
1516
|
+ 'default' => 100,
|
|
1517
|
+ 'screen' => 1,
|
|
1518
|
+ 'addAttr' => 'ele_v_sc_bottom_viewport="{{ele_v_sc_bottom_viewport}}"',
|
|
1519
|
+ 'req' => [ '!ele_vertical_scroll' => '', '!ele_scrolling_effects' => ''],
|
|
1520
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1521
|
+ ),
|
|
1522
|
+ //Horizontal Group
|
|
1523
|
+ 'ele_horizontal_scroll_group' => array(
|
|
1524
|
+ 'type' => 'access',
|
|
1525
|
+ 'label' => __pl('Horizontal Scroll'),
|
|
1526
|
+ 'show_group' => 'scrolling_h',
|
|
1527
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1528
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1529
|
+ ),
|
|
1530
|
+ // Horizontal Scroll
|
|
1531
|
+ 'ele_horizontal_scroll' => array(
|
|
1532
|
+ 'type' => 'checkbox',
|
|
1533
|
+ 'label' => __pl('Enable'),
|
|
1534
|
+ 'group' => 'scrolling_h',
|
|
1535
|
+ 'css' => 'transform:translateX(var(--transX));',
|
|
1536
|
+ 'addAttr' => 'ele_horizontal_scroll="{{ele_horizontal_scroll}}"',
|
|
1537
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1538
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1539
|
+ ),
|
|
1540
|
+ 'ele_h_sc_direction' => array(
|
|
1541
|
+ 'type' => 'select',
|
|
1542
|
+ 'label' => __pl('Direction'),
|
|
1543
|
+ 'group' => 'scrolling_h',
|
|
1544
|
+ 'default' => 'toleft',
|
|
1545
|
+ 'list' => array(
|
|
1546
|
+ 'toleft' => __pl('Toleft'),
|
|
1547
|
+ 'toright' => __pl('Toright'),
|
|
1548
|
+ ),
|
|
1549
|
+ 'addAttr' => 'ele_h_sc_direction="{{ele_h_sc_direction}}"',
|
|
1550
|
+ 'req' => ['!ele_horizontal_scroll' => '', '!ele_scrolling_effects' => ''],
|
|
1551
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1552
|
+ ),
|
|
1553
|
+ 'ele_h_sc_speed' => array(
|
|
1554
|
+ 'type' => 'slider',
|
|
1555
|
+ 'label' => __pl('speed'),
|
|
1556
|
+ 'group' => 'scrolling_h',
|
|
1557
|
+ 'min' => 0,
|
|
1558
|
+ 'step' => 0.1,
|
|
1559
|
+ 'max' => 10,
|
|
1560
|
+ 'default' => 5,
|
|
1561
|
+ 'addAttr' => 'ele_h_sc_speed="{{ele_h_sc_speed}}"',
|
|
1562
|
+ 'req' => [ '!ele_horizontal_scroll' => '', '!ele_scrolling_effects' => ''],
|
|
1563
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1564
|
+ ),
|
|
1565
|
+ 'ele_h_sc_left_viewport' => array(
|
|
1566
|
+ 'type' => 'slider',
|
|
1567
|
+ 'label' => __pl('Left'),
|
|
1568
|
+ 'group' => 'scrolling_h',
|
|
1569
|
+ 'min' => 0,
|
|
1570
|
+ 'step' => 1,
|
|
1571
|
+ 'max' => 100,
|
|
1572
|
+ 'default' => 100,
|
|
1573
|
+ 'screen' => 1,
|
|
1574
|
+ 'addAttr' => 'ele_h_sc_left_viewport="{{ele_h_sc_left_viewport}}"',
|
|
1575
|
+ 'req' => [ '!ele_horizontal_scroll' => '', '!ele_scrolling_effects' => ''],
|
|
1576
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1577
|
+ ),
|
|
1578
|
+ 'ele_h_sc_right_viewport' => array(
|
|
1579
|
+ 'type' => 'slider',
|
|
1580
|
+ 'label' => __pl('Right'),
|
|
1581
|
+ 'group' => 'scrolling_h',
|
|
1582
|
+ 'min' => 0,
|
|
1583
|
+ 'step' => 1,
|
|
1584
|
+ 'max' => 100,
|
|
1585
|
+ 'default' => 100,
|
|
1586
|
+ 'screen' => 1,
|
|
1587
|
+ 'addAttr' => 'ele_h_sc_right_viewport="{{ele_h_sc_right_viewport}}"',
|
|
1588
|
+ 'req' => [ '!ele_horizontal_scroll' => '', '!ele_scrolling_effects' => ''],
|
|
1589
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1590
|
+ ),
|
|
1591
|
+ // Transparency Group
|
|
1592
|
+ 'ele_transparency_group' => array(
|
|
1593
|
+ 'type' => 'access',
|
|
1594
|
+ 'label' => __pl('Transparency'),
|
|
1595
|
+ 'show_group' => 'scrolling_trans',
|
|
1596
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1597
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1598
|
+ ),
|
|
1599
|
+ // Transparency Settings
|
|
1600
|
+ 'ele_transparency' => array(
|
|
1601
|
+ 'type' => 'checkbox',
|
|
1602
|
+ 'label' => __pl('Enable'),
|
|
1603
|
+ 'group' => 'scrolling_trans',
|
|
1604
|
+ 'addAttr' => 'ele_transparency="{{ele_transparency}}"',
|
|
1605
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1606
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1607
|
+ ),
|
|
1608
|
+ 'ele_transp_type' => array(
|
|
1609
|
+ 'type' => 'select',
|
|
1610
|
+ 'label' => __pl('Type'),
|
|
1611
|
+ 'group' => 'scrolling_trans',
|
|
1612
|
+ 'default' => 'fadein',
|
|
1613
|
+ 'list' => array(
|
|
1614
|
+ 'fadein' => __pl('Fade In'),
|
|
1615
|
+ 'fadeout' => __pl('Fade Out'),
|
|
1616
|
+ 'fadeinout' => __pl('Fade In Out'),
|
|
1617
|
+ 'fadeoutin' => __pl('Fade Out In')
|
|
1618
|
+ ),
|
|
1619
|
+ 'addAttr' => 'ele_transp_type="{{ele_transp_type}}"',
|
|
1620
|
+ 'req' => ['!ele_transparency' => '', '!ele_scrolling_effects' => ''],
|
|
1621
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1622
|
+ ),
|
|
1623
|
+ 'ele_transp_level' => array(
|
|
1624
|
+ 'type' => 'slider',
|
|
1625
|
+ 'label' => __pl('Level'),
|
|
1626
|
+ 'group' => 'scrolling_trans',
|
|
1627
|
+ 'min' => 1,
|
|
1628
|
+ 'step' => 0.1,
|
|
1629
|
+ 'max' => 10,
|
|
1630
|
+ 'default' => 5,
|
|
1631
|
+ 'addAttr' => 'ele_transp_level="{{ele_transp_level}}"',
|
|
1632
|
+ 'req' => [ '!ele_transparency' => '', '!ele_scrolling_effects' => ''],
|
|
1633
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1634
|
+ ),
|
|
1635
|
+ 'ele_transp_top_viewport' => array(
|
|
1636
|
+ 'type' => 'slider',
|
|
1637
|
+ 'label' => __pl('top'),
|
|
1638
|
+ 'group' => 'scrolling_trans',
|
|
1639
|
+ 'min' => 0,
|
|
1640
|
+ 'step' => 1,
|
|
1641
|
+ 'max' => 100,
|
|
1642
|
+ 'default' => 100,
|
|
1643
|
+ 'screen' => 1,
|
|
1644
|
+ 'addAttr' => 'ele_transp_top_viewport="{{ele_transp_top_viewport}}"',
|
|
1645
|
+ 'req' => [ '!ele_transparency' => '', '!ele_scrolling_effects' => ''],
|
|
1646
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1647
|
+ ),
|
|
1648
|
+ 'ele_transp_bottom_viewport' => array(
|
|
1649
|
+ 'type' => 'slider',
|
|
1650
|
+ 'label' => __pl('bottom'),
|
|
1651
|
+ 'group' => 'scrolling_trans',
|
|
1652
|
+ 'min' => 0,
|
|
1653
|
+ 'step' => 1,
|
|
1654
|
+ 'max' => 100,
|
|
1655
|
+ 'default' => 100,
|
|
1656
|
+ 'screen' => 1,
|
|
1657
|
+ 'addAttr' => 'ele_transp_bottom_viewport="{{ele_transp_bottom_viewport}}"',
|
|
1658
|
+ 'req' => [ '!ele_transparency' => '', '!ele_scrolling_effects' => ''],
|
|
1659
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1660
|
+ ),
|
|
1661
|
+ // Blur Group
|
|
1662
|
+ 'ele_blur_group' => array(
|
|
1663
|
+ 'type' => 'access',
|
|
1664
|
+ 'label' => __pl('Blur'),
|
|
1665
|
+ 'show_group' => 'scrolling_blur',
|
|
1666
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1667
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1668
|
+ ),
|
|
1669
|
+ // Blur Setting
|
|
1670
|
+ 'ele_blur' => array(
|
|
1671
|
+ 'type' => 'checkbox',
|
|
1672
|
+ 'label' => __pl('Enable'),
|
|
1673
|
+ 'group' => 'scrolling_blur',
|
|
1674
|
+ 'addAttr' => 'ele_blur="{{ele_blur}}"',
|
|
1675
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1676
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1677
|
+ ),
|
|
1678
|
+ 'ele_blur_type' => array(
|
|
1679
|
+ 'type' => 'select',
|
|
1680
|
+ 'label' => __pl('Type'),
|
|
1681
|
+ 'group' => 'scrolling_blur',
|
|
1682
|
+ 'default' => 'blurin',
|
|
1683
|
+ 'list' => array(
|
|
1684
|
+ 'blurin' => __pl('Blur In'),
|
|
1685
|
+ 'blurout' => __pl('Blur Out'),
|
|
1686
|
+ 'blurinout' => __pl('Blur In Out'),
|
|
1687
|
+ 'bluroutin' => __pl('Blur Out In')
|
|
1688
|
+ ),
|
|
1689
|
+ 'addAttr' => 'ele_blur_type="{{ele_blur_type}}"',
|
|
1690
|
+ 'req' => ['!ele_blur' => '', '!ele_scrolling_effects' => ''],
|
|
1691
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1692
|
+ ),
|
|
1693
|
+ 'ele_blur_level' => array(
|
|
1694
|
+ 'type' => 'slider',
|
|
1695
|
+ 'label' => __pl('Level'),
|
|
1696
|
+ 'group' => 'scrolling_blur',
|
|
1697
|
+ 'min' => 1,
|
|
1698
|
+ 'step' => 0.1,
|
|
1699
|
+ 'max' => 10,
|
|
1700
|
+ 'default' => 5,
|
|
1701
|
+ 'addAttr' => 'ele_blur_level="{{ele_blur_level}}"',
|
|
1702
|
+ 'req' => [ '!ele_blur' => '', '!ele_scrolling_effects' => ''],
|
|
1703
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1704
|
+ ),
|
|
1705
|
+ 'ele_blur_top_viewport' => array(
|
|
1706
|
+ 'type' => 'slider',
|
|
1707
|
+ 'label' => __pl('top'),
|
|
1708
|
+ 'group' => 'scrolling_blur',
|
|
1709
|
+ 'min' => 0,
|
|
1710
|
+ 'step' => 1,
|
|
1711
|
+ 'max' => 100,
|
|
1712
|
+ 'default' => 100,
|
|
1713
|
+ 'screen' => 1,
|
|
1714
|
+ 'addAttr' => 'ele_blur_top_viewport="{{ele_blur_top_viewport}}"',
|
|
1715
|
+ 'req' => [ '!ele_blur' => '', '!ele_scrolling_effects' => ''],
|
|
1716
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1717
|
+ ),
|
|
1718
|
+ 'ele_blur_bottom_viewport' => array(
|
|
1719
|
+ 'type' => 'slider',
|
|
1720
|
+ 'label' => __pl('bottom'),
|
|
1721
|
+ 'group' => 'scrolling_blur',
|
|
1722
|
+ 'min' => 0,
|
|
1723
|
+ 'step' => 1,
|
|
1724
|
+ 'max' => 100,
|
|
1725
|
+ 'default' => 100,
|
|
1726
|
+ 'screen' => 1,
|
|
1727
|
+ 'addAttr' => 'ele_blur_bottom_viewport="{{ele_blur_bottom_viewport}}"',
|
|
1728
|
+ 'req' => [ '!ele_blur' => '', '!ele_scrolling_effects' => ''],
|
|
1729
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1730
|
+ ),
|
|
1731
|
+ // Rotate Group
|
|
1732
|
+ 'ele_rotate_group' => array(
|
|
1733
|
+ 'type' => 'access',
|
|
1734
|
+ 'label' => __pl('Rotate'),
|
|
1735
|
+ 'show_group' => 'scrolling_rotate',
|
|
1736
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1737
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1738
|
+ ),
|
|
1739
|
+ // Rotate Setting
|
|
1740
|
+ 'ele_rotate' => array(
|
|
1741
|
+ 'type' => 'checkbox',
|
|
1742
|
+ 'label' => __pl('Enable'),
|
|
1743
|
+ 'group' => 'scrolling_rotate',
|
|
1744
|
+ 'addAttr' => 'ele_rotate="{{ele_rotate}}"',
|
|
1745
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1746
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1747
|
+ ),
|
|
1748
|
+ 'ele_rot_direction' => array(
|
|
1749
|
+ 'type' => 'select',
|
|
1750
|
+ 'label' => __pl('Direction'),
|
|
1751
|
+ 'group' => 'scrolling_rotate',
|
|
1752
|
+ 'default' => 'clockwise',
|
|
1753
|
+ 'list' => array(
|
|
1754
|
+ 'clockwise' => __pl('Clockwise'),
|
|
1755
|
+ 'anticlockwise' => __pl('Anticlockwise')
|
|
1756
|
+ ),
|
|
1757
|
+ 'addAttr' => 'ele_rot_direction="{{ele_rot_direction}}"',
|
|
1758
|
+ 'req' => ['!ele_rotate' => '', '!ele_scrolling_effects' => ''],
|
|
1759
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1760
|
+ ),
|
|
1761
|
+ 'ele_rot_speed' => array(
|
|
1762
|
+ 'type' => 'slider',
|
|
1763
|
+ 'label' => __pl('Speed'),
|
|
1764
|
+ 'group' => 'scrolling_rotate',
|
|
1765
|
+ 'min' => 1,
|
|
1766
|
+ 'step' => 0.1,
|
|
1767
|
+ 'max' => 10,
|
|
1768
|
+ 'default' => 5,
|
|
1769
|
+ 'addAttr' => 'ele_rot_speed="{{ele_rot_speed}}"',
|
|
1770
|
+ 'req' => [ '!ele_rotate' => '', '!ele_scrolling_effects' => ''],
|
|
1771
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1772
|
+ ),
|
|
1773
|
+ 'ele_rot_top_viewport' => array(
|
|
1774
|
+ 'type' => 'slider',
|
|
1775
|
+ 'label' => __pl('top'),
|
|
1776
|
+ 'group' => 'scrolling_rotate',
|
|
1777
|
+ 'min' => 0,
|
|
1778
|
+ 'step' => 1,
|
|
1779
|
+ 'max' => 100,
|
|
1780
|
+ 'default' => 100,
|
|
1781
|
+ 'screen' => 1,
|
|
1782
|
+ 'addAttr' => 'ele_rot_top_viewport="{{ele_rot_top_viewport}}"',
|
|
1783
|
+ 'req' => [ '!ele_rotate' => '', '!ele_scrolling_effects' => ''],
|
|
1784
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1785
|
+ ),
|
|
1786
|
+ 'ele_rot_bottom_viewport' => array(
|
|
1787
|
+ 'type' => 'slider',
|
|
1788
|
+ 'label' => __pl('bottom'),
|
|
1789
|
+ 'group' => 'scrolling_rotate',
|
|
1790
|
+ 'min' => 0,
|
|
1791
|
+ 'step' => 1,
|
|
1792
|
+ 'max' => 100,
|
|
1793
|
+ 'default' => 100,
|
|
1794
|
+ 'screen' => 1,
|
|
1795
|
+ 'addAttr' => 'ele_rot_bottom_viewport="{{ele_rot_bottom_viewport}}"',
|
|
1796
|
+ 'req' => [ '!ele_rotate' => '', '!ele_scrolling_effects' => ''],
|
|
1797
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1798
|
+ ),
|
|
1799
|
+ 'ele_rot_x_anc_point' => array(
|
|
1800
|
+ 'type' => 'select',
|
|
1801
|
+ 'label' => __pl('X Anchor Point'),
|
|
1802
|
+ 'group' => 'scrolling_rotate',
|
|
1803
|
+ 'default' => 'center',
|
|
1804
|
+ 'list' => array(
|
|
1805
|
+ 'left' => __pl('Left'),
|
|
1806
|
+ 'center' => __pl('Center'),
|
|
1807
|
+ 'right' => __pl('Right')
|
|
1808
|
+ ),
|
|
1809
|
+ 'req' => ['!ele_rotate' => '', '!ele_scrolling_effects' => ''],
|
|
1810
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1811
|
+ ),
|
|
1812
|
+ 'ele_rot_y_anc_point' => array(
|
|
1813
|
+ 'type' => 'select',
|
|
1814
|
+ 'label' => __pl('Y Anchor Point'),
|
|
1815
|
+ 'group' => 'scrolling_rotate',
|
|
1816
|
+ 'default' => 'center',
|
|
1817
|
+ 'list' => array(
|
|
1818
|
+ 'top' => __pl('Top'),
|
|
1819
|
+ 'center' => __pl('Center'),
|
|
1820
|
+ 'bottom' => __pl('Bottom')
|
|
1821
|
+ ),
|
|
1822
|
+ 'css' => 'transform-origin:{{val}} {{ele_rot_x_anc_point}}',
|
|
1823
|
+ 'req' => ['!ele_rotate' => '', '!ele_scrolling_effects' => ''],
|
|
1824
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1825
|
+ ),
|
|
1826
|
+ // Scale Group
|
|
1827
|
+ 'ele_scale_group' => array(
|
|
1828
|
+ 'type' => 'access',
|
|
1829
|
+ 'label' => __pl('Scale'),
|
|
1830
|
+ 'show_group' => 'scrolling_scale',
|
|
1831
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1832
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1833
|
+ ),
|
|
1834
|
+ // Scale Setting
|
|
1835
|
+ 'ele_scale' => array(
|
|
1836
|
+ 'type' => 'checkbox',
|
|
1837
|
+ 'label' => __pl('Enable'),
|
|
1838
|
+ 'group' => 'scrolling_scale',
|
|
1839
|
+ 'addAttr' => 'ele_scale="{{ele_scale}}"',
|
|
1840
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1841
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1842
|
+ ),
|
|
1843
|
+ 'ele_scl_direction' => array(
|
|
1844
|
+ 'type' => 'select',
|
|
1845
|
+ 'label' => __pl('Direction'),
|
|
1846
|
+ 'group' => 'scrolling_scale',
|
|
1847
|
+ 'default' => 'scaleup',
|
|
1848
|
+ 'list' => array(
|
|
1849
|
+ 'scaleup' => __pl('Scale Up'),
|
|
1850
|
+ 'scaledown' => __pl('Scale Down'),
|
|
1851
|
+ 'scaleupdown' => __pl('Scale Up Down'),
|
|
1852
|
+ 'scaledownup' => __pl('Scale Down Up')
|
|
1853
|
+ ),
|
|
1854
|
+ 'addAttr' => 'ele_scl_direction="{{ele_scl_direction}}"',
|
|
1855
|
+ 'req' => ['!ele_scale' => '', '!ele_scrolling_effects' => ''],
|
|
1856
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1857
|
+ ),
|
|
1858
|
+ 'ele_scl_level' => array(
|
|
1859
|
+ 'type' => 'slider',
|
|
1860
|
+ 'label' => __pl('Level'),
|
|
1861
|
+ 'group' => 'scrolling_scale',
|
|
1862
|
+ 'min' => 1,
|
|
1863
|
+ 'step' => 0.1,
|
|
1864
|
+ 'max' => 10,
|
|
1865
|
+ 'default' => 5,
|
|
1866
|
+ 'addAttr' => 'ele_scl_level="{{ele_scl_level}}"',
|
|
1867
|
+ 'req' => [ '!ele_scale' => '', '!ele_scrolling_effects' => ''],
|
|
1868
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1869
|
+ ),
|
|
1870
|
+ 'ele_scl_top_viewport' => array(
|
|
1871
|
+ 'type' => 'slider',
|
|
1872
|
+ 'label' => __pl('top'),
|
|
1873
|
+ 'group' => 'scrolling_scale',
|
|
1874
|
+ 'min' => 0,
|
|
1875
|
+ 'step' => 1,
|
|
1876
|
+ 'max' => 100,
|
|
1877
|
+ 'default' => 100,
|
|
1878
|
+ 'screen' => 1,
|
|
1879
|
+ 'addAttr' => 'ele_scl_top_viewport="{{ele_scl_top_viewport}}"',
|
|
1880
|
+ 'req' => [ '!ele_scale' => '', '!ele_scrolling_effects' => ''],
|
|
1881
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1882
|
+ ),
|
|
1883
|
+ 'ele_scl_bottom_viewport' => array(
|
|
1884
|
+ 'type' => 'slider',
|
|
1885
|
+ 'label' => __pl('bottom'),
|
|
1886
|
+ 'group' => 'scrolling_scale',
|
|
1887
|
+ 'min' => 0,
|
|
1888
|
+ 'step' => 1,
|
|
1889
|
+ 'max' => 100,
|
|
1890
|
+ 'default' => 100,
|
|
1891
|
+ 'screen' => 1,
|
|
1892
|
+ 'addAttr' => 'ele_scl_bottom_viewport="{{ele_scl_bottom_viewport}}"',
|
|
1893
|
+ 'req' => [ '!ele_scale' => '', '!ele_scrolling_effects' => ''],
|
|
1894
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1895
|
+ ),
|
|
1896
|
+ 'ele_scl_x_anc_point' => array(
|
|
1897
|
+ 'type' => 'select',
|
|
1898
|
+ 'label' => __pl('X Anchor Point'),
|
|
1899
|
+ 'group' => 'scrolling_scale',
|
|
1900
|
+ 'default' => 'center',
|
|
1901
|
+ 'list' => array(
|
|
1902
|
+ 'left' => __pl('Left'),
|
|
1903
|
+ 'center' => __pl('Center'),
|
|
1904
|
+ 'right' => __pl('Right')
|
|
1905
|
+ ),
|
|
1906
|
+ 'req' => ['!ele_scale' => '', '!ele_scrolling_effects' => ''],
|
|
1907
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1908
|
+ ),
|
|
1909
|
+ 'ele_scl_y_anc_point' => array(
|
|
1910
|
+ 'type' => 'select',
|
|
1911
|
+ 'label' => __pl('Y Anchor Point'),
|
|
1912
|
+ 'group' => 'scrolling_scale',
|
|
1913
|
+ 'default' => 'center',
|
|
1914
|
+ 'list' => array(
|
|
1915
|
+ 'top' => __pl('Top'),
|
|
1916
|
+ 'center' => __pl('Center'),
|
|
1917
|
+ 'bottom' => __pl('Bottom')
|
|
1918
|
+ ),
|
|
1919
|
+ 'css' => 'transform-origin:{{val}} {{ele_scl_x_anc_point}}',
|
|
1920
|
+ 'req' => ['!ele_scale' => '', '!ele_scrolling_effects' => ''],
|
|
1921
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1922
|
+ ),
|
|
1923
|
+ // Motion Area Selection
|
|
1924
|
+ 'motion_area' => array(
|
|
1925
|
+ 'type' => 'select',
|
|
1926
|
+ 'label' => __pl('Effect Relative To'),
|
|
1927
|
+ 'default' => 'viewport',
|
|
1928
|
+ 'list' => array(
|
|
1929
|
+ 'viewport' => __pl('Viewport'),
|
|
1930
|
+ 'entire_page' => __pl('Entire Page'),
|
|
1931
|
+ ),
|
|
1932
|
+ 'addAttr' => 'motion_area="{{motion_area}}"',
|
|
1933
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1934
|
+ 'show' => ['ele_motion_effects' => '']
|
|
1935
|
+ ),
|
|
1936
|
+ // Motion Effect Screen Selection
|
|
1937
|
+ 'ele_motion_effect_on' => array(
|
|
1938
|
+ 'type' => 'multiselect',
|
|
1939
|
+ 'label' => __pl('Apply Effects On'),
|
|
1940
|
+ 'default' => 'desktop,tablet,mobile',
|
|
1941
|
+ 'addAttr' => 'ele_motion_effect_on="{{ele_motion_effect_on}}"',
|
|
1942
|
+ 'list' => array(
|
|
1943
|
+ 'desktop' => __pl('desktop'),
|
|
1944
|
+ 'tablet' => __pl('tablet'),
|
|
1945
|
+ 'mobile' => __pl('mobile'),
|
|
1946
|
+ ),
|
|
1947
|
+ 'req' => ['!ele_scrolling_effects' => ''],
|
|
1948
|
+ 'show' => ['ele_motion_effects' => ''],
|
|
1949
|
+ 'pro' => 1,
|
|
1950
|
+ ),
|
|
1951
|
+ // Mouse Effect
|
|
1952
|
+ 'ele_mouse_effects' => array(
|
|
1953
|
+ 'type' => 'checkbox',
|
|
1954
|
+ 'label' => __pl('Mouse Effects'),
|
|
1955
|
+ 'addClass' => 'pagelayer-mouse-effects',
|
|
1956
|
+ 'show' => ['ele_motion_effects' => 'mouse'],
|
|
1957
|
+ 'pro' => 1
|
|
1958
|
+ ),
|
|
1959
|
+ // Mouse Track Group
|
|
1960
|
+ 'ele_m_track_group' => array(
|
|
1961
|
+ 'type' => 'access',
|
|
1962
|
+ 'label' => __pl('Mouse Track'),
|
|
1963
|
+ 'show_group' => 'mouse_track',
|
|
1964
|
+ 'req' => ['!ele_mouse_effects' => ''],
|
|
1965
|
+ 'show' => ['ele_motion_effects' => 'mouse']
|
|
1966
|
+ ),
|
|
1967
|
+ // Mouse Track Setting
|
|
1968
|
+ 'ele_m_track' => array(
|
|
1969
|
+ 'type' => 'checkbox',
|
|
1970
|
+ 'label' => __pl('Enable'),
|
|
1971
|
+ 'group' => 'mouse_track',
|
|
1972
|
+ 'addAttr' => 'ele_m_track="{{ele_m_track}}"',
|
|
1973
|
+ 'req' => ['!ele_mouse_effects' => ''],
|
|
1974
|
+ 'show' => ['ele_motion_effects' => 'mouse']
|
|
1975
|
+ ),
|
|
1976
|
+ 'ele_m_tr_direction' => array(
|
|
1977
|
+ 'type' => 'select',
|
|
1978
|
+ 'label' => __pl('Direction'),
|
|
1979
|
+ 'group' => 'mouse_track',
|
|
1980
|
+ 'default' => 'opposite',
|
|
1981
|
+ 'list' => array(
|
|
1982
|
+ 'opposite' => __pl('Opposite'),
|
|
1983
|
+ 'same' => __pl('Same')
|
|
1984
|
+ ),
|
|
1985
|
+ 'addAttr' => 'ele_m_tr_direction="{{ele_m_tr_direction}}"',
|
|
1986
|
+ 'req' => ['!ele_m_track' => '', '!ele_mouse_effects' => ''],
|
|
1987
|
+ 'show' => ['ele_motion_effects' => 'mouse']
|
|
1988
|
+ ),
|
|
1989
|
+ 'ele_m_tr_level' => array(
|
|
1990
|
+ 'type' => 'slider',
|
|
1991
|
+ 'label' => __pl('Level'),
|
|
1992
|
+ 'group' => 'mouse_track',
|
|
1993
|
+ 'min' => 1,
|
|
1994
|
+ 'step' => 0.1,
|
|
1995
|
+ 'max' => 10,
|
|
1996
|
+ 'default' => 5,
|
|
1997
|
+ 'addAttr' => 'ele_m_tr_level="{{ele_m_tr_level}}"',
|
|
1998
|
+ 'req' => [ '!ele_m_track' => '', '!ele_mouse_effects' => ''],
|
|
1999
|
+ 'show' => ['ele_motion_effects' => 'mouse']
|
|
2000
|
+ ),
|
|
2001
|
+ // 3D Tilt Group
|
|
2002
|
+ 'ele_3d_tilt_group' => array(
|
|
2003
|
+ 'type' => 'access',
|
|
2004
|
+ 'label' => __pl('3D Tilt'),
|
|
2005
|
+ 'show_group' => 'mouse_3d',
|
|
2006
|
+ 'req' => ['!ele_mouse_effects' => ''],
|
|
2007
|
+ 'show' => ['ele_motion_effects' => 'mouse']
|
|
2008
|
+ ),
|
|
2009
|
+ // 3D Tilt Setting
|
|
2010
|
+ 'ele_3d_tilt' => array(
|
|
2011
|
+ 'type' => 'checkbox',
|
|
2012
|
+ 'label' => __pl('Enable'),
|
|
2013
|
+ 'group' => 'mouse_3d',
|
|
2014
|
+ 'addAttr' => 'ele_3d_tilt="{{ele_3d_tilt}}"',
|
|
2015
|
+ 'css' => 'will-change:transform; transform-style:preserve-3d;',
|
|
2016
|
+ 'req' => ['!ele_mouse_effects' => ''],
|
|
2017
|
+ 'show' => ['ele_motion_effects' => 'mouse']
|
|
2018
|
+ ),
|
|
2019
|
+ 'ele_3d_tilt_direction' => array(
|
|
2020
|
+ 'type' => 'select',
|
|
2021
|
+ 'label' => __pl('Direction'),
|
|
2022
|
+ 'group' => 'mouse_3d',
|
|
2023
|
+ 'default' => 'opposite',
|
|
2024
|
+ 'list' => array(
|
|
2025
|
+ 'opposite' => __pl('Opposite'),
|
|
2026
|
+ 'same' => __pl('Same')
|
|
2027
|
+ ),
|
|
2028
|
+ 'addAttr' => 'ele_3d_tilt_direction="{{ele_3d_tilt_direction}}"',
|
|
2029
|
+ 'req' => ['!ele_3d_tilt' => '', '!ele_mouse_effects' => ''],
|
|
2030
|
+ 'show' => ['ele_motion_effects' => 'mouse']
|
|
2031
|
+ ),
|
|
2032
|
+ 'ele_3d_tilt_level' => array(
|
|
2033
|
+ 'type' => 'slider',
|
|
2034
|
+ 'label' => __pl('Level'),
|
|
2035
|
+ 'group' => 'mouse_3d',
|
|
2036
|
+ 'min' => 1,
|
|
2037
|
+ 'step' => 0.1,
|
|
2038
|
+ 'max' => 10,
|
|
2039
|
+ 'default' => 5,
|
|
2040
|
+ 'addAttr' => 'ele_3d_tilt_level="{{ele_3d_tilt_level}}"',
|
|
2041
|
+ 'req' => [ '!ele_3d_tilt' => '', '!ele_mouse_effects' => ''],
|
|
2042
|
+ 'show' => ['ele_motion_effects' => 'mouse']
|
|
2043
|
+ )
|
|
2044
|
+];
|
|
2045
|
+
|
|
565
|
2046
|
// Resposive stuff
|
|
566
|
2047
|
$pagelayer->styles['responsive_styles'] = [
|
|
567
|
2048
|
'hide_desktop' => [
|
|
568
|
2049
|
'type' => 'checkbox',
|
|
@@ -580,8 +2061,19 @@ |
|
580
|
2061
|
'addClass' => 'pagelayer-hide-mobile'
|
|
581
|
2062
|
],
|
|
582
|
2063
|
];
|
|
583
|
2064
|
|
|
2065
|
+// Custom attributes
|
|
2066
|
+$pagelayer->styles['attributes'] = [
|
|
2067
|
+ 'ele_attributes' => [
|
|
2068
|
+ 'type' => 'textarea',
|
|
2069
|
+ 'label' => __pl('custom_attributes'),
|
|
2070
|
+ 'rows' => 5,
|
|
2071
|
+ 'pro' => 1,
|
|
2072
|
+ 'desc' => __pl('attribute_desc')
|
|
2073
|
+ ],
|
|
2074
|
+];
|
|
2075
|
+
|
|
584
|
2076
|
// Custom stuff
|
|
585
|
2077
|
$pagelayer->styles['custom_styles'] = [
|
|
586
|
2078
|
'ele_id' => [
|
|
587
|
2079
|
'type' => 'text',
|
|
@@ -594,8 +2086,16 @@ |
|
594
|
2086
|
'label' => __pl('ele_classes'),
|
|
595
|
2087
|
'desc' => __pl('ele_classes_desc'),
|
|
596
|
2088
|
'addClass' => '{{val}}',
|
|
597
|
2089
|
],
|
|
2090
|
+ 'ele_css' => [
|
|
2091
|
+ 'type' => 'textarea',
|
|
2092
|
+ 'label' => __pl('custom_styles'),
|
|
2093
|
+ 'desc' => __pl('ele_css_desc'),
|
|
2094
|
+ 'rows' => 5,
|
|
2095
|
+ 'css' => ['' => '{{val}}'],
|
|
2096
|
+ 'pro' => 1
|
|
2097
|
+ ],
|
|
598
|
2098
|
];
|
|
599
|
2099
|
|
|
600
|
2100
|
|
|
601
|
2101
|
////////////////////////
|
|
@@ -605,12 +2105,16 @@ |
|
605
|
2105
|
// ROW object
|
|
606
|
2106
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_row', array(
|
|
607
|
2107
|
'name' => __pl('row'),
|
|
608
|
2108
|
'group' => 'grid',
|
|
609
|
|
- 'func' => 'pagelayer_sc_row',
|
|
2109
|
+ 'skip_props_cat' => ['position_styles'],
|
|
2110
|
+ 'skip_props' => ['ele_sticky_in_container'],
|
|
610
|
2111
|
'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
|
|
2112
|
+ <div if="{{bg_slider}}" class="pagelayer-bgimg-slider">
|
|
2113
|
+ {{slider}}
|
|
2114
|
+ </div>
|
|
611
|
2115
|
<div if="{{parallax_img}}" class="pagelayer-parallax-window">
|
|
612
|
|
- <img src="{{{parallax_img-url}}}">
|
|
2116
|
+ <img class="pagelayer-img" src="{{parallax_img_src}}" title="{{{parallax_img-title}}}" alt="{{{parallax_img-alt}}}">
|
|
613
|
2117
|
</div>
|
|
614
|
2118
|
<div if="{{row_shape_position}}" class="pagelayer-row-shape">
|
|
615
|
2119
|
<div class="pagelayer-row-svg">
|
|
616
|
2120
|
<svg if="{{row_shape_type_top}}" class="pagelayer-svg-top">{{svg_top}}</svg>
|
|
@@ -617,9 +2121,9 @@ |
|
617
|
2121
|
<svg if="{{row_shape_type_bottom}}" class="pagelayer-svg-bottom">{{svg_bottom}}</svg>
|
|
618
|
2122
|
</div>
|
|
619
|
2123
|
</div>
|
|
620
|
2124
|
<div if="{{overlay_type}}" class="pagelayer-background-overlay"></div>
|
|
621
|
|
- <div class="pagelayer-row-holder pagelayer-row pagelayer-auto"></div>',
|
|
2125
|
+ <div class="pagelayer-row-holder pagelayer-row pagelayer-auto pagelayer-width-{{width_content}}"></div>',
|
|
622
|
2126
|
'holder' => '.pagelayer-row-holder',
|
|
623
|
2127
|
'params' => array(
|
|
624
|
2128
|
'stretch' => array(
|
|
625
|
2129
|
'type' => 'select',
|
|
@@ -638,9 +2142,10 @@ |
|
638
|
2142
|
'default' => 500,
|
|
639
|
2143
|
'min' => 300,
|
|
640
|
2144
|
'max' => 3000,
|
|
641
|
2145
|
'step' => 1,
|
|
642
|
|
- 'css' => ['{{element}}' => 'max-width: {{val}}px; margin-left: auto !important; margin-right: auto !important;'],
|
|
2146
|
+ 'units' => [ 'px', '%', 'vw' ],
|
|
2147
|
+ 'css' => ['{{element}}' => 'max-width: {{val}}; margin-left: auto !important; margin-right: auto !important;'],
|
|
643
|
2148
|
'req' => array(
|
|
644
|
2149
|
'stretch' => 'fixed'
|
|
645
|
2150
|
)
|
|
646
|
2151
|
),
|
|
@@ -649,8 +2154,9 @@ |
|
649
|
2154
|
'label' => __pl('col_gap'),
|
|
650
|
2155
|
'default' => 10,
|
|
651
|
2156
|
'min' => 0,
|
|
652
|
2157
|
'step' => 1,
|
|
2158
|
+ 'screen' => 1,
|
|
653
|
2159
|
'max' => 1000,
|
|
654
|
2160
|
'css' => ['{{element}} .pagelayer-col-holder' => 'padding: {{val}}px;'],
|
|
655
|
2161
|
),
|
|
656
|
2162
|
'width_content' => array(
|
|
@@ -664,14 +2170,15 @@ |
|
664
|
2170
|
)
|
|
665
|
2171
|
),
|
|
666
|
2172
|
'fixed_width' => array(
|
|
667
|
2173
|
'type' => 'slider',
|
|
668
|
|
- 'label' => __pl('fixed_width'),
|
|
2174
|
+ 'label' => __pl('fixed_con_width'),
|
|
669
|
2175
|
'default' => 500,
|
|
670
|
|
- 'min' => 300,
|
|
2176
|
+ 'min' => 1,
|
|
671
|
2177
|
'max' => 3000,
|
|
672
|
|
- 'step' => 1,
|
|
673
|
|
- 'css' => ['{{element}} .pagelayer-row-holder' => 'max-width: {{val}}px; margin-left: auto; margin-right: auto;'],
|
|
2178
|
+ 'screen' => 1,
|
|
2179
|
+ 'units' => [ 'px', '%', 'vw' ],
|
|
2180
|
+ 'css' => ['{{element}}>.pagelayer-row-holder' => 'max-width: {{val}}; margin-left: auto; margin-right: auto;'],
|
|
674
|
2181
|
'req' => array(
|
|
675
|
2182
|
'width_content' => 'fixed'
|
|
676
|
2183
|
)
|
|
677
|
2184
|
),
|
|
@@ -690,40 +2197,26 @@ |
|
690
|
2197
|
'type' => 'slider',
|
|
691
|
2198
|
'label' => __pl('min_height'),
|
|
692
|
2199
|
'min' => 0,
|
|
693
|
2200
|
'max' => 2000,
|
|
694
|
|
- 'step' => 1,
|
|
695
|
|
- 'css' => 'min-height: {{val}}px;',
|
|
2201
|
+ 'screen' => 1,
|
|
2202
|
+ 'units' => ['px', 'vh', 'vw'],
|
|
2203
|
+ 'css' => 'min-height: {{val}};',
|
|
696
|
2204
|
'req' => array(
|
|
697
|
2205
|
'row_height' => 'custom'
|
|
698
|
2206
|
)
|
|
699
|
2207
|
),
|
|
700
|
|
- 'column_pos' => array(
|
|
2208
|
+ 'content_pos' => array(
|
|
701
|
2209
|
'type' => 'select',
|
|
702
|
|
- 'label' => __pl('column_pos'),
|
|
703
|
|
- 'default' => 'default',
|
|
704
|
|
- 'css' => ['{{element}}' => '-webkit-box-align: {{val}}; -webkit-align-items: {{val}}; -ms-flex-align: {{val}}; align-items: {{val}};'],
|
|
2210
|
+ 'label' => __pl('content_pos'),
|
|
2211
|
+ 'css' => ['{{element}}>.pagelayer-row-holder .pagelayer-col' => 'align-content: {{val}};'],
|
|
705
|
2212
|
'list' => array(
|
|
706
|
2213
|
'' => __pl('default'),
|
|
707
|
2214
|
'flex-start' => __pl('top'),
|
|
708
|
2215
|
'center' => __pl('center'),
|
|
709
|
2216
|
'flex-end' => __pl('bottom'),
|
|
710
|
|
- 'stretch' => __pl('Stretch')
|
|
711
|
2217
|
),
|
|
712
|
2218
|
),
|
|
713
|
|
- 'content_pos' => array(
|
|
714
|
|
- 'type' => 'select',
|
|
715
|
|
- 'label' => __pl('content_pos'),
|
|
716
|
|
- 'default' => 'default',
|
|
717
|
|
- 'css' => ['{{element}} .pagelayer-row-holder' => '-webkit-box-align: {{val}}; -webkit-align-items: {{val}}; -ms-flex-align: {{val}}; align-items: {{val}};'],
|
|
718
|
|
- 'list' => array(
|
|
719
|
|
- '' => __pl('default'),
|
|
720
|
|
- 'baseline' => __pl('top'),
|
|
721
|
|
- 'center' => __pl('center'),
|
|
722
|
|
- 'end' => __pl('bottom'),
|
|
723
|
|
- 'stretch' => __pl('Stretch')
|
|
724
|
|
- ),
|
|
725
|
|
- ),
|
|
726
|
2219
|
),
|
|
727
|
2220
|
'row_bg_styles' => [
|
|
728
|
2221
|
'row_bg_type' => array(
|
|
729
|
2222
|
'type' => 'radio',
|
|
@@ -731,8 +2224,9 @@ |
|
731
|
2224
|
'list' => array(
|
|
732
|
2225
|
'' => __pl('none'),
|
|
733
|
2226
|
'video' => __pl('video'),
|
|
734
|
2227
|
'parallax' => __pl('parallax'),
|
|
2228
|
+ 'slider' => __pl('slider'),
|
|
735
|
2229
|
),
|
|
736
|
2230
|
),
|
|
737
|
2231
|
'bg_video_src' => array(
|
|
738
|
2232
|
'type' => 'video',
|
|
@@ -739,13 +2233,86 @@ |
|
739
|
2233
|
'label' => __pl('video_src_label'),
|
|
740
|
2234
|
'desc' => __pl('video_src_desc'),
|
|
741
|
2235
|
'req' => ['row_bg_type' => 'video']
|
|
742
|
2236
|
),
|
|
2237
|
+ 'mute' => array(
|
|
2238
|
+ 'type' => 'checkbox',
|
|
2239
|
+ 'label' => __pl('mute'),
|
|
2240
|
+ 'req' => ['row_bg_type' => 'video']
|
|
2241
|
+ ),
|
|
2242
|
+ 'stop_loop' => array(
|
|
2243
|
+ 'type' => 'checkbox',
|
|
2244
|
+ 'label' => __pl('stop_loop'),
|
|
2245
|
+ 'req' => ['row_bg_type' => 'video']
|
|
2246
|
+ ),
|
|
743
|
2247
|
'parallax_img' => array(
|
|
744
|
2248
|
'type' => 'image',
|
|
745
|
2249
|
'label' => __pl('Image'),
|
|
746
|
2250
|
'req' => ['row_bg_type' => 'parallax']
|
|
747
|
2251
|
),
|
|
2252
|
+ 'parallax_align' => array(
|
|
2253
|
+ 'type' => 'radio',
|
|
2254
|
+ 'label' => __pl('obj_align_label'),
|
|
2255
|
+ 'screen' => 1,
|
|
2256
|
+ 'default' => 'center',
|
|
2257
|
+ 'css' => ['{{element}} .pagelayer-parallax-window' => 'text-align: {{val}}'],
|
|
2258
|
+ 'list' => array(
|
|
2259
|
+ 'left' => __pl('left'),
|
|
2260
|
+ 'center' => __pl('center'),
|
|
2261
|
+ 'right' => __pl('right')
|
|
2262
|
+ ),
|
|
2263
|
+ 'req' => ['row_bg_type' => 'parallax']
|
|
2264
|
+ ),
|
|
2265
|
+ 'parallax_id_size' => array(
|
|
2266
|
+ 'label' => __pl('obj_image_size_label'),
|
|
2267
|
+ 'type' => 'select',
|
|
2268
|
+ 'default' => 'full',
|
|
2269
|
+ 'list' => array(
|
|
2270
|
+ 'full' => __pl('full'),
|
|
2271
|
+ 'large' => __pl('large'),
|
|
2272
|
+ 'medium' => __pl('medium'),
|
|
2273
|
+ 'thumbnail' => __pl('thumbnail'),
|
|
2274
|
+ 'custom' => __pl('custom')
|
|
2275
|
+ ),
|
|
2276
|
+ 'req' => ['row_bg_type' => 'parallax']
|
|
2277
|
+ ),
|
|
2278
|
+ 'parallax_custom_size' => array(
|
|
2279
|
+ 'type' => 'dimension',
|
|
2280
|
+ 'label' => __pl('image_custom_size_label'),
|
|
2281
|
+ 'css' => ['{{element}} .pagelayer-parallax-window img' => 'width: {{val[0]}}px; height: {{val[1]}}px;'],
|
|
2282
|
+ 'req' => [
|
|
2283
|
+ 'parallax_id_size' => 'custom',
|
|
2284
|
+ 'row_bg_type' => 'parallax'
|
|
2285
|
+ ],
|
|
2286
|
+ ),
|
|
2287
|
+ 'parallax_max_width' => array(
|
|
2288
|
+ 'label' => __pl('max-width-percent'),
|
|
2289
|
+ 'type' => 'slider',
|
|
2290
|
+ 'min' => 0,
|
|
2291
|
+ 'max' => 100,
|
|
2292
|
+ 'screen' => 1,
|
|
2293
|
+ 'css' => ['{{element}} .pagelayer-parallax-window img' => 'max-width: {{val}}%'],
|
|
2294
|
+ 'req' => ['row_bg_type' => 'parallax']
|
|
2295
|
+ ),
|
|
2296
|
+ 'bg_slider' => array(
|
|
2297
|
+ 'type' => 'multi_image',
|
|
2298
|
+ 'label' => __pl('image_slider_ids_label'),
|
|
2299
|
+ 'req' => ['row_bg_type' => 'slider'],
|
|
2300
|
+ 'pro' => 1
|
|
2301
|
+ ),
|
|
2302
|
+ 'bg_slider_speed' => array(
|
|
2303
|
+ 'type' => 'spinner',
|
|
2304
|
+ 'label' => __pl('speed_ms'),
|
|
2305
|
+ 'default' => 2000,
|
|
2306
|
+ 'min' => 200,
|
|
2307
|
+ 'max' => 50000,
|
|
2308
|
+ 'step' => 100,
|
|
2309
|
+ 'addAttr' => ['{{element}} .pagelayer-bgimg-slider' => 'data-speed="{{bg_slider_speed}}"'],
|
|
2310
|
+ 'req' => [
|
|
2311
|
+ 'row_bg_type' => 'slider'
|
|
2312
|
+ ],
|
|
2313
|
+ 'pro' => 1
|
|
2314
|
+ ),
|
|
748
|
2315
|
],
|
|
749
|
2316
|
'row_bg_overlay' => [
|
|
750
|
2317
|
'overlay_state' => array(
|
|
751
|
2318
|
'type' => 'radio',
|
|
@@ -768,9 +2335,9 @@ |
|
768
|
2335
|
),
|
|
769
|
2336
|
'overlay_color' => array(
|
|
770
|
2337
|
'type' => 'color',
|
|
771
|
2338
|
'label' => __pl('color'),
|
|
772
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-color: {{val}};'],
|
|
2339
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-color: {{val}};'],
|
|
773
|
2340
|
'req' => ['overlay_type' => 'color'],
|
|
774
|
2341
|
'show' => ['overlay_state' => ''],
|
|
775
|
2342
|
),
|
|
776
|
2343
|
'overlay_gradient' => array(
|
|
@@ -775,10 +2342,10 @@ |
|
775
|
2342
|
),
|
|
776
|
2343
|
'overlay_gradient' => array(
|
|
777
|
2344
|
'type' => 'gradient',
|
|
778
|
2345
|
'label' => '',
|
|
779
|
|
- 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
|
|
780
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
|
|
2346
|
+ 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
|
|
2347
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
|
|
781
|
2348
|
'show' => ['overlay_state' => ''],
|
|
782
|
2349
|
'req' => ['overlay_type' => 'gradient']
|
|
783
|
2350
|
),
|
|
784
|
2351
|
'overlay_img' => array(
|
|
@@ -783,9 +2350,9 @@ |
|
783
|
2350
|
),
|
|
784
|
2351
|
'overlay_img' => array(
|
|
785
|
2352
|
'type' => 'image',
|
|
786
|
2353
|
'label' => __pl('Image'),
|
|
787
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: url({{{overlay_img-url}}});'],
|
|
2354
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: url("{{{overlay_img-url}}}");'],
|
|
788
|
2355
|
'show' => ['overlay_state' => ''],
|
|
789
|
2356
|
'req' => ['overlay_type' => 'image']
|
|
790
|
2357
|
),
|
|
791
|
2358
|
'overlay_img_attachment' => array(
|
|
@@ -796,9 +2363,9 @@ |
|
796
|
2363
|
'scroll' => __pl('scroll'),
|
|
797
|
2364
|
'fixed' => __pl('fixed')
|
|
798
|
2365
|
],
|
|
799
|
2366
|
'show' => ['overlay_state' => ''],
|
|
800
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
|
|
2367
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
|
|
801
|
2368
|
'req' => ['overlay_type' => 'image']
|
|
802
|
2369
|
),
|
|
803
|
2370
|
'overlay_bg_posx' => array(
|
|
804
|
2371
|
'type' => 'select',
|
|
@@ -809,9 +2376,9 @@ |
|
809
|
2376
|
'left' => __pl('left'),
|
|
810
|
2377
|
'right' => __pl('right')
|
|
811
|
2378
|
],
|
|
812
|
2379
|
'show' => ['overlay_state' => ''],
|
|
813
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
|
|
2380
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
|
|
814
|
2381
|
'req' => ['overlay_type' => 'image']
|
|
815
|
2382
|
),
|
|
816
|
2383
|
'overlay_bg_posy' => array(
|
|
817
|
2384
|
'type' => 'select',
|
|
@@ -822,15 +2389,15 @@ |
|
822
|
2389
|
'top' => __pl('top'),
|
|
823
|
2390
|
'bottom' => __pl('bottom')
|
|
824
|
2391
|
],
|
|
825
|
2392
|
'show' => ['overlay_state' => ''],
|
|
826
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
|
|
2393
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
|
|
827
|
2394
|
'req' => ['overlay_type' => 'image']
|
|
828
|
2395
|
),
|
|
829
|
2396
|
'overlay_bg_repeat' => array(
|
|
830
|
2397
|
'type' => 'select',
|
|
831
|
2398
|
'label' => __pl('overlay_bg_repeat'),
|
|
832
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
|
|
2399
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
|
|
833
|
2400
|
'list' => [
|
|
834
|
2401
|
'' => __pl('default'),
|
|
835
|
2402
|
'repeat' => __pl('repeat'),
|
|
836
|
2403
|
'no-repeat' => __pl('no-repeat'),
|
|
@@ -842,9 +2409,9 @@ |
|
842
|
2409
|
),
|
|
843
|
2410
|
'overlay_bg_size' => array(
|
|
844
|
2411
|
'type' => 'select',
|
|
845
|
2412
|
'label' => __pl('overlay_bg_size'),
|
|
846
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-size: {{val}};'],
|
|
2413
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-size: {{val}};'],
|
|
847
|
2414
|
'list' => [
|
|
848
|
2415
|
'' => __pl('default'),
|
|
849
|
2416
|
'cover' => __pl('cover'),
|
|
850
|
2417
|
'contain' => __pl('contain')
|
|
@@ -858,9 +2425,9 @@ |
|
858
|
2425
|
'default' => 0.5,
|
|
859
|
2426
|
'min' => 0,
|
|
860
|
2427
|
'max' => 1,
|
|
861
|
2428
|
'step' => 0.1,
|
|
862
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'opacity: {{val}};'],
|
|
2429
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'opacity: {{val}};'],
|
|
863
|
2430
|
'req' => array(
|
|
864
|
2431
|
'!overlay_type' => '',
|
|
865
|
2432
|
),
|
|
866
|
2433
|
'show' => ['overlay_state' => ''],
|
|
@@ -871,9 +2438,9 @@ |
|
871
|
2438
|
'min' => 0,
|
|
872
|
2439
|
'step' => 100,
|
|
873
|
2440
|
'max' => 5000,
|
|
874
|
2441
|
'default' => 400,
|
|
875
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
|
|
2442
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
|
|
876
|
2443
|
'show' => array(
|
|
877
|
2444
|
'overlay_state' => 'hover'
|
|
878
|
2445
|
),
|
|
879
|
2446
|
),
|
|
@@ -891,9 +2458,9 @@ |
|
891
|
2458
|
'overlay_color_hover' => array(
|
|
892
|
2459
|
'type' => 'color',
|
|
893
|
2460
|
'label' => __pl('color'),
|
|
894
|
2461
|
//'desc' => __pl('video_src_desc'),
|
|
895
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: {{val}};'],
|
|
2462
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: {{val}};'],
|
|
896
|
2463
|
'req' => ['overlay_type_hover' => 'color'],
|
|
897
|
2464
|
'show' => ['overlay_state' => 'hover'],
|
|
898
|
2465
|
),
|
|
899
|
2466
|
'overlay_gradient_hover' => array(
|
|
@@ -898,10 +2465,10 @@ |
|
898
|
2465
|
),
|
|
899
|
2466
|
'overlay_gradient_hover' => array(
|
|
900
|
2467
|
'type' => 'gradient',
|
|
901
|
2468
|
'label' => '',
|
|
902
|
|
- 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
|
|
903
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
|
|
2469
|
+ 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
|
|
2470
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
|
|
904
|
2471
|
'show' => ['overlay_state' => 'hover'],
|
|
905
|
2472
|
'req' => ['overlay_type_hover' => 'gradient']
|
|
906
|
2473
|
),
|
|
907
|
2474
|
'overlay_img_hover' => array(
|
|
@@ -906,9 +2473,9 @@ |
|
906
|
2473
|
),
|
|
907
|
2474
|
'overlay_img_hover' => array(
|
|
908
|
2475
|
'type' => 'image',
|
|
909
|
2476
|
'label' => __pl('Image'),
|
|
910
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: url({{{overlay_img_hover-url}}});'],
|
|
2477
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: url("{{{overlay_img_hover-url}}}");'],
|
|
911
|
2478
|
'show' => ['overlay_state' => 'hover'],
|
|
912
|
2479
|
'req' => ['overlay_type_hover' => 'image']
|
|
913
|
2480
|
),
|
|
914
|
2481
|
'overlay_img_attachment_hover' => array(
|
|
@@ -919,9 +2486,9 @@ |
|
919
|
2486
|
'scroll' => __pl('scroll'),
|
|
920
|
2487
|
'fixed' => __pl('fixed')
|
|
921
|
2488
|
],
|
|
922
|
2489
|
'show' => ['overlay_state' => 'hover'],
|
|
923
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
|
|
2490
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
|
|
924
|
2491
|
'req' => ['overlay_type_hover' => 'image']
|
|
925
|
2492
|
),
|
|
926
|
2493
|
'overlay_bg_posx_hover' => array(
|
|
927
|
2494
|
'type' => 'select',
|
|
@@ -932,9 +2499,9 @@ |
|
932
|
2499
|
'left' => __pl('left'),
|
|
933
|
2500
|
'right' => __pl('right')
|
|
934
|
2501
|
],
|
|
935
|
2502
|
'show' => ['overlay_state' => 'hover'],
|
|
936
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
|
|
2503
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
|
|
937
|
2504
|
'req' => ['overlay_type_hover' => 'image']
|
|
938
|
2505
|
),
|
|
939
|
2506
|
'overlay_bg_posy_hover' => array(
|
|
940
|
2507
|
'type' => 'select',
|
|
@@ -945,15 +2512,15 @@ |
|
945
|
2512
|
'top' => __pl('top'),
|
|
946
|
2513
|
'bottom' => __pl('bottom')
|
|
947
|
2514
|
],
|
|
948
|
2515
|
'show' => ['overlay_state' => 'hover'],
|
|
949
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
|
|
2516
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
|
|
950
|
2517
|
'req' => ['overlay_type_hover' => 'image']
|
|
951
|
2518
|
),
|
|
952
|
2519
|
'overlay_bg_repeat_hover' => array(
|
|
953
|
2520
|
'type' => 'select',
|
|
954
|
2521
|
'label' => __pl('overlay_bg_repeat_hover'),
|
|
955
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
|
|
2522
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
|
|
956
|
2523
|
'list' => [
|
|
957
|
2524
|
'' => __pl('default'),
|
|
958
|
2525
|
'repeat' => __pl('repeat'),
|
|
959
|
2526
|
'no-repeat' => __pl('no-repeat'),
|
|
@@ -965,9 +2532,9 @@ |
|
965
|
2532
|
),
|
|
966
|
2533
|
'overlay_bg_size_hover' => array(
|
|
967
|
2534
|
'type' => 'select',
|
|
968
|
2535
|
'label' => __pl('overlay_bg_size_hover'),
|
|
969
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-size: {{val}};'],
|
|
2536
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-size: {{val}};'],
|
|
970
|
2537
|
'list' => [
|
|
971
|
2538
|
'' => __pl('default'),
|
|
972
|
2539
|
'cover' => __pl('cover'),
|
|
973
|
2540
|
'contain' => __pl('contain')
|
|
@@ -980,9 +2547,9 @@ |
|
980
|
2547
|
'label' => __pl('overlay_transperancy_hover'),
|
|
981
|
2548
|
'min' => 0,
|
|
982
|
2549
|
'max' => 1,
|
|
983
|
2550
|
'step' => 0.1,
|
|
984
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'opacity: {{val}};'],
|
|
2551
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'opacity: {{val}};'],
|
|
985
|
2552
|
'req' => array(
|
|
986
|
2553
|
'overlay_type' => 'image',
|
|
987
|
2554
|
'overlay_type' => 'color'
|
|
988
|
2555
|
),
|
|
@@ -1023,9 +2590,9 @@ |
|
1023
|
2590
|
),
|
|
1024
|
2591
|
'row_shape_top_color' => array(
|
|
1025
|
2592
|
'type' => 'color',
|
|
1026
|
2593
|
'label' => __pl('shape_bg_color'),
|
|
1027
|
|
- 'default' => '#fff',
|
|
2594
|
+ 'default' => '#227bc3',
|
|
1028
|
2595
|
'css' => ['{{element}} .pagelayer-svg-top .pagelayer-shape-fill' => 'fill:{{val}}'],
|
|
1029
|
2596
|
'show' => ['row_shape_position' => 'top'],
|
|
1030
|
2597
|
),
|
|
1031
|
2598
|
'row_shape_top_width' => array(
|
|
@@ -1079,9 +2646,9 @@ |
|
1079
|
2646
|
),
|
|
1080
|
2647
|
'row_shape_bottom_color' => array(
|
|
1081
|
2648
|
'type' => 'color',
|
|
1082
|
2649
|
'label' => __pl('shape_bg_color'),
|
|
1083
|
|
- 'default' => '#fff',
|
|
2650
|
+ 'default' => '#e44993',
|
|
1084
|
2651
|
'css' => ['{{element}} .pagelayer-svg-bottom .pagelayer-shape-fill' => 'fill:{{val}}'],
|
|
1085
|
2652
|
'show' => ['row_shape_position' => 'bottom'],
|
|
1086
|
2653
|
),
|
|
1087
|
2654
|
'row_shape_bottom_width' => array(
|
|
@@ -1123,12 +2690,16 @@ |
|
1123
|
2690
|
// Column object
|
|
1124
|
2691
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_col', array(
|
|
1125
|
2692
|
'name' => __pl('column'),
|
|
1126
|
2693
|
'group' => 'grid',
|
|
1127
|
|
- 'func' => 'pagelayer_sc_col',
|
|
2694
|
+ 'skip_props_cat' => ['position_styles'],
|
|
2695
|
+ 'skip_props' => ['ele_sticky_in_container'],
|
|
1128
|
2696
|
'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
|
|
2697
|
+ <div if="{{bg_slider}}" class="pagelayer-bgimg-slider">
|
|
2698
|
+ {{slider}}
|
|
2699
|
+ </div>
|
|
1129
|
2700
|
<div if="{{parallax_img}}" class="pagelayer-parallax-window">
|
|
1130
|
|
- <img src="{{{parallax_img-url}}}">
|
|
2701
|
+ <img class="pagelayer-img" src="{{parallax_img_src}}" title="{{{parallax_img-title}}}" alt="{{{parallax_img-alt}}}">
|
|
1131
|
2702
|
</div>
|
|
1132
|
2703
|
<div if="{{overlay_type}}" class="pagelayer-background-overlay"></div>
|
|
1133
|
2704
|
<div class="pagelayer-col-holder"></div>',
|
|
1134
|
2705
|
'holder' => '.pagelayer-col-holder',
|
|
@@ -1135,11 +2706,9 @@ |
|
1135
|
2706
|
'params' => array(
|
|
1136
|
2707
|
'content_pos' => array(
|
|
1137
|
2708
|
'type' => 'select',
|
|
1138
|
2709
|
'label' => __pl('content_pos'),
|
|
1139
|
|
- 'default' => '',
|
|
1140
|
|
- 'css' => ['{{element}}' => 'display:flex; -webkit-box-align: {{val}}; -webkit-align-items: {{val}}; -ms-flex-align: {{val}}; align-items: {{val}}; height: 100%;',
|
|
1141
|
|
- '{{element}} .pagelayer-col-holder' => 'width:100%'],
|
|
2710
|
+ 'css' => ['{{element}}' => 'align-content: {{val}} !important;'],
|
|
1142
|
2711
|
'list' => array(
|
|
1143
|
2712
|
'' => __pl('default'),
|
|
1144
|
2713
|
'flex-start' => __pl('top'),
|
|
1145
|
2714
|
'center' => __pl('center'),
|
|
@@ -1179,10 +2748,11 @@ |
|
1179
|
2748
|
'type' => 'spinner',
|
|
1180
|
2749
|
'label' => __pl('width_custom'),
|
|
1181
|
2750
|
'min' => 0,
|
|
1182
|
2751
|
'step' => 1,
|
|
1183
|
|
- 'max' => 1000,
|
|
1184
|
|
- 'css' => ( !pagelayer_is_live() ? 'width: {{val}}px;' : '' ),
|
|
2752
|
+ 'max' => 100,
|
|
2753
|
+ 'screen' => 1,
|
|
2754
|
+ 'css' =>['.pagelayer-row-holder {{wrap}}' => 'width: {{val}}%;'],
|
|
1185
|
2755
|
'req' => ['col' => ''],
|
|
1186
|
2756
|
),
|
|
1187
|
2757
|
),
|
|
1188
|
2758
|
'col_bg_styles' => [
|
|
@@ -1192,8 +2762,9 @@ |
|
1192
|
2762
|
'list' => array(
|
|
1193
|
2763
|
'' => __pl('none'),
|
|
1194
|
2764
|
'video' => __pl('video'),
|
|
1195
|
2765
|
'parallax' => __pl('parallax'),
|
|
2766
|
+ 'slider' => __pl('slider'),
|
|
1196
|
2767
|
),
|
|
1197
|
2768
|
),
|
|
1198
|
2769
|
'bg_video_src' => array(
|
|
1199
|
2770
|
'type' => 'video',
|
|
@@ -1200,13 +2771,86 @@ |
|
1200
|
2771
|
'label' => __pl('video_src_label'),
|
|
1201
|
2772
|
'desc' => __pl('video_src_desc'),
|
|
1202
|
2773
|
'req' => ['col_bg_type' => 'video']
|
|
1203
|
2774
|
),
|
|
2775
|
+ 'mute' => array(
|
|
2776
|
+ 'type' => 'checkbox',
|
|
2777
|
+ 'label' => __pl('mute'),
|
|
2778
|
+ 'req' => ['col_bg_type' => 'video']
|
|
2779
|
+ ),
|
|
2780
|
+ 'stop_loop' => array(
|
|
2781
|
+ 'type' => 'checkbox',
|
|
2782
|
+ 'label' => __pl('stop_loop'),
|
|
2783
|
+ 'req' => ['col_bg_type' => 'video']
|
|
2784
|
+ ),
|
|
1204
|
2785
|
'parallax_img' => array(
|
|
1205
|
2786
|
'type' => 'image',
|
|
1206
|
2787
|
'label' => __pl('Image'),
|
|
1207
|
2788
|
'req' => ['col_bg_type' => 'parallax']
|
|
1208
|
2789
|
),
|
|
2790
|
+ 'parallax_align' => array(
|
|
2791
|
+ 'type' => 'radio',
|
|
2792
|
+ 'label' => __pl('obj_align_label'),
|
|
2793
|
+ 'screen' => 1,
|
|
2794
|
+ 'default' => 'center',
|
|
2795
|
+ 'css' => ['{{element}} .pagelayer-parallax-window' => 'text-align: {{val}}'],
|
|
2796
|
+ 'list' => array(
|
|
2797
|
+ 'left' => __pl('left'),
|
|
2798
|
+ 'center' => __pl('center'),
|
|
2799
|
+ 'right' => __pl('right')
|
|
2800
|
+ ),
|
|
2801
|
+ 'req' => ['col_bg_type' => 'parallax']
|
|
2802
|
+ ),
|
|
2803
|
+ 'parallax_id_size' => array(
|
|
2804
|
+ 'label' => __pl('obj_image_size_label'),
|
|
2805
|
+ 'type' => 'select',
|
|
2806
|
+ 'default' => 'full',
|
|
2807
|
+ 'list' => array(
|
|
2808
|
+ 'full' => __pl('full'),
|
|
2809
|
+ 'large' => __pl('large'),
|
|
2810
|
+ 'medium' => __pl('medium'),
|
|
2811
|
+ 'thumbnail' => __pl('thumbnail'),
|
|
2812
|
+ 'custom' => __pl('custom')
|
|
2813
|
+ ),
|
|
2814
|
+ 'req' => ['col_bg_type' => 'parallax']
|
|
2815
|
+ ),
|
|
2816
|
+ 'parallax_custom_size' => array(
|
|
2817
|
+ 'type' => 'dimension',
|
|
2818
|
+ 'label' => __pl('image_custom_size_label'),
|
|
2819
|
+ 'css' => ['{{element}} .pagelayer-parallax-window img' => 'width: {{val[0]}}px; height: {{val[1]}}px;'],
|
|
2820
|
+ 'req' => array(
|
|
2821
|
+ 'parallax_id_size' => 'custom',
|
|
2822
|
+ 'col_bg_type' => 'parallax'
|
|
2823
|
+ ),
|
|
2824
|
+ ),
|
|
2825
|
+ 'parallax_max_width' => array(
|
|
2826
|
+ 'label' => __pl('max-width-percent'),
|
|
2827
|
+ 'type' => 'slider',
|
|
2828
|
+ 'min' => 0,
|
|
2829
|
+ 'max' => 100,
|
|
2830
|
+ 'screen' => 1,
|
|
2831
|
+ 'css' => ['{{element}} .pagelayer-parallax-window img' => 'max-width: {{val}}%'],
|
|
2832
|
+ 'req' => ['col_bg_type' => 'parallax']
|
|
2833
|
+ ),
|
|
2834
|
+ 'bg_slider' => array(
|
|
2835
|
+ 'type' => 'multi_image',
|
|
2836
|
+ 'label' => __pl('image_slider_ids_label'),
|
|
2837
|
+ 'req' => ['col_bg_type' => 'slider'],
|
|
2838
|
+ 'pro' => 1
|
|
2839
|
+ ),
|
|
2840
|
+ 'bg_slider_speed' => array(
|
|
2841
|
+ 'type' => 'spinner',
|
|
2842
|
+ 'label' => __pl('speed_ms'),
|
|
2843
|
+ 'default' => 2000,
|
|
2844
|
+ 'min' => 200,
|
|
2845
|
+ 'max' => 50000,
|
|
2846
|
+ 'step' => 100,
|
|
2847
|
+ 'addAttr' => ['{{element}} .pagelayer-bgimg-slider' => 'data-speed="{{bg_slider_speed}}"'],
|
|
2848
|
+ 'req' => [
|
|
2849
|
+ 'col_bg_type' => 'slider'
|
|
2850
|
+ ],
|
|
2851
|
+ 'pro' => 1
|
|
2852
|
+ ),
|
|
1209
|
2853
|
],
|
|
1210
|
2854
|
'col_bg_overlay' => [
|
|
1211
|
2855
|
'overlay_state' => array(
|
|
1212
|
2856
|
'type' => 'radio',
|
|
@@ -1230,9 +2874,9 @@ |
|
1230
|
2874
|
'overlay_color' => array(
|
|
1231
|
2875
|
'type' => 'color',
|
|
1232
|
2876
|
'label' => __pl('color'),
|
|
1233
|
2877
|
//'desc' => __pl('video_src_desc'),
|
|
1234
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-color: {{val}};'],
|
|
2878
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-color: {{val}};'],
|
|
1235
|
2879
|
'req' => ['overlay_type' => 'color'],
|
|
1236
|
2880
|
'show' => ['overlay_state' => ''],
|
|
1237
|
2881
|
),
|
|
1238
|
2882
|
'overlay_gradient' => array(
|
|
@@ -1237,10 +2881,10 @@ |
|
1237
|
2881
|
),
|
|
1238
|
2882
|
'overlay_gradient' => array(
|
|
1239
|
2883
|
'type' => 'gradient',
|
|
1240
|
2884
|
'label' => '',
|
|
1241
|
|
- 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
|
|
1242
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
|
|
2885
|
+ 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
|
|
2886
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
|
|
1243
|
2887
|
'show' => ['overlay_state' => ''],
|
|
1244
|
2888
|
'req' => ['overlay_type' => 'gradient']
|
|
1245
|
2889
|
),
|
|
1246
|
2890
|
'overlay_img' => array(
|
|
@@ -1245,9 +2889,9 @@ |
|
1245
|
2889
|
),
|
|
1246
|
2890
|
'overlay_img' => array(
|
|
1247
|
2891
|
'type' => 'image',
|
|
1248
|
2892
|
'label' => __pl('Image'),
|
|
1249
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: url({{{overlay_img-url}}});'],
|
|
2893
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: url("{{{overlay_img-url}}}");'],
|
|
1250
|
2894
|
'show' => ['overlay_state' => ''],
|
|
1251
|
2895
|
'req' => ['overlay_type' => 'image']
|
|
1252
|
2896
|
),
|
|
1253
|
2897
|
'overlay_img_attachment' => array(
|
|
@@ -1258,9 +2902,9 @@ |
|
1258
|
2902
|
'scroll' => __pl('scroll'),
|
|
1259
|
2903
|
'fixed' => __pl('fixed')
|
|
1260
|
2904
|
],
|
|
1261
|
2905
|
'show' => ['overlay_state' => ''],
|
|
1262
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
|
|
2906
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
|
|
1263
|
2907
|
'req' => ['overlay_type' => 'image']
|
|
1264
|
2908
|
),
|
|
1265
|
2909
|
'overlay_bg_posx' => array(
|
|
1266
|
2910
|
'type' => 'select',
|
|
@@ -1271,9 +2915,9 @@ |
|
1271
|
2915
|
'left' => __pl('left'),
|
|
1272
|
2916
|
'right' => __pl('right')
|
|
1273
|
2917
|
],
|
|
1274
|
2918
|
'show' => ['overlay_state' => ''],
|
|
1275
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
|
|
2919
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
|
|
1276
|
2920
|
'req' => ['overlay_type' => 'image']
|
|
1277
|
2921
|
),
|
|
1278
|
2922
|
'overlay_bg_posy' => array(
|
|
1279
|
2923
|
'type' => 'select',
|
|
@@ -1284,15 +2928,15 @@ |
|
1284
|
2928
|
'top' => __pl('top'),
|
|
1285
|
2929
|
'bottom' => __pl('bottom')
|
|
1286
|
2930
|
],
|
|
1287
|
2931
|
'show' => ['overlay_state' => ''],
|
|
1288
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
|
|
2932
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
|
|
1289
|
2933
|
'req' => ['overlay_type' => 'image']
|
|
1290
|
2934
|
),
|
|
1291
|
2935
|
'overlay_bg_repeat' => array(
|
|
1292
|
2936
|
'type' => 'select',
|
|
1293
|
2937
|
'label' => __pl('overlay_bg_repeat'),
|
|
1294
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
|
|
2938
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
|
|
1295
|
2939
|
'list' => [
|
|
1296
|
2940
|
'' => __pl('default'),
|
|
1297
|
2941
|
'repeat' => __pl('repeat'),
|
|
1298
|
2942
|
'no-repeat' => __pl('no-repeat'),
|
|
@@ -1304,9 +2948,9 @@ |
|
1304
|
2948
|
),
|
|
1305
|
2949
|
'overlay_bg_size' => array(
|
|
1306
|
2950
|
'type' => 'select',
|
|
1307
|
2951
|
'label' => __pl('overlay_bg_size'),
|
|
1308
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-size: {{val}};'],
|
|
2952
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-size: {{val}};'],
|
|
1309
|
2953
|
'list' => [
|
|
1310
|
2954
|
'' => __pl('default'),
|
|
1311
|
2955
|
'cover' => __pl('cover'),
|
|
1312
|
2956
|
'contain' => __pl('contain')
|
|
@@ -1320,9 +2964,9 @@ |
|
1320
|
2964
|
'default' => 0.5,
|
|
1321
|
2965
|
'min' => 0,
|
|
1322
|
2966
|
'max' => 1,
|
|
1323
|
2967
|
'step' => 0.1,
|
|
1324
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => 'opacity: {{val}};'],
|
|
2968
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => 'opacity: {{val}};'],
|
|
1325
|
2969
|
'req' => array(
|
|
1326
|
2970
|
'!overlay_type' => '',
|
|
1327
|
2971
|
),
|
|
1328
|
2972
|
'show' => ['overlay_state' => ''],
|
|
@@ -1333,9 +2977,9 @@ |
|
1333
|
2977
|
'min' => 0,
|
|
1334
|
2978
|
'step' => 100,
|
|
1335
|
2979
|
'max' => 5000,
|
|
1336
|
2980
|
'default' => 400,
|
|
1337
|
|
- 'css' => ['{{element}} .pagelayer-background-overlay' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
|
|
2981
|
+ 'css' => ['{{element}} > .pagelayer-background-overlay' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
|
|
1338
|
2982
|
'show' => array(
|
|
1339
|
2983
|
'overlay_state' => 'hover'
|
|
1340
|
2984
|
),
|
|
1341
|
2985
|
),
|
|
@@ -1353,9 +2997,9 @@ |
|
1353
|
2997
|
'overlay_color_hover' => array(
|
|
1354
|
2998
|
'type' => 'color',
|
|
1355
|
2999
|
'label' => __pl('color'),
|
|
1356
|
3000
|
//'desc' => __pl('video_src_desc'),
|
|
1357
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: {{val}};'],
|
|
3001
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: {{val}};'],
|
|
1358
|
3002
|
'req' => ['overlay_type_hover' => 'color'],
|
|
1359
|
3003
|
'show' => ['overlay_state' => 'hover'],
|
|
1360
|
3004
|
),
|
|
1361
|
3005
|
'overlay_gradient_hover' => array(
|
|
@@ -1360,10 +3004,10 @@ |
|
1360
|
3004
|
),
|
|
1361
|
3005
|
'overlay_gradient_hover' => array(
|
|
1362
|
3006
|
'type' => 'gradient',
|
|
1363
|
3007
|
'label' => '',
|
|
1364
|
|
- 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
|
|
1365
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
|
|
3008
|
+ 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
|
|
3009
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
|
|
1366
|
3010
|
'show' => ['overlay_state' => 'hover'],
|
|
1367
|
3011
|
'req' => ['overlay_type_hover' => 'gradient']
|
|
1368
|
3012
|
),
|
|
1369
|
3013
|
'overlay_img_hover' => array(
|
|
@@ -1368,9 +3012,9 @@ |
|
1368
|
3012
|
),
|
|
1369
|
3013
|
'overlay_img_hover' => array(
|
|
1370
|
3014
|
'type' => 'image',
|
|
1371
|
3015
|
'label' => __pl('Image'),
|
|
1372
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: url({{{overlay_img_hover-url}}});'],
|
|
3016
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: url("{{{overlay_img_hover-url}}}");'],
|
|
1373
|
3017
|
'show' => ['overlay_state' => 'hover'],
|
|
1374
|
3018
|
'req' => ['overlay_type_hover' => 'image']
|
|
1375
|
3019
|
),
|
|
1376
|
3020
|
'overlay_img_attachment_hover' => array(
|
|
@@ -1381,9 +3025,9 @@ |
|
1381
|
3025
|
'scroll' => __pl('scroll'),
|
|
1382
|
3026
|
'fixed' => __pl('fixed')
|
|
1383
|
3027
|
],
|
|
1384
|
3028
|
'show' => ['overlay_state' => 'hover'],
|
|
1385
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
|
|
3029
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
|
|
1386
|
3030
|
'req' => ['overlay_type_hover' => 'image']
|
|
1387
|
3031
|
),
|
|
1388
|
3032
|
'overlay_bg_posx_hover' => array(
|
|
1389
|
3033
|
'type' => 'select',
|
|
@@ -1394,9 +3038,9 @@ |
|
1394
|
3038
|
'left' => __pl('left'),
|
|
1395
|
3039
|
'right' => __pl('right')
|
|
1396
|
3040
|
],
|
|
1397
|
3041
|
'show' => ['overlay_state' => 'hover'],
|
|
1398
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
|
|
3042
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
|
|
1399
|
3043
|
'req' => ['overlay_type_hover' => 'image']
|
|
1400
|
3044
|
),
|
|
1401
|
3045
|
'overlay_bg_posy_hover' => array(
|
|
1402
|
3046
|
'type' => 'select',
|
|
@@ -1407,15 +3051,15 @@ |
|
1407
|
3051
|
'top' => __pl('top'),
|
|
1408
|
3052
|
'bottom' => __pl('bottom')
|
|
1409
|
3053
|
],
|
|
1410
|
3054
|
'show' => ['overlay_state' => 'hover'],
|
|
1411
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
|
|
3055
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
|
|
1412
|
3056
|
'req' => ['overlay_type_hover' => 'image']
|
|
1413
|
3057
|
),
|
|
1414
|
3058
|
'overlay_bg_repeat_hover' => array(
|
|
1415
|
3059
|
'type' => 'select',
|
|
1416
|
3060
|
'label' => __pl('overlay_bg_repeat_hover'),
|
|
1417
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
|
|
3061
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
|
|
1418
|
3062
|
'list' => [
|
|
1419
|
3063
|
'' => __pl('default'),
|
|
1420
|
3064
|
'repeat' => __pl('repeat'),
|
|
1421
|
3065
|
'no-repeat' => __pl('no-repeat'),
|
|
@@ -1427,9 +3071,9 @@ |
|
1427
|
3071
|
),
|
|
1428
|
3072
|
'overlay_bg_size_hover' => array(
|
|
1429
|
3073
|
'type' => 'select',
|
|
1430
|
3074
|
'label' => __pl('overlay_bg_size_hover'),
|
|
1431
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-size: {{val}};'],
|
|
3075
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-size: {{val}};'],
|
|
1432
|
3076
|
'list' => [
|
|
1433
|
3077
|
'' => __pl('default'),
|
|
1434
|
3078
|
'cover' => __pl('cover'),
|
|
1435
|
3079
|
'contain' => __pl('contain')
|
|
@@ -1443,9 +3087,9 @@ |
|
1443
|
3087
|
'default' => 0.5,
|
|
1444
|
3088
|
'min' => 0,
|
|
1445
|
3089
|
'max' => 1,
|
|
1446
|
3090
|
'step' => 0.1,
|
|
1447
|
|
- 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'opacity: {{val}};'],
|
|
3091
|
+ 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'opacity: {{val}};'],
|
|
1448
|
3092
|
'req' => array(
|
|
1449
|
3093
|
'!overlay_type_hover' => '',
|
|
1450
|
3094
|
),
|
|
1451
|
3095
|
'show' => ['overlay_state' => 'hover'],
|
|
@@ -1465,12 +3109,11 @@ |
|
1465
|
3109
|
// Heading object
|
|
1466
|
3110
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_heading', array(
|
|
1467
|
3111
|
'name' => __pl('title'),
|
|
1468
|
3112
|
'group' => 'text',
|
|
1469
|
|
- 'func' => 'pagelayer_sc_heading',
|
|
1470
|
3113
|
'innerHTML' => 'text',
|
|
1471
|
|
- 'html' => '<a if-ext="{{link}}" href="{{link}}">
|
|
1472
|
|
- <div class="pagelayer-heading-holder">{{text}}</div>
|
|
3114
|
+ 'html' => '<a if-ext="{{link}}" href="{{{link}}}" class="pagelayer-link-sel">
|
|
3115
|
+ <div if={{text}} class="pagelayer-heading-holder">{{text}}</div>
|
|
1473
|
3116
|
</a>',
|
|
1474
|
3117
|
'params' => array(
|
|
1475
|
3118
|
'text' => array(
|
|
1476
|
3119
|
'type' => 'textarea',
|
|
@@ -1476,27 +3119,21 @@ |
|
1476
|
3119
|
'type' => 'textarea',
|
|
1477
|
3120
|
'label' => __pl('Edit Title'),
|
|
1478
|
3121
|
'default' => '<h2>Your Heading</h2>',
|
|
1479
|
3122
|
'desc' => __pl('Edit the heading here'),
|
|
3123
|
+ 'e' => [ 'v', 'h', 'f', 'c', 'r'],
|
|
1480
|
3124
|
'edit' => '.pagelayer-heading-holder', // Edit the text and also mirror the same
|
|
1481
|
3125
|
),
|
|
1482
|
3126
|
'link' => array(
|
|
3127
|
+ 'type' => 'link',
|
|
1483
|
3128
|
'label' => __pl('image_link_label'),
|
|
1484
|
|
- 'desc' => __pl('image_link_desc'),
|
|
1485
|
|
- 'type' => 'link',
|
|
3129
|
+ 'selector' => '.pagelayer-link-sel'
|
|
1486
|
3130
|
),
|
|
1487
|
|
- 'target' => array(
|
|
1488
|
|
- 'label' => __pl('open_link_in_new_window'),
|
|
1489
|
|
- 'type' => 'checkbox',
|
|
1490
|
|
- 'addAttr' => ['{{element}} a' => 'target="_blank"'],
|
|
1491
|
|
- 'req' => array(
|
|
1492
|
|
- '!link' => ''
|
|
1493
|
|
- )
|
|
1494
|
|
- ),
|
|
1495
|
3131
|
'align' => array(
|
|
1496
|
3132
|
'label' => __pl('obj_align_label'),
|
|
1497
|
3133
|
'type' => 'radio',
|
|
1498
|
3134
|
'addAttr' => 'align="{{align}}"',
|
|
3135
|
+ 'screen' => 1,
|
|
1499
|
3136
|
'css' => ['{{element}}' => 'text-align: {{val}}'],
|
|
1500
|
3137
|
'list' => array(
|
|
1501
|
3138
|
'left' => __pl('left'),
|
|
1502
|
3139
|
'center' => __pl('center'),
|
|
@@ -1504,13 +3141,22 @@ |
|
1504
|
3141
|
)
|
|
1505
|
3142
|
),
|
|
1506
|
3143
|
),
|
|
1507
|
3144
|
'heading_styles' => [
|
|
3145
|
+ 'heading_state' => array(
|
|
3146
|
+ 'type' => 'radio',
|
|
3147
|
+ 'label' => __pl('state'),
|
|
3148
|
+ 'default' => 'normal',
|
|
3149
|
+ 'list' => array(
|
|
3150
|
+ 'normal' => __pl('normal'),
|
|
3151
|
+ 'hover' => __pl('hover'),
|
|
3152
|
+ )
|
|
3153
|
+ ),
|
|
1508
|
3154
|
'color' => array(
|
|
1509
|
3155
|
'type' => 'color',
|
|
1510
|
3156
|
'label' => __pl('color'),
|
|
1511
|
|
- 'default' => '#111111ff',
|
|
1512
|
3157
|
'css' => ['{{element}} .pagelayer-heading-holder *' => 'color:{{val}}', '{{element}} .pagelayer-heading-holder' => 'color:{{val}}'],
|
|
3158
|
+ 'show' => ['heading_state' => 'normal']
|
|
1513
|
3159
|
),
|
|
1514
|
3160
|
'heading_typo' => array(
|
|
1515
|
3161
|
'type' => 'typography',
|
|
1516
|
3162
|
'label' => __pl('typography'),
|
|
@@ -1515,14 +3161,35 @@ |
|
1515
|
3161
|
'type' => 'typography',
|
|
1516
|
3162
|
'label' => __pl('typography'),
|
|
1517
|
3163
|
'css' => ['{{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;',
|
|
1518
|
3164
|
'{{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;'],
|
|
3165
|
+ 'show' => ['heading_state' => 'normal']
|
|
1519
|
3166
|
),
|
|
1520
|
3167
|
'heading_text_shadow' => array(
|
|
1521
|
3168
|
'type' => 'shadow',
|
|
1522
|
3169
|
'label' => __pl('text_shadow'),
|
|
1523
|
|
- 'css' => ['{{element}} .pagelayer-heading-holder' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
|
|
3170
|
+ 'css' => ['{{element}} .pagelayer-heading-holder, {{element}} .pagelayer-heading-holder *' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
|
|
3171
|
+ 'show' => ['heading_state' => 'normal']
|
|
1524
|
3172
|
),
|
|
3173
|
+ 'color_hover' => array(
|
|
3174
|
+ 'type' => 'color',
|
|
3175
|
+ 'label' => __pl('color'),
|
|
3176
|
+ 'css' => ['{{element}} .pagelayer-heading-holder:hover *' => 'color:{{val}}', '{{element}} .pagelayer-heading-holder:hover' => 'color:{{val}}'],
|
|
3177
|
+ 'show' => ['heading_state' => 'hover']
|
|
3178
|
+ ),
|
|
3179
|
+ 'heading_typo_hover' => array(
|
|
3180
|
+ 'type' => 'typography',
|
|
3181
|
+ 'label' => __pl('typography'),
|
|
3182
|
+ 'css' => ['{{element}} .pagelayer-heading-holder:hover *' => '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;',
|
|
3183
|
+ '{{element}} .pagelayer-heading-holder:hover' => '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;'],
|
|
3184
|
+ 'show' => ['heading_state' => 'hover']
|
|
3185
|
+ ),
|
|
3186
|
+ 'heading_text_shadow_hover' => array(
|
|
3187
|
+ 'type' => 'shadow',
|
|
3188
|
+ 'label' => __pl('text_shadow'),
|
|
3189
|
+ 'css' => ['{{element}} .pagelayer-heading-holder:hover, {{element}} .pagelayer-heading-holder:hover *' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
|
|
3190
|
+ 'show' => ['heading_state' => 'hover']
|
|
3191
|
+ ),
|
|
1525
|
3192
|
],
|
|
1526
|
3193
|
'styles' => [
|
|
1527
|
3194
|
'heading_styles' => __pl('heading_styles')
|
|
1528
|
3195
|
],
|
|
@@ -1532,9 +3199,8 @@ |
|
1532
|
3199
|
// Rich Text object
|
|
1533
|
3200
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_text', array(
|
|
1534
|
3201
|
'name' => __pl('Rich Text'),
|
|
1535
|
3202
|
'group' => 'text',
|
|
1536
|
|
- 'func' => 'pagelayer_sc_code',
|
|
1537
|
3203
|
'innerHTML' => 'text',
|
|
1538
|
3204
|
'html' => '<div class="pagelayer-text-holder">{{text}}</div>',
|
|
1539
|
3205
|
'params' => array(
|
|
1540
|
3206
|
'text' => array(
|
|
@@ -1539,10 +3205,11 @@ |
|
1539
|
3205
|
'params' => array(
|
|
1540
|
3206
|
'text' => array(
|
|
1541
|
3207
|
'type' => 'editor',
|
|
1542
|
3208
|
'label' => __pl('Edit Rich Text'),
|
|
1543
|
|
- 'default' => 'Lorem ipsum dolor sit amet',
|
|
1544
|
|
- 'desc' => __pl('Edit the content here or edit directly in the Editor'),
|
|
3209
|
+ 'default' => pagelayer_is_gutenberg_editor() ? '' : '<p><br></p>',
|
|
3210
|
+ 'rows' => '15',
|
|
3211
|
+ 'desc' => __pl('Edit the content by clicking on the content you want to edit on the website'),
|
|
1545
|
3212
|
'edit' => '.pagelayer-text-holder', // Edit the text and also mirror the same
|
|
1546
|
3213
|
)
|
|
1547
|
3214
|
)
|
|
1548
|
3215
|
)
|
|
@@ -1560,14 +3227,13 @@ |
|
1560
|
3227
|
{{quote_content}}
|
|
1561
|
3228
|
<i if="{{double_indent}}" class="fa fa-quote-right"></i>
|
|
1562
|
3229
|
</div>
|
|
1563
|
3230
|
<div if="{{cite}}" class="pagelayer-quote-cite">
|
|
1564
|
|
- <a if-ext="{{cite_url}}" href="{{cite_url}}">
|
|
3231
|
+ <a if-ext="{{cite_url}}" href="{{{cite_url}}}" class="pagelayer-link-sel">
|
|
1565
|
3232
|
<span class="pagelayer-cite-holder">{{cite}}</span>
|
|
1566
|
3233
|
</a>
|
|
1567
|
3234
|
</div>
|
|
1568
|
3235
|
</div>',
|
|
1569
|
|
- 'func' => 'pagelayer_sc_quote',
|
|
1570
|
3236
|
'params' => array(
|
|
1571
|
3237
|
'quote_content' => array(
|
|
1572
|
3238
|
'type' => 'textarea',
|
|
1573
|
3239
|
'label' => __pl('quotes_content_label'),
|
|
@@ -1585,8 +3251,14 @@ |
|
1585
|
3251
|
'label' => __pl('quotes_content_color_label'),
|
|
1586
|
3252
|
'default' => '#050505',
|
|
1587
|
3253
|
'css' => ['{{element}} .pagelayer-quote-content' => 'color:{{val}}'],
|
|
1588
|
3254
|
),
|
|
3255
|
+ 'quote_content_space' => array(
|
|
3256
|
+ 'type' => 'dimension',
|
|
3257
|
+ 'label' => __pl('space_between'),
|
|
3258
|
+ 'screen' => 1,
|
|
3259
|
+ 'css' => ['{{element}} .pagelayer-quote-content' => 'margin-top:{{val[0]}}px;margin-bottom:{{val[1]}}px;'],
|
|
3260
|
+ ),
|
|
1589
|
3261
|
'quote_content_typo' => array(
|
|
1590
|
3262
|
'type' => 'typography',
|
|
1591
|
3263
|
'label' => __pl('quote_content_typo'),
|
|
1592
|
3264
|
'css' => ['{{element}} .pagelayer-quote-content' => '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;'],
|
|
@@ -1625,9 +3297,9 @@ |
|
1625
|
3297
|
'step' => 1,
|
|
1626
|
3298
|
'max' => 1000,
|
|
1627
|
3299
|
'default' => 70,
|
|
1628
|
3300
|
'screen' => 1,
|
|
1629
|
|
- 'css' => ['{{element}} i' => 'font-size: {{val}}px;'],
|
|
3301
|
+ 'css' => ['{{element}} .fa' => 'font-size: {{val}}px;'],
|
|
1630
|
3302
|
'req' => array(
|
|
1631
|
3303
|
'quote_style' => ['quotation','double']
|
|
1632
|
3304
|
)
|
|
1633
|
3305
|
),
|
|
@@ -1633,10 +3305,10 @@ |
|
1633
|
3305
|
),
|
|
1634
|
3306
|
'quotation_color' => array(
|
|
1635
|
3307
|
'type' => 'color',
|
|
1636
|
3308
|
'label' => __pl('quotation_color_label'),
|
|
1637
|
|
- 'default' => '#dadadaff',
|
|
1638
|
|
- 'css' => ['{{element}} i' => 'color:{{val}}'],
|
|
3309
|
+ 'default' => '#dadada',
|
|
3310
|
+ 'css' => ['{{element}} .fa' => 'color:{{val}}'],
|
|
1639
|
3311
|
'req' => array(
|
|
1640
|
3312
|
'quote_style' => ['quotation','double']
|
|
1641
|
3313
|
)
|
|
1642
|
3314
|
),
|
|
@@ -1646,8 +3318,9 @@ |
|
1646
|
3318
|
'min' => 0,
|
|
1647
|
3319
|
'step' => 1,
|
|
1648
|
3320
|
'max' => 100,
|
|
1649
|
3321
|
'default' => 0,
|
|
3322
|
+ 'screen' => 1,
|
|
1650
|
3323
|
'css' => ['{{element}} .pagelayer-quotation-overlay' => 'top: {{val}}%;'],
|
|
1651
|
3324
|
'req' => array(
|
|
1652
|
3325
|
'quote_style' => 'quotation',
|
|
1653
|
3326
|
'quotation_pos' => 'overlay'
|
|
@@ -1658,8 +3331,9 @@ |
|
1658
|
3331
|
'label' => __pl('quotation_left_label'),
|
|
1659
|
3332
|
'min' => 0,
|
|
1660
|
3333
|
'step' => 1,
|
|
1661
|
3334
|
'max' => 100,
|
|
3335
|
+ 'screen' => 1,
|
|
1662
|
3336
|
'css' => ['{{element}} .pagelayer-quotation-overlay' => 'left: {{val}}%;'],
|
|
1663
|
3337
|
'req' => array(
|
|
1664
|
3338
|
'quote_style' => 'quotation',
|
|
1665
|
3339
|
'quotation_pos' => 'overlay'
|
|
@@ -1671,8 +3345,9 @@ |
|
1671
|
3345
|
'min' => 1,
|
|
1672
|
3346
|
'step' => 1,
|
|
1673
|
3347
|
'max' => 500,
|
|
1674
|
3348
|
'default' => 10,
|
|
3349
|
+ 'screen' => 1,
|
|
1675
|
3350
|
'css' => ['{{element}} .fa-quote-right' => 'padding-left: {{val}}px;',
|
|
1676
|
3351
|
'{{element}} .fa-quote-left' => 'padding-right: {{val}}px;'],
|
|
1677
|
3352
|
'req' => array(
|
|
1678
|
3353
|
'quote_style' => 'double'
|
|
@@ -1681,8 +3356,9 @@ |
|
1681
|
3356
|
'align' => array(
|
|
1682
|
3357
|
'label' => __pl('obj_align_label'),
|
|
1683
|
3358
|
'type' => 'radio',
|
|
1684
|
3359
|
'default' => 'left',
|
|
3360
|
+ 'screen' => 1,
|
|
1685
|
3361
|
'css' => ['{{element}} .pagelayer-quote-holder' => 'text-align: {{val}};'],
|
|
1686
|
3362
|
'list' => array(
|
|
1687
|
3363
|
'left' => __pl('left'),
|
|
1688
|
3364
|
'center' => __pl('center'),
|
|
@@ -1700,8 +3376,9 @@ |
|
1700
|
3376
|
),
|
|
1701
|
3377
|
'cite_url' => array(
|
|
1702
|
3378
|
'type' => 'link',
|
|
1703
|
3379
|
'label' => __pl('quotes_url_label'),
|
|
3380
|
+ 'selector' => '.pagelayer-link-sel',
|
|
1704
|
3381
|
'desc' => __pl('quotes_url_desc'),
|
|
1705
|
3382
|
),
|
|
1706
|
3383
|
'cite_text_color' => array(
|
|
1707
|
3384
|
'type' => 'color',
|
|
@@ -1708,8 +3385,20 @@ |
|
1708
|
3385
|
'label' => __pl('quotes_cite_color_label'),
|
|
1709
|
3386
|
'default' => '#3f3f3f',
|
|
1710
|
3387
|
'css' => ['{{element}} .pagelayer-quote-cite span' => 'color:{{val}}']
|
|
1711
|
3388
|
),
|
|
3389
|
+ 'cite_text_align' => array(
|
|
3390
|
+ 'label' => __pl('obj_align_label'),
|
|
3391
|
+ 'type' => 'radio',
|
|
3392
|
+ 'default' => 'left',
|
|
3393
|
+ 'screen' => 1,
|
|
3394
|
+ 'css' => ['{{element}} .pagelayer-quote-cite' => 'text-align: {{val}};'],
|
|
3395
|
+ 'list' => array(
|
|
3396
|
+ 'left' => __pl('left'),
|
|
3397
|
+ 'center' => __pl('center'),
|
|
3398
|
+ 'right' => __pl('right'),
|
|
3399
|
+ )
|
|
3400
|
+ ),
|
|
1712
|
3401
|
'cite_typo' => array(
|
|
1713
|
3402
|
'type' => 'typography',
|
|
1714
|
3403
|
'label' => __pl('cite_typo'),
|
|
1715
|
3404
|
'default' => ',16,italic,,,,solid,,,,',
|
|
@@ -1723,8 +3412,9 @@ |
|
1723
|
3412
|
'min' => 0,
|
|
1724
|
3413
|
'step' => 1,
|
|
1725
|
3414
|
'max' => 100,
|
|
1726
|
3415
|
'default' => 5,
|
|
3416
|
+ 'screen' => 1,
|
|
1727
|
3417
|
'css' => ['{{element}} .pagelayer-quote-holder' => 'border-left-width: {{val}}px; border-left-style: solid;']
|
|
1728
|
3418
|
),
|
|
1729
|
3419
|
'quote_border_color' => array(
|
|
1730
|
3420
|
'type' => 'color',
|
|
@@ -1738,8 +3428,9 @@ |
|
1738
|
3428
|
'min' => 1,
|
|
1739
|
3429
|
'step' => 1,
|
|
1740
|
3430
|
'max' => 100,
|
|
1741
|
3431
|
'default' => 30,
|
|
3432
|
+ 'screen' => 1,
|
|
1742
|
3433
|
'css' => ['{{element}} .pagelayer-quote-holder' => 'padding-left: {{val}}px; padding-right: 10px;']
|
|
1743
|
3434
|
),
|
|
1744
|
3435
|
'quote_vpadding' => array(
|
|
1745
|
3436
|
'type' => 'spinner',
|
|
@@ -1747,8 +3438,9 @@ |
|
1747
|
3438
|
'min' => 1,
|
|
1748
|
3439
|
'step' => 1,
|
|
1749
|
3440
|
'max' => 100,
|
|
1750
|
3441
|
'default' => 20,
|
|
3442
|
+ 'screen' => 1,
|
|
1751
|
3443
|
'css' => ['{{element}} .pagelayer-quote-holder' => 'padding-top: {{val}}px; padding-bottom: {{val}}px;']
|
|
1752
|
3444
|
)
|
|
1753
|
3445
|
],
|
|
1754
|
3446
|
'styles' => [
|
|
@@ -1762,14 +3454,14 @@ |
|
1762
|
3454
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list_item', array(
|
|
1763
|
3455
|
'name' => __pl('list_item'),
|
|
1764
|
3456
|
'group' => 'text',
|
|
1765
|
3457
|
'not_visible' => 1,
|
|
1766
|
|
- 'func' => 'pagelayer_sc_list_item',
|
|
3458
|
+ 'parent' => [PAGELAYER_SC_PREFIX.'_list'],
|
|
1767
|
3459
|
'innerHTML' => 'item',
|
|
1768
|
3460
|
'html' => '<li if="{{item}}" class="pagelayer-list-li">
|
|
1769
|
|
- <a if-ext="{{item_url}}" class="pagelayer-list-url pagelayer-ele-link" href="{{item_url}}">
|
|
3461
|
+ <a if-ext="{{item_url}}" class="pagelayer-list-url pagelayer-ele-link" href="{{{item_url}}}">
|
|
1770
|
3462
|
<span class="pagelayer-list-icon-holder">
|
|
1771
|
|
- <i if="{{show_icon}}" class="pagelayer-list-icon fa fa-{{icon}}"></i>
|
|
3463
|
+ <i if="{{show_icon}}" class="pagelayer-list-icon {{icon}}"></i>
|
|
1772
|
3464
|
<span if="{{item}}" class="pagelayer-list-item">{{item}}</span>
|
|
1773
|
3465
|
</span>
|
|
1774
|
3466
|
</a>
|
|
1775
|
3467
|
</li>',
|
|
@@ -1777,13 +3469,14 @@ |
|
1777
|
3469
|
'item' => array(
|
|
1778
|
3470
|
'type' => 'text',
|
|
1779
|
3471
|
'label' => __pl('list_items_label'),
|
|
1780
|
3472
|
'default' => __pl('list_items_default'),
|
|
3473
|
+ 'edit' => '.pagelayer-list-item',
|
|
1781
|
3474
|
),
|
|
1782
|
3475
|
'item_url' => array(
|
|
1783
|
|
- 'type' => 'text',
|
|
3476
|
+ 'type' => 'link',
|
|
1784
|
3477
|
'label' => __pl('list_item_url_label'),
|
|
1785
|
|
- 'default' => ''
|
|
3478
|
+ 'selector' => '.pagelayer-list-url',
|
|
1786
|
3479
|
),
|
|
1787
|
3480
|
'show_icon' => array(
|
|
1788
|
3481
|
'type' => 'checkbox',
|
|
1789
|
3482
|
'label' => __pl('list_show_icon'),
|
|
@@ -1791,9 +3484,9 @@ |
|
1791
|
3484
|
),
|
|
1792
|
3485
|
'icon' => array(
|
|
1793
|
3486
|
'type' => 'icon',
|
|
1794
|
3487
|
'label' => __pl('list_icon_label'),
|
|
1795
|
|
- 'default' => 'star',
|
|
3488
|
+ 'default' => 'fas fa-star',
|
|
1796
|
3489
|
'req' => array(
|
|
1797
|
3490
|
'show_icon' => 'true'
|
|
1798
|
3491
|
)
|
|
1799
|
3492
|
)
|
|
@@ -1804,9 +3497,8 @@ |
|
1804
|
3497
|
// List
|
|
1805
|
3498
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
|
|
1806
|
3499
|
'name' => __pl('list'),
|
|
1807
|
3500
|
'group' => 'text',
|
|
1808
|
|
- 'func' => 'pagelayer_sc_list',
|
|
1809
|
3501
|
'has_group' => [
|
|
1810
|
3502
|
'section' => 'params',
|
|
1811
|
3503
|
'prop' => 'elements'
|
|
1812
|
3504
|
],
|
|
@@ -1852,10 +3544,10 @@ |
|
1852
|
3544
|
'min' => 0,
|
|
1853
|
3545
|
'step' => 1,
|
|
1854
|
3546
|
'max' => 100,
|
|
1855
|
3547
|
'default' => 10,
|
|
1856
|
|
- 'css' => ['{{element}} .pagelayer-list_item:not(:last-child)' => 'padding-bottom: calc({{val}}px/2);',
|
|
1857
|
|
- '{{element}} .pagelayer-list_item:not(:first-child)' => 'margin-top: calc({{val}}px/2)'],
|
|
3548
|
+ 'screen' => 1,
|
|
3549
|
+ 'css' => ['{{element}} .pagelayer-list-icon-holder' => 'padding-bottom: calc({{val}}px/2); padding-top: calc({{val}}px/2);'],
|
|
1858
|
3550
|
),
|
|
1859
|
3551
|
'side_spacing' => array(
|
|
1860
|
3552
|
'type' => 'slider',
|
|
1861
|
3553
|
'label' => __pl('list_side_spacing_label'),
|
|
@@ -1861,18 +3553,34 @@ |
|
1861
|
3553
|
'label' => __pl('list_side_spacing_label'),
|
|
1862
|
3554
|
'min' => 0,
|
|
1863
|
3555
|
'step' => 1,
|
|
1864
|
3556
|
'max' => 100,
|
|
3557
|
+ 'screen' => 1,
|
|
1865
|
3558
|
'css' => ['{{element}} .pagelayer-list_item' => 'padding-left: {{val}}px; padding-right: {{val}}px;'],
|
|
1866
|
3559
|
),
|
|
1867
|
3560
|
),
|
|
1868
|
3561
|
'text_style' => [
|
|
3562
|
+ 'list_text_state' => array(
|
|
3563
|
+ 'type' => 'radio',
|
|
3564
|
+ 'label' => __pl('state'),
|
|
3565
|
+ 'default' => 'normal',
|
|
3566
|
+ 'list' => [
|
|
3567
|
+ 'normal' => __pl('normal'),
|
|
3568
|
+ 'hover' => __pl('hover')
|
|
3569
|
+ ],
|
|
3570
|
+ ),
|
|
1869
|
3571
|
'list_color' => array(
|
|
1870
|
3572
|
'type' => 'color',
|
|
1871
|
3573
|
'label' => __pl('list_color_label'),
|
|
1872
|
|
- 'default' => '#555555',
|
|
1873
|
|
- 'css' => ['{{element}} li' => 'color:{{val}}'],
|
|
3574
|
+ 'css' => ['{{element}} .pagelayer-list-item' => 'color:{{val}}'],
|
|
3575
|
+ 'show' =>['list_text_state' => 'normal']
|
|
1874
|
3576
|
),
|
|
3577
|
+ 'list_bg' => array(
|
|
3578
|
+ 'type' => 'color',
|
|
3579
|
+ 'label' => __pl('bg_color'),
|
|
3580
|
+ 'css' => ['{{element}} .pagelayer-list-ul > div' => 'background-color:{{val}}'],
|
|
3581
|
+ 'show' =>['list_text_state' => 'normal']
|
|
3582
|
+ ),
|
|
1875
|
3583
|
'list_typo' => array(
|
|
1876
|
3584
|
'type' => 'typography',
|
|
1877
|
3585
|
'label' => __pl('list_typo'),
|
|
1878
|
3586
|
'css' => [
|
|
@@ -1878,8 +3586,9 @@ |
|
1878
|
3586
|
'css' => [
|
|
1879
|
3587
|
'{{element}} li' => '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;',
|
|
1880
|
3588
|
'{{element}} li > a' => '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;'
|
|
1881
|
3589
|
],
|
|
3590
|
+ 'show' =>['list_text_state' => 'normal']
|
|
1882
|
3591
|
),
|
|
1883
|
3592
|
'item_indent' => array(
|
|
1884
|
3593
|
'type' => 'slider',
|
|
1885
|
3594
|
'label' => __pl('list_item_indent_label'),
|
|
@@ -1886,17 +3595,59 @@ |
|
1886
|
3595
|
'min' => 0,
|
|
1887
|
3596
|
'step' => 1,
|
|
1888
|
3597
|
'max' => 100,
|
|
1889
|
3598
|
'default' => 10,
|
|
3599
|
+ 'screen' => 1,
|
|
1890
|
3600
|
'css' => ['{{element}} .pagelayer-list-item' => 'margin-left: {{val}}px;'],
|
|
3601
|
+ 'show' =>['list_text_state' => 'normal']
|
|
1891
|
3602
|
),
|
|
3603
|
+ 'list_hover_delay' => array(
|
|
3604
|
+ 'type' => 'spinner',
|
|
3605
|
+ 'label' => __pl('delay'),
|
|
3606
|
+ 'min' => 0,
|
|
3607
|
+ 'step' => 100,
|
|
3608
|
+ 'max' => 5000,
|
|
3609
|
+ 'css' => ['{{element}} .pagelayer-list-item, {{element}} .pagelayer-list-ul > div' => 'transition: all {{val}}ms;'],
|
|
3610
|
+ 'show' =>['list_text_state' => 'hover']
|
|
3611
|
+ ),
|
|
3612
|
+ 'list_color_hover' => array(
|
|
3613
|
+ 'type' => 'color',
|
|
3614
|
+ 'label' => __pl('list_color_label'),
|
|
3615
|
+ 'css' => ['{{element}} .pagelayer-list-ul > div:hover .pagelayer-list-item' => 'color:{{val}}'],
|
|
3616
|
+ 'show' =>['list_text_state' => 'hover']
|
|
3617
|
+ ),
|
|
3618
|
+ 'list_bg_hover' => array(
|
|
3619
|
+ 'type' => 'color',
|
|
3620
|
+ 'label' => __pl('bg_color'),
|
|
3621
|
+ 'css' => ['{{element}} .pagelayer-list-ul > div:hover' => 'background-color:{{val}}'],
|
|
3622
|
+ 'show' =>['list_text_state' => 'hover']
|
|
3623
|
+ ),
|
|
3624
|
+ 'list_typo_hover' => array(
|
|
3625
|
+ 'type' => 'typography',
|
|
3626
|
+ 'label' => __pl('list_typo'),
|
|
3627
|
+ 'css' => [
|
|
3628
|
+ '{{element}} .pagelayer-list-ul > div:hover li' => '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;',
|
|
3629
|
+ '{{element}} .pagelayer-list-ul > div:hover li > a' => '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;'
|
|
3630
|
+ ],
|
|
3631
|
+ 'show' =>['list_text_state' => 'hover']
|
|
3632
|
+ ),
|
|
1892
|
3633
|
],
|
|
1893
|
3634
|
'icon_style' => [
|
|
3635
|
+ 'list_icon_state' => array(
|
|
3636
|
+ 'type' => 'radio',
|
|
3637
|
+ 'label' => __pl('state'),
|
|
3638
|
+ 'default' => 'normal',
|
|
3639
|
+ 'list' => [
|
|
3640
|
+ 'normal' => __pl('normal'),
|
|
3641
|
+ 'hover' => __pl('hover')
|
|
3642
|
+ ],
|
|
3643
|
+ ),
|
|
1894
|
3644
|
'icon_color' => array(
|
|
1895
|
3645
|
'type' => 'color',
|
|
1896
|
3646
|
'label' => __pl('list_icon_color_label'),
|
|
1897
|
|
- 'default' => '#3E8EF7',
|
|
1898
|
|
- 'css' => ['{{element}} i' => 'color:{{val}}'],
|
|
3647
|
+ 'default' => '#0986c0',
|
|
3648
|
+ 'css' => ['{{element}} .pagelayer-list-icon' => 'color:{{val}}'],
|
|
3649
|
+ 'show' => ['list_icon_state' => 'normal'],
|
|
1899
|
3650
|
),
|
|
1900
|
3651
|
'icon_size' => array(
|
|
1901
|
3652
|
'type' => 'slider',
|
|
1902
|
3653
|
'label' => __pl('list_icon_size_label'),
|
|
@@ -1902,17 +3653,43 @@ |
|
1902
|
3653
|
'label' => __pl('list_icon_size_label'),
|
|
1903
|
3654
|
'min' => 0,
|
|
1904
|
3655
|
'step' => 1,
|
|
1905
|
3656
|
'max' => 150,
|
|
1906
|
|
- 'css' => ['{{element}} i' => 'font-size: {{val}}px'],
|
|
3657
|
+ 'screen' => 1,
|
|
3658
|
+ 'css' => ['{{element}} .pagelayer-list-icon' => 'font-size: {{val}}px'],
|
|
3659
|
+ 'show' => ['list_icon_state' => 'normal'],
|
|
1907
|
3660
|
),
|
|
3661
|
+ 'icon_hover_delay' => array(
|
|
3662
|
+ 'type' => 'spinner',
|
|
3663
|
+ 'label' => __pl('delay'),
|
|
3664
|
+ 'min' => 0,
|
|
3665
|
+ 'step' => 100,
|
|
3666
|
+ 'max' => 5000,
|
|
3667
|
+ 'css' => ['{{element}} .pagelayer-list-icon' => 'transition: all {{val}}ms;'],
|
|
3668
|
+ 'show' =>['list_icon_state' => 'hover']
|
|
3669
|
+ ),
|
|
3670
|
+ 'icon_color_hover' => array(
|
|
3671
|
+ 'type' => 'color',
|
|
3672
|
+ 'label' => __pl('list_icon_color_label'),
|
|
3673
|
+ 'css' => ['{{element}} .pagelayer-list-ul > div:hover .pagelayer-list-icon' => 'color:{{val}}'],
|
|
3674
|
+ 'show' => ['list_icon_state' => 'hover'],
|
|
3675
|
+ ),
|
|
3676
|
+ 'icon_size_hover' => array(
|
|
3677
|
+ 'type' => 'slider',
|
|
3678
|
+ 'label' => __pl('list_icon_size_label'),
|
|
3679
|
+ 'min' => 0,
|
|
3680
|
+ 'step' => 1,
|
|
3681
|
+ 'max' => 150,
|
|
3682
|
+ 'screen' => 1,
|
|
3683
|
+ 'css' => ['{{element}} .pagelayer-list-ul > div:hover .pagelayer-list-icon' => 'font-size: {{val}}px'],
|
|
3684
|
+ 'show' => ['list_icon_state' => 'hover'],
|
|
3685
|
+ ),
|
|
1908
|
3686
|
],
|
|
1909
|
3687
|
'divider' => [
|
|
1910
|
3688
|
'icon_border_type' => array(
|
|
1911
|
3689
|
'type' => 'select',
|
|
1912
|
3690
|
'label' => __pl('type'),
|
|
1913
|
|
- 'css' => ['{{element}} .pagelayer-list_item:not(:last-child)' => 'border-bottom-style: {{val}};',
|
|
1914
|
|
- '{{element}} .pagelayer-ele-wrap:not(:last-child) .pagelayer-list_item' => 'border-bottom-style: {{val}};'],
|
|
3691
|
+ 'css' => ['{{element}} .pagelayer-list-ul > div:not(:last-child)' => 'border-bottom-style: {{val}};'],
|
|
1915
|
3692
|
'default' => 'solid',
|
|
1916
|
3693
|
'list' => [
|
|
1917
|
3694
|
'' => __pl('none'),
|
|
1918
|
3695
|
'solid' => __pl('solid'),
|
|
@@ -1925,9 +3702,9 @@ |
|
1925
|
3702
|
'icon_border_color' => array(
|
|
1926
|
3703
|
'type' => 'color',
|
|
1927
|
3704
|
'label' => __pl('color'),
|
|
1928
|
3705
|
'default' => '#cbd2dc78',
|
|
1929
|
|
- 'css' => ['{{element}} .pagelayer-list_item' => 'border-bottom-color: {{val}};'],
|
|
3706
|
+ 'css' => ['{{element}} .pagelayer-list-ul > div' => 'border-bottom-color: {{val}};'],
|
|
1930
|
3707
|
'req' => array(
|
|
1931
|
3708
|
'!icon_border_type' => ''
|
|
1932
|
3709
|
),
|
|
1933
|
3710
|
),
|
|
@@ -1937,9 +3714,10 @@ |
|
1937
|
3714
|
'min' => 0,
|
|
1938
|
3715
|
'step' => 1,
|
|
1939
|
3716
|
'max' => 100,
|
|
1940
|
3717
|
'default' => 3,
|
|
1941
|
|
- 'css' => ['{{element}} .pagelayer-list_item' => 'border-bottom-width: {{val[0]}}px;'],
|
|
3718
|
+ 'screen' => 1,
|
|
3719
|
+ 'css' => ['{{element}} .pagelayer-list-ul > div' => 'border-bottom-width: {{val}}px;'],
|
|
1942
|
3720
|
'req' => [
|
|
1943
|
3721
|
'!icon_border_type' => ''
|
|
1944
|
3722
|
]
|
|
1945
|
3723
|
),
|
|
@@ -1955,12 +3733,11 @@ |
|
1955
|
3733
|
// Icon
|
|
1956
|
3734
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
|
|
1957
|
3735
|
'name' => __pl('icon'),
|
|
1958
|
3736
|
'group' => 'text',
|
|
1959
|
|
- 'func' => 'pagelayer_sc_icon',
|
|
1960
|
3737
|
'html' => '<div class="pagelayer-icon-holder">
|
|
1961
|
|
- <a if-ext="{{link}}" class="pagelayer-ele-link" href="{{link}}">
|
|
1962
|
|
- <i class="fa fa-{{icon}} {{bg_shape}} {{icon_size}} pagelayer-animation-{{anim_hover}}"></i>
|
|
3738
|
+ <a if-ext="{{link}}" class="pagelayer-ele-link" href="{{{link}}}">
|
|
3739
|
+ <i class="{{icon}} {{bg_shape}} {{icon_size}} pagelayer-animation-{{anim_hover}}"></i>
|
|
1963
|
3740
|
</a>
|
|
1964
|
3741
|
</div>',
|
|
1965
|
3742
|
'params' => array(
|
|
1966
|
3743
|
'icon' => array(
|
|
@@ -1965,14 +3742,15 @@ |
|
1965
|
3742
|
'params' => array(
|
|
1966
|
3743
|
'icon' => array(
|
|
1967
|
3744
|
'type' => 'icon',
|
|
1968
|
3745
|
'label' => __pl('list_icon_label'),
|
|
1969
|
|
- 'default' => 'star',
|
|
3746
|
+ 'default' => 'fas fa-star',
|
|
1970
|
3747
|
),
|
|
1971
|
3748
|
'icon_background_size' => array(
|
|
1972
|
3749
|
'type' => 'spinner',
|
|
1973
|
3750
|
'label' => __pl('service_box_icon_background_size'),
|
|
1974
|
3751
|
'default' => 10,
|
|
3752
|
+ 'screen' => 1,
|
|
1975
|
3753
|
'css' => ['{{element}} i' => 'padding: calc(0.5em + {{val}}px);'],
|
|
1976
|
3754
|
'min' => 1,
|
|
1977
|
3755
|
'max' => 500,
|
|
1978
|
3756
|
'step' => 1,
|
|
@@ -1979,19 +3757,15 @@ |
|
1979
|
3757
|
),
|
|
1980
|
3758
|
'link' => array(
|
|
1981
|
3759
|
'type' => 'link',
|
|
1982
|
3760
|
'label' => __pl('icon_link_field_label'),
|
|
1983
|
|
- 'default' => ''
|
|
3761
|
+ 'selector' => '.pagelayer-ele-link'
|
|
1984
|
3762
|
),
|
|
1985
|
|
- 'target' => array(
|
|
1986
|
|
- 'type' => 'checkbox',
|
|
1987
|
|
- 'label' => __pl('open_link_in_new_window'),
|
|
1988
|
|
- 'addAttr' => ['{{element}} a' => 'target="_blank"']
|
|
1989
|
|
- ),
|
|
1990
|
3763
|
'icon_alignment' => array(
|
|
1991
|
3764
|
'type' => 'radio',
|
|
1992
|
3765
|
'label' => __pl('alignment'),
|
|
1993
|
3766
|
'default' => 'center',
|
|
3767
|
+ 'screen' => 1,
|
|
1994
|
3768
|
'css' => 'text-align: {{val}}',
|
|
1995
|
3769
|
'list' => array(
|
|
1996
|
3770
|
'left' => __pl('left'),
|
|
1997
|
3771
|
'center' => __pl('center'),
|
|
@@ -2013,9 +3787,9 @@ |
|
2013
|
3787
|
'type' => 'color',
|
|
2014
|
3788
|
'label' => __pl('service_box_icon_color_label'),
|
|
2015
|
3789
|
'css' => ['{{element}} i' => 'height: 1em; width: 1em; position: relative; color: {{val}};',
|
|
2016
|
3790
|
'{{element}} i:before' => 'position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);'],
|
|
2017
|
|
- 'default' => '#3e8ef7',
|
|
3791
|
+ 'default' => '#0986c0',
|
|
2018
|
3792
|
'show' => array(
|
|
2019
|
3793
|
'icon_hover' => ''
|
|
2020
|
3794
|
),
|
|
2021
|
3795
|
),
|
|
@@ -2056,8 +3830,9 @@ |
|
2056
|
3830
|
'min' => 1,
|
|
2057
|
3831
|
'step' => 1,
|
|
2058
|
3832
|
'max' => 500,
|
|
2059
|
3833
|
'default' => 26,
|
|
3834
|
+ 'screen' => 1,
|
|
2060
|
3835
|
'css' => ['{{element}} i' => 'font-size: {{val}}px'],
|
|
2061
|
3836
|
'req' => array(
|
|
2062
|
3837
|
'icon_size' => 'pagelayer-icon-custom'
|
|
2063
|
3838
|
),
|
|
@@ -2069,15 +3844,30 @@ |
|
2069
|
3844
|
'type' => 'spinner',
|
|
2070
|
3845
|
'label' => __pl('service_box_icon_rotate'),
|
|
2071
|
3846
|
'default' => 0,
|
|
2072
|
3847
|
'css' => ['{{element}} i' => 'transform: rotate({{val}}deg)'],
|
|
2073
|
|
- 'min' => 0,
|
|
3848
|
+ 'min' => -360,
|
|
2074
|
3849
|
'max' => 360,
|
|
2075
|
3850
|
'step' => 1,
|
|
3851
|
+ 'screen' => 1,
|
|
2076
|
3852
|
'show' => array(
|
|
2077
|
3853
|
'icon_hover' => ''
|
|
2078
|
3854
|
),
|
|
2079
|
3855
|
),
|
|
3856
|
+ 'icon_bg_rotate' => array(
|
|
3857
|
+ 'type' => 'spinner',
|
|
3858
|
+ 'label' => __pl('rotate_icon'),
|
|
3859
|
+ 'default' => 0,
|
|
3860
|
+ 'css' => ['{{element}} i:before' => 'transform: translate(-50%, -50%) rotate({{val}}deg)'],
|
|
3861
|
+ 'min' => -360,
|
|
3862
|
+ 'max' => 360,
|
|
3863
|
+ 'step' => 1,
|
|
3864
|
+ 'screen' => 1,
|
|
3865
|
+ 'show' => array(
|
|
3866
|
+ 'icon_hover' => ''
|
|
3867
|
+ ),
|
|
3868
|
+ 'req' => [ '!bg_shape' => '']
|
|
3869
|
+ ),
|
|
2080
|
3870
|
'bg_color' => array(
|
|
2081
|
3871
|
'type' => 'color',
|
|
2082
|
3872
|
'label' => __pl('service_box_icon_background_color_label'),
|
|
2083
|
3873
|
'default' => '#42414f',
|
|
@@ -2095,9 +3885,11 @@ |
|
2095
|
3885
|
'min' => 0,
|
|
2096
|
3886
|
'step' => 100,
|
|
2097
|
3887
|
'max' => 5000,
|
|
2098
|
3888
|
'default' => 400,
|
|
2099
|
|
- 'css' => ['{{element}} i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
|
|
3889
|
+ 'screen' => 1,
|
|
3890
|
+ 'css' => ['{{element}} i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;',
|
|
3891
|
+ '{{element}} i:hover:before' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
|
|
2100
|
3892
|
'show' => array(
|
|
2101
|
3893
|
'icon_hover' => 'hover'
|
|
2102
|
3894
|
),
|
|
2103
|
3895
|
),
|
|
@@ -2116,8 +3908,9 @@ |
|
2116
|
3908
|
'desc' => __pl('service_box_icon_custom_size_desc'),
|
|
2117
|
3909
|
'min' => 1,
|
|
2118
|
3910
|
'step' => 1,
|
|
2119
|
3911
|
'max' => 500,
|
|
3912
|
+ 'screen' => 1,
|
|
2120
|
3913
|
'css' => ['{{element}} i:hover' => 'font-size: {{val}}px'],
|
|
2121
|
3914
|
'req' => array(
|
|
2122
|
3915
|
'icon_size' => 'pagelayer-icon-custom'
|
|
2123
|
3916
|
),
|
|
@@ -2168,12 +3961,27 @@ |
|
2168
|
3961
|
'css' => ['{{element}} i:hover' => 'transform: rotate({{val}}deg)'],
|
|
2169
|
3962
|
'min' => 0,
|
|
2170
|
3963
|
'max' => 360,
|
|
2171
|
3964
|
'step' => 1,
|
|
3965
|
+ 'screen' => 1,
|
|
2172
|
3966
|
'show' => array(
|
|
2173
|
3967
|
'icon_hover' => 'hover'
|
|
2174
|
3968
|
),
|
|
3969
|
+ 'req' => [ '!bg_shape' => '']
|
|
2175
|
3970
|
),
|
|
3971
|
+ 'icon_bg_rotate_hover' => array(
|
|
3972
|
+ 'type' => 'spinner',
|
|
3973
|
+ 'label' => __pl('rotate_icon'),
|
|
3974
|
+ 'default' => 0,
|
|
3975
|
+ 'css' => ['{{element}} i:hover:before' => 'transform: translate(-50%, -50%) rotate({{val}}deg)'],
|
|
3976
|
+ 'min' => 0,
|
|
3977
|
+ 'max' => 360,
|
|
3978
|
+ 'step' => 1,
|
|
3979
|
+ 'screen' => 1,
|
|
3980
|
+ 'show' => array(
|
|
3981
|
+ 'icon_hover' => 'hover'
|
|
3982
|
+ ),
|
|
3983
|
+ ),
|
|
2176
|
3984
|
'bg_color_hover' => array(
|
|
2177
|
3985
|
'type' => 'color',
|
|
2178
|
3986
|
'label' => __pl('service_box_icon_background_color_label'),
|
|
2179
|
3987
|
'css' => ['{{element}} i:hover' => 'background-color: {{val}};'],
|
|
@@ -2190,8 +3998,9 @@ |
|
2190
|
3998
|
'css' => ['{{element}} i:hover' => 'padding: calc(0.5em + {{val}}px)'],
|
|
2191
|
3999
|
'min' => 1,
|
|
2192
|
4000
|
'max' => 500,
|
|
2193
|
4001
|
'step' => 1,
|
|
4002
|
+ 'screen' => 1,
|
|
2194
|
4003
|
'req' => array(
|
|
2195
|
4004
|
'!bg_shape' => ''
|
|
2196
|
4005
|
),
|
|
2197
|
4006
|
'show' => array(
|
|
@@ -2199,9 +4008,9 @@ |
|
2199
|
4008
|
),
|
|
2200
|
4009
|
)
|
|
2201
|
4010
|
],
|
|
2202
|
4011
|
'border_style' => [
|
|
2203
|
|
- 'border_hover' => array(
|
|
4012
|
+ 'icon_border_hover' => array(
|
|
2204
|
4013
|
'type' => 'radio',
|
|
2205
|
4014
|
'label' => '',
|
|
2206
|
4015
|
'default' => '',
|
|
2207
|
4016
|
'list' => array(
|
|
@@ -2221,43 +4030,45 @@ |
|
2221
|
4030
|
'dashed' => __pl('dashed'),
|
|
2222
|
4031
|
'groove' => __pl('groove'),
|
|
2223
|
4032
|
],
|
|
2224
|
4033
|
'show' => array(
|
|
2225
|
|
- 'border_hover' => ''
|
|
4034
|
+ 'icon_border_hover' => ''
|
|
2226
|
4035
|
),
|
|
2227
|
4036
|
),
|
|
2228
|
4037
|
'icon_border_color' => array(
|
|
2229
|
4038
|
'type' => 'color',
|
|
2230
|
4039
|
'label' => __pl('service_box_icon_border_color_label'),
|
|
2231
|
|
- 'default' => '#3e8ef7',
|
|
4040
|
+ 'default' => '#0986c0',
|
|
2232
|
4041
|
'css' => ['{{element}} i' => 'border-color: {{val}};'],
|
|
2233
|
4042
|
'req' => array(
|
|
2234
|
4043
|
'!icon_border_type' => ''
|
|
2235
|
4044
|
),
|
|
2236
|
4045
|
'show' => array(
|
|
2237
|
|
- 'border_hover' => ''
|
|
4046
|
+ 'icon_border_hover' => ''
|
|
2238
|
4047
|
),
|
|
2239
|
4048
|
),
|
|
2240
|
4049
|
'icon_border_width' => array(
|
|
2241
|
4050
|
'type' => 'padding',
|
|
2242
|
4051
|
'label' => __pl('border_width'),
|
|
4052
|
+ 'screen' => 1,
|
|
2243
|
4053
|
'css' => ['{{element}} 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'],
|
|
2244
|
4054
|
'req' => [
|
|
2245
|
4055
|
'!icon_border_type' => ''
|
|
2246
|
4056
|
],
|
|
2247
|
4057
|
'show' => array(
|
|
2248
|
|
- 'border_hover' => ''
|
|
4058
|
+ 'icon_border_hover' => ''
|
|
2249
|
4059
|
),
|
|
2250
|
4060
|
),
|
|
2251
|
4061
|
'icon_border_radius' => array(
|
|
2252
|
4062
|
'type' => 'padding',
|
|
2253
|
4063
|
'label' => __pl('border_radius'),
|
|
4064
|
+ 'screen' => 1,
|
|
2254
|
4065
|
'css' => ['{{element}} 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;'],
|
|
2255
|
4066
|
'req' => array(
|
|
2256
|
4067
|
'!icon_border_type' => ''
|
|
2257
|
4068
|
),
|
|
2258
|
4069
|
'show' => array(
|
|
2259
|
|
- 'border_hover' => ''
|
|
4070
|
+ 'icon_border_hover' => ''
|
|
2260
|
4071
|
),
|
|
2261
|
4072
|
),
|
|
2262
|
4073
|
'icon_border_type_hover' => array(
|
|
2263
|
4074
|
'type' => 'select',
|
|
@@ -2271,9 +4082,9 @@ |
|
2271
|
4082
|
'dashed' => __pl('dashed'),
|
|
2272
|
4083
|
'groove' => __pl('groove'),
|
|
2273
|
4084
|
],
|
|
2274
|
4085
|
'show' => array(
|
|
2275
|
|
- 'border_hover' => 'hover'
|
|
4086
|
+ 'icon_border_hover' => 'hover'
|
|
2276
|
4087
|
),
|
|
2277
|
4088
|
),
|
|
2278
|
4089
|
'icon_border_color_hover' => array(
|
|
2279
|
4090
|
'type' => 'color',
|
|
@@ -2278,36 +4089,38 @@ |
|
2278
|
4089
|
'icon_border_color_hover' => array(
|
|
2279
|
4090
|
'type' => 'color',
|
|
2280
|
4091
|
'label' => __pl('service_box_icon_border_color_label'),
|
|
2281
|
4092
|
'css' => ['{{element}} i:hover' => 'border-color: {{val}};'],
|
|
2282
|
|
- 'default' => '#3e8ef7',
|
|
4093
|
+ 'default' => '#0986c0',
|
|
2283
|
4094
|
'req' => array(
|
|
2284
|
|
- '!icon_border_type' => ''
|
|
4095
|
+ '!icon_border_type_hover' => ''
|
|
2285
|
4096
|
),
|
|
2286
|
4097
|
'show' => array(
|
|
2287
|
|
- 'border_hover' => 'hover'
|
|
4098
|
+ 'icon_border_hover' => 'hover'
|
|
2288
|
4099
|
),
|
|
2289
|
4100
|
),
|
|
2290
|
4101
|
'icon_border_width_hover' => array(
|
|
2291
|
4102
|
'type' => 'padding',
|
|
2292
|
4103
|
'label' => __pl('border_width'),
|
|
4104
|
+ 'screen' => 1,
|
|
2293
|
4105
|
'css' => ['{{element}} i: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'],
|
|
2294
|
4106
|
'req' => [
|
|
2295
|
|
- '!icon_border_type' => ''
|
|
4107
|
+ '!icon_border_type_hover' => ''
|
|
2296
|
4108
|
],
|
|
2297
|
4109
|
'show' => array(
|
|
2298
|
|
- 'border_hover' => 'hover'
|
|
4110
|
+ 'icon_border_hover' => 'hover'
|
|
2299
|
4111
|
),
|
|
2300
|
4112
|
),
|
|
2301
|
4113
|
'icon_border_radius_hover' => array(
|
|
2302
|
4114
|
'type' => 'padding',
|
|
2303
|
4115
|
'label' => __pl('border_radius'),
|
|
4116
|
+ 'screen' => 1,
|
|
2304
|
4117
|
'css' => ['{{element}} i: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;'],
|
|
2305
|
4118
|
'req' => array(
|
|
2306
|
|
- '!icon_border_type' => ''
|
|
4119
|
+ '!icon_border_type_hover' => ''
|
|
2307
|
4120
|
),
|
|
2308
|
4121
|
'show' => array(
|
|
2309
|
|
- 'border_hover' => 'hover'
|
|
4122
|
+ 'icon_border_hover' => 'hover'
|
|
2310
|
4123
|
),
|
|
2311
|
4124
|
),
|
|
2312
|
4125
|
],
|
|
2313
|
4126
|
'styles' => [
|
|
@@ -2320,20 +4133,19 @@ |
|
2320
|
4133
|
// Badge
|
|
2321
|
4134
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_badge', array(
|
|
2322
|
4135
|
'name' => __pl('Badge'),
|
|
2323
|
4136
|
'group' => 'text',
|
|
2324
|
|
- 'func' => 'pagelayer_sc_badge',
|
|
2325
|
4137
|
'innerHTML' => 'title',
|
|
2326
|
4138
|
'html' => '<div class="pagelayer-badge-span">
|
|
2327
|
4139
|
<span if="{{text}}" class="pagelayer-badge-text">{{text}}</span>
|
|
2328
|
|
- <a if-ext="{{badge_url}}" class="pagelayer-ele-link" href="{{badge_url}}">
|
|
4140
|
+ <a if-ext="{{badge_url}}" class="pagelayer-ele-link" href="{{{badge_url}}}">
|
|
2329
|
4141
|
<span if="{{badge_text}}" class="pagelayer-badge-title pagelayer-badge-details pagelayer-badge-{{badge_notification_type}} pagelayer-badge-{{badge_style_type}}">{{badge_text}}</span>
|
|
2330
|
4142
|
</a>
|
|
2331
|
4143
|
</div>
|
|
2332
|
|
- <a if-ext="{{badge_url}}" class="pagelayer-ele-link" href="{{badge_url}}">
|
|
2333
|
|
- <button class="pagelayer-badge-title pagelayer-badge-btn pagelayer-btn-{{badge_btn_type}}">
|
|
4144
|
+ <a if-ext="{{badge_url}}" class="pagelayer-ele-link" href="{{{badge_url}}}">
|
|
4145
|
+ <button class="pagelayer-badge-btn pagelayer-btn-{{badge_btn_type}}">
|
|
2334
|
4146
|
<span if="{{text}}" class="pagelayer-badge-text">{{text}}</span>
|
|
2335
|
|
- <span if="{{badge_text}}" class="pagelayer-badge-details pagelayer-badge-{{badge_notification_type}} pagelayer-badge-{{badge_style_type}}">{{badge_text}}</span>
|
|
4147
|
+ <span if="{{badge_text}}" class="pagelayer-badge-title pagelayer-badge-details pagelayer-badge-{{badge_notification_type}} pagelayer-badge-{{badge_style_type}}">{{badge_text}}</span>
|
|
2336
|
4148
|
</button>
|
|
2337
|
4149
|
</a>',
|
|
2338
|
4150
|
'params' => array(
|
|
2339
|
4151
|
'badge_text' => array(
|
|
@@ -2338,14 +4150,15 @@ |
|
2338
|
4150
|
'params' => array(
|
|
2339
|
4151
|
'badge_text' => array(
|
|
2340
|
4152
|
'type' => 'text',
|
|
2341
|
4153
|
'label' => __pl('badge_text'),
|
|
2342
|
|
- 'default' => 'Badge',
|
|
4154
|
+ 'default' => 'Badge',
|
|
4155
|
+ 'edit' => '.pagelayer-badge-title',
|
|
2343
|
4156
|
),
|
|
2344
|
4157
|
'badge_url' => array(
|
|
2345
|
4158
|
'type' => 'link',
|
|
2346
|
4159
|
'label' => __pl('badge_url_label'),
|
|
2347
|
|
- 'default' => '',
|
|
4160
|
+ 'selector' => '.pagelayer-ele-link',
|
|
2348
|
4161
|
),
|
|
2349
|
4162
|
'badge_notification_type' => array(
|
|
2350
|
4163
|
'type' => 'select',
|
|
2351
|
4164
|
'label' => __pl('badge_notification_type'),
|
|
@@ -2361,8 +4174,46 @@ |
|
2361
|
4174
|
'dark' => __pl('Dark'),
|
|
2362
|
4175
|
'custom' => __pl('Custom'),
|
|
2363
|
4176
|
],
|
|
2364
|
4177
|
),
|
|
4178
|
+ 'custom_badge_state' => array(
|
|
4179
|
+ 'type' => 'radio',
|
|
4180
|
+ 'label' => __pl('state'),
|
|
4181
|
+ 'default' => '',
|
|
4182
|
+ 'list' => array(
|
|
4183
|
+ '' => __pl('normal'),
|
|
4184
|
+ 'hover' => __pl('hover'),
|
|
4185
|
+ ),
|
|
4186
|
+ 'req' => ['badge_notification_type' => 'custom'],
|
|
4187
|
+ ),
|
|
4188
|
+ 'custom_badge_text_color' => array(
|
|
4189
|
+ 'type' => 'color',
|
|
4190
|
+ 'label' => __pl('badge_text_color_label'),
|
|
4191
|
+ 'css' => ['{{element}} .pagelayer-badge-title' => 'color:{{val}} !important;'],
|
|
4192
|
+ 'show' => ['custom_badge_state' => ''],
|
|
4193
|
+ 'req' => ['badge_notification_type' => 'custom'],
|
|
4194
|
+ ),
|
|
4195
|
+ 'custom_badge_bg_color' => array(
|
|
4196
|
+ 'type' => 'color',
|
|
4197
|
+ 'label' => __pl('bg_color'),
|
|
4198
|
+ 'css' => ['{{element}} .pagelayer-badge-title' => 'background-color:{{val}} !important;'],
|
|
4199
|
+ 'show' => ['custom_badge_state' => ''],
|
|
4200
|
+ 'req' => ['badge_notification_type' => 'custom'],
|
|
4201
|
+ ),
|
|
4202
|
+ 'custom_badge_text_color_hover' => array(
|
|
4203
|
+ 'type' => 'color',
|
|
4204
|
+ 'label' => __pl('badge_text_color_label'),
|
|
4205
|
+ 'css' => ['{{element}} .pagelayer-badge-title:hover' => 'color:{{val}} !important;'],
|
|
4206
|
+ 'show' => ['custom_badge_state' => 'hover'],
|
|
4207
|
+ 'req' => ['badge_notification_type' => 'custom'],
|
|
4208
|
+ ),
|
|
4209
|
+ 'custom_badge_bg_color_hover' => array(
|
|
4210
|
+ 'type' => 'color',
|
|
4211
|
+ 'label' => __pl('bg_color'),
|
|
4212
|
+ 'css' => ['{{element}} .pagelayer-badge-title:hover' => 'background-color:{{val}} !important;'],
|
|
4213
|
+ 'show' => ['custom_badge_state' => 'hover'],
|
|
4214
|
+ 'req' => ['badge_notification_type' => 'custom'],
|
|
4215
|
+ ),
|
|
2365
|
4216
|
'badge_style_type' => array(
|
|
2366
|
4217
|
'type' => 'select',
|
|
2367
|
4218
|
'label' => __pl('badge_style'),
|
|
2368
|
4219
|
'default' => 'normal',
|
|
@@ -2373,8 +4224,9 @@ |
|
2373
|
4224
|
),
|
|
2374
|
4225
|
'badge_vertical_align' => array(
|
|
2375
|
4226
|
'type' => 'select',
|
|
2376
|
4227
|
'label' => __pl('badge_vertical_align'),
|
|
4228
|
+ 'screen' => 1,
|
|
2377
|
4229
|
'css' => ['{{element}} .pagelayer-badge-details' => 'vertical-align:{{val}};'],
|
|
2378
|
4230
|
'list' => [
|
|
2379
|
4231
|
'' => __pl('none'),
|
|
2380
|
4232
|
'top' => __pl('Top'),
|
|
@@ -2389,15 +4241,32 @@ |
|
2389
|
4241
|
'text' => array(
|
|
2390
|
4242
|
'type' => 'text',
|
|
2391
|
4243
|
'label' => __pl('text'),
|
|
2392
|
4244
|
'default' => 'Your custom text',
|
|
4245
|
+ 'edit' => '.pagelayer-badge-text',
|
|
2393
|
4246
|
),
|
|
4247
|
+ 'text_state' => array(
|
|
4248
|
+ 'type' => 'radio',
|
|
4249
|
+ 'label' => __pl('state'),
|
|
4250
|
+ 'default' => '',
|
|
4251
|
+ 'list' => array(
|
|
4252
|
+ '' => __pl('normal'),
|
|
4253
|
+ 'hover' => __pl('hover'),
|
|
4254
|
+ )
|
|
4255
|
+ ),
|
|
2394
|
4256
|
'text_color' => array(
|
|
2395
|
4257
|
'type' => 'color',
|
|
2396
|
4258
|
'label' => __pl('badge_text_color_label'),
|
|
2397
|
4259
|
'default' => '#000000',
|
|
2398
|
|
- 'css' => ['{{element}} .pagelayer-badge-text' => 'color:{{val}};'],
|
|
4260
|
+ 'css' => ['{{element}} .pagelayer-badge-text' => 'color:{{val}};'],
|
|
4261
|
+ 'show' => ['text_state' => '']
|
|
2399
|
4262
|
),
|
|
4263
|
+ 'text_color_hover' => array(
|
|
4264
|
+ 'type' => 'color',
|
|
4265
|
+ 'label' => __pl('badge_text_color_label'),
|
|
4266
|
+ 'css' => ['{{element}} .pagelayer-badge-text:hover' => 'color:{{val}};'],
|
|
4267
|
+ 'show' => ['text_state' => 'hover']
|
|
4268
|
+ ),
|
|
2400
|
4269
|
'text_style' => array(
|
|
2401
|
4270
|
'type' => 'typography',
|
|
2402
|
4271
|
'label' => __pl('text_size'),
|
|
2403
|
4272
|
'default' => ',25,,400,,,,,,,',
|
|
@@ -2416,15 +4285,16 @@ |
|
2416
|
4285
|
'type' => 'slider',
|
|
2417
|
4286
|
'label' => __pl('badge_spacing'),
|
|
2418
|
4287
|
'default' => 2,
|
|
2419
|
4288
|
'min' => 1,
|
|
2420
|
|
- 'max' => 100,
|
|
4289
|
+ 'max' => 100,
|
|
4290
|
+ 'screen' => 1,
|
|
2421
|
4291
|
'css' => ['{{element}} .pagelayer-badge-details' => 'margin-left:{{val}}px;'],
|
|
2422
|
4292
|
),
|
|
2423
|
4293
|
'badge_background_color' => array(
|
|
2424
|
4294
|
'type' => 'color',
|
|
2425
|
4295
|
'label' => __pl('badge_text_background_label'),
|
|
2426
|
|
- 'default' => '#4982eeff',
|
|
4296
|
+ 'default' => '#4982ee',
|
|
2427
|
4297
|
'css' => ['{{element}} .pagelayer-badge-custom' => 'background-color:{{val}};'],
|
|
2428
|
4298
|
'req' => ['badge_notification_type' => 'custom'],
|
|
2429
|
4299
|
),
|
|
2430
|
4300
|
'badge_vspacing' => array(
|
|
@@ -2432,8 +4302,9 @@ |
|
2432
|
4302
|
'label' => __pl('quote_vertical_padding'),
|
|
2433
|
4303
|
'default' => 2,
|
|
2434
|
4304
|
'min' => 0,
|
|
2435
|
4305
|
'max' => 100,
|
|
4306
|
+ 'screen' => 1,
|
|
2436
|
4307
|
'css' => ['{{element}} .pagelayer-badge-details' => 'padding-top:{{val}}px; padding-bottom:{{val}}px;'],
|
|
2437
|
4308
|
),
|
|
2438
|
4309
|
'badge_hspacing' => array(
|
|
2439
|
4310
|
'type' => 'slider',
|
|
@@ -2439,9 +4310,10 @@ |
|
2439
|
4310
|
'type' => 'slider',
|
|
2440
|
4311
|
'label' => __pl('horizontal_spacing'),
|
|
2441
|
4312
|
'default' => 2,
|
|
2442
|
4313
|
'min' => 0,
|
|
2443
|
|
- 'max' => 100,
|
|
4314
|
+ 'max' => 100,
|
|
4315
|
+ 'screen' => 1,
|
|
2444
|
4316
|
'css' => ['{{element}} .pagelayer-badge-details' => 'padding-left:{{val}}px; padding-right:{{val}}px;'],
|
|
2445
|
4317
|
),
|
|
2446
|
4318
|
'badge_text_style' => array(
|
|
2447
|
4319
|
'type' => 'typography',
|
|
@@ -2492,9 +4364,9 @@ |
|
2492
|
4364
|
),
|
|
2493
|
4365
|
'badge_btn_background_color' => array(
|
|
2494
|
4366
|
'type' => 'color',
|
|
2495
|
4367
|
'label' => __pl('badge_btn_background_label'),
|
|
2496
|
|
- 'default' => '#4982eeff',
|
|
4368
|
+ 'default' => '#4982ee',
|
|
2497
|
4369
|
'css' => ['{{element}} .pagelayer-badge-btn' => 'background-color:{{val}};'],
|
|
2498
|
4370
|
'req' => [
|
|
2499
|
4371
|
'badge_btn_type' => 'custom',
|
|
2500
|
4372
|
'badge_button' => 'true',
|
|
@@ -2503,9 +4375,9 @@ |
|
2503
|
4375
|
),
|
|
2504
|
4376
|
'badge_btn_background_color_hover' => array(
|
|
2505
|
4377
|
'type' => 'color',
|
|
2506
|
4378
|
'label' => __pl('badge_btn_background_label'),
|
|
2507
|
|
- 'default' => '#4982eeff',
|
|
4379
|
+ 'default' => '#4982ee',
|
|
2508
|
4380
|
'css' => ['{{element}} .pagelayer-badge-btn:hover' => 'background-color:{{val}};'],
|
|
2509
|
4381
|
'show' => ['badge_btn_hover' => 'hover'],
|
|
2510
|
4382
|
),
|
|
2511
|
4383
|
],
|
|
@@ -2520,15 +4392,14 @@ |
|
2520
|
4392
|
// Tooltip
|
|
2521
|
4393
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tooltip', array(
|
|
2522
|
4394
|
'name' => __pl('Tooltip'),
|
|
2523
|
4395
|
'group' => 'text',
|
|
2524
|
|
- 'func' => 'pagelayer_sc_tooltip',
|
|
2525
|
|
- 'innerHTML' => 'tooltip',
|
|
4396
|
+ 'innerHTML' => 'tooltip_text',
|
|
2526
|
4397
|
'html' => '<div class="pagelayer-tooltip-container">
|
|
2527
|
|
- <span if="{{tooltip_icon}}" class="pagelayer-tooltip-icon"><i class="fa fa-{{tooltip_icon}}"></i></span>
|
|
4398
|
+ <span if="{{tooltip_icon}}" class="pagelayer-tooltip-icon"><i class="{{tooltip_icon}}"></i></span>
|
|
2528
|
4399
|
<span if="{{text}}" class="pagelayer-tooltip-title">{{text}}</span>
|
|
2529
|
4400
|
<div if="{{tooltip_text}}" class="pagelayer-tooltip-text pagelayer-tooltip-{{tooltip_position}}">
|
|
2530
|
|
- <span>{{tooltip_text}}</span>
|
|
4401
|
+ {{tooltip_text}}
|
|
2531
|
4402
|
</div>
|
|
2532
|
4403
|
</div>',
|
|
2533
|
4404
|
'params' => array(
|
|
2534
|
4405
|
'text' => array(
|
|
@@ -2540,9 +4411,9 @@ |
|
2540
|
4411
|
'tooltip_text' => array(
|
|
2541
|
4412
|
'type' => 'editor',
|
|
2542
|
4413
|
'label' => __pl('tooltip_text'),
|
|
2543
|
4414
|
'default' => 'Hey there, I have an amazing tooltip !',
|
|
2544
|
|
- 'edit' => '.pagelayer-tooltip',
|
|
4415
|
+ 'edit' => '.pagelayer-tooltip-text',
|
|
2545
|
4416
|
),
|
|
2546
|
4417
|
),
|
|
2547
|
4418
|
'text_style' => [
|
|
2548
|
4419
|
'tooltip_align' => array(
|
|
@@ -2548,8 +4419,9 @@ |
|
2548
|
4419
|
'tooltip_align' => array(
|
|
2549
|
4420
|
'label' => __pl('tooltip_align'),
|
|
2550
|
4421
|
'type' => 'select',
|
|
2551
|
4422
|
'default' => 'center',
|
|
4423
|
+ 'screen' => 1,
|
|
2552
|
4424
|
'css' => 'text-align: {{val}};',
|
|
2553
|
4425
|
'list' => array(
|
|
2554
|
4426
|
'left' => __pl('left'),
|
|
2555
|
4427
|
'center' => __pl('center'),
|
|
@@ -2565,15 +4437,15 @@ |
|
2565
|
4437
|
'type' => 'typography',
|
|
2566
|
4438
|
'label' => __pl('tooltip_title_size'),
|
|
2567
|
4439
|
'default' => ',25,,400,,,,,,,',
|
|
2568
|
4440
|
'css' => ['{{element}} .pagelayer-tooltip-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;',
|
|
2569
|
|
- '{{element}} .pagelayer-tooltip-icon .fa' => 'font-size: {{val[1]}}px !important;'],
|
|
4441
|
+ '{{element}} .pagelayer-tooltip-icon i' => 'font-size: {{val[1]}}px !important;'],
|
|
2570
|
4442
|
),
|
|
2571
|
4443
|
'tooltip_text_shadow' => array(
|
|
2572
|
4444
|
'type' => 'shadow',
|
|
2573
|
4445
|
'label' => __pl('tooltip_text_shadow'),
|
|
2574
|
4446
|
'css' => ['{{element}} .pagelayer-tooltip-title' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};',
|
|
2575
|
|
- '{{element}} .pagelayer-tooltip-icon .fa' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
|
|
4447
|
+ '{{element}} .pagelayer-tooltip-icon i' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
|
|
2576
|
4448
|
),
|
|
2577
|
4449
|
],
|
|
2578
|
4450
|
'tooltip_style' => [
|
|
2579
|
4451
|
'tooltip_position' => array(
|
|
@@ -2592,8 +4464,9 @@ |
|
2592
|
4464
|
'type' => 'slider',
|
|
2593
|
4465
|
'min' => 100,
|
|
2594
|
4466
|
'max' => 500,
|
|
2595
|
4467
|
'default' => 200,
|
|
4468
|
+ 'screen' => 1,
|
|
2596
|
4469
|
'css' => ['{{element}} .pagelayer-tooltip-text' => 'width:{{val}}px;'],
|
|
2597
|
4470
|
),
|
|
2598
|
4471
|
'tooltip_spacing' => array(
|
|
2599
|
4472
|
'label' => __pl('tooltip_spacing'),
|
|
@@ -2600,8 +4473,9 @@ |
|
2600
|
4473
|
'type' => 'slider',
|
|
2601
|
4474
|
'min' => 0,
|
|
2602
|
4475
|
'max' => 100,
|
|
2603
|
4476
|
'default' => 10,
|
|
4477
|
+ 'screen' => 1,
|
|
2604
|
4478
|
'css' => ['{{element}} .pagelayer-tooltip-text' => 'padding:{{val}}px;'],
|
|
2605
|
4479
|
),
|
|
2606
|
4480
|
'tooltip_background' => array(
|
|
2607
|
4481
|
'type' => 'color',
|
|
@@ -2626,11 +4500,11 @@ |
|
2626
|
4500
|
'default' => ',18,,400,,,,,,,',
|
|
2627
|
4501
|
'css' => ['{{element}} .pagelayer-tooltip-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;'],
|
|
2628
|
4502
|
),
|
|
2629
|
4503
|
'tooltip_shadow' => array(
|
|
2630
|
|
- 'type' => 'shadow',
|
|
4504
|
+ 'type' => 'box_shadow',
|
|
2631
|
4505
|
'label' => __pl('tooltip_shadow'),
|
|
2632
|
|
- 'css' => ['{{element}} .pagelayer-tooltip-text' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
|
|
4506
|
+ 'css' => ['{{element}} .pagelayer-tooltip-text' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}};'],
|
|
2633
|
4507
|
),
|
|
2634
|
4508
|
],
|
|
2635
|
4509
|
'icon_style' => [
|
|
2636
|
4510
|
'show_icon' => array(
|
|
@@ -2639,9 +4513,9 @@ |
|
2639
|
4513
|
),
|
|
2640
|
4514
|
'tooltip_icon' => array(
|
|
2641
|
4515
|
'type' => 'icon',
|
|
2642
|
4516
|
'label' => __pl('tooltip_icon'),
|
|
2643
|
|
- 'default' => 'exclamation-circle',
|
|
4517
|
+ 'default' => 'fas fa-exclamation-circle',
|
|
2644
|
4518
|
'req' => array(
|
|
2645
|
4519
|
'show_icon' => 'true',
|
|
2646
|
4520
|
)
|
|
2647
|
4521
|
),
|
|
@@ -2647,9 +4521,9 @@ |
|
2647
|
4521
|
),
|
|
2648
|
4522
|
'icon_color' => array(
|
|
2649
|
4523
|
'type' => 'color',
|
|
2650
|
4524
|
'label' => __pl('tooltip_icon_color'),
|
|
2651
|
|
- 'default' => '#3E8EF7',
|
|
4525
|
+ 'default' => '#0986c0',
|
|
2652
|
4526
|
'css' => ['{{element}} .pagelayer-tooltip-icon' => 'color:{{val}};'],
|
|
2653
|
4527
|
'req' => array(
|
|
2654
|
4528
|
'show_icon' => 'true',
|
|
2655
|
4529
|
)
|
|
@@ -2659,8 +4533,9 @@ |
|
2659
|
4533
|
'type' => 'slider',
|
|
2660
|
4534
|
'min' => 0,
|
|
2661
|
4535
|
'max' => 100,
|
|
2662
|
4536
|
'default' => 4,
|
|
4537
|
+ 'screen' => 1,
|
|
2663
|
4538
|
'css' => ['{{element}} .pagelayer-tooltip-icon' => 'margin-left:{{val}}px; margin-right:{{val}}px;'],
|
|
2664
|
4539
|
'req' => array(
|
|
2665
|
4540
|
'show_icon' => 'true',
|
|
2666
|
4541
|
)
|
|
@@ -2695,16 +4570,15 @@ |
|
2695
|
4570
|
// Image
|
|
2696
|
4571
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image', array(
|
|
2697
|
4572
|
'name' => __pl('image'),
|
|
2698
|
4573
|
'group' => 'image',
|
|
2699
|
|
- 'func' => 'pagelayer_sc_image',
|
|
2700
|
4574
|
'innerHTML' => 'text',
|
|
2701
|
|
- 'html' => '<div class="pagelayer-image-holder">
|
|
4575
|
+ 'html' => '<div class="pagelayer-image-holder pagelayer-anim-par">
|
|
2702
|
4576
|
<a if-ext="{{link_type}}" class="pagelayer-ele-link" href="{{func_link}}" pagelayer-image-link-type="{{link_type}}">
|
|
2703
|
|
- <img src="{{func_id}}" title="{{{id-title}}}" alt="{{{id-alt}}}" />
|
|
4577
|
+ <img class="pagelayer-img pagelayer-animation-{{anim_hover}}" src="{{func_id}}" title="{{{id-title}}}" alt="{{{id-alt}}}" srcset="{{pagelayer-srcset}}" />
|
|
2704
|
4578
|
<div if="{{overlay}}" class="pagelayer-image-overlay {{content_position}}">
|
|
2705
|
4579
|
<div class="pagelayer-image-overlay-content">
|
|
2706
|
|
- <i if="{{icon}}" class="pagelayer-image-overlay-icon fa fa-{{icon}}"></i>
|
|
4580
|
+ <i if="{{icon}}" class="pagelayer-image-overlay-icon {{icon}}"></i>
|
|
2707
|
4581
|
<div if="{{text}}" class="pagelayer-image-overlay-text">{{text}}</div>
|
|
2708
|
4582
|
</div>
|
|
2709
|
4583
|
</div>
|
|
2710
|
4584
|
</a>
|
|
@@ -2715,8 +4589,9 @@ |
|
2715
|
4589
|
'label' => __pl('image_src_label'),
|
|
2716
|
4590
|
'desc' => __pl('image_src_desc'),
|
|
2717
|
4591
|
'type' => 'image',
|
|
2718
|
4592
|
'default' => PAGELAYER_URL.'/images/default-image.png',
|
|
4593
|
+ 'retina' => 1,
|
|
2719
|
4594
|
),
|
|
2720
|
4595
|
'id-size' => array(
|
|
2721
|
4596
|
'label' => __pl('obj_image_size_label'),
|
|
2722
|
4597
|
'type' => 'select',
|
|
@@ -2731,8 +4606,9 @@ |
|
2731
|
4606
|
),
|
|
2732
|
4607
|
'custom_size' => array(
|
|
2733
|
4608
|
'label' => __pl('image_custom_size_label'),
|
|
2734
|
4609
|
'type' => 'text',
|
|
4610
|
+ 'screen' => 1,
|
|
2735
|
4611
|
'default' => '100x100',
|
|
2736
|
4612
|
'sep' => 'x',
|
|
2737
|
4613
|
'css' => ['{{element}} img' => 'width: {{val[0]}}px; height: {{val[1]}}px;'],
|
|
2738
|
4614
|
'req' => array(
|
|
@@ -2742,9 +4618,9 @@ |
|
2742
|
4618
|
'align' => array(
|
|
2743
|
4619
|
'label' => __pl('obj_align_label'),
|
|
2744
|
4620
|
'type' => 'radio',
|
|
2745
|
4621
|
'default' => 'center',
|
|
2746
|
|
- 'addAttr' => 'align="{{align}}"',
|
|
4622
|
+ 'screen' => 1,
|
|
2747
|
4623
|
'css' => ['{{element}} .pagelayer-image-holder' => 'text-align: {{val}}', '{{element}} .pagelayer-image-holder .pagelayer-image-overlay-content' => 'text-align: {{val}}'],
|
|
2748
|
4624
|
'list' => array(
|
|
2749
|
4625
|
'left' => __pl('left'),
|
|
2750
|
4626
|
'center' => __pl('center'),
|
|
@@ -2755,26 +4631,122 @@ |
|
2755
|
4631
|
'label' => __pl('max-width-percent'),
|
|
2756
|
4632
|
'type' => 'slider',
|
|
2757
|
4633
|
'min' => 0,
|
|
2758
|
4634
|
'max' => 100,
|
|
4635
|
+ 'screen' => 1,
|
|
4636
|
+ 'css' => ['{{element}} img' => 'max-width: {{val}}%'],
|
|
2759
|
4637
|
),
|
|
4638
|
+ 'img_hover' => array(
|
|
4639
|
+ 'type' => 'radio',
|
|
4640
|
+ 'label' => __pl('state'),
|
|
4641
|
+ 'default' => 'normal',
|
|
4642
|
+ 'list' => array(
|
|
4643
|
+ 'normal' => __pl('normal'),
|
|
4644
|
+ 'hover' => __pl('hover'),
|
|
4645
|
+ ),
|
|
4646
|
+ ),
|
|
2760
|
4647
|
'img_filter' => array(
|
|
2761
|
4648
|
'type' => 'filter',
|
|
2762
|
4649
|
'label' => __pl('filter'),
|
|
2763
|
|
- 'default' => '0,100,100,0,0,100,100',
|
|
4650
|
+ //'default' => '0,100,100,0,0,100,100',
|
|
2764
|
4651
|
'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]}}%)'],
|
|
4652
|
+ 'show' => ['img_hover' => 'normal']
|
|
2765
|
4653
|
),
|
|
2766
|
4654
|
'img_shadow' => array(
|
|
2767
|
|
- 'type' => 'shadow',
|
|
4655
|
+ 'type' => 'box_shadow',
|
|
2768
|
4656
|
'label' => __pl('shadow'),
|
|
2769
|
|
- 'css' => ['{{element}} img' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
|
|
4657
|
+ 'screen' => 1,
|
|
4658
|
+ 'css' => ['{{element}} img' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'],
|
|
4659
|
+ 'show' => ['img_hover' => 'normal']
|
|
2770
|
4660
|
),
|
|
4661
|
+ 'img_rotate' => array(
|
|
4662
|
+ 'type' => 'spinner',
|
|
4663
|
+ 'label' => __pl('Rotate'),
|
|
4664
|
+ 'min' => 0,
|
|
4665
|
+ 'max' => 360,
|
|
4666
|
+ 'step' => 1,
|
|
4667
|
+ 'screen' => 1,
|
|
4668
|
+ 'css' => ['{{element}} img' => 'transform: rotate({{val}}deg)'],
|
|
4669
|
+ 'show' => ['img_hover' => 'normal'],
|
|
4670
|
+ 'pro' => 1
|
|
4671
|
+ ),
|
|
4672
|
+ 'img_hover_delay' => array(
|
|
4673
|
+ 'type' => 'spinner',
|
|
4674
|
+ 'label' => __pl('btn_hover_delay_label'),
|
|
4675
|
+ 'desc' => __pl('btn_hover_delay_desc'),
|
|
4676
|
+ 'min' => 0,
|
|
4677
|
+ 'step' => 100,
|
|
4678
|
+ 'max' => 5000,
|
|
4679
|
+ 'default' => 400,
|
|
4680
|
+ 'css' => ['{{element}} .pagelayer-img' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;',],
|
|
4681
|
+ 'show' => ['img_hover' => 'hover']
|
|
4682
|
+ ),
|
|
4683
|
+ 'img_filter_hover' => array(
|
|
4684
|
+ 'type' => 'filter',
|
|
4685
|
+ 'label' => __pl('filter'),
|
|
4686
|
+ //'default' => '0,100,100,0,0,100,100',
|
|
4687
|
+ 'css' => ['{{element}} img:hover' => '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]}}%)'],
|
|
4688
|
+ 'show' => ['img_hover' => 'hover']
|
|
4689
|
+ ),
|
|
4690
|
+ 'img_shadow_hover' => array(
|
|
4691
|
+ 'type' => 'box_shadow',
|
|
4692
|
+ 'label' => __pl('shadow'),
|
|
4693
|
+ 'screen' => 1,
|
|
4694
|
+ 'css' => ['{{element}} img:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'],
|
|
4695
|
+ 'show' => ['img_hover' => 'hover']
|
|
4696
|
+ ),
|
|
4697
|
+ 'img_rotate_hover' => array(
|
|
4698
|
+ 'type' => 'spinner',
|
|
4699
|
+ 'label' => __pl('Rotate'),
|
|
4700
|
+ 'min' => 0,
|
|
4701
|
+ 'max' => 360,
|
|
4702
|
+ 'step' => 1,
|
|
4703
|
+ 'screen' => 1,
|
|
4704
|
+ 'css' => ['{{element}} img:hover' => 'transform: rotate({{val}}deg)'],
|
|
4705
|
+ 'show' => ['img_hover' => 'hover'],
|
|
4706
|
+ 'pro' => 1
|
|
4707
|
+ ),
|
|
4708
|
+ 'anim_hover' => array(
|
|
4709
|
+ 'type' => 'select',
|
|
4710
|
+ 'label' => __pl('icon_animation'),
|
|
4711
|
+ 'list' => [
|
|
4712
|
+ '' => __pl('none'),
|
|
4713
|
+ 'grow' => __pl('Grow'),
|
|
4714
|
+ 'shrink' => __pl('Shrink'),
|
|
4715
|
+ 'pulse' => __pl('Pulse'),
|
|
4716
|
+ 'pulse-grow' => __pl('Pulse Grow'),
|
|
4717
|
+ 'pulse-shrink' => __pl('Pulse Shrink'),
|
|
4718
|
+ 'push' => __pl('Push'),
|
|
4719
|
+ 'pop' => __pl('Pop'),
|
|
4720
|
+ 'buzz' => __pl('Buzz'),
|
|
4721
|
+ 'buzz-out' => __pl('Buzz Out'),
|
|
4722
|
+ 'float' => __pl('Float'),
|
|
4723
|
+ 'sink' => __pl('Sink'),
|
|
4724
|
+ 'bob' => __pl('Bob'),
|
|
4725
|
+ 'hang' => __pl('Hang'),
|
|
4726
|
+ 'bounce-in' => __pl('Bounce In'),
|
|
4727
|
+ 'bounce-out' => __pl('Bounce Out'),
|
|
4728
|
+ 'rotate' => __pl('Rotate'),
|
|
4729
|
+ 'grow-rotate' => __pl('Grow Rotate'),
|
|
4730
|
+ 'skew-forward' => __pl('Skew Forward'),
|
|
4731
|
+ 'skew-backward' => __pl('Skew Backward'),
|
|
4732
|
+ 'wobble-vertical' => __pl('Wobble Vertical'),
|
|
4733
|
+ 'wobble-horizontal' => __pl('Wobble Horizontal'),
|
|
4734
|
+ 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
|
|
4735
|
+ 'wobble-top-to-right' => __pl('Wobble Top To Right'),
|
|
4736
|
+ 'wobble-top' => __pl('Wobble Top'),
|
|
4737
|
+ 'wobble-bottom' => __pl('Wobble Bottom'),
|
|
4738
|
+ 'wobble-skew' => __pl('Wobble Skew'),
|
|
4739
|
+ ],
|
|
4740
|
+ 'show' => ['img_hover' => 'hover'],
|
|
4741
|
+ 'pro' => 1
|
|
4742
|
+ ),
|
|
2771
|
4743
|
),
|
|
2772
|
4744
|
// Image related Styles
|
|
2773
|
4745
|
'link_settings' => [
|
|
2774
|
4746
|
'link_type' => array(
|
|
4747
|
+ 'type' => 'select',
|
|
2775
|
4748
|
'label' => __pl('image_link_label'),
|
|
2776
|
|
- 'type' => 'select',
|
|
2777
|
4749
|
'default' => '',
|
|
2778
|
4750
|
'list' => array(
|
|
2779
|
4751
|
'' => __pl('none'),
|
|
2780
|
4752
|
'custom_url' => __pl('custom_url'),
|
|
@@ -2782,18 +4754,19 @@ |
|
2782
|
4754
|
'lightbox' => __pl('lightbox')
|
|
2783
|
4755
|
)
|
|
2784
|
4756
|
),
|
|
2785
|
4757
|
'link' => array(
|
|
4758
|
+ 'type' => 'link',
|
|
2786
|
4759
|
'label' => __pl('image_link_label'),
|
|
2787
|
4760
|
'desc' => __pl('image_link_desc'),
|
|
2788
|
|
- 'type' => 'link',
|
|
4761
|
+ 'selector' => '.pagelayer-ele-link',
|
|
2789
|
4762
|
'req' => array(
|
|
2790
|
4763
|
'link_type' => 'custom_url'
|
|
2791
|
4764
|
)
|
|
2792
|
4765
|
),
|
|
2793
|
4766
|
'rel' => array(
|
|
4767
|
+ 'type' => 'text',
|
|
2794
|
4768
|
'label' => __pl('image_rel_label'),
|
|
2795
|
|
- 'type' => 'text',
|
|
2796
|
4769
|
'default' => '',
|
|
2797
|
4770
|
'addAttr' => ['{{element}} a' => 'rel="{{rel}}"'],
|
|
2798
|
4771
|
'req' => array(
|
|
2799
|
4772
|
'link_type' => 'media_file'
|
|
@@ -2804,9 +4777,10 @@ |
|
2804
|
4777
|
'type' => 'checkbox',
|
|
2805
|
4778
|
'addAttr' => ['{{element}} a' => 'target="_blank"'],
|
|
2806
|
4779
|
'req' => array(
|
|
2807
|
4780
|
'link_type' => ['custom_url', 'media_file']
|
|
2808
|
|
- )
|
|
4781
|
+ ),
|
|
4782
|
+ 'show' => ['link_type' => 'media_file']
|
|
2809
|
4783
|
),
|
|
2810
|
4784
|
],
|
|
2811
|
4785
|
// Caption related Styles
|
|
2812
|
4786
|
'caption_style' => [
|
|
@@ -2818,10 +4792,15 @@ |
|
2818
|
4792
|
),
|
|
2819
|
4793
|
'caption_color' => array(
|
|
2820
|
4794
|
'label' => __pl('Caption Color'),
|
|
2821
|
4795
|
'type' => 'color',
|
|
2822
|
|
- 'default' => '#3E8EF7',
|
|
4796
|
+ 'default' => '#0986c0',
|
|
2823
|
4797
|
'css' => ['{{element}} .pagelayer-image-caption' => 'color: {{val}}'],
|
|
4798
|
+ ),
|
|
4799
|
+ 'caption_typo' => array(
|
|
4800
|
+ 'type' => 'typography',
|
|
4801
|
+ 'label' => __pl('typography'),
|
|
4802
|
+ 'css' => ['{{element}} .pagelayer-image-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;'],
|
|
2824
|
4803
|
)
|
|
2825
|
4804
|
],
|
|
2826
|
4805
|
'overlay_style' => [
|
|
2827
|
4806
|
'overlay' => array(
|
|
@@ -2831,9 +4810,9 @@ |
|
2831
|
4810
|
),
|
|
2832
|
4811
|
'icon' => array(
|
|
2833
|
4812
|
'label' => __pl('icon'),
|
|
2834
|
4813
|
'type' => 'icon',
|
|
2835
|
|
- 'default' => 'star',
|
|
4814
|
+ 'default' => 'fas fa-star',
|
|
2836
|
4815
|
'req' => array(
|
|
2837
|
4816
|
'overlay' => 'true'
|
|
2838
|
4817
|
)
|
|
2839
|
4818
|
),
|
|
@@ -2853,8 +4832,9 @@ |
|
2853
|
4832
|
'min' => 0,
|
|
2854
|
4833
|
'step' => 1,
|
|
2855
|
4834
|
'max' => 500,
|
|
2856
|
4835
|
'default' => 50,
|
|
4836
|
+ 'screen' => 1,
|
|
2857
|
4837
|
'css' => ['{{element}} .pagelayer-image-overlay-icon' => 'font-size: {{val}}px'],
|
|
2858
|
4838
|
'req' => array(
|
|
2859
|
4839
|
'overlay' => 'true'
|
|
2860
|
4840
|
)
|
|
@@ -2862,13 +4842,25 @@ |
|
2862
|
4842
|
'text' => array(
|
|
2863
|
4843
|
'label' => __pl('content'),
|
|
2864
|
4844
|
'type' => 'editor',
|
|
2865
|
4845
|
'default' => '<p>Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s.</p>',
|
|
2866
|
|
- 'text' => __pl('open_in_pleditor'),
|
|
4846
|
+ 'edit' => '.pagelayer-image-overlay-text',
|
|
2867
|
4847
|
'req' => array(
|
|
2868
|
4848
|
'overlay' => 'true'
|
|
2869
|
4849
|
)
|
|
2870
|
|
- ),
|
|
4850
|
+ ),
|
|
4851
|
+ 'overlay_bg_type' => array(
|
|
4852
|
+ 'label' => __pl('background_type'),
|
|
4853
|
+ 'type' => 'radio',
|
|
4854
|
+ 'default' => 'color',
|
|
4855
|
+ 'list' => array(
|
|
4856
|
+ 'color' => __pl('color'),
|
|
4857
|
+ 'gradient' => __pl('gradient')
|
|
4858
|
+ ),
|
|
4859
|
+ 'req' => array(
|
|
4860
|
+ 'overlay' => 'true'
|
|
4861
|
+ )
|
|
4862
|
+ ),
|
|
2871
|
4863
|
'overlay_bg' => array(
|
|
2872
|
4864
|
'label' => __pl('image_overlay_background'),
|
|
2873
|
4865
|
'type' => 'color',
|
|
2874
|
4866
|
'default' => 'rgba(0,0,0,.6)',
|
|
@@ -2873,15 +4865,26 @@ |
|
2873
|
4865
|
'type' => 'color',
|
|
2874
|
4866
|
'default' => 'rgba(0,0,0,.6)',
|
|
2875
|
4867
|
'css' => ['{{element}} .pagelayer-image-overlay' => 'background: {{val}}'],
|
|
2876
|
4868
|
'req' => array(
|
|
2877
|
|
- 'overlay' => 'true'
|
|
4869
|
+ 'overlay' => 'true',
|
|
4870
|
+ '!overlay_bg_type' => 'gradient'
|
|
2878
|
4871
|
)
|
|
2879
|
4872
|
),
|
|
4873
|
+ 'overlay_gradient' => [
|
|
4874
|
+ 'type' => 'gradient',
|
|
4875
|
+ 'label' => '',
|
|
4876
|
+ 'css' => ['{{element}} .pagelayer-image-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
|
|
4877
|
+ 'req' => array(
|
|
4878
|
+ 'overlay' => 'true',
|
|
4879
|
+ 'overlay_bg_type' => 'gradient'
|
|
4880
|
+ )
|
|
4881
|
+ ],
|
|
2880
|
4882
|
'content_position' => array(
|
|
2881
|
4883
|
'label' => __pl('Overlay Content Position'),
|
|
2882
|
4884
|
'type' => 'radio',
|
|
2883
|
4885
|
'default' => 'center',
|
|
4886
|
+ 'screen' => 1,
|
|
2884
|
4887
|
'css' => ['{{element}} .pagelayer-image-overlay' => 'display:-webkit-flex;display:flex;-webkit-align-items:{{val}}; align-items:{{val}};'],
|
|
2885
|
4888
|
'list' => array(
|
|
2886
|
4889
|
'flex-start' => __pl('Top'),
|
|
2887
|
4890
|
'center' => __pl('Middle'),
|
|
@@ -2893,8 +4896,9 @@ |
|
2893
|
4896
|
),
|
|
2894
|
4897
|
'show_always' => array(
|
|
2895
|
4898
|
'label' => __pl('image_show_always'),
|
|
2896
|
4899
|
'type' => 'checkbox',
|
|
4900
|
+ 'screen' => 1,
|
|
2897
|
4901
|
'css' => ['{{element}} .pagelayer-image-overlay' => 'opacity:1;'],
|
|
2898
|
4902
|
'req' => array(
|
|
2899
|
4903
|
'overlay' => 'true'
|
|
2900
|
4904
|
)
|
|
@@ -2902,9 +4906,9 @@ |
|
2902
|
4906
|
],
|
|
2903
|
4907
|
'styles' => [
|
|
2904
|
4908
|
'link_settings' => __pl('link_settings'),
|
|
2905
|
4909
|
'caption_style' => __pl('caption_style'),
|
|
2906
|
|
- 'overlay_style' => __pl('overlay_style'),
|
|
4910
|
+ 'overlay_style' => __pl('overlay_style')
|
|
2907
|
4911
|
],
|
|
2908
|
4912
|
)
|
|
2909
|
4913
|
);
|
|
2910
|
4914
|
|
|
@@ -2911,12 +4915,12 @@ |
|
2911
|
4915
|
// Image Slider
|
|
2912
|
4916
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_slider', array(
|
|
2913
|
4917
|
'name' => __pl('Image Slider'),
|
|
2914
|
4918
|
'group' => 'image',
|
|
4919
|
+ 'prevent_inside' => ['pl_slides'],
|
|
2915
|
4920
|
'html' => '<div class="pagelayer-image-slider-div">
|
|
2916
|
|
- <ul class="pagelayer-image-slider-ul">{{ul}}</ul>
|
|
4921
|
+ <ul class="pagelayer-image-slider-ul pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme">{{ul}}</ul>
|
|
2917
|
4922
|
</div>',
|
|
2918
|
|
- 'func' => 'pagelayer_sc_image_slider',
|
|
2919
|
4923
|
'settings' => [
|
|
2920
|
4924
|
'params' => __pl('Image Slider'),
|
|
2921
|
4925
|
'slider_options' => __pl('slider_options'),
|
|
2922
|
4926
|
],
|
|
@@ -2924,9 +4928,8 @@ |
|
2924
|
4928
|
'ids' => array(
|
|
2925
|
4929
|
'type' => 'multi_image',
|
|
2926
|
4930
|
'label' => __pl('image_slider_ids_label'),
|
|
2927
|
4931
|
'desc' => __pl('media_library_images_ids_desc'),
|
|
2928
|
|
- 'text' => __pl('image_slider_ids_text'),
|
|
2929
|
4932
|
),
|
|
2930
|
4933
|
'size' => array(
|
|
2931
|
4934
|
'type' => 'select',
|
|
2932
|
4935
|
'label' => __pl('obj_image_size_label'),
|
|
@@ -2942,8 +4945,9 @@ |
|
2942
|
4945
|
'custom_size' => array(
|
|
2943
|
4946
|
'type' => 'dimension',
|
|
2944
|
4947
|
'label' => __pl('image_custom_size_label'),
|
|
2945
|
4948
|
'default' => '200,200',
|
|
4949
|
+ 'screen' => 1,
|
|
2946
|
4950
|
'css' => ['{{element}} .pagelayer-image-slider-ul' => 'width: {{val[0]}}px; height: {{val[1]}}px;'],
|
|
2947
|
4951
|
'req' => array(
|
|
2948
|
4952
|
'size' => 'custom'
|
|
2949
|
4953
|
),
|
|
@@ -2957,11 +4961,12 @@ |
|
2957
|
4961
|
'media_file' => __pl('media_file'),
|
|
2958
|
4962
|
)
|
|
2959
|
4963
|
),
|
|
2960
|
4964
|
'link' => array(
|
|
4965
|
+ 'type' => 'link',
|
|
2961
|
4966
|
'label' => __pl('image_link_url'),
|
|
2962
|
4967
|
'desc' => __pl('image_link_desc'),
|
|
2963
|
|
- 'type' => 'link',
|
|
4968
|
+ 'selector' => '.pagelayer-link-sel',
|
|
2964
|
4969
|
'req' => array(
|
|
2965
|
4970
|
'link_type' => 'custom_url'
|
|
2966
|
4971
|
)
|
|
2967
|
4972
|
),
|
|
@@ -2970,15 +4975,47 @@ |
|
2970
|
4975
|
'type' => 'checkbox',
|
|
2971
|
4976
|
'addAttr' => ['{{element}} a' => 'target="_blank"'],
|
|
2972
|
4977
|
'req' => array(
|
|
2973
|
4978
|
'link_type' => ['custom_url', 'media_file']
|
|
2974
|
|
- )
|
|
4979
|
+ ),
|
|
4980
|
+ 'show' => ['link_type' => 'media_file'] // Backward compatibility of link props
|
|
2975
|
4981
|
),
|
|
4982
|
+ 'slider_img_gap' => array(
|
|
4983
|
+ 'type' => 'dimension',
|
|
4984
|
+ 'label' => __pl('space_between'),
|
|
4985
|
+ 'min' => 0,
|
|
4986
|
+ 'screen' => 1,
|
|
4987
|
+ 'css' => ['{{element}} .pagelayer-slider-item' => 'padding: {{val[0]}}px {{val[1]}}px;'],
|
|
4988
|
+ ),
|
|
2976
|
4989
|
),
|
|
2977
|
4990
|
'slider_options' => [
|
|
4991
|
+ 'slide_items' => array(
|
|
4992
|
+ 'type' => 'spinner',
|
|
4993
|
+ 'label' => __pl('number_of_items'),
|
|
4994
|
+ 'min' => 1,
|
|
4995
|
+ 'step' => 1,
|
|
4996
|
+ 'max' => 10,
|
|
4997
|
+ 'default' => 1,
|
|
4998
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-items="{{slide_items}}"'],
|
|
4999
|
+ ),
|
|
5000
|
+ 'slider_animation' => array(
|
|
5001
|
+ 'type' => 'select',
|
|
5002
|
+ 'label' => __pl('animation_in'),
|
|
5003
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-animate-in="{{slider_animation}}"'],
|
|
5004
|
+ 'list' => $pagelayer->anim_in_options,
|
|
5005
|
+ 'req' => ['slide_items' => '1']
|
|
5006
|
+ ),
|
|
5007
|
+ 'slideout_anim' => array(
|
|
5008
|
+ 'type' => 'select',
|
|
5009
|
+ 'label' => __pl('animation_out'),
|
|
5010
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-animate-out="{{slideout_anim}}"'],
|
|
5011
|
+ 'list' => $pagelayer->anim_out_options,
|
|
5012
|
+ 'req' => ['slide_items' => '1']
|
|
5013
|
+ ),
|
|
2978
|
5014
|
'controls' => array(
|
|
2979
|
5015
|
'type' => 'select',
|
|
2980
|
5016
|
'label' => __pl('slider_controls'),
|
|
5017
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-controls="{{controls}}"'],
|
|
2981
|
5018
|
'list' => array(
|
|
2982
|
5019
|
'' => __pl('Arrows and Pager'),
|
|
2983
|
5020
|
'arrows' => __pl('Arrows'),
|
|
2984
|
5021
|
'pager' => __pl('Pager'),
|
|
@@ -2984,33 +5021,21 @@ |
|
2984
|
5021
|
'pager' => __pl('Pager'),
|
|
2985
|
5022
|
'none' => __pl('none'),
|
|
2986
|
5023
|
)
|
|
2987
|
5024
|
),
|
|
2988
|
|
- 'slider_animation' => [
|
|
2989
|
|
- 'type' => 'select',
|
|
2990
|
|
- 'label' => __pl('image_slider_animation'),
|
|
2991
|
|
- 'desc' => __pl('image_slider_animation_desc'),
|
|
2992
|
|
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-transition="{{slider_animation}}"'],
|
|
2993
|
|
- 'list' => array(
|
|
2994
|
|
- '' => __pl('Fade'),
|
|
2995
|
|
- 'horizontal' => __pl('horizontal'),
|
|
2996
|
|
- 'vertical' => __pl('vertical'),
|
|
2997
|
|
- 'kenburns' => __pl('kenburns'),
|
|
2998
|
|
- )
|
|
2999
|
|
- ],
|
|
3000
|
5025
|
'pause' => array(
|
|
3001
|
5026
|
'type' => 'slider',
|
|
3002
|
5027
|
'label' => __pl('image_slider_slideshow_speed_label'),
|
|
3003
|
5028
|
'default' => 5000,
|
|
3004
|
5029
|
'min' => 200,
|
|
3005
|
|
- 'max' => 10000,
|
|
5030
|
+ 'max' => 20000,
|
|
3006
|
5031
|
'step' => 100,
|
|
3007
|
|
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-pause="{{pause}}"'],
|
|
5032
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-autoplay-timeout="{{pause}}"'],
|
|
3008
|
5033
|
),
|
|
3009
|
5034
|
'speed' => array(
|
|
3010
|
5035
|
'type' => 'slider',
|
|
3011
|
5036
|
'label' => __pl('slider_animation_speed'),
|
|
3012
|
|
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-speed="{{speed}}"'],
|
|
5037
|
+ 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-slides-smart-speed="{{speed}}"'],
|
|
3013
|
5038
|
'default' => 800,
|
|
3014
|
5039
|
'min' => 200,
|
|
3015
|
5040
|
'max' => 10000,
|
|
3016
|
5041
|
'step' => 100
|
|
@@ -3019,15 +5044,15 @@ |
|
3019
|
5044
|
'type' => 'checkbox',
|
|
3020
|
5045
|
'label' => __pl('image_slider_loop'),
|
|
3021
|
5046
|
'desc' => __pl('image_slider_loop_desc'),
|
|
3022
|
5047
|
'default' => 'true',
|
|
3023
|
|
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-loop="{{loop}}"'],
|
|
5048
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-loop="{{loop}}"'],
|
|
3024
|
5049
|
),
|
|
3025
|
5050
|
'adaptive_height' => array(
|
|
3026
|
5051
|
'type' => 'checkbox',
|
|
3027
|
5052
|
'label' => __pl('slider_height'),
|
|
3028
|
5053
|
'desc' => __pl('slider_height_desc'),
|
|
3029
|
|
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-adaptiveHeight="{{adaptive_height}}"'],
|
|
5054
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-auto-height="{{adaptive_height}}"'],
|
|
3030
|
5055
|
),
|
|
3031
|
5056
|
'auto' => array(
|
|
3032
|
5057
|
'type' => 'checkbox',
|
|
3033
|
5058
|
'label' => __pl('image_slider_auto'),
|
|
@@ -3032,9 +5057,9 @@ |
|
3032
|
5057
|
'type' => 'checkbox',
|
|
3033
|
5058
|
'label' => __pl('image_slider_auto'),
|
|
3034
|
5059
|
'desc' => __pl('image_slider_auto_desc'),
|
|
3035
|
5060
|
'default' => 'true',
|
|
3036
|
|
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-auto="{{auto}}"'],
|
|
5061
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-autoplay="{{auto}}"'],
|
|
3037
|
5062
|
),
|
|
3038
|
5063
|
'auto_hover' => [
|
|
3039
|
5064
|
'type' => 'checkbox',
|
|
3040
|
5065
|
'label' => __pl('auto_hover'),
|
|
@@ -3039,21 +5064,18 @@ |
|
3039
|
5064
|
'type' => 'checkbox',
|
|
3040
|
5065
|
'label' => __pl('auto_hover'),
|
|
3041
|
5066
|
'desc' => __pl('auto_hover_desc'),
|
|
3042
|
5067
|
'default' => 'true',
|
|
3043
|
|
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-autoHover="{{auto_hover}}"'],
|
|
5068
|
+ 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-autoplay-hover-pause="{{auto_hover}}"'],
|
|
3044
|
5069
|
],
|
|
3045
|
|
- 'auto_direction' => [
|
|
3046
|
|
- 'type' => 'select',
|
|
3047
|
|
- 'label' => __pl('slider_auto_direction'),
|
|
3048
|
|
- 'desc' => __pl('slider_auto_direction_desc'),
|
|
3049
|
|
- 'addAttr' => ['.pagelayer-image-slider-ul' => 'data-autoDirection="{{auto_direction}}"'],
|
|
3050
|
|
- 'list' =>[
|
|
3051
|
|
- '' => __pl('Next'),
|
|
3052
|
|
- 'prev' => __pl('Previous'),
|
|
3053
|
|
- ]
|
|
3054
|
|
- ],
|
|
3055
|
|
- ]
|
|
5070
|
+ ],
|
|
5071
|
+ 'arrow_styles' => $pagelayer->slider_arrow_styles,
|
|
5072
|
+ 'pager_styles' => $pagelayer->slider_pager_styles,
|
|
5073
|
+ 'styles' => [
|
|
5074
|
+ 'slider_options' => __pl('slider_options'),
|
|
5075
|
+ 'arrow_styles' => __pl('arrow_styles'),
|
|
5076
|
+ 'pager_styles' => __pl('pager_styles'),
|
|
5077
|
+ ],
|
|
3056
|
5078
|
)
|
|
3057
|
5079
|
);
|
|
3058
|
5080
|
|
|
3059
|
5081
|
// Grid Gallery
|
|
@@ -3059,23 +5081,24 @@ |
|
3059
|
5081
|
// Grid Gallery
|
|
3060
|
5082
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_grid_gallery', array(
|
|
3061
|
5083
|
'name' => __pl('Grid Gallery'),
|
|
3062
|
5084
|
'group' => 'image',
|
|
3063
|
|
- 'func' => 'pagelayer_sc_grid_gallery',
|
|
3064
|
5085
|
'html' => '<div class="pagelayer-grid-gallery-container">
|
|
3065
|
|
- {{ul}}
|
|
3066
|
|
- </div>',
|
|
5086
|
+ {{ul}}
|
|
5087
|
+ </div>
|
|
5088
|
+ {{pagin}}',
|
|
3067
|
5089
|
'params' => array(
|
|
3068
|
5090
|
'ids' => array(
|
|
3069
|
5091
|
'type' => 'multi_image',
|
|
3070
|
5092
|
'label' => __pl('grid_gallery_images'),
|
|
3071
|
5093
|
'desc' => __pl('media_library_images_ids_desc'),
|
|
3072
|
|
- 'text' => __pl('image_slider_ids_text'),
|
|
3073
|
5094
|
),
|
|
3074
|
5095
|
'columns' => array(
|
|
3075
|
5096
|
'type' => 'select',
|
|
3076
|
5097
|
'label' => __pl('columns_count'),
|
|
3077
|
5098
|
'default' => 3,
|
|
5099
|
+ 'screen' => 1,
|
|
5100
|
+ 'css' => ['{{element}} .pagelayer-grid-gallery-ul' => 'display: grid; grid-template-columns: repeat({{val}},1fr);'],
|
|
3078
|
5101
|
'list' => array(
|
|
3079
|
5102
|
1 => __pl('1'),
|
|
3080
|
5103
|
2 => __pl('2'),
|
|
3081
|
5104
|
3 => __pl('3'),
|
|
@@ -3087,8 +5110,28 @@ |
|
3087
|
5110
|
9 => __pl('9'),
|
|
3088
|
5111
|
10 => __pl('10')
|
|
3089
|
5112
|
)
|
|
3090
|
5113
|
),
|
|
5114
|
+ 'col_gap' => array(
|
|
5115
|
+ 'type' => 'slider',
|
|
5116
|
+ 'label' => __pl('col_gap'),
|
|
5117
|
+ 'min' => 0,
|
|
5118
|
+ 'step' => 1,
|
|
5119
|
+ 'max' => 100,
|
|
5120
|
+ 'default' => 0,
|
|
5121
|
+ 'screen' => 1,
|
|
5122
|
+ 'css' => ['{{element}} .pagelayer-grid-gallery-ul' => 'grid-column-gap: {{val}}px;'],
|
|
5123
|
+ ),
|
|
5124
|
+ 'row_gap' => array(
|
|
5125
|
+ 'type' => 'slider',
|
|
5126
|
+ 'label' => __pl('row_gap'),
|
|
5127
|
+ 'min' => 0,
|
|
5128
|
+ 'step' => 1,
|
|
5129
|
+ 'max' => 100,
|
|
5130
|
+ 'default' => 0,
|
|
5131
|
+ 'screen' => 1,
|
|
5132
|
+ 'css' => ['{{element}} .pagelayer-grid-gallery-ul' => 'grid-row-gap: {{val}}px;'],
|
|
5133
|
+ ),
|
|
3091
|
5134
|
'size' => array(
|
|
3092
|
5135
|
'type' => 'select',
|
|
3093
|
5136
|
'label' => __pl('obj_image_size_label'),
|
|
3094
|
5137
|
'default' => 'thumbnail',
|
|
@@ -3101,12 +5144,13 @@ |
|
3101
|
5144
|
)
|
|
3102
|
5145
|
),
|
|
3103
|
5146
|
'custom_size' => array(
|
|
3104
|
5147
|
'type' => 'dimension',
|
|
3105
|
|
- 'desc' => __pl('image_custom_size_label'),
|
|
5148
|
+ 'label' => __pl('image_custom_size_label'),
|
|
3106
|
5149
|
'req' => array(
|
|
3107
|
5150
|
'size' => 'custom'
|
|
3108
|
5151
|
),
|
|
5152
|
+ 'screen' => 1,
|
|
3109
|
5153
|
'css' => ['{{element}} .pagelayer-gallery-item img' => 'height: {{val[0]}}px; width: {{val[1]}}px;'],
|
|
3110
|
5154
|
),
|
|
3111
|
5155
|
'link_to' => array(
|
|
3112
|
5156
|
'type' => 'select',
|
|
@@ -3151,8 +5195,11 @@ |
|
3151
|
5195
|
'list' => array(
|
|
3152
|
5196
|
'left' => __pl('left'),
|
|
3153
|
5197
|
'center' => __pl('center'),
|
|
3154
|
5198
|
'right' => __pl('right')
|
|
5199
|
+ ),
|
|
5200
|
+ 'req' => array(
|
|
5201
|
+ 'caption' => 'true'
|
|
3155
|
5202
|
)
|
|
3156
|
5203
|
),
|
|
3157
|
5204
|
'caption_color' => array(
|
|
3158
|
5205
|
'label' => __pl('Caption Color'),
|
|
@@ -3161,8 +5208,17 @@ |
|
3161
|
5208
|
'css' => ['{{element}} .pagelayer-grid-gallery-caption' => 'color: {{val}}'],
|
|
3162
|
5209
|
'req' => array(
|
|
3163
|
5210
|
'caption' => 'true'
|
|
3164
|
5211
|
)
|
|
5212
|
+ ),
|
|
5213
|
+ 'images_no' => array(
|
|
5214
|
+ 'type' => 'spinner',
|
|
5215
|
+ 'label' => __pl('num_images'),
|
|
5216
|
+ 'desc' => __pl('images_in_page'),
|
|
5217
|
+ 'min' => 0,
|
|
5218
|
+ 'step' => 1,
|
|
5219
|
+ 'max' => 1000,
|
|
5220
|
+ 'default' => 30
|
|
3165
|
5221
|
)
|
|
3166
|
5222
|
)
|
|
3167
|
5223
|
)
|
|
3168
|
5224
|
);
|
|
@@ -3176,34 +5232,32 @@ |
|
3176
|
5232
|
// Button
|
|
3177
|
5233
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
|
|
3178
|
5234
|
'name' => __pl('button'),
|
|
3179
|
5235
|
'group' => 'button',
|
|
3180
|
|
- 'func' => 'pagelayer_sc_btn',
|
|
3181
|
5236
|
'html' => '<a class="pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{icon_position}}">
|
|
3182
|
|
- <i if="{{icon}}" class="fa fa-{{icon}} pagelayer-btn-icon"></i>
|
|
5237
|
+ <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
|
|
3183
|
5238
|
<span if="{{text}}" class="pagelayer-btn-text">{{text}}</span>
|
|
3184
|
|
- <i if="{{icon}}" class="fa fa-{{icon}} pagelayer-btn-icon"></i>
|
|
5239
|
+ <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
|
|
3185
|
5240
|
</a>',
|
|
3186
|
5241
|
'params' => array(
|
|
3187
|
5242
|
'text' => array(
|
|
3188
|
5243
|
'type' => 'text',
|
|
3189
|
5244
|
'label' => __pl('button_text_label'),
|
|
3190
|
|
- 'default' => __pl('button_name')
|
|
5245
|
+ 'default' => __pl('button_name'),
|
|
5246
|
+ 'edit' => '.pagelayer-btn-text',
|
|
3191
|
5247
|
),
|
|
3192
|
5248
|
'link' => array(
|
|
3193
|
5249
|
'type' => 'link',
|
|
3194
|
5250
|
'label' => __pl('button_link_label'),
|
|
3195
|
5251
|
'desc' => __pl('button_link_desc'),
|
|
3196
|
|
- 'addAttr' => ['{{element}} .pagelayer-btn-holder' => 'href="{{link}}"']
|
|
5252
|
+ 'selector' => '.pagelayer-btn-holder',
|
|
5253
|
+ 'addAttr' => ['{{element}} .pagelayer-btn-holder' => 'href="{{{link}}}"'],
|
|
5254
|
+ 'req' => ['ele_scrollto' => '']
|
|
3197
|
5255
|
),
|
|
3198
|
|
- 'target' => array(
|
|
3199
|
|
- 'type' => 'checkbox',
|
|
3200
|
|
- 'label' => __pl('open_link_in_new_window'),
|
|
3201
|
|
- 'addAttr' => ['{{element}} a' => 'target="_blank"']
|
|
3202
|
|
- ),
|
|
3203
|
5256
|
'full_width' => array(
|
|
3204
|
5257
|
'type' => 'checkbox',
|
|
3205
|
5258
|
'label' => __pl('stretch'),
|
|
5259
|
+ 'screen' => 1,
|
|
3206
|
5260
|
'css' => ['{{element}} a' => 'width: 100%; text-align: center;']
|
|
3207
|
5261
|
),
|
|
3208
|
5262
|
'btn_typo' => array(
|
|
3209
|
5263
|
'type' => 'typography',
|
|
@@ -3216,8 +5270,9 @@ |
|
3216
|
5270
|
'align' => array(
|
|
3217
|
5271
|
'type' => 'radio',
|
|
3218
|
5272
|
'label' => __pl('obj_align_label'),
|
|
3219
|
5273
|
'default' => 'left',
|
|
5274
|
+ 'screen' => 1,
|
|
3220
|
5275
|
'css' => 'text-align: {{val}}',
|
|
3221
|
5276
|
'list' => array(
|
|
3222
|
5277
|
'left' => __pl('left'),
|
|
3223
|
5278
|
'center' => __pl('center'),
|
|
@@ -3241,8 +5296,11 @@ |
|
3241
|
5296
|
'list' => array(
|
|
3242
|
5297
|
'pagelayer-btn-icon-left' => __pl('left'),
|
|
3243
|
5298
|
'pagelayer-btn-icon-right' => __pl('right')
|
|
3244
|
5299
|
),
|
|
5300
|
+ 'req' => array(
|
|
5301
|
+ '!icon' => ''
|
|
5302
|
+ ),
|
|
3245
|
5303
|
),
|
|
3246
|
5304
|
'icon_spacing' => array(
|
|
3247
|
5305
|
'type' => 'slider',
|
|
3248
|
5306
|
'label' => __pl('icon_spacing'),
|
|
@@ -3249,11 +5307,12 @@ |
|
3249
|
5307
|
'min' => 1,
|
|
3250
|
5308
|
'step' => 1,
|
|
3251
|
5309
|
'max' => 100,
|
|
3252
|
5310
|
'default' => 5,
|
|
5311
|
+ 'screen' => 1,
|
|
3253
|
5312
|
'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'],
|
|
3254
|
5313
|
'req' => array(
|
|
3255
|
|
- '!icon' => 'none'
|
|
5314
|
+ '!icon' => ''
|
|
3256
|
5315
|
),
|
|
3257
|
5316
|
),
|
|
3258
|
5317
|
],
|
|
3259
|
5318
|
'btn_style' => [
|
|
@@ -3272,11 +5331,40 @@ |
|
3272
|
5331
|
'pagelayer-btn-danger' => __pl('btn_type_danger'),
|
|
3273
|
5332
|
'pagelayer-btn-dark' => __pl('btn_type_dark'),
|
|
3274
|
5333
|
'pagelayer-btn-light' => __pl('btn_type_light'),
|
|
3275
|
5334
|
'pagelayer-btn-link' => __pl('btn_type_link'),
|
|
5335
|
+ 'pagelayer-btn-anim' => __pl('btn_type_anim'),
|
|
3276
|
5336
|
'pagelayer-btn-custom' => __pl('btn_type_custom')
|
|
3277
|
5337
|
),
|
|
3278
|
5338
|
),
|
|
5339
|
+ 'anim_type' => array(
|
|
5340
|
+ 'type' => 'select',
|
|
5341
|
+ 'label' => __pl('type'),
|
|
5342
|
+ 'default' => 'glow',
|
|
5343
|
+ 'addClass' => ['{{element}} .pagelayer-btn-holder' => 'pagelayer-btn-anim-{{val}}'],
|
|
5344
|
+ 'list' => array(
|
|
5345
|
+ 'glow' => __pl('glow_button'),
|
|
5346
|
+ 'thin' => __pl('thin_button'),
|
|
5347
|
+ 'slide' => __pl('slide_button')
|
|
5348
|
+ ),
|
|
5349
|
+ 'req' => array(
|
|
5350
|
+ 'type' => 'pagelayer-btn-anim'
|
|
5351
|
+ ),
|
|
5352
|
+ ),
|
|
5353
|
+ 'direction' => array(
|
|
5354
|
+ 'type' => 'select',
|
|
5355
|
+ 'label' => __pl('animation_direction'),
|
|
5356
|
+ 'default' => 'pagelayer-btn-anim-left',
|
|
5357
|
+ 'addClass' => ['{{element}} .pagelayer-btn-holder' => '{{val}}'],
|
|
5358
|
+ 'list' => array(
|
|
5359
|
+ 'pagelayer-btn-anim-left' => __pl('left'),
|
|
5360
|
+ 'pagelayer-btn-anim-right' => __pl('right'),
|
|
5361
|
+ ),
|
|
5362
|
+ 'req' => array(
|
|
5363
|
+ 'anim_type' => 'slide',
|
|
5364
|
+ 'type' => 'pagelayer-btn-anim',
|
|
5365
|
+ ),
|
|
5366
|
+ ),
|
|
3279
|
5367
|
'size' => array(
|
|
3280
|
5368
|
'type' => 'select',
|
|
3281
|
5369
|
'label' => __pl('button_size_label'),
|
|
3282
|
5370
|
'default' => 'pagelayer-btn-large',
|
|
@@ -3295,11 +5383,12 @@ |
|
3295
|
5383
|
'min' => 1,
|
|
3296
|
5384
|
'step' => 1,
|
|
3297
|
5385
|
'max' => 100,
|
|
3298
|
5386
|
'default' => 5,
|
|
5387
|
+ 'screen' => 1,
|
|
3299
|
5388
|
'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: calc({{val}}px / 2) {{val}}px;'],
|
|
3300
|
5389
|
'req' => array(
|
|
3301
|
|
- 'size' => 'pagelayer-btn-custom'
|
|
5390
|
+ 'size' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
|
|
3302
|
5391
|
),
|
|
3303
|
5392
|
),
|
|
3304
|
5393
|
'btn_hover' => array(
|
|
3305
|
5394
|
'type' => 'radio',
|
|
@@ -3310,18 +5399,23 @@ |
|
3310
|
5399
|
'' => __pl('normal'),
|
|
3311
|
5400
|
'hover' => __pl('hover'),
|
|
3312
|
5401
|
),
|
|
3313
|
5402
|
'req' => array(
|
|
3314
|
|
- 'type' => 'pagelayer-btn-custom',
|
|
5403
|
+ 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
|
|
3315
|
5404
|
),
|
|
3316
|
5405
|
),
|
|
3317
|
5406
|
'btn_bg_color' => array(
|
|
3318
|
5407
|
'type' => 'color',
|
|
3319
|
5408
|
'label' => __pl('btn_bg_color_label'),
|
|
3320
|
|
- 'default' => '#3e8ef7',
|
|
3321
|
|
- 'css' => ['{{element}} .pagelayer-btn-holder' => 'background-color: {{val}};'],
|
|
5409
|
+ 'default' => '#818a91',
|
|
5410
|
+ 'css' => [
|
|
5411
|
+ '{{element}} .pagelayer-btn-holder' => 'background-color: {{val}};',
|
|
5412
|
+ '{{element}} .pagelayer-btn-anim-thin' => 'background-color: unset !important;',
|
|
5413
|
+ '{{element}} .pagelayer-btn-anim-thin::before' => 'background-color: {{val}};',
|
|
5414
|
+ '{{element}} .pagelayer-btn-anim-thin::after' => 'background-color: {{val}};',
|
|
5415
|
+ ],
|
|
3322
|
5416
|
'req' => array(
|
|
3323
|
|
- 'type' => 'pagelayer-btn-custom',
|
|
5417
|
+ 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
|
|
3324
|
5418
|
),
|
|
3325
|
5419
|
'show' => array(
|
|
3326
|
5420
|
'btn_hover' => ''
|
|
3327
|
5421
|
),
|
|
@@ -3331,9 +5425,9 @@ |
|
3331
|
5425
|
'label' => __pl('btn_color_label'),
|
|
3332
|
5426
|
'default' => '#ffffff',
|
|
3333
|
5427
|
'css' => ['{{element}} .pagelayer-btn-holder' => 'color: {{val}};'],
|
|
3334
|
5428
|
'req' => array(
|
|
3335
|
|
- 'type' => 'pagelayer-btn-custom',
|
|
5429
|
+ 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
|
|
3336
|
5430
|
),
|
|
3337
|
5431
|
'show' => array(
|
|
3338
|
5432
|
'btn_hover' => ''
|
|
3339
|
5433
|
),
|
|
@@ -3347,8 +5441,9 @@ |
|
3347
|
5441
|
'max' => 5000,
|
|
3348
|
5442
|
'default' => 400,
|
|
3349
|
5443
|
'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
|
|
3350
|
5444
|
'show' => array(
|
|
5445
|
+ 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
|
|
3351
|
5446
|
'btn_hover' => 'hover'
|
|
3352
|
5447
|
),
|
|
3353
|
5448
|
),
|
|
3354
|
5449
|
'btn_bg_color_hover' => array(
|
|
@@ -3354,14 +5449,18 @@ |
|
3354
|
5449
|
'btn_bg_color_hover' => array(
|
|
3355
|
5450
|
'type' => 'color',
|
|
3356
|
5451
|
'label' => __pl('btn_bg_color_hover_label'),
|
|
3357
|
5452
|
'default' => '',
|
|
3358
|
|
- 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'background-color: {{val}};'],
|
|
5453
|
+ 'css' => [
|
|
5454
|
+ '{{element}} .pagelayer-btn-custom:hover, {{element}} .pagelayer-btn-anim-slide:after' => 'background-color: {{val}};',
|
|
5455
|
+ ],
|
|
3359
|
5456
|
'req' => array(
|
|
3360
|
|
- 'type' => 'pagelayer-btn-custom',
|
|
5457
|
+ 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
|
|
5458
|
+ '!anim_type' => ['glow','thin'],
|
|
3361
|
5459
|
),
|
|
3362
|
5460
|
'show' => array(
|
|
3363
|
|
- 'btn_hover' => 'hover'
|
|
5461
|
+ 'btn_hover' => 'hover',
|
|
5462
|
+ '!anim_type' => ['glow','thin'],
|
|
3364
|
5463
|
),
|
|
3365
|
5464
|
),
|
|
3366
|
5465
|
'btn_color_hover' => array(
|
|
3367
|
5466
|
'type' => 'color',
|
|
@@ -3368,14 +5467,24 @@ |
|
3368
|
5467
|
'label' => __pl('btn_color_hover_label'),
|
|
3369
|
5468
|
'default' => '',
|
|
3370
|
5469
|
'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'color: {{val}};'],
|
|
3371
|
5470
|
'req' => array(
|
|
3372
|
|
- 'type' => 'pagelayer-btn-custom',
|
|
5471
|
+ 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
|
|
3373
|
5472
|
),
|
|
3374
|
5473
|
'show' => array(
|
|
3375
|
5474
|
'btn_hover' => 'hover'
|
|
3376
|
5475
|
),
|
|
3377
|
5476
|
),
|
|
5477
|
+ 'btn_shadow' => [
|
|
5478
|
+ 'type' => 'box_shadow',
|
|
5479
|
+ 'label' => __pl('shadow'),
|
|
5480
|
+ 'css' => ['{{element}} .pagelayer-btn-holder' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'],
|
|
5481
|
+ ],
|
|
5482
|
+ 'btn_shadow_hover' => [ // This is actually box shadow hover
|
|
5483
|
+ 'type' => 'box_shadow',
|
|
5484
|
+ 'label' => __pl('box_shadow_hover'),
|
|
5485
|
+ 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'],
|
|
5486
|
+ ],
|
|
3378
|
5487
|
],
|
|
3379
|
5488
|
'border_style' => [
|
|
3380
|
5489
|
'btn_bor_hover' => array(
|
|
3381
|
5490
|
'type' => 'radio',
|
|
@@ -3389,9 +5498,12 @@ |
|
3389
|
5498
|
),
|
|
3390
|
5499
|
'btn_border_type' => array(
|
|
3391
|
5500
|
'type' => 'select',
|
|
3392
|
5501
|
'label' => __pl('border_type'),
|
|
3393
|
|
- 'css' => ['{{element}} .pagelayer-btn-holder' => 'border-style: {{val}}'],
|
|
5502
|
+ 'css' => [
|
|
5503
|
+ '{{element}} .pagelayer-btn-holder, {{element}} .pagelayer-btn-anim-thin:after, {{element}} .pagelayer-btn-anim-thin:before' => 'border-style: {{val}};',
|
|
5504
|
+ '{{element}} .pagelayer-btn-anim-thin' => 'border-style: unset !important;',
|
|
5505
|
+ ],
|
|
3394
|
5506
|
'list' => [
|
|
3395
|
5507
|
'' => __pl('none'),
|
|
3396
|
5508
|
'solid' => __pl('solid'),
|
|
3397
|
5509
|
'double' => __pl('double'),
|
|
@@ -3417,9 +5529,10 @@ |
|
3417
|
5529
|
),
|
|
3418
|
5530
|
'btn_border_width' => array(
|
|
3419
|
5531
|
'type' => 'padding',
|
|
3420
|
5532
|
'label' => __pl('border_width'),
|
|
3421
|
|
- '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'],
|
|
5533
|
+ 'screen' => 1,
|
|
5534
|
+ 'css' => ['{{element}} .pagelayer-btn-holder, {{element}} .pagelayer-btn-anim-thin:after, {{element}} .pagelayer-btn-anim-thin: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'],
|
|
3422
|
5535
|
'req' => [
|
|
3423
|
5536
|
'!btn_border_type' => ''
|
|
3424
|
5537
|
],
|
|
3425
|
5538
|
'show' => array(
|
|
@@ -3428,20 +5541,26 @@ |
|
3428
|
5541
|
),
|
|
3429
|
5542
|
'btn_border_radius' => array(
|
|
3430
|
5543
|
'type' => 'padding',
|
|
3431
|
5544
|
'label' => __pl('border_radius'),
|
|
3432
|
|
- '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;'],
|
|
5545
|
+ 'screen' => 1,
|
|
5546
|
+ 'css' => ['{{element}} .pagelayer-btn-holder, {{element}} .pagelayer-btn-anim-glow: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;'],
|
|
3433
|
5547
|
'req' => array(
|
|
3434
|
|
- '!btn_border_type' => ''
|
|
5548
|
+ '!btn_border_type' => '',
|
|
5549
|
+ '!anim_type' => 'slide'
|
|
3435
|
5550
|
),
|
|
3436
|
5551
|
'show' => array(
|
|
3437
|
|
- 'btn_bor_hover' => ''
|
|
5552
|
+ 'btn_bor_hover' => '',
|
|
5553
|
+ '!anim_type' => 'slide'
|
|
3438
|
5554
|
),
|
|
3439
|
5555
|
),
|
|
3440
|
5556
|
'btn_border_type_hover' => array(
|
|
3441
|
5557
|
'type' => 'select',
|
|
3442
|
5558
|
'label' => __pl('border_type'),
|
|
3443
|
|
- 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'border-style: {{val}}'],
|
|
5559
|
+ 'css' => [
|
|
5560
|
+ '{{element}} .pagelayer-btn-holder:hover, {{element}} .pagelayer-btn-anim-thin:hover:after, {{element}} .pagelayer-btn-anim-thin:hover:before' => 'border-style: {{val}}',
|
|
5561
|
+ '{{element}} .pagelayer-btn-anim-thin:hover' => 'border-style: unset !important;',
|
|
5562
|
+ ],
|
|
3444
|
5563
|
'list' => [
|
|
3445
|
5564
|
'' => __pl('none'),
|
|
3446
|
5565
|
'solid' => __pl('solid'),
|
|
3447
|
5566
|
'double' => __pl('double'),
|
|
@@ -3467,9 +5586,12 @@ |
|
3467
|
5586
|
),
|
|
3468
|
5587
|
'btn_border_width_hover' => array(
|
|
3469
|
5588
|
'type' => 'padding',
|
|
3470
|
5589
|
'label' => __pl('border_width_hover'),
|
|
3471
|
|
- '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'],
|
|
5590
|
+ 'screen' => 1,
|
|
5591
|
+ 'css' => [
|
|
5592
|
+ '{{element}} .pagelayer-btn-holder:hover, {{element}} .pagelayer-btn-anim-thin:hover:after, {{element}} .pagelayer-btn-anim-thin:hover: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;'
|
|
5593
|
+ ],
|
|
3472
|
5594
|
'req' => [
|
|
3473
|
5595
|
'!btn_border_type_hover' => ''
|
|
3474
|
5596
|
],
|
|
3475
|
5597
|
'show' => array(
|
|
@@ -3478,35 +5600,86 @@ |
|
3478
|
5600
|
),
|
|
3479
|
5601
|
'btn_border_radius_hover' => array(
|
|
3480
|
5602
|
'type' => 'padding',
|
|
3481
|
5603
|
'label' => __pl('border_radius_hover'),
|
|
3482
|
|
- '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;'],
|
|
5604
|
+ 'screen' => 1,
|
|
5605
|
+ 'css' => ['{{element}} .pagelayer-btn-holder:hover, {{element}} .pagelayer-btn-anim-glow: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;'],
|
|
3483
|
5606
|
'req' => array(
|
|
3484
|
|
- '!btn_border_type_hover' => ''
|
|
5607
|
+ '!btn_border_type_hover' => '',
|
|
5608
|
+ '!anim_type' => 'slide'
|
|
3485
|
5609
|
),
|
|
3486
|
5610
|
'show' => array(
|
|
3487
|
|
- 'btn_bor_hover' => 'hover'
|
|
5611
|
+ 'btn_bor_hover' => 'hover',
|
|
5612
|
+ '!anim_type' => 'slide'
|
|
3488
|
5613
|
),
|
|
3489
|
5614
|
),
|
|
3490
|
5615
|
],
|
|
5616
|
+ 'scroll_to_element' => [
|
|
5617
|
+ 'ele_scrollto' => array(
|
|
5618
|
+ 'type' => 'checkbox',
|
|
5619
|
+ 'label' => __pl('Enable'),
|
|
5620
|
+ 'addClass' => 'pagelayer-scroll-to-element',
|
|
5621
|
+ ),
|
|
5622
|
+ 'ele_scrollto_type' => array(
|
|
5623
|
+ 'type' => 'select',
|
|
5624
|
+ 'label' => __pl('scroll_to'),
|
|
5625
|
+ 'default' => 'totop',
|
|
5626
|
+ 'list' => array(
|
|
5627
|
+ 'toid' => __pl('Element'),
|
|
5628
|
+ 'totop' => __pl('Top'),
|
|
5629
|
+ ),
|
|
5630
|
+ 'addAttr' => 'pagelayer_scrollto_type="{{ele_scrollto_type}}"',
|
|
5631
|
+ 'req' => ['!ele_scrollto' => ''],
|
|
5632
|
+ ),
|
|
5633
|
+ 'ele_scrollto_id' => array(
|
|
5634
|
+ 'type' => 'text',
|
|
5635
|
+ 'label' => __pl('ele_id'),
|
|
5636
|
+ 'default' => '',
|
|
5637
|
+ 'desc' => __pl('ele_scroll_id_desc'),
|
|
5638
|
+ 'addAttr' => 'pagelayer_scrollto_id="{{ele_scrollto_id}}"',
|
|
5639
|
+ 'req' => [ '!ele_scrollto' => '', 'ele_scrollto_type' => 'toid'],
|
|
5640
|
+ ),
|
|
5641
|
+ 'ele_scrollto_id_viewport' => array(
|
|
5642
|
+ 'type' => 'slider',
|
|
5643
|
+ 'label' => __pl('spacing_from_id'),
|
|
5644
|
+ 'min' => -200,
|
|
5645
|
+ 'step' => 1,
|
|
5646
|
+ 'max' => 200,
|
|
5647
|
+ 'default' => 0,
|
|
5648
|
+ 'addAttr' => 'pagelayer_scrollto_id_viewport="{{ele_scrollto_id_viewport}}"',
|
|
5649
|
+ 'req' => [ '!ele_scrollto' => '', 'ele_scrollto_type' => 'toid'],
|
|
5650
|
+ ),
|
|
5651
|
+ 'ele_scrollto_speed' => array(
|
|
5652
|
+ 'type' => 'slider',
|
|
5653
|
+ 'label' => __pl('slider_animation_speed'),
|
|
5654
|
+ 'min' => 0,
|
|
5655
|
+ 'step' => 0.1,
|
|
5656
|
+ 'max' => 10,
|
|
5657
|
+ 'default' => 0.4,
|
|
5658
|
+ 'screen' => 1,
|
|
5659
|
+ 'desc' => __pl('ele_scroll_speed'),
|
|
5660
|
+ 'addAttr' => 'pagelayer_scrollto_speed="{{ele_scrollto_speed}}"',
|
|
5661
|
+ 'req' => [ '!ele_scrollto' => ''],
|
|
5662
|
+ ),
|
|
5663
|
+ ],
|
|
3491
|
5664
|
'styles' => [
|
|
3492
|
5665
|
'btn_style' => __pl('btn_style'),
|
|
3493
|
5666
|
'icon_style' => __pl('icon'),
|
|
3494
|
5667
|
'border_style' => __pl('border_style'),
|
|
5668
|
+ 'scroll_to_element' => __pl('scroll_to_element'),
|
|
3495
|
5669
|
]
|
|
3496
|
5670
|
)
|
|
3497
|
5671
|
);
|
|
3498
|
5672
|
|
|
3499
|
|
-
|
|
3500
|
5673
|
// Social Profile Item
|
|
3501
|
5674
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social', array(
|
|
3502
|
5675
|
'name' => __pl('Social Profile'),
|
|
3503
|
5676
|
'group' => 'button',
|
|
3504
|
|
- 'func' => 'pagelayer_sc_social',
|
|
3505
|
5677
|
'not_visible' => 1,
|
|
3506
|
|
- 'html' => '<div class="pagelayer-icon-holder pagelayer-{{icon}}-icon">
|
|
3507
|
|
- <a if-ext="{{social_url}}" class="pagelayer-ele-link" href="{{social_url}}">
|
|
3508
|
|
- <i class="pagelayer-social-fa fa fa-{{icon}}"></i>
|
|
5678
|
+ 'parent' => [PAGELAYER_SC_PREFIX.'_social_grp'],
|
|
5679
|
+ 'html' => '<div class="pagelayer-icon-holder">
|
|
5680
|
+ <a if-ext="{{social_url}}" class="pagelayer-ele-link" href="{{{social_url}}}">
|
|
5681
|
+ <i class="pagelayer-social-fa {{icon}}"></i>
|
|
3509
|
5682
|
</a>
|
|
3510
|
5683
|
</div>',
|
|
3511
|
5684
|
'params' => array(
|
|
3512
|
5685
|
'icon' => array(
|
|
@@ -3511,15 +5684,19 @@ |
|
3511
|
5684
|
'params' => array(
|
|
3512
|
5685
|
'icon' => array(
|
|
3513
|
5686
|
'type' => 'icon',
|
|
3514
|
5687
|
'label' => __pl('list_icon_label'),
|
|
3515
|
|
- 'default' => 'facebook-official',
|
|
3516
|
|
- 'list' => ['facebook', 'facebook-official', 'facebook-square', 'twitter', 'twitter-square', 'google-plus', 'google-plus-square', 'instagram', 'linkedin', 'linkedin-square', 'behance', 'behance-square', 'pinterest', 'pinterest-p', 'pinterest-square', 'reddit-alien', 'reddit-square', 'reddit', 'rss', 'rss-square', 'skype', 'slideshare', 'snapchat', 'snapchat-ghost', 'snapchat-square', 'soundcloud', 'spotify', 'stack-overflow', 'steam', 'steam-square', 'stumbleupon', 'telegram', 'thumb-tack', 'tripadvisor', 'tumblr', 'tumblr-square', 'twitch', 'vimeo', 'vimeo-square', 'vk', 'weibo', 'weixin', 'whatsapp', 'wordpress', 'xing', 'xing-square', 'yelp', 'youtube', 'youtube-square', 'youtube-play', '500px', 'flickr', 'android', 'github', 'github-square', 'gitlab', 'apple', 'jsfiddle', 'houzz', 'bitbucket', 'bitbucket-square', 'codepen', 'delicious', 'medium', 'meetup', 'mixcloud', 'dribbble', 'foursquare'],
|
|
5688
|
+ 'default' => 'fab fa-facebook-square',
|
|
5689
|
+ 'addAttr' => ['{{element}} .pagelayer-icon-holder' => 'data-icon="{{icon}}"'],
|
|
5690
|
+ 'list' => ['facebook', 'facebook-f', 'facebook-square', 'facebook-messenger', 'twitter', 'twitter-square', 'x-twitter', 'x-twitter-square', 'google-plus', 'google-plus-g', 'google-plus-square', 'instagram', 'linkedin', 'linkedin-in', 'behance', 'behance-square', 'pinterest', 'pinterest-p', 'pinterest-square', 'reddit-alien', 'reddit-square', 'reddit', 'rss', 'rss-square', 'skype', 'slideshare', 'snapchat', 'snapchat-ghost', 'snapchat-square', 'soundcloud', 'spotify', 'stack-overflow', 'steam', 'steam-symbol', 'steam-square', 'stumbleupon', 'stumbleupon-circle', 'telegram', 'telegram-plane', 'thumbtack', 'tripadvisor', 'tumblr', 'tumblr-square', 'twitch', 'vimeo-v', 'vimeo', 'vimeo-square', 'vk', 'weibo', 'weixin', 'whatsapp', 'whatsapp-square', 'wordpress', 'wordpress-simple', 'xing', 'xing-square', 'yelp', 'youtube', 'youtube-square', '500px', 'flickr', 'android', 'github', 'github-alt', 'github-square', 'gitlab', 'apple', 'jsfiddle', 'houzz', 'bitbucket', 'codepen', 'delicious', 'medium', 'medium-m', 'meetup', 'mixcloud', 'dribbble', 'dribbble-square', 'foursquare', 'get-pocket', 'tiktok'],
|
|
5691
|
+ 'onchange' => 'pagelayer_social_icon_onchange'
|
|
3517
|
5692
|
),
|
|
3518
|
5693
|
'social_url' => array(
|
|
3519
|
5694
|
'type' => 'link',
|
|
3520
|
|
- 'label' => __pl('social_url_label')
|
|
3521
|
|
- )
|
|
5695
|
+ 'label' => __pl('social_url_label'),
|
|
5696
|
+ 'selector' => '.pagelayer-ele-link',
|
|
5697
|
+ 'default' => get_option('pagelayer-facebook-url'),
|
|
5698
|
+ ),
|
|
3522
|
5699
|
)
|
|
3523
|
5700
|
)
|
|
3524
|
5701
|
);
|
|
3525
|
5702
|
|
|
@@ -3526,9 +5703,8 @@ |
|
3526
|
5703
|
// Social Profile
|
|
3527
|
5704
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
|
|
3528
|
5705
|
'name' => __pl('Social Profile'),
|
|
3529
|
5706
|
'group' => 'button',
|
|
3530
|
|
- 'func' => 'pagelayer_sc_social_grp',
|
|
3531
|
5707
|
'has_group' => [
|
|
3532
|
5708
|
'section' => 'params',
|
|
3533
|
5709
|
'prop' => 'elements'
|
|
3534
|
5710
|
],
|
|
@@ -3549,9 +5725,9 @@ |
|
3549
|
5725
|
'bg_shape' => array(
|
|
3550
|
5726
|
'type' => 'select',
|
|
3551
|
5727
|
'label' => __pl('icon_background_shape'),
|
|
3552
|
5728
|
'default' => '',
|
|
3553
|
|
- 'css' => ['{{element}} .fa' => 'height:1em; width:1em; position: absolute; top: 50%; left: 50%; transform: translate(-50% , -50%);',
|
|
5729
|
+ 'css' => ['{{element}} i' => 'height:1em; width:1em; position: absolute; top: 50%; left: 50%; transform: translate(-50% , -50%);',
|
|
3554
|
5730
|
'{{element}} .pagelayer-icon-holder' => 'position: relative; min-height: 1em; min-width: 1em;'],
|
|
3555
|
5731
|
'addClass' => '{{val}}',
|
|
3556
|
5732
|
'list' => array(
|
|
3557
|
5733
|
'' => __pl('icon_shape_none'),
|
|
@@ -3567,8 +5743,9 @@ |
|
3567
|
5743
|
'min' => 1,
|
|
3568
|
5744
|
'step' => 1,
|
|
3569
|
5745
|
'max' => 500,
|
|
3570
|
5746
|
'default' => 10,
|
|
5747
|
+ 'screen' => 1,
|
|
3571
|
5748
|
'req' => array(
|
|
3572
|
5749
|
'!bg_shape' => ''
|
|
3573
|
5750
|
)
|
|
3574
|
5751
|
),
|
|
@@ -3576,8 +5753,9 @@ |
|
3576
|
5753
|
'type' => 'radio',
|
|
3577
|
5754
|
'label' => __pl('obj_align_label'),
|
|
3578
|
5755
|
'default' => 'center',
|
|
3579
|
5756
|
'css' => 'text-align: {{val}}',
|
|
5757
|
+ 'screen' => 1,
|
|
3580
|
5758
|
'list' => array(
|
|
3581
|
5759
|
'left' => __pl('left'),
|
|
3582
|
5760
|
'center' => __pl('center'),
|
|
3583
|
5761
|
'right' => __pl('right')
|
|
@@ -3586,8 +5764,9 @@ |
|
3586
|
5764
|
'group_layout' => array(
|
|
3587
|
5765
|
'type' => 'radio',
|
|
3588
|
5766
|
'label' => __pl('layout'),
|
|
3589
|
5767
|
'default' => 'pagelayer-btn-grp-horizontal',
|
|
5768
|
+ 'screen' => 1,
|
|
3590
|
5769
|
'css' => ['{{element}} > div' => 'display: inline-block;'],
|
|
3591
|
5770
|
'list' => array(
|
|
3592
|
5771
|
'pagelayer-btn-grp-horizontal' => __pl('horizontal'),
|
|
3593
|
5772
|
'' => __pl('vertical')
|
|
@@ -3600,8 +5779,9 @@ |
|
3600
|
5779
|
'min' => 0,
|
|
3601
|
5780
|
'step' => 1,
|
|
3602
|
5781
|
'max' => 100,
|
|
3603
|
5782
|
'default' => 3,
|
|
5783
|
+ 'screen' => 1,
|
|
3604
|
5784
|
)
|
|
3605
|
5785
|
],
|
|
3606
|
5786
|
'icon_style' => [
|
|
3607
|
5787
|
'icon_size' => array(
|
|
@@ -3612,8 +5792,9 @@ |
|
3612
|
5792
|
'min' => 1,
|
|
3613
|
5793
|
'step' => 1,
|
|
3614
|
5794
|
'max' => 500,
|
|
3615
|
5795
|
'default' => 40,
|
|
5796
|
+ 'screen' => 1,
|
|
3616
|
5797
|
),
|
|
3617
|
5798
|
'color_scheme' => array(
|
|
3618
|
5799
|
'type' => 'select',
|
|
3619
|
5800
|
'label' => __pl('color'),
|
|
@@ -3646,9 +5827,9 @@ |
|
3646
|
5827
|
),
|
|
3647
|
5828
|
'icon_bg_color' => array(
|
|
3648
|
5829
|
'type' => 'color',
|
|
3649
|
5830
|
'label' => __pl('social_bg_color_label'),
|
|
3650
|
|
- 'default' => '#3E8EF7',
|
|
5831
|
+ 'default' => '#0986c0',
|
|
3651
|
5832
|
'css' => ['{{element}} .pagelayer-icon-holder' => 'background-color: {{val}} !important;'],
|
|
3652
|
5833
|
'req' => array(
|
|
3653
|
5834
|
'!bg_shape' => '',
|
|
3654
|
5835
|
'color_scheme' => ''
|
|
@@ -3654,8 +5835,64 @@ |
|
3654
|
5835
|
'color_scheme' => ''
|
|
3655
|
5836
|
),
|
|
3656
|
5837
|
'show' => ['social_hover' => '']
|
|
3657
|
5838
|
),
|
|
5839
|
+ 'icon_color_hover' => array(
|
|
5840
|
+ 'type' => 'color',
|
|
5841
|
+ 'label' => __pl('social_color_label'),
|
|
5842
|
+ 'default' => '#ffffff',
|
|
5843
|
+ 'css' => ['{{element}} .pagelayer-icon-holder:hover .pagelayer-social-fa' => 'color: {{val}} !important;'],
|
|
5844
|
+ 'req' => array(
|
|
5845
|
+ 'color_scheme' => ''
|
|
5846
|
+ ),
|
|
5847
|
+ 'show' => ['social_hover' => 'hover']
|
|
5848
|
+ ),
|
|
5849
|
+ 'icon_bg_color_hover' => array(
|
|
5850
|
+ 'type' => 'color',
|
|
5851
|
+ 'label' => __pl('social_bg_color_label'),
|
|
5852
|
+ 'default' => '#0986c0',
|
|
5853
|
+ 'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'background-color: {{val}} !important;'],
|
|
5854
|
+ 'req' => array(
|
|
5855
|
+ '!bg_shape' => '',
|
|
5856
|
+ 'color_scheme' => ''
|
|
5857
|
+ ),
|
|
5858
|
+ 'show' => ['social_hover' => 'hover']
|
|
5859
|
+ ),
|
|
5860
|
+ 'anim_hover' => array(
|
|
5861
|
+ 'type' => 'select',
|
|
5862
|
+ 'label' => __pl('icon_animation'),
|
|
5863
|
+ 'list' => [
|
|
5864
|
+ '' => __pl('none'),
|
|
5865
|
+ 'grow' => __pl('Grow'),
|
|
5866
|
+ 'shrink' => __pl('Shrink'),
|
|
5867
|
+ 'pulse' => __pl('Pulse'),
|
|
5868
|
+ 'pulse-grow' => __pl('Pulse Grow'),
|
|
5869
|
+ 'pulse-shrink' => __pl('Pulse Shrink'),
|
|
5870
|
+ 'push' => __pl('Push'),
|
|
5871
|
+ 'pop' => __pl('Pop'),
|
|
5872
|
+ 'buzz' => __pl('Buzz'),
|
|
5873
|
+ 'buzz-out' => __pl('Buzz Out'),
|
|
5874
|
+ 'float' => __pl('Float'),
|
|
5875
|
+ 'sink' => __pl('Sink'),
|
|
5876
|
+ 'bob' => __pl('Bob'),
|
|
5877
|
+ 'hang' => __pl('Hang'),
|
|
5878
|
+ 'bounce-in' => __pl('Bounce In'),
|
|
5879
|
+ 'bounce-out' => __pl('Bounce Out'),
|
|
5880
|
+ 'rotate' => __pl('Rotate'),
|
|
5881
|
+ 'grow-rotate' => __pl('Grow Rotate'),
|
|
5882
|
+ 'skew-forward' => __pl('Skew Forward'),
|
|
5883
|
+ 'skew-backward' => __pl('Skew Backward'),
|
|
5884
|
+ 'wobble-vertical' => __pl('Wobble Vertical'),
|
|
5885
|
+ 'wobble-horizontal' => __pl('Wobble Horizontal'),
|
|
5886
|
+ 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
|
|
5887
|
+ 'wobble-top-to-right' => __pl('Wobble Top To Right'),
|
|
5888
|
+ 'wobble-top' => __pl('Wobble Top'),
|
|
5889
|
+ 'wobble-bottom' => __pl('Wobble Bottom'),
|
|
5890
|
+ 'wobble-skew' => __pl('Wobble Skew'),
|
|
5891
|
+ ],
|
|
5892
|
+ 'addAttr' => 'pagelayer-animation="{{anim_hover}}"',
|
|
5893
|
+ 'show' => ['social_hover' => 'hover']
|
|
5894
|
+ ),
|
|
3658
|
5895
|
'icon_border_type' => array(
|
|
3659
|
5896
|
'type' => 'select',
|
|
3660
|
5897
|
'label' => __pl('border_type'),
|
|
3661
|
5898
|
'css' => ['{{element}} .pagelayer-icon-holder' => 'border-style: {{val}}'],
|
|
@@ -3681,8 +5918,9 @@ |
|
3681
|
5918
|
),
|
|
3682
|
5919
|
'icon_border_width' => array(
|
|
3683
|
5920
|
'type' => 'padding',
|
|
3684
|
5921
|
'label' => __pl('border_width'),
|
|
5922
|
+ 'screen' => 1,
|
|
3685
|
5923
|
'css' => ['{{element}} .pagelayer-icon-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'],
|
|
3686
|
5924
|
'req' => [
|
|
3687
|
5925
|
'!icon_border_type' => ''
|
|
3688
|
5926
|
],
|
|
@@ -3690,8 +5928,9 @@ |
|
3690
|
5928
|
),
|
|
3691
|
5929
|
'icon_border_radius' => array(
|
|
3692
|
5930
|
'type' => 'padding',
|
|
3693
|
5931
|
'label' => __pl('border_radius'),
|
|
5932
|
+ 'screen' => 1,
|
|
3694
|
5933
|
'css' => ['{{element}} .pagelayer-icon-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;'],
|
|
3695
|
5934
|
'req' => array(
|
|
3696
|
5935
|
'!icon_border_type' => ''
|
|
3697
|
5936
|
),
|
|
@@ -3704,8 +5943,9 @@ |
|
3704
|
5943
|
'min' => 0,
|
|
3705
|
5944
|
'step' => 100,
|
|
3706
|
5945
|
'max' => 5000,
|
|
3707
|
5946
|
'default' => 400,
|
|
5947
|
+ 'screen' => 1,
|
|
3708
|
5948
|
'css' => ['{{element}} .pagelayer-icon-holder' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;',
|
|
3709
|
5949
|
'{{element}} .pagelayer-social-fa' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
|
|
3710
|
5950
|
'show' => array(
|
|
3711
|
5951
|
'social_hover' => 'hover'
|
|
@@ -3710,66 +5950,8 @@ |
|
3710
|
5950
|
'show' => array(
|
|
3711
|
5951
|
'social_hover' => 'hover'
|
|
3712
|
5952
|
),
|
|
3713
|
5953
|
),
|
|
3714
|
|
- 'anim_hover' => array(
|
|
3715
|
|
- 'type' => 'select',
|
|
3716
|
|
- 'label' => __pl('icon_animation'),
|
|
3717
|
|
- 'list' => [
|
|
3718
|
|
- '' => __pl('none'),
|
|
3719
|
|
- 'grow' => __pl('Grow'),
|
|
3720
|
|
- 'shrink' => __pl('Shrink'),
|
|
3721
|
|
- 'pulse' => __pl('Pulse'),
|
|
3722
|
|
- 'pulse-grow' => __pl('Pulse Grow'),
|
|
3723
|
|
- 'pulse-shrink' => __pl('Pulse Shrink'),
|
|
3724
|
|
- 'push' => __pl('Push'),
|
|
3725
|
|
- 'pop' => __pl('Pop'),
|
|
3726
|
|
- 'buzz' => __pl('Buzz'),
|
|
3727
|
|
- 'buzz-out' => __pl('Buzz Out'),
|
|
3728
|
|
- 'float' => __pl('Float'),
|
|
3729
|
|
- 'sink' => __pl('Sink'),
|
|
3730
|
|
- 'bob' => __pl('Bob'),
|
|
3731
|
|
- 'hang' => __pl('Hang'),
|
|
3732
|
|
- 'bounce-in' => __pl('Bounce In'),
|
|
3733
|
|
- 'bounce-out' => __pl('Bounce Out'),
|
|
3734
|
|
- 'rotate' => __pl('Rotate'),
|
|
3735
|
|
- 'grow-rotate' => __pl('Grow Rotate'),
|
|
3736
|
|
- 'skew-forward' => __pl('Skew Forward'),
|
|
3737
|
|
- 'skew-backward' => __pl('Skew Backward'),
|
|
3738
|
|
- 'wobble-vertical' => __pl('Wobble Vertical'),
|
|
3739
|
|
- 'wobble-horizontal' => __pl('Wobble Horizontal'),
|
|
3740
|
|
- 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
|
|
3741
|
|
- 'wobble-top-to-right' => __pl('Wobble Top To Right'),
|
|
3742
|
|
- 'wobble-top' => __pl('Wobble Top'),
|
|
3743
|
|
- 'wobble-bottom' => __pl('Wobble Bottom'),
|
|
3744
|
|
- 'wobble-skew' => __pl('Wobble Skew'),
|
|
3745
|
|
- ],
|
|
3746
|
|
- 'show' => array(
|
|
3747
|
|
- 'social_hover' => 'hover',
|
|
3748
|
|
- ),
|
|
3749
|
|
- 'addAttr' => 'pagelayer-animation="{{anim_hover}}"',
|
|
3750
|
|
- ),
|
|
3751
|
|
- 'icon_color_hover' => array(
|
|
3752
|
|
- 'type' => 'color',
|
|
3753
|
|
- 'label' => __pl('social_color_label'),
|
|
3754
|
|
- 'default' => '#ffffff',
|
|
3755
|
|
- 'css' => ['{{element}} .pagelayer-icon-holder:hover .pagelayer-social-fa' => 'color: {{val}} !important;'],
|
|
3756
|
|
- 'req' => array(
|
|
3757
|
|
- 'color_scheme' => ''
|
|
3758
|
|
- ),
|
|
3759
|
|
- 'show' => ['social_hover' => 'hover']
|
|
3760
|
|
- ),
|
|
3761
|
|
- 'icon_bg_color_hover' => array(
|
|
3762
|
|
- 'type' => 'color',
|
|
3763
|
|
- 'label' => __pl('social_bg_color_label'),
|
|
3764
|
|
- 'default' => '#3E8EF7',
|
|
3765
|
|
- 'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'background-color: {{val}} !important;'],
|
|
3766
|
|
- 'req' => array(
|
|
3767
|
|
- '!bg_shape' => '',
|
|
3768
|
|
- 'color_scheme' => ''
|
|
3769
|
|
- ),
|
|
3770
|
|
- 'show' => ['social_hover' => 'hover']
|
|
3771
|
|
- ),
|
|
3772
|
5954
|
'icon_border_type_hover' => array(
|
|
3773
|
5955
|
'type' => 'select',
|
|
3774
|
5956
|
'label' => __pl('border_type'),
|
|
3775
|
5957
|
'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'border-style: {{val}}'],
|
|
@@ -3795,8 +5977,9 @@ |
|
3795
|
5977
|
),
|
|
3796
|
5978
|
'icon_border_width_hover' => array(
|
|
3797
|
5979
|
'type' => 'padding',
|
|
3798
|
5980
|
'label' => __pl('border_width_hover'),
|
|
5981
|
+ 'screen' => 1,
|
|
3799
|
5982
|
'css' => ['{{element}} .pagelayer-icon-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'],
|
|
3800
|
5983
|
'req' => [
|
|
3801
|
5984
|
'!icon_border_type_hover' => ''
|
|
3802
|
5985
|
],
|
|
@@ -3804,8 +5987,9 @@ |
|
3804
|
5987
|
),
|
|
3805
|
5988
|
'icon_border_radius_hover' => array(
|
|
3806
|
5989
|
'type' => 'padding',
|
|
3807
|
5990
|
'label' => __pl('border_radius_hover'),
|
|
5991
|
+ 'screen' => 1,
|
|
3808
|
5992
|
'css' => ['{{element}} .pagelayer-icon-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;'],
|
|
3809
|
5993
|
'req' => array(
|
|
3810
|
5994
|
'!icon_border_type_hover' => ''
|
|
3811
|
5995
|
),
|
|
@@ -3826,14 +6010,13 @@ |
|
3826
|
6010
|
// Video
|
|
3827
|
6011
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video', array(
|
|
3828
|
6012
|
'name' => __pl('video'),
|
|
3829
|
6013
|
'group' => 'media',
|
|
3830
|
|
- 'func' => 'pagelayer_sc_video',
|
|
3831
|
6014
|
'html' => '<div class="pagelayer-video-holder pagelayer-video-{{video_ratio}}">
|
|
3832
|
|
- <iframe if="{{src}}" id="embed_video" class="pagelayer-video-iframe" width="100%" height="auto" src="{{vid_src}}"></iframe>
|
|
6015
|
+ <iframe if="{{src}}" id="embed_video" class="pagelayer-video-iframe" width="100%" height="auto" src="{{vid_src}}" frameborder="0"></iframe>
|
|
3833
|
6016
|
<a if-ext={{lightbox}} href="{{{src-url}}}">
|
|
3834
|
6017
|
<div if={{overlay}} class="pagelayer-video-overlay" style="background-image:url({{video_overlay_image-url}});">
|
|
3835
|
|
- <i class="fa fa-{{play_icon}}" aria-hidden="true"></i>
|
|
6018
|
+ <i class="{{play_icon}}" aria-hidden="true"></i>
|
|
3836
|
6019
|
</div>
|
|
3837
|
6020
|
</a>
|
|
3838
|
6021
|
</div>',
|
|
3839
|
6022
|
'params' => array(
|
|
@@ -3839,9 +6022,9 @@ |
|
3839
|
6022
|
'params' => array(
|
|
3840
|
6023
|
'src' => array(
|
|
3841
|
6024
|
'type' => 'video',
|
|
3842
|
6025
|
'label' => __pl('video_src_label'),
|
|
3843
|
|
- 'default' => 'https://www.youtube.com/watch?v=VT7WfVp1owQ',
|
|
6026
|
+ 'default' => 'https://www.youtube.com/watch?v=t8Iz-v-qce8',
|
|
3844
|
6027
|
'desc' => __pl('video_src_desc'),
|
|
3845
|
6028
|
),
|
|
3846
|
6029
|
'lightbox' => array(
|
|
3847
|
6030
|
'type' => 'checkbox',
|
|
@@ -3858,9 +6041,9 @@ |
|
3858
|
6041
|
],
|
|
3859
|
6042
|
),
|
|
3860
|
6043
|
'mute' => array(
|
|
3861
|
6044
|
'type' => 'checkbox',
|
|
3862
|
|
- 'label' => __pl('Mute'),
|
|
6045
|
+ 'label' => __pl('mute'),
|
|
3863
|
6046
|
),
|
|
3864
|
6047
|
'loop' => array(
|
|
3865
|
6048
|
'type' => 'checkbox',
|
|
3866
|
6049
|
'label' => __pl('loop'),
|
|
@@ -3866,9 +6049,9 @@ |
|
3866
|
6049
|
'label' => __pl('loop'),
|
|
3867
|
6050
|
),
|
|
3868
|
6051
|
'video_ratio' => array(
|
|
3869
|
6052
|
'type' => 'select',
|
|
3870
|
|
- 'label' => __pl('video aspect ratio'),
|
|
6053
|
+ 'label' => __pl('aspect_ratio'),
|
|
3871
|
6054
|
'default' => 'aspect-8-5',
|
|
3872
|
6055
|
'list' => array(
|
|
3873
|
6056
|
'aspect-1-1' => __pl('1:1'),
|
|
3874
|
6057
|
'aspect-3-2' => __pl('3:2'),
|
|
@@ -3896,9 +6079,9 @@ |
|
3896
|
6079
|
),
|
|
3897
|
6080
|
'play_icon' => array(
|
|
3898
|
6081
|
'type' => 'icon',
|
|
3899
|
6082
|
'label' => __pl('list_icon_label'),
|
|
3900
|
|
- 'default' => 'play-circle',
|
|
6083
|
+ 'default' => 'fas fa-play-circle',
|
|
3901
|
6084
|
'req' => array(
|
|
3902
|
6085
|
'overlay' => 'true'
|
|
3903
|
6086
|
)
|
|
3904
|
6087
|
),
|
|
@@ -3904,9 +6087,9 @@ |
|
3904
|
6087
|
),
|
|
3905
|
6088
|
'icon_color' => array(
|
|
3906
|
6089
|
'type' => 'color',
|
|
3907
|
6090
|
'label' => __pl('service_heading_color'),
|
|
3908
|
|
- 'default' => '#3e8ef7',
|
|
6091
|
+ 'default' => '#0986c0',
|
|
3909
|
6092
|
'css' => ['{{element}} .pagelayer-video-overlay i' => 'color:{{val}}'],
|
|
3910
|
6093
|
'req' => array(
|
|
3911
|
6094
|
'overlay' => 'true'
|
|
3912
|
6095
|
)
|
|
@@ -3924,9 +6107,9 @@ |
|
3924
|
6107
|
)
|
|
3925
|
6108
|
),
|
|
3926
|
6109
|
'tooltip_text_shadow' => array(
|
|
3927
|
6110
|
'type' => 'shadow',
|
|
3928
|
|
- 'label' => __pl('tooltip_text_shadow'),
|
|
6111
|
+ 'label' => __pl('shadow'),
|
|
3929
|
6112
|
'css' => ['{{element}} .pagelayer-video-overlay i' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
|
|
3930
|
6113
|
'req' => array(
|
|
3931
|
6114
|
'overlay' => 'true'
|
|
3932
|
6115
|
)
|
|
@@ -3946,19 +6129,21 @@ |
|
3946
|
6129
|
// Service Box
|
|
3947
|
6130
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
|
|
3948
|
6131
|
'name' => __pl('Image Box'),
|
|
3949
|
6132
|
'group' => 'other',
|
|
3950
|
|
- 'func' => 'pagelayer_sc_service',
|
|
3951
|
6133
|
'innerHTML' => 'service_text',
|
|
3952
|
6134
|
'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
|
|
3953
|
6135
|
<div if="{{service_image}}" class="pagelayer-service-image">
|
|
3954
|
|
- <img class="pagelayer-animation-{{anim_hover}}" src="{{func_image}}">
|
|
6136
|
+ <img class="pagelayer-img pagelayer-animation-{{anim_hover}}" src="{{func_image}}" title="{{{service_image-title}}}" alt="{{{service_image-alt}}}" srcset="{{pagelayer-srcset}}" />
|
|
3955
|
6137
|
</div>
|
|
3956
|
6138
|
<div class="pagelayer-service-details">
|
|
3957
|
|
- <div if={{service_heading}} class="pagelayer-service-heading">{{service_heading}}</div>
|
|
6139
|
+ <a if-ext={{heading_url}} href="{{{heading_url}}}" class="pagelayer-ele-link pagelayer-service-heading-link" >
|
|
6140
|
+ <div if={{service_heading}} class="pagelayer-service-heading">{{service_heading}}</div>
|
|
6141
|
+ </a>
|
|
3958
|
6142
|
<div if={{service_text}} class="pagelayer-service-text">{{service_text}}</div>
|
|
3959
|
|
- <a if="{{service_button}}" href="{{service_button_url}}" class="pagelayer-service-btn {{service_button_type}} pagelayer-ele-link pagelayer-button {{service_button_size}}">{{service_button_text}}</a>
|
|
6143
|
+ <a if="{{service_button}}" href="{{{service_button_url}}}" class="pagelayer-service-btn {{service_button_type}} pagelayer-ele-link pagelayer-button {{service_button_size}}">{{service_button_text}}</a>
|
|
3960
|
6144
|
</div>
|
|
6145
|
+ <a if-ext={{box_url}} href="{{{box_url}}}" class="pagelayer-ele-link pagelayer-box-link"> </a>
|
|
3961
|
6146
|
</div>',
|
|
3962
|
6147
|
'params' => [
|
|
3963
|
6148
|
'service_image' => array(
|
|
3964
|
6149
|
'type' => 'image',
|
|
@@ -3963,8 +6148,9 @@ |
|
3963
|
6148
|
'service_image' => array(
|
|
3964
|
6149
|
'type' => 'image',
|
|
3965
|
6150
|
'label' => __pl('service_box_image_icon_label'),
|
|
3966
|
6151
|
'default' => PAGELAYER_URL.'/images/default-image.png',
|
|
6152
|
+ 'retina' => 1,
|
|
3967
|
6153
|
),
|
|
3968
|
6154
|
'service_image_size' => array(
|
|
3969
|
6155
|
'type' => 'radio',
|
|
3970
|
6156
|
'label' => __pl('service_box_image_icon_size_label'),
|
|
@@ -3981,13 +6167,18 @@ |
|
3981
|
6167
|
'min' => '0',
|
|
3982
|
6168
|
'max' => '2000',
|
|
3983
|
6169
|
'screen' => 1,
|
|
3984
|
6170
|
'default' => '200',
|
|
3985
|
|
- 'css' => ['{{element}} .pagelayer-service-image img' => 'width:{{val}}px; height: auto;'],
|
|
6171
|
+ 'css' => ['{{element}} .pagelayer-service-image img' => 'width:{{val}}px;'],
|
|
3986
|
6172
|
'req' => array(
|
|
3987
|
6173
|
'service_image_size' => 'custom',
|
|
3988
|
6174
|
)
|
|
3989
|
6175
|
),
|
|
6176
|
+ 'box_url' => array(
|
|
6177
|
+ 'type' => 'link',
|
|
6178
|
+ 'label' => __pl('url'),
|
|
6179
|
+ 'selector' => '.pagelayer-box-link',
|
|
6180
|
+ ),
|
|
3990
|
6181
|
'anim_hover' => array(
|
|
3991
|
6182
|
'type' => 'select',
|
|
3992
|
6183
|
'label' => __pl('icon_animation'),
|
|
3993
|
6184
|
'list' => [
|
|
@@ -4018,11 +6209,12 @@ |
|
4018
|
6209
|
'wobble-top' => __pl('Wobble Top'),
|
|
4019
|
6210
|
'wobble-bottom' => __pl('Wobble Bottom'),
|
|
4020
|
6211
|
'wobble-skew' => __pl('Wobble Skew'),
|
|
4021
|
6212
|
],
|
|
6213
|
+ 'addClass' => 'pagelayer-anim-par'
|
|
4022
|
6214
|
)
|
|
4023
|
6215
|
],
|
|
4024
|
|
- 'service_img_style' => [
|
|
6216
|
+ 'service_img_style' => [
|
|
4025
|
6217
|
'service_alignment' => array(
|
|
4026
|
6218
|
'type' => 'radio',
|
|
4027
|
6219
|
'label' => __pl('service_box_media_alignment'),
|
|
4028
|
6220
|
'default' => 'top',
|
|
@@ -4042,13 +6234,183 @@ |
|
4042
|
6234
|
'bottom' => __pl('bottom'),
|
|
4043
|
6235
|
),
|
|
4044
|
6236
|
'req' => ['!service_alignment' => 'top']
|
|
4045
|
6237
|
),
|
|
6238
|
+ 'service_image_height' => array(
|
|
6239
|
+ 'type' => 'slider',
|
|
6240
|
+ 'label' => __pl('img_height'),
|
|
6241
|
+ 'min' => '0',
|
|
6242
|
+ 'screen' => 1,
|
|
6243
|
+ 'css' => ['{{element}} .pagelayer-service-image img' => 'height:{{val}}px;'],
|
|
6244
|
+ ),
|
|
6245
|
+ 'service_image_object_fit' => array(
|
|
6246
|
+ 'type' => 'select',
|
|
6247
|
+ 'label' => __pl('object_fit'),
|
|
6248
|
+ 'screen' => 1,
|
|
6249
|
+ 'list' => array(
|
|
6250
|
+ '' => __pl('none'),
|
|
6251
|
+ 'contain' => __pl('contain'),
|
|
6252
|
+ 'cover' => __pl('cover'),
|
|
6253
|
+ 'fill' => __pl('fill'),
|
|
6254
|
+ 'scale-down' => __pl('scale_down'),
|
|
6255
|
+ ),
|
|
6256
|
+ 'css' => ['{{element}} .pagelayer-service-image img' => 'object-fit:{{val}};'],
|
|
6257
|
+ ),
|
|
6258
|
+ 'service_image_object_pos' => array(
|
|
6259
|
+ 'type' => 'select',
|
|
6260
|
+ 'label' => __pl('object_pos'),
|
|
6261
|
+ 'screen' => 1,
|
|
6262
|
+ 'list' => array(
|
|
6263
|
+ '' => __pl('none'),
|
|
6264
|
+ 'top' => __pl('top'),
|
|
6265
|
+ 'bottom' => __pl('bottom'),
|
|
6266
|
+ 'center' => __pl('center'),
|
|
6267
|
+ 'left' => __pl('left'),
|
|
6268
|
+ 'right' => __pl('right'),
|
|
6269
|
+ ),
|
|
6270
|
+ 'css' => ['{{element}} .pagelayer-service-image img' => 'object-position:{{val}};'],
|
|
6271
|
+ 'req' => [ '!service_image_object_fit' => ''],
|
|
6272
|
+ ),
|
|
6273
|
+ 'service_img_alignment' => array(
|
|
6274
|
+ 'type' => 'radio',
|
|
6275
|
+ 'label' => __pl('horizontal_pos'),
|
|
6276
|
+ 'screen' => 1,
|
|
6277
|
+ 'css' => ['{{element}} .pagelayer-service-image' => 'text-align: {{val}};,'],
|
|
6278
|
+ 'list' => array(
|
|
6279
|
+ 'left' => __pl('left'),
|
|
6280
|
+ 'center' => __pl('center'),
|
|
6281
|
+ 'right' => __pl('right'),
|
|
6282
|
+ ),
|
|
6283
|
+ 'req' => ['service_alignment' => 'top']
|
|
6284
|
+ ),
|
|
4046
|
6285
|
'service_image_spacing' => array(
|
|
4047
|
6286
|
'type' => 'padding',
|
|
4048
|
6287
|
'label' => __pl('service_image_spacing'),
|
|
4049
|
|
- 'css' => ['{{element}} .pagelayer-service-image img' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
6288
|
+ 'css' => ['{{element}} .pagelayer-service-image' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'],
|
|
4050
|
6289
|
),
|
|
6290
|
+ 'img_bor_state' => array(
|
|
6291
|
+ 'type' => 'radio',
|
|
6292
|
+ 'label' => __pl('icon_state'),
|
|
6293
|
+ 'default' => 'normal',
|
|
6294
|
+ 'list' => array(
|
|
6295
|
+ 'normal' => __pl('Normal'),
|
|
6296
|
+ 'hover' => __pl('Hover'),
|
|
6297
|
+ ),
|
|
6298
|
+ ),
|
|
6299
|
+ 'img_filter' => array(
|
|
6300
|
+ 'type' => 'filter',
|
|
6301
|
+ 'label' => __pl('filter'),
|
|
6302
|
+ 'default' => '0,100,100,0,0,100,100',
|
|
6303
|
+ '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]}}%)'],
|
|
6304
|
+ 'show' => ['img_bor_state' => 'normal'],
|
|
6305
|
+ ),
|
|
6306
|
+ 'img_border_type' => array(
|
|
6307
|
+ 'type' => 'select',
|
|
6308
|
+ 'label' => __pl('icon_border_type'),
|
|
6309
|
+ 'css' => ['{{element}} .pagelayer-service-image img' =>'border-style: {{val}};'],
|
|
6310
|
+ 'list' => [
|
|
6311
|
+ '' => __pl('none'),
|
|
6312
|
+ 'solid' => __pl('solid'),
|
|
6313
|
+ 'double' => __pl('double'),
|
|
6314
|
+ 'dotted' => __pl('dotted'),
|
|
6315
|
+ 'dashed' => __pl('dashed'),
|
|
6316
|
+ 'groove' => __pl('groove'),
|
|
6317
|
+ ],
|
|
6318
|
+ 'show' => ['img_bor_state' => 'normal'],
|
|
6319
|
+ ),
|
|
6320
|
+ 'img_border_color' => array(
|
|
6321
|
+ 'type' => 'color',
|
|
6322
|
+ 'label' => __pl('icon_border_color_label'),
|
|
6323
|
+ 'default' => '#0986c0',
|
|
6324
|
+ 'css' => ['{{element}} .pagelayer-service-image img' => 'border-color: {{val}};'],
|
|
6325
|
+ 'req' => [
|
|
6326
|
+ '!img_border_type' => '',
|
|
6327
|
+ ],
|
|
6328
|
+ 'show' => ['img_bor_state' => 'normal'],
|
|
6329
|
+ ),
|
|
6330
|
+ 'img_border_width' => array(
|
|
6331
|
+ 'type' => 'padding',
|
|
6332
|
+ 'label' => __pl('icon_border_width'),
|
|
6333
|
+ 'screen' => 1,
|
|
6334
|
+ 'css' => ['{{element}} .pagelayer-service-image 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;'],
|
|
6335
|
+ 'req' => [
|
|
6336
|
+ '!img_border_type' => '',
|
|
6337
|
+ ],
|
|
6338
|
+ 'show' => ['img_bor_state' => 'normal'],
|
|
6339
|
+ ),
|
|
6340
|
+ 'img_border_radius' => array(
|
|
6341
|
+ 'type' => 'padding',
|
|
6342
|
+ 'label' => __pl('border_radius'),
|
|
6343
|
+ 'screen' => 1,
|
|
6344
|
+ 'units' => ['px', 'em', '%'],
|
|
6345
|
+ 'css' => ['{{element}} .pagelayer-service-image img' => '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]}};'],
|
|
6346
|
+ 'req' => [
|
|
6347
|
+ '!img_border_type' => '',
|
|
6348
|
+ ],
|
|
6349
|
+ 'show' => ['img_bor_state' => 'normal'],
|
|
6350
|
+ ),
|
|
6351
|
+ 'img_transition' => array(
|
|
6352
|
+ 'type' => 'spinner',
|
|
6353
|
+ 'label' => __pl('ele_bg_hover_delay'),
|
|
6354
|
+ 'min' => 0,
|
|
6355
|
+ 'step' => 100,
|
|
6356
|
+ 'max' => 5000,
|
|
6357
|
+ 'default' => 400,
|
|
6358
|
+ 'css' => ['{{element}} .pagelayer-service-image img' =>'-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
|
|
6359
|
+ 'show' => ['img_bor_state' => 'hover'],
|
|
6360
|
+ ),
|
|
6361
|
+ 'img_filter_hover' => array(
|
|
6362
|
+ 'type' => 'filter',
|
|
6363
|
+ 'label' => __pl('filter'),
|
|
6364
|
+ 'default' => '0,100,100,0,0,100,100',
|
|
6365
|
+ 'css' => ['{{element}}:hover 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]}}%)'],
|
|
6366
|
+ 'show' => ['img_bor_state' => 'hover'],
|
|
6367
|
+ ),
|
|
6368
|
+ 'img_border_type_hover' => array(
|
|
6369
|
+ 'type' => 'select',
|
|
6370
|
+ 'label' => __pl('icon_border_type_hover'),
|
|
6371
|
+ 'css' => ['{{element}}:hover .pagelayer-service-image img' =>'border-style: {{val}};'],
|
|
6372
|
+ 'list' => [
|
|
6373
|
+ '' => __pl('none'),
|
|
6374
|
+ 'solid' => __pl('solid'),
|
|
6375
|
+ 'double' => __pl('double'),
|
|
6376
|
+ 'dotted' => __pl('dotted'),
|
|
6377
|
+ 'dashed' => __pl('dashed'),
|
|
6378
|
+ 'groove' => __pl('groove'),
|
|
6379
|
+ ],
|
|
6380
|
+ 'show' => ['img_bor_state' => 'hover'],
|
|
6381
|
+ ),
|
|
6382
|
+ 'img_border_color_hover' => array(
|
|
6383
|
+ 'type' => 'color',
|
|
6384
|
+ 'label' => __pl('icon_border_color_hover_label'),
|
|
6385
|
+ 'default' => '#0986c0',
|
|
6386
|
+ 'css' => ['{{element}}:hover .pagelayer-service-image img' => 'border-color: {{val}};'],
|
|
6387
|
+ 'req' => [
|
|
6388
|
+ '!img_border_type_hover' => '',
|
|
6389
|
+ ],
|
|
6390
|
+ 'show' => ['img_bor_state' => 'hover'],
|
|
6391
|
+ ),
|
|
6392
|
+ 'img_border_width_hover' => array(
|
|
6393
|
+ 'type' => 'padding',
|
|
6394
|
+ 'label' => __pl('icon_border_width_hover'),
|
|
6395
|
+ 'screen' => 1,
|
|
6396
|
+ 'css' => ['{{element}}:hover .pagelayer-service-image 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;'],
|
|
6397
|
+ 'req' => [
|
|
6398
|
+ '!img_border_type_hover' => '',
|
|
6399
|
+ ],
|
|
6400
|
+ 'show' => ['img_bor_state' => 'hover'],
|
|
6401
|
+ ),
|
|
6402
|
+ 'img_border_radius_hover' => array(
|
|
6403
|
+ 'type' => 'padding',
|
|
6404
|
+ 'label' => __pl('border_radius'),
|
|
6405
|
+ 'screen' => 1,
|
|
6406
|
+ 'units' => ['px', 'em', '%'],
|
|
6407
|
+ 'css' => ['{{element}}:hover .pagelayer-service-image img' => '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]}};'],
|
|
6408
|
+ 'req' => [
|
|
6409
|
+ '!img_border_type_hover' => '',
|
|
6410
|
+ ],
|
|
6411
|
+ 'show' => ['img_bor_state' => 'hover'],
|
|
6412
|
+ ),
|
|
4051
|
6413
|
],
|
|
4052
|
6414
|
'service_heading_style' => [
|
|
4053
|
6415
|
'service_heading' => array(
|
|
4054
|
6416
|
'type' => 'textarea',
|
|
@@ -4053,23 +6415,50 @@ |
|
4053
|
6415
|
'service_heading' => array(
|
|
4054
|
6416
|
'type' => 'textarea',
|
|
4055
|
6417
|
'label' => __pl('service_box_heading_label'),
|
|
4056
|
6418
|
'default' => 'This is an Image Box',
|
|
4057
|
|
- 'text' => __pl('open_in_wpeditor'),
|
|
6419
|
+ 'edit' => '.pagelayer-service-heading',
|
|
4058
|
6420
|
),
|
|
4059
|
|
- 'service_heading_spacing' => array(
|
|
4060
|
|
- 'type' => 'slider',
|
|
4061
|
|
- 'label' => __pl('service_heading_spacing'),
|
|
4062
|
|
- 'min' => '0',
|
|
4063
|
|
- 'max' => '200',
|
|
4064
|
|
- 'default' => '10',
|
|
4065
|
|
- 'css' => ['{{element}} .pagelayer-service-heading' => 'margin-bottom: {{val}}px !important;'],
|
|
6421
|
+ 'heading_url' => array(
|
|
6422
|
+ 'type' => 'link',
|
|
6423
|
+ 'label' => __pl('url'),
|
|
6424
|
+ 'selector' => '.pagelayer-service-heading-link',
|
|
6425
|
+ 'req' => ['!service_heading' => '', 'box_url' => '']
|
|
4066
|
6426
|
),
|
|
6427
|
+ 'heading_alignment' => array(
|
|
6428
|
+ 'type' => 'radio',
|
|
6429
|
+ 'label' => __pl('service_box_heading_alignment'),
|
|
6430
|
+ 'default' => 'center',
|
|
6431
|
+ 'screen' => 1,
|
|
6432
|
+ 'list' => array(
|
|
6433
|
+ 'left' => __pl('left'),
|
|
6434
|
+ 'center' => __pl('center'),
|
|
6435
|
+ 'right' => __pl('right'),
|
|
6436
|
+ ),
|
|
6437
|
+ 'css' => ['{{element}} .pagelayer-service-heading' => 'text-align:{{val}};'],
|
|
6438
|
+ ),
|
|
6439
|
+ 'service_title_spacing' => array(
|
|
6440
|
+ 'type' => 'padding',
|
|
6441
|
+ 'label' => __pl('spacing'),
|
|
6442
|
+ 'screen' => 1,
|
|
6443
|
+ 'default' => ',,10,',
|
|
6444
|
+ 'css' => ['{{element}} .pagelayer-service-heading' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;']
|
|
6445
|
+ ),
|
|
6446
|
+ 'heading_state' => array(
|
|
6447
|
+ 'type' => 'radio',
|
|
6448
|
+ 'label' => __pl('icon_state'),
|
|
6449
|
+ 'default' => 'normal',
|
|
6450
|
+ 'list' => array(
|
|
6451
|
+ 'normal' => __pl('Normal'),
|
|
6452
|
+ 'hover' => __pl('Hover'),
|
|
6453
|
+ ),
|
|
6454
|
+ ),
|
|
4067
|
6455
|
'service_heading_color' => array(
|
|
4068
|
6456
|
'type' => 'color',
|
|
4069
|
6457
|
'label' => __pl('service_heading_color'),
|
|
4070
|
|
- 'default' => '#3e8ef7',
|
|
6458
|
+ 'default' => '#0986c0',
|
|
4071
|
6459
|
'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
|
|
6460
|
+ 'show' => ['heading_state' => 'normal'],
|
|
4072
|
6461
|
),
|
|
4073
|
6462
|
'service_heading_typo' => array(
|
|
4074
|
6463
|
'type' => 'typography',
|
|
4075
|
6464
|
'label' => __pl('service_heading_typo'),
|
|
@@ -4074,16 +6463,40 @@ |
|
4074
|
6463
|
'type' => 'typography',
|
|
4075
|
6464
|
'label' => __pl('service_heading_typo'),
|
|
4076
|
6465
|
'default' => ',28,,600,,,,,,,',
|
|
4077
|
6466
|
'css' => ['{{element}} .pagelayer-service-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;'],
|
|
6467
|
+ 'show' => ['heading_state' => 'normal'],
|
|
4078
|
6468
|
),
|
|
6469
|
+ 'heading_transition' => array(
|
|
6470
|
+ 'type' => 'spinner',
|
|
6471
|
+ 'label' => __pl('ele_bg_hover_delay'),
|
|
6472
|
+ 'min' => 0,
|
|
6473
|
+ 'step' => 100,
|
|
6474
|
+ 'max' => 5000,
|
|
6475
|
+ 'default' => 400,
|
|
6476
|
+ 'css' => ['{{element}} .pagelayer-service-heading' =>'-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
|
|
6477
|
+ 'show' => ['heading_state' => 'hover'],
|
|
6478
|
+ ),
|
|
6479
|
+ 'heading_color_hover' => array(
|
|
6480
|
+ 'type' => 'color',
|
|
6481
|
+ 'label' => __pl('service_heading_color'),
|
|
6482
|
+ 'css' => ['{{element}}:hover .pagelayer-service-heading' => 'color:{{val}}'],
|
|
6483
|
+ 'show' => ['heading_state' => 'hover'],
|
|
6484
|
+ ),
|
|
6485
|
+ 'heading_typo_hover' => array(
|
|
6486
|
+ 'type' => 'typography',
|
|
6487
|
+ 'label' => __pl('service_heading_typo'),
|
|
6488
|
+ 'css' => ['{{element}}:hover .pagelayer-service-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;'],
|
|
6489
|
+ 'show' => ['heading_state' => 'hover'],
|
|
6490
|
+ ),
|
|
4079
|
6491
|
],
|
|
4080
|
6492
|
//service content style
|
|
4081
|
6493
|
'service_content_style' =>[
|
|
4082
|
6494
|
'service_text_alignment' => array(
|
|
4083
|
|
- 'type' => 'select',
|
|
6495
|
+ 'type' => 'radio',
|
|
4084
|
6496
|
'label' => __pl('service_box_text_alignment'),
|
|
4085
|
6497
|
'default' => 'center',
|
|
6498
|
+ 'screen' => 1,
|
|
4086
|
6499
|
'list' => array(
|
|
4087
|
6500
|
'left' => __pl('left'),
|
|
4088
|
6501
|
'center' => __pl('center'),
|
|
4089
|
6502
|
'right' => __pl('right'),
|
|
@@ -4090,13 +6503,19 @@ |
|
4090
|
6503
|
'justify' => __pl('justify'),
|
|
4091
|
6504
|
),
|
|
4092
|
6505
|
'css' => ['{{element}} .pagelayer-service-details' => 'text-align:{{val}};'],
|
|
4093
|
6506
|
),
|
|
6507
|
+ 'service_content_spacing' => array(
|
|
6508
|
+ 'type' => 'padding',
|
|
6509
|
+ 'label' => __pl('spacing'),
|
|
6510
|
+ 'screen' => 1,
|
|
6511
|
+ 'css' => ['{{element}} .pagelayer-service-text' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'],
|
|
6512
|
+ ),
|
|
4094
|
6513
|
'service_text' => array(
|
|
4095
|
6514
|
'type' => 'editor',
|
|
4096
|
6515
|
'label' => __pl('service_box_text_label'),
|
|
4097
|
6516
|
'default' => 'Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.',
|
|
4098
|
|
- 'text' => __pl('open_in_wpeditor'),
|
|
6517
|
+ 'edit' => '.pagelayer-service-text',
|
|
4099
|
6518
|
)
|
|
4100
|
6519
|
],
|
|
4101
|
6520
|
//service button style
|
|
4102
|
6521
|
'service_btn_style' =>[
|
|
@@ -4134,17 +6553,37 @@ |
|
4134
|
6553
|
'pagelayer-btn-small' => __pl('small'),
|
|
4135
|
6554
|
'pagelayer-btn-large' => __pl('large'),
|
|
4136
|
6555
|
'pagelayer-btn-extra-large' => __pl('extra_large'),
|
|
4137
|
6556
|
'pagelayer-btn-double-large' => __pl('double_large'),
|
|
4138
|
|
- //'pagelayer-btn-custom' => __pl('custom'),
|
|
6557
|
+ 'pagelayer-btn-custom' => __pl('custom'),
|
|
4139
|
6558
|
),
|
|
4140
|
6559
|
'req' => array(
|
|
4141
|
6560
|
'service_button' => 'true'
|
|
4142
|
6561
|
)
|
|
4143
|
6562
|
),
|
|
6563
|
+ 'service_btn_dim' => array(
|
|
6564
|
+ 'type' => 'dimension',
|
|
6565
|
+ 'label' => __pl('service_btn_dim'),
|
|
6566
|
+ 'default' => '10,15',
|
|
6567
|
+ 'screen' => 1,
|
|
6568
|
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[0]}}px;padding-left:{{val[1]}}px;'],
|
|
6569
|
+ 'req' => [
|
|
6570
|
+ 'service_button' => 'true',
|
|
6571
|
+ 'service_button_size' => 'pagelayer-btn-custom',
|
|
6572
|
+ ]
|
|
6573
|
+ ),
|
|
6574
|
+ 'service_btn_stretch' => array(
|
|
6575
|
+ 'type' => 'checkbox',
|
|
6576
|
+ 'label' => __pl('stretch'),
|
|
6577
|
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'width:100%;'],
|
|
6578
|
+ 'req' => array(
|
|
6579
|
+ 'service_button' => 'true'
|
|
6580
|
+ ),
|
|
6581
|
+ ),
|
|
4144
|
6582
|
'service_button_url' => array(
|
|
4145
|
6583
|
'type' => 'link',
|
|
4146
|
6584
|
'label' => __pl('service_btn_url_label'),
|
|
6585
|
+ 'selector' => '.pagelayer-service-btn',
|
|
4147
|
6586
|
'req' => array(
|
|
4148
|
6587
|
'service_button' => 'true'
|
|
4149
|
6588
|
),
|
|
4150
|
6589
|
),
|
|
@@ -4151,22 +6590,25 @@ |
|
4151
|
6590
|
'service_button_text' => array(
|
|
4152
|
6591
|
'type' => 'text',
|
|
4153
|
6592
|
'label' => __pl('service_button_text_label'),
|
|
4154
|
6593
|
'default' => 'Click Here!',
|
|
6594
|
+ 'edit' => '.pagelayer-service-btn',
|
|
4155
|
6595
|
'req' => array(
|
|
4156
|
6596
|
'service_button' => 'true'
|
|
4157
|
6597
|
),
|
|
4158
|
6598
|
),
|
|
6599
|
+ 'service_button_typo' => array(
|
|
6600
|
+ 'type' => 'typography',
|
|
6601
|
+ 'label' => __pl('typography'),
|
|
6602
|
+ '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;'],
|
|
6603
|
+ 'req' => ['service_button' => 'true']
|
|
6604
|
+ ),
|
|
4159
|
6605
|
'service_btn_spacing' => array(
|
|
4160
|
|
- 'type' => 'slider',
|
|
4161
|
|
- 'label' => __pl('service_btn_spacing'),
|
|
4162
|
|
- 'min' => '0',
|
|
4163
|
|
- 'max' => '200',
|
|
4164
|
|
- 'default' => '10',
|
|
4165
|
|
- 'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top: {{val}}px;'],
|
|
4166
|
|
- 'req' => [
|
|
4167
|
|
- 'service_button' => 'true',
|
|
4168
|
|
- ]
|
|
6606
|
+ 'type' => 'padding',
|
|
6607
|
+ 'label' => __pl('spacing'),
|
|
6608
|
+ 'screen' => 1,
|
|
6609
|
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
6610
|
+ 'req' => ['service_button' => 'true']
|
|
4169
|
6611
|
),
|
|
4170
|
6612
|
'service_button_font_size' => array(
|
|
4171
|
6613
|
'type' => 'slider',
|
|
4172
|
6614
|
'label' => __pl('iconbox_btn_text_size'),
|
|
@@ -4171,8 +6613,9 @@ |
|
4171
|
6613
|
'type' => 'slider',
|
|
4172
|
6614
|
'label' => __pl('iconbox_btn_text_size'),
|
|
4173
|
6615
|
'min' => '0',
|
|
4174
|
6616
|
'max' => '50',
|
|
6617
|
+ 'screen' => 1,
|
|
4175
|
6618
|
'css' => ['{{element}} .pagelayer-service-btn' => 'font-size:{{val}}px;'],
|
|
4176
|
6619
|
'req' => [
|
|
4177
|
6620
|
'service_button' => 'true',
|
|
4178
|
6621
|
'iconbox_button_type' => 'pagelayer-btn-custom',
|
|
@@ -4204,9 +6647,9 @@ |
|
4204
|
6647
|
),
|
|
4205
|
6648
|
'service_button_bg_color' => array(
|
|
4206
|
6649
|
'type' => 'color',
|
|
4207
|
6650
|
'label' => __pl('service_button_bg_color'),
|
|
4208
|
|
- 'default' => '#3e8ef7',
|
|
6651
|
+ 'default' => '#0986c0',
|
|
4209
|
6652
|
'css' => ['{{element}} .pagelayer-service-btn' => 'background-color:{{val}};'],
|
|
4210
|
6653
|
'req' => [
|
|
4211
|
6654
|
'service_button' => 'true',
|
|
4212
|
6655
|
'service_button_type' => 'pagelayer-btn-custom',
|
|
@@ -4237,13 +6680,126 @@ |
|
4237
|
6680
|
'css' => ['{{element}} .pagelayer-service-btn:hover' => 'background-color:{{val}};'],
|
|
4238
|
6681
|
'show' => ['service_btn_state' => 'hover'],
|
|
4239
|
6682
|
),
|
|
4240
|
6683
|
],
|
|
6684
|
+ 'border_style' => [
|
|
6685
|
+ 'btn_bor_hover' => array(
|
|
6686
|
+ 'type' => 'radio',
|
|
6687
|
+ 'label' => __pl('state'),
|
|
6688
|
+ 'list' => array(
|
|
6689
|
+ '' => __pl('normal'),
|
|
6690
|
+ 'hover' => __pl('hover'),
|
|
6691
|
+ )
|
|
6692
|
+ ),
|
|
6693
|
+ 'btn_border_type' => array(
|
|
6694
|
+ 'type' => 'select',
|
|
6695
|
+ 'label' => __pl('border_type'),
|
|
6696
|
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'border-style: {{val}}'],
|
|
6697
|
+ 'list' => [
|
|
6698
|
+ '' => __pl('none'),
|
|
6699
|
+ 'solid' => __pl('solid'),
|
|
6700
|
+ 'double' => __pl('double'),
|
|
6701
|
+ 'dotted' => __pl('dotted'),
|
|
6702
|
+ 'dashed' => __pl('dashed'),
|
|
6703
|
+ 'groove' => __pl('groove'),
|
|
6704
|
+ ],
|
|
6705
|
+ 'show' => array(
|
|
6706
|
+ 'btn_bor_hover' => ''
|
|
6707
|
+ ),
|
|
6708
|
+ ),
|
|
6709
|
+ 'btn_border_color' => array(
|
|
6710
|
+ 'type' => 'color',
|
|
6711
|
+ 'label' => __pl('border_color_label'),
|
|
6712
|
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'border-color: {{val}};'],
|
|
6713
|
+ 'req' => array(
|
|
6714
|
+ '!btn_border_type' => ''
|
|
6715
|
+ ),
|
|
6716
|
+ 'show' => array(
|
|
6717
|
+ 'btn_bor_hover' => ''
|
|
6718
|
+ ),
|
|
6719
|
+ ),
|
|
6720
|
+ 'btn_border_width' => array(
|
|
6721
|
+ 'type' => 'padding',
|
|
6722
|
+ 'label' => __pl('border_width'),
|
|
6723
|
+ 'screen' => 1,
|
|
6724
|
+ 'css' => ['{{element}} .pagelayer-service-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'],
|
|
6725
|
+ 'req' => [
|
|
6726
|
+ '!btn_border_type' => ''
|
|
6727
|
+ ],
|
|
6728
|
+ 'show' => array(
|
|
6729
|
+ 'btn_bor_hover' => ''
|
|
6730
|
+ ),
|
|
6731
|
+ ),
|
|
6732
|
+ 'btn_border_radius' => array(
|
|
6733
|
+ 'type' => 'padding',
|
|
6734
|
+ 'label' => __pl('border_radius'),
|
|
6735
|
+ 'screen' => 1,
|
|
6736
|
+ 'css' => ['{{element}} .pagelayer-service-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;'],
|
|
6737
|
+ 'req' => array(
|
|
6738
|
+ '!btn_border_type' => ''
|
|
6739
|
+ ),
|
|
6740
|
+ 'show' => array(
|
|
6741
|
+ 'btn_bor_hover' => ''
|
|
6742
|
+ ),
|
|
6743
|
+ ),
|
|
6744
|
+ 'btn_border_type_hover' => array(
|
|
6745
|
+ 'type' => 'select',
|
|
6746
|
+ 'label' => __pl('border_type'),
|
|
6747
|
+ 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'border-style: {{val}}'],
|
|
6748
|
+ 'list' => [
|
|
6749
|
+ '' => __pl('none'),
|
|
6750
|
+ 'solid' => __pl('solid'),
|
|
6751
|
+ 'double' => __pl('double'),
|
|
6752
|
+ 'dotted' => __pl('dotted'),
|
|
6753
|
+ 'dashed' => __pl('dashed'),
|
|
6754
|
+ 'groove' => __pl('groove'),
|
|
6755
|
+ ],
|
|
6756
|
+ 'show' => array(
|
|
6757
|
+ 'btn_bor_hover' => 'hover'
|
|
6758
|
+ ),
|
|
6759
|
+ ),
|
|
6760
|
+ 'btn_border_color_hover' => array(
|
|
6761
|
+ 'type' => 'color',
|
|
6762
|
+ 'label' => __pl('border_color_hover_label'),
|
|
6763
|
+ 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'border-color: {{val}};'],
|
|
6764
|
+ 'req' => array(
|
|
6765
|
+ '!btn_border_type_hover' => ''
|
|
6766
|
+ ),
|
|
6767
|
+ 'show' => array(
|
|
6768
|
+ 'btn_bor_hover' => 'hover'
|
|
6769
|
+ ),
|
|
6770
|
+ ),
|
|
6771
|
+ 'btn_border_width_hover' => array(
|
|
6772
|
+ 'type' => 'padding',
|
|
6773
|
+ 'label' => __pl('border_width_hover'),
|
|
6774
|
+ 'screen' => 1,
|
|
6775
|
+ 'css' => ['{{element}} .pagelayer-service-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'],
|
|
6776
|
+ 'req' => [
|
|
6777
|
+ '!btn_border_type_hover' => ''
|
|
6778
|
+ ],
|
|
6779
|
+ 'show' => array(
|
|
6780
|
+ 'btn_bor_hover' => 'hover'
|
|
6781
|
+ ),
|
|
6782
|
+ ),
|
|
6783
|
+ 'btn_border_radius_hover' => array(
|
|
6784
|
+ 'type' => 'padding',
|
|
6785
|
+ 'label' => __pl('border_radius_hover'),
|
|
6786
|
+ 'screen' => 1,
|
|
6787
|
+ 'css' => ['{{element}} .pagelayer-service-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;'],
|
|
6788
|
+ 'req' => array(
|
|
6789
|
+ '!btn_border_type_hover' => ''
|
|
6790
|
+ ),
|
|
6791
|
+ 'show' => array(
|
|
6792
|
+ 'btn_bor_hover' => 'hover'
|
|
6793
|
+ ),
|
|
6794
|
+ ),
|
|
6795
|
+ ],
|
|
4241
|
6796
|
'styles' => [
|
|
4242
|
6797
|
'service_img_style' => __pl('service_img_style'),
|
|
4243
|
6798
|
'service_heading_style' => __pl('service_heading_style'),
|
|
4244
|
6799
|
'service_content_style' => __pl('service_content_style'),
|
|
4245
|
6800
|
'service_btn_style' => __pl('service_btn_style'),
|
|
6801
|
+ 'border_style' => __pl('btn_border_style'),
|
|
4246
|
6802
|
],
|
|
4247
|
6803
|
)
|
|
4248
|
6804
|
);
|
|
4249
|
6805
|
|
|
@@ -4250,27 +6806,29 @@ |
|
4250
|
6806
|
// Icon Box
|
|
4251
|
6807
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
|
|
4252
|
6808
|
'name' => __pl('Icon Box'),
|
|
4253
|
6809
|
'group' => 'other',
|
|
4254
|
|
- 'func' => 'pagelayer_sc_iconbox',
|
|
4255
|
6810
|
'innerHTML' => 'service_text',
|
|
4256
|
6811
|
'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
|
|
4257
|
6812
|
<div class="pagelayer-service-icon pagelayer-service-{{service_icon_view}}">
|
|
4258
|
|
- <i class="fa fa-{{service_icon}} pagelayer-icon-{{service_icon_shape_type}} pagelayer-animation-{{anim_hover}}" aria-hidden="true"></i>
|
|
6813
|
+ <i class="{{service_icon}} pagelayer-icon-{{service_icon_shape_type}} pagelayer-animation-{{anim_hover}}" aria-hidden="true"></i>
|
|
4259
|
6814
|
</div>
|
|
4260
|
6815
|
<div class="pagelayer-service-details">
|
|
4261
|
|
- <div if="{{service_heading}}" class="pagelayer-service-heading">{{service_heading}}</div>
|
|
6816
|
+ <a if-ext={{heading_url}} href="{{{heading_url}}}" class="pagelayer-ele-link pagelayer-service-heading-link" >
|
|
6817
|
+ <div if="{{service_heading}}" class="pagelayer-service-heading">{{service_heading}}</div>
|
|
6818
|
+ </a>
|
|
4262
|
6819
|
<div if="{{service_text}}" class="pagelayer-service-text">{{service_text}}</div>
|
|
4263
|
|
- <a if="{{service_button}}" href="{{service_button_url}}" class="pagelayer-service-btn pagelayer-button pagelayer-ele-link {{iconbox_button_type}} {{service_button_size}}">
|
|
6820
|
+ <a if="{{service_button}}" href="{{{service_button_url}}}" class="pagelayer-service-btn pagelayer-button pagelayer-ele-link {{iconbox_button_type}} {{service_button_size}}">
|
|
4264
|
6821
|
<span if="{{service_button_text}}">{{service_button_text}}</span>
|
|
4265
|
6822
|
</a>
|
|
4266
|
6823
|
</div>
|
|
6824
|
+ <a if-ext={{box_url}} href="{{{box_url}}}" class="pagelayer-ele-link pagelayer-box-link"> </a>
|
|
4267
|
6825
|
</div>',
|
|
4268
|
6826
|
'params' => array(
|
|
4269
|
6827
|
'service_icon' => array(
|
|
4270
|
6828
|
'type' => 'icon',
|
|
4271
|
6829
|
'label' => __pl('iconbox_font_icon_label'),
|
|
4272
|
|
- 'default' => 'exclamation-circle',
|
|
6830
|
+ 'default' => 'fas fa-exclamation-circle',
|
|
4273
|
6831
|
),
|
|
4274
|
6832
|
'service_alignment' => array(
|
|
4275
|
6833
|
'type' => 'radio',
|
|
4276
|
6834
|
'label' => __pl('iconbox_box_media_alignment'),
|
|
@@ -4293,8 +6851,25 @@ |
|
4293
|
6851
|
'req' => array(
|
|
4294
|
6852
|
'!service_alignment' => 'top'
|
|
4295
|
6853
|
)
|
|
4296
|
6854
|
),
|
|
6855
|
+ 'service_icon_alignment' => array(
|
|
6856
|
+ 'type' => 'radio',
|
|
6857
|
+ 'label' => __pl('horizontal_pos'),
|
|
6858
|
+ 'screen' => 1,
|
|
6859
|
+ 'css' => ['{{element}} .pagelayer-service-icon' => 'text-align: {{val}};,'],
|
|
6860
|
+ 'list' => array(
|
|
6861
|
+ 'left' => __pl('left'),
|
|
6862
|
+ 'center' => __pl('center'),
|
|
6863
|
+ 'right' => __pl('right'),
|
|
6864
|
+ ),
|
|
6865
|
+ 'req' => ['service_alignment' => 'top']
|
|
6866
|
+ ),
|
|
6867
|
+ 'box_url' => array(
|
|
6868
|
+ 'type' => 'link',
|
|
6869
|
+ 'label' => __pl('url'),
|
|
6870
|
+ 'selector' => '.pagelayer-box-link',
|
|
6871
|
+ ),
|
|
4297
|
6872
|
),
|
|
4298
|
6873
|
// icon style
|
|
4299
|
6874
|
'service_icon_style' => [
|
|
4300
|
6875
|
'service_icon_view' => array(
|
|
@@ -4322,15 +6897,52 @@ |
|
4322
|
6897
|
'label' => __pl('service_icon_padding'),
|
|
4323
|
6898
|
'min' => '0',
|
|
4324
|
6899
|
'max' => '200',
|
|
4325
|
6900
|
'default' => '15',
|
|
6901
|
+ 'screen' => 1,
|
|
4326
|
6902
|
'css' => ['{{element}} .pagelayer-service-icon i' => 'padding: calc(0.5em + {{val}}px);'],
|
|
4327
|
6903
|
'req' => ['!service_icon_view' => 'default'],
|
|
4328
|
6904
|
),
|
|
4329
|
6905
|
'service_icon_spacing' => array(
|
|
4330
|
6906
|
'type' => 'padding',
|
|
6907
|
+ 'screen' => 1,
|
|
4331
|
6908
|
'label' => __pl('service_icon_spacing'),
|
|
6909
|
+ 'screen' => 1,
|
|
4332
|
6910
|
'css' => ['{{element}} .pagelayer-service-icon' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'],
|
|
6911
|
+ ),
|
|
6912
|
+ 'anim_hover' => array(
|
|
6913
|
+ 'type' => 'select',
|
|
6914
|
+ 'label' => __pl('icon_animation'),
|
|
6915
|
+ 'list' => [
|
|
6916
|
+ '' => __pl('none'),
|
|
6917
|
+ 'grow' => __pl('Grow'),
|
|
6918
|
+ 'shrink' => __pl('Shrink'),
|
|
6919
|
+ 'pulse' => __pl('Pulse'),
|
|
6920
|
+ 'pulse-grow' => __pl('Pulse Grow'),
|
|
6921
|
+ 'pulse-shrink' => __pl('Pulse Shrink'),
|
|
6922
|
+ 'push' => __pl('Push'),
|
|
6923
|
+ 'pop' => __pl('Pop'),
|
|
6924
|
+ 'buzz' => __pl('Buzz'),
|
|
6925
|
+ 'buzz-out' => __pl('Buzz Out'),
|
|
6926
|
+ 'float' => __pl('Float'),
|
|
6927
|
+ 'sink' => __pl('Sink'),
|
|
6928
|
+ 'bob' => __pl('Bob'),
|
|
6929
|
+ 'hang' => __pl('Hang'),
|
|
6930
|
+ 'bounce-in' => __pl('Bounce In'),
|
|
6931
|
+ 'bounce-out' => __pl('Bounce Out'),
|
|
6932
|
+ 'rotate' => __pl('Rotate'),
|
|
6933
|
+ 'grow-rotate' => __pl('Grow Rotate'),
|
|
6934
|
+ 'skew-forward' => __pl('Skew Forward'),
|
|
6935
|
+ 'skew-backward' => __pl('Skew Backward'),
|
|
6936
|
+ 'wobble-vertical' => __pl('Wobble Vertical'),
|
|
6937
|
+ 'wobble-horizontal' => __pl('Wobble Horizontal'),
|
|
6938
|
+ 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
|
|
6939
|
+ 'wobble-top-to-right' => __pl('Wobble Top To Right'),
|
|
6940
|
+ 'wobble-top' => __pl('Wobble Top'),
|
|
6941
|
+ 'wobble-bottom' => __pl('Wobble Bottom'),
|
|
6942
|
+ 'wobble-skew' => __pl('Wobble Skew'),
|
|
6943
|
+ ],
|
|
6944
|
+ 'addClass' => 'pagelayer-anim-par'
|
|
4333
|
6945
|
),
|
|
4334
|
6946
|
'service_icon_state' => array(
|
|
4335
|
6947
|
'type' => 'radio',
|
|
4336
|
6948
|
'label' => __pl('icon_state'),
|
|
@@ -4342,9 +6954,9 @@ |
|
4342
|
6954
|
),
|
|
4343
|
6955
|
'service_icon_color' => array(
|
|
4344
|
6956
|
'type' => 'color',
|
|
4345
|
6957
|
'label' => __pl('iconbox_icon_color'),
|
|
4346
|
|
- 'default' => '#3e8ef7',
|
|
6958
|
+ 'default' => '#0986c0',
|
|
4347
|
6959
|
'css' => ['{{element}} .pagelayer-service-icon i' => 'color:{{val}};'],
|
|
4348
|
6960
|
'show' => ['service_icon_state' => 'normal'],
|
|
4349
|
6961
|
),
|
|
4350
|
6962
|
'service_icon_background_color' => array(
|
|
@@ -4349,9 +6961,9 @@ |
|
4349
|
6961
|
),
|
|
4350
|
6962
|
'service_icon_background_color' => array(
|
|
4351
|
6963
|
'type' => 'color',
|
|
4352
|
6964
|
'label' => __pl('service_icon_background_color'),
|
|
4353
|
|
- 'default' => '#eff0f0ff',
|
|
6965
|
+ 'default' => '#eff0f0',
|
|
4354
|
6966
|
'css' => ['{{element}} .pagelayer-service-icon.pagelayer-service-stacked i' => 'background-color:{{val}};'],
|
|
4355
|
6967
|
'show' => ['service_icon_state' => 'normal'],
|
|
4356
|
6968
|
'req' => ['service_icon_view' => 'stacked']
|
|
4357
|
6969
|
),
|
|
@@ -4360,8 +6972,9 @@ |
|
4360
|
6972
|
'label' => __pl('service_icon_size'),
|
|
4361
|
6973
|
'min' => '0',
|
|
4362
|
6974
|
'max' => '300',
|
|
4363
|
6975
|
'default' => '75',
|
|
6976
|
+ 'screen' => 1,
|
|
4364
|
6977
|
'css' => ['{{element}} .pagelayer-service-icon' => 'font-size:{{val}}px;'],
|
|
4365
|
6978
|
'show' => ['service_icon_state' => 'normal'],
|
|
4366
|
6979
|
),
|
|
4367
|
6980
|
'service_rotate' => array(
|
|
@@ -4369,8 +6982,9 @@ |
|
4369
|
6982
|
'label' => __pl('service_icon_rotate'),
|
|
4370
|
6983
|
'min' => '0',
|
|
4371
|
6984
|
'max' => '360',
|
|
4372
|
6985
|
'default' => '0',
|
|
6986
|
+ 'screen' => 1,
|
|
4373
|
6987
|
'css' => ['{{element}} .pagelayer-service-icon i' => 'transform: rotate({{val}}deg);'],
|
|
4374
|
6988
|
'show' => ['service_icon_state' => 'normal'],
|
|
4375
|
6989
|
),
|
|
4376
|
6990
|
'service_icon_hover_delay' => array(
|
|
@@ -4382,44 +6996,8 @@ |
|
4382
|
6996
|
'default' => 400,
|
|
4383
|
6997
|
'css' => ['{{element}} .pagelayer-service-icon i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
|
|
4384
|
6998
|
'show' => ['service_icon_state' => 'hover'],
|
|
4385
|
6999
|
),
|
|
4386
|
|
- 'anim_hover' => array(
|
|
4387
|
|
- 'type' => 'select',
|
|
4388
|
|
- 'label' => __pl('icon_animation'),
|
|
4389
|
|
- 'list' => [
|
|
4390
|
|
- '' => __pl('none'),
|
|
4391
|
|
- 'grow' => __pl('Grow'),
|
|
4392
|
|
- 'shrink' => __pl('Shrink'),
|
|
4393
|
|
- 'pulse' => __pl('Pulse'),
|
|
4394
|
|
- 'pulse-grow' => __pl('Pulse Grow'),
|
|
4395
|
|
- 'pulse-shrink' => __pl('Pulse Shrink'),
|
|
4396
|
|
- 'push' => __pl('Push'),
|
|
4397
|
|
- 'pop' => __pl('Pop'),
|
|
4398
|
|
- 'buzz' => __pl('Buzz'),
|
|
4399
|
|
- 'buzz-out' => __pl('Buzz Out'),
|
|
4400
|
|
- 'float' => __pl('Float'),
|
|
4401
|
|
- 'sink' => __pl('Sink'),
|
|
4402
|
|
- 'bob' => __pl('Bob'),
|
|
4403
|
|
- 'hang' => __pl('Hang'),
|
|
4404
|
|
- 'bounce-in' => __pl('Bounce In'),
|
|
4405
|
|
- 'bounce-out' => __pl('Bounce Out'),
|
|
4406
|
|
- 'rotate' => __pl('Rotate'),
|
|
4407
|
|
- 'grow-rotate' => __pl('Grow Rotate'),
|
|
4408
|
|
- 'skew-forward' => __pl('Skew Forward'),
|
|
4409
|
|
- 'skew-backward' => __pl('Skew Backward'),
|
|
4410
|
|
- 'wobble-vertical' => __pl('Wobble Vertical'),
|
|
4411
|
|
- 'wobble-horizontal' => __pl('Wobble Horizontal'),
|
|
4412
|
|
- 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
|
|
4413
|
|
- 'wobble-top-to-right' => __pl('Wobble Top To Right'),
|
|
4414
|
|
- 'wobble-top' => __pl('Wobble Top'),
|
|
4415
|
|
- 'wobble-bottom' => __pl('Wobble Bottom'),
|
|
4416
|
|
- 'wobble-skew' => __pl('Wobble Skew'),
|
|
4417
|
|
- ],
|
|
4418
|
|
- 'show' => array(
|
|
4419
|
|
- 'service_icon_state' => 'hover',
|
|
4420
|
|
- ),
|
|
4421
|
|
- ),
|
|
4422
|
7000
|
'service_icon_color_hover' => array(
|
|
4423
|
7001
|
'type' => 'color',
|
|
4424
|
7002
|
'label' => __pl('service_icon_color_hover'),
|
|
4425
|
7003
|
'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'color:{{val}};'],
|
|
@@ -4437,8 +7015,9 @@ |
|
4437
|
7015
|
'type' => 'slider',
|
|
4438
|
7016
|
'label' => __pl('service_icon_size_hover'),
|
|
4439
|
7017
|
'min' => '0',
|
|
4440
|
7018
|
'max' => '300',
|
|
7019
|
+ 'screen' => 1,
|
|
4441
|
7020
|
'css' => ['{{element}}:hover .pagelayer-service-icon' => 'font-size:{{val}}px;'],
|
|
4442
|
7021
|
'show' => ['service_icon_state' => 'hover'],
|
|
4443
|
7022
|
),
|
|
4444
|
7023
|
'service_rotate_hover' => array(
|
|
@@ -4445,8 +7024,9 @@ |
|
4445
|
7024
|
'type' => 'slider',
|
|
4446
|
7025
|
'label' => __pl('service_rotate_hover'),
|
|
4447
|
7026
|
'min' => '0',
|
|
4448
|
7027
|
'max' => '360',
|
|
7028
|
+ 'screen' => 1,
|
|
4449
|
7029
|
'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'transform: rotate({{val}}deg);'],
|
|
4450
|
7030
|
'show' => ['service_icon_state' => 'hover'],
|
|
4451
|
7031
|
),
|
|
4452
|
7032
|
],
|
|
@@ -4476,9 +7056,9 @@ |
|
4476
|
7056
|
),
|
|
4477
|
7057
|
'service_icon_border_color' => array(
|
|
4478
|
7058
|
'type' => 'color',
|
|
4479
|
7059
|
'label' => __pl('icon_border_color_label'),
|
|
4480
|
|
- 'default' => '#3e8ef7',
|
|
7060
|
+ 'default' => '#0986c0',
|
|
4481
|
7061
|
'css' => ['{{element}} .pagelayer-service-icon i' => 'border-color: {{val}};'],
|
|
4482
|
7062
|
'req' => [
|
|
4483
|
7063
|
'!service_icon_border_type' => '',
|
|
4484
|
7064
|
],
|
|
@@ -4486,8 +7066,9 @@ |
|
4486
|
7066
|
),
|
|
4487
|
7067
|
'service_icon_border_width' => array(
|
|
4488
|
7068
|
'type' => 'padding',
|
|
4489
|
7069
|
'label' => __pl('icon_border_width'),
|
|
7070
|
+ 'screen' => 1,
|
|
4490
|
7071
|
'css' => ['{{element}} .pagelayer-service-icon 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;'],
|
|
4491
|
7072
|
'req' => [
|
|
4492
|
7073
|
'!service_icon_border_type' => '',
|
|
4493
|
7074
|
],
|
|
@@ -4495,8 +7076,9 @@ |
|
4495
|
7076
|
),
|
|
4496
|
7077
|
'service_icon_border_radius' => array(
|
|
4497
|
7078
|
'type' => 'padding',
|
|
4498
|
7079
|
'label' => __pl('border_radius'),
|
|
7080
|
+ 'screen' => 1,
|
|
4499
|
7081
|
'css' => ['{{element}} .pagelayer-service-icon 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;'],
|
|
4500
|
7082
|
'req' => [
|
|
4501
|
7083
|
'!service_icon_border_type' => '',
|
|
4502
|
7084
|
],
|
|
@@ -4518,9 +7100,9 @@ |
|
4518
|
7100
|
),
|
|
4519
|
7101
|
'service_icon_border_color_hover' => array(
|
|
4520
|
7102
|
'type' => 'color',
|
|
4521
|
7103
|
'label' => __pl('icon_border_color_hover_label'),
|
|
4522
|
|
- 'default' => '#3e8ef7',
|
|
7104
|
+ 'default' => '#0986c0',
|
|
4523
|
7105
|
'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'border-color: {{val}};'],
|
|
4524
|
7106
|
'req' => [
|
|
4525
|
7107
|
'!service_icon_border_type_hover' => '',
|
|
4526
|
7108
|
],
|
|
@@ -4528,8 +7110,9 @@ |
|
4528
|
7110
|
),
|
|
4529
|
7111
|
'service_icon_border_width_hover' => array(
|
|
4530
|
7112
|
'type' => 'padding',
|
|
4531
|
7113
|
'label' => __pl('icon_border_width_hover'),
|
|
7114
|
+ 'screen' => 1,
|
|
4532
|
7115
|
'css' => ['{{element}}:hover .pagelayer-service-icon 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;'],
|
|
4533
|
7116
|
'req' => [
|
|
4534
|
7117
|
'!service_icon_border_type_hover' => '',
|
|
4535
|
7118
|
],
|
|
@@ -4537,8 +7120,9 @@ |
|
4537
|
7120
|
),
|
|
4538
|
7121
|
'service_icon_border_radius_hover' => array(
|
|
4539
|
7122
|
'type' => 'padding',
|
|
4540
|
7123
|
'label' => __pl('border_radius'),
|
|
7124
|
+ 'screen' => 1,
|
|
4541
|
7125
|
'css' => ['{{element}}:hover .pagelayer-service-icon 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;'],
|
|
4542
|
7126
|
'req' => [
|
|
4543
|
7127
|
'!service_icon_border_type_hover' => '',
|
|
4544
|
7128
|
],
|
|
@@ -4549,23 +7133,50 @@ |
|
4549
|
7133
|
'service_heading' => array(
|
|
4550
|
7134
|
'type' => 'textarea',
|
|
4551
|
7135
|
'label' => __pl('iconbox_box_heading_label'),
|
|
4552
|
7136
|
'default' => 'This is Icon Box',
|
|
4553
|
|
- 'text' => __pl('open_in_wpeditor'),
|
|
7137
|
+ 'edit' => '.pagelayer-service-heading',
|
|
4554
|
7138
|
),
|
|
4555
|
|
- 'service_heading_spacing' => array(
|
|
4556
|
|
- 'type' => 'slider',
|
|
4557
|
|
- 'label' => __pl('service_heading_spacing'),
|
|
4558
|
|
- 'min' => '0',
|
|
4559
|
|
- 'max' => '200',
|
|
4560
|
|
- 'default' => '10',
|
|
4561
|
|
- 'css' => ['{{element}} .pagelayer-service-heading' => 'margin-bottom: {{val}}px;'],
|
|
7139
|
+ 'heading_url' => array(
|
|
7140
|
+ 'type' => 'link',
|
|
7141
|
+ 'label' => __pl('url'),
|
|
7142
|
+ 'selector' => '.pagelayer-service-heading-link',
|
|
7143
|
+ 'req' => ['!service_heading' => '', 'box_url' => '']
|
|
4562
|
7144
|
),
|
|
7145
|
+ 'heading_alignment' => array(
|
|
7146
|
+ 'type' => 'radio',
|
|
7147
|
+ 'label' => __pl('service_box_heading_alignment'),
|
|
7148
|
+ 'default' => 'center',
|
|
7149
|
+ 'screen' => 1,
|
|
7150
|
+ 'list' => array(
|
|
7151
|
+ 'left' => __pl('left'),
|
|
7152
|
+ 'center' => __pl('center'),
|
|
7153
|
+ 'right' => __pl('right'),
|
|
7154
|
+ ),
|
|
7155
|
+ 'css' => ['{{element}} .pagelayer-service-heading' => 'text-align:{{val}};'],
|
|
7156
|
+ ),
|
|
7157
|
+ 'service_title_spacing' => array(
|
|
7158
|
+ 'type' => 'padding',
|
|
7159
|
+ 'label' => __pl('spacing'),
|
|
7160
|
+ 'screen' => 1,
|
|
7161
|
+ 'default' => ',,10,',
|
|
7162
|
+ 'css' => ['{{element}} .pagelayer-service-heading' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;']
|
|
7163
|
+ ),
|
|
7164
|
+ 'heading_state' => array(
|
|
7165
|
+ 'type' => 'radio',
|
|
7166
|
+ 'label' => __pl('icon_state'),
|
|
7167
|
+ 'default' => 'normal',
|
|
7168
|
+ 'list' => array(
|
|
7169
|
+ 'normal' => __pl('Normal'),
|
|
7170
|
+ 'hover' => __pl('Hover'),
|
|
7171
|
+ ),
|
|
7172
|
+ ),
|
|
4563
|
7173
|
'service_heading_color' => array(
|
|
4564
|
7174
|
'type' => 'color',
|
|
4565
|
7175
|
'label' => __pl('service_heading_color'),
|
|
4566
|
|
- 'default' => '#3e8ef7',
|
|
7176
|
+ 'default' => '#0986c0',
|
|
4567
|
7177
|
'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
|
|
7178
|
+ 'show' => ['heading_state' => 'normal']
|
|
4568
|
7179
|
),
|
|
4569
|
7180
|
'service_heading_typo' => array(
|
|
4570
|
7181
|
'type' => 'typography',
|
|
4571
|
7182
|
'label' => __pl('service_heading_typo'),
|
|
@@ -4570,16 +7181,40 @@ |
|
4570
|
7181
|
'type' => 'typography',
|
|
4571
|
7182
|
'label' => __pl('service_heading_typo'),
|
|
4572
|
7183
|
'default' => ',28,,600,,,,,,,',
|
|
4573
|
7184
|
'css' => ['{{element}} .pagelayer-service-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;'],
|
|
7185
|
+ 'show' => ['heading_state' => 'normal']
|
|
4574
|
7186
|
),
|
|
7187
|
+ 'heading_delay' => array(
|
|
7188
|
+ 'type' => 'spinner',
|
|
7189
|
+ 'label' => __pl('service_icon_hover_delay'),
|
|
7190
|
+ 'min' => 0,
|
|
7191
|
+ 'step' => 100,
|
|
7192
|
+ 'max' => 5000,
|
|
7193
|
+ 'default' => 400,
|
|
7194
|
+ 'css' => ['{{element}} .pagelayer-service-heading' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
|
|
7195
|
+ 'show' => ['heading_state' => 'hover']
|
|
7196
|
+ ),
|
|
7197
|
+ 'heading_color_hover' => array(
|
|
7198
|
+ 'type' => 'color',
|
|
7199
|
+ 'label' => __pl('service_heading_color'),
|
|
7200
|
+ 'css' => ['{{element}}:hover .pagelayer-service-heading' => 'color:{{val}}'],
|
|
7201
|
+ 'show' => ['heading_state' => 'hover']
|
|
7202
|
+ ),
|
|
7203
|
+ 'heading_typo_hover' => array(
|
|
7204
|
+ 'type' => 'typography',
|
|
7205
|
+ 'label' => __pl('service_heading_typo'),
|
|
7206
|
+ 'css' => ['{{element}}:hover .pagelayer-service-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;'],
|
|
7207
|
+ 'show' => ['heading_state' => 'hover']
|
|
7208
|
+ ),
|
|
4575
|
7209
|
],
|
|
4576
|
7210
|
//service content style
|
|
4577
|
7211
|
'service_content_style' =>[
|
|
4578
|
7212
|
'service_text_alignment' => array(
|
|
4579
|
|
- 'type' => 'select',
|
|
4580
|
|
- 'label' => __pl('iconbox_box_text_alignment'),
|
|
7213
|
+ 'type' => 'radio',
|
|
7214
|
+ 'label' => __pl('alignment'),
|
|
4581
|
7215
|
'default' => 'center',
|
|
7216
|
+ 'screen' => 1,
|
|
4582
|
7217
|
'list' => array(
|
|
4583
|
7218
|
'left' => __pl('left'),
|
|
4584
|
7219
|
'center' => __pl('center'),
|
|
4585
|
7220
|
'right' => __pl('right'),
|
|
@@ -4586,13 +7221,18 @@ |
|
4586
|
7221
|
'justify' => __pl('justify'),
|
|
4587
|
7222
|
),
|
|
4588
|
7223
|
'css' => ['{{element}} .pagelayer-service-details' => 'text-align:{{val}};'],
|
|
4589
|
7224
|
),
|
|
7225
|
+ 'service_content_spacing' => array(
|
|
7226
|
+ 'type' => 'padding',
|
|
7227
|
+ 'label' => __pl('spacing'),
|
|
7228
|
+ 'css' => ['{{element}} .pagelayer-service-text' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'],
|
|
7229
|
+ ),
|
|
4590
|
7230
|
'service_text' => array(
|
|
4591
|
7231
|
'type' => 'editor',
|
|
4592
|
7232
|
'label' => __pl('iconbox_box_text_label'),
|
|
4593
|
7233
|
'default' => 'Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.',
|
|
4594
|
|
- 'text' => __pl('open_in_wpeditor'),
|
|
7234
|
+ 'edit' => '.pagelayer-service-text',
|
|
4595
|
7235
|
),
|
|
4596
|
7236
|
],
|
|
4597
|
7237
|
//service button style
|
|
4598
|
7238
|
'service_btn_style' =>[
|
|
@@ -4616,11 +7256,9 @@ |
|
4616
|
7256
|
'pagelayer-btn-light' => __pl('btn_type_light'),
|
|
4617
|
7257
|
'pagelayer-btn-link' => __pl('btn_type_link'),
|
|
4618
|
7258
|
'pagelayer-btn-custom' => __pl('btn_type_custom')
|
|
4619
|
7259
|
),
|
|
4620
|
|
- 'req' => array(
|
|
4621
|
|
- 'service_button' => 'true'
|
|
4622
|
|
- ),
|
|
7260
|
+ 'req' => ['service_button' => 'true']
|
|
4623
|
7261
|
),
|
|
4624
|
7262
|
'service_button_size' => array(
|
|
4625
|
7263
|
'type' => 'select',
|
|
4626
|
7264
|
'label' => __pl('button_size_label'),
|
|
@@ -4630,39 +7268,53 @@ |
|
4630
|
7268
|
'pagelayer-btn-small' => __pl('small'),
|
|
4631
|
7269
|
'pagelayer-btn-large' => __pl('large'),
|
|
4632
|
7270
|
'pagelayer-btn-extra-large' => __pl('extra_large'),
|
|
4633
|
7271
|
'pagelayer-btn-double-large' => __pl('double_large'),
|
|
4634
|
|
- //'pagelayer-btn-custom' => __pl('custom'),
|
|
7272
|
+ 'pagelayer-btn-custom' => __pl('custom'),
|
|
4635
|
7273
|
),
|
|
4636
|
|
- 'req' => array(
|
|
4637
|
|
- 'service_button' => 'true'
|
|
4638
|
|
- )
|
|
7274
|
+ 'req' => ['service_button' => 'true']
|
|
4639
|
7275
|
),
|
|
7276
|
+ 'service_btn_dim' => array(
|
|
7277
|
+ 'type' => 'dimension',
|
|
7278
|
+ 'label' => __pl('service_btn_dim'),
|
|
7279
|
+ 'default' => '10,15',
|
|
7280
|
+ 'screen' => 1,
|
|
7281
|
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[0]}}px;padding-left:{{val[1]}}px;'],
|
|
7282
|
+ 'req' => [
|
|
7283
|
+ 'service_button' => 'true',
|
|
7284
|
+ 'service_button_size' => 'pagelayer-btn-custom',
|
|
7285
|
+ ]
|
|
7286
|
+ ),
|
|
7287
|
+ 'service_btn_stretch' => array(
|
|
7288
|
+ 'type' => 'checkbox',
|
|
7289
|
+ 'label' => __pl('stretch'),
|
|
7290
|
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'width:100%;'],
|
|
7291
|
+ 'req' => ['service_button' => 'true']
|
|
7292
|
+ ),
|
|
4640
|
7293
|
'service_button_url' => array(
|
|
4641
|
7294
|
'type' => 'link',
|
|
4642
|
7295
|
'label' => __pl('iconbox_btn_url_label'),
|
|
4643
|
|
- 'req' => array(
|
|
4644
|
|
- 'service_button' => 'true'
|
|
4645
|
|
- ),
|
|
7296
|
+ 'selector' => '.pagelayer-service-btn',
|
|
7297
|
+ 'req' => ['service_button' => 'true']
|
|
4646
|
7298
|
),
|
|
4647
|
7299
|
'service_button_text' => array(
|
|
4648
|
7300
|
'type' => 'text',
|
|
4649
|
7301
|
'label' => __pl('iconbox_button_text_label'),
|
|
7302
|
+ 'edit' => '.pagelayer-service-btn',
|
|
4650
|
7303
|
'default' => 'Click Here!',
|
|
4651
|
|
- 'req' => array(
|
|
4652
|
|
- 'service_button' => 'true'
|
|
4653
|
|
- ),
|
|
7304
|
+ 'req' => ['service_button' => 'true']
|
|
4654
|
7305
|
),
|
|
7306
|
+ 'service_button_typo' => array(
|
|
7307
|
+ 'type' => 'typography',
|
|
7308
|
+ 'label' => __pl('typography'),
|
|
7309
|
+ '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;'],
|
|
7310
|
+ 'req' => ['service_button' => 'true']
|
|
7311
|
+ ),
|
|
4655
|
7312
|
'service_btn_spacing' => array(
|
|
4656
|
|
- 'type' => 'slider',
|
|
4657
|
|
- 'label' => __pl('service_btn_spacing'),
|
|
4658
|
|
- 'min' => '0',
|
|
4659
|
|
- 'max' => '200',
|
|
4660
|
|
- 'default' => '10',
|
|
4661
|
|
- 'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top: {{val}}px;'],
|
|
4662
|
|
- 'req' => [
|
|
4663
|
|
- 'service_button' => 'true',
|
|
4664
|
|
- ]
|
|
7313
|
+ 'type' => 'padding',
|
|
7314
|
+ 'label' => __pl('spacing'),
|
|
7315
|
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
7316
|
+ 'req' => ['service_button' => 'true']
|
|
4665
|
7317
|
),
|
|
4666
|
7318
|
'service_button_font_size' => array(
|
|
4667
|
7319
|
'type' => 'slider',
|
|
4668
|
7320
|
'label' => __pl('iconbox_btn_text_size'),
|
|
@@ -4667,8 +7319,9 @@ |
|
4667
|
7319
|
'type' => 'slider',
|
|
4668
|
7320
|
'label' => __pl('iconbox_btn_text_size'),
|
|
4669
|
7321
|
'min' => '0',
|
|
4670
|
7322
|
'max' => '50',
|
|
7323
|
+ 'screen' => 1,
|
|
4671
|
7324
|
'css' => ['{{element}} .pagelayer-service-btn' => 'font-size:{{val}}px;'],
|
|
4672
|
7325
|
'req' => [
|
|
4673
|
7326
|
'service_button' => 'true',
|
|
4674
|
7327
|
'iconbox_button_type' => 'pagelayer-btn-custom',
|
|
@@ -4700,9 +7353,9 @@ |
|
4700
|
7353
|
),
|
|
4701
|
7354
|
'service_button_bg_color' => array(
|
|
4702
|
7355
|
'type' => 'color',
|
|
4703
|
7356
|
'label' => __pl('service_button_bg_color'),
|
|
4704
|
|
- 'default' => '#3e8ef7',
|
|
7357
|
+ 'default' => '#0986c0',
|
|
4705
|
7358
|
'css' => ['{{element}} .pagelayer-service-btn' => 'background-color:{{val}};'],
|
|
4706
|
7359
|
'req' => [
|
|
4707
|
7360
|
'service_button' => 'true',
|
|
4708
|
7361
|
'iconbox_button_type' => 'pagelayer-btn-custom',
|
|
@@ -4733,8 +7386,120 @@ |
|
4733
|
7386
|
'css' => ['{{element}} .pagelayer-service-btn:hover' => 'background-color:{{val}};'],
|
|
4734
|
7387
|
'show' => ['service_btn_state' => 'hover'],
|
|
4735
|
7388
|
),
|
|
4736
|
7389
|
],
|
|
7390
|
+ 'border_style' => [
|
|
7391
|
+ 'btn_bor_hover' => array(
|
|
7392
|
+ 'type' => 'radio',
|
|
7393
|
+ 'label' => __pl('state'),
|
|
7394
|
+ 'list' => array(
|
|
7395
|
+ '' => __pl('normal'),
|
|
7396
|
+ 'hover' => __pl('hover'),
|
|
7397
|
+ )
|
|
7398
|
+ ),
|
|
7399
|
+ 'btn_border_type' => array(
|
|
7400
|
+ 'type' => 'select',
|
|
7401
|
+ 'label' => __pl('border_type'),
|
|
7402
|
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'border-style: {{val}}'],
|
|
7403
|
+ 'list' => [
|
|
7404
|
+ '' => __pl('none'),
|
|
7405
|
+ 'solid' => __pl('solid'),
|
|
7406
|
+ 'double' => __pl('double'),
|
|
7407
|
+ 'dotted' => __pl('dotted'),
|
|
7408
|
+ 'dashed' => __pl('dashed'),
|
|
7409
|
+ 'groove' => __pl('groove'),
|
|
7410
|
+ ],
|
|
7411
|
+ 'show' => array(
|
|
7412
|
+ 'btn_bor_hover' => ''
|
|
7413
|
+ ),
|
|
7414
|
+ ),
|
|
7415
|
+ 'btn_border_color' => array(
|
|
7416
|
+ 'type' => 'color',
|
|
7417
|
+ 'label' => __pl('border_color_label'),
|
|
7418
|
+ 'css' => ['{{element}} .pagelayer-service-btn' => 'border-color: {{val}};'],
|
|
7419
|
+ 'req' => array(
|
|
7420
|
+ '!btn_border_type' => ''
|
|
7421
|
+ ),
|
|
7422
|
+ 'show' => array(
|
|
7423
|
+ 'btn_bor_hover' => ''
|
|
7424
|
+ ),
|
|
7425
|
+ ),
|
|
7426
|
+ 'btn_border_width' => array(
|
|
7427
|
+ 'type' => 'padding',
|
|
7428
|
+ 'label' => __pl('border_width'),
|
|
7429
|
+ 'screen' => 1,
|
|
7430
|
+ 'css' => ['{{element}} .pagelayer-service-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'],
|
|
7431
|
+ 'req' => [
|
|
7432
|
+ '!btn_border_type' => ''
|
|
7433
|
+ ],
|
|
7434
|
+ 'show' => array(
|
|
7435
|
+ 'btn_bor_hover' => ''
|
|
7436
|
+ ),
|
|
7437
|
+ ),
|
|
7438
|
+ 'btn_border_radius' => array(
|
|
7439
|
+ 'type' => 'padding',
|
|
7440
|
+ 'label' => __pl('border_radius'),
|
|
7441
|
+ 'screen' => 1,
|
|
7442
|
+ 'css' => ['{{element}} .pagelayer-service-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;'],
|
|
7443
|
+ 'req' => array(
|
|
7444
|
+ '!btn_border_type' => ''
|
|
7445
|
+ ),
|
|
7446
|
+ 'show' => array(
|
|
7447
|
+ 'btn_bor_hover' => ''
|
|
7448
|
+ ),
|
|
7449
|
+ ),
|
|
7450
|
+ 'btn_border_type_hover' => array(
|
|
7451
|
+ 'type' => 'select',
|
|
7452
|
+ 'label' => __pl('border_type'),
|
|
7453
|
+ 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'border-style: {{val}}'],
|
|
7454
|
+ 'list' => [
|
|
7455
|
+ '' => __pl('none'),
|
|
7456
|
+ 'solid' => __pl('solid'),
|
|
7457
|
+ 'double' => __pl('double'),
|
|
7458
|
+ 'dotted' => __pl('dotted'),
|
|
7459
|
+ 'dashed' => __pl('dashed'),
|
|
7460
|
+ 'groove' => __pl('groove'),
|
|
7461
|
+ ],
|
|
7462
|
+ 'show' => array(
|
|
7463
|
+ 'btn_bor_hover' => 'hover'
|
|
7464
|
+ ),
|
|
7465
|
+ ),
|
|
7466
|
+ 'btn_border_color_hover' => array(
|
|
7467
|
+ 'type' => 'color',
|
|
7468
|
+ 'label' => __pl('border_color_hover_label'),
|
|
7469
|
+ 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'border-color: {{val}};'],
|
|
7470
|
+ 'req' => array(
|
|
7471
|
+ '!btn_border_type_hover' => ''
|
|
7472
|
+ ),
|
|
7473
|
+ 'show' => array(
|
|
7474
|
+ 'btn_bor_hover' => 'hover'
|
|
7475
|
+ ),
|
|
7476
|
+ ),
|
|
7477
|
+ 'btn_border_width_hover' => array(
|
|
7478
|
+ 'type' => 'padding',
|
|
7479
|
+ 'label' => __pl('border_width_hover'),
|
|
7480
|
+ 'screen' => 1,
|
|
7481
|
+ 'css' => ['{{element}} .pagelayer-service-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'],
|
|
7482
|
+ 'req' => [
|
|
7483
|
+ '!btn_border_type_hover' => ''
|
|
7484
|
+ ],
|
|
7485
|
+ 'show' => array(
|
|
7486
|
+ 'btn_bor_hover' => 'hover'
|
|
7487
|
+ ),
|
|
7488
|
+ ),
|
|
7489
|
+ 'btn_border_radius_hover' => array(
|
|
7490
|
+ 'type' => 'padding',
|
|
7491
|
+ 'label' => __pl('border_radius_hover'),
|
|
7492
|
+ 'screen' => 1,
|
|
7493
|
+ 'css' => ['{{element}} .pagelayer-service-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;'],
|
|
7494
|
+ 'req' => array(
|
|
7495
|
+ '!btn_border_type_hover' => ''
|
|
7496
|
+ ),
|
|
7497
|
+ 'show' => array(
|
|
7498
|
+ 'btn_bor_hover' => 'hover'
|
|
7499
|
+ ),
|
|
7500
|
+ ),
|
|
7501
|
+ ],
|
|
4737
|
7502
|
'styles' => [
|
|
4738
|
7503
|
'service_icon_style' => __pl('service_icon_style'),
|
|
4739
|
7504
|
'service_icon_border' => __pl('service_icon_border'),
|
|
4740
|
7505
|
'service_heading_style' => __pl('service_heading_style'),
|
|
@@ -4739,8 +7504,9 @@ |
|
4739
|
7504
|
'service_icon_border' => __pl('service_icon_border'),
|
|
4740
|
7505
|
'service_heading_style' => __pl('service_heading_style'),
|
|
4741
|
7506
|
'service_content_style' => __pl('service_content_style'),
|
|
4742
|
7507
|
'service_btn_style' => __pl('service_btn_style'),
|
|
7508
|
+ 'border_style' => __pl('btn_border_style'),
|
|
4743
|
7509
|
],
|
|
4744
|
7510
|
)
|
|
4745
|
7511
|
);
|
|
4746
|
7512
|
|
|
@@ -4747,9 +7513,8 @@ |
|
4747
|
7513
|
// Tabs
|
|
4748
|
7514
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
|
|
4749
|
7515
|
'name' => __pl('tabs'),
|
|
4750
|
7516
|
'group' => 'other',
|
|
4751
|
|
- 'func' => 'pagelayer_sc_tabs',
|
|
4752
|
7517
|
'has_group' => [
|
|
4753
|
7518
|
'section' => 'params',
|
|
4754
|
7519
|
'prop' => 'elements'
|
|
4755
|
7520
|
],
|
|
@@ -4778,8 +7543,9 @@ |
|
4778
|
7543
|
'default' => 30,
|
|
4779
|
7544
|
'min' => 0,
|
|
4780
|
7545
|
'max' => 70,
|
|
4781
|
7546
|
'step' => 1,
|
|
7547
|
+ 'screen' => 1,
|
|
4782
|
7548
|
'css' => ['{{element}}' => 'width:100%; display: -webkit-flex;
|
|
4783
|
7549
|
display: flex;', '{{element}} .pagelayer-tabs-holder' => '-webkit-flex-basis: {{val}}%; flex-basis:{{val}}%', '{{element}} .pagelayer-tabcontainer' => '-webkit-flex-basis: calc(100% - {{val}}%); flex-basis:calc(100% - {{val}}%)', '{{element}} .pagelayer-tabs-holder .pagelayer-tablinks' => 'width: 100%;'],
|
|
4784
|
7550
|
'req' => array(
|
|
4785
|
7551
|
'vertical' => 'true',
|
|
@@ -4831,8 +7597,9 @@ |
|
4831
|
7597
|
'tabs_holder_border_width' => array(
|
|
4832
|
7598
|
'type' => 'padding',
|
|
4833
|
7599
|
'label' => __pl('Border Width'),
|
|
4834
|
7600
|
'default' => '1,1,0,1',
|
|
7601
|
+ 'screen' => 1,
|
|
4835
|
7602
|
'req' => [
|
|
4836
|
7603
|
'!tabs_border_type' => ''
|
|
4837
|
7604
|
],
|
|
4838
|
7605
|
'css' => ['{{element}} .pagelayer-tabs-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'],
|
|
@@ -4840,8 +7607,9 @@ |
|
4840
|
7607
|
'tabs_holder_border_radius' => array(
|
|
4841
|
7608
|
'type' => 'padding',
|
|
4842
|
7609
|
'label' => __pl('Border Radius'),
|
|
4843
|
7610
|
'default' => '1,1,0,1',
|
|
7611
|
+ 'screen' => 1,
|
|
4844
|
7612
|
'req' => [
|
|
4845
|
7613
|
'!tabs_border_type' => ''
|
|
4846
|
7614
|
],
|
|
4847
|
7615
|
'css' => ['{{element}} .pagelayer-tabs-holder' => 'border-top-left-radius: {{val[0]}}px; border-top-right-radius: {{val[1]}}px; border-bottom-right-radius: {{val[2]}}px; border-bottom-left-radius: {{val[3]}}px'],
|
|
@@ -4851,8 +7619,9 @@ |
|
4851
|
7619
|
'tabs_holder_align' => array(
|
|
4852
|
7620
|
'type' => 'radio',
|
|
4853
|
7621
|
'label' => __pl('alignment'),
|
|
4854
|
7622
|
'default' => 'left',
|
|
7623
|
+ 'screen' => 1,
|
|
4855
|
7624
|
'list' => array(
|
|
4856
|
7625
|
'left' => __pl('Left'),
|
|
4857
|
7626
|
'center' => __pl('Center'),
|
|
4858
|
7627
|
'right' => __pl('Right'),
|
|
@@ -4879,9 +7648,9 @@ |
|
4879
|
7648
|
),
|
|
4880
|
7649
|
'tabs_active_bg_color' => array(
|
|
4881
|
7650
|
'type' => 'color',
|
|
4882
|
7651
|
'label' => __pl('Active Tab Background Color'),
|
|
4883
|
|
- 'default' => '#3e8ef7',
|
|
7652
|
+ 'default' => '#0986c0',
|
|
4884
|
7653
|
'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks.active'=> 'background-color:{{val}}', '{{element}} .pagelayer-tabs-holder .pagelayer-tablinks:hover' => 'background-color:{{val}}'],
|
|
4885
|
7654
|
),
|
|
4886
|
7655
|
'tab_title_typo' => array(
|
|
4887
|
7656
|
'type' => 'typography',
|
|
@@ -4895,9 +7664,9 @@ |
|
4895
|
7664
|
'list' => array(
|
|
4896
|
7665
|
'left' => __pl('Left'),
|
|
4897
|
7666
|
'right' => __pl('Right'),
|
|
4898
|
7667
|
),
|
|
4899
|
|
- 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks .fa'=> 'float:{{val}};'],
|
|
7668
|
+ 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks i'=> 'float:{{val}};'],
|
|
4900
|
7669
|
),
|
|
4901
|
7670
|
'tabs_icon_spacing' => array(
|
|
4902
|
7671
|
'type' => 'slider',
|
|
4903
|
7672
|
'label' => __pl('tabs_icon_spacing'),
|
|
@@ -4904,9 +7673,10 @@ |
|
4904
|
7673
|
'default' => 10,
|
|
4905
|
7674
|
'max' => 50,
|
|
4906
|
7675
|
'min' => 0,
|
|
4907
|
7676
|
'steps' => 1,
|
|
4908
|
|
- 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks .fa'=> 'padding:0px {{val}}px;padding-{{tabs_icon_align}}:0px;'],
|
|
7677
|
+ 'screen' => 1,
|
|
7678
|
+ 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks i'=> 'padding:0px {{val}}px;padding-{{tabs_icon_align}}:0px;'],
|
|
4909
|
7679
|
),
|
|
4910
|
7680
|
],
|
|
4911
|
7681
|
'content_styles' => [
|
|
4912
|
7682
|
'tabs_content_typo' => array(
|
|
@@ -4932,14 +7702,16 @@ |
|
4932
|
7702
|
'default' => 15,
|
|
4933
|
7703
|
'min' => 0,
|
|
4934
|
7704
|
'max' => 50,
|
|
4935
|
7705
|
'step' => 1,
|
|
4936
|
|
- 'css' => ['{{element}}.pagelayer-tabs .pagelayer-tabcontainer [pagelayer-id]' => 'padding: {{val}}px;'],
|
|
7706
|
+ 'screen' => 1,
|
|
7707
|
+ 'css' => ['{{element}}.pagelayer-tabs .pagelayer-tabcontainer .pagelayer-tab' => 'padding: {{val}}px;'],
|
|
4937
|
7708
|
),
|
|
4938
|
7709
|
'tabs_content_border_width' => array(
|
|
4939
|
7710
|
'type' => 'padding',
|
|
4940
|
7711
|
'label' => __pl('border_width'),
|
|
4941
|
7712
|
'default' => '1,1,1,1',
|
|
7713
|
+ 'screen' => 1,
|
|
4942
|
7714
|
'req' => [
|
|
4943
|
7715
|
'!tabs_border_type' => ''
|
|
4944
|
7716
|
],
|
|
4945
|
7717
|
'css' => ['{{element}} .pagelayer-tabcontainer' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
|
@@ -4946,8 +7718,9 @@ |
|
4946
|
7718
|
),
|
|
4947
|
7719
|
'tabs_content_border_radius' => array(
|
|
4948
|
7720
|
'type' => 'padding',
|
|
4949
|
7721
|
'label' => __pl('border_radius'),
|
|
7722
|
+ 'screen' => 1,
|
|
4950
|
7723
|
'req' => [
|
|
4951
|
7724
|
'!tabs_border_type' => ''
|
|
4952
|
7725
|
],
|
|
4953
|
7726
|
'css' => ['{{element}} .pagelayer-tabcontainer' => 'border-top-left-radius: {{val[0]}}px; border-top-right-radius: {{val[1]}}px; border-bottom-right-radius: {{val[2]}}px; border-bottom-left-radius: {{val[3]}}px'],
|
|
@@ -4966,12 +7739,34 @@ |
|
4966
|
7739
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tab', array(
|
|
4967
|
7740
|
'name' => __pl('tab'),
|
|
4968
|
7741
|
'group' => 'other',
|
|
4969
|
7742
|
'not_visible' => 1,
|
|
4970
|
|
- 'func' => 'pagelayer_sc_tab',
|
|
4971
|
|
- 'innerHTML' => 'text',
|
|
4972
|
|
- 'html' => '<div class="pagelayer-tabcontent">{{text}}</div>',
|
|
7743
|
+ 'parent' => [PAGELAYER_SC_PREFIX.'_tabs'],
|
|
7744
|
+ 'has_group' => [
|
|
7745
|
+ 'section' => 'params',
|
|
7746
|
+ 'prop' => 'elements',
|
|
7747
|
+ ],
|
|
7748
|
+ 'holder' => '.pagelayer-tabcontent',
|
|
7749
|
+ 'html' => '<div class="pagelayer-tabcontent"></div>',
|
|
4973
|
7750
|
'params' => array(
|
|
7751
|
+ 'elements' => array(
|
|
7752
|
+ 'type' => 'group',
|
|
7753
|
+ 'label' => __pl('Inner Row'),
|
|
7754
|
+ 'sc' => PAGELAYER_SC_PREFIX.'_inner_row', // a.k.a the item being multiplied by the count
|
|
7755
|
+ 'count' => 1,
|
|
7756
|
+ 'item_label' => array(
|
|
7757
|
+ 'default' => __pl('Inner Row'),
|
|
7758
|
+ ),
|
|
7759
|
+ 'item_atts' => [], // orderwise array of attrbutes to be set as per the count given
|
|
7760
|
+ 'inner_content' => [ // This is the content within each item which is going to the created i.e. within each SC. This only use for inner rows
|
|
7761
|
+ ['pl_col' => [
|
|
7762
|
+ 'inner_content' => [
|
|
7763
|
+ ['pl_text' => [ 'atts' => ['text' => 'This is the default Tab content. Feel free to delete it.']]]
|
|
7764
|
+ ]]
|
|
7765
|
+ ]
|
|
7766
|
+ ],
|
|
7767
|
+ 'hide' => 1,
|
|
7768
|
+ ),
|
|
4974
|
7769
|
'default_active' => array(
|
|
4975
|
7770
|
'type' => 'checkbox',
|
|
4976
|
7771
|
'label' => __pl('Default active tab'),
|
|
4977
|
7772
|
'addAttr' => 'pagelayer-default_active="1"'
|
|
@@ -4980,21 +7775,20 @@ |
|
4980
|
7775
|
'type' => 'icon',
|
|
4981
|
7776
|
'label' => __pl('icon'),
|
|
4982
|
7777
|
'addAttr' => 'pagelayer-tab-icon="{{tab_icon}}"',
|
|
4983
|
7778
|
),
|
|
7779
|
+ 'anchor_id' => array(
|
|
7780
|
+ 'type' => 'text',
|
|
7781
|
+ 'label' => __pl('ele_id'),
|
|
7782
|
+ 'addAttr' => 'id="{{anchor_id}}"'
|
|
7783
|
+ ),
|
|
4984
|
7784
|
'title' => array(
|
|
4985
|
7785
|
'type' => 'text',
|
|
4986
|
7786
|
'label' => __pl('title'),
|
|
4987
|
7787
|
'default' => 'Lorem',
|
|
4988
|
|
- 'addAttr' => 'pagelayer-tab-title="{{title}}"'
|
|
7788
|
+ 'addAttr' => 'pagelayer-tab-title="{{title}}"',
|
|
7789
|
+ 'edit' => '.pl-tab-title'
|
|
4989
|
7790
|
),
|
|
4990
|
|
- 'text' => array(
|
|
4991
|
|
- 'type' => 'editor',
|
|
4992
|
|
- 'label' => __pl('Edit Rich Text'),
|
|
4993
|
|
- 'default' => 'Lorem ipsum dolor sit amet',
|
|
4994
|
|
- 'desc' => __pl('Edit the content here or edit directly in the Editor'),
|
|
4995
|
|
- 'edit' => '.pagelayer-text-holder',
|
|
4996
|
|
- ),
|
|
4997
|
7791
|
)
|
|
4998
|
7792
|
)
|
|
4999
|
7793
|
);
|
|
5000
|
7794
|
|
|
@@ -5001,9 +7795,8 @@ |
|
5001
|
7795
|
// Accordion
|
|
5002
|
7796
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
|
|
5003
|
7797
|
'name' => __pl('accordion'),
|
|
5004
|
7798
|
'group' => 'other',
|
|
5005
|
|
- 'func' => 'pagelayer_sc_accordion',
|
|
5006
|
7799
|
'has_group' => [
|
|
5007
|
7800
|
'section' => 'params',
|
|
5008
|
7801
|
'prop' => 'elements'
|
|
5009
|
7802
|
],
|
|
@@ -5027,8 +7820,9 @@ |
|
5027
|
7820
|
'default' => 0,
|
|
5028
|
7821
|
'min' => 0,
|
|
5029
|
7822
|
'max' => 50,
|
|
5030
|
7823
|
'step' => 1,
|
|
7824
|
+ 'screen' => 1,
|
|
5031
|
7825
|
'css' => ['{{element}} .pagelayer-accordion_item' => 'margin-bottom:{{val}}px;'],
|
|
5032
|
7826
|
),
|
|
5033
|
7827
|
),
|
|
5034
|
7828
|
'icon_styles' => [
|
|
@@ -5034,20 +7828,21 @@ |
|
5034
|
7828
|
'icon_styles' => [
|
|
5035
|
7829
|
'icon' => array(
|
|
5036
|
7830
|
'type' => 'icon',
|
|
5037
|
7831
|
'label' => __pl('list_icon_label'),
|
|
5038
|
|
- 'default' => 'plus',
|
|
7832
|
+ 'default' => 'fas fa-plus',
|
|
5039
|
7833
|
),
|
|
5040
|
7834
|
'active_icon' => array(
|
|
5041
|
7835
|
'type' => 'icon',
|
|
5042
|
7836
|
'label' => __pl('Active Icon'),
|
|
5043
|
|
- 'default' => 'minus',
|
|
7837
|
+ 'default' => 'fas fa-minus',
|
|
5044
|
7838
|
),
|
|
5045
|
7839
|
'icon_align' => array(
|
|
5046
|
7840
|
'type' => 'radio',
|
|
5047
|
7841
|
'label' => __pl('Alignment'),
|
|
5048
|
7842
|
'default' => 'left',
|
|
5049
|
|
- 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
|
|
7843
|
+ 'screen' => 1,
|
|
7844
|
+ 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'float:{{val}}'],
|
|
5050
|
7845
|
'list' => array(
|
|
5051
|
7846
|
'left' => __pl('left'),
|
|
5052
|
7847
|
'right' => __pl('right'),
|
|
5053
|
7848
|
)
|
|
@@ -5059,9 +7854,10 @@ |
|
5059
|
7854
|
'default' => 10,
|
|
5060
|
7855
|
'min' => 0,
|
|
5061
|
7856
|
'max' => 50,
|
|
5062
|
7857
|
'step' => 1,
|
|
5063
|
|
- 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'padding:0px {{val}}px; padding-{{icon_align}}:0px;'],
|
|
7858
|
+ 'screen' => 1,
|
|
7859
|
+ 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'padding:0px {{val}}px; padding-{{icon_align}}:0px;'],
|
|
5064
|
7860
|
),
|
|
5065
|
7861
|
],
|
|
5066
|
7862
|
'tabs_styles' => [
|
|
5067
|
7863
|
'tabs_color' => array(
|
|
@@ -5079,15 +7875,15 @@ |
|
5079
|
7875
|
'tabs_active_color' => array(
|
|
5080
|
7876
|
'type' => 'color',
|
|
5081
|
7877
|
'label' => __pl('Active Tab Color '),
|
|
5082
|
7878
|
'default' => '#ffffff',
|
|
5083
|
|
- 'css' => ['{{element}} .pagelayer-accordion-tabs.active' => 'color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'color:{{val}}'],
|
|
7879
|
+ 'css' => ['{{element}} .active .pagelayer-accordion-tabs' => 'color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'color:{{val}}'],
|
|
5084
|
7880
|
),
|
|
5085
|
7881
|
'tabs_active_bg_color' => array(
|
|
5086
|
7882
|
'type' => 'color',
|
|
5087
|
7883
|
'label' => __pl('Active Tab Background Color '),
|
|
5088
|
|
- 'default' => '#3e8ef7',
|
|
5089
|
|
- 'css' => ['{{element}} .pagelayer-accordion-tabs.active'=> 'background-color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'background-color:{{val}}'],
|
|
7884
|
+ 'default' => '#0986c0',
|
|
7885
|
+ 'css' => ['{{element}} .active .pagelayer-accordion-tabs'=> 'background-color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'background-color:{{val}}'],
|
|
5090
|
7886
|
),
|
|
5091
|
7887
|
'tab_padding' => array(
|
|
5092
|
7888
|
'type' => 'slider',
|
|
5093
|
7889
|
'label' => __pl('tabs_padding_label'),
|
|
@@ -5094,8 +7890,9 @@ |
|
5094
|
7890
|
'default' => 15,
|
|
5095
|
7891
|
'min' => 0,
|
|
5096
|
7892
|
'max' => 50,
|
|
5097
|
7893
|
'step' => 1,
|
|
7894
|
+ 'screen' => 1,
|
|
5098
|
7895
|
'css' => ['{{element}} .pagelayer-accordion-tabs' => 'padding: {{val}}px;'],
|
|
5099
|
7896
|
),
|
|
5100
|
7897
|
'accordion_title_typo' => array(
|
|
5101
|
7898
|
'type' => 'typography',
|
|
@@ -5114,8 +7911,15 @@ |
|
5114
|
7911
|
'type' => 'typography',
|
|
5115
|
7912
|
'label' => __pl('accordion_content_typo'),
|
|
5116
|
7913
|
'css' => ['{{element}} .pagelayer-accordion-panel' => '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;'],
|
|
5117
|
7914
|
),
|
|
7915
|
+ 'acc_content_padding' => array(
|
|
7916
|
+ 'type' => 'padding',
|
|
7917
|
+ 'label' => __pl('padding'),
|
|
7918
|
+ 'units' => ['px', '%', 'em'],
|
|
7919
|
+ 'screen' => 1,
|
|
7920
|
+ 'css' => ['{{element}} .pagelayer-accordion-panel' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}'],
|
|
7921
|
+ ),
|
|
5118
|
7922
|
'acc_border_type' => array(
|
|
5119
|
7923
|
'type' => 'select',
|
|
5120
|
7924
|
'label' => __pl('border_type'),
|
|
5121
|
7925
|
'list' => [
|
|
@@ -5140,12 +7944,19 @@ |
|
5140
|
7944
|
'acc_border_width' => array(
|
|
5141
|
7945
|
'type' => 'padding',
|
|
5142
|
7946
|
'label' => __pl('border_width'),
|
|
5143
|
7947
|
'default' => '1,1,1,1',
|
|
7948
|
+ 'screen' => 1,
|
|
5144
|
7949
|
'req' => [
|
|
5145
|
7950
|
'!acc_border_type' => ''
|
|
5146
|
7951
|
],
|
|
5147
|
7952
|
'css' => ['{{element}} .pagelayer-accordion_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', '{{element}} .pagelayer-accordion_item .pagelayer-accordion-panel' => 'border-width: {{val[0]}}px 0 0 0'],
|
|
7953
|
+ ),
|
|
7954
|
+ 'acc_border_radius' => array(
|
|
7955
|
+ 'type' => 'padding',
|
|
7956
|
+ 'label' => __pl('border_radius'),
|
|
7957
|
+ 'screen' => 1,
|
|
7958
|
+ 'css' => ['{{element}} .pagelayer-accordion_item' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px '],
|
|
5148
|
7959
|
)
|
|
5149
|
7960
|
],
|
|
5150
|
7961
|
'styles' => [
|
|
5151
|
7962
|
'icon_styles' => __pl('icon'),
|
|
@@ -5159,30 +7970,43 @@ |
|
5159
|
7970
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion_item', array(
|
|
5160
|
7971
|
'name' => __pl('Accordion item'),
|
|
5161
|
7972
|
'group' => 'other',
|
|
5162
|
7973
|
'not_visible' => 1,
|
|
5163
|
|
- 'func' => 'pagelayer_sc_accordion_item',
|
|
5164
|
|
- 'innerHTML' => 'text',
|
|
5165
|
|
- 'html' => '<a if="{{title}}" class="pagelayer-accordion-tabs">{{title}}<span class="pagelayer-accordion-icon"><i></i></span></a>
|
|
5166
|
|
- <div if="{{text}}" class="pagelayer-accordion-panel">{{text}}</div>',
|
|
7974
|
+ 'parent' => [PAGELAYER_SC_PREFIX.'_accordion', PAGELAYER_SC_PREFIX.'_collapse'],
|
|
7975
|
+ 'has_group' => [
|
|
7976
|
+ 'section' => 'params',
|
|
7977
|
+ 'prop' => 'elements'
|
|
7978
|
+ ],
|
|
7979
|
+ 'holder' => '.pagelayer-accordion-panel',
|
|
7980
|
+ 'html' => '<a if="{{title}}" class="pagelayer-accordion-tabs"><label class="pagelayer-accordion-title">{{title}}</label><span class="pagelayer-accordion-icon"><i></i></span></a>
|
|
7981
|
+ <div class="pagelayer-accordion-panel"></div>',
|
|
5167
|
7982
|
'params' => array(
|
|
7983
|
+ 'elements' => array(
|
|
7984
|
+ 'type' => 'group',
|
|
7985
|
+ 'label' => __pl('Inner Row'),
|
|
7986
|
+ 'sc' => PAGELAYER_SC_PREFIX.'_inner_row',
|
|
7987
|
+ 'count' => 1,
|
|
7988
|
+ 'item_label' => array(
|
|
7989
|
+ 'default' => __pl('Inner Row'),
|
|
7990
|
+ ),
|
|
7991
|
+ 'hide' => 1,
|
|
7992
|
+ ),
|
|
5168
|
7993
|
'default_active' => array(
|
|
5169
|
7994
|
'type' => 'checkbox',
|
|
5170
|
7995
|
'label' => __pl('Default active tab'),
|
|
7996
|
+ 'addClass' => 'active'
|
|
5171
|
7997
|
),
|
|
7998
|
+ 'scroll_id' => array(
|
|
7999
|
+ 'type' => 'text',
|
|
8000
|
+ 'label' => __pl('ele_id'),
|
|
8001
|
+ 'addAttr' => ['{{element}} .pagelayer-accordion-tabs' => 'id={{scroll_id}}']
|
|
8002
|
+ ),
|
|
5172
|
8003
|
'title' => array(
|
|
5173
|
8004
|
'type' => 'text',
|
|
5174
|
8005
|
'label' => __pl('title'),
|
|
5175
|
8006
|
'default' => 'Lorem',
|
|
5176
|
|
- 'desc' => __pl(''),
|
|
8007
|
+ 'edit' => '.pagelayer-accordion-title',
|
|
5177
|
8008
|
),
|
|
5178
|
|
- 'text' => array(
|
|
5179
|
|
- 'type' => 'editor',
|
|
5180
|
|
- 'label' => __pl('Edit Rich Text'),
|
|
5181
|
|
- 'default' => 'Lorem ipsum dolor sit amet',
|
|
5182
|
|
- 'desc' => __pl('Edit the content here or edit directly in the Editor'),
|
|
5183
|
|
- 'edit' => '.pagelayer-text-holder',
|
|
5184
|
|
- ),
|
|
5185
|
8009
|
)
|
|
5186
|
8010
|
)
|
|
5187
|
8011
|
);
|
|
5188
|
8012
|
|
|
@@ -5189,9 +8013,8 @@ |
|
5189
|
8013
|
// Toggle / Collapse
|
|
5190
|
8014
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
|
|
5191
|
8015
|
'name' => __pl('Collapse'),
|
|
5192
|
8016
|
'group' => 'other',
|
|
5193
|
|
- 'func' => 'pagelayer_sc_collapse',
|
|
5194
|
8017
|
'has_group' => [
|
|
5195
|
8018
|
'section' => 'params',
|
|
5196
|
8019
|
'prop' => 'elements'
|
|
5197
|
8020
|
],
|
|
@@ -5215,8 +8038,9 @@ |
|
5215
|
8038
|
'default' => 0,
|
|
5216
|
8039
|
'min' => 0,
|
|
5217
|
8040
|
'max' => 50,
|
|
5218
|
8041
|
'step' => 1,
|
|
8042
|
+ 'screen' => 1,
|
|
5219
|
8043
|
'css' => ['{{element}} .pagelayer-accordion_item' => 'margin-bottom:{{val}}px;'],
|
|
5220
|
8044
|
),
|
|
5221
|
8045
|
|
|
5222
|
8046
|
),
|
|
@@ -5223,20 +8047,21 @@ |
|
5223
|
8047
|
'icon_style' => [
|
|
5224
|
8048
|
'icon' => array(
|
|
5225
|
8049
|
'type' => 'icon',
|
|
5226
|
8050
|
'label' => __pl('list_icon_label'),
|
|
5227
|
|
- 'default' => 'plus',
|
|
8051
|
+ 'default' => 'fas fa-plus',
|
|
5228
|
8052
|
),
|
|
5229
|
8053
|
'active_icon' => array(
|
|
5230
|
8054
|
'type' => 'icon',
|
|
5231
|
8055
|
'label' => __pl('Active icon'),
|
|
5232
|
|
- 'default' => 'minus'
|
|
8056
|
+ 'default' => 'fas fa-minus'
|
|
5233
|
8057
|
),
|
|
5234
|
8058
|
'icon_align' => array(
|
|
5235
|
8059
|
'type' => 'radio',
|
|
5236
|
8060
|
'label' => __pl('Alignment'),
|
|
5237
|
8061
|
'default' => 'left',
|
|
5238
|
|
- 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
|
|
8062
|
+ 'screen' => 1,
|
|
8063
|
+ 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'float:{{val}}'],
|
|
5239
|
8064
|
'list' => array(
|
|
5240
|
8065
|
'left' => __pl('left'),
|
|
5241
|
8066
|
'right' => __pl('right'),
|
|
5242
|
8067
|
)
|
|
@@ -5248,9 +8073,10 @@ |
|
5248
|
8073
|
'default' => 10,
|
|
5249
|
8074
|
'min' => 0,
|
|
5250
|
8075
|
'max' => 50,
|
|
5251
|
8076
|
'step' => 1,
|
|
5252
|
|
- 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'padding:0px {{val}}px; padding-{{icon_align}}:0px;'],
|
|
8077
|
+ 'screen' => 1,
|
|
8078
|
+ 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'padding:0px {{val}}px; padding-{{icon_align}}:0px;'],
|
|
5253
|
8079
|
),
|
|
5254
|
8080
|
],
|
|
5255
|
8081
|
'tabs_styles' => [
|
|
5256
|
8082
|
'tabs_color' => array(
|
|
@@ -5268,15 +8094,15 @@ |
|
5268
|
8094
|
'tabs_active_color' => array(
|
|
5269
|
8095
|
'type' => 'color',
|
|
5270
|
8096
|
'label' => __pl('Active Tab Color '),
|
|
5271
|
8097
|
'default' => '#fff',
|
|
5272
|
|
- 'css' => ['{{element}} .pagelayer-accordion-tabs.active' => 'color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'color:{{val}}'],
|
|
8098
|
+ 'css' => ['{{element}} .active .pagelayer-accordion-tabs' => 'color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'color:{{val}}'],
|
|
5273
|
8099
|
),
|
|
5274
|
8100
|
'tabs_active_bg_color' => array(
|
|
5275
|
8101
|
'type' => 'color',
|
|
5276
|
8102
|
'label' => __pl('Active Tab Background Color '),
|
|
5277
|
|
- 'default' => '#3e8ef7',
|
|
5278
|
|
- 'css' => ['{{element}} .pagelayer-accordion-tabs.active'=> 'background-color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'background-color:{{val}}'],
|
|
8103
|
+ 'default' => '#0986c0',
|
|
8104
|
+ 'css' => ['{{element}} .active .pagelayer-accordion-tabs'=> 'background-color:{{val}}', '{{element}} .pagelayer-accordion-tabs:hover' => 'background-color:{{val}}'],
|
|
5279
|
8105
|
),
|
|
5280
|
8106
|
'tab_padding' => array(
|
|
5281
|
8107
|
'type' => 'slider',
|
|
5282
|
8108
|
'label' => __pl('tabs_padding_label'),
|
|
@@ -5283,8 +8109,9 @@ |
|
5283
|
8109
|
'default' => 15,
|
|
5284
|
8110
|
'min' => 0,
|
|
5285
|
8111
|
'max' => 50,
|
|
5286
|
8112
|
'step' => 1,
|
|
8113
|
+ 'screen' => 1,
|
|
5287
|
8114
|
'css' => ['{{element}} .pagelayer-accordion-tabs' => 'padding: {{val}}px;'],
|
|
5288
|
8115
|
),
|
|
5289
|
8116
|
'collapse_title_typo' => array(
|
|
5290
|
8117
|
'type' => 'typography',
|
|
@@ -5298,8 +8125,15 @@ |
|
5298
|
8125
|
'label' => __pl('Background Color '),
|
|
5299
|
8126
|
'default' => '#ffffff',
|
|
5300
|
8127
|
'css' => ['{{element}} .pagelayer-accordion_item .pagelayer-accordion-panel'=> 'background-color:{{val}}'],
|
|
5301
|
8128
|
),
|
|
8129
|
+ 'acc_content_padding' => array(
|
|
8130
|
+ 'type' => 'padding',
|
|
8131
|
+ 'label' => __pl('padding'),
|
|
8132
|
+ 'units' => ['px', '%', 'em'],
|
|
8133
|
+ 'screen' => 1,
|
|
8134
|
+ 'css' => ['{{element}} .pagelayer-accordion_item .pagelayer-accordion-panel' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}'],
|
|
8135
|
+ ),
|
|
5302
|
8136
|
'acc_border_type' => array(
|
|
5303
|
8137
|
'type' => 'select',
|
|
5304
|
8138
|
'label' => __pl('border_type'),
|
|
5305
|
8139
|
'list' => [
|
|
@@ -5316,8 +8150,9 @@ |
|
5316
|
8150
|
'acc_border_width' => array(
|
|
5317
|
8151
|
'type' => 'padding',
|
|
5318
|
8152
|
'label' => __pl('border_width'),
|
|
5319
|
8153
|
'default' => '1,1,1,1',
|
|
8154
|
+ 'screen' => 1,
|
|
5320
|
8155
|
'req' => [
|
|
5321
|
8156
|
'!acc_border_type' => ''
|
|
5322
|
8157
|
],
|
|
5323
|
8158
|
'css' => ['{{element}} .pagelayer-accordion_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', '{{element}} .pagelayer-accordion_item .pagelayer-accordion-panel' => 'border-width: {{val[0]}}px 0 0 0'],
|
|
@@ -5330,8 +8165,17 @@ |
|
5330
|
8165
|
'!acc_border_type' => ''
|
|
5331
|
8166
|
],
|
|
5332
|
8167
|
'css' => ['{{element}} .pagelayer-accordion_item' => 'border-color: {{val}}', '{{element}} .pagelayer-accordion_item .pagelayer-accordion-panel' =>'border-color: {{val}}'],
|
|
5333
|
8168
|
),
|
|
8169
|
+ 'acc_border_radius' => array(
|
|
8170
|
+ 'type' => 'padding',
|
|
8171
|
+ 'label' => __pl('border_radius'),
|
|
8172
|
+ 'screen' => 1,
|
|
8173
|
+ 'css' => ['{{element}} .pagelayer-accordion_item' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px '],
|
|
8174
|
+ 'req' => array(
|
|
8175
|
+ '!acc_border_type' => ''
|
|
8176
|
+ ),
|
|
8177
|
+ )
|
|
5334
|
8178
|
],
|
|
5335
|
8179
|
'styles' => [
|
|
5336
|
8180
|
'icon_style' => __pl('icon'),
|
|
5337
|
8181
|
'tabs_styles' => __pl('Tabs'),
|
|
@@ -5343,9 +8187,8 @@ |
|
5343
|
8187
|
// Space
|
|
5344
|
8188
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_space', array(
|
|
5345
|
8189
|
'name' => __pl('space'),
|
|
5346
|
8190
|
'group' => 'other',
|
|
5347
|
|
- 'func' => 'pagelayer_sc_space',
|
|
5348
|
8191
|
'html' => '<div class="pagelayer-space-holder"></div>',
|
|
5349
|
8192
|
'params' => array(
|
|
5350
|
8193
|
'height' => array(
|
|
5351
|
8194
|
'type' => 'slider',
|
|
@@ -5350,9 +8193,10 @@ |
|
5350
|
8193
|
'height' => array(
|
|
5351
|
8194
|
'type' => 'slider',
|
|
5352
|
8195
|
'label' => __pl('Space Height'),
|
|
5353
|
8196
|
'screen' => 1,
|
|
5354
|
|
- 'css' => ['{{element}} .pagelayer-space-holder' => 'height: {{val}}px;'],
|
|
8197
|
+ 'units' => ['px', 'em'],
|
|
8198
|
+ 'css' => ['{{element}} .pagelayer-space-holder' => 'height: {{val}};'],
|
|
5355
|
8199
|
'default' => '10',
|
|
5356
|
8200
|
'min' => 0,
|
|
5357
|
8201
|
'max' => 1000,
|
|
5358
|
8202
|
'step' => 1
|
|
@@ -5364,9 +8208,8 @@ |
|
5364
|
8208
|
// Embed
|
|
5365
|
8209
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_embed', array(
|
|
5366
|
8210
|
'name' => __pl('embed'),
|
|
5367
|
8211
|
'group' => 'other',
|
|
5368
|
|
- 'func' => 'pagelayer_sc_embed',
|
|
5369
|
8212
|
'innerHTML' => 'data',
|
|
5370
|
8213
|
'html' => '<div if={{data}} class="pagelayer-embed-container">{{data}}</div>',
|
|
5371
|
8214
|
'params' => array(
|
|
5372
|
8215
|
'data' => array(
|
|
@@ -5371,9 +8214,9 @@ |
|
5371
|
8214
|
'params' => array(
|
|
5372
|
8215
|
'data' => array(
|
|
5373
|
8216
|
'type' => 'textarea',
|
|
5374
|
8217
|
'label' => __pl('embed_paste_code'),
|
|
5375
|
|
- 'default' => '<p>Paste HTML code here...</P>',
|
|
8218
|
+ 'default' => '<p>Paste HTML code here...</p>',
|
|
5376
|
8219
|
'desc' => '',
|
|
5377
|
8220
|
),
|
|
5378
|
8221
|
)
|
|
5379
|
8222
|
)
|
|
@@ -5382,9 +8225,9 @@ |
|
5382
|
8225
|
// Shortcodes
|
|
5383
|
8226
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_shortcodes', array(
|
|
5384
|
8227
|
'name' => __pl('shortcodes'),
|
|
5385
|
8228
|
'group' => 'other',
|
|
5386
|
|
- 'func' => 'pagelayer_sc_shortcodes',
|
|
8229
|
+ 'no_gt' => 1,
|
|
5387
|
8230
|
'innerHTML' => 'data',
|
|
5388
|
8231
|
'holder' => '.pagelayer-shortcodes-container',
|
|
5389
|
8232
|
'html' => '<div class="pagelayer-shortcodes-container">{{{shortcode}}}</div>',
|
|
5390
|
8233
|
'params' => array(
|
|
@@ -5396,24 +8239,232 @@ |
|
5396
|
8239
|
)
|
|
5397
|
8240
|
)
|
|
5398
|
8241
|
);
|
|
5399
|
8242
|
|
|
8243
|
+// Shortcodes
|
|
8244
|
+pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_missing', array(
|
|
8245
|
+ 'name' => __pl('missing_content'),
|
|
8246
|
+ 'group' => 'other',
|
|
8247
|
+ 'no_gt' => 1,
|
|
8248
|
+ 'not_visible' => 1,
|
|
8249
|
+ 'innerHTML' => 'data',
|
|
8250
|
+ 'holder' => '.pagelayer-missing-container',
|
|
8251
|
+ 'html' => '<div class="pagelayer-missing-message">
|
|
8252
|
+ <i class="fas fa-exclamation"></i>
|
|
8253
|
+ {{{missing_msg}}}
|
|
8254
|
+ </div>
|
|
8255
|
+ <div class="pagelayer-missing-container">{{data}}</div>',
|
|
8256
|
+ 'params' => array(
|
|
8257
|
+ 'data' => array(
|
|
8258
|
+ 'type' => 'textarea',
|
|
8259
|
+ 'label' => __pl('Incompatible Content'),
|
|
8260
|
+ 'no_val' => 1,
|
|
8261
|
+ 'desc' => __('This code will be saved exactly as it is with the post!'),
|
|
8262
|
+ ),
|
|
8263
|
+ )
|
|
8264
|
+ )
|
|
8265
|
+);
|
|
8266
|
+
|
|
5400
|
8267
|
// Google Maps
|
|
5401
|
8268
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_google_maps', array(
|
|
5402
|
|
- 'name' => __pl('Google Maps'),
|
|
8269
|
+ 'name' => __pl('google_maps'),
|
|
5403
|
8270
|
'group' => 'other',
|
|
5404
|
|
- 'func' => 'pagelayer_sc_google_maps',
|
|
5405
|
8271
|
'innerHTML' => 'address',
|
|
5406
|
8272
|
'html' => '<div class="pagelayer-google-maps-holder">
|
|
5407
|
|
- <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>
|
|
8273
|
+ <iframe if="{{show_v2}}" 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>
|
|
8274
|
+ {{src_code}}
|
|
5408
|
8275
|
</div>',
|
|
5409
|
8276
|
'params' => array(
|
|
8277
|
+ 'api_version' => array(
|
|
8278
|
+ 'type' => 'select',
|
|
8279
|
+ 'label' => __pl('api_version'),
|
|
8280
|
+ 'default' => 'v3',
|
|
8281
|
+ 'list' =>array(
|
|
8282
|
+ '' => __pl('version2'),
|
|
8283
|
+ 'v3' => __pl('version3')
|
|
8284
|
+ ),
|
|
8285
|
+ 'desc' => __pl('api_version_desc')
|
|
8286
|
+ ),
|
|
8287
|
+ 'api_key' => array(
|
|
8288
|
+ 'type' => 'text',
|
|
8289
|
+ 'label' => __pl('api_key'),
|
|
8290
|
+ 'desc' => __pl('google_api_key_desc'),
|
|
8291
|
+ 'req' => ['api_version' => 'v3']
|
|
8292
|
+ ),
|
|
8293
|
+ 'map_modes' => array(
|
|
8294
|
+ 'type' => 'select',
|
|
8295
|
+ 'label' => __pl('map_modes'),
|
|
8296
|
+ 'default' => 'place',
|
|
8297
|
+ 'list' =>array(
|
|
8298
|
+ 'place' => __pl('place'),
|
|
8299
|
+ 'view' => __pl('view'),
|
|
8300
|
+ 'directions' => __pl('directions'),
|
|
8301
|
+ 'streetview' => __pl('streetview'),
|
|
8302
|
+ 'search' => __pl('search')
|
|
8303
|
+ ),
|
|
8304
|
+ 'req' => ['api_version' => 'v3']
|
|
8305
|
+ ),
|
|
5410
|
8306
|
'address' => array(
|
|
5411
|
8307
|
'type' => 'text',
|
|
5412
|
8308
|
'label' => __pl('google_map_address_label'),
|
|
5413
|
8309
|
'default' => 'New York, New York, USA',
|
|
5414
|
|
- 'desc' => __pl('google_map_address_desc')
|
|
8310
|
+ 'desc' => __pl('google_map_address_desc'),
|
|
8311
|
+ 'req' => ['!map_modes' => 'search']
|
|
5415
|
8312
|
),
|
|
8313
|
+ 'direction_origin' => array(
|
|
8314
|
+ 'type' => 'text',
|
|
8315
|
+ 'label' => __pl('origin'),
|
|
8316
|
+ 'default' => 'Oslow Norway',
|
|
8317
|
+ 'req' => [
|
|
8318
|
+ 'api_version' => 'v3',
|
|
8319
|
+ 'map_modes' => 'directions'
|
|
8320
|
+ ]
|
|
8321
|
+ ),
|
|
8322
|
+ 'direction_destination' => array(
|
|
8323
|
+ 'type' => 'text',
|
|
8324
|
+ 'label' => __pl('destination'),
|
|
8325
|
+ 'default' => 'Telemark Norway',
|
|
8326
|
+ 'req' => [
|
|
8327
|
+ 'api_version' => 'v3',
|
|
8328
|
+ 'map_modes' => 'directions'
|
|
8329
|
+ ]
|
|
8330
|
+ ),
|
|
8331
|
+ 'direction_waypoints' => array(
|
|
8332
|
+ 'type' => 'text',
|
|
8333
|
+ 'label' => __pl('waypoints'),
|
|
8334
|
+ 'desc' => __pl('waypoints_desc'),
|
|
8335
|
+ 'req' => [
|
|
8336
|
+ 'api_version' => 'v3',
|
|
8337
|
+ 'map_modes' => 'directions'
|
|
8338
|
+ ]
|
|
8339
|
+ ),
|
|
8340
|
+ 'direction_modes' => array(
|
|
8341
|
+ 'type' => 'select',
|
|
8342
|
+ 'label' => __pl('modes'),
|
|
8343
|
+ 'default' => 'driving',
|
|
8344
|
+ 'list' =>array(
|
|
8345
|
+ 'driving' => __pl('driving'),
|
|
8346
|
+ 'walking' => __pl('walking'),
|
|
8347
|
+ 'bicycling' => __pl('bicycling'),
|
|
8348
|
+ 'flying' => __pl('flying')
|
|
8349
|
+ ),
|
|
8350
|
+ 'req' => [
|
|
8351
|
+ 'api_version' => 'v3',
|
|
8352
|
+ 'map_modes' => 'directions'
|
|
8353
|
+ ]
|
|
8354
|
+ ),
|
|
8355
|
+ 'direction_avoid' => array(
|
|
8356
|
+ 'type' => 'multiselect',
|
|
8357
|
+ 'label' => __pl('avoid'),
|
|
8358
|
+ 'list' => array(
|
|
8359
|
+ 'tolls' => __pl('tolls'),
|
|
8360
|
+ 'ferries' => __pl('ferries'),
|
|
8361
|
+ 'highways' => __pl('highways'),
|
|
8362
|
+ ),
|
|
8363
|
+ 'desc' => __pl('direc_avoid_desc'),
|
|
8364
|
+ 'req' => [
|
|
8365
|
+ 'api_version' => 'v3',
|
|
8366
|
+ 'map_modes' => 'directions'
|
|
8367
|
+ ]
|
|
8368
|
+ ),
|
|
8369
|
+ 'direction_units' => array(
|
|
8370
|
+ 'type' => 'select',
|
|
8371
|
+ 'label' => __pl('units'),
|
|
8372
|
+ 'default' => 'metric',
|
|
8373
|
+ 'list' =>array(
|
|
8374
|
+ 'metric' => __pl('metric'),
|
|
8375
|
+ 'imperial' => __pl('imperial'),
|
|
8376
|
+ ),
|
|
8377
|
+ 'req' => [
|
|
8378
|
+ 'api_version' => 'v3',
|
|
8379
|
+ 'map_modes' => 'directions'
|
|
8380
|
+ ]
|
|
8381
|
+ ),
|
|
8382
|
+ 'streetview_pano' => array(
|
|
8383
|
+ 'type' => 'text',
|
|
8384
|
+ 'label' => __pl('pano'),
|
|
8385
|
+ 'default' => 'eTnPNGoy4bxR9LpjjfFuOw',
|
|
8386
|
+ 'desc' => __pl('pano_desc'),
|
|
8387
|
+ 'req' => [
|
|
8388
|
+ 'api_version' => 'v3',
|
|
8389
|
+ 'map_modes' => 'streetview'
|
|
8390
|
+ ]
|
|
8391
|
+ ),
|
|
8392
|
+ 'streetview_location' => array(
|
|
8393
|
+ 'type' => 'text',
|
|
8394
|
+ 'label' => __pl('location'),
|
|
8395
|
+ 'default' => '46.414382,10.013988',
|
|
8396
|
+ 'desc' => __pl('center_desc'),
|
|
8397
|
+ 'req' => [
|
|
8398
|
+ 'api_version' => 'v3',
|
|
8399
|
+ 'map_modes' => 'streetview'
|
|
8400
|
+ ]
|
|
8401
|
+ ),
|
|
8402
|
+ 'streetview_heading' => array(
|
|
8403
|
+ 'type' => 'slider',
|
|
8404
|
+ 'label' => __pl('heading'),
|
|
8405
|
+ 'min' => -180,
|
|
8406
|
+ 'max' => 360,
|
|
8407
|
+ 'desc' => __pl('heading_desc'),
|
|
8408
|
+ 'req' => [
|
|
8409
|
+ 'api_version' => 'v3',
|
|
8410
|
+ 'map_modes' => 'streetview'
|
|
8411
|
+ ]
|
|
8412
|
+ ),
|
|
8413
|
+ 'streetview_pitch' => array(
|
|
8414
|
+ 'type' => 'slider',
|
|
8415
|
+ 'label' => __pl('pitch'),
|
|
8416
|
+ 'min' => -90,
|
|
8417
|
+ 'max' => 90,
|
|
8418
|
+ 'desc' => __pl('pitch_desc'),
|
|
8419
|
+ 'req' => [
|
|
8420
|
+ 'api_version' => 'v3',
|
|
8421
|
+ 'map_modes' => 'streetview'
|
|
8422
|
+ ]
|
|
8423
|
+ ),
|
|
8424
|
+ 'streetview_fov' => array(
|
|
8425
|
+ 'type' => 'slider',
|
|
8426
|
+ 'label' => __pl('fov'),
|
|
8427
|
+ 'min' => 10,
|
|
8428
|
+ 'max' => 100,
|
|
8429
|
+ 'desc' => __pl('fov_desc'),
|
|
8430
|
+ 'req' => [
|
|
8431
|
+ 'api_version' => 'v3',
|
|
8432
|
+ 'map_modes' => 'streetview'
|
|
8433
|
+ ]
|
|
8434
|
+ ),
|
|
8435
|
+ 'search_term' => array(
|
|
8436
|
+ 'type' => 'text',
|
|
8437
|
+ 'label' => __pl('google_search_term'),
|
|
8438
|
+ 'default' => 'Record stores in Seattle',
|
|
8439
|
+ 'desc' => __pl('google_search_desc'),
|
|
8440
|
+ 'req' => [
|
|
8441
|
+ 'api_version' => 'v3',
|
|
8442
|
+ 'map_modes' => 'search'
|
|
8443
|
+ ]
|
|
8444
|
+ ),
|
|
8445
|
+ 'center' => array(
|
|
8446
|
+ 'type' => 'text',
|
|
8447
|
+ 'label' => __pl('center'),
|
|
8448
|
+ 'desc' => __pl('center_desc'),
|
|
8449
|
+ 'req' => [
|
|
8450
|
+ 'api_version' => 'v3',
|
|
8451
|
+ '!map_modes' => 'streetview'
|
|
8452
|
+ ]
|
|
8453
|
+ ),
|
|
8454
|
+ 'map_type' => array(
|
|
8455
|
+ 'type' => 'select',
|
|
8456
|
+ 'label' => __pl('map_type'),
|
|
8457
|
+ 'default' => 'roadmap',
|
|
8458
|
+ 'list' =>array(
|
|
8459
|
+ 'roadmap' => __pl('roadmap'),
|
|
8460
|
+ 'satellite' => __pl('satellite')
|
|
8461
|
+ ),
|
|
8462
|
+ 'req' => [
|
|
8463
|
+ 'api_version' => 'v3',
|
|
8464
|
+ '!map_modes' => 'streetview'
|
|
8465
|
+ ]
|
|
8466
|
+ ),
|
|
5416
|
8467
|
'noscroll' => array(
|
|
5417
|
8468
|
'type' => 'checkbox',
|
|
5418
|
8469
|
'label' => __pl('google_map_noscroll'),
|
|
5419
|
8470
|
'css' => ['{{element}} iframe' => 'pointer-events: none;'],
|
|
@@ -5422,9 +8473,9 @@ |
|
5422
|
8473
|
'type' => 'slider',
|
|
5423
|
8474
|
'label' => __pl('google_map_zoom_label'),
|
|
5424
|
8475
|
'default' => 10,
|
|
5425
|
8476
|
'min' => 0,
|
|
5426
|
|
- 'max' => 20
|
|
8477
|
+ 'max' => 21
|
|
5427
|
8478
|
),
|
|
5428
|
8479
|
'height' => array(
|
|
5429
|
8480
|
'type' => 'slider',
|
|
5430
|
8481
|
'label' => __pl('google_map_height'),
|
|
@@ -5441,18 +8492,17 @@ |
|
5441
|
8492
|
// Testimonial
|
|
5442
|
8493
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
|
|
5443
|
8494
|
'name' => __pl('testimonial'),
|
|
5444
|
8495
|
'group' => 'other',
|
|
5445
|
|
- 'func' => 'pagelayer_sc_testimonial',
|
|
5446
|
8496
|
'innerHTML' => 'quote_content',
|
|
5447
|
8497
|
'html' => '<div if="{{quote_content}}" class="pagelayer-testimonial-content">{{quote_content}}</div>
|
|
5448
|
8498
|
<div class="pagelayer-testimonial-author-details">
|
|
5449
|
|
- <div class="pagelayer-{{image_position}}">
|
|
5450
|
|
- <img if="{{avatar}}" class="pagelayer-testimonial-image pagelayer-testimonial-{{img_shape}}" src="{{func_image}}" />
|
|
8499
|
+ <div if="{{avatar}}" class="pagelayer-{{image_position}}">
|
|
8500
|
+ <img class="pagelayer-img pagelayer-testimonial-image pagelayer-testimonial-{{img_shape}}" src="{{func_image}}" title="{{{avatar-title}}}" alt="{{{avatar-alt}}}"/>
|
|
5451
|
8501
|
</div>
|
|
5452
|
8502
|
<div class="pagelayer-{{image_position}}">
|
|
5453
|
8503
|
<div if="{{cite}}" class="pagelayer-testimonial-cite">
|
|
5454
|
|
- <a if-ext="{{cite_url}}" class="pagelayer-ele-link" href="{{cite_url}}">
|
|
8504
|
+ <a if-ext="{{cite_url}}" class="pagelayer-ele-link" href="{{{cite_url}}}">
|
|
5455
|
8505
|
<span class="pagelayer-testimonial-author">{{cite}}</span>
|
|
5456
|
8506
|
</a>
|
|
5457
|
8507
|
<span if="{{designation}}" class="pagelayer-testimonial-author-title">
|
|
5458
|
8508
|
{{designation}}
|
|
@@ -5462,9 +8512,9 @@ |
|
5462
|
8512
|
</div>',
|
|
5463
|
8513
|
'params' => array(
|
|
5464
|
8514
|
'image_position' => array(
|
|
5465
|
8515
|
'type' => 'select',
|
|
5466
|
|
- 'label' => __pl('image_position'),
|
|
8516
|
+ 'label' => __pl('position'),
|
|
5467
|
8517
|
'default' => 'aside-position',
|
|
5468
|
8518
|
'list' =>array(
|
|
5469
|
8519
|
'aside-position' => __pl('aside'),
|
|
5470
|
8520
|
'top-position' => __pl('top')
|
|
@@ -5474,8 +8524,9 @@ |
|
5474
|
8524
|
'type' => 'radio',
|
|
5475
|
8525
|
'label' => __pl('testimonial_alignment_label'),
|
|
5476
|
8526
|
'default' => 'center',
|
|
5477
|
8527
|
'css' =>'text-align:{{val}};',
|
|
8528
|
+ 'screen' => 1,
|
|
5478
|
8529
|
'list' => array(
|
|
5479
|
8530
|
'left' => __pl('left'),
|
|
5480
|
8531
|
'center' => __pl('center'),
|
|
5481
|
8532
|
'right' => __pl('right'),
|
|
@@ -5486,8 +8537,9 @@ |
|
5486
|
8537
|
'label' => __pl('author_spacing'),
|
|
5487
|
8538
|
'min' => '0',
|
|
5488
|
8539
|
'max' => '100',
|
|
5489
|
8540
|
'default' => '20',
|
|
8541
|
+ 'screen' => 1,
|
|
5490
|
8542
|
'css' => ['{{element}} .pagelayer-testimonial-author-details' => 'margin-top:{{val}}px;'],
|
|
5491
|
8543
|
),
|
|
5492
|
8544
|
),
|
|
5493
|
8545
|
// Styles
|
|
@@ -5494,9 +8546,8 @@ |
|
5494
|
8546
|
'content_style' => [
|
|
5495
|
8547
|
'quote_content' => array(
|
|
5496
|
8548
|
'type' => 'editor',
|
|
5497
|
8549
|
'label' => __pl('testimonial_content_label'),
|
|
5498
|
|
- 'text' => __pl('Edit Testimonial content'),
|
|
5499
|
8550
|
'edit' => '.pagelayer-testimonial-content',
|
|
5500
|
8551
|
'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
|
|
5501
|
8552
|
)
|
|
5502
|
8553
|
],
|
|
@@ -5503,10 +8554,11 @@ |
|
5503
|
8554
|
'avatar_style' => [
|
|
5504
|
8555
|
'avatar' => array(
|
|
5505
|
8556
|
'type' => 'image',
|
|
5506
|
8557
|
'label' => __pl('testimonial_image_label'),
|
|
8558
|
+ 'default' => PAGELAYER_URL.'/images/default-image.png',
|
|
5507
|
8559
|
'desc' => __pl('testimonial_image_desc'),
|
|
5508
|
|
- 'default' => PAGELAYER_URL.'/images/default-image.png',
|
|
8560
|
+ 'ai' => false,
|
|
5509
|
8561
|
),
|
|
5510
|
8562
|
'testimonial_image_size' => array(
|
|
5511
|
8563
|
'label' => __pl('testimonial_image_sizes'),
|
|
5512
|
8564
|
'type' => 'slider',
|
|
@@ -5512,9 +8564,10 @@ |
|
5512
|
8564
|
'type' => 'slider',
|
|
5513
|
8565
|
'min' => 0,
|
|
5514
|
8566
|
'max' => 500,
|
|
5515
|
8567
|
'default' => 100,
|
|
5516
|
|
- 'css' => ['{{element}} .pagelayer-testimonial-image' => 'width:{{val}}px; height:{{val}}px; '],
|
|
8568
|
+ 'screen' => 1,
|
|
8569
|
+ 'css' => ['{{element}} .pagelayer-testimonial-image' => 'width:{{val}}px !important; height:{{val}}px !important;'],
|
|
5517
|
8570
|
),
|
|
5518
|
8571
|
'img_shape' => array(
|
|
5519
|
8572
|
'type' => 'select',
|
|
5520
|
8573
|
'label' => __pl('image_shape'),
|
|
@@ -5546,8 +8599,9 @@ |
|
5546
|
8599
|
),
|
|
5547
|
8600
|
'testimonial_border_width' => array(
|
|
5548
|
8601
|
'type' => 'padding',
|
|
5549
|
8602
|
'label' => __pl('border_width'),
|
|
8603
|
+ 'screen' => 1,
|
|
5550
|
8604
|
'css' => ['{{element}} .pagelayer-testimonial-image' =>'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px;'],
|
|
5551
|
8605
|
'req' => ['!testimonial_border_type' => '']
|
|
5552
|
8606
|
),
|
|
5553
|
8607
|
'testimonial_border_radius' => array(
|
|
@@ -5552,8 +8606,9 @@ |
|
5552
|
8606
|
),
|
|
5553
|
8607
|
'testimonial_border_radius' => array(
|
|
5554
|
8608
|
'type' => 'padding',
|
|
5555
|
8609
|
'label' => __pl('border_radius'),
|
|
8610
|
+ 'screen' => 1,
|
|
5556
|
8611
|
'css' => ['{{element}} .pagelayer-testimonial-image' => '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;'],
|
|
5557
|
8612
|
'req' => ['!testimonial_border_type' => '']
|
|
5558
|
8613
|
),
|
|
5559
|
8614
|
],
|
|
@@ -5563,13 +8618,14 @@ |
|
5563
|
8618
|
'label' => __pl('testimonial_cite_label'),
|
|
5564
|
8619
|
'default' => 'John Smith',
|
|
5565
|
8620
|
'desc' => __pl('testimonial_cite_desc'),
|
|
5566
|
8621
|
'edit' => '.pagelayer-testimonial-author',
|
|
8622
|
+ 'ai' => false,
|
|
5567
|
8623
|
),
|
|
5568
|
8624
|
'cite_color' => array(
|
|
5569
|
8625
|
'type' => 'color',
|
|
5570
|
8626
|
'label' => __pl('testimonial_name_color_label'),
|
|
5571
|
|
- 'default' => '#426870ff',
|
|
8627
|
+ 'default' => '#426870',
|
|
5572
|
8628
|
'css' => ['{{element}} .pagelayer-testimonial-author ' => 'color:{{val}}'],
|
|
5573
|
8629
|
),
|
|
5574
|
8630
|
'cite_style' => array(
|
|
5575
|
8631
|
'type' => 'typography',
|
|
@@ -5579,14 +8635,15 @@ |
|
5579
|
8635
|
),
|
|
5580
|
8636
|
'cite_url' => array(
|
|
5581
|
8637
|
'type' => 'link',
|
|
5582
|
8638
|
'label' => __pl('testimonial_url_label'),
|
|
5583
|
|
- 'default' => '',
|
|
8639
|
+ 'selector' => '.pagelayer-ele-link',
|
|
5584
|
8640
|
'desc' => __pl('testimonial_url_desc'),
|
|
5585
|
8641
|
),
|
|
5586
|
8642
|
'cite_spacing' => array(
|
|
5587
|
8643
|
'type' => 'padding',
|
|
5588
|
8644
|
'label' => __pl('cite_spacing'),
|
|
8645
|
+ 'screen' => 1,
|
|
5589
|
8646
|
'css' => ['{{element}} .pagelayer-testimonial-cite' => 'margin-top: {{val[0]}}px; margin-right: {{val[1]}}px; margin-bottom: {{val[2]}}px; margin-left: {{val[3]}}px'],
|
|
5590
|
8647
|
),
|
|
5591
|
8648
|
],
|
|
5592
|
8649
|
'designation_style' => [
|
|
@@ -5599,9 +8656,9 @@ |
|
5599
|
8656
|
),
|
|
5600
|
8657
|
'designation_color' => array(
|
|
5601
|
8658
|
'type' => 'color',
|
|
5602
|
8659
|
'label' => __pl('testimonial_title_color_label'),
|
|
5603
|
|
- 'default' => '#9cafc0ff',
|
|
8660
|
+ 'default' => '#9cafc0',
|
|
5604
|
8661
|
'css' => ['{{element}} .pagelayer-testimonial-author-title' => 'color:{{val}}'],
|
|
5605
|
8662
|
),
|
|
5606
|
8663
|
'cite_designation_style' => array(
|
|
5607
|
8664
|
'type' => 'typography',
|
|
@@ -5623,11 +8680,14 @@ |
|
5623
|
8680
|
// Progress object - Make a group
|
|
5624
|
8681
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_progress', array(
|
|
5625
|
8682
|
'name' => __pl('Progress Bars'),
|
|
5626
|
8683
|
'group' => 'other',
|
|
5627
|
|
- 'func' => 'pagelayer_sc_progress',
|
|
5628
|
8684
|
'innerHTML' => 'progress_text',
|
|
5629
|
8685
|
'html' =>'<div if="{{title}}" class="pagelayer-progress-title">{{title}}</div>
|
|
8686
|
+ <div if="{{progress_pre_suf}}" class="pagelayer-progress-goal">
|
|
8687
|
+ <div if="{{prefix}}" class="pagelayer-progress-prefix">{{prefix}}</div>
|
|
8688
|
+ <div if="{{suffix}}" class="pagelayer-progress-suffix">{{suffix}}</div>
|
|
8689
|
+ </div>
|
|
5630
|
8690
|
<div class="pagelayer-progress-container">
|
|
5631
|
8691
|
<div if="{{progress_percentage}}" class="pagelayer-progress-bar pagelayer-progress-{{progress_type}}" style="width:{{progress_percentage}}%;">
|
|
5632
|
8692
|
<span if="{{progress_text}}" class="pagelayer-progress-text">{{progress_text}}</span>
|
|
5633
|
8693
|
<span if="{{progress_percentage}}" class="pagelayer-progress-percent"></span>
|
|
@@ -5649,12 +8709,18 @@ |
|
5649
|
8709
|
),
|
|
5650
|
8710
|
'progress_color' => array(
|
|
5651
|
8711
|
'type' => 'color',
|
|
5652
|
8712
|
'label' => __pl('progress_bar_color'),
|
|
5653
|
|
- 'default' => '#3e8ef7',
|
|
8713
|
+ 'default' => '#0986c0',
|
|
5654
|
8714
|
'css' => ['{{element}} .pagelayer-progress-bar' => 'background-color:{{val}};'],
|
|
5655
|
8715
|
'req' => ['progress_type' => '']
|
|
5656
|
8716
|
),
|
|
8717
|
+ 'progress_bg_color' => array(
|
|
8718
|
+ 'type' => 'color',
|
|
8719
|
+ 'label' => __pl('bg_color'),
|
|
8720
|
+ 'css' => ['{{element}} .pagelayer-progress-container' => 'background-color:{{val}};'],
|
|
8721
|
+ 'req' => ['progress_type' => '']
|
|
8722
|
+ ),
|
|
5657
|
8723
|
'progress_height' => array(
|
|
5658
|
8724
|
'type' => 'slider',
|
|
5659
|
8725
|
'label' => __pl('progress_height'),
|
|
5660
|
8726
|
'min' => 0,
|
|
@@ -5659,8 +8725,9 @@ |
|
5659
|
8725
|
'label' => __pl('progress_height'),
|
|
5660
|
8726
|
'min' => 0,
|
|
5661
|
8727
|
'max' => 100,
|
|
5662
|
8728
|
'step' => 1,
|
|
8729
|
+ 'screen' => 1,
|
|
5663
|
8730
|
'css' => ['{{element}} .pagelayer-progress-bar' => 'height:{{val}}px;',
|
|
5664
|
8731
|
'{{element}} .pagelayer-progress-percent' => 'line-height:{{val}}px; font-size: calc({{val}}px / 2);',
|
|
5665
|
8732
|
'{{element}} .pagelayer-progress-text' => 'line-height:{{val}}px; font-size: calc({{val}}px / 2);',
|
|
5666
|
8733
|
],
|
|
@@ -5665,8 +8732,41 @@ |
|
5665
|
8732
|
'{{element}} .pagelayer-progress-text' => 'line-height:{{val}}px; font-size: calc({{val}}px / 2);',
|
|
5666
|
8733
|
],
|
|
5667
|
8734
|
'default' => 40,
|
|
5668
|
8735
|
),
|
|
8736
|
+ 'progress_radius' => array(
|
|
8737
|
+ 'type' => 'padding',
|
|
8738
|
+ 'label' => __pl('radius'),
|
|
8739
|
+ 'screen' => 1,
|
|
8740
|
+ 'css' => ['{{element}} .pagelayer-progress-bar, {{element}} .pagelayer-progress-container' => '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;'],
|
|
8741
|
+ ),
|
|
8742
|
+ 'progress_border_type' => array(
|
|
8743
|
+ 'type' => 'select',
|
|
8744
|
+ 'label' => __pl('border_type'),
|
|
8745
|
+ 'css' => ['{{element}} .pagelayer-progress-container' => 'border-style: {{val}}'],
|
|
8746
|
+ 'list' => [
|
|
8747
|
+ '' => __pl('none'),
|
|
8748
|
+ 'solid' => __pl('solid'),
|
|
8749
|
+ 'double' => __pl('double'),
|
|
8750
|
+ 'dotted' => __pl('dotted'),
|
|
8751
|
+ 'dashed' => __pl('dashed'),
|
|
8752
|
+ 'groove' => __pl('groove'),
|
|
8753
|
+ ],
|
|
8754
|
+ ),
|
|
8755
|
+ 'progress_border_color' => array(
|
|
8756
|
+ 'type' => 'color',
|
|
8757
|
+ 'label' => __pl('border_color_label'),
|
|
8758
|
+ 'default' => '#42414f',
|
|
8759
|
+ 'css' => ['{{element}} .pagelayer-progress-container' => 'border-color: {{val}};'],
|
|
8760
|
+ 'req' => ['!progress_border_type' => ''],
|
|
8761
|
+ ),
|
|
8762
|
+ 'progress_border_width' => array(
|
|
8763
|
+ 'type' => 'padding',
|
|
8764
|
+ 'label' => __pl('border_width'),
|
|
8765
|
+ 'screen' => 1,
|
|
8766
|
+ 'css' => ['{{element}} .pagelayer-progress-container' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
|
|
8767
|
+ 'req' => ['!progress_border_type' => ''],
|
|
8768
|
+ )
|
|
5669
|
8769
|
),
|
|
5670
|
8770
|
// Styles
|
|
5671
|
8771
|
'heading_style' => [
|
|
5672
|
8772
|
'title' => array(
|
|
@@ -5672,15 +8772,27 @@ |
|
5672
|
8772
|
'title' => array(
|
|
5673
|
8773
|
'type' => 'text',
|
|
5674
|
8774
|
'label' => __pl('progress_title'),
|
|
5675
|
8775
|
'default' => 'Progress',
|
|
8776
|
+ 'edit' => '.pagelayer-progress-title',
|
|
5676
|
8777
|
),
|
|
5677
|
8778
|
'title_color' => array(
|
|
5678
|
8779
|
'type' => 'color',
|
|
5679
|
8780
|
'label' => __pl('title_color'),
|
|
5680
|
|
- 'default' => '#768589ff',
|
|
8781
|
+ 'default' => '#768589',
|
|
5681
|
8782
|
'css' => ['{{element}} .pagelayer-progress-title' => 'color:{{val}};'],
|
|
5682
|
8783
|
),
|
|
8784
|
+ 'title_align' => array(
|
|
8785
|
+ 'type' => 'radio',
|
|
8786
|
+ 'label' => __pl('alignment'),
|
|
8787
|
+ 'css' => ['{{element}} .pagelayer-progress-title' => 'text-align: {{val}}'],
|
|
8788
|
+ 'screen' => 1,
|
|
8789
|
+ 'list' => array(
|
|
8790
|
+ 'left' => 'Left',
|
|
8791
|
+ 'center' => 'Center',
|
|
8792
|
+ 'right' => 'Right'
|
|
8793
|
+ ),
|
|
8794
|
+ ),
|
|
5683
|
8795
|
'title_style' => array(
|
|
5684
|
8796
|
'type' => 'typography',
|
|
5685
|
8797
|
'label' => __pl('title_size'),
|
|
5686
|
8798
|
'default' => ',25,,100,,,,,,,',
|
|
@@ -5691,8 +8803,9 @@ |
|
5691
|
8803
|
'progress_text'=> array(
|
|
5692
|
8804
|
'type' => 'text',
|
|
5693
|
8805
|
'label' => __pl('progress_text'),
|
|
5694
|
8806
|
'default' => 'Designing',
|
|
8807
|
+ 'edit' => '.pagelayer-progress-text',
|
|
5695
|
8808
|
),
|
|
5696
|
8809
|
'progress_text_color' => array(
|
|
5697
|
8810
|
'type' => 'color',
|
|
5698
|
8811
|
'label' => __pl('progress_text_color'),
|
|
@@ -5716,15 +8829,44 @@ |
|
5716
|
8829
|
),
|
|
5717
|
8830
|
'hide_percentage' => array(
|
|
5718
|
8831
|
'type' => 'checkbox',
|
|
5719
|
8832
|
'label' => __pl('hide_percentage'),
|
|
8833
|
+ 'screen' => 1,
|
|
5720
|
8834
|
'default' => '',
|
|
5721
|
8835
|
'css' => ['{{element}} .pagelayer-progress-percent' => 'display: none;']
|
|
5722
|
8836
|
),
|
|
5723
|
8837
|
],
|
|
8838
|
+ 'progress_prefix_suffix' =>[
|
|
8839
|
+ 'progress_pre_suf' => array(
|
|
8840
|
+ 'type' => 'checkbox',
|
|
8841
|
+ 'label' => __pl('prefix_suffix'),
|
|
8842
|
+ ),
|
|
8843
|
+ 'prefix' => array(
|
|
8844
|
+ 'type' => 'text',
|
|
8845
|
+ 'label' => __pl('prefix_name'),
|
|
8846
|
+ 'default' => 'Reached: $1000',
|
|
8847
|
+ 'edit' => '.pagelayer-progress-prefix',
|
|
8848
|
+ 'req' => ['progress_pre_suf' => 'true'],
|
|
8849
|
+ ),
|
|
8850
|
+ 'suffix' => array(
|
|
8851
|
+ 'type' => 'text',
|
|
8852
|
+ 'label' => __pl('suffix_name'),
|
|
8853
|
+ 'default' => 'Goal: $5000',
|
|
8854
|
+ 'edit' => '.pagelayer-progress-suffix',
|
|
8855
|
+ 'req' => ['progress_pre_suf' => 'true'],
|
|
8856
|
+ ),
|
|
8857
|
+ 'prefix_suffix_color' => array(
|
|
8858
|
+ 'type' => 'color',
|
|
8859
|
+ 'label' => __pl('color'),
|
|
8860
|
+ 'default' => '#444444',
|
|
8861
|
+ 'css' => ['{{element}} .pagelayer-progress-prefix, {{element}} .pagelayer-progress-suffix' => 'color:{{val}};'],
|
|
8862
|
+ 'req' => ['progress_pre_suf' => 'true'],
|
|
8863
|
+ )
|
|
8864
|
+ ],
|
|
5724
|
8865
|
'styles' => [
|
|
5725
|
8866
|
'heading_style' => __pl('heading_style'),
|
|
5726
|
8867
|
'percentage_style' => __pl('percentage'),
|
|
8868
|
+ 'progress_prefix_suffix' => __pl('prefix_suffix'),
|
|
5727
|
8869
|
]
|
|
5728
|
8870
|
)
|
|
5729
|
8871
|
);
|
|
5730
|
8872
|
|
|
@@ -5731,9 +8873,8 @@ |
|
5731
|
8873
|
// Color Block
|
|
5732
|
8874
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_block', array(
|
|
5733
|
8875
|
'name' => __pl('Color Block'),
|
|
5734
|
8876
|
'group' => 'other',
|
|
5735
|
|
- 'func' => 'pagelayer_sc_block',
|
|
5736
|
8877
|
'params' => array(
|
|
5737
|
8878
|
'block_color' => array(
|
|
5738
|
8879
|
'type' => 'color',
|
|
5739
|
8880
|
'label' => __pl('block_color'),
|
|
@@ -5757,14 +8898,13 @@ |
|
5757
|
8898
|
// Alert
|
|
5758
|
8899
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_alert', array(
|
|
5759
|
8900
|
'name' => __pl('Alert'),
|
|
5760
|
8901
|
'group' => 'other',
|
|
5761
|
|
- 'func' => 'pagelayer_sc_alert',
|
|
5762
|
8902
|
'innerHTML' => 'alert_content',
|
|
5763
|
8903
|
'html' => '<div class="pagelayer-alert-content">
|
|
5764
|
|
- <i if="{{alert_icon}}" class="pagelayer-alert-icon fa fa-{{alert_icon}}"></i>
|
|
8904
|
+ <i if="{{alert_icon}}" class="pagelayer-alert-icon {{alert_icon}}"></i>
|
|
5765
|
8905
|
<div if="{{alert_title}}" class="pagelayer-alert-title">{{alert_title}}</div>
|
|
5766
|
|
- <div if="{{is_dismissible}}" class="pagelayer-alert-close" onclick="pagelayer_dismiss_alert(this);"></div>
|
|
8906
|
+ <div if="{{is_dismissible}}" class="pagelayer-alert-close" onclick="pagelayer_dismiss_alert(event.target);"></div>
|
|
5767
|
8907
|
</div>
|
|
5768
|
8908
|
<span if="{{alert_content}}" class="pagelayer-alert-text">{{alert_content}}</span>',
|
|
5769
|
8909
|
'params' => array(
|
|
5770
|
8910
|
'alert_type' => array(
|
|
@@ -5799,9 +8939,9 @@ |
|
5799
|
8939
|
'icon_style' => [
|
|
5800
|
8940
|
'alert_icon' => array(
|
|
5801
|
8941
|
'type' => 'icon',
|
|
5802
|
8942
|
'label' => __pl('alert_icon'),
|
|
5803
|
|
- 'default' => 'exclamation',
|
|
8943
|
+ 'default' => 'fas fa-exclamation',
|
|
5804
|
8944
|
),
|
|
5805
|
8945
|
'alert_icon_color' => array(
|
|
5806
|
8946
|
'type' => 'color',
|
|
5807
|
8947
|
'label' => __pl('alert_icon_color'),
|
|
@@ -5811,9 +8951,10 @@ |
|
5811
|
8951
|
'label' => __pl('alert_font_size'),
|
|
5812
|
8952
|
'type' => 'slider',
|
|
5813
|
8953
|
'min' => 0,
|
|
5814
|
8954
|
'max' => 500,
|
|
5815
|
|
- 'default' => 30,
|
|
8955
|
+ 'default' => 20,
|
|
8956
|
+ 'screen' => 1,
|
|
5816
|
8957
|
'css' => ['{{element}} .pagelayer-alert-icon' => 'font-size:{{val}}px;'],
|
|
5817
|
8958
|
),
|
|
5818
|
8959
|
'alert_icon_spacing' => array(
|
|
5819
|
8960
|
'label' => __pl('alert_icon_spacing'),
|
|
@@ -5820,8 +8961,9 @@ |
|
5820
|
8961
|
'type' => 'slider',
|
|
5821
|
8962
|
'min' => 0,
|
|
5822
|
8963
|
'max' => 200,
|
|
5823
|
8964
|
'default' => 5,
|
|
8965
|
+ 'screen' => 1,
|
|
5824
|
8966
|
'css' => ['{{element}} .pagelayer-alert-icon' => 'margin-right:{{val}}px;'],
|
|
5825
|
8967
|
),
|
|
5826
|
8968
|
],
|
|
5827
|
8969
|
'title_style' => [
|
|
@@ -5877,9 +9019,8 @@ |
|
5877
|
9019
|
// Anchor
|
|
5878
|
9020
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_anchor', array(
|
|
5879
|
9021
|
'name' => __pl('Anchor'),
|
|
5880
|
9022
|
'group' => 'other',
|
|
5881
|
|
- 'func' => 'pagelayer_sc_anchor',
|
|
5882
|
9023
|
'html' => '<div id="{{title}}" class="pagelayer-anchor-holder"></div>',
|
|
5883
|
9024
|
'params' => array(
|
|
5884
|
9025
|
'title' => array(
|
|
5885
|
9026
|
'type' => 'text',
|
|
@@ -5893,9 +9034,8 @@ |
|
5893
|
9034
|
// Star object
|
|
5894
|
9035
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_stars', array(
|
|
5895
|
9036
|
'name' => __pl('Stars'),
|
|
5896
|
9037
|
'group' => 'other',
|
|
5897
|
|
- 'func' => 'pagelayer_sc_stars',
|
|
5898
|
9038
|
'html' => '<span if="{{rating_title}}" class="pagelayer-stars-title">{{rating_title}}</span>
|
|
5899
|
9039
|
<div class="pagelayer-stars-container" title="{{number_of_ratings}}/{{number_of_stars}}" pagelayer-stars-value="{{number_of_ratings}}" pagelayer-stars-count="{{number_of_stars}}">
|
|
5900
|
9040
|
</div>',
|
|
5901
|
9041
|
'params' => array(
|
|
@@ -5918,8 +9058,9 @@ |
|
5918
|
9058
|
'ratings_align' => array(
|
|
5919
|
9059
|
'type' => 'radio',
|
|
5920
|
9060
|
'label' => __pl('alignment'),
|
|
5921
|
9061
|
'css' => ['{{element}}' => 'text-align: {{val}}'],
|
|
9062
|
+ 'screen' => 1,
|
|
5922
|
9063
|
'list' => array(
|
|
5923
|
9064
|
'left' => 'Left',
|
|
5924
|
9065
|
'center' => 'Center',
|
|
5925
|
9066
|
'right' => 'Right'
|
|
@@ -5929,14 +9070,15 @@ |
|
5929
|
9070
|
'title_style' => [
|
|
5930
|
9071
|
'rating_title' => array(
|
|
5931
|
9072
|
'type' => 'text',
|
|
5932
|
9073
|
'label' => __pl('rating_title'),
|
|
5933
|
|
- 'default' => 'Rate us',
|
|
9074
|
+ 'default' => 'Rate us',
|
|
9075
|
+ 'edit' => '.pagelayer-stars-title',
|
|
5934
|
9076
|
),
|
|
5935
|
9077
|
'title_color' => array(
|
|
5936
|
9078
|
'type' => 'color',
|
|
5937
|
9079
|
'label' => __pl('title_color'),
|
|
5938
|
|
- 'default' => '#3e8ef7',
|
|
9080
|
+ 'default' => '#0986c0',
|
|
5939
|
9081
|
'css' => ['{{element}} .pagelayer-stars-title' => 'color: {{val}}'],
|
|
5940
|
9082
|
),
|
|
5941
|
9083
|
'title_style' => array(
|
|
5942
|
9084
|
'type' => 'typography',
|
|
@@ -5948,9 +9090,9 @@ |
|
5948
|
9090
|
'stars_style' => [
|
|
5949
|
9091
|
'stars_color' => array(
|
|
5950
|
9092
|
'type' => 'color',
|
|
5951
|
9093
|
'label' => __pl('stars_color'),
|
|
5952
|
|
- 'default' => '#3e8ef7',
|
|
9094
|
+ 'default' => '#0986c0',
|
|
5953
|
9095
|
'css' => ['{{element}} .pagelayer-stars-icon:before' => 'color: {{val}}'],
|
|
5954
|
9096
|
),
|
|
5955
|
9097
|
'unmarked_stars_color' => array(
|
|
5956
|
9098
|
'type' => 'color',
|
|
@@ -5963,8 +9105,9 @@ |
|
5963
|
9105
|
'type' => 'slider',
|
|
5964
|
9106
|
'min' => 0,
|
|
5965
|
9107
|
'max' => 100,
|
|
5966
|
9108
|
'default' => 30,
|
|
9109
|
+ 'screen' => 1,
|
|
5967
|
9110
|
'css' => ['{{element}} .pagelayer-stars-container' => 'font-size:{{val}}px;'],
|
|
5968
|
9111
|
),
|
|
5969
|
9112
|
'stars_spacing' => array(
|
|
5970
|
9113
|
'label' => __pl('stars_spacing'),
|
|
@@ -5971,13 +9114,14 @@ |
|
5971
|
9114
|
'type' => 'slider',
|
|
5972
|
9115
|
'min' => 0,
|
|
5973
|
9116
|
'max' => 100,
|
|
5974
|
9117
|
'default' => 10,
|
|
9118
|
+ 'screen' => 1,
|
|
5975
|
9119
|
'css' => ['{{element}} .pagelayer-stars-icon' => 'margin-left:{{val}}px;'],
|
|
5976
|
9120
|
),
|
|
5977
|
9121
|
],
|
|
5978
|
9122
|
'styles' => [
|
|
5979
|
|
- 'title_style' => __pl('title_style'),
|
|
9123
|
+ 'title_style' => __pl('title'),
|
|
5980
|
9124
|
'stars_style' => __pl('stars_style'),
|
|
5981
|
9125
|
],
|
|
5982
|
9126
|
)
|
|
5983
|
9127
|
);
|
|
@@ -5985,9 +9129,8 @@ |
|
5985
|
9129
|
// Divider
|
|
5986
|
9130
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_divider', array(
|
|
5987
|
9131
|
'name' => __pl('Divider'),
|
|
5988
|
9132
|
'group' => 'other',
|
|
5989
|
|
- 'func' => 'pagelayer_sc_divider',
|
|
5990
|
9133
|
'html' => '<div class="pagelayer-divider-holder">
|
|
5991
|
9134
|
<span class="pagelayer-divider-seperator"></span>
|
|
5992
|
9135
|
</div>',
|
|
5993
|
9136
|
'params' => array(
|
|
@@ -6006,9 +9149,9 @@ |
|
6006
|
9149
|
),
|
|
6007
|
9150
|
'divider_color' => array(
|
|
6008
|
9151
|
'type' => 'color',
|
|
6009
|
9152
|
'label' => __pl('divider_color'),
|
|
6010
|
|
- 'default' => '#3E8EF7',
|
|
9153
|
+ 'default' => '#999',
|
|
6011
|
9154
|
'css' => ['{{element}} .pagelayer-divider-seperator' => 'border-top-color: {{val}};'],
|
|
6012
|
9155
|
),
|
|
6013
|
9156
|
'divider_weight' => array(
|
|
6014
|
9157
|
'type' => 'slider',
|
|
@@ -6014,9 +9157,10 @@ |
|
6014
|
9157
|
'type' => 'slider',
|
|
6015
|
9158
|
'label' => __pl('divider_border_weight'),
|
|
6016
|
9159
|
'min' => 1,
|
|
6017
|
9160
|
'max' => 30,
|
|
6018
|
|
- 'default' => 3,
|
|
9161
|
+ 'default' => 1,
|
|
9162
|
+ 'screen' => 1,
|
|
6019
|
9163
|
'css' => ['{{element}} .pagelayer-divider-seperator' =>'border-top-width: {{val}}px;'],
|
|
6020
|
9164
|
),
|
|
6021
|
9165
|
'divider_widht' => array(
|
|
6022
|
9166
|
'type' => 'slider',
|
|
@@ -6022,9 +9166,10 @@ |
|
6022
|
9166
|
'type' => 'slider',
|
|
6023
|
9167
|
'label' => __pl('divider_border_width'),
|
|
6024
|
9168
|
'min' => 1,
|
|
6025
|
9169
|
'max' => 100,
|
|
6026
|
|
- 'default' => 50,
|
|
9170
|
+ 'default' => 100,
|
|
9171
|
+ 'screen' => 1,
|
|
6027
|
9172
|
'css' => ['{{element}} .pagelayer-divider-seperator' =>'width: {{val}}%;'],
|
|
6028
|
9173
|
),
|
|
6029
|
9174
|
'divider_gap' => array(
|
|
6030
|
9175
|
'type' => 'slider',
|
|
@@ -6031,8 +9176,9 @@ |
|
6031
|
9176
|
'label' => __pl('divider_gap'),
|
|
6032
|
9177
|
'min' => 1,
|
|
6033
|
9178
|
'max' => 100,
|
|
6034
|
9179
|
'default' => 10,
|
|
9180
|
+ 'screen' => 1,
|
|
6035
|
9181
|
'css' => ['{{element}} .pagelayer-divider-holder' =>'padding-top: {{val}}px; padding-bottom: {{val}}px;'],
|
|
6036
|
9182
|
),
|
|
6037
|
9183
|
'divider_alignment' => array(
|
|
6038
|
9184
|
'type' => 'radio',
|
|
@@ -6053,9 +9199,8 @@ |
|
6053
|
9199
|
// Counter
|
|
6054
|
9200
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_counter', array(
|
|
6055
|
9201
|
'name' => __pl('Counter'),
|
|
6056
|
9202
|
'group' => 'other',
|
|
6057
|
|
- 'func' => 'pagelayer_sc_counter',
|
|
6058
|
9203
|
'html' => '<div class="pagelayer-counter-holder">
|
|
6059
|
9204
|
<div if="{{counter_start_number}}" class="pagelayer-counter-content">
|
|
6060
|
9205
|
<span if="{{number_prefix}}">{{number_prefix}}</span><span class="pagelayer-counter-display">{{counter_start_number}}</span><span if="{{number_suffix}}">{{number_suffix}}</span>
|
|
6061
|
9206
|
</div>
|
|
@@ -6088,8 +9233,9 @@ |
|
6088
|
9233
|
'type' => 'radio',
|
|
6089
|
9234
|
'label' => __pl('counter_align'),
|
|
6090
|
9235
|
'default' => 'center',
|
|
6091
|
9236
|
'css' => 'text-align: {{val}};',
|
|
9237
|
+ 'screen' => 1,
|
|
6092
|
9238
|
'list' => [
|
|
6093
|
9239
|
'left' => __pl('left'),
|
|
6094
|
9240
|
'center' => __pl('center'),
|
|
6095
|
9241
|
'right' => __pl('right'),
|
|
@@ -6100,9 +9246,9 @@ |
|
6100
|
9246
|
'counter_style' => [
|
|
6101
|
9247
|
'counter_number_color' => array(
|
|
6102
|
9248
|
'type' => 'color',
|
|
6103
|
9249
|
'label' => __pl('counter_number_color_label'),
|
|
6104
|
|
- 'default' => '#3E8EF7',
|
|
9250
|
+ 'default' => '#0986c0',
|
|
6105
|
9251
|
'css' => ['{{element}} .pagelayer-counter-content' => 'color:{{val}};'],
|
|
6106
|
9252
|
),
|
|
6107
|
9253
|
'number_prefix' => array(
|
|
6108
|
9254
|
'type' => 'text',
|
|
@@ -6157,9 +9303,9 @@ |
|
6157
|
9303
|
'default' => ',25,,400,,,solid,,,,',
|
|
6158
|
9304
|
'css' => ['{{element}} .pagelayer-counter-info' => '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;'],
|
|
6159
|
9305
|
),
|
|
6160
|
9306
|
],
|
|
6161
|
|
- 'styles' => [
|
|
9307
|
+ 'styles' => [
|
|
6162
|
9308
|
'counter_label_style' => __pl('counter_label_style'),
|
|
6163
|
9309
|
'counter_style' => __pl('counter_style'),
|
|
6164
|
9310
|
],
|
|
6165
|
9311
|
)
|
|
@@ -6164,10 +9310,2002 @@ |
|
6164
|
9310
|
],
|
|
6165
|
9311
|
)
|
|
6166
|
9312
|
);
|
|
6167
|
9313
|
|
|
9314
|
+// Address
|
|
9315
|
+pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_address', array(
|
|
9316
|
+ 'name' => __pl('address'),
|
|
9317
|
+ 'group' => 'other',
|
|
9318
|
+ 'icon' => 'fas fa-map-marker-alt',
|
|
9319
|
+ 'html' => '<div class="pagelayer-address-holder">
|
|
9320
|
+ <span class="pagelayer-address-icon"><i class="{{icon}}"></i></span>
|
|
9321
|
+ <span class="pagelayer-address">'.pagelayer_get_option('pagelayer-address').'</span>
|
|
9322
|
+ </div>',
|
|
9323
|
+ 'params' => array(
|
|
9324
|
+ 'color' => array(
|
|
9325
|
+ 'type' => 'color',
|
|
9326
|
+ 'label' => __pl('color'),
|
|
9327
|
+ 'css' => ['{{element}} .pagelayer-address *, {{element}} .pagelayer-address' => 'color:{{val}}'],
|
|
9328
|
+ 'desc' => __pl('CMA_desc')
|
|
9329
|
+ ),
|
|
9330
|
+ 'typography' => array(
|
|
9331
|
+ 'type' => 'typography',
|
|
9332
|
+ 'label' => __pl('typography'),
|
|
9333
|
+ 'css' => ['{{element}} .pagelayer-address *, {{element}} .pagelayer-address' => '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;'],
|
|
9334
|
+ ),
|
|
9335
|
+ 'align' => array(
|
|
9336
|
+ 'type' => 'radio',
|
|
9337
|
+ 'label' => __pl('alignment'),
|
|
9338
|
+ 'screen' => 1,
|
|
9339
|
+ 'list' => [
|
|
9340
|
+ 'flex-start' => __pl('left'),
|
|
9341
|
+ 'center' => __pl('center'),
|
|
9342
|
+ 'flex-end' => __pl('right'),
|
|
9343
|
+ ],
|
|
9344
|
+ 'css' => ['{{element}} .pagelayer-address-holder' => 'justify-content: {{val}}'],
|
|
9345
|
+ ),
|
|
9346
|
+ 'space' => array(
|
|
9347
|
+ 'type' => 'slider',
|
|
9348
|
+ 'label' => __pl('space'),
|
|
9349
|
+ 'min' => 0,
|
|
9350
|
+ 'max' => 100,
|
|
9351
|
+ 'step' => 1,
|
|
9352
|
+ 'screen' => 1,
|
|
9353
|
+ 'css' => ['body:not(.rtl) {{element}} .pagelayer-address-icon' => 'margin-right: {{val}}px;', 'body.rtl {{element}} .pagelayer-address-icon' => 'margin-left:{{val}}px']
|
|
9354
|
+ ),
|
|
9355
|
+ ),
|
|
9356
|
+ 'icon_style' =>[
|
|
9357
|
+ 'icon' => array(
|
|
9358
|
+ 'type' => 'icon',
|
|
9359
|
+ 'label' => __pl('icon'),
|
|
9360
|
+ 'default' => 'fas fa-map-marker-alt'
|
|
9361
|
+ ),
|
|
9362
|
+ 'icon_color' => array(
|
|
9363
|
+ 'type' => 'color',
|
|
9364
|
+ 'label' => __pl('color'),
|
|
9365
|
+ 'css' => ['{{element}} .pagelayer-address-icon i' => 'color:{{val}}'],
|
|
9366
|
+ ),
|
|
9367
|
+ 'icon_size' => array(
|
|
9368
|
+ 'type' => 'slider',
|
|
9369
|
+ 'label' => __pl('size'),
|
|
9370
|
+ 'min' => 0,
|
|
9371
|
+ 'max' => 100,
|
|
9372
|
+ 'step' => 1,
|
|
9373
|
+ 'screen' => 1,
|
|
9374
|
+ 'css' => ['{{element}} .pagelayer-address-icon i' => 'font-size: {{val}}px;']
|
|
9375
|
+ ),
|
|
9376
|
+ ],
|
|
9377
|
+ 'styles' => [
|
|
9378
|
+ 'icon_style' => __pl('icon_style')
|
|
9379
|
+ ]
|
|
9380
|
+ )
|
|
9381
|
+);
|
|
6168
|
9382
|
|
|
9383
|
+// Email
|
|
9384
|
+pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_email', array(
|
|
9385
|
+ 'name' => __pl('email'),
|
|
9386
|
+ 'group' => 'other',
|
|
9387
|
+ 'icon' => 'fas fa-envelope',
|
|
9388
|
+ 'html' => '<div class="pagelayer-email-holder">
|
|
9389
|
+ <span class="pagelayer-email-icon"><i class="{{icon}}"></i></span>
|
|
9390
|
+ <a if-ext="{{linked}}" href="mailto:'.pagelayer_get_option('pagelayer_cf_to_email').'">
|
|
9391
|
+ <span class="pagelayer-email">'.pagelayer_get_option('pagelayer_cf_to_email').'</span></div>
|
|
9392
|
+ </a>
|
|
9393
|
+ </div>',
|
|
9394
|
+ 'params' => array(
|
|
9395
|
+ 'linked' => array(
|
|
9396
|
+ 'type' => 'checkbox',
|
|
9397
|
+ 'label' => __pl('make_link'),
|
|
9398
|
+ 'desc' => __pl('email_desc')
|
|
9399
|
+ ),
|
|
9400
|
+ 'color' => array(
|
|
9401
|
+ 'type' => 'color',
|
|
9402
|
+ 'label' => __pl('color'),
|
|
9403
|
+ 'css' => ['{{element}} .pagelayer-email *, {{element}} .pagelayer-email' => 'color:{{val}}'],
|
|
9404
|
+ ),
|
|
9405
|
+ 'typography' => array(
|
|
9406
|
+ 'type' => 'typography',
|
|
9407
|
+ 'label' => __pl('typography'),
|
|
9408
|
+ 'css' => ['{{element}} .pagelayer-email *, {{element}} .pagelayer-email' => '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;'],
|
|
9409
|
+ ),
|
|
9410
|
+ 'align' => array(
|
|
9411
|
+ 'type' => 'radio',
|
|
9412
|
+ 'label' => __pl('alignment'),
|
|
9413
|
+ 'screen' => 1,
|
|
9414
|
+ 'list' => [
|
|
9415
|
+ 'flex-start' => __pl('left'),
|
|
9416
|
+ 'center' => __pl('center'),
|
|
9417
|
+ 'flex-end' => __pl('right'),
|
|
9418
|
+ ],
|
|
9419
|
+ 'css' => ['{{element}} .pagelayer-email-holder' => 'justify-content: {{val}}'],
|
|
9420
|
+ ),
|
|
9421
|
+ 'space' => array(
|
|
9422
|
+ 'type' => 'slider',
|
|
9423
|
+ 'label' => __pl('space'),
|
|
9424
|
+ 'min' => 0,
|
|
9425
|
+ 'max' => 100,
|
|
9426
|
+ 'step' => 1,
|
|
9427
|
+ 'screen' => 1,
|
|
9428
|
+ 'css' => ['body:not(.rtl) {{element}} .pagelayer-email-icon' => 'margin-right: {{val}}px;', 'body.rtl {{element}} .pagelayer-email-icon' => 'margin-left:{{val}}px']
|
|
9429
|
+ ),
|
|
9430
|
+ ),
|
|
9431
|
+ 'icon_style' =>[
|
|
9432
|
+ 'icon' => array(
|
|
9433
|
+ 'type' => 'icon',
|
|
9434
|
+ 'label' => __pl('icon'),
|
|
9435
|
+ 'default' => 'fas fa-envelope'
|
|
9436
|
+ ),
|
|
9437
|
+ 'icon_color' => array(
|
|
9438
|
+ 'type' => 'color',
|
|
9439
|
+ 'label' => __pl('color'),
|
|
9440
|
+ 'css' => ['{{element}} .pagelayer-email-icon i' => 'color:{{val}}'],
|
|
9441
|
+ ),
|
|
9442
|
+ 'icon_size' => array(
|
|
9443
|
+ 'type' => 'slider',
|
|
9444
|
+ 'label' => __pl('size'),
|
|
9445
|
+ 'min' => 0,
|
|
9446
|
+ 'max' => 100,
|
|
9447
|
+ 'step' => 1,
|
|
9448
|
+ 'screen' => 1,
|
|
9449
|
+ 'css' => ['{{element}} .pagelayer-email-icon i' => 'font-size: {{val}}px;']
|
|
9450
|
+ ),
|
|
9451
|
+ ],
|
|
9452
|
+ 'styles' => [
|
|
9453
|
+ 'icon_style' => __pl('icon_style')
|
|
9454
|
+ ]
|
|
9455
|
+ )
|
|
9456
|
+);
|
|
6169
|
9457
|
|
|
9458
|
+// Phone
|
|
9459
|
+pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_phone', array(
|
|
9460
|
+ 'name' => __pl('phone'),
|
|
9461
|
+ 'group' => 'other',
|
|
9462
|
+ 'icon' => 'fas fa-phone-alt',
|
|
9463
|
+ 'html' => '<div class="pagelayer-phone-holder">
|
|
9464
|
+ <span class="pagelayer-phone-icon"><i class="{{icon}}"></i></span>
|
|
9465
|
+ <a if-ext="{{linked}}" href="tel:'.pagelayer_get_option('pagelayer-phone').'">
|
|
9466
|
+ <span class="pagelayer-phone">'.pagelayer_get_option('pagelayer-phone').'</span>
|
|
9467
|
+ </a>
|
|
9468
|
+ </div>',
|
|
9469
|
+ 'params' => array(
|
|
9470
|
+ 'linked' => array(
|
|
9471
|
+ 'type' => 'checkbox',
|
|
9472
|
+ 'label' => __pl('make_link'),
|
|
9473
|
+ 'desc' => __pl('CMA_desc')
|
|
9474
|
+ ),
|
|
9475
|
+ 'color' => array(
|
|
9476
|
+ 'type' => 'color',
|
|
9477
|
+ 'label' => __pl('color'),
|
|
9478
|
+ 'css' => ['{{element}} .pagelayer-phone *, {{element}} .pagelayer-phone' => 'color:{{val}}'],
|
|
9479
|
+ ),
|
|
9480
|
+ 'typography' => array(
|
|
9481
|
+ 'type' => 'typography',
|
|
9482
|
+ 'label' => __pl('typography'),
|
|
9483
|
+ 'css' => ['{{element}} .pagelayer-phone *, {{element}} .pagelayer-phone' => '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;'],
|
|
9484
|
+ ),
|
|
9485
|
+ 'align' => array(
|
|
9486
|
+ 'type' => 'radio',
|
|
9487
|
+ 'label' => __pl('alignment'),
|
|
9488
|
+ 'screen' => 1,
|
|
9489
|
+ 'list' => [
|
|
9490
|
+ 'flex-start' => __pl('left'),
|
|
9491
|
+ 'center' => __pl('center'),
|
|
9492
|
+ 'flex-end' => __pl('right'),
|
|
9493
|
+ ],
|
|
9494
|
+ 'css' => ['{{element}} .pagelayer-phone-holder' => 'justify-content: {{val}}'],
|
|
9495
|
+ ),
|
|
9496
|
+ 'space' => array(
|
|
9497
|
+ 'type' => 'slider',
|
|
9498
|
+ 'label' => __pl('space'),
|
|
9499
|
+ 'min' => 0,
|
|
9500
|
+ 'max' => 100,
|
|
9501
|
+ 'step' => 1,
|
|
9502
|
+ 'screen' => 1,
|
|
9503
|
+ 'css' => ['body:not(.rtl) {{element}} .pagelayer-phone-icon' => 'margin-right: {{val}}px;', 'body.rtl {{element}} .pagelayer-phone-icon' => 'margin-left:{{val}}px']
|
|
9504
|
+ ),
|
|
9505
|
+ ),
|
|
9506
|
+ 'icon_style' =>[
|
|
9507
|
+ 'icon' => array(
|
|
9508
|
+ 'type' => 'icon',
|
|
9509
|
+ 'label' => __pl('icon'),
|
|
9510
|
+ 'default' => 'fas fa-phone-alt'
|
|
9511
|
+ ),
|
|
9512
|
+ 'icon_color' => array(
|
|
9513
|
+ 'type' => 'color',
|
|
9514
|
+ 'label' => __pl('color'),
|
|
9515
|
+ 'css' => ['{{element}} .pagelayer-phone-icon i' => 'color:{{val}}'],
|
|
9516
|
+ ),
|
|
9517
|
+ 'icon_size' => array(
|
|
9518
|
+ 'type' => 'slider',
|
|
9519
|
+ 'label' => __pl('size'),
|
|
9520
|
+ 'min' => 0,
|
|
9521
|
+ 'max' => 100,
|
|
9522
|
+ 'step' => 1,
|
|
9523
|
+ 'screen' => 1,
|
|
9524
|
+ 'css' => ['{{element}} .pagelayer-phone-icon i' => 'font-size: {{val}}px;']
|
|
9525
|
+ ),
|
|
9526
|
+ ],
|
|
9527
|
+ 'styles' => [
|
|
9528
|
+ 'icon_style' => __pl('icon_style')
|
|
9529
|
+ ]
|
|
9530
|
+ )
|
|
9531
|
+);
|
|
9532
|
+
|
|
9533
|
+// Body Settings
|
|
9534
|
+pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_post_props', array(
|
|
9535
|
+ 'name' => __pl('Body and Post Props'),
|
|
9536
|
+ 'group' => 'other',
|
|
9537
|
+ 'not_visible' => 1,
|
|
9538
|
+ 'parent' => [], // To hide on left panel block list
|
|
9539
|
+ 'overide_css_selector' => pagelayer_is_gutenberg_editor() ? '{{element}}' : 'body', // To prevent apply style in gutenberg, we use .pagelayer-body class, that is not exists in gutenberg edit.
|
|
9540
|
+ 'hide_active' => 1,
|
|
9541
|
+ 'skip_props_cat_type' => ['product' => ['custom_hf_code']],
|
|
9542
|
+ 'skip_props_cat' => ['position_styles', 'animation_styles', 'responsive_styles', 'motion_effects'],
|
|
9543
|
+ 'skip_props' => ['ele_zindex',
|
|
9544
|
+ 'ele_shadow', 'border_shadow_hover',
|
|
9545
|
+ 'hide_desktop', 'hide_tablet', 'hide_mobile'],
|
|
9546
|
+ 'params' => array(
|
|
9547
|
+ 'post_title' => array(
|
|
9548
|
+ 'type' => 'text',
|
|
9549
|
+ 'label' => __pl('post_title'),
|
|
9550
|
+ 'default' => (empty($post->post_title) ? 'No Title' : $post->post_title),
|
|
9551
|
+ 'export-def' => 1,
|
|
9552
|
+ ),
|
|
9553
|
+ 'post_status' => array(
|
|
9554
|
+ 'type' => 'select',
|
|
9555
|
+ 'label' => __pl('visibility'),
|
|
9556
|
+ 'default' => (empty($post->post_status) ? 'draft' : $post->post_status),
|
|
9557
|
+ 'export-def' => 1,
|
|
9558
|
+ 'list' => [
|
|
9559
|
+ 'publish' => __pl('Published'),
|
|
9560
|
+ 'future' => __pl('Scheduled'),
|
|
9561
|
+ 'private' => __pl('private'),
|
|
9562
|
+ 'pass_protected' => __pl('password_protected'),
|
|
9563
|
+ 'draft' => __pl('Draft')
|
|
9564
|
+ ],
|
|
9565
|
+ ),
|
|
9566
|
+ 'post_password' => array(
|
|
9567
|
+ 'type' => 'text',
|
|
9568
|
+ 'label' => __pl('password'),
|
|
9569
|
+ 'export-def' => 1,
|
|
9570
|
+ 'req' => ['post_status' => 'pass_protected']
|
|
9571
|
+ ),
|
|
9572
|
+ 'post_date' => array(
|
|
9573
|
+ 'type' => 'postDate',
|
|
9574
|
+ 'label' => __pl('publish_date'),
|
|
9575
|
+ 'default' => (empty($post->post_date) ? current_time( 'mysql' ) : $post->post_date),
|
|
9576
|
+ 'export-def' => 1,
|
|
9577
|
+ ),
|
|
9578
|
+ 'post_sticky' => array(
|
|
9579
|
+ 'type' => 'checkbox',
|
|
9580
|
+ 'label' => __pl('sticky_post'),
|
|
9581
|
+ 'default' => (!empty($post->ID) && is_sticky($post->ID) ? 'true' : ''),
|
|
9582
|
+ 'export-def' => 1,
|
|
9583
|
+ ),
|
|
9584
|
+ 'post_author' => array(
|
|
9585
|
+ 'type' => 'select',
|
|
9586
|
+ 'label' => __pl('author'),
|
|
9587
|
+ 'default' => (empty($post->post_author) ? 0 : $post->post_author),
|
|
9588
|
+ 'list' => [],
|
|
9589
|
+ 'export-def' => 1,
|
|
9590
|
+ ),
|
|
9591
|
+ 'post_trash' => array(
|
|
9592
|
+ 'type' => 'trashButton',
|
|
9593
|
+ 'label' => '',
|
|
9594
|
+ ),
|
|
9595
|
+ ),
|
|
9596
|
+ 'postPermalink' => array(
|
|
9597
|
+ 'post_name' => array(
|
|
9598
|
+ 'type' => 'permalink',
|
|
9599
|
+ 'label' => __pl('url_slug'),
|
|
9600
|
+ 'desc' => __pl('perma_desc'),
|
|
9601
|
+ 'default' => (empty($post->post_name) ? '' : $post->post_name),
|
|
9602
|
+ 'export-def' => 1,
|
|
9603
|
+ ),
|
|
9604
|
+ ),
|
|
9605
|
+ 'postCategory' => array(
|
|
9606
|
+ 'post_category' => array(
|
|
9607
|
+ 'type' => 'postCategory',
|
|
9608
|
+ 'label' => ''
|
|
9609
|
+ )
|
|
9610
|
+ ),
|
|
9611
|
+ 'postTags' => array(
|
|
9612
|
+ 'post_tags' => array(
|
|
9613
|
+ 'type' => 'postTags',
|
|
9614
|
+ 'label' => __pl('add_new_tag'),
|
|
9615
|
+ 'desc' => __pl('post_tag_desc')
|
|
9616
|
+ )
|
|
9617
|
+ ),
|
|
9618
|
+ 'postFeaturedImage' => array(
|
|
9619
|
+ 'featured_image' => array(
|
|
9620
|
+ 'type' => 'image',
|
|
9621
|
+ 'label' => '',
|
|
9622
|
+ 'default' => ( get_post_thumbnail_id($post) ? get_post_thumbnail_id($post) : PAGELAYER_URL.'/images/default-image.png' ),
|
|
9623
|
+ 'export-def' => 1,
|
|
9624
|
+ ),
|
|
9625
|
+ ),
|
|
9626
|
+ 'postExcerpt' => array(
|
|
9627
|
+ 'post_excerpt' => array(
|
|
9628
|
+ 'type' => 'textarea',
|
|
9629
|
+ 'default' => ( empty($post->post_excerpt) ? '' : $post->post_excerpt),
|
|
9630
|
+ 'export-def' => 1,
|
|
9631
|
+ 'label' => __pl('write_an_excerpt'),
|
|
9632
|
+ )
|
|
9633
|
+ ),
|
|
9634
|
+ 'postDiscussion' => array(
|
|
9635
|
+ 'comment_status' => array(
|
|
9636
|
+ 'type' => 'checkbox',
|
|
9637
|
+ 'label' => __pl('allow_comments'),
|
|
9638
|
+ ),
|
|
9639
|
+ 'ping_status' => array(
|
|
9640
|
+ 'type' => 'checkbox',
|
|
9641
|
+ 'label' => __pl('allow_p_and_t'),
|
|
9642
|
+ )
|
|
9643
|
+ ),
|
|
9644
|
+ 'pageParent' => array(
|
|
9645
|
+ 'post_parent' => array(
|
|
9646
|
+ 'type' => 'select',
|
|
9647
|
+ 'label' => __pl('post_parent'),
|
|
9648
|
+ 'list' => []
|
|
9649
|
+ ),
|
|
9650
|
+ 'menu_order' => array(
|
|
9651
|
+ 'type' => 'spinner',
|
|
9652
|
+ 'label' => __pl('order'),
|
|
9653
|
+ )
|
|
9654
|
+ ),
|
|
9655
|
+ 'styles' => array(
|
|
9656
|
+ 'params' => __pl('status_visibility'),
|
|
9657
|
+ 'postPermalink' => __pl('post_name'),
|
|
9658
|
+ 'postCategory' => __pl('wp_categories'),
|
|
9659
|
+ 'postTags' => __pl('tags'),
|
|
9660
|
+ 'postFeaturedImage' => __pl('featured_image'),
|
|
9661
|
+ 'postExcerpt' => __pl('excerpt'),
|
|
9662
|
+ 'postDiscussion' => __pl('discussion'),
|
|
9663
|
+ 'pageParent' => __pl('page_attributes'),
|
|
9664
|
+ ),
|
|
9665
|
+ )
|
|
9666
|
+);
|
|
9667
|
+/*
|
|
9668
|
+$pagelayer->customizer_styles_options = array(
|
|
9669
|
+'params' => __pl('Site Identity'),
|
|
9670
|
+'breakpoint' => __pl('BreakPoints'),
|
|
9671
|
+'global' => __pl('Global Settings'),
|
|
9672
|
+'post_global' => __pl('Current Post Type Settings'),
|
|
9673
|
+'global_background' => __pl('Global Background'),
|
|
9674
|
+'global_button' => __pl('Global Buttons Style'),
|
|
9675
|
+);
|
|
9676
|
+
|
|
9677
|
+if(class_exists('WooCommerce')){
|
|
9678
|
+ $pagelayer->customizer_styles_options['woocommerce'] = __pl('woocommerce');
|
|
9679
|
+}
|
|
9680
|
+
|
|
9681
|
+// Customizer Settings
|
|
9682
|
+pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_customizer', array(
|
|
9683
|
+ 'name' => __pl('Customizer'),
|
|
9684
|
+ 'group' => 'other',
|
|
9685
|
+ 'overide_css_selector' => 'body',
|
|
9686
|
+ 'hide_active' => 1,
|
|
9687
|
+ 'skip_save' => 1,
|
|
9688
|
+ 'skip_props_cat_type' => ['product' => ['custom_hf_code']],
|
|
9689
|
+ 'skip_props_cat' => ['ele_bg_styles','ele_styles','border_styles','font_style','animation_styles','motion_effects','responsive_styles','attributes','custom_styles','position_styles', 'animation_styles', 'responsive_styles', 'motion_effects'],
|
|
9690
|
+ 'skip_props' => ['ele_zindex', 'font_family', 'ele_shadow', 'border_shadow_hover', 'hide_desktop', 'hide_tablet', 'hide_mobile'],
|
|
9691
|
+ 'params' => array(
|
|
9692
|
+ 'site_name' => array(
|
|
9693
|
+ 'type' => 'text',
|
|
9694
|
+ 'label' => __pl('Site Name'),
|
|
9695
|
+ 'option' => 'blogname',
|
|
9696
|
+ ),
|
|
9697
|
+ 'site_description' => array(
|
|
9698
|
+ 'type' => 'text',
|
|
9699
|
+ 'label' => __pl('Site Description'),
|
|
9700
|
+ 'option' => 'blogdescription',
|
|
9701
|
+ ),
|
|
9702
|
+ 'site_logo' => array(
|
|
9703
|
+ 'type' => 'image',
|
|
9704
|
+ 'label' => __pl('Site Logo'),
|
|
9705
|
+ 'option' => 'site_logo',
|
|
9706
|
+ ),
|
|
9707
|
+ 'site_icon' => array(
|
|
9708
|
+ 'type' => 'image',
|
|
9709
|
+ 'label' => __pl('Site Fav Icon'),
|
|
9710
|
+ 'option' => 'site_icon',
|
|
9711
|
+ ),
|
|
9712
|
+ ),
|
|
9713
|
+ 'breakpoint' => array(
|
|
9714
|
+ 'content_width' => array(
|
|
9715
|
+ 'type' => 'slider',
|
|
9716
|
+ 'label' => __pl('Content Width'),
|
|
9717
|
+ 'option' => 'pagelayer_content_width',
|
|
9718
|
+ 'min' => 320,
|
|
9719
|
+ 'max' => 2000,
|
|
9720
|
+ 'css' =>['.pagelayer-row-stretch-auto > .pagelayer-row-holder'=>'max-width:{{val}}px;margin-left:auto;margin-right:auto'],
|
|
9721
|
+ ),
|
|
9722
|
+ 'widgets_space' => array(
|
|
9723
|
+ 'type' => 'slider',
|
|
9724
|
+ 'label' => __pl('Widgets Space'),
|
|
9725
|
+ 'option' => 'pagelayer_between_widgets',
|
|
9726
|
+ 'min' => 0,
|
|
9727
|
+ 'max' => 2000,
|
|
9728
|
+ ),
|
|
9729
|
+ 'mobile_breakpoint' => array(
|
|
9730
|
+ 'type' => 'slider',
|
|
9731
|
+ 'label' => __pl('Mobile Breakpoint'),
|
|
9732
|
+ 'option' => 'pagelayer_mobile_breakpoint',
|
|
9733
|
+ 'min' => 0,
|
|
9734
|
+ 'max' => 2000,
|
|
9735
|
+ ),
|
|
9736
|
+ 'tablet_breakpoint' => array(
|
|
9737
|
+ 'type' => 'slider',
|
|
9738
|
+ 'label' => __pl('Tablet Breakpoint'),
|
|
9739
|
+ 'option' => 'pagelayer_tablet_breakpoint',
|
|
9740
|
+ 'min' => 0,
|
|
9741
|
+ 'max' => 2000,
|
|
9742
|
+ ),
|
|
9743
|
+ ),
|
|
9744
|
+ 'global' => array(
|
|
9745
|
+ 'ele_body_group' => array(
|
|
9746
|
+ 'type' => 'access',
|
|
9747
|
+ 'label' => __pl('Body Settings'),
|
|
9748
|
+ 'show_group' => 'body_group',
|
|
9749
|
+ ),
|
|
9750
|
+ 'ele_header_group' => array(
|
|
9751
|
+ 'type' => 'access',
|
|
9752
|
+ 'label' => __pl('Header Settings'),
|
|
9753
|
+ 'show_group' => 'header_group',
|
|
9754
|
+ ),
|
|
9755
|
+ 'ele_h1_group' => array(
|
|
9756
|
+ 'type' => 'access',
|
|
9757
|
+ 'label' => __pl('H1 Settings'),
|
|
9758
|
+ 'show_group' => 'h1_group',
|
|
9759
|
+ ),
|
|
9760
|
+ 'ele_h2_group' => array(
|
|
9761
|
+ 'type' => 'access',
|
|
9762
|
+ 'label' => __pl('H2 Settings'),
|
|
9763
|
+ 'show_group' => 'h2_group',
|
|
9764
|
+ ),
|
|
9765
|
+ 'ele_h3_group' => array(
|
|
9766
|
+ 'type' => 'access',
|
|
9767
|
+ 'label' => __pl('H3 Settings'),
|
|
9768
|
+ 'show_group' => 'h3_group',
|
|
9769
|
+ ),
|
|
9770
|
+ 'ele_h4_group' => array(
|
|
9771
|
+ 'type' => 'access',
|
|
9772
|
+ 'label' => __pl('H4 Group'),
|
|
9773
|
+ 'show_group' => 'h4_group',
|
|
9774
|
+ ),
|
|
9775
|
+ 'ele_h5_group' => array(
|
|
9776
|
+ 'type' => 'access',
|
|
9777
|
+ 'label' => __pl('H5 Settings'),
|
|
9778
|
+ 'show_group' => 'h5_group',
|
|
9779
|
+ ),
|
|
9780
|
+ 'ele_h6_group' => array(
|
|
9781
|
+ 'type' => 'access',
|
|
9782
|
+ 'label' => __pl('H6 Settings'),
|
|
9783
|
+ 'show_group' => 'h6_group',
|
|
9784
|
+ ),
|
|
9785
|
+ 'ele_b_group' => array(
|
|
9786
|
+ 'type' => 'access',
|
|
9787
|
+ 'label' => __pl('B Settings'),
|
|
9788
|
+ 'show_group' => 'b_group',
|
|
9789
|
+ ),
|
|
9790
|
+ 'ele_i_group' => array(
|
|
9791
|
+ 'type' => 'access',
|
|
9792
|
+ 'label' => __pl('I Settings'),
|
|
9793
|
+ 'show_group' => 'i_group',
|
|
9794
|
+ ),
|
|
9795
|
+ 'ele_a_group' => array(
|
|
9796
|
+ 'type' => 'access',
|
|
9797
|
+ 'label' => __pl('A Settings'),
|
|
9798
|
+ 'show_group' => 'a_group',
|
|
9799
|
+ ),
|
|
9800
|
+ 'ele_a_hover_group' => array(
|
|
9801
|
+ 'type' => 'access',
|
|
9802
|
+ 'label' => __pl('A Hover Settings'),
|
|
9803
|
+ 'show_group' => 'a_hover_group',
|
|
9804
|
+ ),
|
|
9805
|
+ 'ele_aside_group' => array(
|
|
9806
|
+ 'type' => 'access',
|
|
9807
|
+ 'label' => __pl('Aside Settings'),
|
|
9808
|
+ 'show_group' => 'aside_group',
|
|
9809
|
+ ),
|
|
9810
|
+ 'ele_p_group' => array(
|
|
9811
|
+ 'type' => 'access',
|
|
9812
|
+ 'label' => __pl('P Settings'),
|
|
9813
|
+ 'show_group' => 'p_group',
|
|
9814
|
+ ),
|
|
9815
|
+ 'ele_entry_header_group' => array(
|
|
9816
|
+ 'type' => 'access',
|
|
9817
|
+ 'label' => __pl('Header Settings'),
|
|
9818
|
+ 'show_group' => 'entry_header_group',
|
|
9819
|
+ ),
|
|
9820
|
+ 'ele_entry_content_group' => array(
|
|
9821
|
+ 'type' => 'access',
|
|
9822
|
+ 'label' => __pl('Content Settings'),
|
|
9823
|
+ 'show_group' => 'content_group',
|
|
9824
|
+ ),
|
|
9825
|
+ 'ele_entry_footer_group' => array(
|
|
9826
|
+ 'type' => 'access',
|
|
9827
|
+ 'label' => __pl('Footer Settings'),
|
|
9828
|
+ 'show_group' => 'footer_group',
|
|
9829
|
+ ),
|
|
9830
|
+ 'body' => array(
|
|
9831
|
+ 'type' => 'typography',
|
|
9832
|
+ 'label' => __pl('body'),
|
|
9833
|
+ 'group' => 'body_group',
|
|
9834
|
+ 'css' => ['body.pagelayer-body' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9835
|
+ ),
|
|
9836
|
+ 'header' => array(
|
|
9837
|
+ 'type' => 'typography',
|
|
9838
|
+ 'label' => __pl('header'),
|
|
9839
|
+ 'group' => 'header_group',
|
|
9840
|
+ 'css' => ['body.pagelayer-body header' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9841
|
+ ),
|
|
9842
|
+ 'h1' => array(
|
|
9843
|
+ 'type' => 'typography',
|
|
9844
|
+ 'label' => __pl('h1'),
|
|
9845
|
+ 'group' => 'h1_group',
|
|
9846
|
+ 'css' => ['body.pagelayer-body h1' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9847
|
+ ),
|
|
9848
|
+ 'h2' => array(
|
|
9849
|
+ 'type' => 'typography',
|
|
9850
|
+ 'label' => __pl('h2'),
|
|
9851
|
+ 'group' => 'h2_group',
|
|
9852
|
+ 'css' => ['body.pagelayer-body h2' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9853
|
+ ),
|
|
9854
|
+ 'h3' => array(
|
|
9855
|
+ 'type' => 'typography',
|
|
9856
|
+ 'label' => __pl('h3'),
|
|
9857
|
+ 'group' => 'h3_group',
|
|
9858
|
+ 'css' => ['body.pagelayer-body h3' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9859
|
+ ),
|
|
9860
|
+ 'h4' => array(
|
|
9861
|
+ 'type' => 'typography',
|
|
9862
|
+ 'label' => __pl('h4'),
|
|
9863
|
+ 'group' => 'h4_group',
|
|
9864
|
+ 'css' => ['body.pagelayer-body h4' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9865
|
+ ),
|
|
9866
|
+ 'h5' => array(
|
|
9867
|
+ 'type' => 'typography',
|
|
9868
|
+ 'label' => __pl('h5'),
|
|
9869
|
+ 'group' => 'h5_group',
|
|
9870
|
+ 'css' => ['body.pagelayer-body h5' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9871
|
+ ),
|
|
9872
|
+ 'h6' => array(
|
|
9873
|
+ 'type' => 'typography',
|
|
9874
|
+ 'label' => __pl('h6'),
|
|
9875
|
+ 'group' => 'h6_group',
|
|
9876
|
+ 'css' => ['body.pagelayer-body h6' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9877
|
+ ),
|
|
9878
|
+ 'b' => array(
|
|
9879
|
+ 'type' => 'typography',
|
|
9880
|
+ 'label' => __pl('b'),
|
|
9881
|
+ 'group' => 'b_group',
|
|
9882
|
+ 'css' => ['body.pagelayer-body b' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9883
|
+ ),
|
|
9884
|
+ 'i' => array(
|
|
9885
|
+ 'type' => 'typography',
|
|
9886
|
+ 'label' => __pl('i'),
|
|
9887
|
+ 'group' => 'i_group',
|
|
9888
|
+ 'css' => ['body.pagelayer-body i' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9889
|
+ ),
|
|
9890
|
+ 'a' => array(
|
|
9891
|
+ 'type' => 'typography',
|
|
9892
|
+ 'label' => __pl('a'),
|
|
9893
|
+ 'group' => 'a_group',
|
|
9894
|
+ 'css' => ['body.pagelayer-body a' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9895
|
+ ),
|
|
9896
|
+ 'a_hover' => array(
|
|
9897
|
+ 'type' => 'typography',
|
|
9898
|
+ 'label' => __pl('a-hover'),
|
|
9899
|
+ 'group' => 'a_hover_group',
|
|
9900
|
+ 'css' => ['body.pagelayer-body a:hover' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9901
|
+ ),
|
|
9902
|
+ 'aside' => array(
|
|
9903
|
+ 'type' => 'typography',
|
|
9904
|
+ 'label' => __pl('aside'),
|
|
9905
|
+ 'group' => 'aside_group',
|
|
9906
|
+ 'css' => ['body.pagelayer-body p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9907
|
+ ),
|
|
9908
|
+ 'p' => array(
|
|
9909
|
+ 'type' => 'typography',
|
|
9910
|
+ 'label' => __pl('p'),
|
|
9911
|
+ 'group' => 'p_group',
|
|
9912
|
+ 'css' => ['body.pagelayer-body p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9913
|
+ ),
|
|
9914
|
+ 'entry-header' => array(
|
|
9915
|
+ 'type' => 'typography',
|
|
9916
|
+ 'label' => __pl('entry-header'),
|
|
9917
|
+ 'group' => 'entry_header_group',
|
|
9918
|
+ 'css' => ['body.pagelayer-body .entry-header' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9919
|
+ ),
|
|
9920
|
+ 'entry_content' => array(
|
|
9921
|
+ 'type' => 'typography',
|
|
9922
|
+ 'label' => __pl('entry-content'),
|
|
9923
|
+ 'group' => 'content_group',
|
|
9924
|
+ 'css' => ['body.pagelayer-body .entry-content' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9925
|
+ ),
|
|
9926
|
+ 'entry_footer' => array(
|
|
9927
|
+ 'type' => 'typography',
|
|
9928
|
+ 'label' => __pl('entry-footer'),
|
|
9929
|
+ 'group' => 'footer_group',
|
|
9930
|
+ 'css' => ['body.pagelayer-body .entry-footer' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
9931
|
+ ),
|
|
9932
|
+ 'body_color' => array(
|
|
9933
|
+ 'type' => 'color',
|
|
9934
|
+ 'screen' => 1,
|
|
9935
|
+ 'label' => __pl('body_color'),
|
|
9936
|
+ 'group' => 'body_group',
|
|
9937
|
+ 'css' => ['body.pagelayer-body' => 'color:{{val}};'],
|
|
9938
|
+ ),
|
|
9939
|
+ 'header_color' => array(
|
|
9940
|
+ 'type' => 'color',
|
|
9941
|
+ 'screen' => 1,
|
|
9942
|
+ 'group' => 'header_group',
|
|
9943
|
+ 'label' => __pl('header_color'),
|
|
9944
|
+ 'css' => ['body.pagelayer-body header' => 'color:{{val}};'],
|
|
9945
|
+ ),
|
|
9946
|
+ 'h1_color' => array(
|
|
9947
|
+ 'type' => 'color',
|
|
9948
|
+ 'screen' => 1,
|
|
9949
|
+ 'group' => 'h1_group',
|
|
9950
|
+ 'label' => __pl('h1_color'),
|
|
9951
|
+ 'css' => ['body.pagelayer-body h1' => 'color:{{val}};'],
|
|
9952
|
+ ),
|
|
9953
|
+ 'h2_color' => array(
|
|
9954
|
+ 'type' => 'color',
|
|
9955
|
+ 'screen' => 1,
|
|
9956
|
+ 'group' => 'h2_group',
|
|
9957
|
+ 'label' => __pl('h2_color'),
|
|
9958
|
+ 'css' => ['body.pagelayer-body h2' => 'color:{{val}};'],
|
|
9959
|
+ ),
|
|
9960
|
+ 'h3_color' => array(
|
|
9961
|
+ 'type' => 'color',
|
|
9962
|
+ 'screen' => 1,
|
|
9963
|
+ 'group' => 'h3_group',
|
|
9964
|
+ 'label' => __pl('h3_color'),
|
|
9965
|
+ 'css' => ['body.pagelayer-body h3' => 'color:{{val}};'],
|
|
9966
|
+ ),
|
|
9967
|
+ 'h4_color' => array(
|
|
9968
|
+ 'type' => 'color',
|
|
9969
|
+ 'screen' => 1,
|
|
9970
|
+ 'group' => 'h4_group',
|
|
9971
|
+ 'label' => __pl('h4_color'),
|
|
9972
|
+ 'css' => ['body.pagelayer-body h4' => 'color:{{val}};'],
|
|
9973
|
+ ),
|
|
9974
|
+ 'h5_color' => array(
|
|
9975
|
+ 'type' => 'color',
|
|
9976
|
+ 'screen' => 1,
|
|
9977
|
+ 'group' => 'h5_group',
|
|
9978
|
+ 'label' => __pl('h5_color'),
|
|
9979
|
+ 'css' => ['body.pagelayer-body h5' => 'color:{{val}};'],
|
|
9980
|
+ ),
|
|
9981
|
+ 'h6_color' => array(
|
|
9982
|
+ 'type' => 'color',
|
|
9983
|
+ 'screen' => 1,
|
|
9984
|
+ 'group' => 'h6_group',
|
|
9985
|
+ 'label' => __pl('h6_color'),
|
|
9986
|
+ 'css' => ['body.pagelayer-body h6' => 'color:{{val}};'],
|
|
9987
|
+ ),
|
|
9988
|
+ 'b_color' => array(
|
|
9989
|
+ 'type' => 'color',
|
|
9990
|
+ 'screen' => 1,
|
|
9991
|
+ 'group' => 'b_group',
|
|
9992
|
+ 'label' => __pl('b_color'),
|
|
9993
|
+ 'css' => ['body.pagelayer-body b' => 'color:{{val}};'],
|
|
9994
|
+ ),
|
|
9995
|
+ 'i_color' => array(
|
|
9996
|
+ 'type' => 'color',
|
|
9997
|
+ 'screen' => 1,
|
|
9998
|
+ 'group' => 'i_group',
|
|
9999
|
+ 'label' => __pl('i_color'),
|
|
10000
|
+ 'css' => ['body.pagelayer-body i' => 'color:{{val}};'],
|
|
10001
|
+ ),
|
|
10002
|
+ 'a_color' => array(
|
|
10003
|
+ 'type' => 'color',
|
|
10004
|
+ 'screen' => 1,
|
|
10005
|
+ 'group' => 'a_group',
|
|
10006
|
+ 'label' => __pl('a_color'),
|
|
10007
|
+ 'css' => ['body.pagelayer-body a' => 'color:{{val}};'],
|
|
10008
|
+ ),
|
|
10009
|
+ 'a-hover_color' => array(
|
|
10010
|
+ 'type' => 'color',
|
|
10011
|
+ 'screen' => 1,
|
|
10012
|
+ 'group' => 'a_hover_group',
|
|
10013
|
+ 'label' => __pl('a_hover_color'),
|
|
10014
|
+ 'css' => ['body.pagelayer-body a:hover' => 'color:{{val}};'],
|
|
10015
|
+ ),
|
|
10016
|
+ 'aside_color' => array(
|
|
10017
|
+ 'type' => 'color',
|
|
10018
|
+ 'screen' => 1,
|
|
10019
|
+ 'group' => 'aside_group',
|
|
10020
|
+ 'label' => __pl('aside_color'),
|
|
10021
|
+ 'css' => ['body.pagelayer-body aside' => 'color:{{val}};'],
|
|
10022
|
+ ),
|
|
10023
|
+ 'p_color' => array(
|
|
10024
|
+ 'type' => 'color',
|
|
10025
|
+ 'screen' => 1,
|
|
10026
|
+ 'group' => 'p_group',
|
|
10027
|
+ 'label' => __pl('p_color'),
|
|
10028
|
+ 'css' => ['body.pagelayer-body p' => 'color:{{val}};'],
|
|
10029
|
+ ),
|
|
10030
|
+ 'entry-header_color' => array(
|
|
10031
|
+ 'type' => 'color',
|
|
10032
|
+ 'screen' => 1,
|
|
10033
|
+ 'group' => 'entry_header_group',
|
|
10034
|
+ 'label' => __pl('entry_header_color'),
|
|
10035
|
+ 'css' => ['body.pagelayer-body .entry-header' => 'color:{{val}};'],
|
|
10036
|
+ ),
|
|
10037
|
+ 'entry-content_color' => array(
|
|
10038
|
+ 'type' => 'color',
|
|
10039
|
+ 'screen' => 1,
|
|
10040
|
+ 'group' => 'content_group',
|
|
10041
|
+ 'label' => __pl('entry_content_color'),
|
|
10042
|
+ 'css' => ['body.pagelayer-body .entry-content' => 'color:{{val}};'],
|
|
10043
|
+ ),
|
|
10044
|
+ 'entry-footer_color' => array(
|
|
10045
|
+ 'type' => 'color',
|
|
10046
|
+ 'screen' => 1,
|
|
10047
|
+ 'group' => 'footer_group',
|
|
10048
|
+ 'label' => __pl('entry_footer_color'),
|
|
10049
|
+ 'css' => ['body.pagelayer-body .entry-footer' => 'color:{{val}};'],
|
|
10050
|
+ ),
|
|
10051
|
+ 'body_background_color' => array(
|
|
10052
|
+ 'type' => 'color',
|
|
10053
|
+ 'screen' => 1,
|
|
10054
|
+ 'group' => 'body_group',
|
|
10055
|
+ 'label' => __pl('body_background_color'),
|
|
10056
|
+ 'css' => ['body.pagelayer-body' => 'background-color:{{val}};'],
|
|
10057
|
+ ),
|
|
10058
|
+ 'header_background_color' => array(
|
|
10059
|
+ 'type' => 'color',
|
|
10060
|
+ 'screen' => 1,
|
|
10061
|
+ 'group' => 'header_group',
|
|
10062
|
+ 'label' => __pl('header_background_color'),
|
|
10063
|
+ 'css' => ['body.pagelayer-body header' => 'background-color:{{val}};'],
|
|
10064
|
+ ),
|
|
10065
|
+ 'h1_background_color' => array(
|
|
10066
|
+ 'type' => 'color',
|
|
10067
|
+ 'screen' => 1,
|
|
10068
|
+ 'group' => 'h1_group',
|
|
10069
|
+ 'label' => __pl('h1_background_color'),
|
|
10070
|
+ 'css' => ['body.pagelayer-body h1' => 'background-color:{{val}};'],
|
|
10071
|
+ ),
|
|
10072
|
+ 'h2_background_color' => array(
|
|
10073
|
+ 'type' => 'color',
|
|
10074
|
+ 'screen' => 1,
|
|
10075
|
+ 'group' => 'h2_group',
|
|
10076
|
+ 'label' => __pl('h2_background_color'),
|
|
10077
|
+ 'css' => ['body.pagelayer-body h2' => 'background-color:{{val}};'],
|
|
10078
|
+ ),
|
|
10079
|
+ 'h3_background_color' => array(
|
|
10080
|
+ 'type' => 'color',
|
|
10081
|
+ 'screen' => 1,
|
|
10082
|
+ 'group' => 'h3_group',
|
|
10083
|
+ 'label' => __pl('h3_background_color'),
|
|
10084
|
+ 'css' => ['body.pagelayer-body h3' => 'background-color:{{val}};'],
|
|
10085
|
+ ),
|
|
10086
|
+ 'h4_background_color' => array(
|
|
10087
|
+ 'type' => 'color',
|
|
10088
|
+ 'screen' => 1,
|
|
10089
|
+ 'group' => 'h4_group',
|
|
10090
|
+ 'label' => __pl('h4_background_color'),
|
|
10091
|
+ 'css' => ['body.pagelayer-body h4' => 'background-color:{{val}};'],
|
|
10092
|
+ ),
|
|
10093
|
+ 'h5_background_color' => array(
|
|
10094
|
+ 'type' => 'color',
|
|
10095
|
+ 'screen' => 1,
|
|
10096
|
+ 'group' => 'h5_group',
|
|
10097
|
+ 'label' => __pl('h5_background_color'),
|
|
10098
|
+ 'css' => ['body.pagelayer-body h5' => 'background-color:{{val}};'],
|
|
10099
|
+ ),
|
|
10100
|
+ 'h6_background_color' => array(
|
|
10101
|
+ 'type' => 'color',
|
|
10102
|
+ 'screen' => 1,
|
|
10103
|
+ 'group' => 'h6_group',
|
|
10104
|
+ 'label' => __pl('h6_background_color'),
|
|
10105
|
+ 'css' => ['body.pagelayer-body h6' => 'background-color:{{val}};'],
|
|
10106
|
+ ),
|
|
10107
|
+ 'b_background_color' => array(
|
|
10108
|
+ 'type' => 'color',
|
|
10109
|
+ 'screen' => 1,
|
|
10110
|
+ 'group' => 'b_group',
|
|
10111
|
+ 'label' => __pl('b_background_color'),
|
|
10112
|
+ 'css' => ['body.pagelayer-body b' => 'background-color:{{val}};'],
|
|
10113
|
+ ),
|
|
10114
|
+ 'i_background_color' => array(
|
|
10115
|
+ 'type' => 'color',
|
|
10116
|
+ 'screen' => 1,
|
|
10117
|
+ 'group' => 'i_group',
|
|
10118
|
+ 'label' => __pl('i_background_color'),
|
|
10119
|
+ 'css' => ['body.pagelayer-body i' => 'background-color:{{val}};'],
|
|
10120
|
+ ),
|
|
10121
|
+ 'a_background_color' => array(
|
|
10122
|
+ 'type' => 'color',
|
|
10123
|
+ 'screen' => 1,
|
|
10124
|
+ 'group' => 'a_group',
|
|
10125
|
+ 'label' => __pl('a_background_color'),
|
|
10126
|
+ 'css' => ['body.pagelayer-body a' => 'background-color:{{val}};'],
|
|
10127
|
+ ),
|
|
10128
|
+ 'a-hover_background_color' => array(
|
|
10129
|
+ 'type' => 'color',
|
|
10130
|
+ 'screen' => 1,
|
|
10131
|
+ 'group' => 'a_hover_group',
|
|
10132
|
+ 'label' => __pl('a_hover_background_color'),
|
|
10133
|
+ 'css' => ['body.pagelayer-body a:hover' => 'background-color:{{val}};'],
|
|
10134
|
+ ),
|
|
10135
|
+ 'aside_background_color' => array(
|
|
10136
|
+ 'type' => 'color',
|
|
10137
|
+ 'screen' => 1,
|
|
10138
|
+ 'group' => 'aside_group',
|
|
10139
|
+ 'label' => __pl('aside_background_color'),
|
|
10140
|
+ 'css' => ['body.pagelayer-body aside' => 'background-color:{{val}};'],
|
|
10141
|
+ ),
|
|
10142
|
+ 'p_background_color' => array(
|
|
10143
|
+ 'type' => 'color',
|
|
10144
|
+ 'screen' => 1,
|
|
10145
|
+ 'group' => 'p_group',
|
|
10146
|
+ 'label' => __pl('p_background_color'),
|
|
10147
|
+ 'css' => ['body.pagelayer-body p' => 'background-color:{{val}};'],
|
|
10148
|
+ ),
|
|
10149
|
+ 'entry-header_background_color' => array(
|
|
10150
|
+ 'type' => 'color',
|
|
10151
|
+ 'screen' => 1,
|
|
10152
|
+ 'group' => 'entry_header_group',
|
|
10153
|
+ 'label' => __pl('entry_header_background_color'),
|
|
10154
|
+ 'css' => ['body.pagelayer-body .entry-header' => 'background-color:{{val}};'],
|
|
10155
|
+ ),
|
|
10156
|
+ 'entry-content_background_color' => array(
|
|
10157
|
+ 'type' => 'color',
|
|
10158
|
+ 'screen' => 1,
|
|
10159
|
+ 'group' => 'content_group',
|
|
10160
|
+ 'label' => __pl('entry_content_background_color'),
|
|
10161
|
+ 'css' => ['body.pagelayer-body .entry-content' => 'background-color:{{val}};'],
|
|
10162
|
+ ),
|
|
10163
|
+ 'entry-footer_background_color' => array(
|
|
10164
|
+ 'type' => 'color',
|
|
10165
|
+ 'screen' => 1,
|
|
10166
|
+ 'group' => 'footer_group',
|
|
10167
|
+ 'label' => __pl('entry_footer_background_color'),
|
|
10168
|
+ 'css' => ['body.pagelayer-body .entry-footer' => 'background-color:{{val}};'],
|
|
10169
|
+ ),
|
|
10170
|
+ 'body_padding' => array(
|
|
10171
|
+ 'type' => 'padding',
|
|
10172
|
+ 'label' => __pl('body_padding'),
|
|
10173
|
+ 'screen' => 1,
|
|
10174
|
+ 'group' => 'body_group',
|
|
10175
|
+ 'css' => ['body.pagelayer-body' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10176
|
+ ),
|
|
10177
|
+ 'body_margin' => array(
|
|
10178
|
+ 'type' => 'padding',
|
|
10179
|
+ 'label' => __pl('body_margin'),
|
|
10180
|
+ 'screen' => 1,
|
|
10181
|
+ 'group' => 'body_group',
|
|
10182
|
+ 'css' => ['body.pagelayer-body' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10183
|
+ ),
|
|
10184
|
+ 'header_padding' => array(
|
|
10185
|
+ 'type' => 'padding',
|
|
10186
|
+ 'label' => __pl('header_padding'),
|
|
10187
|
+ 'screen' => 1,
|
|
10188
|
+ 'group' => 'header_group',
|
|
10189
|
+ 'css' => ['body.pagelayer-body header' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10190
|
+ ),
|
|
10191
|
+ 'header_margin' => array(
|
|
10192
|
+ 'type' => 'padding',
|
|
10193
|
+ 'label' => __pl('header_margin'),
|
|
10194
|
+ 'screen' => 1,
|
|
10195
|
+ 'group' => 'header_group',
|
|
10196
|
+ 'css' => ['body.pagelayer-body header' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10197
|
+ ),
|
|
10198
|
+ 'h1_padding' => array(
|
|
10199
|
+ 'type' => 'padding',
|
|
10200
|
+ 'label' => __pl('h1_padding'),
|
|
10201
|
+ 'screen' => 1,
|
|
10202
|
+ 'group' => 'h1_group',
|
|
10203
|
+ 'css' => ['body.pagelayer-body h1' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10204
|
+ ),
|
|
10205
|
+ 'h1_margin' => array(
|
|
10206
|
+ 'type' => 'padding',
|
|
10207
|
+ 'label' => __pl('h1_margin'),
|
|
10208
|
+ 'screen' => 1,
|
|
10209
|
+ 'group' => 'h1_group',
|
|
10210
|
+ 'css' => ['body.pagelayer-body h1' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10211
|
+ ),
|
|
10212
|
+ 'h2_padding' => array(
|
|
10213
|
+ 'type' => 'padding',
|
|
10214
|
+ 'label' => __pl('h2_padding'),
|
|
10215
|
+ 'screen' => 1,
|
|
10216
|
+ 'group' => 'h2_group',
|
|
10217
|
+ 'css' => ['body.pagelayer-body h2' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10218
|
+ ),
|
|
10219
|
+ 'h2_margin' => array(
|
|
10220
|
+ 'type' => 'padding',
|
|
10221
|
+ 'label' => __pl('h2_margin'),
|
|
10222
|
+ 'screen' => 1,
|
|
10223
|
+ 'group' => 'h2_group',
|
|
10224
|
+ 'css' => ['body.pagelayer-body h2' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10225
|
+ ),
|
|
10226
|
+ 'h3_padding' => array(
|
|
10227
|
+ 'type' => 'padding',
|
|
10228
|
+ 'label' => __pl('h3_padding'),
|
|
10229
|
+ 'screen' => 1,
|
|
10230
|
+ 'group' => 'h3_group',
|
|
10231
|
+ 'css' => ['body.pagelayer-body h3' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10232
|
+ ),
|
|
10233
|
+ 'h3_margin' => array(
|
|
10234
|
+ 'type' => 'padding',
|
|
10235
|
+ 'label' => __pl('h3_margin'),
|
|
10236
|
+ 'screen' => 1,
|
|
10237
|
+ 'group' => 'h3_group',
|
|
10238
|
+ 'css' => ['body.pagelayer-body h3' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10239
|
+ ),
|
|
10240
|
+ 'h4_padding' => array(
|
|
10241
|
+ 'type' => 'padding',
|
|
10242
|
+ 'label' => __pl('h4_padding'),
|
|
10243
|
+ 'screen' => 1,
|
|
10244
|
+ 'group' => 'h4_group',
|
|
10245
|
+ 'css' => ['body.pagelayer-body h4' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10246
|
+ ),
|
|
10247
|
+ 'h4_margin' => array(
|
|
10248
|
+ 'type' => 'padding',
|
|
10249
|
+ 'label' => __pl('h4_margin'),
|
|
10250
|
+ 'screen' => 1,
|
|
10251
|
+ 'group' => 'h4_group',
|
|
10252
|
+ 'css' => ['body.pagelayer-body h4' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10253
|
+ ),
|
|
10254
|
+ 'h5_padding' => array(
|
|
10255
|
+ 'type' => 'padding',
|
|
10256
|
+ 'label' => __pl('h5_padding'),
|
|
10257
|
+ 'screen' => 1,
|
|
10258
|
+ 'group' => 'h5_group',
|
|
10259
|
+ 'css' => ['body.pagelayer-body h5' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10260
|
+ ),
|
|
10261
|
+ 'h5_margin' => array(
|
|
10262
|
+ 'type' => 'padding',
|
|
10263
|
+ 'label' => __pl('h5_margin'),
|
|
10264
|
+ 'screen' => 1,
|
|
10265
|
+ 'group' => 'h5_group',
|
|
10266
|
+ 'css' => ['body.pagelayer-body h5' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10267
|
+ ),
|
|
10268
|
+ 'h6_padding' => array(
|
|
10269
|
+ 'type' => 'padding',
|
|
10270
|
+ 'label' => __pl('h6_padding'),
|
|
10271
|
+ 'screen' => 1,
|
|
10272
|
+ 'group' => 'h6_group',
|
|
10273
|
+ 'css' => ['body.pagelayer-body h6' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10274
|
+ ),
|
|
10275
|
+ 'h6_margin' => array(
|
|
10276
|
+ 'type' => 'padding',
|
|
10277
|
+ 'label' => __pl('h6_margin'),
|
|
10278
|
+ 'screen' => 1,
|
|
10279
|
+ 'group' => 'h6_group',
|
|
10280
|
+ 'css' => ['body.pagelayer-body h6' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10281
|
+ ),
|
|
10282
|
+ 'b_padding' => array(
|
|
10283
|
+ 'type' => 'padding',
|
|
10284
|
+ 'label' => __pl('b_padding'),
|
|
10285
|
+ 'screen' => 1,
|
|
10286
|
+ 'group' => 'b_group',
|
|
10287
|
+ 'css' => ['body.pagelayer-body b' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10288
|
+ ),
|
|
10289
|
+ 'b_margin' => array(
|
|
10290
|
+ 'type' => 'padding',
|
|
10291
|
+ 'label' => __pl('b_margin'),
|
|
10292
|
+ 'screen' => 1,
|
|
10293
|
+ 'group' => 'b_group',
|
|
10294
|
+ 'css' => ['body.pagelayer-body b' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10295
|
+ ),
|
|
10296
|
+ 'i_padding' => array(
|
|
10297
|
+ 'type' => 'padding',
|
|
10298
|
+ 'label' => __pl('i_padding'),
|
|
10299
|
+ 'screen' => 1,
|
|
10300
|
+ 'group' => 'i_group',
|
|
10301
|
+ 'css' => ['body.pagelayer-body i' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10302
|
+ ),
|
|
10303
|
+ 'i_margin' => array(
|
|
10304
|
+ 'type' => 'padding',
|
|
10305
|
+ 'label' => __pl('i_margin'),
|
|
10306
|
+ 'screen' => 1,
|
|
10307
|
+ 'group' => 'i_group',
|
|
10308
|
+ 'css' => ['body.pagelayer-body i' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10309
|
+ ),
|
|
10310
|
+ 'a_padding' => array(
|
|
10311
|
+ 'type' => 'padding',
|
|
10312
|
+ 'label' => __pl('a_padding'),
|
|
10313
|
+ 'screen' => 1,
|
|
10314
|
+ 'group' => 'a_group',
|
|
10315
|
+ 'css' => ['body.pagelayer-body a' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10316
|
+ ),
|
|
10317
|
+ 'a_margin' => array(
|
|
10318
|
+ 'type' => 'padding',
|
|
10319
|
+ 'label' => __pl('a_margin'),
|
|
10320
|
+ 'screen' => 1,
|
|
10321
|
+ 'group' => 'a_group',
|
|
10322
|
+ 'css' => ['body.pagelayer-body a' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10323
|
+ ),
|
|
10324
|
+ 'a-hover_padding' => array(
|
|
10325
|
+ 'type' => 'padding',
|
|
10326
|
+ 'label' => __pl('_-hover_padding'),
|
|
10327
|
+ 'screen' => 1,
|
|
10328
|
+ 'group' => 'a_hover_group',
|
|
10329
|
+ 'css' => ['body.pagelayer-body a:hover' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10330
|
+ ),
|
|
10331
|
+ 'a-hover_margin' => array(
|
|
10332
|
+ 'type' => 'padding',
|
|
10333
|
+ 'label' => __pl('a_hover_margin'),
|
|
10334
|
+ 'screen' => 1,
|
|
10335
|
+ 'group' => 'a_hover_group',
|
|
10336
|
+ 'css' => ['body.pagelayer-body a:hover' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10337
|
+ ),
|
|
10338
|
+ 'aside_padding' => array(
|
|
10339
|
+ 'type' => 'padding',
|
|
10340
|
+ 'label' => __pl('aside_padding'),
|
|
10341
|
+ 'screen' => 1,
|
|
10342
|
+ 'group' => 'aside_group',
|
|
10343
|
+ 'css' => ['body.pagelayer-body aside' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10344
|
+ ),
|
|
10345
|
+ 'aside_margin' => array(
|
|
10346
|
+ 'type' => 'padding',
|
|
10347
|
+ 'label' => __pl('aside_margin'),
|
|
10348
|
+ 'screen' => 1,
|
|
10349
|
+ 'group' => 'aside_group',
|
|
10350
|
+ 'css' => ['body.pagelayer-body aside' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10351
|
+ ),
|
|
10352
|
+ 'p_padding' => array(
|
|
10353
|
+ 'type' => 'padding',
|
|
10354
|
+ 'label' => __pl('p_padding'),
|
|
10355
|
+ 'screen' => 1,
|
|
10356
|
+ 'group' => 'p_group',
|
|
10357
|
+ 'css' => ['body.pagelayer-body p' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10358
|
+ ),
|
|
10359
|
+ 'p_margin' => array(
|
|
10360
|
+ 'type' => 'padding',
|
|
10361
|
+ 'label' => __pl('p_margin'),
|
|
10362
|
+ 'screen' => 1,
|
|
10363
|
+ 'group' => 'p_group',
|
|
10364
|
+ 'css' => ['body.pagelayer-body p' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10365
|
+ ),
|
|
10366
|
+ 'entry-header_padding' => array(
|
|
10367
|
+ 'type' => 'padding',
|
|
10368
|
+ 'label' => __pl('entry_header_padding'),
|
|
10369
|
+ 'screen' => 1,
|
|
10370
|
+ 'group' => 'entry_header_group',
|
|
10371
|
+ 'css' => ['body.pagelayer-body .entry-header' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10372
|
+ ),
|
|
10373
|
+ 'entry-header_margin' => array(
|
|
10374
|
+ 'type' => 'padding',
|
|
10375
|
+ 'label' => __pl('entry_header_margin'),
|
|
10376
|
+ 'screen' => 1,
|
|
10377
|
+ 'group' => 'entry_header_group',
|
|
10378
|
+ 'css' => ['body.pagelayer-body .entry-header' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10379
|
+ ),
|
|
10380
|
+ 'entry-content_padding' => array(
|
|
10381
|
+ 'type' => 'padding',
|
|
10382
|
+ 'label' => __pl('entry_content_padding'),
|
|
10383
|
+ 'screen' => 1,
|
|
10384
|
+ 'group' => 'content_group',
|
|
10385
|
+ 'css' => ['body.pagelayer-body .entry-content' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10386
|
+ ),
|
|
10387
|
+ 'entry-content_margin' => array(
|
|
10388
|
+ 'type' => 'padding',
|
|
10389
|
+ 'label' => __pl('entry_content_margin'),
|
|
10390
|
+ 'screen' => 1,
|
|
10391
|
+ 'group' => 'content_group',
|
|
10392
|
+ 'css' => ['body.pagelayer-body .entry-content' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10393
|
+ ),
|
|
10394
|
+ 'entry-footer_padding' => array(
|
|
10395
|
+ 'type' => 'padding',
|
|
10396
|
+ 'label' => __pl('entry_footer_padding'),
|
|
10397
|
+ 'screen' => 1,
|
|
10398
|
+ 'group' => 'footer_group',
|
|
10399
|
+ 'css' => ['body.pagelayer-body .entry-footer' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10400
|
+ ),
|
|
10401
|
+ 'entry-footer_margin' => array(
|
|
10402
|
+ 'type' => 'padding',
|
|
10403
|
+ 'label' => __pl('entry_footer_margin'),
|
|
10404
|
+ 'screen' => 1,
|
|
10405
|
+ 'group' => 'footer_group',
|
|
10406
|
+ 'css' => ['body.pagelayer-body .entry-footer' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10407
|
+ ),
|
|
10408
|
+ ),
|
|
10409
|
+ 'post_global' => array(
|
|
10410
|
+ 'post_body_group' => array(
|
|
10411
|
+ 'type' => 'access',
|
|
10412
|
+ 'label' => __pl('Body Settings'),
|
|
10413
|
+ 'show_group' => 'post_body_group',
|
|
10414
|
+ ),
|
|
10415
|
+ 'post_header_group' => array(
|
|
10416
|
+ 'type' => 'access',
|
|
10417
|
+ 'label' => __pl('Header Settings'),
|
|
10418
|
+ 'show_group' => 'post_header_group',
|
|
10419
|
+ ),
|
|
10420
|
+ 'post_h1_group' => array(
|
|
10421
|
+ 'type' => 'access',
|
|
10422
|
+ 'label' => __pl('H1 Settings'),
|
|
10423
|
+ 'show_group' => 'post_h1_group',
|
|
10424
|
+ ),
|
|
10425
|
+ 'post_h2_group' => array(
|
|
10426
|
+ 'type' => 'access',
|
|
10427
|
+ 'label' => __pl('H2 Settings'),
|
|
10428
|
+ 'show_group' => 'post_h2_group',
|
|
10429
|
+ ),
|
|
10430
|
+ 'post_h3_group' => array(
|
|
10431
|
+ 'type' => 'access',
|
|
10432
|
+ 'label' => __pl('H3 Settings'),
|
|
10433
|
+ 'show_group' => 'post_h3_group',
|
|
10434
|
+ ),
|
|
10435
|
+ 'post_h4_group' => array(
|
|
10436
|
+ 'type' => 'access',
|
|
10437
|
+ 'label' => __pl('H4 Group'),
|
|
10438
|
+ 'show_group' => 'post_h4_group',
|
|
10439
|
+ ),
|
|
10440
|
+ 'post_h5_group' => array(
|
|
10441
|
+ 'type' => 'access',
|
|
10442
|
+ 'label' => __pl('H5 Settings'),
|
|
10443
|
+ 'show_group' => 'post_h5_group',
|
|
10444
|
+ ),
|
|
10445
|
+ 'post_h6_group' => array(
|
|
10446
|
+ 'type' => 'access',
|
|
10447
|
+ 'label' => __pl('H6 Settings'),
|
|
10448
|
+ 'show_group' => 'post_h6_group',
|
|
10449
|
+ ),
|
|
10450
|
+ 'post_b_group' => array(
|
|
10451
|
+ 'type' => 'access',
|
|
10452
|
+ 'label' => __pl('B Settings'),
|
|
10453
|
+ 'show_group' => 'post_b_group',
|
|
10454
|
+ ),
|
|
10455
|
+ 'post_i_group' => array(
|
|
10456
|
+ 'type' => 'access',
|
|
10457
|
+ 'label' => __pl('I Settings'),
|
|
10458
|
+ 'show_group' => 'post_i_group',
|
|
10459
|
+ ),
|
|
10460
|
+ 'post_a_group' => array(
|
|
10461
|
+ 'type' => 'access',
|
|
10462
|
+ 'label' => __pl('A Settings'),
|
|
10463
|
+ 'show_group' => 'post_a_group',
|
|
10464
|
+ ),
|
|
10465
|
+ 'post_a_hover_group' => array(
|
|
10466
|
+ 'type' => 'access',
|
|
10467
|
+ 'label' => __pl('A Hover Settings'),
|
|
10468
|
+ 'show_group' => 'post_a_hover_group',
|
|
10469
|
+ ),
|
|
10470
|
+ 'post_aside_group' => array(
|
|
10471
|
+ 'type' => 'access',
|
|
10472
|
+ 'label' => __pl('Aside Settings'),
|
|
10473
|
+ 'show_group' => 'post_aside_group',
|
|
10474
|
+ ),
|
|
10475
|
+ 'post_p_group' => array(
|
|
10476
|
+ 'type' => 'access',
|
|
10477
|
+ 'label' => __pl('P Settings'),
|
|
10478
|
+ 'show_group' => 'post_p_group',
|
|
10479
|
+ ),
|
|
10480
|
+ 'post_entry_header_group' => array(
|
|
10481
|
+ 'type' => 'access',
|
|
10482
|
+ 'label' => __pl('Header Settings'),
|
|
10483
|
+ 'show_group' => 'post_entry_header_group',
|
|
10484
|
+ ),
|
|
10485
|
+ 'post_entry_content_group' => array(
|
|
10486
|
+ 'type' => 'access',
|
|
10487
|
+ 'label' => __pl('Content Settings'),
|
|
10488
|
+ 'show_group' => 'post_content_group',
|
|
10489
|
+ ),
|
|
10490
|
+ 'post_entry_footer_group' => array(
|
|
10491
|
+ 'type' => 'access',
|
|
10492
|
+ 'label' => __pl('Footer Settings'),
|
|
10493
|
+ 'show_group' => 'post_footer_group',
|
|
10494
|
+ ),
|
|
10495
|
+ 'current_body' => array(
|
|
10496
|
+ 'type' => 'typography',
|
|
10497
|
+ 'label' => __pl('current_body'),
|
|
10498
|
+ 'group' => 'post_body_group',
|
|
10499
|
+ 'customizer_mods' => 'pagelayer_body_typography_{{post_type}}',
|
|
10500
|
+ 'customizer_css' => 1,
|
|
10501
|
+ 'css' => ['body.pagelayer-body ' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10502
|
+ ),
|
|
10503
|
+ 'current_header' => array(
|
|
10504
|
+ 'type' => 'typography',
|
|
10505
|
+ 'label' => __pl('current_header'),
|
|
10506
|
+ 'group' => 'post_header_group',
|
|
10507
|
+ 'css' => ['body.pagelayer-body header' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10508
|
+ ),
|
|
10509
|
+ 'current_h1' => array(
|
|
10510
|
+ 'type' => 'typography',
|
|
10511
|
+ 'label' => __pl('current_h1'),
|
|
10512
|
+ 'group' => 'post_h1_group',
|
|
10513
|
+ 'css' => ['body.pagelayer-body h1' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10514
|
+ ),
|
|
10515
|
+ 'current_h2' => array(
|
|
10516
|
+ 'type' => 'typography',
|
|
10517
|
+ 'label' => __pl('current_h2'),
|
|
10518
|
+ 'group' => 'post_h2_group',
|
|
10519
|
+ 'css' => ['body.pagelayer-body h2' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10520
|
+ ),
|
|
10521
|
+ 'current_h3' => array(
|
|
10522
|
+ 'type' => 'typography',
|
|
10523
|
+ 'label' => __pl('current_h3'),
|
|
10524
|
+ 'group' => 'post_h3_group',
|
|
10525
|
+ 'css' => ['body.pagelayer-body h3' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10526
|
+ ),
|
|
10527
|
+ 'current_h4' => array(
|
|
10528
|
+ 'type' => 'typography',
|
|
10529
|
+ 'label' => __pl('current_h4'),
|
|
10530
|
+ 'group' => 'post_h4_group',
|
|
10531
|
+ 'css' => ['body.pagelayer-body h4' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10532
|
+ ),
|
|
10533
|
+ 'current_h5' => array(
|
|
10534
|
+ 'type' => 'typography',
|
|
10535
|
+ 'label' => __pl('current_h5'),
|
|
10536
|
+ 'group' => 'post_h5_group',
|
|
10537
|
+ 'css' => ['body.pagelayer-body h5' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10538
|
+ ),
|
|
10539
|
+ 'current_h6' => array(
|
|
10540
|
+ 'type' => 'typography',
|
|
10541
|
+ 'label' => __pl('current_h6'),
|
|
10542
|
+ 'group' => 'post_h6_group',
|
|
10543
|
+ 'css' => ['body.pagelayer-body h6' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10544
|
+ ),
|
|
10545
|
+ 'current_b' => array(
|
|
10546
|
+ 'type' => 'typography',
|
|
10547
|
+ 'label' => __pl('current_b'),
|
|
10548
|
+ 'group' => 'post_b_group',
|
|
10549
|
+ 'css' => ['body.pagelayer-body b' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10550
|
+ ),
|
|
10551
|
+ 'current_i' => array(
|
|
10552
|
+ 'type' => 'typography',
|
|
10553
|
+ 'label' => __pl('current_i'),
|
|
10554
|
+ 'group' => 'post_i_group',
|
|
10555
|
+ 'css' => ['body.pagelayer-body i' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10556
|
+ ),
|
|
10557
|
+ 'current_a' => array(
|
|
10558
|
+ 'type' => 'typography',
|
|
10559
|
+ 'label' => __pl('current_a'),
|
|
10560
|
+ 'group' => 'post_a_group',
|
|
10561
|
+ 'css' => ['body.pagelayer-body a' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10562
|
+ ),
|
|
10563
|
+ 'current_a-hover' => array(
|
|
10564
|
+ 'type' => 'typography',
|
|
10565
|
+ 'label' => __pl('current_a_hover'),
|
|
10566
|
+ 'group' => 'post_a_hover_group',
|
|
10567
|
+ 'css' => ['body.pagelayer-body a:hover' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10568
|
+ ),
|
|
10569
|
+ 'current_aside' => array(
|
|
10570
|
+ 'type' => 'typography',
|
|
10571
|
+ 'label' => __pl('current_aside'),
|
|
10572
|
+ 'group' => 'post_aside_group',
|
|
10573
|
+ 'css' => ['body.pagelayer-body p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10574
|
+ ),
|
|
10575
|
+ 'current_p' => array(
|
|
10576
|
+ 'type' => 'typography',
|
|
10577
|
+ 'label' => __pl('p'),
|
|
10578
|
+ 'group' => 'post_p_group',
|
|
10579
|
+ 'css' => ['body.pagelayer-body p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10580
|
+ ),
|
|
10581
|
+ 'current_entry-header' => array(
|
|
10582
|
+ 'type' => 'typography',
|
|
10583
|
+ 'label' => __pl('current_entry_header'),
|
|
10584
|
+ 'group' => 'post_entry_header_group',
|
|
10585
|
+ 'css' => ['body.pagelayer-body .entry-header' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10586
|
+ ),
|
|
10587
|
+ 'current_entry-content' => array(
|
|
10588
|
+ 'type' => 'typography',
|
|
10589
|
+ 'label' => __pl('current_entry_content'),
|
|
10590
|
+ 'group' => 'post_content_group',
|
|
10591
|
+ 'css' => ['body.pagelayer-body .entry-content' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10592
|
+ ),
|
|
10593
|
+ 'current_entry-footer' => array(
|
|
10594
|
+ 'type' => 'typography',
|
|
10595
|
+ 'label' => __pl('current_entry_footer'),
|
|
10596
|
+ 'group' => 'post_footer_group',
|
|
10597
|
+ 'css' => ['body.pagelayer-body .entry-footer' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
10598
|
+ ),
|
|
10599
|
+ 'current_body_color' => array(
|
|
10600
|
+ 'type' => 'color',
|
|
10601
|
+ 'screen' => 1,
|
|
10602
|
+ 'group' => 'post_body_group',
|
|
10603
|
+ 'label' => __pl('current_body_color'),
|
|
10604
|
+ 'css' => ['body.pagelayer-body ' => 'color:{{val}};'],
|
|
10605
|
+ ),
|
|
10606
|
+ 'current_header_color' => array(
|
|
10607
|
+ 'type' => 'color',
|
|
10608
|
+ 'screen' => 1,
|
|
10609
|
+ 'group' => 'post_header_group',
|
|
10610
|
+ 'label' => __pl('current_header_color'),
|
|
10611
|
+ 'css' => ['body.pagelayer-body header' => 'color:{{val}};'],
|
|
10612
|
+ ),
|
|
10613
|
+ 'current_h1_color' => array(
|
|
10614
|
+ 'type' => 'color',
|
|
10615
|
+ 'screen' => 1,
|
|
10616
|
+ 'group' => 'post_h1_group',
|
|
10617
|
+ 'label' => __pl('current_h1_color'),
|
|
10618
|
+ 'css' => ['body.pagelayer-body h1' => 'color:{{val}};'],
|
|
10619
|
+ ),
|
|
10620
|
+ 'current_h2_color' => array(
|
|
10621
|
+ 'type' => 'color',
|
|
10622
|
+ 'screen' => 1,
|
|
10623
|
+ 'group' => 'post_h2_group',
|
|
10624
|
+ 'label' => __pl('current_h2_color'),
|
|
10625
|
+ 'css' => ['body.pagelayer-body h2' => 'color:{{val}};'],
|
|
10626
|
+ ),
|
|
10627
|
+ 'current_h3_color' => array(
|
|
10628
|
+ 'type' => 'color',
|
|
10629
|
+ 'screen' => 1,
|
|
10630
|
+ 'group' => 'post_h3_group',
|
|
10631
|
+ 'label' => __pl('current_h3_color'),
|
|
10632
|
+ 'css' => ['body.pagelayer-body h3' => 'color:{{val}};'],
|
|
10633
|
+ ),
|
|
10634
|
+ 'current_h4_color' => array(
|
|
10635
|
+ 'type' => 'color',
|
|
10636
|
+ 'screen' => 1,
|
|
10637
|
+ 'label' => __pl('current_h4_color'),
|
|
10638
|
+ 'group' => 'post_h4_group',
|
|
10639
|
+ 'css' => ['body.pagelayer-body h4' => 'color:{{val}};'],
|
|
10640
|
+ ),
|
|
10641
|
+ 'current_h5_color' => array(
|
|
10642
|
+ 'type' => 'color',
|
|
10643
|
+ 'screen' => 1,
|
|
10644
|
+ 'group' => 'post_h5_group',
|
|
10645
|
+ 'label' => __pl('current_h5_color'),
|
|
10646
|
+ 'css' => ['body.pagelayer-body h5' => 'color:{{val}};'],
|
|
10647
|
+ ),
|
|
10648
|
+ 'current_h6_color' => array(
|
|
10649
|
+ 'type' => 'color',
|
|
10650
|
+ 'screen' => 1,
|
|
10651
|
+ 'group' => 'post_h6_group',
|
|
10652
|
+ 'label' => __pl('current_h6_color'),
|
|
10653
|
+ 'css' => ['body.pagelayer-body h6' => 'color:{{val}};'],
|
|
10654
|
+ ),
|
|
10655
|
+ 'current_b_color' => array(
|
|
10656
|
+ 'type' => 'color',
|
|
10657
|
+ 'screen' => 1,
|
|
10658
|
+ 'group' => 'post_b_group',
|
|
10659
|
+ 'label' => __pl('current_b_color'),
|
|
10660
|
+ 'css' => ['body.pagelayer-body b' => 'color:{{val}};'],
|
|
10661
|
+ ),
|
|
10662
|
+ 'current_i_color' => array(
|
|
10663
|
+ 'type' => 'color',
|
|
10664
|
+ 'screen' => 1,
|
|
10665
|
+ 'group' => 'post_i_group',
|
|
10666
|
+ 'label' => __pl('current_i_color'),
|
|
10667
|
+ 'css' => ['body.pagelayer-body i' => 'color:{{val}};'],
|
|
10668
|
+ ),
|
|
10669
|
+ 'current_a_color' => array(
|
|
10670
|
+ 'type' => 'color',
|
|
10671
|
+ 'screen' => 1,
|
|
10672
|
+ 'group' => 'post_a_group',
|
|
10673
|
+ 'label' => __pl('current_a_color'),
|
|
10674
|
+ 'css' => ['body.pagelayer-body a' => 'color:{{val}};'],
|
|
10675
|
+ ),
|
|
10676
|
+ 'current_a-hover_color' => array(
|
|
10677
|
+ 'type' => 'color',
|
|
10678
|
+ 'screen' => 1,
|
|
10679
|
+ 'group' => 'post_a_hover_group',
|
|
10680
|
+ 'label' => __pl('current_a_hover_color'),
|
|
10681
|
+ 'css' => ['body.pagelayer-body a:hover' => 'color:{{val}};'],
|
|
10682
|
+ ),
|
|
10683
|
+ 'current_aside_color' => array(
|
|
10684
|
+ 'type' => 'color',
|
|
10685
|
+ 'screen' => 1,
|
|
10686
|
+ 'group' => 'post_aside_group',
|
|
10687
|
+ 'label' => __pl('current_aside_color'),
|
|
10688
|
+ 'css' => ['body.pagelayer-body aside' => 'color:{{val}};'],
|
|
10689
|
+ ),
|
|
10690
|
+ 'current_p_color' => array(
|
|
10691
|
+ 'type' => 'color',
|
|
10692
|
+ 'screen' => 1,
|
|
10693
|
+ 'group' => 'post_p_group',
|
|
10694
|
+ 'label' => __pl('current_p_color'),
|
|
10695
|
+ 'css' => ['body.pagelayer-body p' => 'color:{{val}};'],
|
|
10696
|
+ ),
|
|
10697
|
+ 'current_entry-header_color' => array(
|
|
10698
|
+ 'type' => 'color',
|
|
10699
|
+ 'screen' => 1,
|
|
10700
|
+ 'group' => 'post_entry_header_group',
|
|
10701
|
+ 'label' => __pl('current_entry_header_color'),
|
|
10702
|
+ 'css' => ['body.pagelayer-body .entry-header' => 'color:{{val}};'],
|
|
10703
|
+ ),
|
|
10704
|
+ 'current_entry-content_color' => array(
|
|
10705
|
+ 'type' => 'color',
|
|
10706
|
+ 'screen' => 1,
|
|
10707
|
+ 'group' => 'post_content_group',
|
|
10708
|
+ 'label' => __pl('current_entry_content_color'),
|
|
10709
|
+ 'css' => ['body.pagelayer-body .entry-content' => 'color:{{val}};'],
|
|
10710
|
+ ),
|
|
10711
|
+ 'current_entry-footer_color' => array(
|
|
10712
|
+ 'type' => 'color',
|
|
10713
|
+ 'screen' => 1,
|
|
10714
|
+ 'group' => 'post_footer_group',
|
|
10715
|
+ 'label' => __pl('current_entry_footer_color'),
|
|
10716
|
+ 'css' => ['body.pagelayer-body .entry-footer' => 'color:{{val}};'],
|
|
10717
|
+ ),
|
|
10718
|
+ 'current_body_background_color' => array(
|
|
10719
|
+ 'type' => 'color',
|
|
10720
|
+ 'screen' => 1,
|
|
10721
|
+ 'group' => 'post_body_group',
|
|
10722
|
+ 'label' => __pl('current_body_background_color'),
|
|
10723
|
+ 'css' => ['body.pagelayer-body ' => 'background-color:{{val}};'],
|
|
10724
|
+ ),
|
|
10725
|
+ 'current_header_background_color' => array(
|
|
10726
|
+ 'type' => 'color',
|
|
10727
|
+ 'screen' => 1,
|
|
10728
|
+ 'group' => 'post_header_group',
|
|
10729
|
+ 'label' => __pl('current_header_background_color'),
|
|
10730
|
+ 'css' => ['body.pagelayer-body header' => 'background-color:{{val}};'],
|
|
10731
|
+ ),
|
|
10732
|
+ 'current_h1_background_color' => array(
|
|
10733
|
+ 'type' => 'color',
|
|
10734
|
+ 'screen' => 1,
|
|
10735
|
+ 'group' => 'post_h1_group',
|
|
10736
|
+ 'label' => __pl('current_h1_background_color'),
|
|
10737
|
+ 'css' => ['body.pagelayer-body h1' => 'background-color:{{val}};'],
|
|
10738
|
+ ),
|
|
10739
|
+ 'current_h2_background_color' => array(
|
|
10740
|
+ 'type' => 'color',
|
|
10741
|
+ 'screen' => 1,
|
|
10742
|
+ 'group' => 'post_h2_group',
|
|
10743
|
+ 'label' => __pl('current_h2_background_color'),
|
|
10744
|
+ 'css' => ['body.pagelayer-body h2' => 'background-color:{{val}};'],
|
|
10745
|
+ ),
|
|
10746
|
+ 'current_h3_background_color' => array(
|
|
10747
|
+ 'type' => 'color',
|
|
10748
|
+ 'screen' => 1,
|
|
10749
|
+ 'group' => 'post_h3_group',
|
|
10750
|
+ 'label' => __pl('current_h3_background_color'),
|
|
10751
|
+ 'css' => ['body.pagelayer-body h3' => 'background-color:{{val}};'],
|
|
10752
|
+ ),
|
|
10753
|
+ 'current_h4_background_color' => array(
|
|
10754
|
+ 'type' => 'color',
|
|
10755
|
+ 'screen' => 1,
|
|
10756
|
+ 'label' => __pl('current_h4_background_color'),
|
|
10757
|
+ 'group' => 'post_h4_group',
|
|
10758
|
+ 'css' => ['body.pagelayer-body h4' => 'background-color:{{val}};'],
|
|
10759
|
+ ),
|
|
10760
|
+ 'current_h5_background_color' => array(
|
|
10761
|
+ 'type' => 'color',
|
|
10762
|
+ 'screen' => 1,
|
|
10763
|
+ 'group' => 'post_h5_group',
|
|
10764
|
+ 'label' => __pl('current_h5_background_color'),
|
|
10765
|
+ 'css' => ['body.pagelayer-body h5' => 'background-color:{{val}};'],
|
|
10766
|
+ ),
|
|
10767
|
+ 'current_h6_background_color' => array(
|
|
10768
|
+ 'type' => 'color',
|
|
10769
|
+ 'screen' => 1,
|
|
10770
|
+ 'group' => 'post_h6_group',
|
|
10771
|
+ 'label' => __pl('current_h6_background_color'),
|
|
10772
|
+ 'css' => ['body.pagelayer-body h6' => 'background-color:{{val}};'],
|
|
10773
|
+ ),
|
|
10774
|
+ 'current_b_background_color' => array(
|
|
10775
|
+ 'type' => 'color',
|
|
10776
|
+ 'screen' => 1,
|
|
10777
|
+ 'group' => 'post_b_group',
|
|
10778
|
+ 'label' => __pl('current_b_background_color'),
|
|
10779
|
+ 'css' => ['body.pagelayer-body b' => 'background-color:{{val}};'],
|
|
10780
|
+ ),
|
|
10781
|
+ 'current_i_background_color' => array(
|
|
10782
|
+ 'type' => 'color',
|
|
10783
|
+ 'screen' => 1,
|
|
10784
|
+ 'group' => 'post_i_group',
|
|
10785
|
+ 'label' => __pl('current_i_background_color'),
|
|
10786
|
+ 'css' => ['body.pagelayer-body i' => 'background-color:{{val}};'],
|
|
10787
|
+ ),
|
|
10788
|
+ 'current_a_background_color' => array(
|
|
10789
|
+ 'type' => 'color',
|
|
10790
|
+ 'screen' => 1,
|
|
10791
|
+ 'group' => 'post_a_group',
|
|
10792
|
+ 'label' => __pl('current_a_background_color'),
|
|
10793
|
+ 'css' => ['body.pagelayer-body a' => 'background-color:{{val}};'],
|
|
10794
|
+ ),
|
|
10795
|
+ 'current_a-hover_background_color' => array(
|
|
10796
|
+ 'type' => 'color',
|
|
10797
|
+ 'screen' => 1,
|
|
10798
|
+ 'group' => 'post_a_hover_group',
|
|
10799
|
+ 'label' => __pl('current_a_hover_background_color'),
|
|
10800
|
+ 'css' => ['body.pagelayer-body a:hover' => 'background-color:{{val}};'],
|
|
10801
|
+ ),
|
|
10802
|
+ 'current_aside_background_color' => array(
|
|
10803
|
+ 'type' => 'color',
|
|
10804
|
+ 'screen' => 1,
|
|
10805
|
+ 'group' => 'post_aside_group',
|
|
10806
|
+ 'label' => __pl('current_aside_background_color'),
|
|
10807
|
+ 'css' => ['body.pagelayer-body aside' => 'background-color:{{val}};'],
|
|
10808
|
+ ),
|
|
10809
|
+ 'current_p_background_color' => array(
|
|
10810
|
+ 'type' => 'color',
|
|
10811
|
+ 'screen' => 1,
|
|
10812
|
+ 'group' => 'post_p_group',
|
|
10813
|
+ 'label' => __pl('current_p_background_color'),
|
|
10814
|
+ 'css' => ['body.pagelayer-body p' => 'background-color:{{val}};'],
|
|
10815
|
+ ),
|
|
10816
|
+ 'current_entry-header_background_color' => array(
|
|
10817
|
+ 'type' => 'color',
|
|
10818
|
+ 'screen' => 1,
|
|
10819
|
+ 'group' => 'post_entry_header_group',
|
|
10820
|
+ 'label' => __pl('current_entry_header_background_color'),
|
|
10821
|
+ 'css' => ['body.pagelayer-body .entry-header' => 'background-color:{{val}};'],
|
|
10822
|
+ ),
|
|
10823
|
+ 'current_entry-content_background_color' => array(
|
|
10824
|
+ 'type' => 'color',
|
|
10825
|
+ 'screen' => 1,
|
|
10826
|
+ 'group' => 'post_content_group',
|
|
10827
|
+ 'label' => __pl('current_entry_content_background_color'),
|
|
10828
|
+ 'css' => ['body.pagelayer-body .entry-content' => 'background-color:{{val}};'],
|
|
10829
|
+ ),
|
|
10830
|
+ 'current_entry-footer_background_color' => array(
|
|
10831
|
+ 'type' => 'color',
|
|
10832
|
+ 'screen' => 1,
|
|
10833
|
+ 'group' => 'post_footer_group',
|
|
10834
|
+ 'label' => __pl('current_entry_footer_background_color'),
|
|
10835
|
+ 'css' => ['body.pagelayer-body .entry-footer' => 'background-color:{{val}};'],
|
|
10836
|
+ ),
|
|
10837
|
+ 'current_body_padding' => array(
|
|
10838
|
+ 'type' => 'padding',
|
|
10839
|
+ 'label' => __pl('current_body_padding'),
|
|
10840
|
+ 'screen' => 1,
|
|
10841
|
+ 'group' => 'post_body_group',
|
|
10842
|
+ 'css' => ['body.pagelayer-body' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10843
|
+ ),
|
|
10844
|
+ 'current_body_margin' => array(
|
|
10845
|
+ 'type' => 'padding',
|
|
10846
|
+ 'label' => __pl('current_body_margin'),
|
|
10847
|
+ 'screen' => 1,
|
|
10848
|
+ 'group' => 'post_body_group',
|
|
10849
|
+ 'css' => ['body.pagelayer-body' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10850
|
+ ),
|
|
10851
|
+ 'current_header_padding' => array(
|
|
10852
|
+ 'type' => 'padding',
|
|
10853
|
+ 'label' => __pl('current_header_padding'),
|
|
10854
|
+ 'screen' => 1,
|
|
10855
|
+ 'group' => 'post_header_group',
|
|
10856
|
+ 'css' => ['body.pagelayer-body header' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10857
|
+ ),
|
|
10858
|
+ 'current_header_margin' => array(
|
|
10859
|
+ 'type' => 'padding',
|
|
10860
|
+ 'label' => __pl('current_header_margin'),
|
|
10861
|
+ 'screen' => 1,
|
|
10862
|
+ 'group' => 'post_header_group',
|
|
10863
|
+ 'css' => ['body.pagelayer-body header' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10864
|
+ ),
|
|
10865
|
+ 'current_h1_padding' => array(
|
|
10866
|
+ 'type' => 'padding',
|
|
10867
|
+ 'label' => __pl('current_h1_padding'),
|
|
10868
|
+ 'screen' => 1,
|
|
10869
|
+ 'group' => 'post_h1_group',
|
|
10870
|
+ 'css' => ['body.pagelayer-body h1' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10871
|
+ ),
|
|
10872
|
+ 'current_h1_margin' => array(
|
|
10873
|
+ 'type' => 'padding',
|
|
10874
|
+ 'label' => __pl('current_h1_margin'),
|
|
10875
|
+ 'screen' => 1,
|
|
10876
|
+ 'group' => 'post_h1_group',
|
|
10877
|
+ 'css' => ['body.pagelayer-body h1' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10878
|
+ ),
|
|
10879
|
+ 'current_h2_padding' => array(
|
|
10880
|
+ 'type' => 'padding',
|
|
10881
|
+ 'label' => __pl('current_h2_padding'),
|
|
10882
|
+ 'screen' => 1,
|
|
10883
|
+ 'group' => 'post_h2_group',
|
|
10884
|
+ 'css' => ['body.pagelayer-body h2' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10885
|
+ ),
|
|
10886
|
+ 'current_h2_margin' => array(
|
|
10887
|
+ 'type' => 'padding',
|
|
10888
|
+ 'label' => __pl('current_h2_margin'),
|
|
10889
|
+ 'screen' => 1,
|
|
10890
|
+ 'group' => 'post_h2_group',
|
|
10891
|
+ 'css' => ['body.pagelayer-body h2' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10892
|
+ ),
|
|
10893
|
+ 'current_h3_padding' => array(
|
|
10894
|
+ 'type' => 'padding',
|
|
10895
|
+ 'label' => __pl('current_h3_padding'),
|
|
10896
|
+ 'screen' => 1,
|
|
10897
|
+ 'group' => 'post_h3_group',
|
|
10898
|
+ 'css' => ['body.pagelayer-body h3' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10899
|
+ ),
|
|
10900
|
+ 'current_h3_margin' => array(
|
|
10901
|
+ 'type' => 'padding',
|
|
10902
|
+ 'label' => __pl('current_h3_margin'),
|
|
10903
|
+ 'screen' => 1,
|
|
10904
|
+ 'group' => 'post_h3_group',
|
|
10905
|
+ 'css' => ['body.pagelayer-body h3' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10906
|
+ ),
|
|
10907
|
+ 'current_h4_padding' => array(
|
|
10908
|
+ 'type' => 'padding',
|
|
10909
|
+ 'label' => __pl('current_h4_padding'),
|
|
10910
|
+ 'screen' => 1,
|
|
10911
|
+ 'group' => 'post_h4_group',
|
|
10912
|
+ 'css' => ['body.pagelayer-body h4' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10913
|
+ ),
|
|
10914
|
+ 'current_h4_margin' => array(
|
|
10915
|
+ 'type' => 'padding',
|
|
10916
|
+ 'label' => __pl('current_h4_margin'),
|
|
10917
|
+ 'screen' => 1,
|
|
10918
|
+ 'group' => 'post_h4_group',
|
|
10919
|
+ 'css' => ['body.pagelayer-body h4' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10920
|
+ ),
|
|
10921
|
+ 'current_h5_padding' => array(
|
|
10922
|
+ 'type' => 'padding',
|
|
10923
|
+ 'label' => __pl('current_h5_padding'),
|
|
10924
|
+ 'screen' => 1,
|
|
10925
|
+ 'group' => 'post_h5_group',
|
|
10926
|
+ 'css' => ['body.pagelayer-body h5' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10927
|
+ ),
|
|
10928
|
+ 'current_h5_margin' => array(
|
|
10929
|
+ 'type' => 'padding',
|
|
10930
|
+ 'label' => __pl('current_h5_margin'),
|
|
10931
|
+ 'screen' => 1,
|
|
10932
|
+ 'group' => 'post_h5_group',
|
|
10933
|
+ 'css' => ['body.pagelayer-body h5' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10934
|
+ ),
|
|
10935
|
+ 'current_h6_padding' => array(
|
|
10936
|
+ 'type' => 'padding',
|
|
10937
|
+ 'label' => __pl('current_h6_padding'),
|
|
10938
|
+ 'screen' => 1,
|
|
10939
|
+ 'group' => 'post_h6_group',
|
|
10940
|
+ 'css' => ['body.pagelayer-body h6' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10941
|
+ ),
|
|
10942
|
+ 'current_h6_margin' => array(
|
|
10943
|
+ 'type' => 'padding',
|
|
10944
|
+ 'label' => __pl('current_h6_margin'),
|
|
10945
|
+ 'screen' => 1,
|
|
10946
|
+ 'group' => 'post_h6_group',
|
|
10947
|
+ 'css' => ['body.pagelayer-body h6' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10948
|
+ ),
|
|
10949
|
+ 'current_b_padding' => array(
|
|
10950
|
+ 'type' => 'padding',
|
|
10951
|
+ 'label' => __pl('current_b_padding'),
|
|
10952
|
+ 'screen' => 1,
|
|
10953
|
+ 'group' => 'post_b_group',
|
|
10954
|
+ 'css' => ['body.pagelayer-body b' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10955
|
+ ),
|
|
10956
|
+ 'current_b_margin' => array(
|
|
10957
|
+ 'type' => 'padding',
|
|
10958
|
+ 'label' => __pl('current_b_margin'),
|
|
10959
|
+ 'screen' => 1,
|
|
10960
|
+ 'group' => 'post_b_group',
|
|
10961
|
+ 'css' => ['body.pagelayer-body b' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10962
|
+ ),
|
|
10963
|
+ 'current_i_padding' => array(
|
|
10964
|
+ 'type' => 'padding',
|
|
10965
|
+ 'label' => __pl('current_i_padding'),
|
|
10966
|
+ 'screen' => 1,
|
|
10967
|
+ 'group' => 'post_i_group',
|
|
10968
|
+ 'css' => ['body.pagelayer-body i' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10969
|
+ ),
|
|
10970
|
+ 'current_i_margin' => array(
|
|
10971
|
+ 'type' => 'padding',
|
|
10972
|
+ 'label' => __pl('current_i_margin'),
|
|
10973
|
+ 'screen' => 1,
|
|
10974
|
+ 'group' => 'post_i_group',
|
|
10975
|
+ 'css' => ['body.pagelayer-body i' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10976
|
+ ),
|
|
10977
|
+ 'current_a_padding' => array(
|
|
10978
|
+ 'type' => 'padding',
|
|
10979
|
+ 'label' => __pl('current_a_padding'),
|
|
10980
|
+ 'screen' => 1,
|
|
10981
|
+ 'group' => 'post_a_group',
|
|
10982
|
+ 'css' => ['body.pagelayer-body a' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10983
|
+ ),
|
|
10984
|
+ 'current_a_margin' => array(
|
|
10985
|
+ 'type' => 'padding',
|
|
10986
|
+ 'label' => __pl('current_a_margin'),
|
|
10987
|
+ 'screen' => 1,
|
|
10988
|
+ 'group' => 'post_a_group',
|
|
10989
|
+ 'css' => ['body.pagelayer-body a' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
10990
|
+ ),
|
|
10991
|
+ 'current_a-hover_padding' => array(
|
|
10992
|
+ 'type' => 'padding',
|
|
10993
|
+ 'label' => __pl('current_a_hover_padding'),
|
|
10994
|
+ 'screen' => 1,
|
|
10995
|
+ 'group' => 'post_a_hover_group',
|
|
10996
|
+ 'css' => ['body.pagelayer-body a:hover' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
10997
|
+ ),
|
|
10998
|
+ 'current_a-hover_margin' => array(
|
|
10999
|
+ 'type' => 'padding',
|
|
11000
|
+ 'label' => __pl('current_a_hover_margin'),
|
|
11001
|
+ 'screen' => 1,
|
|
11002
|
+ 'group' => 'post_a_hover_group',
|
|
11003
|
+ 'css' => ['body.pagelayer-body a:hover' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
11004
|
+ ),
|
|
11005
|
+ 'current_aside_padding' => array(
|
|
11006
|
+ 'type' => 'padding',
|
|
11007
|
+ 'label' => __pl('current_aside_padding'),
|
|
11008
|
+ 'screen' => 1,
|
|
11009
|
+ 'group' => 'post_aside_group',
|
|
11010
|
+ 'css' => ['body.pagelayer-body aside' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
11011
|
+ ),
|
|
11012
|
+ 'current_aside_margin' => array(
|
|
11013
|
+ 'type' => 'padding',
|
|
11014
|
+ 'label' => __pl('current_aside_margin'),
|
|
11015
|
+ 'screen' => 1,
|
|
11016
|
+ 'group' => 'post_aside_group',
|
|
11017
|
+ 'css' => ['body.pagelayer-body aside' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
11018
|
+ ),
|
|
11019
|
+ 'current_p_padding' => array(
|
|
11020
|
+ 'type' => 'padding',
|
|
11021
|
+ 'label' => __pl('current_p_padding'),
|
|
11022
|
+ 'screen' => 1,
|
|
11023
|
+ 'group' => 'post_p_group',
|
|
11024
|
+ 'css' => ['body.pagelayer-body p' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
11025
|
+ ),
|
|
11026
|
+ 'current_p_margin' => array(
|
|
11027
|
+ 'type' => 'padding',
|
|
11028
|
+ 'label' => __pl('current_p_margin'),
|
|
11029
|
+ 'screen' => 1,
|
|
11030
|
+ 'group' => 'post_p_group',
|
|
11031
|
+ 'css' => ['body.pagelayer-body p' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
11032
|
+ ),
|
|
11033
|
+ 'current_entry-header_padding' => array(
|
|
11034
|
+ 'type' => 'padding',
|
|
11035
|
+ 'label' => __pl('current_entry_header_padding'),
|
|
11036
|
+ 'screen' => 1,
|
|
11037
|
+ 'group' => 'post_entry_header_group',
|
|
11038
|
+ 'css' => ['body.pagelayer-body .entry-header' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
11039
|
+ ),
|
|
11040
|
+ 'current_entry-header_margin' => array(
|
|
11041
|
+ 'type' => 'padding',
|
|
11042
|
+ 'label' => __pl('current_entry_header_margin'),
|
|
11043
|
+ 'screen' => 1,
|
|
11044
|
+ 'group' => 'post_entry_header_group',
|
|
11045
|
+ 'css' => ['body.pagelayer-body .entry-header' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
11046
|
+ ),
|
|
11047
|
+ 'current_entry-content_padding' => array(
|
|
11048
|
+ 'type' => 'padding',
|
|
11049
|
+ 'label' => __pl('current_entry_content_padding'),
|
|
11050
|
+ 'screen' => 1,
|
|
11051
|
+ 'group' => 'post_content_group',
|
|
11052
|
+ 'css' => ['body.pagelayer-body .entry-content' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
11053
|
+ ),
|
|
11054
|
+ 'current_entry-content_margin' => array(
|
|
11055
|
+ 'type' => 'padding',
|
|
11056
|
+ 'label' => __pl('current_entry_content_margin'),
|
|
11057
|
+ 'screen' => 1,
|
|
11058
|
+ 'group' => 'post_content_group',
|
|
11059
|
+ 'css' => ['body.pagelayer-body .entry-content' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
11060
|
+ ),
|
|
11061
|
+ 'current_entry-footer_padding' => array(
|
|
11062
|
+ 'type' => 'padding',
|
|
11063
|
+ 'label' => __pl('current_entry_footer_padding'),
|
|
11064
|
+ 'screen' => 1,
|
|
11065
|
+ 'group' => 'post_footer_group',
|
|
11066
|
+ 'css' => ['body.pagelayer-body .entry-footer' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
|
|
11067
|
+ ),
|
|
11068
|
+ 'current_entry-footer_margin' => array(
|
|
11069
|
+ 'type' => 'padding',
|
|
11070
|
+ 'label' => __pl('current_entry_footer_margin'),
|
|
11071
|
+ 'screen' => 1,
|
|
11072
|
+ 'group' => 'post_footer_group',
|
|
11073
|
+ 'css' => ['body.pagelayer-body .entry-footer' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
11074
|
+ ),
|
|
11075
|
+ ),
|
|
11076
|
+ 'global_background' => array(
|
|
11077
|
+ 'ele_bg_type' => array(
|
|
11078
|
+ 'type' => 'radio',
|
|
11079
|
+ 'label' => __pl('Background Type'),
|
|
11080
|
+ 'list' => array(
|
|
11081
|
+ '' => __pl('none'),
|
|
11082
|
+ 'color' => __pl('color'),
|
|
11083
|
+ 'gradient' => __pl('gradient'),
|
|
11084
|
+ 'image' => __pl('image'),
|
|
11085
|
+ ),
|
|
11086
|
+ ),
|
|
11087
|
+ 'ele_bg_color' => array(
|
|
11088
|
+ 'type' => 'color',
|
|
11089
|
+ 'label' => __pl('color'),
|
|
11090
|
+ 'customizer_css' => 1,
|
|
11091
|
+ 'css' => ['body.pagelayer-body' => 'background: {{val}};'],
|
|
11092
|
+ 'req' => ['ele_bg_type' => 'color']
|
|
11093
|
+ ),
|
|
11094
|
+ 'ele_bg_gradient' => array(
|
|
11095
|
+ 'type' => 'gradient',
|
|
11096
|
+ 'label' => '',
|
|
11097
|
+ 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
|
|
11098
|
+ 'customizer_css' => 1,
|
|
11099
|
+ 'css' => ['body.pagelayer-body' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
|
|
11100
|
+ 'req' => ['ele_bg_type' => 'gradient']
|
|
11101
|
+ ),
|
|
11102
|
+ 'ele_img_color' => array(
|
|
11103
|
+ 'type' => 'color',
|
|
11104
|
+ 'label' => __pl('color'),
|
|
11105
|
+ 'desc' => __pl('fallback_color'),
|
|
11106
|
+ 'customizer_css' => 1,
|
|
11107
|
+ 'css' => ['body.pagelayer-body' => 'background-color: {{val}};'],
|
|
11108
|
+ 'req' => ['ele_bg_type' => 'image']
|
|
11109
|
+ ),
|
|
11110
|
+ 'ele_bg_img' => array(
|
|
11111
|
+ 'type' => 'image',
|
|
11112
|
+ 'label' => __pl('Image'),
|
|
11113
|
+ 'customizer_css' => 1,
|
|
11114
|
+ 'css' => ['body.pagelayer-body' => 'background-image: url("{{{ele_bg_img-url}}}");'],
|
|
11115
|
+ 'req' => ['ele_bg_type' => 'image']
|
|
11116
|
+ ),
|
|
11117
|
+ 'ele_bg_attachment' => array(
|
|
11118
|
+ 'type' => 'select',
|
|
11119
|
+ 'label' => __pl('ele_bg_attachment'),
|
|
11120
|
+ 'list' => array(
|
|
11121
|
+ '' => __pl('default'),
|
|
11122
|
+ 'scroll' => __pl('scroll'),
|
|
11123
|
+ 'fixed' => __pl('fixed')
|
|
11124
|
+ ),
|
|
11125
|
+ 'customizer_css' => 1,
|
|
11126
|
+ 'css' => ['body.pagelayer-body' => 'background-attachment: {{val}};'],
|
|
11127
|
+ 'req' => ['ele_bg_type' => 'image']
|
|
11128
|
+ ),
|
|
11129
|
+ 'ele_bg_posx' => array(
|
|
11130
|
+ 'type' => 'select',
|
|
11131
|
+ 'label' => __pl('ele_bg_posx'),
|
|
11132
|
+ 'list' => array(
|
|
11133
|
+ '' => __pl('default'),
|
|
11134
|
+ 'center' => __pl('center'),
|
|
11135
|
+ 'left' => __pl('left'),
|
|
11136
|
+ 'right' => __pl('right'),
|
|
11137
|
+ 'custom' => __pl('custom')
|
|
11138
|
+ ),
|
|
11139
|
+ 'customizer_css' => 1,
|
|
11140
|
+ 'css' => ['body.pagelayer-body' => 'background-position-x: {{val}};'],
|
|
11141
|
+ 'req' => ['ele_bg_type' => 'image']
|
|
11142
|
+ ),
|
|
11143
|
+ 'ele_bg_posx_custom' => array(
|
|
11144
|
+ 'label' => __pl('custom_x'),
|
|
11145
|
+ 'type' => 'slider',
|
|
11146
|
+ 'step' => 1,
|
|
11147
|
+ 'min' => -5000,
|
|
11148
|
+ 'max' => 5000,
|
|
11149
|
+ 'screen' => 1,
|
|
11150
|
+ 'units' => ['px', 'em', '%'],
|
|
11151
|
+ 'customizer_css' => 1,
|
|
11152
|
+ 'css' => ['body.pagelayer-body' => 'background-position-x: {{val}};'],
|
|
11153
|
+ 'req' => array(
|
|
11154
|
+ 'ele_bg_posx' => 'custom'
|
|
11155
|
+ ),
|
|
11156
|
+ ),
|
|
11157
|
+ 'ele_bg_posy' => array(
|
|
11158
|
+ 'type' => 'select',
|
|
11159
|
+ 'label' => __pl('ele_bg_posy'),
|
|
11160
|
+ 'list' => array(
|
|
11161
|
+ '' => __pl('default'),
|
|
11162
|
+ 'center' => __pl('center'),
|
|
11163
|
+ 'top' => __pl('top'),
|
|
11164
|
+ 'bottom' => __pl('bottom'),
|
|
11165
|
+ 'custom' => __pl('custom')
|
|
11166
|
+ ),
|
|
11167
|
+ 'customizer_css' => 1,
|
|
11168
|
+ 'css' => ['body.pagelayer-body' => 'background-position-y: {{val}};'],
|
|
11169
|
+ 'req' => ['ele_bg_type' => 'image']
|
|
11170
|
+ ),
|
|
11171
|
+ 'ele_bg_posy_custom' => array(
|
|
11172
|
+ 'label' => __pl('custom_y'),
|
|
11173
|
+ 'type' => 'slider',
|
|
11174
|
+ 'step' => 1,
|
|
11175
|
+ 'min' => -5000,
|
|
11176
|
+ 'max' => 5000,
|
|
11177
|
+ 'screen' => 1,
|
|
11178
|
+ 'units' => ['px', 'em', '%'],
|
|
11179
|
+ 'customizer_css' => 1,
|
|
11180
|
+ 'css' => ['body.pagelayer-body' => 'background-position-y: {{val}};'],
|
|
11181
|
+ 'req' => array(
|
|
11182
|
+ 'ele_bg_posy' => 'custom'
|
|
11183
|
+ ),
|
|
11184
|
+ ),
|
|
11185
|
+ 'ele_bg_repeat' => array(
|
|
11186
|
+ 'type' => 'select',
|
|
11187
|
+ 'label' => __pl('ele_bg_repeat'),
|
|
11188
|
+ 'customizer_css' => 1,
|
|
11189
|
+ 'css' => ['body.pagelayer-body' => 'background-repeat: {{val}};'],
|
|
11190
|
+ 'list' => array(
|
|
11191
|
+ '' => __pl('default'),
|
|
11192
|
+ 'repeat' => __pl('repeat'),
|
|
11193
|
+ 'no-repeat' => __pl('no-repeat'),
|
|
11194
|
+ 'repeat-x' => __pl('repeat-x'),
|
|
11195
|
+ 'repeat-y' => __pl('repeat-y'),
|
|
11196
|
+ ),
|
|
11197
|
+ 'req' => ['ele_bg_type' => 'image']
|
|
11198
|
+ ),
|
|
11199
|
+ 'ele_bg_size' => array(
|
|
11200
|
+ 'type' => 'select',
|
|
11201
|
+ 'label' => __pl('ele_bg_size'),
|
|
11202
|
+ 'customizer_css' => 1,
|
|
11203
|
+ 'css' => ['body.pagelayer-body' => 'background-size: {{val}};'],
|
|
11204
|
+ 'list' => array(
|
|
11205
|
+ '' => __pl('default'),
|
|
11206
|
+ 'cover' => __pl('cover'),
|
|
11207
|
+ 'contain' => __pl('contain')
|
|
11208
|
+ ),
|
|
11209
|
+ 'req' => ['ele_bg_type' => 'image']
|
|
11210
|
+ ),
|
|
11211
|
+ ),
|
|
11212
|
+ 'global_button' => array(
|
|
11213
|
+ 'button' => array(
|
|
11214
|
+ 'type' => 'typography',
|
|
11215
|
+ 'label' => __pl('Typography'),
|
|
11216
|
+ 'customizer_css' => 1,
|
|
11217
|
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
|
|
11218
|
+ ),
|
|
11219
|
+ 'button_padding' => array(
|
|
11220
|
+ 'type' => 'padding',
|
|
11221
|
+ 'label' => __pl('global_btn_dim'),
|
|
11222
|
+ 'screen' => 1,
|
|
11223
|
+ 'customizer_css' => 1,
|
|
11224
|
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[2]}}px;padding-left:{{val[3]}}px;'],
|
|
11225
|
+ ),
|
|
11226
|
+ 'button_margin' => array(
|
|
11227
|
+ 'type' => 'padding',
|
|
11228
|
+ 'label' => __pl('spacing'),
|
|
11229
|
+ 'customizer_css' => 1,
|
|
11230
|
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
|
|
11231
|
+ ),
|
|
11232
|
+ 'global_btn_state' => array(
|
|
11233
|
+ 'type' => 'radio',
|
|
11234
|
+ 'label' => __pl('button_state'),
|
|
11235
|
+ 'default' => 'normal',
|
|
11236
|
+ 'list' => array(
|
|
11237
|
+ 'normal' => __pl('Normal'),
|
|
11238
|
+ 'hover' => __pl('Hover'),
|
|
11239
|
+ ),
|
|
11240
|
+ ),
|
|
11241
|
+ 'button_color' => array(
|
|
11242
|
+ 'type' => 'color',
|
|
11243
|
+ 'label' => __pl('iconbox_button_color'),
|
|
11244
|
+ 'customizer_css' => 1,
|
|
11245
|
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'color:{{val}};'],
|
|
11246
|
+ 'show' => ['global_btn_state' => 'normal']
|
|
11247
|
+ ),
|
|
11248
|
+ 'button_background_color' => array(
|
|
11249
|
+ 'type' => 'color',
|
|
11250
|
+ 'label' => __pl('global_button_bg_color'),
|
|
11251
|
+ 'customizer_css' => 1,
|
|
11252
|
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'background-color:{{val}};'],
|
|
11253
|
+ 'show' => ['global_btn_state' => 'normal']
|
|
11254
|
+ ),
|
|
11255
|
+ 'button_hover_color' => array(
|
|
11256
|
+ 'type' => 'color',
|
|
11257
|
+ 'label' => __pl('iconbox_button_color'),
|
|
11258
|
+ 'customizer_css' => 1,
|
|
11259
|
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder:hover' => 'color:{{val}};'],
|
|
11260
|
+ 'show' => ['global_btn_state' => 'hover'],
|
|
11261
|
+ ),
|
|
11262
|
+ 'button_hover_background_color' => array(
|
|
11263
|
+ 'type' => 'color',
|
|
11264
|
+ 'label' => __pl('global_button_bg_color_hover'),
|
|
11265
|
+ 'customizer_css' => 1,
|
|
11266
|
+ 'css' => ['body.pagelayer-body .pagelayer-btn-holder:hover' => 'background-color:{{val}};'],
|
|
11267
|
+ 'show' => ['global_btn_state' => 'hover'],
|
|
11268
|
+ ),
|
|
11269
|
+ ),
|
|
11270
|
+ 'woocommerce' => array(
|
|
11271
|
+ 'shop' => array(
|
|
11272
|
+ 'type' => 'select',
|
|
11273
|
+ 'label' => __pl('shop'),
|
|
11274
|
+ 'option' => 'woocommerce_shop_page_id',
|
|
11275
|
+ 'list' => pagelayer_get_posts(array('page')),
|
|
11276
|
+ ),
|
|
11277
|
+ 'cart' => array(
|
|
11278
|
+ 'type' => 'select',
|
|
11279
|
+ 'label' => __pl('cart'),
|
|
11280
|
+ 'option' => 'woocommerce_cart_page_id',
|
|
11281
|
+ 'list' => pagelayer_get_posts(array('page')),
|
|
11282
|
+ ),
|
|
11283
|
+ 'checkout' => array(
|
|
11284
|
+ 'type' => 'select',
|
|
11285
|
+ 'label' => __pl('checkout'),
|
|
11286
|
+ 'option' => 'woocommerce_checkout_page_id',
|
|
11287
|
+ 'list' => pagelayer_get_posts(array('page')),
|
|
11288
|
+ ),
|
|
11289
|
+ 'my_account' => array(
|
|
11290
|
+ 'type' => 'select',
|
|
11291
|
+ 'label' => __pl('my_account'),
|
|
11292
|
+ 'option' => 'woocommerce_myaccount_page_id',
|
|
11293
|
+ 'list' => pagelayer_get_posts(array('page')),
|
|
11294
|
+ ),
|
|
11295
|
+ 't_&c' => array(
|
|
11296
|
+ 'type' => 'select',
|
|
11297
|
+ 'label' => __pl('t_&c'),
|
|
11298
|
+ 'option' => 'woocommerce_terms_page_id',
|
|
11299
|
+ 'list' => pagelayer_get_posts(array('page')),
|
|
11300
|
+ ),
|
|
11301
|
+ ),
|
|
11302
|
+ 'styles' => $pagelayer->customizer_styles_options,
|
|
11303
|
+ )
|
|
11304
|
+
|
|
11305
|
+);
|
|
11306
|
+*/
|
|
11307
|
+
|
|
6170
|
11308
|
////////////////////////
|
|
6171
|
11309
|
// WordPress Group
|
|
6172
|
11310
|
////////////////////////
|
|
6173
|
11311
|
|
|
@@ -6190,9 +11328,9 @@ |
|
6190
|
11328
|
// Widgets Area
|
|
6191
|
11329
|
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_widgets', array(
|
|
6192
|
11330
|
'name' => __pl('Sidebars / Widget Area'),
|
|
6193
|
11331
|
'group' => 'wordpress',
|
|
6194
|
|
- 'func' => 'pagelayer_sc_wp_widgets',
|
|
11332
|
+ 'no_gt' => 1,
|
|
6195
|
11333
|
'html' => '<div class="pagelayer-wp-sidebar-title">{{title}}</div>
|
|
6196
|
11334
|
<div class="pagelayer-wp-sidebar-holder">{{{data}}}</div>',
|
|
6197
|
11335
|
'params' => array(
|
|
6198
|
11336
|
'title' => array(
|
|
@@ -6198,15 +11336,15 @@ |
|
6198
|
11336
|
'title' => array(
|
|
6199
|
11337
|
'type' => 'text',
|
|
6200
|
11338
|
'label' => __pl('parameters_title'),
|
|
6201
|
11339
|
'default' => 'Title',
|
|
6202
|
|
- 'desc' => __pl('wp_widgets_area_description')
|
|
11340
|
+ 'desc' => __pl('wp_widgets_area_description'),
|
|
11341
|
+ 'edit' => '.pagelayer-wp-sidebar-title',
|
|
6203
|
11342
|
),
|
|
6204
|
11343
|
'sidebar' => array(
|
|
6205
|
11344
|
'type' => 'select',
|
|
6206
|
11345
|
'label' => __pl('wp_widgets_area_select'),
|
|
6207
|
11346
|
'default' => $pagelayer_wp_widget_default,
|
|
6208
|
|
- 'desc' => '',
|
|
6209
|
11347
|
'list' => $pagelayer_wp_widgets
|
|
6210
|
11348
|
)
|
|
6211
|
11349
|
)
|
|
6212
|
11350
|
)
|
|
@@ -6212,29 +11350,41 @@ |
|
6212
|
11350
|
)
|
|
6213
|
11351
|
);
|
|
6214
|
11352
|
|
|
6215
|
11353
|
// Load the wordpress widgets, IF ALLOWED !
|
|
6216
|
|
-if(current_user_can('edit_theme_options')){
|
|
11354
|
+//if(current_user_can('edit_theme_options')){
|
|
6217
|
11355
|
|
|
6218
|
11356
|
// Include the widgets
|
|
6219
|
11357
|
//include_once(ABSPATH . 'wp-admin/includes/widgets.php');
|
|
6220
|
11358
|
|
|
6221
|
11359
|
//pagelayer_print($GLOBALS['wp_widget_factory']->widgets);die();
|
|
11360
|
+
|
|
11361
|
+$wp_hidden_shortcode = array('media_audio', 'media_gallery', 'media_image', 'media_video');
|
|
11362
|
+
|
|
11363
|
+foreach($GLOBALS['wp_widget_factory']->widgets as $widget_key => $widget){
|
|
6222
|
11364
|
|
|
6223
|
|
- foreach($GLOBALS['wp_widget_factory']->widgets as $widget_key => $widget){
|
|
6224
|
|
-
|
|
6225
|
|
- pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_'.$widget->id_base, array(
|
|
6226
|
|
- 'name' => $widget->name,
|
|
6227
|
|
- 'group' => 'wordpress',
|
|
6228
|
|
- 'func' => 'pagelayer_does_not_exist',
|
|
6229
|
|
- 'innerHTML' => 'widget_data',
|
|
6230
|
|
- 'widget' => $widget_key
|
|
11365
|
+ $wp_shortcode = array(
|
|
11366
|
+ 'name' => $widget->name,
|
|
11367
|
+ 'group' => 'wordpress',
|
|
11368
|
+ 'no_gt' => 1,
|
|
11369
|
+ 'func' => 'pagelayer_does_not_exist',
|
|
11370
|
+ 'innerHTML' => 'widget_data',
|
|
11371
|
+ 'widget' => $widget_key,
|
|
11372
|
+ 'params'=>array(
|
|
11373
|
+ 'widget_data' => array(
|
|
11374
|
+ 'type' => 'text',
|
|
11375
|
+ 'not_visible' => 1,
|
|
6231
|
11376
|
)
|
|
6232
|
|
- );
|
|
6233
|
|
-
|
|
11377
|
+ )
|
|
11378
|
+ );
|
|
11379
|
+
|
|
11380
|
+ if(in_array($widget->id_base, $wp_hidden_shortcode)){
|
|
11381
|
+ $wp_shortcode['not_visible'] = 1;
|
|
6234
|
11382
|
}
|
|
11383
|
+
|
|
11384
|
+ pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_'.$widget->id_base, $wp_shortcode);
|
|
11385
|
+
|
|
6235
|
11386
|
}
|
|
11387
|
+//}
|
|
6236
|
11388
|
|
|
6237
|
|
-// Its premium
|
|
6238
|
|
-if(defined('PAGELAYER_PREMIUM')){
|
|
6239
|
|
- include_once(dirname(__FILE__).'/premium.php');
|
|
6240
|
|
-}
|
|
11389
|
+// Apply filter to load custom widgets after shortcodes
|
|
11390
|
+do_action('pagelayer_after_add_shortcode');
|