PluginProbe
Page Builder: Pagelayer – Drag and Drop website builder / 2.2.2
Page Builder: Pagelayer – Drag and Drop website builder v2.2.2
2.2.2 2.2.1 2.2.0 2.1.9 2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 trunk 0.9.0 0.9.1 0.9.2 0.9.3 0.9.4 0.9.5 0.9.6 0.9.7 0.9.8 0.9.9 1.0.0 1.0.2 1.0.3 1.0.4 All 130 releases
← All changes | main/shortcodes.php +4118 -459 1.0.4 → 2.2.2 View file →
@@ -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
@@ -262,20 +267,144 @@
262 267 '{{element}} .pagelayer-owl-prev' => 'border-radius: {{val}}% !important;',
263 268 '{{element}} .pagelayer-owl-next' => 'border-radius: {{val}}% !important;',
264 269 ]
265 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 + ),
266 378 ];
267 379
268 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 + ),
269 395 'pager_color' => array(
270 396 'type' => 'color',
271 397 'label' => __pl('color'),
272 - 'css' => ['{{element}} .pagelayer-owl-dot span' => 'background-color: {{val}} !important']
398 + 'css' => ['{{element}} .pagelayer-owl-dot span' => 'background-color: {{val}} !important'],
399 + 'show' => ['dot_state' => ''],
273 400 ),
274 - 'active_pager_color' => array(
401 + 'dot_num_color' => array(
275 402 'type' => 'color',
276 - 'label' => __pl('active_pager_color'),
277 - 'css' => ['{{element}} .pagelayer-owl-dot.active span' => 'background-color: {{val}} !important']
403 + 'label' => __pl('number_color'),
404 + 'css' => ['{{element}} .pagelayer-owl-dot span::before' => 'color:{{val}}'],
405 + 'req' => ['!show_num' => ''],
406 + 'show' => ['dot_state' => ''],
278 407 ),
279 408 'dot_size' => array(
280 409 'type' => 'slider',
281 410 'label' => __pl('dot_size'),
@@ -284,10 +413,157 @@
284 413 'max' => 200,
285 414 'screen' => 1,
286 415 'css' => [
287 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;'
288 564 ]
289 - ),
565 + )
290 566 ];
291 567
292 568 $pagelayer->slider_options = [
293 569 'slide_items' => array(
@@ -292,8 +568,9 @@
292 568 $pagelayer->slider_options = [
293 569 'slide_items' => array(
294 570 'type' => 'spinner',
295 571 'label' => __pl('number_of_items'),
572 + 'np' => 1,
296 573 'min' => 1,
297 574 'step' => 1,
298 575 'max' => 10,
299 576 'default' => 1,
@@ -402,10 +679,10 @@
402 679 'ele_img_color' => [
403 680 'type' => 'color',
404 681 'label' => __pl('color'),
405 682 'default' => '',
406 - 'desc' => __pl('fallback background color if image is failed to load.'),
407 - 'css' => 'background: {{val}};',
683 + 'desc' => __pl('fallback_color'),
684 + 'css' => 'background-color: {{val}};',
408 685 'show' => ['ele_bg_hover' => ''],
409 686 'req' => ['ele_bg_type' => 'image']
410 687 ],
411 688 'ele_bg_img' => [
@@ -410,10 +687,9 @@
410 687 ],
411 688 'ele_bg_img' => [
412 689 'type' => 'image',
413 690 'label' => __pl('Image'),
414 - //'default' => '',
415 - 'css' => 'background: url("{{{ele_bg_img-url}}}");',
691 + 'css' => 'background-image: url("{{{ele_bg_img-url}}}");',
416 692 'show' => ['ele_bg_hover' => ''],
417 693 'req' => ['ele_bg_type' => 'image']
418 694 ],
419 695 'ele_bg_attachment' => [
@@ -507,18 +783,8 @@
507 783 ],
508 784 'show' => ['ele_bg_hover' => ''],
509 785 'req' => ['ele_bg_type' => 'image']
510 786 ],
511 - 'ele_bg_hover_delay' => [
512 - 'type' => 'spinner',
513 - 'label' => __pl('ele_bg_hover_delay'),
514 - 'min' => 0,
515 - 'step' => 100,
516 - 'max' => 5000,
517 - 'default' => 400,
518 - 'css' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;',
519 - 'show' => ['ele_bg_hover' => 'hover']
520 - ],
521 787 'ele_bg_type_hover' => [
522 788 'type' => 'radio',
523 789 'label' => __pl('background_type'),
524 790 'default' => '',
@@ -529,8 +795,19 @@
529 795 'image' => __pl('image'),
530 796 ],
531 797 'show' => ['ele_bg_hover' => 'hover']
532 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 + ],
533 810 'ele_bg_color_hover' => [
534 811 'type' => 'color',
535 812 'label' => __pl('color_hover'),
536 813 'css' => ['{{element}}:hover' => 'background: {{val}};'],
@@ -645,9 +922,9 @@
645 922 ],
646 923 'border_shadow_hover' => [ // This is actually box shadow hover
647 924 'type' => 'box_shadow',
648 925 'label' => __pl('box_shadow_hover'),
649 - 'css' => ['{{element}}:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
926 + 'css' => ['{{element}}:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'],
650 927 ],
651 928 ];
652 929
653 930 $pagelayer->styles['border_styles'] = [
@@ -760,8 +1037,141 @@
760 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]}};'],
761 1038 ],
762 1039 ];
763 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;'],
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 + ],
1172 +];
1173 +
764 1174 $pagelayer->styles['position_styles'] = [
765 1175 'ele_custom_pos' => array(
766 1176 'type' => 'checkbox',
767 1177 'label' => __pl('enable'),
@@ -782,9 +1192,9 @@
782 1192 'type' => 'slider',
783 1193 'label' => __pl('custom_width'),
784 1194 'screen' => 1,
785 1195 'units' => ['px','%','vw'],
786 - 'css' => ['{{wrap}}' => 'width:{{val}};'],
1196 + 'css' => ['{{wrap}}' => 'width:{{val}} !important;'],
787 1197 'min' => 0,
788 1198 'max' => 1000,
789 1199 'step' => 1,
790 1200 'req' => [
@@ -982,8 +1392,655 @@
982 1392 'wobble-bottom' => __pl('Wobble Bottom'),
983 1393 'wobble-skew' => __pl('Wobble Skew'),
984 1394 ],
985 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 + ),
1436 +];
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']
986 2043 )
987 2044 ];
988 2045
989 2046 // Resposive stuff
@@ -1004,8 +2061,19 @@
1004 2061 'addClass' => 'pagelayer-hide-mobile'
1005 2062 ],
1006 2063 ];
1007 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 +
1008 2076 // Custom stuff
1009 2077 $pagelayer->styles['custom_styles'] = [
1010 2078 'ele_id' => [
1011 2079 'type' => 'text',
@@ -1037,16 +2105,16 @@
1037 2105 // ROW object
1038 2106 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_row', array(
1039 2107 'name' => __pl('row'),
1040 2108 'group' => 'grid',
1041 - 'func' => 'pagelayer_sc_row',
1042 2109 'skip_props_cat' => ['position_styles'],
2110 + 'skip_props' => ['ele_sticky_in_container'],
1043 2111 'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
1044 2112 <div if="{{bg_slider}}" class="pagelayer-bgimg-slider">
1045 2113 {{slider}}
1046 2114 </div>
1047 2115 <div if="{{parallax_img}}" class="pagelayer-parallax-window">
1048 - <img class="pagelayer-img" src="{{{parallax_img-url}}}">
2116 + <img class="pagelayer-img" src="{{parallax_img_src}}" title="{{{parallax_img-title}}}" alt="{{{parallax_img-alt}}}">
1049 2117 </div>
1050 2118 <div if="{{row_shape_position}}" class="pagelayer-row-shape">
1051 2119 <div class="pagelayer-row-svg">
1052 2120 <svg if="{{row_shape_type_top}}" class="pagelayer-svg-top">{{svg_top}}</svg>
@@ -1086,8 +2154,9 @@
1086 2154 'label' => __pl('col_gap'),
1087 2155 'default' => 10,
1088 2156 'min' => 0,
1089 2157 'step' => 1,
2158 + 'screen' => 1,
1090 2159 'max' => 1000,
1091 2160 'css' => ['{{element}} .pagelayer-col-holder' => 'padding: {{val}}px;'],
1092 2161 ),
1093 2162 'width_content' => array(
@@ -1101,15 +2170,15 @@
1101 2170 )
1102 2171 ),
1103 2172 'fixed_width' => array(
1104 2173 'type' => 'slider',
1105 - 'label' => __pl('fixed_width'),
2174 + 'label' => __pl('fixed_con_width'),
1106 2175 'default' => 500,
1107 2176 'min' => 1,
1108 2177 'max' => 3000,
1109 2178 'screen' => 1,
1110 2179 'units' => [ 'px', '%', 'vw' ],
1111 - 'css' => ['{{element}} .pagelayer-row-holder' => 'max-width: {{val}}; margin-left: auto; margin-right: auto;'],
2180 + 'css' => ['{{element}}>.pagelayer-row-holder' => 'max-width: {{val}}; margin-left: auto; margin-right: auto;'],
1112 2181 'req' => array(
1113 2182 'width_content' => 'fixed'
1114 2183 )
1115 2184 ),
@@ -1164,13 +2233,67 @@
1164 2233 'label' => __pl('video_src_label'),
1165 2234 'desc' => __pl('video_src_desc'),
1166 2235 'req' => ['row_bg_type' => 'video']
1167 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 + ),
1168 2247 'parallax_img' => array(
1169 2248 'type' => 'image',
1170 2249 'label' => __pl('Image'),
1171 2250 'req' => ['row_bg_type' => 'parallax']
1172 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 + ),
1173 2296 'bg_slider' => array(
1174 2297 'type' => 'multi_image',
1175 2298 'label' => __pl('image_slider_ids_label'),
1176 2299 'req' => ['row_bg_type' => 'slider'],
@@ -1212,9 +2335,9 @@
1212 2335 ),
1213 2336 'overlay_color' => array(
1214 2337 'type' => 'color',
1215 2338 'label' => __pl('color'),
1216 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-color: {{val}};'],
2339 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-color: {{val}};'],
1217 2340 'req' => ['overlay_type' => 'color'],
1218 2341 'show' => ['overlay_state' => ''],
1219 2342 ),
1220 2343 'overlay_gradient' => array(
@@ -1220,9 +2343,9 @@
1220 2343 'overlay_gradient' => array(
1221 2344 'type' => 'gradient',
1222 2345 'label' => '',
1223 2346 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
1224 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
2347 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
1225 2348 'show' => ['overlay_state' => ''],
1226 2349 'req' => ['overlay_type' => 'gradient']
1227 2350 ),
1228 2351 'overlay_img' => array(
@@ -1227,9 +2350,9 @@
1227 2350 ),
1228 2351 'overlay_img' => array(
1229 2352 'type' => 'image',
1230 2353 'label' => __pl('Image'),
1231 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: url("{{{overlay_img-url}}}");'],
2354 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: url("{{{overlay_img-url}}}");'],
1232 2355 'show' => ['overlay_state' => ''],
1233 2356 'req' => ['overlay_type' => 'image']
1234 2357 ),
1235 2358 'overlay_img_attachment' => array(
@@ -1240,9 +2363,9 @@
1240 2363 'scroll' => __pl('scroll'),
1241 2364 'fixed' => __pl('fixed')
1242 2365 ],
1243 2366 'show' => ['overlay_state' => ''],
1244 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
2367 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1245 2368 'req' => ['overlay_type' => 'image']
1246 2369 ),
1247 2370 'overlay_bg_posx' => array(
1248 2371 'type' => 'select',
@@ -1253,9 +2376,9 @@
1253 2376 'left' => __pl('left'),
1254 2377 'right' => __pl('right')
1255 2378 ],
1256 2379 'show' => ['overlay_state' => ''],
1257 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
2380 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1258 2381 'req' => ['overlay_type' => 'image']
1259 2382 ),
1260 2383 'overlay_bg_posy' => array(
1261 2384 'type' => 'select',
@@ -1266,15 +2389,15 @@
1266 2389 'top' => __pl('top'),
1267 2390 'bottom' => __pl('bottom')
1268 2391 ],
1269 2392 'show' => ['overlay_state' => ''],
1270 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
2393 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1271 2394 'req' => ['overlay_type' => 'image']
1272 2395 ),
1273 2396 'overlay_bg_repeat' => array(
1274 2397 'type' => 'select',
1275 2398 'label' => __pl('overlay_bg_repeat'),
1276 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
2399 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1277 2400 'list' => [
1278 2401 '' => __pl('default'),
1279 2402 'repeat' => __pl('repeat'),
1280 2403 'no-repeat' => __pl('no-repeat'),
@@ -1286,9 +2409,9 @@
1286 2409 ),
1287 2410 'overlay_bg_size' => array(
1288 2411 'type' => 'select',
1289 2412 'label' => __pl('overlay_bg_size'),
1290 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-size: {{val}};'],
2413 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1291 2414 'list' => [
1292 2415 '' => __pl('default'),
1293 2416 'cover' => __pl('cover'),
1294 2417 'contain' => __pl('contain')
@@ -1302,9 +2425,9 @@
1302 2425 'default' => 0.5,
1303 2426 'min' => 0,
1304 2427 'max' => 1,
1305 2428 'step' => 0.1,
1306 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'opacity: {{val}};'],
2429 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1307 2430 'req' => array(
1308 2431 '!overlay_type' => '',
1309 2432 ),
1310 2433 'show' => ['overlay_state' => ''],
@@ -1315,9 +2438,9 @@
1315 2438 'min' => 0,
1316 2439 'step' => 100,
1317 2440 'max' => 5000,
1318 2441 'default' => 400,
1319 - '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;'],
1320 2443 'show' => array(
1321 2444 'overlay_state' => 'hover'
1322 2445 ),
1323 2446 ),
@@ -1335,9 +2458,9 @@
1335 2458 'overlay_color_hover' => array(
1336 2459 'type' => 'color',
1337 2460 'label' => __pl('color'),
1338 2461 //'desc' => __pl('video_src_desc'),
1339 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: {{val}};'],
2462 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: {{val}};'],
1340 2463 'req' => ['overlay_type_hover' => 'color'],
1341 2464 'show' => ['overlay_state' => 'hover'],
1342 2465 ),
1343 2466 'overlay_gradient_hover' => array(
@@ -1343,9 +2466,9 @@
1343 2466 'overlay_gradient_hover' => array(
1344 2467 'type' => 'gradient',
1345 2468 'label' => '',
1346 2469 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
1347 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
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]}}%);'],
1348 2471 'show' => ['overlay_state' => 'hover'],
1349 2472 'req' => ['overlay_type_hover' => 'gradient']
1350 2473 ),
1351 2474 'overlay_img_hover' => array(
@@ -1350,9 +2473,9 @@
1350 2473 ),
1351 2474 'overlay_img_hover' => array(
1352 2475 'type' => 'image',
1353 2476 'label' => __pl('Image'),
1354 - '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}}}");'],
1355 2478 'show' => ['overlay_state' => 'hover'],
1356 2479 'req' => ['overlay_type_hover' => 'image']
1357 2480 ),
1358 2481 'overlay_img_attachment_hover' => array(
@@ -1363,9 +2486,9 @@
1363 2486 'scroll' => __pl('scroll'),
1364 2487 'fixed' => __pl('fixed')
1365 2488 ],
1366 2489 'show' => ['overlay_state' => 'hover'],
1367 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
2490 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1368 2491 'req' => ['overlay_type_hover' => 'image']
1369 2492 ),
1370 2493 'overlay_bg_posx_hover' => array(
1371 2494 'type' => 'select',
@@ -1376,9 +2499,9 @@
1376 2499 'left' => __pl('left'),
1377 2500 'right' => __pl('right')
1378 2501 ],
1379 2502 'show' => ['overlay_state' => 'hover'],
1380 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
2503 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1381 2504 'req' => ['overlay_type_hover' => 'image']
1382 2505 ),
1383 2506 'overlay_bg_posy_hover' => array(
1384 2507 'type' => 'select',
@@ -1389,15 +2512,15 @@
1389 2512 'top' => __pl('top'),
1390 2513 'bottom' => __pl('bottom')
1391 2514 ],
1392 2515 'show' => ['overlay_state' => 'hover'],
1393 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
2516 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1394 2517 'req' => ['overlay_type_hover' => 'image']
1395 2518 ),
1396 2519 'overlay_bg_repeat_hover' => array(
1397 2520 'type' => 'select',
1398 2521 'label' => __pl('overlay_bg_repeat_hover'),
1399 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
2522 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1400 2523 'list' => [
1401 2524 '' => __pl('default'),
1402 2525 'repeat' => __pl('repeat'),
1403 2526 'no-repeat' => __pl('no-repeat'),
@@ -1409,9 +2532,9 @@
1409 2532 ),
1410 2533 'overlay_bg_size_hover' => array(
1411 2534 'type' => 'select',
1412 2535 'label' => __pl('overlay_bg_size_hover'),
1413 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-size: {{val}};'],
2536 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1414 2537 'list' => [
1415 2538 '' => __pl('default'),
1416 2539 'cover' => __pl('cover'),
1417 2540 'contain' => __pl('contain')
@@ -1424,9 +2547,9 @@
1424 2547 'label' => __pl('overlay_transperancy_hover'),
1425 2548 'min' => 0,
1426 2549 'max' => 1,
1427 2550 'step' => 0.1,
1428 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'opacity: {{val}};'],
2551 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1429 2552 'req' => array(
1430 2553 'overlay_type' => 'image',
1431 2554 'overlay_type' => 'color'
1432 2555 ),
@@ -1467,9 +2590,9 @@
1467 2590 ),
1468 2591 'row_shape_top_color' => array(
1469 2592 'type' => 'color',
1470 2593 'label' => __pl('shape_bg_color'),
1471 - 'default' => '#fff',
2594 + 'default' => '#227bc3',
1472 2595 'css' => ['{{element}} .pagelayer-svg-top .pagelayer-shape-fill' => 'fill:{{val}}'],
1473 2596 'show' => ['row_shape_position' => 'top'],
1474 2597 ),
1475 2598 'row_shape_top_width' => array(
@@ -1523,9 +2646,9 @@
1523 2646 ),
1524 2647 'row_shape_bottom_color' => array(
1525 2648 'type' => 'color',
1526 2649 'label' => __pl('shape_bg_color'),
1527 - 'default' => '#fff',
2650 + 'default' => '#e44993',
1528 2651 'css' => ['{{element}} .pagelayer-svg-bottom .pagelayer-shape-fill' => 'fill:{{val}}'],
1529 2652 'show' => ['row_shape_position' => 'bottom'],
1530 2653 ),
1531 2654 'row_shape_bottom_width' => array(
@@ -1567,16 +2690,16 @@
1567 2690 // Column object
1568 2691 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_col', array(
1569 2692 'name' => __pl('column'),
1570 2693 'group' => 'grid',
1571 - 'func' => 'pagelayer_sc_col',
1572 2694 'skip_props_cat' => ['position_styles'],
2695 + 'skip_props' => ['ele_sticky_in_container'],
1573 2696 'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
1574 2697 <div if="{{bg_slider}}" class="pagelayer-bgimg-slider">
1575 2698 {{slider}}
1576 2699 </div>
1577 2700 <div if="{{parallax_img}}" class="pagelayer-parallax-window">
1578 - <img class="pagelayer-img" src="{{{parallax_img-url}}}">
2701 + <img class="pagelayer-img" src="{{parallax_img_src}}" title="{{{parallax_img-title}}}" alt="{{{parallax_img-alt}}}">
1579 2702 </div>
1580 2703 <div if="{{overlay_type}}" class="pagelayer-background-overlay"></div>
1581 2704 <div class="pagelayer-col-holder"></div>',
1582 2705 'holder' => '.pagelayer-col-holder',
@@ -1626,9 +2749,10 @@
1626 2749 'label' => __pl('width_custom'),
1627 2750 'min' => 0,
1628 2751 'step' => 1,
1629 2752 'max' => 100,
1630 - 'css' => ( !pagelayer_is_live() ? 'width: {{val}}%;' : '' ),
2753 + 'screen' => 1,
2754 + 'css' =>['.pagelayer-row-holder {{wrap}}' => 'width: {{val}}%;'],
1631 2755 'req' => ['col' => ''],
1632 2756 ),
1633 2757 ),
1634 2758 'col_bg_styles' => [
@@ -1647,13 +2771,67 @@
1647 2771 'label' => __pl('video_src_label'),
1648 2772 'desc' => __pl('video_src_desc'),
1649 2773 'req' => ['col_bg_type' => 'video']
1650 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 + ),
1651 2785 'parallax_img' => array(
1652 2786 'type' => 'image',
1653 2787 'label' => __pl('Image'),
1654 2788 'req' => ['col_bg_type' => 'parallax']
1655 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 + ),
1656 2834 'bg_slider' => array(
1657 2835 'type' => 'multi_image',
1658 2836 'label' => __pl('image_slider_ids_label'),
1659 2837 'req' => ['col_bg_type' => 'slider'],
@@ -1696,9 +2874,9 @@
1696 2874 'overlay_color' => array(
1697 2875 'type' => 'color',
1698 2876 'label' => __pl('color'),
1699 2877 //'desc' => __pl('video_src_desc'),
1700 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-color: {{val}};'],
2878 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-color: {{val}};'],
1701 2879 'req' => ['overlay_type' => 'color'],
1702 2880 'show' => ['overlay_state' => ''],
1703 2881 ),
1704 2882 'overlay_gradient' => array(
@@ -1704,9 +2882,9 @@
1704 2882 'overlay_gradient' => array(
1705 2883 'type' => 'gradient',
1706 2884 'label' => '',
1707 2885 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
1708 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
2886 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
1709 2887 'show' => ['overlay_state' => ''],
1710 2888 'req' => ['overlay_type' => 'gradient']
1711 2889 ),
1712 2890 'overlay_img' => array(
@@ -1711,9 +2889,9 @@
1711 2889 ),
1712 2890 'overlay_img' => array(
1713 2891 'type' => 'image',
1714 2892 'label' => __pl('Image'),
1715 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: url("{{{overlay_img-url}}}");'],
2893 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: url("{{{overlay_img-url}}}");'],
1716 2894 'show' => ['overlay_state' => ''],
1717 2895 'req' => ['overlay_type' => 'image']
1718 2896 ),
1719 2897 'overlay_img_attachment' => array(
@@ -1724,9 +2902,9 @@
1724 2902 'scroll' => __pl('scroll'),
1725 2903 'fixed' => __pl('fixed')
1726 2904 ],
1727 2905 'show' => ['overlay_state' => ''],
1728 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
2906 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1729 2907 'req' => ['overlay_type' => 'image']
1730 2908 ),
1731 2909 'overlay_bg_posx' => array(
1732 2910 'type' => 'select',
@@ -1737,9 +2915,9 @@
1737 2915 'left' => __pl('left'),
1738 2916 'right' => __pl('right')
1739 2917 ],
1740 2918 'show' => ['overlay_state' => ''],
1741 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
2919 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1742 2920 'req' => ['overlay_type' => 'image']
1743 2921 ),
1744 2922 'overlay_bg_posy' => array(
1745 2923 'type' => 'select',
@@ -1750,15 +2928,15 @@
1750 2928 'top' => __pl('top'),
1751 2929 'bottom' => __pl('bottom')
1752 2930 ],
1753 2931 'show' => ['overlay_state' => ''],
1754 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
2932 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1755 2933 'req' => ['overlay_type' => 'image']
1756 2934 ),
1757 2935 'overlay_bg_repeat' => array(
1758 2936 'type' => 'select',
1759 2937 'label' => __pl('overlay_bg_repeat'),
1760 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
2938 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1761 2939 'list' => [
1762 2940 '' => __pl('default'),
1763 2941 'repeat' => __pl('repeat'),
1764 2942 'no-repeat' => __pl('no-repeat'),
@@ -1770,9 +2948,9 @@
1770 2948 ),
1771 2949 'overlay_bg_size' => array(
1772 2950 'type' => 'select',
1773 2951 'label' => __pl('overlay_bg_size'),
1774 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-size: {{val}};'],
2952 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1775 2953 'list' => [
1776 2954 '' => __pl('default'),
1777 2955 'cover' => __pl('cover'),
1778 2956 'contain' => __pl('contain')
@@ -1786,9 +2964,9 @@
1786 2964 'default' => 0.5,
1787 2965 'min' => 0,
1788 2966 'max' => 1,
1789 2967 'step' => 0.1,
1790 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'opacity: {{val}};'],
2968 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1791 2969 'req' => array(
1792 2970 '!overlay_type' => '',
1793 2971 ),
1794 2972 'show' => ['overlay_state' => ''],
@@ -1799,9 +2977,9 @@
1799 2977 'min' => 0,
1800 2978 'step' => 100,
1801 2979 'max' => 5000,
1802 2980 'default' => 400,
1803 - '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;'],
1804 2982 'show' => array(
1805 2983 'overlay_state' => 'hover'
1806 2984 ),
1807 2985 ),
@@ -1819,9 +2997,9 @@
1819 2997 'overlay_color_hover' => array(
1820 2998 'type' => 'color',
1821 2999 'label' => __pl('color'),
1822 3000 //'desc' => __pl('video_src_desc'),
1823 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: {{val}};'],
3001 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: {{val}};'],
1824 3002 'req' => ['overlay_type_hover' => 'color'],
1825 3003 'show' => ['overlay_state' => 'hover'],
1826 3004 ),
1827 3005 'overlay_gradient_hover' => array(
@@ -1827,9 +3005,9 @@
1827 3005 'overlay_gradient_hover' => array(
1828 3006 'type' => 'gradient',
1829 3007 'label' => '',
1830 3008 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
1831 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
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]}}%);'],
1832 3010 'show' => ['overlay_state' => 'hover'],
1833 3011 'req' => ['overlay_type_hover' => 'gradient']
1834 3012 ),
1835 3013 'overlay_img_hover' => array(
@@ -1834,9 +3012,9 @@
1834 3012 ),
1835 3013 'overlay_img_hover' => array(
1836 3014 'type' => 'image',
1837 3015 'label' => __pl('Image'),
1838 - '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}}}");'],
1839 3017 'show' => ['overlay_state' => 'hover'],
1840 3018 'req' => ['overlay_type_hover' => 'image']
1841 3019 ),
1842 3020 'overlay_img_attachment_hover' => array(
@@ -1847,9 +3025,9 @@
1847 3025 'scroll' => __pl('scroll'),
1848 3026 'fixed' => __pl('fixed')
1849 3027 ],
1850 3028 'show' => ['overlay_state' => 'hover'],
1851 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
3029 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1852 3030 'req' => ['overlay_type_hover' => 'image']
1853 3031 ),
1854 3032 'overlay_bg_posx_hover' => array(
1855 3033 'type' => 'select',
@@ -1860,9 +3038,9 @@
1860 3038 'left' => __pl('left'),
1861 3039 'right' => __pl('right')
1862 3040 ],
1863 3041 'show' => ['overlay_state' => 'hover'],
1864 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
3042 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1865 3043 'req' => ['overlay_type_hover' => 'image']
1866 3044 ),
1867 3045 'overlay_bg_posy_hover' => array(
1868 3046 'type' => 'select',
@@ -1873,15 +3051,15 @@
1873 3051 'top' => __pl('top'),
1874 3052 'bottom' => __pl('bottom')
1875 3053 ],
1876 3054 'show' => ['overlay_state' => 'hover'],
1877 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
3055 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1878 3056 'req' => ['overlay_type_hover' => 'image']
1879 3057 ),
1880 3058 'overlay_bg_repeat_hover' => array(
1881 3059 'type' => 'select',
1882 3060 'label' => __pl('overlay_bg_repeat_hover'),
1883 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
3061 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1884 3062 'list' => [
1885 3063 '' => __pl('default'),
1886 3064 'repeat' => __pl('repeat'),
1887 3065 'no-repeat' => __pl('no-repeat'),
@@ -1893,9 +3071,9 @@
1893 3071 ),
1894 3072 'overlay_bg_size_hover' => array(
1895 3073 'type' => 'select',
1896 3074 'label' => __pl('overlay_bg_size_hover'),
1897 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-size: {{val}};'],
3075 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1898 3076 'list' => [
1899 3077 '' => __pl('default'),
1900 3078 'cover' => __pl('cover'),
1901 3079 'contain' => __pl('contain')
@@ -1909,9 +3087,9 @@
1909 3087 'default' => 0.5,
1910 3088 'min' => 0,
1911 3089 'max' => 1,
1912 3090 'step' => 0.1,
1913 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'opacity: {{val}};'],
3091 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1914 3092 'req' => array(
1915 3093 '!overlay_type_hover' => '',
1916 3094 ),
1917 3095 'show' => ['overlay_state' => 'hover'],
@@ -1931,11 +3109,10 @@
1931 3109 // Heading object
1932 3110 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_heading', array(
1933 3111 'name' => __pl('title'),
1934 3112 'group' => 'text',
1935 - 'func' => 'pagelayer_sc_heading',
1936 3113 'innerHTML' => 'text',
1937 - 'html' => '<a if-ext="{{link}}" href="{{link}}">
3114 + 'html' => '<a if-ext="{{link}}" href="{{{link}}}" class="pagelayer-link-sel">
1938 3115 <div if={{text}} class="pagelayer-heading-holder">{{text}}</div>
1939 3116 </a>',
1940 3117 'params' => array(
1941 3118 'text' => array(
@@ -1942,23 +3119,16 @@
1942 3119 'type' => 'textarea',
1943 3120 'label' => __pl('Edit Title'),
1944 3121 'default' => '<h2>Your Heading</h2>',
1945 3122 'desc' => __pl('Edit the heading here'),
3123 + 'e' => [ 'v', 'h', 'f', 'c', 'r'],
1946 3124 'edit' => '.pagelayer-heading-holder', // Edit the text and also mirror the same
1947 3125 ),
1948 3126 'link' => array(
3127 + 'type' => 'link',
1949 3128 'label' => __pl('image_link_label'),
1950 - 'desc' => __pl('image_link_desc'),
1951 - 'type' => 'link',
3129 + 'selector' => '.pagelayer-link-sel'
1952 3130 ),
1953 - 'target' => array(
1954 - 'label' => __pl('open_link_in_new_window'),
1955 - 'type' => 'checkbox',
1956 - 'addAttr' => ['{{element}} a' => 'target="_blank"'],
1957 - 'req' => array(
1958 - '!link' => ''
1959 - )
1960 - ),
1961 3131 'align' => array(
1962 3132 'label' => __pl('obj_align_label'),
1963 3133 'type' => 'radio',
1964 3134 'addAttr' => 'align="{{align}}"',
@@ -1973,9 +3143,9 @@
1973 3143 ),
1974 3144 'heading_styles' => [
1975 3145 'heading_state' => array(
1976 3146 'type' => 'radio',
1977 - 'label' => 'state',
3147 + 'label' => __pl('state'),
1978 3148 'default' => 'normal',
1979 3149 'list' => array(
1980 3150 'normal' => __pl('normal'),
1981 3151 'hover' => __pl('hover'),
@@ -1983,9 +3153,8 @@
1983 3153 ),
1984 3154 'color' => array(
1985 3155 'type' => 'color',
1986 3156 'label' => __pl('color'),
1987 - 'default' => '#111111',
1988 3157 'css' => ['{{element}} .pagelayer-heading-holder *' => 'color:{{val}}', '{{element}} .pagelayer-heading-holder' => 'color:{{val}}'],
1989 3158 'show' => ['heading_state' => 'normal']
1990 3159 ),
1991 3160 'heading_typo' => array(
@@ -1990,9 +3159,8 @@
1990 3159 ),
1991 3160 'heading_typo' => array(
1992 3161 'type' => 'typography',
1993 3162 'label' => __pl('typography'),
1994 - 'screen' => 1,
1995 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;',
1996 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;'],
1997 3165 'show' => ['heading_state' => 'normal']
1998 3166 ),
@@ -2010,9 +3178,8 @@
2010 3178 ),
2011 3179 'heading_typo_hover' => array(
2012 3180 'type' => 'typography',
2013 3181 'label' => __pl('typography'),
2014 - 'screen' => 1,
2015 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;',
2016 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;'],
2017 3184 'show' => ['heading_state' => 'hover']
2018 3185 ),
@@ -2032,9 +3199,8 @@
2032 3199 // Rich Text object
2033 3200 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_text', array(
2034 3201 'name' => __pl('Rich Text'),
2035 3202 'group' => 'text',
2036 - 'func' => 'pagelayer_sc_code',
2037 3203 'innerHTML' => 'text',
2038 3204 'html' => '<div class="pagelayer-text-holder">{{text}}</div>',
2039 3205 'params' => array(
2040 3206 'text' => array(
@@ -2039,10 +3205,11 @@
2039 3205 'params' => array(
2040 3206 'text' => array(
2041 3207 'type' => 'editor',
2042 3208 'label' => __pl('Edit Rich Text'),
2043 - 'default' => 'Lorem ipsum dolor sit amet',
2044 - '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'),
2045 3212 'edit' => '.pagelayer-text-holder', // Edit the text and also mirror the same
2046 3213 )
2047 3214 )
2048 3215 )
@@ -2060,14 +3227,13 @@
2060 3227 {{quote_content}}
2061 3228 <i if="{{double_indent}}" class="fa fa-quote-right"></i>
2062 3229 </div>
2063 3230 <div if="{{cite}}" class="pagelayer-quote-cite">
2064 - <a if-ext="{{cite_url}}" href="{{cite_url}}">
3231 + <a if-ext="{{cite_url}}" href="{{{cite_url}}}" class="pagelayer-link-sel">
2065 3232 <span class="pagelayer-cite-holder">{{cite}}</span>
2066 3233 </a>
2067 3234 </div>
2068 3235 </div>',
2069 - 'func' => 'pagelayer_sc_quote',
2070 3236 'params' => array(
2071 3237 'quote_content' => array(
2072 3238 'type' => 'textarea',
2073 3239 'label' => __pl('quotes_content_label'),
@@ -2085,12 +3251,17 @@
2085 3251 'label' => __pl('quotes_content_color_label'),
2086 3252 'default' => '#050505',
2087 3253 'css' => ['{{element}} .pagelayer-quote-content' => 'color:{{val}}'],
2088 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 + ),
2089 3261 'quote_content_typo' => array(
2090 3262 'type' => 'typography',
2091 3263 'label' => __pl('quote_content_typo'),
2092 - 'screen' => 1,
2093 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;'],
2094 3265 ),
2095 3266 ),
2096 3267 'qoute_styles' => [
@@ -2126,9 +3297,9 @@
2126 3297 'step' => 1,
2127 3298 'max' => 1000,
2128 3299 'default' => 70,
2129 3300 'screen' => 1,
2130 - 'css' => ['{{element}} i' => 'font-size: {{val}}px;'],
3301 + 'css' => ['{{element}} .fa' => 'font-size: {{val}}px;'],
2131 3302 'req' => array(
2132 3303 'quote_style' => ['quotation','double']
2133 3304 )
2134 3305 ),
@@ -2135,9 +3306,9 @@
2135 3306 'quotation_color' => array(
2136 3307 'type' => 'color',
2137 3308 'label' => __pl('quotation_color_label'),
2138 3309 'default' => '#dadada',
2139 - 'css' => ['{{element}} i' => 'color:{{val}}'],
3310 + 'css' => ['{{element}} .fa' => 'color:{{val}}'],
2140 3311 'req' => array(
2141 3312 'quote_style' => ['quotation','double']
2142 3313 )
2143 3314 ),
@@ -2205,8 +3376,9 @@
2205 3376 ),
2206 3377 'cite_url' => array(
2207 3378 'type' => 'link',
2208 3379 'label' => __pl('quotes_url_label'),
3380 + 'selector' => '.pagelayer-link-sel',
2209 3381 'desc' => __pl('quotes_url_desc'),
2210 3382 ),
2211 3383 'cite_text_color' => array(
2212 3384 'type' => 'color',
@@ -2213,13 +3385,24 @@
2213 3385 'label' => __pl('quotes_cite_color_label'),
2214 3386 'default' => '#3f3f3f',
2215 3387 'css' => ['{{element}} .pagelayer-quote-cite span' => 'color:{{val}}']
2216 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 + ),
2217 3401 'cite_typo' => array(
2218 3402 'type' => 'typography',
2219 3403 'label' => __pl('cite_typo'),
2220 3404 'default' => ',16,italic,,,,solid,,,,',
2221 - 'screen' => 1,
2222 3405 'css' => ['{{element}} .pagelayer-quote-cite' => '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;'],
2223 3406 )
2224 3407 ],
2225 3408 'border_style' => [
@@ -2271,12 +3454,12 @@
2271 3454 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list_item', array(
2272 3455 'name' => __pl('list_item'),
2273 3456 'group' => 'text',
2274 3457 'not_visible' => 1,
2275 - 'func' => 'pagelayer_sc_list_item',
3458 + 'parent' => [PAGELAYER_SC_PREFIX.'_list'],
2276 3459 'innerHTML' => 'item',
2277 3460 'html' => '<li if="{{item}}" class="pagelayer-list-li">
2278 - <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}}}">
2279 3462 <span class="pagelayer-list-icon-holder">
2280 3463 <i if="{{show_icon}}" class="pagelayer-list-icon {{icon}}"></i>
2281 3464 <span if="{{item}}" class="pagelayer-list-item">{{item}}</span>
2282 3465 </span>
@@ -2286,13 +3469,14 @@
2286 3469 'item' => array(
2287 3470 'type' => 'text',
2288 3471 'label' => __pl('list_items_label'),
2289 3472 'default' => __pl('list_items_default'),
3473 + 'edit' => '.pagelayer-list-item',
2290 3474 ),
2291 3475 'item_url' => array(
2292 - 'type' => 'text',
3476 + 'type' => 'link',
2293 3477 'label' => __pl('list_item_url_label'),
2294 - 'default' => ''
3478 + 'selector' => '.pagelayer-list-url',
2295 3479 ),
2296 3480 'show_icon' => array(
2297 3481 'type' => 'checkbox',
2298 3482 'label' => __pl('list_show_icon'),
@@ -2313,9 +3497,8 @@
2313 3497 // List
2314 3498 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
2315 3499 'name' => __pl('list'),
2316 3500 'group' => 'text',
2317 - 'func' => 'pagelayer_sc_list',
2318 3501 'has_group' => [
2319 3502 'section' => 'params',
2320 3503 'prop' => 'elements'
2321 3504 ],
@@ -2399,9 +3582,8 @@
2399 3582 ),
2400 3583 'list_typo' => array(
2401 3584 'type' => 'typography',
2402 3585 'label' => __pl('list_typo'),
2403 - 'screen' => 1,
2404 3586 'css' => [
2405 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;',
2406 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;'
2407 3589 ],
@@ -2441,9 +3623,8 @@
2441 3623 ),
2442 3624 'list_typo_hover' => array(
2443 3625 'type' => 'typography',
2444 3626 'label' => __pl('list_typo'),
2445 - 'screen' => 1,
2446 3627 'css' => [
2447 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;',
2448 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;'
2449 3630 ],
@@ -2462,10 +3643,10 @@
2462 3643 ),
2463 3644 'icon_color' => array(
2464 3645 'type' => 'color',
2465 3646 'label' => __pl('list_icon_color_label'),
2466 - 'default' => '#3E8EF7',
2467 - 'css' => ['{{element}} i' => 'color:{{val}}'],
3647 + 'default' => '#0986c0',
3648 + 'css' => ['{{element}} .pagelayer-list-icon' => 'color:{{val}}'],
2468 3649 'show' => ['list_icon_state' => 'normal'],
2469 3650 ),
2470 3651 'icon_size' => array(
2471 3652 'type' => 'slider',
@@ -2473,9 +3654,9 @@
2473 3654 'min' => 0,
2474 3655 'step' => 1,
2475 3656 'max' => 150,
2476 3657 'screen' => 1,
2477 - 'css' => ['{{element}} i' => 'font-size: {{val}}px'],
3658 + 'css' => ['{{element}} .pagelayer-list-icon' => 'font-size: {{val}}px'],
2478 3659 'show' => ['list_icon_state' => 'normal'],
2479 3660 ),
2480 3661 'icon_hover_delay' => array(
2481 3662 'type' => 'spinner',
@@ -2482,15 +3663,15 @@
2482 3663 'label' => __pl('delay'),
2483 3664 'min' => 0,
2484 3665 'step' => 100,
2485 3666 'max' => 5000,
2486 - 'css' => ['{{element}} i' => 'transition: all {{val}}ms;'],
3667 + 'css' => ['{{element}} .pagelayer-list-icon' => 'transition: all {{val}}ms;'],
2487 3668 'show' =>['list_icon_state' => 'hover']
2488 3669 ),
2489 3670 'icon_color_hover' => array(
2490 3671 'type' => 'color',
2491 3672 'label' => __pl('list_icon_color_label'),
2492 - 'css' => ['{{element}} .pagelayer-list-ul > div:hover i' => 'color:{{val}}'],
3673 + 'css' => ['{{element}} .pagelayer-list-ul > div:hover .pagelayer-list-icon' => 'color:{{val}}'],
2493 3674 'show' => ['list_icon_state' => 'hover'],
2494 3675 ),
2495 3676 'icon_size_hover' => array(
2496 3677 'type' => 'slider',
@@ -2498,9 +3679,9 @@
2498 3679 'min' => 0,
2499 3680 'step' => 1,
2500 3681 'max' => 150,
2501 3682 'screen' => 1,
2502 - 'css' => ['{{element}} .pagelayer-list-ul > div:hover i' => 'font-size: {{val}}px'],
3683 + 'css' => ['{{element}} .pagelayer-list-ul > div:hover .pagelayer-list-icon' => 'font-size: {{val}}px'],
2503 3684 'show' => ['list_icon_state' => 'hover'],
2504 3685 ),
2505 3686 ],
2506 3687 'divider' => [
@@ -2534,9 +3715,9 @@
2534 3715 'step' => 1,
2535 3716 'max' => 100,
2536 3717 'default' => 3,
2537 3718 'screen' => 1,
2538 - 'css' => ['{{element}} .pagelayer-list-ul > div' => 'border-bottom-width: {{val[0]}}px;'],
3719 + 'css' => ['{{element}} .pagelayer-list-ul > div' => 'border-bottom-width: {{val}}px;'],
2539 3720 'req' => [
2540 3721 '!icon_border_type' => ''
2541 3722 ]
2542 3723 ),
@@ -2552,11 +3733,10 @@
2552 3733 // Icon
2553 3734 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2554 3735 'name' => __pl('icon'),
2555 3736 'group' => 'text',
2556 - 'func' => 'pagelayer_sc_icon',
2557 3737 'html' => '<div class="pagelayer-icon-holder">
2558 - <a if-ext="{{link}}" class="pagelayer-ele-link" href="{{link}}">
3738 + <a if-ext="{{link}}" class="pagelayer-ele-link" href="{{{link}}}">
2559 3739 <i class="{{icon}} {{bg_shape}} {{icon_size}} pagelayer-animation-{{anim_hover}}"></i>
2560 3740 </a>
2561 3741 </div>',
2562 3742 'params' => array(
@@ -2577,15 +3757,10 @@
2577 3757 ),
2578 3758 'link' => array(
2579 3759 'type' => 'link',
2580 3760 'label' => __pl('icon_link_field_label'),
2581 - 'default' => ''
3761 + 'selector' => '.pagelayer-ele-link'
2582 3762 ),
2583 - 'target' => array(
2584 - 'type' => 'checkbox',
2585 - 'label' => __pl('open_link_in_new_window'),
2586 - 'addAttr' => ['{{element}} a' => 'target="_blank"']
2587 - ),
2588 3763 'icon_alignment' => array(
2589 3764 'type' => 'radio',
2590 3765 'label' => __pl('alignment'),
2591 3766 'default' => 'center',
@@ -2612,9 +3787,9 @@
2612 3787 'type' => 'color',
2613 3788 'label' => __pl('service_box_icon_color_label'),
2614 3789 'css' => ['{{element}} i' => 'height: 1em; width: 1em; position: relative; color: {{val}};',
2615 3790 '{{element}} i:before' => 'position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);'],
2616 - 'default' => '#3e8ef7',
3791 + 'default' => '#0986c0',
2617 3792 'show' => array(
2618 3793 'icon_hover' => ''
2619 3794 ),
2620 3795 ),
@@ -2861,9 +4036,9 @@
2861 4036 ),
2862 4037 'icon_border_color' => array(
2863 4038 'type' => 'color',
2864 4039 'label' => __pl('service_box_icon_border_color_label'),
2865 - 'default' => '#3e8ef7',
4040 + 'default' => '#0986c0',
2866 4041 'css' => ['{{element}} i' => 'border-color: {{val}};'],
2867 4042 'req' => array(
2868 4043 '!icon_border_type' => ''
2869 4044 ),
@@ -2914,9 +4089,9 @@
2914 4089 'icon_border_color_hover' => array(
2915 4090 'type' => 'color',
2916 4091 'label' => __pl('service_box_icon_border_color_label'),
2917 4092 'css' => ['{{element}} i:hover' => 'border-color: {{val}};'],
2918 - 'default' => '#3e8ef7',
4093 + 'default' => '#0986c0',
2919 4094 'req' => array(
2920 4095 '!icon_border_type_hover' => ''
2921 4096 ),
2922 4097 'show' => array(
@@ -2958,20 +4133,19 @@
2958 4133 // Badge
2959 4134 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_badge', array(
2960 4135 'name' => __pl('Badge'),
2961 4136 'group' => 'text',
2962 - 'func' => 'pagelayer_sc_badge',
2963 4137 'innerHTML' => 'title',
2964 4138 'html' => '<div class="pagelayer-badge-span">
2965 4139 <span if="{{text}}" class="pagelayer-badge-text">{{text}}</span>
2966 - <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}}}">
2967 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>
2968 4142 </a>
2969 4143 </div>
2970 - <a if-ext="{{badge_url}}" class="pagelayer-ele-link" href="{{badge_url}}">
2971 - <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}}">
2972 4146 <span if="{{text}}" class="pagelayer-badge-text">{{text}}</span>
2973 - <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>
2974 4148 </button>
2975 4149 </a>',
2976 4150 'params' => array(
2977 4151 'badge_text' => array(
@@ -2976,14 +4150,15 @@
2976 4150 'params' => array(
2977 4151 'badge_text' => array(
2978 4152 'type' => 'text',
2979 4153 'label' => __pl('badge_text'),
2980 - 'default' => 'Badge',
4154 + 'default' => 'Badge',
4155 + 'edit' => '.pagelayer-badge-title',
2981 4156 ),
2982 4157 'badge_url' => array(
2983 4158 'type' => 'link',
2984 4159 'label' => __pl('badge_url_label'),
2985 - 'default' => '',
4160 + 'selector' => '.pagelayer-ele-link',
2986 4161 ),
2987 4162 'badge_notification_type' => array(
2988 4163 'type' => 'select',
2989 4164 'label' => __pl('badge_notification_type'),
@@ -2999,8 +4174,46 @@
2999 4174 'dark' => __pl('Dark'),
3000 4175 'custom' => __pl('Custom'),
3001 4176 ],
3002 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 + ),
3003 4216 'badge_style_type' => array(
3004 4217 'type' => 'select',
3005 4218 'label' => __pl('badge_style'),
3006 4219 'default' => 'normal',
@@ -3028,20 +4241,36 @@
3028 4241 'text' => array(
3029 4242 'type' => 'text',
3030 4243 'label' => __pl('text'),
3031 4244 'default' => 'Your custom text',
4245 + 'edit' => '.pagelayer-badge-text',
3032 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 + ),
3033 4256 'text_color' => array(
3034 4257 'type' => 'color',
3035 4258 'label' => __pl('badge_text_color_label'),
3036 4259 'default' => '#000000',
3037 - 'css' => ['{{element}} .pagelayer-badge-text' => 'color:{{val}};'],
4260 + 'css' => ['{{element}} .pagelayer-badge-text' => 'color:{{val}};'],
4261 + 'show' => ['text_state' => '']
3038 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 + ),
3039 4269 'text_style' => array(
3040 4270 'type' => 'typography',
3041 4271 'label' => __pl('text_size'),
3042 4272 'default' => ',25,,400,,,,,,,',
3043 - 'screen' => 1,
3044 4273 'css' => ['{{element}} .pagelayer-badge-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;'],
3045 4274 ),
3046 4275 ],
3047 4276 'badge_style' => [
@@ -3163,15 +4392,14 @@
3163 4392 // Tooltip
3164 4393 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tooltip', array(
3165 4394 'name' => __pl('Tooltip'),
3166 4395 'group' => 'text',
3167 - 'func' => 'pagelayer_sc_tooltip',
3168 4396 'innerHTML' => 'tooltip_text',
3169 4397 'html' => '<div class="pagelayer-tooltip-container">
3170 4398 <span if="{{tooltip_icon}}" class="pagelayer-tooltip-icon"><i class="{{tooltip_icon}}"></i></span>
3171 4399 <span if="{{text}}" class="pagelayer-tooltip-title">{{text}}</span>
3172 4400 <div if="{{tooltip_text}}" class="pagelayer-tooltip-text pagelayer-tooltip-{{tooltip_position}}">
3173 - <span>{{tooltip_text}}</span>
4401 + {{tooltip_text}}
3174 4402 </div>
3175 4403 </div>',
3176 4404 'params' => array(
3177 4405 'text' => array(
@@ -3183,9 +4411,9 @@
3183 4411 'tooltip_text' => array(
3184 4412 'type' => 'editor',
3185 4413 'label' => __pl('tooltip_text'),
3186 4414 'default' => 'Hey there, I have an amazing tooltip !',
3187 - 'edit' => '.pagelayer-tooltip',
4415 + 'edit' => '.pagelayer-tooltip-text',
3188 4416 ),
3189 4417 ),
3190 4418 'text_style' => [
3191 4419 'tooltip_align' => array(
@@ -3208,9 +4436,8 @@
3208 4436 'text_size' => array(
3209 4437 'type' => 'typography',
3210 4438 'label' => __pl('tooltip_title_size'),
3211 4439 'default' => ',25,,400,,,,,,,',
3212 - 'screen' => 1,
3213 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;',
3214 4441 '{{element}} .pagelayer-tooltip-icon i' => 'font-size: {{val[1]}}px !important;'],
3215 4442 ),
3216 4443 'tooltip_text_shadow' => array(
@@ -3270,15 +4497,14 @@
3270 4497 'tooltip_text_size' => array(
3271 4498 'type' => 'typography',
3272 4499 'label' => __pl('tooltip_text_size'),
3273 4500 'default' => ',18,,400,,,,,,,',
3274 - 'screen' => 1,
3275 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;'],
3276 4502 ),
3277 4503 'tooltip_shadow' => array(
3278 4504 'type' => 'box_shadow',
3279 4505 'label' => __pl('tooltip_shadow'),
3280 - '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]}};'],
3281 4507 ),
3282 4508 ],
3283 4509 'icon_style' => [
3284 4510 'show_icon' => array(
@@ -3295,9 +4521,9 @@
3295 4521 ),
3296 4522 'icon_color' => array(
3297 4523 'type' => 'color',
3298 4524 'label' => __pl('tooltip_icon_color'),
3299 - 'default' => '#3E8EF7',
4525 + 'default' => '#0986c0',
3300 4526 'css' => ['{{element}} .pagelayer-tooltip-icon' => 'color:{{val}};'],
3301 4527 'req' => array(
3302 4528 'show_icon' => 'true',
3303 4529 )
@@ -3344,13 +4570,12 @@
3344 4570 // Image
3345 4571 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image', array(
3346 4572 'name' => __pl('image'),
3347 4573 'group' => 'image',
3348 - 'func' => 'pagelayer_sc_image',
3349 4574 'innerHTML' => 'text',
3350 - 'html' => '<div class="pagelayer-image-holder">
4575 + 'html' => '<div class="pagelayer-image-holder pagelayer-anim-par">
3351 4576 <a if-ext="{{link_type}}" class="pagelayer-ele-link" href="{{func_link}}" pagelayer-image-link-type="{{link_type}}">
3352 - <img class="pagelayer-img pagelayer-animation-{{anim_hover}}" 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}}" />
3353 4578 <div if="{{overlay}}" class="pagelayer-image-overlay {{content_position}}">
3354 4579 <div class="pagelayer-image-overlay-content">
3355 4580 <i if="{{icon}}" class="pagelayer-image-overlay-icon {{icon}}"></i>
3356 4581 <div if="{{text}}" class="pagelayer-image-overlay-text">{{text}}</div>
@@ -3364,8 +4589,9 @@
3364 4589 'label' => __pl('image_src_label'),
3365 4590 'desc' => __pl('image_src_desc'),
3366 4591 'type' => 'image',
3367 4592 'default' => PAGELAYER_URL.'/images/default-image.png',
4593 + 'retina' => 1,
3368 4594 ),
3369 4595 'id-size' => array(
3370 4596 'label' => __pl('obj_image_size_label'),
3371 4597 'type' => 'select',
@@ -3380,8 +4606,9 @@
3380 4606 ),
3381 4607 'custom_size' => array(
3382 4608 'label' => __pl('image_custom_size_label'),
3383 4609 'type' => 'text',
4610 + 'screen' => 1,
3384 4611 'default' => '100x100',
3385 4612 'sep' => 'x',
3386 4613 'css' => ['{{element}} img' => 'width: {{val[0]}}px; height: {{val[1]}}px;'],
3387 4614 'req' => array(
@@ -3391,9 +4618,9 @@
3391 4618 'align' => array(
3392 4619 'label' => __pl('obj_align_label'),
3393 4620 'type' => 'radio',
3394 4621 'default' => 'center',
3395 - 'addAttr' => 'align="{{align}}"',
4622 + 'screen' => 1,
3396 4623 'css' => ['{{element}} .pagelayer-image-holder' => 'text-align: {{val}}', '{{element}} .pagelayer-image-holder .pagelayer-image-overlay-content' => 'text-align: {{val}}'],
3397 4624 'list' => array(
3398 4625 'left' => __pl('left'),
3399 4626 'center' => __pl('center'),
@@ -3427,9 +4654,9 @@
3427 4654 'img_shadow' => array(
3428 4655 'type' => 'box_shadow',
3429 4656 'label' => __pl('shadow'),
3430 4657 'screen' => 1,
3431 - 'css' => ['{{element}} img' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
4658 + 'css' => ['{{element}} img' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'],
3432 4659 'show' => ['img_hover' => 'normal']
3433 4660 ),
3434 4661 'img_rotate' => array(
3435 4662 'type' => 'spinner',
@@ -3463,9 +4690,9 @@
3463 4690 'img_shadow_hover' => array(
3464 4691 'type' => 'box_shadow',
3465 4692 'label' => __pl('shadow'),
3466 4693 'screen' => 1,
3467 - 'css' => ['{{element}} img:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
4694 + 'css' => ['{{element}} img:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'],
3468 4695 'show' => ['img_hover' => 'hover']
3469 4696 ),
3470 4697 'img_rotate_hover' => array(
3471 4698 'type' => 'spinner',
@@ -3516,10 +4743,10 @@
3516 4743 ),
3517 4744 // Image related Styles
3518 4745 'link_settings' => [
3519 4746 'link_type' => array(
4747 + 'type' => 'select',
3520 4748 'label' => __pl('image_link_label'),
3521 - 'type' => 'select',
3522 4749 'default' => '',
3523 4750 'list' => array(
3524 4751 '' => __pl('none'),
3525 4752 'custom_url' => __pl('custom_url'),
@@ -3527,18 +4754,19 @@
3527 4754 'lightbox' => __pl('lightbox')
3528 4755 )
3529 4756 ),
3530 4757 'link' => array(
4758 + 'type' => 'link',
3531 4759 'label' => __pl('image_link_label'),
3532 4760 'desc' => __pl('image_link_desc'),
3533 - 'type' => 'link',
4761 + 'selector' => '.pagelayer-ele-link',
3534 4762 'req' => array(
3535 4763 'link_type' => 'custom_url'
3536 4764 )
3537 4765 ),
3538 4766 'rel' => array(
4767 + 'type' => 'text',
3539 4768 'label' => __pl('image_rel_label'),
3540 - 'type' => 'text',
3541 4769 'default' => '',
3542 4770 'addAttr' => ['{{element}} a' => 'rel="{{rel}}"'],
3543 4771 'req' => array(
3544 4772 'link_type' => 'media_file'
@@ -3549,9 +4777,10 @@
3549 4777 'type' => 'checkbox',
3550 4778 'addAttr' => ['{{element}} a' => 'target="_blank"'],
3551 4779 'req' => array(
3552 4780 'link_type' => ['custom_url', 'media_file']
3553 - )
4781 + ),
4782 + 'show' => ['link_type' => 'media_file']
3554 4783 ),
3555 4784 ],
3556 4785 // Caption related Styles
3557 4786 'caption_style' => [
@@ -3563,10 +4792,15 @@
3563 4792 ),
3564 4793 'caption_color' => array(
3565 4794 'label' => __pl('Caption Color'),
3566 4795 'type' => 'color',
3567 - 'default' => '#3E8EF7',
4796 + 'default' => '#0986c0',
3568 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;'],
3569 4803 )
3570 4804 ],
3571 4805 'overlay_style' => [
3572 4806 'overlay' => array(
@@ -3608,9 +4842,9 @@
3608 4842 'text' => array(
3609 4843 'label' => __pl('content'),
3610 4844 'type' => 'editor',
3611 4845 'default' => '<p>Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s.</p>',
3612 - 'text' => __pl('open_in_pleditor'),
4846 + 'edit' => '.pagelayer-image-overlay-text',
3613 4847 'req' => array(
3614 4848 'overlay' => 'true'
3615 4849 )
3616 4850 ),
@@ -3681,12 +4915,12 @@
3681 4915 // Image Slider
3682 4916 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_slider', array(
3683 4917 'name' => __pl('Image Slider'),
3684 4918 'group' => 'image',
4919 + 'prevent_inside' => ['pl_slides'],
3685 4920 'html' => '<div class="pagelayer-image-slider-div">
3686 4921 <ul class="pagelayer-image-slider-ul pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme">{{ul}}</ul>
3687 4922 </div>',
3688 - 'func' => 'pagelayer_sc_image_slider',
3689 4923 'settings' => [
3690 4924 'params' => __pl('Image Slider'),
3691 4925 'slider_options' => __pl('slider_options'),
3692 4926 ],
@@ -3694,9 +4928,8 @@
3694 4928 'ids' => array(
3695 4929 'type' => 'multi_image',
3696 4930 'label' => __pl('image_slider_ids_label'),
3697 4931 'desc' => __pl('media_library_images_ids_desc'),
3698 - 'text' => __pl('image_slider_ids_text'),
3699 4932 ),
3700 4933 'size' => array(
3701 4934 'type' => 'select',
3702 4935 'label' => __pl('obj_image_size_label'),
@@ -3728,11 +4961,12 @@
3728 4961 'media_file' => __pl('media_file'),
3729 4962 )
3730 4963 ),
3731 4964 'link' => array(
4965 + 'type' => 'link',
3732 4966 'label' => __pl('image_link_url'),
3733 4967 'desc' => __pl('image_link_desc'),
3734 - 'type' => 'link',
4968 + 'selector' => '.pagelayer-link-sel',
3735 4969 'req' => array(
3736 4970 'link_type' => 'custom_url'
3737 4971 )
3738 4972 ),
@@ -3741,10 +4975,18 @@
3741 4975 'type' => 'checkbox',
3742 4976 'addAttr' => ['{{element}} a' => 'target="_blank"'],
3743 4977 'req' => array(
3744 4978 'link_type' => ['custom_url', 'media_file']
3745 - )
4979 + ),
4980 + 'show' => ['link_type' => 'media_file'] // Backward compatibility of link props
3746 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 + ),
3747 4989 ),
3748 4990 'slider_options' => [
3749 4991 'slide_items' => array(
3750 4992 'type' => 'spinner',
@@ -3839,18 +5081,17 @@
3839 5081 // Grid Gallery
3840 5082 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_grid_gallery', array(
3841 5083 'name' => __pl('Grid Gallery'),
3842 5084 'group' => 'image',
3843 - 'func' => 'pagelayer_sc_grid_gallery',
3844 5085 'html' => '<div class="pagelayer-grid-gallery-container">
3845 - {{ul}}
3846 - </div>',
5086 + {{ul}}
5087 + </div>
5088 + {{pagin}}',
3847 5089 'params' => array(
3848 5090 'ids' => array(
3849 5091 'type' => 'multi_image',
3850 5092 'label' => __pl('grid_gallery_images'),
3851 5093 'desc' => __pl('media_library_images_ids_desc'),
3852 - 'text' => __pl('image_slider_ids_text'),
3853 5094 ),
3854 5095 'columns' => array(
3855 5096 'type' => 'select',
3856 5097 'label' => __pl('columns_count'),
@@ -3903,9 +5144,9 @@
3903 5144 )
3904 5145 ),
3905 5146 'custom_size' => array(
3906 5147 'type' => 'dimension',
3907 - 'desc' => __pl('image_custom_size_label'),
5148 + 'label' => __pl('image_custom_size_label'),
3908 5149 'req' => array(
3909 5150 'size' => 'custom'
3910 5151 ),
3911 5152 'screen' => 1,
@@ -3954,8 +5195,11 @@
3954 5195 'list' => array(
3955 5196 'left' => __pl('left'),
3956 5197 'center' => __pl('center'),
3957 5198 'right' => __pl('right')
5199 + ),
5200 + 'req' => array(
5201 + 'caption' => 'true'
3958 5202 )
3959 5203 ),
3960 5204 'caption_color' => array(
3961 5205 'label' => __pl('Caption Color'),
@@ -3964,8 +5208,17 @@
3964 5208 'css' => ['{{element}} .pagelayer-grid-gallery-caption' => 'color: {{val}}'],
3965 5209 'req' => array(
3966 5210 'caption' => 'true'
3967 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
3968 5221 )
3969 5222 )
3970 5223 )
3971 5224 );
@@ -3979,9 +5232,8 @@
3979 5232 // Button
3980 5233 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
3981 5234 'name' => __pl('button'),
3982 5235 'group' => 'button',
3983 - 'func' => 'pagelayer_sc_btn',
3984 5236 'html' => '<a class="pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{icon_position}}">
3985 5237 <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
3986 5238 <span if="{{text}}" class="pagelayer-btn-text">{{text}}</span>
3987 5239 <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
@@ -3989,26 +5241,19 @@
3989 5241 'params' => array(
3990 5242 'text' => array(
3991 5243 'type' => 'text',
3992 5244 'label' => __pl('button_text_label'),
3993 - 'default' => __pl('button_name')
5245 + 'default' => __pl('button_name'),
5246 + 'edit' => '.pagelayer-btn-text',
3994 5247 ),
3995 5248 'link' => array(
3996 5249 'type' => 'link',
3997 5250 'label' => __pl('button_link_label'),
3998 5251 'desc' => __pl('button_link_desc'),
3999 - 'addAttr' => ['{{element}} .pagelayer-btn-holder' => 'href="{{link}}"']
5252 + 'selector' => '.pagelayer-btn-holder',
5253 + 'addAttr' => ['{{element}} .pagelayer-btn-holder' => 'href="{{{link}}}"'],
5254 + 'req' => ['ele_scrollto' => '']
4000 5255 ),
4001 - 'rel' => array(
4002 - 'type' => 'text',
4003 - 'label' => __pl('rel'),
4004 - 'addAttr' => ['{{element}} .pagelayer-btn-holder' => 'rel="{{rel}}"']
4005 - ),
4006 - 'target' => array(
4007 - 'type' => 'checkbox',
4008 - 'label' => __pl('open_link_in_new_window'),
4009 - 'addAttr' => ['{{element}} a' => 'target="_blank"']
4010 - ),
4011 5256 'full_width' => array(
4012 5257 'type' => 'checkbox',
4013 5258 'label' => __pl('stretch'),
4014 5259 'screen' => 1,
@@ -4016,9 +5261,8 @@
4016 5261 ),
4017 5262 'btn_typo' => array(
4018 5263 'type' => 'typography',
4019 5264 'label' => __pl('quote_content_typo'),
4020 - 'screen' => 1,
4021 5265 'css' => [
4022 5266 '{{element}} .pagelayer-btn-text' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
4023 5267 '{{element}} .pagelayer-btn-holder' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
4024 5268 ],
@@ -4052,8 +5296,11 @@
4052 5296 'list' => array(
4053 5297 'pagelayer-btn-icon-left' => __pl('left'),
4054 5298 'pagelayer-btn-icon-right' => __pl('right')
4055 5299 ),
5300 + 'req' => array(
5301 + '!icon' => ''
5302 + ),
4056 5303 ),
4057 5304 'icon_spacing' => array(
4058 5305 'type' => 'slider',
4059 5306 'label' => __pl('icon_spacing'),
@@ -4063,9 +5310,9 @@
4063 5310 'default' => 5,
4064 5311 'screen' => 1,
4065 5312 'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'],
4066 5313 'req' => array(
4067 - '!icon' => 'none'
5314 + '!icon' => ''
4068 5315 ),
4069 5316 ),
4070 5317 ],
4071 5318 'btn_style' => [
@@ -4084,11 +5331,40 @@
4084 5331 'pagelayer-btn-danger' => __pl('btn_type_danger'),
4085 5332 'pagelayer-btn-dark' => __pl('btn_type_dark'),
4086 5333 'pagelayer-btn-light' => __pl('btn_type_light'),
4087 5334 'pagelayer-btn-link' => __pl('btn_type_link'),
5335 + 'pagelayer-btn-anim' => __pl('btn_type_anim'),
4088 5336 'pagelayer-btn-custom' => __pl('btn_type_custom')
4089 5337 ),
4090 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 + ),
4091 5367 'size' => array(
4092 5368 'type' => 'select',
4093 5369 'label' => __pl('button_size_label'),
4094 5370 'default' => 'pagelayer-btn-large',
@@ -4110,9 +5386,9 @@
4110 5386 'default' => 5,
4111 5387 'screen' => 1,
4112 5388 'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: calc({{val}}px / 2) {{val}}px;'],
4113 5389 'req' => array(
4114 - 'size' => 'pagelayer-btn-custom'
5390 + 'size' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
4115 5391 ),
4116 5392 ),
4117 5393 'btn_hover' => array(
4118 5394 'type' => 'radio',
@@ -4123,18 +5399,23 @@
4123 5399 '' => __pl('normal'),
4124 5400 'hover' => __pl('hover'),
4125 5401 ),
4126 5402 'req' => array(
4127 - 'type' => 'pagelayer-btn-custom',
5403 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
4128 5404 ),
4129 5405 ),
4130 5406 'btn_bg_color' => array(
4131 5407 'type' => 'color',
4132 5408 'label' => __pl('btn_bg_color_label'),
4133 - 'default' => '#3e8ef7',
4134 - '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 + ],
4135 5416 'req' => array(
4136 - 'type' => 'pagelayer-btn-custom',
5417 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
4137 5418 ),
4138 5419 'show' => array(
4139 5420 'btn_hover' => ''
4140 5421 ),
@@ -4144,9 +5425,9 @@
4144 5425 'label' => __pl('btn_color_label'),
4145 5426 'default' => '#ffffff',
4146 5427 'css' => ['{{element}} .pagelayer-btn-holder' => 'color: {{val}};'],
4147 5428 'req' => array(
4148 - 'type' => 'pagelayer-btn-custom',
5429 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
4149 5430 ),
4150 5431 'show' => array(
4151 5432 'btn_hover' => ''
4152 5433 ),
@@ -4160,8 +5441,9 @@
4160 5441 'max' => 5000,
4161 5442 'default' => 400,
4162 5443 'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
4163 5444 'show' => array(
5445 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
4164 5446 'btn_hover' => 'hover'
4165 5447 ),
4166 5448 ),
4167 5449 'btn_bg_color_hover' => array(
@@ -4167,14 +5449,18 @@
4167 5449 'btn_bg_color_hover' => array(
4168 5450 'type' => 'color',
4169 5451 'label' => __pl('btn_bg_color_hover_label'),
4170 5452 'default' => '',
4171 - '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 + ],
4172 5456 'req' => array(
4173 - 'type' => 'pagelayer-btn-custom',
5457 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
5458 + '!anim_type' => ['glow','thin'],
4174 5459 ),
4175 5460 'show' => array(
4176 - 'btn_hover' => 'hover'
5461 + 'btn_hover' => 'hover',
5462 + '!anim_type' => ['glow','thin'],
4177 5463 ),
4178 5464 ),
4179 5465 'btn_color_hover' => array(
4180 5466 'type' => 'color',
@@ -4181,14 +5467,24 @@
4181 5467 'label' => __pl('btn_color_hover_label'),
4182 5468 'default' => '',
4183 5469 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'color: {{val}};'],
4184 5470 'req' => array(
4185 - 'type' => 'pagelayer-btn-custom',
5471 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
4186 5472 ),
4187 5473 'show' => array(
4188 5474 'btn_hover' => 'hover'
4189 5475 ),
4190 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 + ],
4191 5487 ],
4192 5488 'border_style' => [
4193 5489 'btn_bor_hover' => array(
4194 5490 'type' => 'radio',
@@ -4202,9 +5498,12 @@
4202 5498 ),
4203 5499 'btn_border_type' => array(
4204 5500 'type' => 'select',
4205 5501 'label' => __pl('border_type'),
4206 - '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 + ],
4207 5506 'list' => [
4208 5507 '' => __pl('none'),
4209 5508 'solid' => __pl('solid'),
4210 5509 'double' => __pl('double'),
@@ -4231,9 +5530,9 @@
4231 5530 'btn_border_width' => array(
4232 5531 'type' => 'padding',
4233 5532 'label' => __pl('border_width'),
4234 5533 'screen' => 1,
4235 - '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'],
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'],
4236 5535 'req' => [
4237 5536 '!btn_border_type' => ''
4238 5537 ],
4239 5538 'show' => array(
@@ -4243,20 +5542,25 @@
4243 5542 'btn_border_radius' => array(
4244 5543 'type' => 'padding',
4245 5544 'label' => __pl('border_radius'),
4246 5545 'screen' => 1,
4247 - '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;'],
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;'],
4248 5547 'req' => array(
4249 - '!btn_border_type' => ''
5548 + '!btn_border_type' => '',
5549 + '!anim_type' => 'slide'
4250 5550 ),
4251 5551 'show' => array(
4252 - 'btn_bor_hover' => ''
5552 + 'btn_bor_hover' => '',
5553 + '!anim_type' => 'slide'
4253 5554 ),
4254 5555 ),
4255 5556 'btn_border_type_hover' => array(
4256 5557 'type' => 'select',
4257 5558 'label' => __pl('border_type'),
4258 - '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 + ],
4259 5563 'list' => [
4260 5564 '' => __pl('none'),
4261 5565 'solid' => __pl('solid'),
4262 5566 'double' => __pl('double'),
@@ -4283,9 +5587,11 @@
4283 5587 'btn_border_width_hover' => array(
4284 5588 'type' => 'padding',
4285 5589 'label' => __pl('border_width_hover'),
4286 5590 'screen' => 1,
4287 - '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'],
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 + ],
4288 5594 'req' => [
4289 5595 '!btn_border_type_hover' => ''
4290 5596 ],
4291 5597 'show' => array(
@@ -4295,34 +5601,84 @@
4295 5601 'btn_border_radius_hover' => array(
4296 5602 'type' => 'padding',
4297 5603 'label' => __pl('border_radius_hover'),
4298 5604 'screen' => 1,
4299 - '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;'],
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;'],
4300 5606 'req' => array(
4301 - '!btn_border_type_hover' => ''
5607 + '!btn_border_type_hover' => '',
5608 + '!anim_type' => 'slide'
4302 5609 ),
4303 5610 'show' => array(
4304 - 'btn_bor_hover' => 'hover'
5611 + 'btn_bor_hover' => 'hover',
5612 + '!anim_type' => 'slide'
4305 5613 ),
4306 5614 ),
4307 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 + ],
4308 5664 'styles' => [
4309 5665 'btn_style' => __pl('btn_style'),
4310 5666 'icon_style' => __pl('icon'),
4311 5667 'border_style' => __pl('border_style'),
5668 + 'scroll_to_element' => __pl('scroll_to_element'),
4312 5669 ]
4313 5670 )
4314 5671 );
4315 5672
4316 -
4317 5673 // Social Profile Item
4318 5674 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social', array(
4319 5675 'name' => __pl('Social Profile'),
4320 5676 'group' => 'button',
4321 - 'func' => 'pagelayer_sc_social',
4322 5677 'not_visible' => 1,
5678 + 'parent' => [PAGELAYER_SC_PREFIX.'_social_grp'],
4323 5679 'html' => '<div class="pagelayer-icon-holder">
4324 - <a if-ext="{{social_url}}" class="pagelayer-ele-link" href="{{social_url}}">
5680 + <a if-ext="{{social_url}}" class="pagelayer-ele-link" href="{{{social_url}}}">
4325 5681 <i class="pagelayer-social-fa {{icon}}"></i>
4326 5682 </a>
4327 5683 </div>',
4328 5684 'params' => array(
@@ -4330,14 +5686,17 @@
4330 5686 'type' => 'icon',
4331 5687 'label' => __pl('list_icon_label'),
4332 5688 'default' => 'fab fa-facebook-square',
4333 5689 'addAttr' => ['{{element}} .pagelayer-icon-holder' => 'data-icon="{{icon}}"'],
4334 - 'list' => ['facebook', 'facebook-f', 'facebook-square', 'facebook-messenger', 'twitter', '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'],
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'
4335 5692 ),
4336 5693 'social_url' => array(
4337 5694 'type' => 'link',
4338 - 'label' => __pl('social_url_label')
4339 - )
5695 + 'label' => __pl('social_url_label'),
5696 + 'selector' => '.pagelayer-ele-link',
5697 + 'default' => get_option('pagelayer-facebook-url'),
5698 + ),
4340 5699 )
4341 5700 )
4342 5701 );
4343 5702
@@ -4344,9 +5703,8 @@
4344 5703 // Social Profile
4345 5704 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
4346 5705 'name' => __pl('Social Profile'),
4347 5706 'group' => 'button',
4348 - 'func' => 'pagelayer_sc_social_grp',
4349 5707 'has_group' => [
4350 5708 'section' => 'params',
4351 5709 'prop' => 'elements'
4352 5710 ],
@@ -4469,9 +5827,9 @@
4469 5827 ),
4470 5828 'icon_bg_color' => array(
4471 5829 'type' => 'color',
4472 5830 'label' => __pl('social_bg_color_label'),
4473 - 'default' => '#3E8EF7',
5831 + 'default' => '#0986c0',
4474 5832 'css' => ['{{element}} .pagelayer-icon-holder' => 'background-color: {{val}} !important;'],
4475 5833 'req' => array(
4476 5834 '!bg_shape' => '',
4477 5835 'color_scheme' => ''
@@ -4477,8 +5835,64 @@
4477 5835 'color_scheme' => ''
4478 5836 ),
4479 5837 'show' => ['social_hover' => '']
4480 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 + ),
4481 5895 'icon_border_type' => array(
4482 5896 'type' => 'select',
4483 5897 'label' => __pl('border_type'),
4484 5898 'css' => ['{{element}} .pagelayer-icon-holder' => 'border-style: {{val}}'],
@@ -4536,66 +5950,8 @@
4536 5950 'show' => array(
4537 5951 'social_hover' => 'hover'
4538 5952 ),
4539 5953 ),
4540 - 'anim_hover' => array(
4541 - 'type' => 'select',
4542 - 'label' => __pl('icon_animation'),
4543 - 'list' => [
4544 - '' => __pl('none'),
4545 - 'grow' => __pl('Grow'),
4546 - 'shrink' => __pl('Shrink'),
4547 - 'pulse' => __pl('Pulse'),
4548 - 'pulse-grow' => __pl('Pulse Grow'),
4549 - 'pulse-shrink' => __pl('Pulse Shrink'),
4550 - 'push' => __pl('Push'),
4551 - 'pop' => __pl('Pop'),
4552 - 'buzz' => __pl('Buzz'),
4553 - 'buzz-out' => __pl('Buzz Out'),
4554 - 'float' => __pl('Float'),
4555 - 'sink' => __pl('Sink'),
4556 - 'bob' => __pl('Bob'),
4557 - 'hang' => __pl('Hang'),
4558 - 'bounce-in' => __pl('Bounce In'),
4559 - 'bounce-out' => __pl('Bounce Out'),
4560 - 'rotate' => __pl('Rotate'),
4561 - 'grow-rotate' => __pl('Grow Rotate'),
4562 - 'skew-forward' => __pl('Skew Forward'),
4563 - 'skew-backward' => __pl('Skew Backward'),
4564 - 'wobble-vertical' => __pl('Wobble Vertical'),
4565 - 'wobble-horizontal' => __pl('Wobble Horizontal'),
4566 - 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
4567 - 'wobble-top-to-right' => __pl('Wobble Top To Right'),
4568 - 'wobble-top' => __pl('Wobble Top'),
4569 - 'wobble-bottom' => __pl('Wobble Bottom'),
4570 - 'wobble-skew' => __pl('Wobble Skew'),
4571 - ],
4572 - 'show' => array(
4573 - 'social_hover' => 'hover',
4574 - ),
4575 - 'addAttr' => 'pagelayer-animation="{{anim_hover}}"',
4576 - ),
4577 - 'icon_color_hover' => array(
4578 - 'type' => 'color',
4579 - 'label' => __pl('social_color_label'),
4580 - 'default' => '#ffffff',
4581 - 'css' => ['{{element}} .pagelayer-icon-holder:hover .pagelayer-social-fa' => 'color: {{val}} !important;'],
4582 - 'req' => array(
4583 - 'color_scheme' => ''
4584 - ),
4585 - 'show' => ['social_hover' => 'hover']
4586 - ),
4587 - 'icon_bg_color_hover' => array(
4588 - 'type' => 'color',
4589 - 'label' => __pl('social_bg_color_label'),
4590 - 'default' => '#3E8EF7',
4591 - 'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'background-color: {{val}} !important;'],
4592 - 'req' => array(
4593 - '!bg_shape' => '',
4594 - 'color_scheme' => ''
4595 - ),
4596 - 'show' => ['social_hover' => 'hover']
4597 - ),
4598 5954 'icon_border_type_hover' => array(
4599 5955 'type' => 'select',
4600 5956 'label' => __pl('border_type'),
4601 5957 'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'border-style: {{val}}'],
@@ -4654,13 +6010,12 @@
4654 6010 // Video
4655 6011 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video', array(
4656 6012 'name' => __pl('video'),
4657 6013 'group' => 'media',
4658 - 'func' => 'pagelayer_sc_video',
4659 6014 'html' => '<div class="pagelayer-video-holder pagelayer-video-{{video_ratio}}">
4660 - <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>
4661 6016 <a if-ext={{lightbox}} href="{{{src-url}}}">
4662 - <div if={{overlay}} class="pagelayer-video-overlay" style="background-image:url("{{video_overlay_image-url}}");">
6017 + <div if={{overlay}} class="pagelayer-video-overlay" style="background-image:url({{video_overlay_image-url}});">
4663 6018 <i class="{{play_icon}}" aria-hidden="true"></i>
4664 6019 </div>
4665 6020 </a>
4666 6021 </div>',
@@ -4667,9 +6022,9 @@
4667 6022 'params' => array(
4668 6023 'src' => array(
4669 6024 'type' => 'video',
4670 6025 'label' => __pl('video_src_label'),
4671 - 'default' => 'https://www.youtube.com/watch?v=VT7WfVp1owQ',
6026 + 'default' => 'https://www.youtube.com/watch?v=t8Iz-v-qce8',
4672 6027 'desc' => __pl('video_src_desc'),
4673 6028 ),
4674 6029 'lightbox' => array(
4675 6030 'type' => 'checkbox',
@@ -4686,9 +6041,9 @@
4686 6041 ],
4687 6042 ),
4688 6043 'mute' => array(
4689 6044 'type' => 'checkbox',
4690 - 'label' => __pl('Mute'),
6045 + 'label' => __pl('mute'),
4691 6046 ),
4692 6047 'loop' => array(
4693 6048 'type' => 'checkbox',
4694 6049 'label' => __pl('loop'),
@@ -4732,9 +6087,9 @@
4732 6087 ),
4733 6088 'icon_color' => array(
4734 6089 'type' => 'color',
4735 6090 'label' => __pl('service_heading_color'),
4736 - 'default' => '#3e8ef7',
6091 + 'default' => '#0986c0',
4737 6092 'css' => ['{{element}} .pagelayer-video-overlay i' => 'color:{{val}}'],
4738 6093 'req' => array(
4739 6094 'overlay' => 'true'
4740 6095 )
@@ -4774,22 +6129,21 @@
4774 6129 // Service Box
4775 6130 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
4776 6131 'name' => __pl('Image Box'),
4777 6132 'group' => 'other',
4778 - 'func' => 'pagelayer_sc_service',
4779 6133 'innerHTML' => 'service_text',
4780 6134 'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
4781 6135 <div if="{{service_image}}" class="pagelayer-service-image">
4782 - <img class="pagelayer-img 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}}" />
4783 6137 </div>
4784 6138 <div class="pagelayer-service-details">
4785 - <a if-ext={{heading_url}} href="{{heading_url}}" class="pagelayer-ele-link">
6139 + <a if-ext={{heading_url}} href="{{{heading_url}}}" class="pagelayer-ele-link pagelayer-service-heading-link" >
4786 6140 <div if={{service_heading}} class="pagelayer-service-heading">{{service_heading}}</div>
4787 6141 </a>
4788 6142 <div if={{service_text}} class="pagelayer-service-text">{{service_text}}</div>
4789 - <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>
4790 6144 </div>
4791 - <a if-ext={{box_url}} href="{{box_url}}" class="pagelayer-ele-link pagelayer-box-link"> </a>
6145 + <a if-ext={{box_url}} href="{{{box_url}}}" class="pagelayer-ele-link pagelayer-box-link"> </a>
4792 6146 </div>',
4793 6147 'params' => [
4794 6148 'service_image' => array(
4795 6149 'type' => 'image',
@@ -4794,8 +6148,9 @@
4794 6148 'service_image' => array(
4795 6149 'type' => 'image',
4796 6150 'label' => __pl('service_box_image_icon_label'),
4797 6151 'default' => PAGELAYER_URL.'/images/default-image.png',
6152 + 'retina' => 1,
4798 6153 ),
4799 6154 'service_image_size' => array(
4800 6155 'type' => 'radio',
4801 6156 'label' => __pl('service_box_image_icon_size_label'),
@@ -4820,8 +6175,9 @@
4820 6175 ),
4821 6176 'box_url' => array(
4822 6177 'type' => 'link',
4823 6178 'label' => __pl('url'),
6179 + 'selector' => '.pagelayer-box-link',
4824 6180 ),
4825 6181 'anim_hover' => array(
4826 6182 'type' => 'select',
4827 6183 'label' => __pl('icon_animation'),
@@ -4853,8 +6209,9 @@
4853 6209 'wobble-top' => __pl('Wobble Top'),
4854 6210 'wobble-bottom' => __pl('Wobble Bottom'),
4855 6211 'wobble-skew' => __pl('Wobble Skew'),
4856 6212 ],
6213 + 'addClass' => 'pagelayer-anim-par'
4857 6214 )
4858 6215 ],
4859 6216 'service_img_style' => [
4860 6217 'service_alignment' => array(
@@ -4915,8 +6272,9 @@
4915 6272 ),
4916 6273 'service_img_alignment' => array(
4917 6274 'type' => 'radio',
4918 6275 'label' => __pl('horizontal_pos'),
6276 + 'screen' => 1,
4919 6277 'css' => ['{{element}} .pagelayer-service-image' => 'text-align: {{val}};,'],
4920 6278 'list' => array(
4921 6279 'left' => __pl('left'),
4922 6280 'center' => __pl('center'),
@@ -4961,9 +6319,9 @@
4961 6319 ),
4962 6320 'img_border_color' => array(
4963 6321 'type' => 'color',
4964 6322 'label' => __pl('icon_border_color_label'),
4965 - 'default' => '#3e8ef7',
6323 + 'default' => '#0986c0',
4966 6324 'css' => ['{{element}} .pagelayer-service-image img' => 'border-color: {{val}};'],
4967 6325 'req' => [
4968 6326 '!img_border_type' => '',
4969 6327 ],
@@ -5023,9 +6381,9 @@
5023 6381 ),
5024 6382 'img_border_color_hover' => array(
5025 6383 'type' => 'color',
5026 6384 'label' => __pl('icon_border_color_hover_label'),
5027 - 'default' => '#3e8ef7',
6385 + 'default' => '#0986c0',
5028 6386 'css' => ['{{element}}:hover .pagelayer-service-image img' => 'border-color: {{val}};'],
5029 6387 'req' => [
5030 6388 '!img_border_type_hover' => '',
5031 6389 ],
@@ -5057,15 +6415,28 @@
5057 6415 'service_heading' => array(
5058 6416 'type' => 'textarea',
5059 6417 'label' => __pl('service_box_heading_label'),
5060 6418 'default' => 'This is an Image Box',
5061 - 'text' => __pl('open_in_wpeditor'),
6419 + 'edit' => '.pagelayer-service-heading',
5062 6420 ),
5063 6421 'heading_url' => array(
5064 6422 'type' => 'link',
5065 6423 'label' => __pl('url'),
5066 - 'req' => ['!service_heading' => '']
6424 + 'selector' => '.pagelayer-service-heading-link',
6425 + 'req' => ['!service_heading' => '', 'box_url' => '']
5067 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 + ),
5068 6439 'service_title_spacing' => array(
5069 6440 'type' => 'padding',
5070 6441 'label' => __pl('spacing'),
5071 6442 'screen' => 1,
@@ -5083,9 +6454,9 @@
5083 6454 ),
5084 6455 'service_heading_color' => array(
5085 6456 'type' => 'color',
5086 6457 'label' => __pl('service_heading_color'),
5087 - 'default' => '#3e8ef7',
6458 + 'default' => '#0986c0',
5088 6459 'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
5089 6460 'show' => ['heading_state' => 'normal'],
5090 6461 ),
5091 6462 'service_heading_typo' => array(
@@ -5091,9 +6462,8 @@
5091 6462 'service_heading_typo' => array(
5092 6463 'type' => 'typography',
5093 6464 'label' => __pl('service_heading_typo'),
5094 6465 'default' => ',28,,600,,,,,,,',
5095 - 'screen' => 1,
5096 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;'],
5097 6467 'show' => ['heading_state' => 'normal'],
5098 6468 ),
5099 6469 'heading_transition' => array(
@@ -5114,9 +6484,8 @@
5114 6484 ),
5115 6485 'heading_typo_hover' => array(
5116 6486 'type' => 'typography',
5117 6487 'label' => __pl('service_heading_typo'),
5118 - 'screen' => 1,
5119 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;'],
5120 6489 'show' => ['heading_state' => 'hover'],
5121 6490 ),
5122 6491 ],
@@ -5144,9 +6513,9 @@
5144 6513 'service_text' => array(
5145 6514 'type' => 'editor',
5146 6515 'label' => __pl('service_box_text_label'),
5147 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.',
5148 - 'text' => __pl('open_in_wpeditor'),
6517 + 'edit' => '.pagelayer-service-text',
5149 6518 )
5150 6519 ],
5151 6520 //service button style
5152 6521 'service_btn_style' =>[
@@ -5212,8 +6581,9 @@
5212 6581 ),
5213 6582 'service_button_url' => array(
5214 6583 'type' => 'link',
5215 6584 'label' => __pl('service_btn_url_label'),
6585 + 'selector' => '.pagelayer-service-btn',
5216 6586 'req' => array(
5217 6587 'service_button' => 'true'
5218 6588 ),
5219 6589 ),
@@ -5220,8 +6590,9 @@
5220 6590 'service_button_text' => array(
5221 6591 'type' => 'text',
5222 6592 'label' => __pl('service_button_text_label'),
5223 6593 'default' => 'Click Here!',
6594 + 'edit' => '.pagelayer-service-btn',
5224 6595 'req' => array(
5225 6596 'service_button' => 'true'
5226 6597 ),
5227 6598 ),
@@ -5227,18 +6598,17 @@
5227 6598 ),
5228 6599 'service_button_typo' => array(
5229 6600 'type' => 'typography',
5230 6601 'label' => __pl('typography'),
5231 - 'screen' => 1,
5232 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']
5233 6604 ),
5234 6605 'service_btn_spacing' => array(
5235 6606 'type' => 'padding',
5236 6607 'label' => __pl('spacing'),
6608 + 'screen' => 1,
5237 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;'],
5238 - 'req' => [
5239 - 'service_button' => 'true',
5240 - ]
6610 + 'req' => ['service_button' => 'true']
5241 6611 ),
5242 6612 'service_button_font_size' => array(
5243 6613 'type' => 'slider',
5244 6614 'label' => __pl('iconbox_btn_text_size'),
@@ -5277,9 +6647,9 @@
5277 6647 ),
5278 6648 'service_button_bg_color' => array(
5279 6649 'type' => 'color',
5280 6650 'label' => __pl('service_button_bg_color'),
5281 - 'default' => '#3e8ef7',
6651 + 'default' => '#0986c0',
5282 6652 'css' => ['{{element}} .pagelayer-service-btn' => 'background-color:{{val}};'],
5283 6653 'req' => [
5284 6654 'service_button' => 'true',
5285 6655 'service_button_type' => 'pagelayer-btn-custom',
@@ -5436,9 +6806,8 @@
5436 6806 // Icon Box
5437 6807 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
5438 6808 'name' => __pl('Icon Box'),
5439 6809 'group' => 'other',
5440 - 'func' => 'pagelayer_sc_iconbox',
5441 6810 'innerHTML' => 'service_text',
5442 6811 'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
5443 6812 <div class="pagelayer-service-icon pagelayer-service-{{service_icon_view}}">
5444 6813 <i class="{{service_icon}} pagelayer-icon-{{service_icon_shape_type}} pagelayer-animation-{{anim_hover}}" aria-hidden="true"></i>
@@ -5443,17 +6812,17 @@
5443 6812 <div class="pagelayer-service-icon pagelayer-service-{{service_icon_view}}">
5444 6813 <i class="{{service_icon}} pagelayer-icon-{{service_icon_shape_type}} pagelayer-animation-{{anim_hover}}" aria-hidden="true"></i>
5445 6814 </div>
5446 6815 <div class="pagelayer-service-details">
5447 - <a if-ext={{heading_url}} href="{{heading_url}}" class="pagelayer-ele-link">
6816 + <a if-ext={{heading_url}} href="{{{heading_url}}}" class="pagelayer-ele-link pagelayer-service-heading-link" >
5448 6817 <div if="{{service_heading}}" class="pagelayer-service-heading">{{service_heading}}</div>
5449 6818 </a>
5450 6819 <div if="{{service_text}}" class="pagelayer-service-text">{{service_text}}</div>
5451 - <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}}">
5452 6821 <span if="{{service_button_text}}">{{service_button_text}}</span>
5453 6822 </a>
5454 6823 </div>
5455 - <a if-ext={{box_url}} href="{{box_url}}" class="pagelayer-ele-link pagelayer-box-link"> </a>
6824 + <a if-ext={{box_url}} href="{{{box_url}}}" class="pagelayer-ele-link pagelayer-box-link"> </a>
5456 6825 </div>',
5457 6826 'params' => array(
5458 6827 'service_icon' => array(
5459 6828 'type' => 'icon',
@@ -5485,8 +6854,9 @@
5485 6854 ),
5486 6855 'service_icon_alignment' => array(
5487 6856 'type' => 'radio',
5488 6857 'label' => __pl('horizontal_pos'),
6858 + 'screen' => 1,
5489 6859 'css' => ['{{element}} .pagelayer-service-icon' => 'text-align: {{val}};,'],
5490 6860 'list' => array(
5491 6861 'left' => __pl('left'),
5492 6862 'center' => __pl('center'),
@@ -5496,8 +6866,9 @@
5496 6866 ),
5497 6867 'box_url' => array(
5498 6868 'type' => 'link',
5499 6869 'label' => __pl('url'),
6870 + 'selector' => '.pagelayer-box-link',
5500 6871 ),
5501 6872 ),
5502 6873 // icon style
5503 6874 'service_icon_style' => [
@@ -5536,8 +6907,42 @@
5536 6907 'screen' => 1,
5537 6908 'label' => __pl('service_icon_spacing'),
5538 6909 'screen' => 1,
5539 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'
5540 6945 ),
5541 6946 'service_icon_state' => array(
5542 6947 'type' => 'radio',
5543 6948 'label' => __pl('icon_state'),
@@ -5549,9 +6954,9 @@
5549 6954 ),
5550 6955 'service_icon_color' => array(
5551 6956 'type' => 'color',
5552 6957 'label' => __pl('iconbox_icon_color'),
5553 - 'default' => '#3e8ef7',
6958 + 'default' => '#0986c0',
5554 6959 'css' => ['{{element}} .pagelayer-service-icon i' => 'color:{{val}};'],
5555 6960 'show' => ['service_icon_state' => 'normal'],
5556 6961 ),
5557 6962 'service_icon_background_color' => array(
@@ -5591,44 +6996,8 @@
5591 6996 'default' => 400,
5592 6997 'css' => ['{{element}} .pagelayer-service-icon i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
5593 6998 'show' => ['service_icon_state' => 'hover'],
5594 6999 ),
5595 - 'anim_hover' => array(
5596 - 'type' => 'select',
5597 - 'label' => __pl('icon_animation'),
5598 - 'list' => [
5599 - '' => __pl('none'),
5600 - 'grow' => __pl('Grow'),
5601 - 'shrink' => __pl('Shrink'),
5602 - 'pulse' => __pl('Pulse'),
5603 - 'pulse-grow' => __pl('Pulse Grow'),
5604 - 'pulse-shrink' => __pl('Pulse Shrink'),
5605 - 'push' => __pl('Push'),
5606 - 'pop' => __pl('Pop'),
5607 - 'buzz' => __pl('Buzz'),
5608 - 'buzz-out' => __pl('Buzz Out'),
5609 - 'float' => __pl('Float'),
5610 - 'sink' => __pl('Sink'),
5611 - 'bob' => __pl('Bob'),
5612 - 'hang' => __pl('Hang'),
5613 - 'bounce-in' => __pl('Bounce In'),
5614 - 'bounce-out' => __pl('Bounce Out'),
5615 - 'rotate' => __pl('Rotate'),
5616 - 'grow-rotate' => __pl('Grow Rotate'),
5617 - 'skew-forward' => __pl('Skew Forward'),
5618 - 'skew-backward' => __pl('Skew Backward'),
5619 - 'wobble-vertical' => __pl('Wobble Vertical'),
5620 - 'wobble-horizontal' => __pl('Wobble Horizontal'),
5621 - 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
5622 - 'wobble-top-to-right' => __pl('Wobble Top To Right'),
5623 - 'wobble-top' => __pl('Wobble Top'),
5624 - 'wobble-bottom' => __pl('Wobble Bottom'),
5625 - 'wobble-skew' => __pl('Wobble Skew'),
5626 - ],
5627 - 'show' => array(
5628 - 'service_icon_state' => 'hover',
5629 - ),
5630 - ),
5631 7000 'service_icon_color_hover' => array(
5632 7001 'type' => 'color',
5633 7002 'label' => __pl('service_icon_color_hover'),
5634 7003 'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'color:{{val}};'],
@@ -5687,9 +7056,9 @@
5687 7056 ),
5688 7057 'service_icon_border_color' => array(
5689 7058 'type' => 'color',
5690 7059 'label' => __pl('icon_border_color_label'),
5691 - 'default' => '#3e8ef7',
7060 + 'default' => '#0986c0',
5692 7061 'css' => ['{{element}} .pagelayer-service-icon i' => 'border-color: {{val}};'],
5693 7062 'req' => [
5694 7063 '!service_icon_border_type' => '',
5695 7064 ],
@@ -5731,9 +7100,9 @@
5731 7100 ),
5732 7101 'service_icon_border_color_hover' => array(
5733 7102 'type' => 'color',
5734 7103 'label' => __pl('icon_border_color_hover_label'),
5735 - 'default' => '#3e8ef7',
7104 + 'default' => '#0986c0',
5736 7105 'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'border-color: {{val}};'],
5737 7106 'req' => [
5738 7107 '!service_icon_border_type_hover' => '',
5739 7108 ],
@@ -5764,15 +7133,28 @@
5764 7133 'service_heading' => array(
5765 7134 'type' => 'textarea',
5766 7135 'label' => __pl('iconbox_box_heading_label'),
5767 7136 'default' => 'This is Icon Box',
5768 - 'text' => __pl('open_in_wpeditor'),
7137 + 'edit' => '.pagelayer-service-heading',
5769 7138 ),
5770 7139 'heading_url' => array(
5771 7140 'type' => 'link',
5772 7141 'label' => __pl('url'),
5773 - 'req' => ['!service_heading' => '']
7142 + 'selector' => '.pagelayer-service-heading-link',
7143 + 'req' => ['!service_heading' => '', 'box_url' => '']
5774 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 + ),
5775 7157 'service_title_spacing' => array(
5776 7158 'type' => 'padding',
5777 7159 'label' => __pl('spacing'),
5778 7160 'screen' => 1,
@@ -5790,9 +7172,9 @@
5790 7172 ),
5791 7173 'service_heading_color' => array(
5792 7174 'type' => 'color',
5793 7175 'label' => __pl('service_heading_color'),
5794 - 'default' => '#3e8ef7',
7176 + 'default' => '#0986c0',
5795 7177 'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
5796 7178 'show' => ['heading_state' => 'normal']
5797 7179 ),
5798 7180 'service_heading_typo' => array(
@@ -5798,9 +7180,8 @@
5798 7180 'service_heading_typo' => array(
5799 7181 'type' => 'typography',
5800 7182 'label' => __pl('service_heading_typo'),
5801 7183 'default' => ',28,,600,,,,,,,',
5802 - 'screen' => 1,
5803 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;'],
5804 7185 'show' => ['heading_state' => 'normal']
5805 7186 ),
5806 7187 'heading_delay' => array(
@@ -5821,9 +7202,8 @@
5821 7202 ),
5822 7203 'heading_typo_hover' => array(
5823 7204 'type' => 'typography',
5824 7205 'label' => __pl('service_heading_typo'),
5825 - 'screen' => 1,
5826 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;'],
5827 7207 'show' => ['heading_state' => 'hover']
5828 7208 ),
5829 7209 ],
@@ -5850,9 +7230,9 @@
5850 7230 'service_text' => array(
5851 7231 'type' => 'editor',
5852 7232 'label' => __pl('iconbox_box_text_label'),
5853 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.',
5854 - 'text' => __pl('open_in_wpeditor'),
7234 + 'edit' => '.pagelayer-service-text',
5855 7235 ),
5856 7236 ],
5857 7237 //service button style
5858 7238 'service_btn_style' =>[
@@ -5876,11 +7256,9 @@
5876 7256 'pagelayer-btn-light' => __pl('btn_type_light'),
5877 7257 'pagelayer-btn-link' => __pl('btn_type_link'),
5878 7258 'pagelayer-btn-custom' => __pl('btn_type_custom')
5879 7259 ),
5880 - 'req' => array(
5881 - 'service_button' => 'true'
5882 - ),
7260 + 'req' => ['service_button' => 'true']
5883 7261 ),
5884 7262 'service_button_size' => array(
5885 7263 'type' => 'select',
5886 7264 'label' => __pl('button_size_label'),
@@ -5892,11 +7270,9 @@
5892 7270 'pagelayer-btn-extra-large' => __pl('extra_large'),
5893 7271 'pagelayer-btn-double-large' => __pl('double_large'),
5894 7272 'pagelayer-btn-custom' => __pl('custom'),
5895 7273 ),
5896 - 'req' => array(
5897 - 'service_button' => 'true'
5898 - )
7274 + 'req' => ['service_button' => 'true']
5899 7275 ),
5900 7276 'service_btn_dim' => array(
5901 7277 'type' => 'dimension',
5902 7278 'label' => __pl('service_btn_dim'),
@@ -5911,40 +7287,34 @@
5911 7287 'service_btn_stretch' => array(
5912 7288 'type' => 'checkbox',
5913 7289 'label' => __pl('stretch'),
5914 7290 'css' => ['{{element}} .pagelayer-service-btn' => 'width:100%;'],
5915 - 'req' => array(
5916 - 'service_button' => 'true'
5917 - ),
7291 + 'req' => ['service_button' => 'true']
5918 7292 ),
5919 7293 'service_button_url' => array(
5920 7294 'type' => 'link',
5921 7295 'label' => __pl('iconbox_btn_url_label'),
5922 - 'req' => array(
5923 - 'service_button' => 'true'
5924 - ),
7296 + 'selector' => '.pagelayer-service-btn',
7297 + 'req' => ['service_button' => 'true']
5925 7298 ),
5926 7299 'service_button_text' => array(
5927 7300 'type' => 'text',
5928 7301 'label' => __pl('iconbox_button_text_label'),
7302 + 'edit' => '.pagelayer-service-btn',
5929 7303 'default' => 'Click Here!',
5930 - 'req' => array(
5931 - 'service_button' => 'true'
5932 - ),
7304 + 'req' => ['service_button' => 'true']
5933 7305 ),
5934 7306 'service_button_typo' => array(
5935 7307 'type' => 'typography',
5936 7308 'label' => __pl('typography'),
5937 - 'screen' => 1,
5938 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']
5939 7311 ),
5940 7312 'service_btn_spacing' => array(
5941 7313 'type' => 'padding',
5942 7314 'label' => __pl('spacing'),
5943 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;'],
5944 - 'req' => [
5945 - 'service_button' => 'true',
5946 - ]
7316 + 'req' => ['service_button' => 'true']
5947 7317 ),
5948 7318 'service_button_font_size' => array(
5949 7319 'type' => 'slider',
5950 7320 'label' => __pl('iconbox_btn_text_size'),
@@ -5983,9 +7353,9 @@
5983 7353 ),
5984 7354 'service_button_bg_color' => array(
5985 7355 'type' => 'color',
5986 7356 'label' => __pl('service_button_bg_color'),
5987 - 'default' => '#3e8ef7',
7357 + 'default' => '#0986c0',
5988 7358 'css' => ['{{element}} .pagelayer-service-btn' => 'background-color:{{val}};'],
5989 7359 'req' => [
5990 7360 'service_button' => 'true',
5991 7361 'iconbox_button_type' => 'pagelayer-btn-custom',
@@ -6143,9 +7513,8 @@
6143 7513 // Tabs
6144 7514 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
6145 7515 'name' => __pl('tabs'),
6146 7516 'group' => 'other',
6147 - 'func' => 'pagelayer_sc_tabs',
6148 7517 'has_group' => [
6149 7518 'section' => 'params',
6150 7519 'prop' => 'elements'
6151 7520 ],
@@ -6279,15 +7648,14 @@
6279 7648 ),
6280 7649 'tabs_active_bg_color' => array(
6281 7650 'type' => 'color',
6282 7651 'label' => __pl('Active Tab Background Color'),
6283 - 'default' => '#3e8ef7',
7652 + 'default' => '#0986c0',
6284 7653 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks.active'=> 'background-color:{{val}}', '{{element}} .pagelayer-tabs-holder .pagelayer-tablinks:hover' => 'background-color:{{val}}'],
6285 7654 ),
6286 7655 'tab_title_typo' => array(
6287 7656 'type' => 'typography',
6288 7657 'label' => __pl('tab_title_typo'),
6289 - 'screen' => 1,
6290 7658 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks' => '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;'],
6291 7659 ),
6292 7660 'tabs_icon_align' => array(
6293 7661 'type' => 'radio',
@@ -6313,9 +7681,8 @@
6313 7681 'content_styles' => [
6314 7682 'tabs_content_typo' => array(
6315 7683 'type' => 'typography',
6316 7684 'label' => __pl('tab_content_typo'),
6317 - 'screen' => 1,
6318 7685 'css' => ['{{element}} .pagelayer-tabcontainer' => '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;'],
6319 7686 ),
6320 7687 'tabs_content_color' => array(
6321 7688 'type' => 'color',
@@ -6336,9 +7703,9 @@
6336 7703 'min' => 0,
6337 7704 'max' => 50,
6338 7705 'step' => 1,
6339 7706 'screen' => 1,
6340 - 'css' => ['{{element}}.pagelayer-tabs .pagelayer-tabcontainer [pagelayer-id]' => 'padding: {{val}}px;'],
7707 + 'css' => ['{{element}}.pagelayer-tabs .pagelayer-tabcontainer .pagelayer-tab' => 'padding: {{val}}px;'],
6341 7708 ),
6342 7709 'tabs_content_border_width' => array(
6343 7710 'type' => 'padding',
6344 7711 'label' => __pl('border_width'),
@@ -6372,12 +7739,34 @@
6372 7739 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tab', array(
6373 7740 'name' => __pl('tab'),
6374 7741 'group' => 'other',
6375 7742 'not_visible' => 1,
6376 - 'func' => 'pagelayer_sc_tab',
6377 - 'innerHTML' => 'text',
6378 - '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>',
6379 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 + ),
6380 7769 'default_active' => array(
6381 7770 'type' => 'checkbox',
6382 7771 'label' => __pl('Default active tab'),
6383 7772 'addAttr' => 'pagelayer-default_active="1"'
@@ -6386,21 +7775,20 @@
6386 7775 'type' => 'icon',
6387 7776 'label' => __pl('icon'),
6388 7777 'addAttr' => 'pagelayer-tab-icon="{{tab_icon}}"',
6389 7778 ),
7779 + 'anchor_id' => array(
7780 + 'type' => 'text',
7781 + 'label' => __pl('ele_id'),
7782 + 'addAttr' => 'id="{{anchor_id}}"'
7783 + ),
6390 7784 'title' => array(
6391 7785 'type' => 'text',
6392 7786 'label' => __pl('title'),
6393 7787 'default' => 'Lorem',
6394 - 'addAttr' => 'pagelayer-tab-title="{{title}}"'
7788 + 'addAttr' => 'pagelayer-tab-title="{{title}}"',
7789 + 'edit' => '.pl-tab-title'
6395 7790 ),
6396 - 'text' => array(
6397 - 'type' => 'editor',
6398 - 'label' => __pl('Edit Rich Text'),
6399 - 'default' => 'Lorem ipsum dolor sit amet',
6400 - 'desc' => __pl('Edit the content here or edit directly in the Editor'),
6401 - 'edit' => '.pagelayer-text-holder',
6402 - ),
6403 7791 )
6404 7792 )
6405 7793 );
6406 7794
@@ -6407,9 +7795,8 @@
6407 7795 // Accordion
6408 7796 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
6409 7797 'name' => __pl('accordion'),
6410 7798 'group' => 'other',
6411 - 'func' => 'pagelayer_sc_accordion',
6412 7799 'has_group' => [
6413 7800 'section' => 'params',
6414 7801 'prop' => 'elements'
6415 7802 ],
@@ -6453,9 +7840,9 @@
6453 7840 'type' => 'radio',
6454 7841 'label' => __pl('Alignment'),
6455 7842 'default' => 'left',
6456 7843 'screen' => 1,
6457 - 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
7844 + 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'float:{{val}}'],
6458 7845 'list' => array(
6459 7846 'left' => __pl('left'),
6460 7847 'right' => __pl('right'),
6461 7848 )
@@ -6468,9 +7855,9 @@
6468 7855 'min' => 0,
6469 7856 'max' => 50,
6470 7857 'step' => 1,
6471 7858 'screen' => 1,
6472 - 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'padding:0px {{val}}px; padding-{{icon_align}}:0px;'],
7859 + 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'padding:0px {{val}}px; padding-{{icon_align}}:0px;'],
6473 7860 ),
6474 7861 ],
6475 7862 'tabs_styles' => [
6476 7863 'tabs_color' => array(
@@ -6488,15 +7875,15 @@
6488 7875 'tabs_active_color' => array(
6489 7876 'type' => 'color',
6490 7877 'label' => __pl('Active Tab Color '),
6491 7878 'default' => '#ffffff',
6492 - '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}}'],
6493 7880 ),
6494 7881 'tabs_active_bg_color' => array(
6495 7882 'type' => 'color',
6496 7883 'label' => __pl('Active Tab Background Color '),
6497 - 'default' => '#3e8ef7',
6498 - '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}}'],
6499 7886 ),
6500 7887 'tab_padding' => array(
6501 7888 'type' => 'slider',
6502 7889 'label' => __pl('tabs_padding_label'),
@@ -6522,10 +7909,16 @@
6522 7909 ),
6523 7910 'acc_content_typo' => array(
6524 7911 'type' => 'typography',
6525 7912 'label' => __pl('accordion_content_typo'),
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;'],
7914 + ),
7915 + 'acc_content_padding' => array(
7916 + 'type' => 'padding',
7917 + 'label' => __pl('padding'),
7918 + 'units' => ['px', '%', 'em'],
6526 7919 'screen' => 1,
6527 - '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;'],
7920 + 'css' => ['{{element}} .pagelayer-accordion-panel' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}'],
6528 7921 ),
6529 7922 'acc_border_type' => array(
6530 7923 'type' => 'select',
6531 7924 'label' => __pl('border_type'),
@@ -6556,8 +7949,14 @@
6556 7949 'req' => [
6557 7950 '!acc_border_type' => ''
6558 7951 ],
6559 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 '],
6560 7959 )
6561 7960 ],
6562 7961 'styles' => [
6563 7962 'icon_styles' => __pl('icon'),
@@ -6571,31 +7970,43 @@
6571 7970 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion_item', array(
6572 7971 'name' => __pl('Accordion item'),
6573 7972 'group' => 'other',
6574 7973 'not_visible' => 1,
6575 - 'func' => 'pagelayer_sc_accordion_item',
6576 - 'innerHTML' => 'text',
6577 - 'html' => '<a if="{{title}}" class="pagelayer-accordion-tabs">{{title}}<span class="pagelayer-accordion-icon"><i></i></span></a>
6578 - <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>',
6579 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 + ),
6580 7993 'default_active' => array(
6581 7994 'type' => 'checkbox',
6582 7995 'label' => __pl('Default active tab'),
6583 7996 'addClass' => 'active'
6584 7997 ),
7998 + 'scroll_id' => array(
7999 + 'type' => 'text',
8000 + 'label' => __pl('ele_id'),
8001 + 'addAttr' => ['{{element}} .pagelayer-accordion-tabs' => 'id={{scroll_id}}']
8002 + ),
6585 8003 'title' => array(
6586 8004 'type' => 'text',
6587 8005 'label' => __pl('title'),
6588 8006 'default' => 'Lorem',
6589 - 'desc' => __pl(''),
8007 + 'edit' => '.pagelayer-accordion-title',
6590 8008 ),
6591 - 'text' => array(
6592 - 'type' => 'editor',
6593 - 'label' => __pl('Edit Rich Text'),
6594 - 'default' => 'Lorem ipsum dolor sit amet',
6595 - 'desc' => __pl('Edit the content here or edit directly in the Editor'),
6596 - 'edit' => '.pagelayer-text-holder',
6597 - ),
6598 8009 )
6599 8010 )
6600 8011 );
6601 8012
@@ -6602,9 +8013,8 @@
6602 8013 // Toggle / Collapse
6603 8014 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
6604 8015 'name' => __pl('Collapse'),
6605 8016 'group' => 'other',
6606 - 'func' => 'pagelayer_sc_collapse',
6607 8017 'has_group' => [
6608 8018 'section' => 'params',
6609 8019 'prop' => 'elements'
6610 8020 ],
@@ -6649,9 +8059,9 @@
6649 8059 'type' => 'radio',
6650 8060 'label' => __pl('Alignment'),
6651 8061 'default' => 'left',
6652 8062 'screen' => 1,
6653 - 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
8063 + 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'float:{{val}}'],
6654 8064 'list' => array(
6655 8065 'left' => __pl('left'),
6656 8066 'right' => __pl('right'),
6657 8067 )
@@ -6664,9 +8074,9 @@
6664 8074 'min' => 0,
6665 8075 'max' => 50,
6666 8076 'step' => 1,
6667 8077 'screen' => 1,
6668 - 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'padding:0px {{val}}px; padding-{{icon_align}}:0px;'],
8078 + 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'padding:0px {{val}}px; padding-{{icon_align}}:0px;'],
6669 8079 ),
6670 8080 ],
6671 8081 'tabs_styles' => [
6672 8082 'tabs_color' => array(
@@ -6684,15 +8094,15 @@
6684 8094 'tabs_active_color' => array(
6685 8095 'type' => 'color',
6686 8096 'label' => __pl('Active Tab Color '),
6687 8097 'default' => '#fff',
6688 - '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}}'],
6689 8099 ),
6690 8100 'tabs_active_bg_color' => array(
6691 8101 'type' => 'color',
6692 8102 'label' => __pl('Active Tab Background Color '),
6693 - 'default' => '#3e8ef7',
6694 - '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}}'],
6695 8105 ),
6696 8106 'tab_padding' => array(
6697 8107 'type' => 'slider',
6698 8108 'label' => __pl('tabs_padding_label'),
@@ -6705,9 +8115,8 @@
6705 8115 ),
6706 8116 'collapse_title_typo' => array(
6707 8117 'type' => 'typography',
6708 8118 'label' => __pl('collapsse_title_typo'),
6709 - 'screen' => 1,
6710 8119 'css' => ['{{element}} .pagelayer-accordion-tabs' => '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;'],
6711 8120 ),
6712 8121 ],
6713 8122 'content_styles' => [
@@ -6716,8 +8125,15 @@
6716 8125 'label' => __pl('Background Color '),
6717 8126 'default' => '#ffffff',
6718 8127 'css' => ['{{element}} .pagelayer-accordion_item .pagelayer-accordion-panel'=> 'background-color:{{val}}'],
6719 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 + ),
6720 8136 'acc_border_type' => array(
6721 8137 'type' => 'select',
6722 8138 'label' => __pl('border_type'),
6723 8139 'list' => [
@@ -6749,8 +8165,17 @@
6749 8165 '!acc_border_type' => ''
6750 8166 ],
6751 8167 'css' => ['{{element}} .pagelayer-accordion_item' => 'border-color: {{val}}', '{{element}} .pagelayer-accordion_item .pagelayer-accordion-panel' =>'border-color: {{val}}'],
6752 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 + )
6753 8178 ],
6754 8179 'styles' => [
6755 8180 'icon_style' => __pl('icon'),
6756 8181 'tabs_styles' => __pl('Tabs'),
@@ -6762,9 +8187,8 @@
6762 8187 // Space
6763 8188 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_space', array(
6764 8189 'name' => __pl('space'),
6765 8190 'group' => 'other',
6766 - 'func' => 'pagelayer_sc_space',
6767 8191 'html' => '<div class="pagelayer-space-holder"></div>',
6768 8192 'params' => array(
6769 8193 'height' => array(
6770 8194 'type' => 'slider',
@@ -6769,9 +8193,9 @@
6769 8193 'height' => array(
6770 8194 'type' => 'slider',
6771 8195 'label' => __pl('Space Height'),
6772 8196 'screen' => 1,
6773 - 'units' => ['px', '%'],
8197 + 'units' => ['px', 'em'],
6774 8198 'css' => ['{{element}} .pagelayer-space-holder' => 'height: {{val}};'],
6775 8199 'default' => '10',
6776 8200 'min' => 0,
6777 8201 'max' => 1000,
@@ -6784,9 +8208,8 @@
6784 8208 // Embed
6785 8209 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_embed', array(
6786 8210 'name' => __pl('embed'),
6787 8211 'group' => 'other',
6788 - 'func' => 'pagelayer_sc_embed',
6789 8212 'innerHTML' => 'data',
6790 8213 'html' => '<div if={{data}} class="pagelayer-embed-container">{{data}}</div>',
6791 8214 'params' => array(
6792 8215 'data' => array(
@@ -6791,9 +8214,9 @@
6791 8214 'params' => array(
6792 8215 'data' => array(
6793 8216 'type' => 'textarea',
6794 8217 'label' => __pl('embed_paste_code'),
6795 - 'default' => '<p>Paste HTML code here...</P>',
8218 + 'default' => '<p>Paste HTML code here...</p>',
6796 8219 'desc' => '',
6797 8220 ),
6798 8221 )
6799 8222 )
@@ -6802,9 +8225,9 @@
6802 8225 // Shortcodes
6803 8226 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_shortcodes', array(
6804 8227 'name' => __pl('shortcodes'),
6805 8228 'group' => 'other',
6806 - 'func' => 'pagelayer_sc_shortcodes',
8229 + 'no_gt' => 1,
6807 8230 'innerHTML' => 'data',
6808 8231 'holder' => '.pagelayer-shortcodes-container',
6809 8232 'html' => '<div class="pagelayer-shortcodes-container">{{{shortcode}}}</div>',
6810 8233 'params' => array(
@@ -6816,24 +8239,232 @@
6816 8239 )
6817 8240 )
6818 8241 );
6819 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 +
6820 8267 // Google Maps
6821 8268 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_google_maps', array(
6822 - 'name' => __pl('Google Maps'),
8269 + 'name' => __pl('google_maps'),
6823 8270 'group' => 'other',
6824 - 'func' => 'pagelayer_sc_google_maps',
6825 8271 'innerHTML' => 'address',
6826 8272 'html' => '<div class="pagelayer-google-maps-holder">
6827 - <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}}
6828 8275 </div>',
6829 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 + ),
6830 8306 'address' => array(
6831 8307 'type' => 'text',
6832 8308 'label' => __pl('google_map_address_label'),
6833 8309 'default' => 'New York, New York, USA',
6834 - 'desc' => __pl('google_map_address_desc')
8310 + 'desc' => __pl('google_map_address_desc'),
8311 + 'req' => ['!map_modes' => 'search']
6835 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 + ),
6836 8467 'noscroll' => array(
6837 8468 'type' => 'checkbox',
6838 8469 'label' => __pl('google_map_noscroll'),
6839 8470 'css' => ['{{element}} iframe' => 'pointer-events: none;'],
@@ -6842,9 +8473,9 @@
6842 8473 'type' => 'slider',
6843 8474 'label' => __pl('google_map_zoom_label'),
6844 8475 'default' => 10,
6845 8476 'min' => 0,
6846 - 'max' => 20
8477 + 'max' => 21
6847 8478 ),
6848 8479 'height' => array(
6849 8480 'type' => 'slider',
6850 8481 'label' => __pl('google_map_height'),
@@ -6861,18 +8492,17 @@
6861 8492 // Testimonial
6862 8493 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
6863 8494 'name' => __pl('testimonial'),
6864 8495 'group' => 'other',
6865 - 'func' => 'pagelayer_sc_testimonial',
6866 8496 'innerHTML' => 'quote_content',
6867 8497 'html' => '<div if="{{quote_content}}" class="pagelayer-testimonial-content">{{quote_content}}</div>
6868 8498 <div class="pagelayer-testimonial-author-details">
6869 - <div class="pagelayer-{{image_position}}">
6870 - <img if="{{avatar}}" class="pagelayer-img 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}}}"/>
6871 8501 </div>
6872 8502 <div class="pagelayer-{{image_position}}">
6873 8503 <div if="{{cite}}" class="pagelayer-testimonial-cite">
6874 - <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}}}">
6875 8505 <span class="pagelayer-testimonial-author">{{cite}}</span>
6876 8506 </a>
6877 8507 <span if="{{designation}}" class="pagelayer-testimonial-author-title">
6878 8508 {{designation}}
@@ -6916,9 +8546,8 @@
6916 8546 'content_style' => [
6917 8547 'quote_content' => array(
6918 8548 'type' => 'editor',
6919 8549 'label' => __pl('testimonial_content_label'),
6920 - 'text' => __pl('Edit Testimonial content'),
6921 8550 'edit' => '.pagelayer-testimonial-content',
6922 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.'
6923 8552 )
6924 8553 ],
@@ -6925,10 +8554,11 @@
6925 8554 'avatar_style' => [
6926 8555 'avatar' => array(
6927 8556 'type' => 'image',
6928 8557 'label' => __pl('testimonial_image_label'),
8558 + 'default' => PAGELAYER_URL.'/images/default-image.png',
6929 8559 'desc' => __pl('testimonial_image_desc'),
6930 - 'default' => PAGELAYER_URL.'/images/default-image.png',
8560 + 'ai' => false,
6931 8561 ),
6932 8562 'testimonial_image_size' => array(
6933 8563 'label' => __pl('testimonial_image_sizes'),
6934 8564 'type' => 'slider',
@@ -6988,8 +8618,9 @@
6988 8618 'label' => __pl('testimonial_cite_label'),
6989 8619 'default' => 'John Smith',
6990 8620 'desc' => __pl('testimonial_cite_desc'),
6991 8621 'edit' => '.pagelayer-testimonial-author',
8622 + 'ai' => false,
6992 8623 ),
6993 8624 'cite_color' => array(
6994 8625 'type' => 'color',
6995 8626 'label' => __pl('testimonial_name_color_label'),
@@ -6999,15 +8630,14 @@
6999 8630 'cite_style' => array(
7000 8631 'type' => 'typography',
7001 8632 'label' => __pl('cite_style'),
7002 8633 'default' => ',20,,100,,none,,,,,',
7003 - 'screen' => 1,
7004 8634 'css' => ['{{element}} .pagelayer-testimonial-author' => '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;'],
7005 8635 ),
7006 8636 'cite_url' => array(
7007 8637 'type' => 'link',
7008 8638 'label' => __pl('testimonial_url_label'),
7009 - 'default' => '',
8639 + 'selector' => '.pagelayer-ele-link',
7010 8640 'desc' => __pl('testimonial_url_desc'),
7011 8641 ),
7012 8642 'cite_spacing' => array(
7013 8643 'type' => 'padding',
@@ -7033,9 +8663,8 @@
7033 8663 'cite_designation_style' => array(
7034 8664 'type' => 'typography',
7035 8665 'label' => __pl('cite_designation_style'),
7036 8666 'default' => ',16,,100,,,,,,,',
7037 - 'screen' => 1,
7038 8667 'css' => ['{{element}} .pagelayer-testimonial-author-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;'],
7039 8668 ),
7040 8669 ],
7041 8670 'styles' => [
@@ -7051,11 +8680,14 @@
7051 8680 // Progress object - Make a group
7052 8681 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_progress', array(
7053 8682 'name' => __pl('Progress Bars'),
7054 8683 'group' => 'other',
7055 - 'func' => 'pagelayer_sc_progress',
7056 8684 'innerHTML' => 'progress_text',
7057 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>
7058 8690 <div class="pagelayer-progress-container">
7059 8691 <div if="{{progress_percentage}}" class="pagelayer-progress-bar pagelayer-progress-{{progress_type}}" style="width:{{progress_percentage}}%;">
7060 8692 <span if="{{progress_text}}" class="pagelayer-progress-text">{{progress_text}}</span>
7061 8693 <span if="{{progress_percentage}}" class="pagelayer-progress-percent"></span>
@@ -7077,12 +8709,18 @@
7077 8709 ),
7078 8710 'progress_color' => array(
7079 8711 'type' => 'color',
7080 8712 'label' => __pl('progress_bar_color'),
7081 - 'default' => '#3e8ef7',
8713 + 'default' => '#0986c0',
7082 8714 'css' => ['{{element}} .pagelayer-progress-bar' => 'background-color:{{val}};'],
7083 8715 'req' => ['progress_type' => '']
7084 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 + ),
7085 8723 'progress_height' => array(
7086 8724 'type' => 'slider',
7087 8725 'label' => __pl('progress_height'),
7088 8726 'min' => 0,
@@ -7094,8 +8732,41 @@
7094 8732 '{{element}} .pagelayer-progress-text' => 'line-height:{{val}}px; font-size: calc({{val}}px / 2);',
7095 8733 ],
7096 8734 'default' => 40,
7097 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 + )
7098 8769 ),
7099 8770 // Styles
7100 8771 'heading_style' => [
7101 8772 'title' => array(
@@ -7101,8 +8772,9 @@
7101 8772 'title' => array(
7102 8773 'type' => 'text',
7103 8774 'label' => __pl('progress_title'),
7104 8775 'default' => 'Progress',
8776 + 'edit' => '.pagelayer-progress-title',
7105 8777 ),
7106 8778 'title_color' => array(
7107 8779 'type' => 'color',
7108 8780 'label' => __pl('title_color'),
@@ -7108,13 +8780,23 @@
7108 8780 'label' => __pl('title_color'),
7109 8781 'default' => '#768589',
7110 8782 'css' => ['{{element}} .pagelayer-progress-title' => 'color:{{val}};'],
7111 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 + ),
7112 8795 'title_style' => array(
7113 8796 'type' => 'typography',
7114 8797 'label' => __pl('title_size'),
7115 8798 'default' => ',25,,100,,,,,,,',
7116 - 'screen' => 1,
7117 8799 'css' => ['{{element}} .pagelayer-progress-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;'],
7118 8800 ),
7119 8801 ],
7120 8802 'percentage_style' => [
@@ -7121,8 +8803,9 @@
7121 8803 'progress_text'=> array(
7122 8804 'type' => 'text',
7123 8805 'label' => __pl('progress_text'),
7124 8806 'default' => 'Designing',
8807 + 'edit' => '.pagelayer-progress-text',
7125 8808 ),
7126 8809 'progress_text_color' => array(
7127 8810 'type' => 'color',
7128 8811 'label' => __pl('progress_text_color'),
@@ -7133,9 +8816,8 @@
7133 8816 'type' => 'slider',
7134 8817 'label' => __pl('percentage'),
7135 8818 'min' => 0,
7136 8819 'max' => 100,
7137 - 'screen' => 1,
7138 8820 'css' => ['{{element}} .pagelayer-progress-container > .pagelayer-progress-bar:after' => 'width:{{val}}%;',],
7139 8821 'addAttr' => ['{{element}} .pagelayer-progress-bar' => 'pagelayer-progress-width="{{progress_percentage}}"'],
7140 8822 'default' => 75,
7141 8823 ),
@@ -7152,11 +8834,39 @@
7152 8834 'default' => '',
7153 8835 'css' => ['{{element}} .pagelayer-progress-percent' => 'display: none;']
7154 8836 ),
7155 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 + ],
7156 8865 'styles' => [
7157 8866 'heading_style' => __pl('heading_style'),
7158 8867 'percentage_style' => __pl('percentage'),
8868 + 'progress_prefix_suffix' => __pl('prefix_suffix'),
7159 8869 ]
7160 8870 )
7161 8871 );
7162 8872
@@ -7163,9 +8873,8 @@
7163 8873 // Color Block
7164 8874 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_block', array(
7165 8875 'name' => __pl('Color Block'),
7166 8876 'group' => 'other',
7167 - 'func' => 'pagelayer_sc_block',
7168 8877 'params' => array(
7169 8878 'block_color' => array(
7170 8879 'type' => 'color',
7171 8880 'label' => __pl('block_color'),
@@ -7189,14 +8898,13 @@
7189 8898 // Alert
7190 8899 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_alert', array(
7191 8900 'name' => __pl('Alert'),
7192 8901 'group' => 'other',
7193 - 'func' => 'pagelayer_sc_alert',
7194 8902 'innerHTML' => 'alert_content',
7195 8903 'html' => '<div class="pagelayer-alert-content">
7196 8904 <i if="{{alert_icon}}" class="pagelayer-alert-icon {{alert_icon}}"></i>
7197 8905 <div if="{{alert_title}}" class="pagelayer-alert-title">{{alert_title}}</div>
7198 - <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>
7199 8907 </div>
7200 8908 <span if="{{alert_content}}" class="pagelayer-alert-text">{{alert_content}}</span>',
7201 8909 'params' => array(
7202 8910 'alert_type' => array(
@@ -7243,9 +8951,9 @@
7243 8951 'label' => __pl('alert_font_size'),
7244 8952 'type' => 'slider',
7245 8953 'min' => 0,
7246 8954 'max' => 500,
7247 - 'default' => 30,
8955 + 'default' => 20,
7248 8956 'screen' => 1,
7249 8957 'css' => ['{{element}} .pagelayer-alert-icon' => 'font-size:{{val}}px;'],
7250 8958 ),
7251 8959 'alert_icon_spacing' => array(
@@ -7274,9 +8982,8 @@
7274 8982 'title_typo' => array(
7275 8983 'type' => 'typography',
7276 8984 'label' => __pl('title_typo'),
7277 8985 'default' => ',22,,600,,,,,,,',
7278 - 'screen' => 1,
7279 8986 'css' => ['{{element}} .pagelayer-alert-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;'],
7280 8987 ),
7281 8988 ],
7282 8989 'content_style' => [
@@ -7297,9 +9004,8 @@
7297 9004 'content_typo' => array(
7298 9005 'type' => 'typography',
7299 9006 'label' => __pl('title_typo'),
7300 9007 'default' => ',13,,,,,,,,,',
7301 - 'screen' => 1,
7302 9008 'css' => ['{{element}} .pagelayer-alert-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;'],
7303 9009 ),
7304 9010 ],
7305 9011 'styles' => [
@@ -7313,9 +9019,8 @@
7313 9019 // Anchor
7314 9020 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_anchor', array(
7315 9021 'name' => __pl('Anchor'),
7316 9022 'group' => 'other',
7317 - 'func' => 'pagelayer_sc_anchor',
7318 9023 'html' => '<div id="{{title}}" class="pagelayer-anchor-holder"></div>',
7319 9024 'params' => array(
7320 9025 'title' => array(
7321 9026 'type' => 'text',
@@ -7329,9 +9034,8 @@
7329 9034 // Star object
7330 9035 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_stars', array(
7331 9036 'name' => __pl('Stars'),
7332 9037 'group' => 'other',
7333 - 'func' => 'pagelayer_sc_stars',
7334 9038 'html' => '<span if="{{rating_title}}" class="pagelayer-stars-title">{{rating_title}}</span>
7335 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}}">
7336 9040 </div>',
7337 9041 'params' => array(
@@ -7366,14 +9070,15 @@
7366 9070 'title_style' => [
7367 9071 'rating_title' => array(
7368 9072 'type' => 'text',
7369 9073 'label' => __pl('rating_title'),
7370 - 'default' => 'Rate us',
9074 + 'default' => 'Rate us',
9075 + 'edit' => '.pagelayer-stars-title',
7371 9076 ),
7372 9077 'title_color' => array(
7373 9078 'type' => 'color',
7374 9079 'label' => __pl('title_color'),
7375 - 'default' => '#3e8ef7',
9080 + 'default' => '#0986c0',
7376 9081 'css' => ['{{element}} .pagelayer-stars-title' => 'color: {{val}}'],
7377 9082 ),
7378 9083 'title_style' => array(
7379 9084 'type' => 'typography',
@@ -7378,9 +9083,8 @@
7378 9083 'title_style' => array(
7379 9084 'type' => 'typography',
7380 9085 'label' => __pl('counter_number_size'),
7381 9086 'default' => ',25,,600,,,solid,,,,',
7382 - 'screen' => 1,
7383 9087 'css' => ['{{element}} .pagelayer-stars-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;'],
7384 9088 ),
7385 9089 ],
7386 9090 'stars_style' => [
@@ -7386,9 +9090,9 @@
7386 9090 'stars_style' => [
7387 9091 'stars_color' => array(
7388 9092 'type' => 'color',
7389 9093 'label' => __pl('stars_color'),
7390 - 'default' => '#3e8ef7',
9094 + 'default' => '#0986c0',
7391 9095 'css' => ['{{element}} .pagelayer-stars-icon:before' => 'color: {{val}}'],
7392 9096 ),
7393 9097 'unmarked_stars_color' => array(
7394 9098 'type' => 'color',
@@ -7425,9 +9129,8 @@
7425 9129 // Divider
7426 9130 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_divider', array(
7427 9131 'name' => __pl('Divider'),
7428 9132 'group' => 'other',
7429 - 'func' => 'pagelayer_sc_divider',
7430 9133 'html' => '<div class="pagelayer-divider-holder">
7431 9134 <span class="pagelayer-divider-seperator"></span>
7432 9135 </div>',
7433 9136 'params' => array(
@@ -7496,9 +9199,8 @@
7496 9199 // Counter
7497 9200 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_counter', array(
7498 9201 'name' => __pl('Counter'),
7499 9202 'group' => 'other',
7500 - 'func' => 'pagelayer_sc_counter',
7501 9203 'html' => '<div class="pagelayer-counter-holder">
7502 9204 <div if="{{counter_start_number}}" class="pagelayer-counter-content">
7503 9205 <span if="{{number_prefix}}">{{number_prefix}}</span><span class="pagelayer-counter-display">{{counter_start_number}}</span><span if="{{number_suffix}}">{{number_suffix}}</span>
7504 9206 </div>
@@ -7544,9 +9246,9 @@
7544 9246 'counter_style' => [
7545 9247 'counter_number_color' => array(
7546 9248 'type' => 'color',
7547 9249 'label' => __pl('counter_number_color_label'),
7548 - 'default' => '#3E8EF7',
9250 + 'default' => '#0986c0',
7549 9251 'css' => ['{{element}} .pagelayer-counter-content' => 'color:{{val}};'],
7550 9252 ),
7551 9253 'number_prefix' => array(
7552 9254 'type' => 'text',
@@ -7578,9 +9280,8 @@
7578 9280 'counter_number_style' => array(
7579 9281 'type' => 'typography',
7580 9282 'label' => __pl('counter_number_size'),
7581 9283 'default' => ',60,,600,,,solid,,,,',
7582 - 'screen' => 1,
7583 9284 'css' => ['{{element}} .pagelayer-counter-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;'],
7584 9285 ),
7585 9286 ],
7586 9287 'counter_label_style' => [
@@ -7599,9 +9300,8 @@
7599 9300 'counter_text_style' => array(
7600 9301 'type' => 'typography',
7601 9302 'label' => __pl('counter_text_style'),
7602 9303 'default' => ',25,,400,,,solid,,,,',
7603 - 'screen' => 1,
7604 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;'],
7605 9305 ),
7606 9306 ],
7607 9307 'styles' => [
@@ -7610,17 +9310,237 @@
7610 9310 ],
7611 9311 )
7612 9312 );
7613 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 +);
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 +);
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 +
7614 9533 // Body Settings
7615 9534 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_post_props', array(
7616 9535 'name' => __pl('Body and Post Props'),
7617 9536 'group' => 'other',
7618 - 'func' => 'pagelayer_sc_body',
7619 9537 'not_visible' => 1,
7620 - 'overide_css_selector' => 'body',
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.
7621 9540 'hide_active' => 1,
7622 - 'skip_props_cat' => ['position_styles', 'animation_styles', 'responsive_styles'],
9541 + 'skip_props_cat_type' => ['product' => ['custom_hf_code']],
9542 + 'skip_props_cat' => ['position_styles', 'animation_styles', 'responsive_styles', 'motion_effects'],
7623 9543 'skip_props' => ['ele_zindex',
7624 9544 'ele_shadow', 'border_shadow_hover',
7625 9545 'hide_desktop', 'hide_tablet', 'hide_mobile'],
7626 9546 'params' => array(
@@ -7627,38 +9547,1765 @@
7627 9547 'post_title' => array(
7628 9548 'type' => 'text',
7629 9549 'label' => __pl('post_title'),
7630 9550 'default' => (empty($post->post_title) ? 'No Title' : $post->post_title),
9551 + 'export-def' => 1,
7631 9552 ),
7632 - 'post_name' => array(
7633 - 'type' => 'text',
7634 - 'label' => __pl('post_name'),
7635 - 'default' => (empty($post->post_name) ? 'no-slug' : $post->post_name),
7636 - ),
7637 9553 'post_status' => array(
7638 9554 'type' => 'select',
7639 - 'label' => __pl('post_status'),
9555 + 'label' => __pl('visibility'),
9556 + 'default' => (empty($post->post_status) ? 'draft' : $post->post_status),
9557 + 'export-def' => 1,
7640 9558 'list' => [
7641 9559 'publish' => __pl('Published'),
7642 - 'draft' => __pl('Draft'),
9560 + 'future' => __pl('Scheduled'),
9561 + 'private' => __pl('private'),
9562 + 'pass_protected' => __pl('password_protected'),
9563 + 'draft' => __pl('Draft')
7643 9564 ],
7644 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(
7645 9619 'featured_image' => array(
7646 - 'label' => __pl('featured_image'),
7647 - 'desc' => __pl('featured_image_desc'),
7648 9620 'type' => 'image',
7649 - 'default' => PAGELAYER_URL.'/images/default-image.png',
9621 + 'label' => '',
9622 + 'default' => ( get_post_thumbnail_id($post) ? get_post_thumbnail_id($post) : PAGELAYER_URL.'/images/default-image.png' ),
9623 + 'export-def' => 1,
7650 9624 ),
9625 + ),
9626 + 'postExcerpt' => array(
7651 9627 'post_excerpt' => array(
7652 9628 'type' => 'textarea',
7653 - 'label' => __pl('excerpt'),
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'),
7654 9638 ),
9639 + 'ping_status' => array(
9640 + 'type' => 'checkbox',
9641 + 'label' => __pl('allow_p_and_t'),
9642 + )
7655 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 + ),
7656 9665 )
7657 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 +);
7658 9676
9677 +if(class_exists('WooCommerce')){
9678 + $pagelayer->customizer_styles_options['woocommerce'] = __pl('woocommerce');
9679 +}
7659 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 + )
7660 11304
11305 +);
11306 +*/
11307 +
7661 11308 ////////////////////////
7662 11309 // WordPress Group
7663 11310 ////////////////////////
7664 11311
@@ -7681,9 +11328,9 @@
7681 11328 // Widgets Area
7682 11329 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_widgets', array(
7683 11330 'name' => __pl('Sidebars / Widget Area'),
7684 11331 'group' => 'wordpress',
7685 - 'func' => 'pagelayer_sc_wp_widgets',
11332 + 'no_gt' => 1,
7686 11333 'html' => '<div class="pagelayer-wp-sidebar-title">{{title}}</div>
7687 11334 <div class="pagelayer-wp-sidebar-holder">{{{data}}}</div>',
7688 11335 'params' => array(
7689 11336 'title' => array(
@@ -7689,15 +11336,15 @@
7689 11336 'title' => array(
7690 11337 'type' => 'text',
7691 11338 'label' => __pl('parameters_title'),
7692 11339 'default' => 'Title',
7693 - 'desc' => __pl('wp_widgets_area_description')
11340 + 'desc' => __pl('wp_widgets_area_description'),
11341 + 'edit' => '.pagelayer-wp-sidebar-title',
7694 11342 ),
7695 11343 'sidebar' => array(
7696 11344 'type' => 'select',
7697 11345 'label' => __pl('wp_widgets_area_select'),
7698 11346 'default' => $pagelayer_wp_widget_default,
7699 - 'desc' => '',
7700 11347 'list' => $pagelayer_wp_widgets
7701 11348 )
7702 11349 )
7703 11350 )
@@ -7709,23 +11356,35 @@
7709 11356 // Include the widgets
7710 11357 //include_once(ABSPATH . 'wp-admin/includes/widgets.php');
7711 11358
7712 11359 //pagelayer_print($GLOBALS['wp_widget_factory']->widgets);die();
7713 -
11360 +
11361 +$wp_hidden_shortcode = array('media_audio', 'media_gallery', 'media_image', 'media_video');
11362 +
7714 11363 foreach($GLOBALS['wp_widget_factory']->widgets as $widget_key => $widget){
7715 11364
7716 - pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_'.$widget->id_base, array(
7717 - 'name' => $widget->name,
7718 - 'group' => 'wordpress',
7719 - 'func' => 'pagelayer_does_not_exist',
7720 - 'innerHTML' => 'widget_data',
7721 - '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,
11376 + )
7722 11377 )
7723 11378 );
7724 11379
11380 + if(in_array($widget->id_base, $wp_hidden_shortcode)){
11381 + $wp_shortcode['not_visible'] = 1;
11382 + }
11383 +
11384 + pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_'.$widget->id_base, $wp_shortcode);
11385 +
7725 11386 }
7726 11387 //}
7727 11388
7728 -// Its premium
7729 -if(defined('PAGELAYER_PREMIUM')){
7730 - include_once(dirname(__FILE__).'/premium.php');
7731 -}
11389 +// Apply filter to load custom widgets after shortcodes
11390 +do_action('pagelayer_after_add_shortcode');