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 +4494 -534 1.0.2 → 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,
@@ -393,9 +670,9 @@
393 670 ],
394 671 'ele_bg_gradient' => [
395 672 'type' => 'gradient',
396 673 'label' => '',
397 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
674 + 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
398 675 'css' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);',
399 676 'show' => ['ele_bg_hover' => ''],
400 677 'req' => ['ele_bg_type' => 'gradient']
401 678 ],
@@ -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}};'],
@@ -539,9 +816,9 @@
539 816 ],
540 817 'ele_bg_gradient_hover' => [
541 818 'type' => 'gradient',
542 819 'label' => '',
543 - 'default' => '150,#44d3f6ff,25,#72e584ff,75,#2ca4ebff,100',
820 + 'default' => '150,#44d3f6,25,#72e584,75,#2ca4eb,100',
544 821 'css' => ['{{element}}:hover' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
545 822 'show' => ['ele_bg_hover' => 'hover'],
546 823 'req' => ['ele_bg_type_hover' => 'gradient']
547 824 ],
@@ -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,19 +1037,157 @@
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'] = [
1175 + 'ele_custom_pos' => array(
1176 + 'type' => 'checkbox',
1177 + 'label' => __pl('enable'),
1178 + ),
765 1179 'ele_width' => [
766 1180 'type' => 'select',
767 1181 'label' => __pl('width'),
768 1182 'screen' => 1,
769 - 'css' => ['{{wrap}}' => 'width:{{val}};'],
1183 + 'css' => ['{{wrap}}' => 'width:{{val}} !important;'],
770 1184 'list' => [
771 - 'auto' => __pl('default'),
1185 + 'initial' => __pl('default'),
772 1186 '100%' => __pl('full'),
773 1187 '' => __pl('custom'),
774 - ]
1188 + ],
1189 + 'req' => ['ele_custom_pos' => 'true']
775 1190 ],
776 1191 'ele_custom_width' => [
777 1192 'type' => 'slider',
778 1193 'label' => __pl('custom_width'),
@@ -777,14 +1192,15 @@
777 1192 'type' => 'slider',
778 1193 'label' => __pl('custom_width'),
779 1194 'screen' => 1,
780 1195 'units' => ['px','%','vw'],
781 - 'css' => ['{{wrap}}' => 'width:{{val}};'],
1196 + 'css' => ['{{wrap}}' => 'width:{{val}} !important;'],
782 1197 'min' => 0,
783 1198 'max' => 1000,
784 1199 'step' => 1,
785 1200 'req' => [
786 - 'ele_width' => ''
1201 + 'ele_width' => '',
1202 + 'ele_custom_pos' => 'true'
787 1203 ]
788 1204 ],
789 1205 'ele_align' => [
790 1206 'type' => 'select',
@@ -790,16 +1206,17 @@
790 1206 'type' => 'select',
791 1207 'label' => __pl('alignment'),
792 1208 'default' => 'margin',
793 1209 'screen' => 1,
794 - 'css' => ['{{wrap}}' => '{{val}}:auto;'],
1210 + 'css' => ['{{wrap}}' => 'position:relative; left:{{val}}; transform:translateX(-{{val}});'],
795 1211 'list' => [
796 - 'margin-right' => __pl('left'),
797 - 'margin' => __pl('center'),
798 - 'margin-left' => __pl('right'),
1212 + '0%' => __pl('left'),
1213 + '50%' => __pl('center'),
1214 + '100%' => __pl('right'),
799 1215 ],
800 1216 'req' => [
801 - 'ele_width' => ''
1217 + 'ele_width' => '',
1218 + 'ele_custom_pos' => 'true'
802 1219 ]
803 1220 ],
804 1221 'ele_height' => [
805 1222 'type' => 'select',
@@ -810,9 +1227,10 @@
810 1227 'list' => [
811 1228 'auto' => __pl('default'),
812 1229 '100%' => __pl('full'),
813 1230 '' => __pl('custom'),
814 - ]
1231 + ],
1232 + 'req' => ['ele_custom_pos' => 'true']
815 1233 ],
816 1234 'ele_custom_height' => [
817 1235 'type' => 'slider',
818 1236 'label' => __pl('custom_height'),
@@ -822,9 +1240,10 @@
822 1240 'min' => 0,
823 1241 'max' => 1000,
824 1242 'step' => 1,
825 1243 'req' => [
826 - 'ele_height' => ''
1244 + 'ele_height' => '',
1245 + 'ele_custom_pos' => 'true'
827 1246 ]
828 1247 ],
829 1248 'ele_position' => [
830 1249 'type' => 'select',
@@ -830,15 +1249,16 @@
830 1249 'type' => 'select',
831 1250 'label' => __pl('position'),
832 1251 'default' => '',
833 1252 'screen' => 1,
834 - 'css' => ['{{wrap}}' => 'position:{{val}} !important; z-index:1;'],
1253 + 'css' => ['{{wrap}}' => 'position:{{val}} !important; z-index: 1; transform: translateX(-0%);'],
835 1254 'list' => [
836 1255 '' => __pl('default'),
837 1256 'absolute' => __pl('absolute'),
838 1257 'fixed' => __pl('fixed'),
839 1258 'relative' => __pl('relative'),
840 - ]
1259 + ],
1260 + 'req' => ['ele_custom_pos' => 'true']
841 1261 ],
842 1262 'ele_vposition' => [
843 1263 'type' => 'select',
844 1264 'label' => __pl('verticle_pos'),
@@ -849,9 +1269,10 @@
849 1269 'top' => __pl('top'),
850 1270 'bottom' => __pl('bottom')
851 1271 ],
852 1272 'req' => [
853 - '!ele_position' => ''
1273 + '!ele_position' => '',
1274 + 'ele_custom_pos' => 'true'
854 1275 ]
855 1276 ],
856 1277 'ele_vposition_offset' => [
857 1278 'type' => 'slider',
@@ -864,9 +1285,10 @@
864 1285 'max' => 1000,
865 1286 'step' => 1,
866 1287 'req' => [
867 1288 '!ele_vposition' => '',
868 - '!ele_position' => ''
1289 + '!ele_position' => '',
1290 + 'ele_custom_pos' => 'true'
869 1291 ]
870 1292 ],
871 1293 'ele_hposition' => [
872 1294 'type' => 'select',
@@ -878,9 +1300,10 @@
878 1300 'left' => __pl('left'),
879 1301 'right' => __pl('right')
880 1302 ],
881 1303 'req' => [
882 - '!ele_position' => ''
1304 + '!ele_position' => '',
1305 + 'ele_custom_pos' => 'true'
883 1306 ]
884 1307 ],
885 1308 'ele_hposition_offset' => [
886 1309 'type' => 'slider',
@@ -893,9 +1316,10 @@
893 1316 'max' => 1000,
894 1317 'step' => 1,
895 1318 'req' => [
896 1319 '!ele_hposition' => '',
897 - '!ele_position' => ''
1320 + '!ele_position' => '',
1321 + 'ele_custom_pos' => 'true'
898 1322 ]
899 1323 ]
900 1324 ];
901 1325
@@ -968,8 +1392,655 @@
968 1392 'wobble-bottom' => __pl('Wobble Bottom'),
969 1393 'wobble-skew' => __pl('Wobble Skew'),
970 1394 ],
971 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']
972 2043 )
973 2044 ];
974 2045
975 2046 // Resposive stuff
@@ -990,8 +2061,19 @@
990 2061 'addClass' => 'pagelayer-hide-mobile'
991 2062 ],
992 2063 ];
993 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 +
994 2076 // Custom stuff
995 2077 $pagelayer->styles['custom_styles'] = [
996 2078 'ele_id' => [
997 2079 'type' => 'text',
@@ -1023,16 +2105,16 @@
1023 2105 // ROW object
1024 2106 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_row', array(
1025 2107 'name' => __pl('row'),
1026 2108 'group' => 'grid',
1027 - 'func' => 'pagelayer_sc_row',
1028 2109 'skip_props_cat' => ['position_styles'],
2110 + 'skip_props' => ['ele_sticky_in_container'],
1029 2111 'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
1030 2112 <div if="{{bg_slider}}" class="pagelayer-bgimg-slider">
1031 2113 {{slider}}
1032 2114 </div>
1033 2115 <div if="{{parallax_img}}" class="pagelayer-parallax-window">
1034 - <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}}}">
1035 2117 </div>
1036 2118 <div if="{{row_shape_position}}" class="pagelayer-row-shape">
1037 2119 <div class="pagelayer-row-svg">
1038 2120 <svg if="{{row_shape_type_top}}" class="pagelayer-svg-top">{{svg_top}}</svg>
@@ -1060,9 +2142,10 @@
1060 2142 'default' => 500,
1061 2143 'min' => 300,
1062 2144 'max' => 3000,
1063 2145 'step' => 1,
1064 - 'css' => ['{{element}}' => 'max-width: {{val}}px; margin-left: auto !important; margin-right: auto !important;'],
2146 + 'units' => [ 'px', '%', 'vw' ],
2147 + 'css' => ['{{element}}' => 'max-width: {{val}}; margin-left: auto !important; margin-right: auto !important;'],
1065 2148 'req' => array(
1066 2149 'stretch' => 'fixed'
1067 2150 )
1068 2151 ),
@@ -1071,8 +2154,9 @@
1071 2154 'label' => __pl('col_gap'),
1072 2155 'default' => 10,
1073 2156 'min' => 0,
1074 2157 'step' => 1,
2158 + 'screen' => 1,
1075 2159 'max' => 1000,
1076 2160 'css' => ['{{element}} .pagelayer-col-holder' => 'padding: {{val}}px;'],
1077 2161 ),
1078 2162 'width_content' => array(
@@ -1086,14 +2170,15 @@
1086 2170 )
1087 2171 ),
1088 2172 'fixed_width' => array(
1089 2173 'type' => 'slider',
1090 - 'label' => __pl('fixed_width'),
2174 + 'label' => __pl('fixed_con_width'),
1091 2175 'default' => 500,
1092 - 'min' => 300,
2176 + 'min' => 1,
1093 2177 'max' => 3000,
1094 - 'step' => 1,
1095 - 'css' => ['{{element}} .pagelayer-row-holder' => 'max-width: {{val}}px; margin-left: auto; margin-right: auto;'],
2178 + 'screen' => 1,
2179 + 'units' => [ 'px', '%', 'vw' ],
2180 + 'css' => ['{{element}}>.pagelayer-row-holder' => 'max-width: {{val}}; margin-left: auto; margin-right: auto;'],
1096 2181 'req' => array(
1097 2182 'width_content' => 'fixed'
1098 2183 )
1099 2184 ),
@@ -1112,40 +2197,26 @@
1112 2197 'type' => 'slider',
1113 2198 'label' => __pl('min_height'),
1114 2199 'min' => 0,
1115 2200 'max' => 2000,
1116 - 'step' => 1,
1117 - 'css' => 'min-height: {{val}}px;',
2201 + 'screen' => 1,
2202 + 'units' => ['px', 'vh', 'vw'],
2203 + 'css' => 'min-height: {{val}};',
1118 2204 'req' => array(
1119 2205 'row_height' => 'custom'
1120 2206 )
1121 2207 ),
1122 - 'column_pos' => array(
2208 + 'content_pos' => array(
1123 2209 'type' => 'select',
1124 - 'label' => __pl('column_pos'),
1125 - 'default' => 'default',
1126 - 'css' => ['{{element}}' => '-webkit-box-align: {{val}}; -webkit-align-items: {{val}}; -ms-flex-align: {{val}}; align-items: {{val}};'],
2210 + 'label' => __pl('content_pos'),
2211 + 'css' => ['{{element}}>.pagelayer-row-holder .pagelayer-col' => 'align-content: {{val}};'],
1127 2212 'list' => array(
1128 2213 '' => __pl('default'),
1129 2214 'flex-start' => __pl('top'),
1130 2215 'center' => __pl('center'),
1131 2216 'flex-end' => __pl('bottom'),
1132 - 'stretch' => __pl('Stretch')
1133 2217 ),
1134 2218 ),
1135 - 'content_pos' => array(
1136 - 'type' => 'select',
1137 - 'label' => __pl('content_pos'),
1138 - 'default' => 'default',
1139 - 'css' => ['{{element}} .pagelayer-row-holder' => '-webkit-box-align: {{val}}; -webkit-align-items: {{val}}; -ms-flex-align: {{val}}; align-items: {{val}};'],
1140 - 'list' => array(
1141 - '' => __pl('default'),
1142 - 'baseline' => __pl('top'),
1143 - 'center' => __pl('center'),
1144 - 'end' => __pl('bottom'),
1145 - 'stretch' => __pl('Stretch')
1146 - ),
1147 - ),
1148 2219 ),
1149 2220 'row_bg_styles' => [
1150 2221 'row_bg_type' => array(
1151 2222 'type' => 'radio',
@@ -1162,13 +2233,67 @@
1162 2233 'label' => __pl('video_src_label'),
1163 2234 'desc' => __pl('video_src_desc'),
1164 2235 'req' => ['row_bg_type' => 'video']
1165 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 + ),
1166 2247 'parallax_img' => array(
1167 2248 'type' => 'image',
1168 2249 'label' => __pl('Image'),
1169 2250 'req' => ['row_bg_type' => 'parallax']
1170 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 + ),
1171 2296 'bg_slider' => array(
1172 2297 'type' => 'multi_image',
1173 2298 'label' => __pl('image_slider_ids_label'),
1174 2299 'req' => ['row_bg_type' => 'slider'],
@@ -1210,9 +2335,9 @@
1210 2335 ),
1211 2336 'overlay_color' => array(
1212 2337 'type' => 'color',
1213 2338 'label' => __pl('color'),
1214 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-color: {{val}};'],
2339 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-color: {{val}};'],
1215 2340 'req' => ['overlay_type' => 'color'],
1216 2341 'show' => ['overlay_state' => ''],
1217 2342 ),
1218 2343 'overlay_gradient' => array(
@@ -1217,10 +2342,10 @@
1217 2342 ),
1218 2343 'overlay_gradient' => array(
1219 2344 'type' => 'gradient',
1220 2345 'label' => '',
1221 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
1222 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
2346 + 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
2347 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
1223 2348 'show' => ['overlay_state' => ''],
1224 2349 'req' => ['overlay_type' => 'gradient']
1225 2350 ),
1226 2351 'overlay_img' => array(
@@ -1225,9 +2350,9 @@
1225 2350 ),
1226 2351 'overlay_img' => array(
1227 2352 'type' => 'image',
1228 2353 'label' => __pl('Image'),
1229 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: url("{{{overlay_img-url}}}");'],
2354 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: url("{{{overlay_img-url}}}");'],
1230 2355 'show' => ['overlay_state' => ''],
1231 2356 'req' => ['overlay_type' => 'image']
1232 2357 ),
1233 2358 'overlay_img_attachment' => array(
@@ -1238,9 +2363,9 @@
1238 2363 'scroll' => __pl('scroll'),
1239 2364 'fixed' => __pl('fixed')
1240 2365 ],
1241 2366 'show' => ['overlay_state' => ''],
1242 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
2367 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1243 2368 'req' => ['overlay_type' => 'image']
1244 2369 ),
1245 2370 'overlay_bg_posx' => array(
1246 2371 'type' => 'select',
@@ -1251,9 +2376,9 @@
1251 2376 'left' => __pl('left'),
1252 2377 'right' => __pl('right')
1253 2378 ],
1254 2379 'show' => ['overlay_state' => ''],
1255 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
2380 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1256 2381 'req' => ['overlay_type' => 'image']
1257 2382 ),
1258 2383 'overlay_bg_posy' => array(
1259 2384 'type' => 'select',
@@ -1264,15 +2389,15 @@
1264 2389 'top' => __pl('top'),
1265 2390 'bottom' => __pl('bottom')
1266 2391 ],
1267 2392 'show' => ['overlay_state' => ''],
1268 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
2393 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1269 2394 'req' => ['overlay_type' => 'image']
1270 2395 ),
1271 2396 'overlay_bg_repeat' => array(
1272 2397 'type' => 'select',
1273 2398 'label' => __pl('overlay_bg_repeat'),
1274 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
2399 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1275 2400 'list' => [
1276 2401 '' => __pl('default'),
1277 2402 'repeat' => __pl('repeat'),
1278 2403 'no-repeat' => __pl('no-repeat'),
@@ -1284,9 +2409,9 @@
1284 2409 ),
1285 2410 'overlay_bg_size' => array(
1286 2411 'type' => 'select',
1287 2412 'label' => __pl('overlay_bg_size'),
1288 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-size: {{val}};'],
2413 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1289 2414 'list' => [
1290 2415 '' => __pl('default'),
1291 2416 'cover' => __pl('cover'),
1292 2417 'contain' => __pl('contain')
@@ -1300,9 +2425,9 @@
1300 2425 'default' => 0.5,
1301 2426 'min' => 0,
1302 2427 'max' => 1,
1303 2428 'step' => 0.1,
1304 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'opacity: {{val}};'],
2429 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1305 2430 'req' => array(
1306 2431 '!overlay_type' => '',
1307 2432 ),
1308 2433 'show' => ['overlay_state' => ''],
@@ -1313,9 +2438,9 @@
1313 2438 'min' => 0,
1314 2439 'step' => 100,
1315 2440 'max' => 5000,
1316 2441 'default' => 400,
1317 - '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;'],
1318 2443 'show' => array(
1319 2444 'overlay_state' => 'hover'
1320 2445 ),
1321 2446 ),
@@ -1333,9 +2458,9 @@
1333 2458 'overlay_color_hover' => array(
1334 2459 'type' => 'color',
1335 2460 'label' => __pl('color'),
1336 2461 //'desc' => __pl('video_src_desc'),
1337 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: {{val}};'],
2462 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: {{val}};'],
1338 2463 'req' => ['overlay_type_hover' => 'color'],
1339 2464 'show' => ['overlay_state' => 'hover'],
1340 2465 ),
1341 2466 'overlay_gradient_hover' => array(
@@ -1340,10 +2465,10 @@
1340 2465 ),
1341 2466 'overlay_gradient_hover' => array(
1342 2467 'type' => 'gradient',
1343 2468 'label' => '',
1344 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
1345 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
2469 + 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
2470 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
1346 2471 'show' => ['overlay_state' => 'hover'],
1347 2472 'req' => ['overlay_type_hover' => 'gradient']
1348 2473 ),
1349 2474 'overlay_img_hover' => array(
@@ -1348,9 +2473,9 @@
1348 2473 ),
1349 2474 'overlay_img_hover' => array(
1350 2475 'type' => 'image',
1351 2476 'label' => __pl('Image'),
1352 - '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}}}");'],
1353 2478 'show' => ['overlay_state' => 'hover'],
1354 2479 'req' => ['overlay_type_hover' => 'image']
1355 2480 ),
1356 2481 'overlay_img_attachment_hover' => array(
@@ -1361,9 +2486,9 @@
1361 2486 'scroll' => __pl('scroll'),
1362 2487 'fixed' => __pl('fixed')
1363 2488 ],
1364 2489 'show' => ['overlay_state' => 'hover'],
1365 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
2490 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1366 2491 'req' => ['overlay_type_hover' => 'image']
1367 2492 ),
1368 2493 'overlay_bg_posx_hover' => array(
1369 2494 'type' => 'select',
@@ -1374,9 +2499,9 @@
1374 2499 'left' => __pl('left'),
1375 2500 'right' => __pl('right')
1376 2501 ],
1377 2502 'show' => ['overlay_state' => 'hover'],
1378 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
2503 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1379 2504 'req' => ['overlay_type_hover' => 'image']
1380 2505 ),
1381 2506 'overlay_bg_posy_hover' => array(
1382 2507 'type' => 'select',
@@ -1387,15 +2512,15 @@
1387 2512 'top' => __pl('top'),
1388 2513 'bottom' => __pl('bottom')
1389 2514 ],
1390 2515 'show' => ['overlay_state' => 'hover'],
1391 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
2516 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1392 2517 'req' => ['overlay_type_hover' => 'image']
1393 2518 ),
1394 2519 'overlay_bg_repeat_hover' => array(
1395 2520 'type' => 'select',
1396 2521 'label' => __pl('overlay_bg_repeat_hover'),
1397 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
2522 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1398 2523 'list' => [
1399 2524 '' => __pl('default'),
1400 2525 'repeat' => __pl('repeat'),
1401 2526 'no-repeat' => __pl('no-repeat'),
@@ -1407,9 +2532,9 @@
1407 2532 ),
1408 2533 'overlay_bg_size_hover' => array(
1409 2534 'type' => 'select',
1410 2535 'label' => __pl('overlay_bg_size_hover'),
1411 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-size: {{val}};'],
2536 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1412 2537 'list' => [
1413 2538 '' => __pl('default'),
1414 2539 'cover' => __pl('cover'),
1415 2540 'contain' => __pl('contain')
@@ -1422,9 +2547,9 @@
1422 2547 'label' => __pl('overlay_transperancy_hover'),
1423 2548 'min' => 0,
1424 2549 'max' => 1,
1425 2550 'step' => 0.1,
1426 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'opacity: {{val}};'],
2551 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1427 2552 'req' => array(
1428 2553 'overlay_type' => 'image',
1429 2554 'overlay_type' => 'color'
1430 2555 ),
@@ -1465,9 +2590,9 @@
1465 2590 ),
1466 2591 'row_shape_top_color' => array(
1467 2592 'type' => 'color',
1468 2593 'label' => __pl('shape_bg_color'),
1469 - 'default' => '#fff',
2594 + 'default' => '#227bc3',
1470 2595 'css' => ['{{element}} .pagelayer-svg-top .pagelayer-shape-fill' => 'fill:{{val}}'],
1471 2596 'show' => ['row_shape_position' => 'top'],
1472 2597 ),
1473 2598 'row_shape_top_width' => array(
@@ -1521,9 +2646,9 @@
1521 2646 ),
1522 2647 'row_shape_bottom_color' => array(
1523 2648 'type' => 'color',
1524 2649 'label' => __pl('shape_bg_color'),
1525 - 'default' => '#fff',
2650 + 'default' => '#e44993',
1526 2651 'css' => ['{{element}} .pagelayer-svg-bottom .pagelayer-shape-fill' => 'fill:{{val}}'],
1527 2652 'show' => ['row_shape_position' => 'bottom'],
1528 2653 ),
1529 2654 'row_shape_bottom_width' => array(
@@ -1565,16 +2690,16 @@
1565 2690 // Column object
1566 2691 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_col', array(
1567 2692 'name' => __pl('column'),
1568 2693 'group' => 'grid',
1569 - 'func' => 'pagelayer_sc_col',
1570 2694 'skip_props_cat' => ['position_styles'],
2695 + 'skip_props' => ['ele_sticky_in_container'],
1571 2696 'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
1572 2697 <div if="{{bg_slider}}" class="pagelayer-bgimg-slider">
1573 2698 {{slider}}
1574 2699 </div>
1575 2700 <div if="{{parallax_img}}" class="pagelayer-parallax-window">
1576 - <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}}}">
1577 2702 </div>
1578 2703 <div if="{{overlay_type}}" class="pagelayer-background-overlay"></div>
1579 2704 <div class="pagelayer-col-holder"></div>',
1580 2705 'holder' => '.pagelayer-col-holder',
@@ -1581,11 +2706,9 @@
1581 2706 'params' => array(
1582 2707 'content_pos' => array(
1583 2708 'type' => 'select',
1584 2709 'label' => __pl('content_pos'),
1585 - 'default' => '',
1586 - 'css' => ['{{element}}' => 'display:flex; -webkit-box-align: {{val}}; -webkit-align-items: {{val}}; -ms-flex-align: {{val}}; align-items: {{val}}; height: 100%;',
1587 - '{{element}} .pagelayer-col-holder' => 'width:100%'],
2710 + 'css' => ['{{element}}' => 'align-content: {{val}} !important;'],
1588 2711 'list' => array(
1589 2712 '' => __pl('default'),
1590 2713 'flex-start' => __pl('top'),
1591 2714 'center' => __pl('center'),
@@ -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(
@@ -1703,10 +2881,10 @@
1703 2881 ),
1704 2882 'overlay_gradient' => array(
1705 2883 'type' => 'gradient',
1706 2884 'label' => '',
1707 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,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]}}%);'],
2885 + 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
2886 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
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(
@@ -1826,10 +3004,10 @@
1826 3004 ),
1827 3005 'overlay_gradient_hover' => array(
1828 3006 'type' => 'gradient',
1829 3007 'label' => '',
1830 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,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]}}%);'],
3008 + 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
3009 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
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' => '#111111ff',
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 ),
@@ -2134,10 +3305,10 @@
2134 3305 ),
2135 3306 'quotation_color' => array(
2136 3307 'type' => 'color',
2137 3308 'label' => __pl('quotation_color_label'),
2138 - 'default' => '#dadadaff',
2139 - 'css' => ['{{element}} i' => 'color:{{val}}'],
3309 + 'default' => '#dadada',
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'),
@@ -2300,9 +3484,9 @@
2300 3484 ),
2301 3485 'icon' => array(
2302 3486 'type' => 'icon',
2303 3487 'label' => __pl('list_icon_label'),
2304 - 'default' => 'star',
3488 + 'default' => 'fas fa-star',
2305 3489 'req' => array(
2306 3490 'show_icon' => 'true'
2307 3491 )
2308 3492 )
@@ -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(
@@ -2562,9 +3742,9 @@
2562 3742 'params' => array(
2563 3743 'icon' => array(
2564 3744 'type' => 'icon',
2565 3745 'label' => __pl('list_icon_label'),
2566 - 'default' => 'fa fa-star',
3746 + 'default' => 'fas fa-star',
2567 3747 ),
2568 3748 'icon_background_size' => array(
2569 3749 'type' => 'spinner',
2570 3750 'label' => __pl('service_box_icon_background_size'),
@@ -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 ),
@@ -2669,9 +3844,9 @@
2669 3844 'type' => 'spinner',
2670 3845 'label' => __pl('service_box_icon_rotate'),
2671 3846 'default' => 0,
2672 3847 'css' => ['{{element}} i' => 'transform: rotate({{val}}deg)'],
2673 - 'min' => 0,
3848 + 'min' => -360,
2674 3849 'max' => 360,
2675 3850 'step' => 1,
2676 3851 'screen' => 1,
2677 3852 'show' => array(
@@ -2682,9 +3857,9 @@
2682 3857 'type' => 'spinner',
2683 3858 'label' => __pl('rotate_icon'),
2684 3859 'default' => 0,
2685 3860 'css' => ['{{element}} i:before' => 'transform: translate(-50%, -50%) rotate({{val}}deg)'],
2686 - 'min' => 0,
3861 + 'min' => -360,
2687 3862 'max' => 360,
2688 3863 'step' => 1,
2689 3864 'screen' => 1,
2690 3865 'show' => array(
@@ -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' => [
@@ -3063,9 +4292,9 @@
3063 4292 ),
3064 4293 'badge_background_color' => array(
3065 4294 'type' => 'color',
3066 4295 'label' => __pl('badge_text_background_label'),
3067 - 'default' => '#4982eeff',
4296 + 'default' => '#4982ee',
3068 4297 'css' => ['{{element}} .pagelayer-badge-custom' => 'background-color:{{val}};'],
3069 4298 'req' => ['badge_notification_type' => 'custom'],
3070 4299 ),
3071 4300 'badge_vspacing' => array(
@@ -3135,9 +4364,9 @@
3135 4364 ),
3136 4365 'badge_btn_background_color' => array(
3137 4366 'type' => 'color',
3138 4367 'label' => __pl('badge_btn_background_label'),
3139 - 'default' => '#4982eeff',
4368 + 'default' => '#4982ee',
3140 4369 'css' => ['{{element}} .pagelayer-badge-btn' => 'background-color:{{val}};'],
3141 4370 'req' => [
3142 4371 'badge_btn_type' => 'custom',
3143 4372 'badge_button' => 'true',
@@ -3146,9 +4375,9 @@
3146 4375 ),
3147 4376 'badge_btn_background_color_hover' => array(
3148 4377 'type' => 'color',
3149 4378 'label' => __pl('badge_btn_background_label'),
3150 - 'default' => '#4982eeff',
4379 + 'default' => '#4982ee',
3151 4380 'css' => ['{{element}} .pagelayer-badge-btn:hover' => 'background-color:{{val}};'],
3152 4381 'show' => ['badge_btn_hover' => 'hover'],
3153 4382 ),
3154 4383 ],
@@ -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(
@@ -3287,9 +4513,9 @@
3287 4513 ),
3288 4514 'tooltip_icon' => array(
3289 4515 'type' => 'icon',
3290 4516 'label' => __pl('tooltip_icon'),
3291 - 'default' => 'exclamation-circle',
4517 + 'default' => 'fas fa-exclamation-circle',
3292 4518 'req' => array(
3293 4519 'show_icon' => 'true',
3294 4520 )
3295 4521 ),
@@ -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(
@@ -3576,9 +4810,9 @@
3576 4810 ),
3577 4811 'icon' => array(
3578 4812 'label' => __pl('icon'),
3579 4813 'type' => 'icon',
3580 - 'default' => 'star',
4814 + 'default' => 'fas fa-star',
3581 4815 'req' => array(
3582 4816 'overlay' => 'true'
3583 4817 )
3584 4818 ),
@@ -3608,13 +4842,25 @@
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 + ),
4851 + 'overlay_bg_type' => array(
4852 + 'label' => __pl('background_type'),
4853 + 'type' => 'radio',
4854 + 'default' => 'color',
4855 + 'list' => array(
4856 + 'color' => __pl('color'),
4857 + 'gradient' => __pl('gradient')
4858 + ),
4859 + 'req' => array(
4860 + 'overlay' => 'true'
4861 + )
4862 + ),
3617 4863 'overlay_bg' => array(
3618 4864 'label' => __pl('image_overlay_background'),
3619 4865 'type' => 'color',
3620 4866 'default' => 'rgba(0,0,0,.6)',
@@ -3619,11 +4865,21 @@
3619 4865 'type' => 'color',
3620 4866 'default' => 'rgba(0,0,0,.6)',
3621 4867 'css' => ['{{element}} .pagelayer-image-overlay' => 'background: {{val}}'],
3622 4868 'req' => array(
3623 - 'overlay' => 'true'
4869 + 'overlay' => 'true',
4870 + '!overlay_bg_type' => 'gradient'
3624 4871 )
3625 4872 ),
4873 + 'overlay_gradient' => [
4874 + 'type' => 'gradient',
4875 + 'label' => '',
4876 + 'css' => ['{{element}} .pagelayer-image-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
4877 + 'req' => array(
4878 + 'overlay' => 'true',
4879 + 'overlay_bg_type' => 'gradient'
4880 + )
4881 + ],
3626 4882 'content_position' => array(
3627 4883 'label' => __pl('Overlay Content Position'),
3628 4884 'type' => 'radio',
3629 4885 'default' => 'center',
@@ -3659,12 +4915,12 @@
3659 4915 // Image Slider
3660 4916 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_slider', array(
3661 4917 'name' => __pl('Image Slider'),
3662 4918 'group' => 'image',
4919 + 'prevent_inside' => ['pl_slides'],
3663 4920 'html' => '<div class="pagelayer-image-slider-div">
3664 4921 <ul class="pagelayer-image-slider-ul pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme">{{ul}}</ul>
3665 4922 </div>',
3666 - 'func' => 'pagelayer_sc_image_slider',
3667 4923 'settings' => [
3668 4924 'params' => __pl('Image Slider'),
3669 4925 'slider_options' => __pl('slider_options'),
3670 4926 ],
@@ -3672,9 +4928,8 @@
3672 4928 'ids' => array(
3673 4929 'type' => 'multi_image',
3674 4930 'label' => __pl('image_slider_ids_label'),
3675 4931 'desc' => __pl('media_library_images_ids_desc'),
3676 - 'text' => __pl('image_slider_ids_text'),
3677 4932 ),
3678 4933 'size' => array(
3679 4934 'type' => 'select',
3680 4935 'label' => __pl('obj_image_size_label'),
@@ -3706,11 +4961,12 @@
3706 4961 'media_file' => __pl('media_file'),
3707 4962 )
3708 4963 ),
3709 4964 'link' => array(
4965 + 'type' => 'link',
3710 4966 'label' => __pl('image_link_url'),
3711 4967 'desc' => __pl('image_link_desc'),
3712 - 'type' => 'link',
4968 + 'selector' => '.pagelayer-link-sel',
3713 4969 'req' => array(
3714 4970 'link_type' => 'custom_url'
3715 4971 )
3716 4972 ),
@@ -3719,10 +4975,18 @@
3719 4975 'type' => 'checkbox',
3720 4976 'addAttr' => ['{{element}} a' => 'target="_blank"'],
3721 4977 'req' => array(
3722 4978 'link_type' => ['custom_url', 'media_file']
3723 - )
4979 + ),
4980 + 'show' => ['link_type' => 'media_file'] // Backward compatibility of link props
3724 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 + ),
3725 4989 ),
3726 4990 'slider_options' => [
3727 4991 'slide_items' => array(
3728 4992 'type' => 'spinner',
@@ -3817,18 +5081,17 @@
3817 5081 // Grid Gallery
3818 5082 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_grid_gallery', array(
3819 5083 'name' => __pl('Grid Gallery'),
3820 5084 'group' => 'image',
3821 - 'func' => 'pagelayer_sc_grid_gallery',
3822 5085 'html' => '<div class="pagelayer-grid-gallery-container">
3823 - {{ul}}
3824 - </div>',
5086 + {{ul}}
5087 + </div>
5088 + {{pagin}}',
3825 5089 'params' => array(
3826 5090 'ids' => array(
3827 5091 'type' => 'multi_image',
3828 5092 'label' => __pl('grid_gallery_images'),
3829 5093 'desc' => __pl('media_library_images_ids_desc'),
3830 - 'text' => __pl('image_slider_ids_text'),
3831 5094 ),
3832 5095 'columns' => array(
3833 5096 'type' => 'select',
3834 5097 'label' => __pl('columns_count'),
@@ -3881,9 +5144,9 @@
3881 5144 )
3882 5145 ),
3883 5146 'custom_size' => array(
3884 5147 'type' => 'dimension',
3885 - 'desc' => __pl('image_custom_size_label'),
5148 + 'label' => __pl('image_custom_size_label'),
3886 5149 'req' => array(
3887 5150 'size' => 'custom'
3888 5151 ),
3889 5152 'screen' => 1,
@@ -3932,8 +5195,11 @@
3932 5195 'list' => array(
3933 5196 'left' => __pl('left'),
3934 5197 'center' => __pl('center'),
3935 5198 'right' => __pl('right')
5199 + ),
5200 + 'req' => array(
5201 + 'caption' => 'true'
3936 5202 )
3937 5203 ),
3938 5204 'caption_color' => array(
3939 5205 'label' => __pl('Caption Color'),
@@ -3942,8 +5208,17 @@
3942 5208 'css' => ['{{element}} .pagelayer-grid-gallery-caption' => 'color: {{val}}'],
3943 5209 'req' => array(
3944 5210 'caption' => 'true'
3945 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
3946 5221 )
3947 5222 )
3948 5223 )
3949 5224 );
@@ -3957,9 +5232,8 @@
3957 5232 // Button
3958 5233 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
3959 5234 'name' => __pl('button'),
3960 5235 'group' => 'button',
3961 - 'func' => 'pagelayer_sc_btn',
3962 5236 'html' => '<a class="pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{icon_position}}">
3963 5237 <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
3964 5238 <span if="{{text}}" class="pagelayer-btn-text">{{text}}</span>
3965 5239 <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
@@ -3967,26 +5241,19 @@
3967 5241 'params' => array(
3968 5242 'text' => array(
3969 5243 'type' => 'text',
3970 5244 'label' => __pl('button_text_label'),
3971 - 'default' => __pl('button_name')
5245 + 'default' => __pl('button_name'),
5246 + 'edit' => '.pagelayer-btn-text',
3972 5247 ),
3973 5248 'link' => array(
3974 5249 'type' => 'link',
3975 5250 'label' => __pl('button_link_label'),
3976 5251 'desc' => __pl('button_link_desc'),
3977 - 'addAttr' => ['{{element}} .pagelayer-btn-holder' => 'href="{{link}}"']
5252 + 'selector' => '.pagelayer-btn-holder',
5253 + 'addAttr' => ['{{element}} .pagelayer-btn-holder' => 'href="{{{link}}}"'],
5254 + 'req' => ['ele_scrollto' => '']
3978 5255 ),
3979 - 'rel' => array(
3980 - 'type' => 'text',
3981 - 'label' => __pl('rel'),
3982 - 'addAttr' => ['{{element}} .pagelayer-btn-holder' => 'rel="{{rel}}"']
3983 - ),
3984 - 'target' => array(
3985 - 'type' => 'checkbox',
3986 - 'label' => __pl('open_link_in_new_window'),
3987 - 'addAttr' => ['{{element}} a' => 'target="_blank"']
3988 - ),
3989 5256 'full_width' => array(
3990 5257 'type' => 'checkbox',
3991 5258 'label' => __pl('stretch'),
3992 5259 'screen' => 1,
@@ -3994,9 +5261,8 @@
3994 5261 ),
3995 5262 'btn_typo' => array(
3996 5263 'type' => 'typography',
3997 5264 'label' => __pl('quote_content_typo'),
3998 - 'screen' => 1,
3999 5265 'css' => [
4000 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;',
4001 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;',
4002 5268 ],
@@ -4030,8 +5296,11 @@
4030 5296 'list' => array(
4031 5297 'pagelayer-btn-icon-left' => __pl('left'),
4032 5298 'pagelayer-btn-icon-right' => __pl('right')
4033 5299 ),
5300 + 'req' => array(
5301 + '!icon' => ''
5302 + ),
4034 5303 ),
4035 5304 'icon_spacing' => array(
4036 5305 'type' => 'slider',
4037 5306 'label' => __pl('icon_spacing'),
@@ -4041,9 +5310,9 @@
4041 5310 'default' => 5,
4042 5311 'screen' => 1,
4043 5312 'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'],
4044 5313 'req' => array(
4045 - '!icon' => 'none'
5314 + '!icon' => ''
4046 5315 ),
4047 5316 ),
4048 5317 ],
4049 5318 'btn_style' => [
@@ -4062,11 +5331,40 @@
4062 5331 'pagelayer-btn-danger' => __pl('btn_type_danger'),
4063 5332 'pagelayer-btn-dark' => __pl('btn_type_dark'),
4064 5333 'pagelayer-btn-light' => __pl('btn_type_light'),
4065 5334 'pagelayer-btn-link' => __pl('btn_type_link'),
5335 + 'pagelayer-btn-anim' => __pl('btn_type_anim'),
4066 5336 'pagelayer-btn-custom' => __pl('btn_type_custom')
4067 5337 ),
4068 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 + ),
4069 5367 'size' => array(
4070 5368 'type' => 'select',
4071 5369 'label' => __pl('button_size_label'),
4072 5370 'default' => 'pagelayer-btn-large',
@@ -4088,9 +5386,9 @@
4088 5386 'default' => 5,
4089 5387 'screen' => 1,
4090 5388 'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: calc({{val}}px / 2) {{val}}px;'],
4091 5389 'req' => array(
4092 - 'size' => 'pagelayer-btn-custom'
5390 + 'size' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
4093 5391 ),
4094 5392 ),
4095 5393 'btn_hover' => array(
4096 5394 'type' => 'radio',
@@ -4101,18 +5399,23 @@
4101 5399 '' => __pl('normal'),
4102 5400 'hover' => __pl('hover'),
4103 5401 ),
4104 5402 'req' => array(
4105 - 'type' => 'pagelayer-btn-custom',
5403 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
4106 5404 ),
4107 5405 ),
4108 5406 'btn_bg_color' => array(
4109 5407 'type' => 'color',
4110 5408 'label' => __pl('btn_bg_color_label'),
4111 - 'default' => '#3e8ef7',
4112 - '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 + ],
4113 5416 'req' => array(
4114 - 'type' => 'pagelayer-btn-custom',
5417 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
4115 5418 ),
4116 5419 'show' => array(
4117 5420 'btn_hover' => ''
4118 5421 ),
@@ -4122,9 +5425,9 @@
4122 5425 'label' => __pl('btn_color_label'),
4123 5426 'default' => '#ffffff',
4124 5427 'css' => ['{{element}} .pagelayer-btn-holder' => 'color: {{val}};'],
4125 5428 'req' => array(
4126 - 'type' => 'pagelayer-btn-custom',
5429 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
4127 5430 ),
4128 5431 'show' => array(
4129 5432 'btn_hover' => ''
4130 5433 ),
@@ -4138,8 +5441,9 @@
4138 5441 'max' => 5000,
4139 5442 'default' => 400,
4140 5443 'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
4141 5444 'show' => array(
5445 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
4142 5446 'btn_hover' => 'hover'
4143 5447 ),
4144 5448 ),
4145 5449 'btn_bg_color_hover' => array(
@@ -4145,14 +5449,18 @@
4145 5449 'btn_bg_color_hover' => array(
4146 5450 'type' => 'color',
4147 5451 'label' => __pl('btn_bg_color_hover_label'),
4148 5452 'default' => '',
4149 - '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 + ],
4150 5456 'req' => array(
4151 - 'type' => 'pagelayer-btn-custom',
5457 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
5458 + '!anim_type' => ['glow','thin'],
4152 5459 ),
4153 5460 'show' => array(
4154 - 'btn_hover' => 'hover'
5461 + 'btn_hover' => 'hover',
5462 + '!anim_type' => ['glow','thin'],
4155 5463 ),
4156 5464 ),
4157 5465 'btn_color_hover' => array(
4158 5466 'type' => 'color',
@@ -4159,14 +5467,24 @@
4159 5467 'label' => __pl('btn_color_hover_label'),
4160 5468 'default' => '',
4161 5469 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'color: {{val}};'],
4162 5470 'req' => array(
4163 - 'type' => 'pagelayer-btn-custom',
5471 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
4164 5472 ),
4165 5473 'show' => array(
4166 5474 'btn_hover' => 'hover'
4167 5475 ),
4168 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 + ],
4169 5487 ],
4170 5488 'border_style' => [
4171 5489 'btn_bor_hover' => array(
4172 5490 'type' => 'radio',
@@ -4180,9 +5498,12 @@
4180 5498 ),
4181 5499 'btn_border_type' => array(
4182 5500 'type' => 'select',
4183 5501 'label' => __pl('border_type'),
4184 - '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 + ],
4185 5506 'list' => [
4186 5507 '' => __pl('none'),
4187 5508 'solid' => __pl('solid'),
4188 5509 'double' => __pl('double'),
@@ -4209,9 +5530,9 @@
4209 5530 'btn_border_width' => array(
4210 5531 'type' => 'padding',
4211 5532 'label' => __pl('border_width'),
4212 5533 'screen' => 1,
4213 - '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'],
4214 5535 'req' => [
4215 5536 '!btn_border_type' => ''
4216 5537 ],
4217 5538 'show' => array(
@@ -4221,20 +5542,25 @@
4221 5542 'btn_border_radius' => array(
4222 5543 'type' => 'padding',
4223 5544 'label' => __pl('border_radius'),
4224 5545 'screen' => 1,
4225 - '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;'],
4226 5547 'req' => array(
4227 - '!btn_border_type' => ''
5548 + '!btn_border_type' => '',
5549 + '!anim_type' => 'slide'
4228 5550 ),
4229 5551 'show' => array(
4230 - 'btn_bor_hover' => ''
5552 + 'btn_bor_hover' => '',
5553 + '!anim_type' => 'slide'
4231 5554 ),
4232 5555 ),
4233 5556 'btn_border_type_hover' => array(
4234 5557 'type' => 'select',
4235 5558 'label' => __pl('border_type'),
4236 - '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 + ],
4237 5563 'list' => [
4238 5564 '' => __pl('none'),
4239 5565 'solid' => __pl('solid'),
4240 5566 'double' => __pl('double'),
@@ -4261,9 +5587,11 @@
4261 5587 'btn_border_width_hover' => array(
4262 5588 'type' => 'padding',
4263 5589 'label' => __pl('border_width_hover'),
4264 5590 'screen' => 1,
4265 - '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 + ],
4266 5594 'req' => [
4267 5595 '!btn_border_type_hover' => ''
4268 5596 ],
4269 5597 'show' => array(
@@ -4273,34 +5601,84 @@
4273 5601 'btn_border_radius_hover' => array(
4274 5602 'type' => 'padding',
4275 5603 'label' => __pl('border_radius_hover'),
4276 5604 'screen' => 1,
4277 - '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;'],
4278 5606 'req' => array(
4279 - '!btn_border_type_hover' => ''
5607 + '!btn_border_type_hover' => '',
5608 + '!anim_type' => 'slide'
4280 5609 ),
4281 5610 'show' => array(
4282 - 'btn_bor_hover' => 'hover'
5611 + 'btn_bor_hover' => 'hover',
5612 + '!anim_type' => 'slide'
4283 5613 ),
4284 5614 ),
4285 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 + ],
4286 5664 'styles' => [
4287 5665 'btn_style' => __pl('btn_style'),
4288 5666 'icon_style' => __pl('icon'),
4289 5667 'border_style' => __pl('border_style'),
5668 + 'scroll_to_element' => __pl('scroll_to_element'),
4290 5669 ]
4291 5670 )
4292 5671 );
4293 5672
4294 -
4295 5673 // Social Profile Item
4296 5674 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social', array(
4297 5675 'name' => __pl('Social Profile'),
4298 5676 'group' => 'button',
4299 - 'func' => 'pagelayer_sc_social',
4300 5677 'not_visible' => 1,
5678 + 'parent' => [PAGELAYER_SC_PREFIX.'_social_grp'],
4301 5679 'html' => '<div class="pagelayer-icon-holder">
4302 - <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}}}">
4303 5681 <i class="pagelayer-social-fa {{icon}}"></i>
4304 5682 </a>
4305 5683 </div>',
4306 5684 'params' => array(
@@ -4306,16 +5684,19 @@
4306 5684 'params' => array(
4307 5685 'icon' => array(
4308 5686 'type' => 'icon',
4309 5687 'label' => __pl('list_icon_label'),
4310 - 'default' => 'facebook-square',
5688 + 'default' => 'fab fa-facebook-square',
4311 5689 'addAttr' => ['{{element}} .pagelayer-icon-holder' => 'data-icon="{{icon}}"'],
4312 - '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'
4313 5692 ),
4314 5693 'social_url' => array(
4315 5694 'type' => 'link',
4316 - 'label' => __pl('social_url_label')
4317 - )
5695 + 'label' => __pl('social_url_label'),
5696 + 'selector' => '.pagelayer-ele-link',
5697 + 'default' => get_option('pagelayer-facebook-url'),
5698 + ),
4318 5699 )
4319 5700 )
4320 5701 );
4321 5702
@@ -4322,9 +5703,8 @@
4322 5703 // Social Profile
4323 5704 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
4324 5705 'name' => __pl('Social Profile'),
4325 5706 'group' => 'button',
4326 - 'func' => 'pagelayer_sc_social_grp',
4327 5707 'has_group' => [
4328 5708 'section' => 'params',
4329 5709 'prop' => 'elements'
4330 5710 ],
@@ -4447,9 +5827,9 @@
4447 5827 ),
4448 5828 'icon_bg_color' => array(
4449 5829 'type' => 'color',
4450 5830 'label' => __pl('social_bg_color_label'),
4451 - 'default' => '#3E8EF7',
5831 + 'default' => '#0986c0',
4452 5832 'css' => ['{{element}} .pagelayer-icon-holder' => 'background-color: {{val}} !important;'],
4453 5833 'req' => array(
4454 5834 '!bg_shape' => '',
4455 5835 'color_scheme' => ''
@@ -4455,8 +5835,64 @@
4455 5835 'color_scheme' => ''
4456 5836 ),
4457 5837 'show' => ['social_hover' => '']
4458 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 + ),
4459 5895 'icon_border_type' => array(
4460 5896 'type' => 'select',
4461 5897 'label' => __pl('border_type'),
4462 5898 'css' => ['{{element}} .pagelayer-icon-holder' => 'border-style: {{val}}'],
@@ -4514,66 +5950,8 @@
4514 5950 'show' => array(
4515 5951 'social_hover' => 'hover'
4516 5952 ),
4517 5953 ),
4518 - 'anim_hover' => array(
4519 - 'type' => 'select',
4520 - 'label' => __pl('icon_animation'),
4521 - 'list' => [
4522 - '' => __pl('none'),
4523 - 'grow' => __pl('Grow'),
4524 - 'shrink' => __pl('Shrink'),
4525 - 'pulse' => __pl('Pulse'),
4526 - 'pulse-grow' => __pl('Pulse Grow'),
4527 - 'pulse-shrink' => __pl('Pulse Shrink'),
4528 - 'push' => __pl('Push'),
4529 - 'pop' => __pl('Pop'),
4530 - 'buzz' => __pl('Buzz'),
4531 - 'buzz-out' => __pl('Buzz Out'),
4532 - 'float' => __pl('Float'),
4533 - 'sink' => __pl('Sink'),
4534 - 'bob' => __pl('Bob'),
4535 - 'hang' => __pl('Hang'),
4536 - 'bounce-in' => __pl('Bounce In'),
4537 - 'bounce-out' => __pl('Bounce Out'),
4538 - 'rotate' => __pl('Rotate'),
4539 - 'grow-rotate' => __pl('Grow Rotate'),
4540 - 'skew-forward' => __pl('Skew Forward'),
4541 - 'skew-backward' => __pl('Skew Backward'),
4542 - 'wobble-vertical' => __pl('Wobble Vertical'),
4543 - 'wobble-horizontal' => __pl('Wobble Horizontal'),
4544 - 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
4545 - 'wobble-top-to-right' => __pl('Wobble Top To Right'),
4546 - 'wobble-top' => __pl('Wobble Top'),
4547 - 'wobble-bottom' => __pl('Wobble Bottom'),
4548 - 'wobble-skew' => __pl('Wobble Skew'),
4549 - ],
4550 - 'show' => array(
4551 - 'social_hover' => 'hover',
4552 - ),
4553 - 'addAttr' => 'pagelayer-animation="{{anim_hover}}"',
4554 - ),
4555 - 'icon_color_hover' => array(
4556 - 'type' => 'color',
4557 - 'label' => __pl('social_color_label'),
4558 - 'default' => '#ffffff',
4559 - 'css' => ['{{element}} .pagelayer-icon-holder:hover .pagelayer-social-fa' => 'color: {{val}} !important;'],
4560 - 'req' => array(
4561 - 'color_scheme' => ''
4562 - ),
4563 - 'show' => ['social_hover' => 'hover']
4564 - ),
4565 - 'icon_bg_color_hover' => array(
4566 - 'type' => 'color',
4567 - 'label' => __pl('social_bg_color_label'),
4568 - 'default' => '#3E8EF7',
4569 - 'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'background-color: {{val}} !important;'],
4570 - 'req' => array(
4571 - '!bg_shape' => '',
4572 - 'color_scheme' => ''
4573 - ),
4574 - 'show' => ['social_hover' => 'hover']
4575 - ),
4576 5954 'icon_border_type_hover' => array(
4577 5955 'type' => 'select',
4578 5956 'label' => __pl('border_type'),
4579 5957 'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'border-style: {{val}}'],
@@ -4632,13 +6010,12 @@
4632 6010 // Video
4633 6011 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video', array(
4634 6012 'name' => __pl('video'),
4635 6013 'group' => 'media',
4636 - 'func' => 'pagelayer_sc_video',
4637 6014 'html' => '<div class="pagelayer-video-holder pagelayer-video-{{video_ratio}}">
4638 - <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>
4639 6016 <a if-ext={{lightbox}} href="{{{src-url}}}">
4640 - <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}});">
4641 6018 <i class="{{play_icon}}" aria-hidden="true"></i>
4642 6019 </div>
4643 6020 </a>
4644 6021 </div>',
@@ -4645,9 +6022,9 @@
4645 6022 'params' => array(
4646 6023 'src' => array(
4647 6024 'type' => 'video',
4648 6025 'label' => __pl('video_src_label'),
4649 - 'default' => 'https://www.youtube.com/watch?v=VT7WfVp1owQ',
6026 + 'default' => 'https://www.youtube.com/watch?v=t8Iz-v-qce8',
4650 6027 'desc' => __pl('video_src_desc'),
4651 6028 ),
4652 6029 'lightbox' => array(
4653 6030 'type' => 'checkbox',
@@ -4664,9 +6041,9 @@
4664 6041 ],
4665 6042 ),
4666 6043 'mute' => array(
4667 6044 'type' => 'checkbox',
4668 - 'label' => __pl('Mute'),
6045 + 'label' => __pl('mute'),
4669 6046 ),
4670 6047 'loop' => array(
4671 6048 'type' => 'checkbox',
4672 6049 'label' => __pl('loop'),
@@ -4702,9 +6079,9 @@
4702 6079 ),
4703 6080 'play_icon' => array(
4704 6081 'type' => 'icon',
4705 6082 'label' => __pl('list_icon_label'),
4706 - 'default' => 'play-circle',
6083 + 'default' => 'fas fa-play-circle',
4707 6084 'req' => array(
4708 6085 'overlay' => 'true'
4709 6086 )
4710 6087 ),
@@ -4710,9 +6087,9 @@
4710 6087 ),
4711 6088 'icon_color' => array(
4712 6089 'type' => 'color',
4713 6090 'label' => __pl('service_heading_color'),
4714 - 'default' => '#3e8ef7',
6091 + 'default' => '#0986c0',
4715 6092 'css' => ['{{element}} .pagelayer-video-overlay i' => 'color:{{val}}'],
4716 6093 'req' => array(
4717 6094 'overlay' => 'true'
4718 6095 )
@@ -4752,22 +6129,21 @@
4752 6129 // Service Box
4753 6130 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
4754 6131 'name' => __pl('Image Box'),
4755 6132 'group' => 'other',
4756 - 'func' => 'pagelayer_sc_service',
4757 6133 'innerHTML' => 'service_text',
4758 6134 'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
4759 6135 <div if="{{service_image}}" class="pagelayer-service-image">
4760 - <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}}" />
4761 6137 </div>
4762 6138 <div class="pagelayer-service-details">
4763 - <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" >
4764 6140 <div if={{service_heading}} class="pagelayer-service-heading">{{service_heading}}</div>
4765 6141 </a>
4766 6142 <div if={{service_text}} class="pagelayer-service-text">{{service_text}}</div>
4767 - <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>
4768 6144 </div>
4769 - <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>
4770 6146 </div>',
4771 6147 'params' => [
4772 6148 'service_image' => array(
4773 6149 'type' => 'image',
@@ -4772,8 +6148,9 @@
4772 6148 'service_image' => array(
4773 6149 'type' => 'image',
4774 6150 'label' => __pl('service_box_image_icon_label'),
4775 6151 'default' => PAGELAYER_URL.'/images/default-image.png',
6152 + 'retina' => 1,
4776 6153 ),
4777 6154 'service_image_size' => array(
4778 6155 'type' => 'radio',
4779 6156 'label' => __pl('service_box_image_icon_size_label'),
@@ -4790,9 +6167,9 @@
4790 6167 'min' => '0',
4791 6168 'max' => '2000',
4792 6169 'screen' => 1,
4793 6170 'default' => '200',
4794 - 'css' => ['{{element}} .pagelayer-service-image img' => 'width:{{val}}px; height: auto;'],
6171 + 'css' => ['{{element}} .pagelayer-service-image img' => 'width:{{val}}px;'],
4795 6172 'req' => array(
4796 6173 'service_image_size' => 'custom',
4797 6174 )
4798 6175 ),
@@ -4798,8 +6175,9 @@
4798 6175 ),
4799 6176 'box_url' => array(
4800 6177 'type' => 'link',
4801 6178 'label' => __pl('url'),
6179 + 'selector' => '.pagelayer-box-link',
4802 6180 ),
4803 6181 'anim_hover' => array(
4804 6182 'type' => 'select',
4805 6183 'label' => __pl('icon_animation'),
@@ -4831,11 +6209,12 @@
4831 6209 'wobble-top' => __pl('Wobble Top'),
4832 6210 'wobble-bottom' => __pl('Wobble Bottom'),
4833 6211 'wobble-skew' => __pl('Wobble Skew'),
4834 6212 ],
6213 + 'addClass' => 'pagelayer-anim-par'
4835 6214 )
4836 6215 ],
4837 - 'service_img_style' => [
6216 + 'service_img_style' => [
4838 6217 'service_alignment' => array(
4839 6218 'type' => 'radio',
4840 6219 'label' => __pl('service_box_media_alignment'),
4841 6220 'default' => 'top',
@@ -4855,11 +6234,47 @@
4855 6234 'bottom' => __pl('bottom'),
4856 6235 ),
4857 6236 'req' => ['!service_alignment' => 'top']
4858 6237 ),
6238 + 'service_image_height' => array(
6239 + 'type' => 'slider',
6240 + 'label' => __pl('img_height'),
6241 + 'min' => '0',
6242 + 'screen' => 1,
6243 + 'css' => ['{{element}} .pagelayer-service-image img' => 'height:{{val}}px;'],
6244 + ),
6245 + 'service_image_object_fit' => array(
6246 + 'type' => 'select',
6247 + 'label' => __pl('object_fit'),
6248 + 'screen' => 1,
6249 + 'list' => array(
6250 + '' => __pl('none'),
6251 + 'contain' => __pl('contain'),
6252 + 'cover' => __pl('cover'),
6253 + 'fill' => __pl('fill'),
6254 + 'scale-down' => __pl('scale_down'),
6255 + ),
6256 + 'css' => ['{{element}} .pagelayer-service-image img' => 'object-fit:{{val}};'],
6257 + ),
6258 + 'service_image_object_pos' => array(
6259 + 'type' => 'select',
6260 + 'label' => __pl('object_pos'),
6261 + 'screen' => 1,
6262 + 'list' => array(
6263 + '' => __pl('none'),
6264 + 'top' => __pl('top'),
6265 + 'bottom' => __pl('bottom'),
6266 + 'center' => __pl('center'),
6267 + 'left' => __pl('left'),
6268 + 'right' => __pl('right'),
6269 + ),
6270 + 'css' => ['{{element}} .pagelayer-service-image img' => 'object-position:{{val}};'],
6271 + 'req' => [ '!service_image_object_fit' => ''],
6272 + ),
4859 6273 'service_img_alignment' => array(
4860 6274 'type' => 'radio',
4861 6275 'label' => __pl('horizontal_pos'),
6276 + 'screen' => 1,
4862 6277 'css' => ['{{element}} .pagelayer-service-image' => 'text-align: {{val}};,'],
4863 6278 'list' => array(
4864 6279 'left' => __pl('left'),
4865 6280 'center' => __pl('center'),
@@ -4904,9 +6319,9 @@
4904 6319 ),
4905 6320 'img_border_color' => array(
4906 6321 'type' => 'color',
4907 6322 'label' => __pl('icon_border_color_label'),
4908 - 'default' => '#3e8ef7',
6323 + 'default' => '#0986c0',
4909 6324 'css' => ['{{element}} .pagelayer-service-image img' => 'border-color: {{val}};'],
4910 6325 'req' => [
4911 6326 '!img_border_type' => '',
4912 6327 ],
@@ -4966,9 +6381,9 @@
4966 6381 ),
4967 6382 'img_border_color_hover' => array(
4968 6383 'type' => 'color',
4969 6384 'label' => __pl('icon_border_color_hover_label'),
4970 - 'default' => '#3e8ef7',
6385 + 'default' => '#0986c0',
4971 6386 'css' => ['{{element}}:hover .pagelayer-service-image img' => 'border-color: {{val}};'],
4972 6387 'req' => [
4973 6388 '!img_border_type_hover' => '',
4974 6389 ],
@@ -5000,15 +6415,28 @@
5000 6415 'service_heading' => array(
5001 6416 'type' => 'textarea',
5002 6417 'label' => __pl('service_box_heading_label'),
5003 6418 'default' => 'This is an Image Box',
5004 - 'text' => __pl('open_in_wpeditor'),
6419 + 'edit' => '.pagelayer-service-heading',
5005 6420 ),
5006 6421 'heading_url' => array(
5007 6422 'type' => 'link',
5008 6423 'label' => __pl('url'),
5009 - 'req' => ['!service_heading' => '']
6424 + 'selector' => '.pagelayer-service-heading-link',
6425 + 'req' => ['!service_heading' => '', 'box_url' => '']
5010 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 + ),
5011 6439 'service_title_spacing' => array(
5012 6440 'type' => 'padding',
5013 6441 'label' => __pl('spacing'),
5014 6442 'screen' => 1,
@@ -5026,9 +6454,9 @@
5026 6454 ),
5027 6455 'service_heading_color' => array(
5028 6456 'type' => 'color',
5029 6457 'label' => __pl('service_heading_color'),
5030 - 'default' => '#3e8ef7',
6458 + 'default' => '#0986c0',
5031 6459 'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
5032 6460 'show' => ['heading_state' => 'normal'],
5033 6461 ),
5034 6462 'service_heading_typo' => array(
@@ -5034,9 +6462,8 @@
5034 6462 'service_heading_typo' => array(
5035 6463 'type' => 'typography',
5036 6464 'label' => __pl('service_heading_typo'),
5037 6465 'default' => ',28,,600,,,,,,,',
5038 - 'screen' => 1,
5039 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;'],
5040 6467 'show' => ['heading_state' => 'normal'],
5041 6468 ),
5042 6469 'heading_transition' => array(
@@ -5057,9 +6484,8 @@
5057 6484 ),
5058 6485 'heading_typo_hover' => array(
5059 6486 'type' => 'typography',
5060 6487 'label' => __pl('service_heading_typo'),
5061 - 'screen' => 1,
5062 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;'],
5063 6489 'show' => ['heading_state' => 'hover'],
5064 6490 ),
5065 6491 ],
@@ -5087,9 +6513,9 @@
5087 6513 'service_text' => array(
5088 6514 'type' => 'editor',
5089 6515 'label' => __pl('service_box_text_label'),
5090 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.',
5091 - 'text' => __pl('open_in_wpeditor'),
6517 + 'edit' => '.pagelayer-service-text',
5092 6518 )
5093 6519 ],
5094 6520 //service button style
5095 6521 'service_btn_style' =>[
@@ -5144,11 +6570,20 @@
5144 6570 'service_button' => 'true',
5145 6571 'service_button_size' => 'pagelayer-btn-custom',
5146 6572 ]
5147 6573 ),
6574 + 'service_btn_stretch' => array(
6575 + 'type' => 'checkbox',
6576 + 'label' => __pl('stretch'),
6577 + 'css' => ['{{element}} .pagelayer-service-btn' => 'width:100%;'],
6578 + 'req' => array(
6579 + 'service_button' => 'true'
6580 + ),
6581 + ),
5148 6582 'service_button_url' => array(
5149 6583 'type' => 'link',
5150 6584 'label' => __pl('service_btn_url_label'),
6585 + 'selector' => '.pagelayer-service-btn',
5151 6586 'req' => array(
5152 6587 'service_button' => 'true'
5153 6588 ),
5154 6589 ),
@@ -5155,8 +6590,9 @@
5155 6590 'service_button_text' => array(
5156 6591 'type' => 'text',
5157 6592 'label' => __pl('service_button_text_label'),
5158 6593 'default' => 'Click Here!',
6594 + 'edit' => '.pagelayer-service-btn',
5159 6595 'req' => array(
5160 6596 'service_button' => 'true'
5161 6597 ),
5162 6598 ),
@@ -5162,18 +6598,17 @@
5162 6598 ),
5163 6599 'service_button_typo' => array(
5164 6600 'type' => 'typography',
5165 6601 'label' => __pl('typography'),
5166 - 'screen' => 1,
5167 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']
5168 6604 ),
5169 6605 'service_btn_spacing' => array(
5170 6606 'type' => 'padding',
5171 6607 'label' => __pl('spacing'),
6608 + 'screen' => 1,
5172 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;'],
5173 - 'req' => [
5174 - 'service_button' => 'true',
5175 - ]
6610 + 'req' => ['service_button' => 'true']
5176 6611 ),
5177 6612 'service_button_font_size' => array(
5178 6613 'type' => 'slider',
5179 6614 'label' => __pl('iconbox_btn_text_size'),
@@ -5212,9 +6647,9 @@
5212 6647 ),
5213 6648 'service_button_bg_color' => array(
5214 6649 'type' => 'color',
5215 6650 'label' => __pl('service_button_bg_color'),
5216 - 'default' => '#3e8ef7',
6651 + 'default' => '#0986c0',
5217 6652 'css' => ['{{element}} .pagelayer-service-btn' => 'background-color:{{val}};'],
5218 6653 'req' => [
5219 6654 'service_button' => 'true',
5220 6655 'service_button_type' => 'pagelayer-btn-custom',
@@ -5245,13 +6680,126 @@
5245 6680 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'background-color:{{val}};'],
5246 6681 'show' => ['service_btn_state' => 'hover'],
5247 6682 ),
5248 6683 ],
6684 + 'border_style' => [
6685 + 'btn_bor_hover' => array(
6686 + 'type' => 'radio',
6687 + 'label' => __pl('state'),
6688 + 'list' => array(
6689 + '' => __pl('normal'),
6690 + 'hover' => __pl('hover'),
6691 + )
6692 + ),
6693 + 'btn_border_type' => array(
6694 + 'type' => 'select',
6695 + 'label' => __pl('border_type'),
6696 + 'css' => ['{{element}} .pagelayer-service-btn' => 'border-style: {{val}}'],
6697 + 'list' => [
6698 + '' => __pl('none'),
6699 + 'solid' => __pl('solid'),
6700 + 'double' => __pl('double'),
6701 + 'dotted' => __pl('dotted'),
6702 + 'dashed' => __pl('dashed'),
6703 + 'groove' => __pl('groove'),
6704 + ],
6705 + 'show' => array(
6706 + 'btn_bor_hover' => ''
6707 + ),
6708 + ),
6709 + 'btn_border_color' => array(
6710 + 'type' => 'color',
6711 + 'label' => __pl('border_color_label'),
6712 + 'css' => ['{{element}} .pagelayer-service-btn' => 'border-color: {{val}};'],
6713 + 'req' => array(
6714 + '!btn_border_type' => ''
6715 + ),
6716 + 'show' => array(
6717 + 'btn_bor_hover' => ''
6718 + ),
6719 + ),
6720 + 'btn_border_width' => array(
6721 + 'type' => 'padding',
6722 + 'label' => __pl('border_width'),
6723 + 'screen' => 1,
6724 + 'css' => ['{{element}} .pagelayer-service-btn' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
6725 + 'req' => [
6726 + '!btn_border_type' => ''
6727 + ],
6728 + 'show' => array(
6729 + 'btn_bor_hover' => ''
6730 + ),
6731 + ),
6732 + 'btn_border_radius' => array(
6733 + 'type' => 'padding',
6734 + 'label' => __pl('border_radius'),
6735 + 'screen' => 1,
6736 + 'css' => ['{{element}} .pagelayer-service-btn' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
6737 + 'req' => array(
6738 + '!btn_border_type' => ''
6739 + ),
6740 + 'show' => array(
6741 + 'btn_bor_hover' => ''
6742 + ),
6743 + ),
6744 + 'btn_border_type_hover' => array(
6745 + 'type' => 'select',
6746 + 'label' => __pl('border_type'),
6747 + 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'border-style: {{val}}'],
6748 + 'list' => [
6749 + '' => __pl('none'),
6750 + 'solid' => __pl('solid'),
6751 + 'double' => __pl('double'),
6752 + 'dotted' => __pl('dotted'),
6753 + 'dashed' => __pl('dashed'),
6754 + 'groove' => __pl('groove'),
6755 + ],
6756 + 'show' => array(
6757 + 'btn_bor_hover' => 'hover'
6758 + ),
6759 + ),
6760 + 'btn_border_color_hover' => array(
6761 + 'type' => 'color',
6762 + 'label' => __pl('border_color_hover_label'),
6763 + 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'border-color: {{val}};'],
6764 + 'req' => array(
6765 + '!btn_border_type_hover' => ''
6766 + ),
6767 + 'show' => array(
6768 + 'btn_bor_hover' => 'hover'
6769 + ),
6770 + ),
6771 + 'btn_border_width_hover' => array(
6772 + 'type' => 'padding',
6773 + 'label' => __pl('border_width_hover'),
6774 + 'screen' => 1,
6775 + 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
6776 + 'req' => [
6777 + '!btn_border_type_hover' => ''
6778 + ],
6779 + 'show' => array(
6780 + 'btn_bor_hover' => 'hover'
6781 + ),
6782 + ),
6783 + 'btn_border_radius_hover' => array(
6784 + 'type' => 'padding',
6785 + 'label' => __pl('border_radius_hover'),
6786 + 'screen' => 1,
6787 + 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
6788 + 'req' => array(
6789 + '!btn_border_type_hover' => ''
6790 + ),
6791 + 'show' => array(
6792 + 'btn_bor_hover' => 'hover'
6793 + ),
6794 + ),
6795 + ],
5249 6796 'styles' => [
5250 6797 'service_img_style' => __pl('service_img_style'),
5251 6798 'service_heading_style' => __pl('service_heading_style'),
5252 6799 'service_content_style' => __pl('service_content_style'),
5253 6800 'service_btn_style' => __pl('service_btn_style'),
6801 + 'border_style' => __pl('btn_border_style'),
5254 6802 ],
5255 6803 )
5256 6804 );
5257 6805
@@ -5258,9 +6806,8 @@
5258 6806 // Icon Box
5259 6807 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
5260 6808 'name' => __pl('Icon Box'),
5261 6809 'group' => 'other',
5262 - 'func' => 'pagelayer_sc_iconbox',
5263 6810 'innerHTML' => 'service_text',
5264 6811 'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
5265 6812 <div class="pagelayer-service-icon pagelayer-service-{{service_icon_view}}">
5266 6813 <i class="{{service_icon}} pagelayer-icon-{{service_icon_shape_type}} pagelayer-animation-{{anim_hover}}" aria-hidden="true"></i>
@@ -5265,23 +6812,23 @@
5265 6812 <div class="pagelayer-service-icon pagelayer-service-{{service_icon_view}}">
5266 6813 <i class="{{service_icon}} pagelayer-icon-{{service_icon_shape_type}} pagelayer-animation-{{anim_hover}}" aria-hidden="true"></i>
5267 6814 </div>
5268 6815 <div class="pagelayer-service-details">
5269 - <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" >
5270 6817 <div if="{{service_heading}}" class="pagelayer-service-heading">{{service_heading}}</div>
5271 6818 </a>
5272 6819 <div if="{{service_text}}" class="pagelayer-service-text">{{service_text}}</div>
5273 - <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}}">
5274 6821 <span if="{{service_button_text}}">{{service_button_text}}</span>
5275 6822 </a>
5276 6823 </div>
5277 - <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>
5278 6825 </div>',
5279 6826 'params' => array(
5280 6827 'service_icon' => array(
5281 6828 'type' => 'icon',
5282 6829 'label' => __pl('iconbox_font_icon_label'),
5283 - 'default' => 'exclamation-circle',
6830 + 'default' => 'fas fa-exclamation-circle',
5284 6831 ),
5285 6832 'service_alignment' => array(
5286 6833 'type' => 'radio',
5287 6834 'label' => __pl('iconbox_box_media_alignment'),
@@ -5307,8 +6854,9 @@
5307 6854 ),
5308 6855 'service_icon_alignment' => array(
5309 6856 'type' => 'radio',
5310 6857 'label' => __pl('horizontal_pos'),
6858 + 'screen' => 1,
5311 6859 'css' => ['{{element}} .pagelayer-service-icon' => 'text-align: {{val}};,'],
5312 6860 'list' => array(
5313 6861 'left' => __pl('left'),
5314 6862 'center' => __pl('center'),
@@ -5318,8 +6866,9 @@
5318 6866 ),
5319 6867 'box_url' => array(
5320 6868 'type' => 'link',
5321 6869 'label' => __pl('url'),
6870 + 'selector' => '.pagelayer-box-link',
5322 6871 ),
5323 6872 ),
5324 6873 // icon style
5325 6874 'service_icon_style' => [
@@ -5354,10 +6903,46 @@
5354 6903 'req' => ['!service_icon_view' => 'default'],
5355 6904 ),
5356 6905 'service_icon_spacing' => array(
5357 6906 'type' => 'padding',
6907 + 'screen' => 1,
5358 6908 'label' => __pl('service_icon_spacing'),
6909 + 'screen' => 1,
5359 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'
5360 6945 ),
5361 6946 'service_icon_state' => array(
5362 6947 'type' => 'radio',
5363 6948 'label' => __pl('icon_state'),
@@ -5369,9 +6954,9 @@
5369 6954 ),
5370 6955 'service_icon_color' => array(
5371 6956 'type' => 'color',
5372 6957 'label' => __pl('iconbox_icon_color'),
5373 - 'default' => '#3e8ef7',
6958 + 'default' => '#0986c0',
5374 6959 'css' => ['{{element}} .pagelayer-service-icon i' => 'color:{{val}};'],
5375 6960 'show' => ['service_icon_state' => 'normal'],
5376 6961 ),
5377 6962 'service_icon_background_color' => array(
@@ -5376,9 +6961,9 @@
5376 6961 ),
5377 6962 'service_icon_background_color' => array(
5378 6963 'type' => 'color',
5379 6964 'label' => __pl('service_icon_background_color'),
5380 - 'default' => '#eff0f0ff',
6965 + 'default' => '#eff0f0',
5381 6966 'css' => ['{{element}} .pagelayer-service-icon.pagelayer-service-stacked i' => 'background-color:{{val}};'],
5382 6967 'show' => ['service_icon_state' => 'normal'],
5383 6968 'req' => ['service_icon_view' => 'stacked']
5384 6969 ),
@@ -5411,44 +6996,8 @@
5411 6996 'default' => 400,
5412 6997 'css' => ['{{element}} .pagelayer-service-icon i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
5413 6998 'show' => ['service_icon_state' => 'hover'],
5414 6999 ),
5415 - 'anim_hover' => array(
5416 - 'type' => 'select',
5417 - 'label' => __pl('icon_animation'),
5418 - 'list' => [
5419 - '' => __pl('none'),
5420 - 'grow' => __pl('Grow'),
5421 - 'shrink' => __pl('Shrink'),
5422 - 'pulse' => __pl('Pulse'),
5423 - 'pulse-grow' => __pl('Pulse Grow'),
5424 - 'pulse-shrink' => __pl('Pulse Shrink'),
5425 - 'push' => __pl('Push'),
5426 - 'pop' => __pl('Pop'),
5427 - 'buzz' => __pl('Buzz'),
5428 - 'buzz-out' => __pl('Buzz Out'),
5429 - 'float' => __pl('Float'),
5430 - 'sink' => __pl('Sink'),
5431 - 'bob' => __pl('Bob'),
5432 - 'hang' => __pl('Hang'),
5433 - 'bounce-in' => __pl('Bounce In'),
5434 - 'bounce-out' => __pl('Bounce Out'),
5435 - 'rotate' => __pl('Rotate'),
5436 - 'grow-rotate' => __pl('Grow Rotate'),
5437 - 'skew-forward' => __pl('Skew Forward'),
5438 - 'skew-backward' => __pl('Skew Backward'),
5439 - 'wobble-vertical' => __pl('Wobble Vertical'),
5440 - 'wobble-horizontal' => __pl('Wobble Horizontal'),
5441 - 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
5442 - 'wobble-top-to-right' => __pl('Wobble Top To Right'),
5443 - 'wobble-top' => __pl('Wobble Top'),
5444 - 'wobble-bottom' => __pl('Wobble Bottom'),
5445 - 'wobble-skew' => __pl('Wobble Skew'),
5446 - ],
5447 - 'show' => array(
5448 - 'service_icon_state' => 'hover',
5449 - ),
5450 - ),
5451 7000 'service_icon_color_hover' => array(
5452 7001 'type' => 'color',
5453 7002 'label' => __pl('service_icon_color_hover'),
5454 7003 'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'color:{{val}};'],
@@ -5507,9 +7056,9 @@
5507 7056 ),
5508 7057 'service_icon_border_color' => array(
5509 7058 'type' => 'color',
5510 7059 'label' => __pl('icon_border_color_label'),
5511 - 'default' => '#3e8ef7',
7060 + 'default' => '#0986c0',
5512 7061 'css' => ['{{element}} .pagelayer-service-icon i' => 'border-color: {{val}};'],
5513 7062 'req' => [
5514 7063 '!service_icon_border_type' => '',
5515 7064 ],
@@ -5551,9 +7100,9 @@
5551 7100 ),
5552 7101 'service_icon_border_color_hover' => array(
5553 7102 'type' => 'color',
5554 7103 'label' => __pl('icon_border_color_hover_label'),
5555 - 'default' => '#3e8ef7',
7104 + 'default' => '#0986c0',
5556 7105 'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'border-color: {{val}};'],
5557 7106 'req' => [
5558 7107 '!service_icon_border_type_hover' => '',
5559 7108 ],
@@ -5584,15 +7133,28 @@
5584 7133 'service_heading' => array(
5585 7134 'type' => 'textarea',
5586 7135 'label' => __pl('iconbox_box_heading_label'),
5587 7136 'default' => 'This is Icon Box',
5588 - 'text' => __pl('open_in_wpeditor'),
7137 + 'edit' => '.pagelayer-service-heading',
5589 7138 ),
5590 7139 'heading_url' => array(
5591 7140 'type' => 'link',
5592 7141 'label' => __pl('url'),
5593 - 'req' => ['!service_heading' => '']
7142 + 'selector' => '.pagelayer-service-heading-link',
7143 + 'req' => ['!service_heading' => '', 'box_url' => '']
5594 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 + ),
5595 7157 'service_title_spacing' => array(
5596 7158 'type' => 'padding',
5597 7159 'label' => __pl('spacing'),
5598 7160 'screen' => 1,
@@ -5610,9 +7172,9 @@
5610 7172 ),
5611 7173 'service_heading_color' => array(
5612 7174 'type' => 'color',
5613 7175 'label' => __pl('service_heading_color'),
5614 - 'default' => '#3e8ef7',
7176 + 'default' => '#0986c0',
5615 7177 'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
5616 7178 'show' => ['heading_state' => 'normal']
5617 7179 ),
5618 7180 'service_heading_typo' => array(
@@ -5618,9 +7180,8 @@
5618 7180 'service_heading_typo' => array(
5619 7181 'type' => 'typography',
5620 7182 'label' => __pl('service_heading_typo'),
5621 7183 'default' => ',28,,600,,,,,,,',
5622 - 'screen' => 1,
5623 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;'],
5624 7185 'show' => ['heading_state' => 'normal']
5625 7186 ),
5626 7187 'heading_delay' => array(
@@ -5641,9 +7202,8 @@
5641 7202 ),
5642 7203 'heading_typo_hover' => array(
5643 7204 'type' => 'typography',
5644 7205 'label' => __pl('service_heading_typo'),
5645 - 'screen' => 1,
5646 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;'],
5647 7207 'show' => ['heading_state' => 'hover']
5648 7208 ),
5649 7209 ],
@@ -5670,9 +7230,9 @@
5670 7230 'service_text' => array(
5671 7231 'type' => 'editor',
5672 7232 'label' => __pl('iconbox_box_text_label'),
5673 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.',
5674 - 'text' => __pl('open_in_wpeditor'),
7234 + 'edit' => '.pagelayer-service-text',
5675 7235 ),
5676 7236 ],
5677 7237 //service button style
5678 7238 'service_btn_style' =>[
@@ -5696,11 +7256,9 @@
5696 7256 'pagelayer-btn-light' => __pl('btn_type_light'),
5697 7257 'pagelayer-btn-link' => __pl('btn_type_link'),
5698 7258 'pagelayer-btn-custom' => __pl('btn_type_custom')
5699 7259 ),
5700 - 'req' => array(
5701 - 'service_button' => 'true'
5702 - ),
7260 + 'req' => ['service_button' => 'true']
5703 7261 ),
5704 7262 'service_button_size' => array(
5705 7263 'type' => 'select',
5706 7264 'label' => __pl('button_size_label'),
@@ -5712,11 +7270,9 @@
5712 7270 'pagelayer-btn-extra-large' => __pl('extra_large'),
5713 7271 'pagelayer-btn-double-large' => __pl('double_large'),
5714 7272 'pagelayer-btn-custom' => __pl('custom'),
5715 7273 ),
5716 - 'req' => array(
5717 - 'service_button' => 'true'
5718 - )
7274 + 'req' => ['service_button' => 'true']
5719 7275 ),
5720 7276 'service_btn_dim' => array(
5721 7277 'type' => 'dimension',
5722 7278 'label' => __pl('service_btn_dim'),
@@ -5727,36 +7283,38 @@
5727 7283 'service_button' => 'true',
5728 7284 'service_button_size' => 'pagelayer-btn-custom',
5729 7285 ]
5730 7286 ),
7287 + 'service_btn_stretch' => array(
7288 + 'type' => 'checkbox',
7289 + 'label' => __pl('stretch'),
7290 + 'css' => ['{{element}} .pagelayer-service-btn' => 'width:100%;'],
7291 + 'req' => ['service_button' => 'true']
7292 + ),
5731 7293 'service_button_url' => array(
5732 7294 'type' => 'link',
5733 7295 'label' => __pl('iconbox_btn_url_label'),
5734 - 'req' => array(
5735 - 'service_button' => 'true'
5736 - ),
7296 + 'selector' => '.pagelayer-service-btn',
7297 + 'req' => ['service_button' => 'true']
5737 7298 ),
5738 7299 'service_button_text' => array(
5739 7300 'type' => 'text',
5740 7301 'label' => __pl('iconbox_button_text_label'),
7302 + 'edit' => '.pagelayer-service-btn',
5741 7303 'default' => 'Click Here!',
5742 - 'req' => array(
5743 - 'service_button' => 'true'
5744 - ),
7304 + 'req' => ['service_button' => 'true']
5745 7305 ),
5746 7306 'service_button_typo' => array(
5747 7307 'type' => 'typography',
5748 7308 'label' => __pl('typography'),
5749 - 'screen' => 1,
5750 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']
5751 7311 ),
5752 7312 'service_btn_spacing' => array(
5753 7313 'type' => 'padding',
5754 7314 'label' => __pl('spacing'),
5755 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;'],
5756 - 'req' => [
5757 - 'service_button' => 'true',
5758 - ]
7316 + 'req' => ['service_button' => 'true']
5759 7317 ),
5760 7318 'service_button_font_size' => array(
5761 7319 'type' => 'slider',
5762 7320 'label' => __pl('iconbox_btn_text_size'),
@@ -5795,9 +7353,9 @@
5795 7353 ),
5796 7354 'service_button_bg_color' => array(
5797 7355 'type' => 'color',
5798 7356 'label' => __pl('service_button_bg_color'),
5799 - 'default' => '#3e8ef7',
7357 + 'default' => '#0986c0',
5800 7358 'css' => ['{{element}} .pagelayer-service-btn' => 'background-color:{{val}};'],
5801 7359 'req' => [
5802 7360 'service_button' => 'true',
5803 7361 'iconbox_button_type' => 'pagelayer-btn-custom',
@@ -5828,8 +7386,120 @@
5828 7386 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'background-color:{{val}};'],
5829 7387 'show' => ['service_btn_state' => 'hover'],
5830 7388 ),
5831 7389 ],
7390 + 'border_style' => [
7391 + 'btn_bor_hover' => array(
7392 + 'type' => 'radio',
7393 + 'label' => __pl('state'),
7394 + 'list' => array(
7395 + '' => __pl('normal'),
7396 + 'hover' => __pl('hover'),
7397 + )
7398 + ),
7399 + 'btn_border_type' => array(
7400 + 'type' => 'select',
7401 + 'label' => __pl('border_type'),
7402 + 'css' => ['{{element}} .pagelayer-service-btn' => 'border-style: {{val}}'],
7403 + 'list' => [
7404 + '' => __pl('none'),
7405 + 'solid' => __pl('solid'),
7406 + 'double' => __pl('double'),
7407 + 'dotted' => __pl('dotted'),
7408 + 'dashed' => __pl('dashed'),
7409 + 'groove' => __pl('groove'),
7410 + ],
7411 + 'show' => array(
7412 + 'btn_bor_hover' => ''
7413 + ),
7414 + ),
7415 + 'btn_border_color' => array(
7416 + 'type' => 'color',
7417 + 'label' => __pl('border_color_label'),
7418 + 'css' => ['{{element}} .pagelayer-service-btn' => 'border-color: {{val}};'],
7419 + 'req' => array(
7420 + '!btn_border_type' => ''
7421 + ),
7422 + 'show' => array(
7423 + 'btn_bor_hover' => ''
7424 + ),
7425 + ),
7426 + 'btn_border_width' => array(
7427 + 'type' => 'padding',
7428 + 'label' => __pl('border_width'),
7429 + 'screen' => 1,
7430 + 'css' => ['{{element}} .pagelayer-service-btn' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
7431 + 'req' => [
7432 + '!btn_border_type' => ''
7433 + ],
7434 + 'show' => array(
7435 + 'btn_bor_hover' => ''
7436 + ),
7437 + ),
7438 + 'btn_border_radius' => array(
7439 + 'type' => 'padding',
7440 + 'label' => __pl('border_radius'),
7441 + 'screen' => 1,
7442 + 'css' => ['{{element}} .pagelayer-service-btn' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
7443 + 'req' => array(
7444 + '!btn_border_type' => ''
7445 + ),
7446 + 'show' => array(
7447 + 'btn_bor_hover' => ''
7448 + ),
7449 + ),
7450 + 'btn_border_type_hover' => array(
7451 + 'type' => 'select',
7452 + 'label' => __pl('border_type'),
7453 + 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'border-style: {{val}}'],
7454 + 'list' => [
7455 + '' => __pl('none'),
7456 + 'solid' => __pl('solid'),
7457 + 'double' => __pl('double'),
7458 + 'dotted' => __pl('dotted'),
7459 + 'dashed' => __pl('dashed'),
7460 + 'groove' => __pl('groove'),
7461 + ],
7462 + 'show' => array(
7463 + 'btn_bor_hover' => 'hover'
7464 + ),
7465 + ),
7466 + 'btn_border_color_hover' => array(
7467 + 'type' => 'color',
7468 + 'label' => __pl('border_color_hover_label'),
7469 + 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'border-color: {{val}};'],
7470 + 'req' => array(
7471 + '!btn_border_type_hover' => ''
7472 + ),
7473 + 'show' => array(
7474 + 'btn_bor_hover' => 'hover'
7475 + ),
7476 + ),
7477 + 'btn_border_width_hover' => array(
7478 + 'type' => 'padding',
7479 + 'label' => __pl('border_width_hover'),
7480 + 'screen' => 1,
7481 + 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'],
7482 + 'req' => [
7483 + '!btn_border_type_hover' => ''
7484 + ],
7485 + 'show' => array(
7486 + 'btn_bor_hover' => 'hover'
7487 + ),
7488 + ),
7489 + 'btn_border_radius_hover' => array(
7490 + 'type' => 'padding',
7491 + 'label' => __pl('border_radius_hover'),
7492 + 'screen' => 1,
7493 + 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px; -webkit-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;-moz-border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
7494 + 'req' => array(
7495 + '!btn_border_type_hover' => ''
7496 + ),
7497 + 'show' => array(
7498 + 'btn_bor_hover' => 'hover'
7499 + ),
7500 + ),
7501 + ],
5832 7502 'styles' => [
5833 7503 'service_icon_style' => __pl('service_icon_style'),
5834 7504 'service_icon_border' => __pl('service_icon_border'),
5835 7505 'service_heading_style' => __pl('service_heading_style'),
@@ -5834,8 +7504,9 @@
5834 7504 'service_icon_border' => __pl('service_icon_border'),
5835 7505 'service_heading_style' => __pl('service_heading_style'),
5836 7506 'service_content_style' => __pl('service_content_style'),
5837 7507 'service_btn_style' => __pl('service_btn_style'),
7508 + 'border_style' => __pl('btn_border_style'),
5838 7509 ],
5839 7510 )
5840 7511 );
5841 7512
@@ -5842,9 +7513,8 @@
5842 7513 // Tabs
5843 7514 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
5844 7515 'name' => __pl('tabs'),
5845 7516 'group' => 'other',
5846 - 'func' => 'pagelayer_sc_tabs',
5847 7517 'has_group' => [
5848 7518 'section' => 'params',
5849 7519 'prop' => 'elements'
5850 7520 ],
@@ -5978,15 +7648,14 @@
5978 7648 ),
5979 7649 'tabs_active_bg_color' => array(
5980 7650 'type' => 'color',
5981 7651 'label' => __pl('Active Tab Background Color'),
5982 - 'default' => '#3e8ef7',
7652 + 'default' => '#0986c0',
5983 7653 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks.active'=> 'background-color:{{val}}', '{{element}} .pagelayer-tabs-holder .pagelayer-tablinks:hover' => 'background-color:{{val}}'],
5984 7654 ),
5985 7655 'tab_title_typo' => array(
5986 7656 'type' => 'typography',
5987 7657 'label' => __pl('tab_title_typo'),
5988 - 'screen' => 1,
5989 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;'],
5990 7659 ),
5991 7660 'tabs_icon_align' => array(
5992 7661 'type' => 'radio',
@@ -6012,9 +7681,8 @@
6012 7681 'content_styles' => [
6013 7682 'tabs_content_typo' => array(
6014 7683 'type' => 'typography',
6015 7684 'label' => __pl('tab_content_typo'),
6016 - 'screen' => 1,
6017 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;'],
6018 7686 ),
6019 7687 'tabs_content_color' => array(
6020 7688 'type' => 'color',
@@ -6035,9 +7703,9 @@
6035 7703 'min' => 0,
6036 7704 'max' => 50,
6037 7705 'step' => 1,
6038 7706 'screen' => 1,
6039 - 'css' => ['{{element}}.pagelayer-tabs .pagelayer-tabcontainer [pagelayer-id]' => 'padding: {{val}}px;'],
7707 + 'css' => ['{{element}}.pagelayer-tabs .pagelayer-tabcontainer .pagelayer-tab' => 'padding: {{val}}px;'],
6040 7708 ),
6041 7709 'tabs_content_border_width' => array(
6042 7710 'type' => 'padding',
6043 7711 'label' => __pl('border_width'),
@@ -6071,12 +7739,34 @@
6071 7739 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tab', array(
6072 7740 'name' => __pl('tab'),
6073 7741 'group' => 'other',
6074 7742 'not_visible' => 1,
6075 - 'func' => 'pagelayer_sc_tab',
6076 - 'innerHTML' => 'text',
6077 - '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>',
6078 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 + ),
6079 7769 'default_active' => array(
6080 7770 'type' => 'checkbox',
6081 7771 'label' => __pl('Default active tab'),
6082 7772 'addAttr' => 'pagelayer-default_active="1"'
@@ -6085,21 +7775,20 @@
6085 7775 'type' => 'icon',
6086 7776 'label' => __pl('icon'),
6087 7777 'addAttr' => 'pagelayer-tab-icon="{{tab_icon}}"',
6088 7778 ),
7779 + 'anchor_id' => array(
7780 + 'type' => 'text',
7781 + 'label' => __pl('ele_id'),
7782 + 'addAttr' => 'id="{{anchor_id}}"'
7783 + ),
6089 7784 'title' => array(
6090 7785 'type' => 'text',
6091 7786 'label' => __pl('title'),
6092 7787 'default' => 'Lorem',
6093 - 'addAttr' => 'pagelayer-tab-title="{{title}}"'
7788 + 'addAttr' => 'pagelayer-tab-title="{{title}}"',
7789 + 'edit' => '.pl-tab-title'
6094 7790 ),
6095 - 'text' => array(
6096 - 'type' => 'editor',
6097 - 'label' => __pl('Edit Rich Text'),
6098 - 'default' => 'Lorem ipsum dolor sit amet',
6099 - 'desc' => __pl('Edit the content here or edit directly in the Editor'),
6100 - 'edit' => '.pagelayer-text-holder',
6101 - ),
6102 7791 )
6103 7792 )
6104 7793 );
6105 7794
@@ -6106,9 +7795,8 @@
6106 7795 // Accordion
6107 7796 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
6108 7797 'name' => __pl('accordion'),
6109 7798 'group' => 'other',
6110 - 'func' => 'pagelayer_sc_accordion',
6111 7799 'has_group' => [
6112 7800 'section' => 'params',
6113 7801 'prop' => 'elements'
6114 7802 ],
@@ -6140,14 +7828,14 @@
6140 7828 'icon_styles' => [
6141 7829 'icon' => array(
6142 7830 'type' => 'icon',
6143 7831 'label' => __pl('list_icon_label'),
6144 - 'default' => 'plus',
7832 + 'default' => 'fas fa-plus',
6145 7833 ),
6146 7834 'active_icon' => array(
6147 7835 'type' => 'icon',
6148 7836 'label' => __pl('Active Icon'),
6149 - 'default' => 'minus',
7837 + 'default' => 'fas fa-minus',
6150 7838 ),
6151 7839 'icon_align' => array(
6152 7840 'type' => 'radio',
6153 7841 'label' => __pl('Alignment'),
@@ -6152,9 +7840,9 @@
6152 7840 'type' => 'radio',
6153 7841 'label' => __pl('Alignment'),
6154 7842 'default' => 'left',
6155 7843 'screen' => 1,
6156 - 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
7844 + 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'float:{{val}}'],
6157 7845 'list' => array(
6158 7846 'left' => __pl('left'),
6159 7847 'right' => __pl('right'),
6160 7848 )
@@ -6167,9 +7855,9 @@
6167 7855 'min' => 0,
6168 7856 'max' => 50,
6169 7857 'step' => 1,
6170 7858 'screen' => 1,
6171 - '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;'],
6172 7860 ),
6173 7861 ],
6174 7862 'tabs_styles' => [
6175 7863 'tabs_color' => array(
@@ -6187,15 +7875,15 @@
6187 7875 'tabs_active_color' => array(
6188 7876 'type' => 'color',
6189 7877 'label' => __pl('Active Tab Color '),
6190 7878 'default' => '#ffffff',
6191 - '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}}'],
6192 7880 ),
6193 7881 'tabs_active_bg_color' => array(
6194 7882 'type' => 'color',
6195 7883 'label' => __pl('Active Tab Background Color '),
6196 - 'default' => '#3e8ef7',
6197 - '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}}'],
6198 7886 ),
6199 7887 'tab_padding' => array(
6200 7888 'type' => 'slider',
6201 7889 'label' => __pl('tabs_padding_label'),
@@ -6221,10 +7909,16 @@
6221 7909 ),
6222 7910 'acc_content_typo' => array(
6223 7911 'type' => 'typography',
6224 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'],
6225 7919 'screen' => 1,
6226 - '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]}}'],
6227 7921 ),
6228 7922 'acc_border_type' => array(
6229 7923 'type' => 'select',
6230 7924 'label' => __pl('border_type'),
@@ -6255,8 +7949,14 @@
6255 7949 'req' => [
6256 7950 '!acc_border_type' => ''
6257 7951 ],
6258 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 '],
6259 7959 )
6260 7960 ],
6261 7961 'styles' => [
6262 7962 'icon_styles' => __pl('icon'),
@@ -6270,31 +7970,43 @@
6270 7970 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion_item', array(
6271 7971 'name' => __pl('Accordion item'),
6272 7972 'group' => 'other',
6273 7973 'not_visible' => 1,
6274 - 'func' => 'pagelayer_sc_accordion_item',
6275 - 'innerHTML' => 'text',
6276 - 'html' => '<a if="{{title}}" class="pagelayer-accordion-tabs">{{title}}<span class="pagelayer-accordion-icon"><i></i></span></a>
6277 - <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>',
6278 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 + ),
6279 7993 'default_active' => array(
6280 7994 'type' => 'checkbox',
6281 7995 'label' => __pl('Default active tab'),
6282 7996 'addClass' => 'active'
6283 7997 ),
7998 + 'scroll_id' => array(
7999 + 'type' => 'text',
8000 + 'label' => __pl('ele_id'),
8001 + 'addAttr' => ['{{element}} .pagelayer-accordion-tabs' => 'id={{scroll_id}}']
8002 + ),
6284 8003 'title' => array(
6285 8004 'type' => 'text',
6286 8005 'label' => __pl('title'),
6287 8006 'default' => 'Lorem',
6288 - 'desc' => __pl(''),
8007 + 'edit' => '.pagelayer-accordion-title',
6289 8008 ),
6290 - 'text' => array(
6291 - 'type' => 'editor',
6292 - 'label' => __pl('Edit Rich Text'),
6293 - 'default' => 'Lorem ipsum dolor sit amet',
6294 - 'desc' => __pl('Edit the content here or edit directly in the Editor'),
6295 - 'edit' => '.pagelayer-text-holder',
6296 - ),
6297 8009 )
6298 8010 )
6299 8011 );
6300 8012
@@ -6301,9 +8013,8 @@
6301 8013 // Toggle / Collapse
6302 8014 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
6303 8015 'name' => __pl('Collapse'),
6304 8016 'group' => 'other',
6305 - 'func' => 'pagelayer_sc_collapse',
6306 8017 'has_group' => [
6307 8018 'section' => 'params',
6308 8019 'prop' => 'elements'
6309 8020 ],
@@ -6336,14 +8047,14 @@
6336 8047 'icon_style' => [
6337 8048 'icon' => array(
6338 8049 'type' => 'icon',
6339 8050 'label' => __pl('list_icon_label'),
6340 - 'default' => 'plus',
8051 + 'default' => 'fas fa-plus',
6341 8052 ),
6342 8053 'active_icon' => array(
6343 8054 'type' => 'icon',
6344 8055 'label' => __pl('Active icon'),
6345 - 'default' => 'minus'
8056 + 'default' => 'fas fa-minus'
6346 8057 ),
6347 8058 'icon_align' => array(
6348 8059 'type' => 'radio',
6349 8060 'label' => __pl('Alignment'),
@@ -6348,9 +8059,9 @@
6348 8059 'type' => 'radio',
6349 8060 'label' => __pl('Alignment'),
6350 8061 'default' => 'left',
6351 8062 'screen' => 1,
6352 - 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
8063 + 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'float:{{val}}'],
6353 8064 'list' => array(
6354 8065 'left' => __pl('left'),
6355 8066 'right' => __pl('right'),
6356 8067 )
@@ -6363,9 +8074,9 @@
6363 8074 'min' => 0,
6364 8075 'max' => 50,
6365 8076 'step' => 1,
6366 8077 'screen' => 1,
6367 - '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;'],
6368 8079 ),
6369 8080 ],
6370 8081 'tabs_styles' => [
6371 8082 'tabs_color' => array(
@@ -6383,15 +8094,15 @@
6383 8094 'tabs_active_color' => array(
6384 8095 'type' => 'color',
6385 8096 'label' => __pl('Active Tab Color '),
6386 8097 'default' => '#fff',
6387 - '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}}'],
6388 8099 ),
6389 8100 'tabs_active_bg_color' => array(
6390 8101 'type' => 'color',
6391 8102 'label' => __pl('Active Tab Background Color '),
6392 - 'default' => '#3e8ef7',
6393 - '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}}'],
6394 8105 ),
6395 8106 'tab_padding' => array(
6396 8107 'type' => 'slider',
6397 8108 'label' => __pl('tabs_padding_label'),
@@ -6404,9 +8115,8 @@
6404 8115 ),
6405 8116 'collapse_title_typo' => array(
6406 8117 'type' => 'typography',
6407 8118 'label' => __pl('collapsse_title_typo'),
6408 - 'screen' => 1,
6409 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;'],
6410 8120 ),
6411 8121 ],
6412 8122 'content_styles' => [
@@ -6415,8 +8125,15 @@
6415 8125 'label' => __pl('Background Color '),
6416 8126 'default' => '#ffffff',
6417 8127 'css' => ['{{element}} .pagelayer-accordion_item .pagelayer-accordion-panel'=> 'background-color:{{val}}'],
6418 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 + ),
6419 8136 'acc_border_type' => array(
6420 8137 'type' => 'select',
6421 8138 'label' => __pl('border_type'),
6422 8139 'list' => [
@@ -6448,8 +8165,17 @@
6448 8165 '!acc_border_type' => ''
6449 8166 ],
6450 8167 'css' => ['{{element}} .pagelayer-accordion_item' => 'border-color: {{val}}', '{{element}} .pagelayer-accordion_item .pagelayer-accordion-panel' =>'border-color: {{val}}'],
6451 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 + )
6452 8178 ],
6453 8179 'styles' => [
6454 8180 'icon_style' => __pl('icon'),
6455 8181 'tabs_styles' => __pl('Tabs'),
@@ -6461,9 +8187,8 @@
6461 8187 // Space
6462 8188 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_space', array(
6463 8189 'name' => __pl('space'),
6464 8190 'group' => 'other',
6465 - 'func' => 'pagelayer_sc_space',
6466 8191 'html' => '<div class="pagelayer-space-holder"></div>',
6467 8192 'params' => array(
6468 8193 'height' => array(
6469 8194 'type' => 'slider',
@@ -6468,9 +8193,9 @@
6468 8193 'height' => array(
6469 8194 'type' => 'slider',
6470 8195 'label' => __pl('Space Height'),
6471 8196 'screen' => 1,
6472 - 'units' => ['px', '%'],
8197 + 'units' => ['px', 'em'],
6473 8198 'css' => ['{{element}} .pagelayer-space-holder' => 'height: {{val}};'],
6474 8199 'default' => '10',
6475 8200 'min' => 0,
6476 8201 'max' => 1000,
@@ -6483,9 +8208,8 @@
6483 8208 // Embed
6484 8209 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_embed', array(
6485 8210 'name' => __pl('embed'),
6486 8211 'group' => 'other',
6487 - 'func' => 'pagelayer_sc_embed',
6488 8212 'innerHTML' => 'data',
6489 8213 'html' => '<div if={{data}} class="pagelayer-embed-container">{{data}}</div>',
6490 8214 'params' => array(
6491 8215 'data' => array(
@@ -6490,9 +8214,9 @@
6490 8214 'params' => array(
6491 8215 'data' => array(
6492 8216 'type' => 'textarea',
6493 8217 'label' => __pl('embed_paste_code'),
6494 - 'default' => '<p>Paste HTML code here...</P>',
8218 + 'default' => '<p>Paste HTML code here...</p>',
6495 8219 'desc' => '',
6496 8220 ),
6497 8221 )
6498 8222 )
@@ -6501,9 +8225,9 @@
6501 8225 // Shortcodes
6502 8226 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_shortcodes', array(
6503 8227 'name' => __pl('shortcodes'),
6504 8228 'group' => 'other',
6505 - 'func' => 'pagelayer_sc_shortcodes',
8229 + 'no_gt' => 1,
6506 8230 'innerHTML' => 'data',
6507 8231 'holder' => '.pagelayer-shortcodes-container',
6508 8232 'html' => '<div class="pagelayer-shortcodes-container">{{{shortcode}}}</div>',
6509 8233 'params' => array(
@@ -6515,24 +8239,232 @@
6515 8239 )
6516 8240 )
6517 8241 );
6518 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 +
6519 8267 // Google Maps
6520 8268 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_google_maps', array(
6521 - 'name' => __pl('Google Maps'),
8269 + 'name' => __pl('google_maps'),
6522 8270 'group' => 'other',
6523 - 'func' => 'pagelayer_sc_google_maps',
6524 8271 'innerHTML' => 'address',
6525 8272 'html' => '<div class="pagelayer-google-maps-holder">
6526 - <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}}
6527 8275 </div>',
6528 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 + ),
6529 8306 'address' => array(
6530 8307 'type' => 'text',
6531 8308 'label' => __pl('google_map_address_label'),
6532 8309 'default' => 'New York, New York, USA',
6533 - 'desc' => __pl('google_map_address_desc')
8310 + 'desc' => __pl('google_map_address_desc'),
8311 + 'req' => ['!map_modes' => 'search']
6534 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 + ),
6535 8467 'noscroll' => array(
6536 8468 'type' => 'checkbox',
6537 8469 'label' => __pl('google_map_noscroll'),
6538 8470 'css' => ['{{element}} iframe' => 'pointer-events: none;'],
@@ -6541,9 +8473,9 @@
6541 8473 'type' => 'slider',
6542 8474 'label' => __pl('google_map_zoom_label'),
6543 8475 'default' => 10,
6544 8476 'min' => 0,
6545 - 'max' => 20
8477 + 'max' => 21
6546 8478 ),
6547 8479 'height' => array(
6548 8480 'type' => 'slider',
6549 8481 'label' => __pl('google_map_height'),
@@ -6560,18 +8492,17 @@
6560 8492 // Testimonial
6561 8493 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
6562 8494 'name' => __pl('testimonial'),
6563 8495 'group' => 'other',
6564 - 'func' => 'pagelayer_sc_testimonial',
6565 8496 'innerHTML' => 'quote_content',
6566 8497 'html' => '<div if="{{quote_content}}" class="pagelayer-testimonial-content">{{quote_content}}</div>
6567 8498 <div class="pagelayer-testimonial-author-details">
6568 - <div class="pagelayer-{{image_position}}">
6569 - <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}}}"/>
6570 8501 </div>
6571 8502 <div class="pagelayer-{{image_position}}">
6572 8503 <div if="{{cite}}" class="pagelayer-testimonial-cite">
6573 - <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}}}">
6574 8505 <span class="pagelayer-testimonial-author">{{cite}}</span>
6575 8506 </a>
6576 8507 <span if="{{designation}}" class="pagelayer-testimonial-author-title">
6577 8508 {{designation}}
@@ -6615,9 +8546,8 @@
6615 8546 'content_style' => [
6616 8547 'quote_content' => array(
6617 8548 'type' => 'editor',
6618 8549 'label' => __pl('testimonial_content_label'),
6619 - 'text' => __pl('Edit Testimonial content'),
6620 8550 'edit' => '.pagelayer-testimonial-content',
6621 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.'
6622 8552 )
6623 8553 ],
@@ -6624,10 +8554,11 @@
6624 8554 'avatar_style' => [
6625 8555 'avatar' => array(
6626 8556 'type' => 'image',
6627 8557 'label' => __pl('testimonial_image_label'),
8558 + 'default' => PAGELAYER_URL.'/images/default-image.png',
6628 8559 'desc' => __pl('testimonial_image_desc'),
6629 - 'default' => PAGELAYER_URL.'/images/default-image.png',
8560 + 'ai' => false,
6630 8561 ),
6631 8562 'testimonial_image_size' => array(
6632 8563 'label' => __pl('testimonial_image_sizes'),
6633 8564 'type' => 'slider',
@@ -6687,13 +8618,14 @@
6687 8618 'label' => __pl('testimonial_cite_label'),
6688 8619 'default' => 'John Smith',
6689 8620 'desc' => __pl('testimonial_cite_desc'),
6690 8621 'edit' => '.pagelayer-testimonial-author',
8622 + 'ai' => false,
6691 8623 ),
6692 8624 'cite_color' => array(
6693 8625 'type' => 'color',
6694 8626 'label' => __pl('testimonial_name_color_label'),
6695 - 'default' => '#426870ff',
8627 + 'default' => '#426870',
6696 8628 'css' => ['{{element}} .pagelayer-testimonial-author ' => 'color:{{val}}'],
6697 8629 ),
6698 8630 'cite_style' => array(
6699 8631 'type' => 'typography',
@@ -6698,15 +8630,14 @@
6698 8630 'cite_style' => array(
6699 8631 'type' => 'typography',
6700 8632 'label' => __pl('cite_style'),
6701 8633 'default' => ',20,,100,,none,,,,,',
6702 - 'screen' => 1,
6703 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;'],
6704 8635 ),
6705 8636 'cite_url' => array(
6706 8637 'type' => 'link',
6707 8638 'label' => __pl('testimonial_url_label'),
6708 - 'default' => '',
8639 + 'selector' => '.pagelayer-ele-link',
6709 8640 'desc' => __pl('testimonial_url_desc'),
6710 8641 ),
6711 8642 'cite_spacing' => array(
6712 8643 'type' => 'padding',
@@ -6725,9 +8656,9 @@
6725 8656 ),
6726 8657 'designation_color' => array(
6727 8658 'type' => 'color',
6728 8659 'label' => __pl('testimonial_title_color_label'),
6729 - 'default' => '#9cafc0ff',
8660 + 'default' => '#9cafc0',
6730 8661 'css' => ['{{element}} .pagelayer-testimonial-author-title' => 'color:{{val}}'],
6731 8662 ),
6732 8663 'cite_designation_style' => array(
6733 8664 'type' => 'typography',
@@ -6732,9 +8663,8 @@
6732 8663 'cite_designation_style' => array(
6733 8664 'type' => 'typography',
6734 8665 'label' => __pl('cite_designation_style'),
6735 8666 'default' => ',16,,100,,,,,,,',
6736 - 'screen' => 1,
6737 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;'],
6738 8668 ),
6739 8669 ],
6740 8670 'styles' => [
@@ -6750,11 +8680,14 @@
6750 8680 // Progress object - Make a group
6751 8681 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_progress', array(
6752 8682 'name' => __pl('Progress Bars'),
6753 8683 'group' => 'other',
6754 - 'func' => 'pagelayer_sc_progress',
6755 8684 'innerHTML' => 'progress_text',
6756 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>
6757 8690 <div class="pagelayer-progress-container">
6758 8691 <div if="{{progress_percentage}}" class="pagelayer-progress-bar pagelayer-progress-{{progress_type}}" style="width:{{progress_percentage}}%;">
6759 8692 <span if="{{progress_text}}" class="pagelayer-progress-text">{{progress_text}}</span>
6760 8693 <span if="{{progress_percentage}}" class="pagelayer-progress-percent"></span>
@@ -6776,12 +8709,18 @@
6776 8709 ),
6777 8710 'progress_color' => array(
6778 8711 'type' => 'color',
6779 8712 'label' => __pl('progress_bar_color'),
6780 - 'default' => '#3e8ef7',
8713 + 'default' => '#0986c0',
6781 8714 'css' => ['{{element}} .pagelayer-progress-bar' => 'background-color:{{val}};'],
6782 8715 'req' => ['progress_type' => '']
6783 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 + ),
6784 8723 'progress_height' => array(
6785 8724 'type' => 'slider',
6786 8725 'label' => __pl('progress_height'),
6787 8726 'min' => 0,
@@ -6793,8 +8732,41 @@
6793 8732 '{{element}} .pagelayer-progress-text' => 'line-height:{{val}}px; font-size: calc({{val}}px / 2);',
6794 8733 ],
6795 8734 'default' => 40,
6796 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 + )
6797 8769 ),
6798 8770 // Styles
6799 8771 'heading_style' => [
6800 8772 'title' => array(
@@ -6800,20 +8772,31 @@
6800 8772 'title' => array(
6801 8773 'type' => 'text',
6802 8774 'label' => __pl('progress_title'),
6803 8775 'default' => 'Progress',
8776 + 'edit' => '.pagelayer-progress-title',
6804 8777 ),
6805 8778 'title_color' => array(
6806 8779 'type' => 'color',
6807 8780 'label' => __pl('title_color'),
6808 - 'default' => '#768589ff',
8781 + 'default' => '#768589',
6809 8782 'css' => ['{{element}} .pagelayer-progress-title' => 'color:{{val}};'],
6810 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 + ),
6811 8795 'title_style' => array(
6812 8796 'type' => 'typography',
6813 8797 'label' => __pl('title_size'),
6814 8798 'default' => ',25,,100,,,,,,,',
6815 - 'screen' => 1,
6816 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;'],
6817 8800 ),
6818 8801 ],
6819 8802 'percentage_style' => [
@@ -6820,8 +8803,9 @@
6820 8803 'progress_text'=> array(
6821 8804 'type' => 'text',
6822 8805 'label' => __pl('progress_text'),
6823 8806 'default' => 'Designing',
8807 + 'edit' => '.pagelayer-progress-text',
6824 8808 ),
6825 8809 'progress_text_color' => array(
6826 8810 'type' => 'color',
6827 8811 'label' => __pl('progress_text_color'),
@@ -6832,9 +8816,8 @@
6832 8816 'type' => 'slider',
6833 8817 'label' => __pl('percentage'),
6834 8818 'min' => 0,
6835 8819 'max' => 100,
6836 - 'screen' => 1,
6837 8820 'css' => ['{{element}} .pagelayer-progress-container > .pagelayer-progress-bar:after' => 'width:{{val}}%;',],
6838 8821 'addAttr' => ['{{element}} .pagelayer-progress-bar' => 'pagelayer-progress-width="{{progress_percentage}}"'],
6839 8822 'default' => 75,
6840 8823 ),
@@ -6851,11 +8834,39 @@
6851 8834 'default' => '',
6852 8835 'css' => ['{{element}} .pagelayer-progress-percent' => 'display: none;']
6853 8836 ),
6854 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 + ],
6855 8865 'styles' => [
6856 8866 'heading_style' => __pl('heading_style'),
6857 8867 'percentage_style' => __pl('percentage'),
8868 + 'progress_prefix_suffix' => __pl('prefix_suffix'),
6858 8869 ]
6859 8870 )
6860 8871 );
6861 8872
@@ -6862,9 +8873,8 @@
6862 8873 // Color Block
6863 8874 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_block', array(
6864 8875 'name' => __pl('Color Block'),
6865 8876 'group' => 'other',
6866 - 'func' => 'pagelayer_sc_block',
6867 8877 'params' => array(
6868 8878 'block_color' => array(
6869 8879 'type' => 'color',
6870 8880 'label' => __pl('block_color'),
@@ -6888,14 +8898,13 @@
6888 8898 // Alert
6889 8899 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_alert', array(
6890 8900 'name' => __pl('Alert'),
6891 8901 'group' => 'other',
6892 - 'func' => 'pagelayer_sc_alert',
6893 8902 'innerHTML' => 'alert_content',
6894 8903 'html' => '<div class="pagelayer-alert-content">
6895 8904 <i if="{{alert_icon}}" class="pagelayer-alert-icon {{alert_icon}}"></i>
6896 8905 <div if="{{alert_title}}" class="pagelayer-alert-title">{{alert_title}}</div>
6897 - <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>
6898 8907 </div>
6899 8908 <span if="{{alert_content}}" class="pagelayer-alert-text">{{alert_content}}</span>',
6900 8909 'params' => array(
6901 8910 'alert_type' => array(
@@ -6930,9 +8939,9 @@
6930 8939 'icon_style' => [
6931 8940 'alert_icon' => array(
6932 8941 'type' => 'icon',
6933 8942 'label' => __pl('alert_icon'),
6934 - 'default' => 'exclamation',
8943 + 'default' => 'fas fa-exclamation',
6935 8944 ),
6936 8945 'alert_icon_color' => array(
6937 8946 'type' => 'color',
6938 8947 'label' => __pl('alert_icon_color'),
@@ -6942,9 +8951,9 @@
6942 8951 'label' => __pl('alert_font_size'),
6943 8952 'type' => 'slider',
6944 8953 'min' => 0,
6945 8954 'max' => 500,
6946 - 'default' => 30,
8955 + 'default' => 20,
6947 8956 'screen' => 1,
6948 8957 'css' => ['{{element}} .pagelayer-alert-icon' => 'font-size:{{val}}px;'],
6949 8958 ),
6950 8959 'alert_icon_spacing' => array(
@@ -6973,9 +8982,8 @@
6973 8982 'title_typo' => array(
6974 8983 'type' => 'typography',
6975 8984 'label' => __pl('title_typo'),
6976 8985 'default' => ',22,,600,,,,,,,',
6977 - 'screen' => 1,
6978 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;'],
6979 8987 ),
6980 8988 ],
6981 8989 'content_style' => [
@@ -6996,9 +9004,8 @@
6996 9004 'content_typo' => array(
6997 9005 'type' => 'typography',
6998 9006 'label' => __pl('title_typo'),
6999 9007 'default' => ',13,,,,,,,,,',
7000 - 'screen' => 1,
7001 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;'],
7002 9009 ),
7003 9010 ],
7004 9011 'styles' => [
@@ -7012,9 +9019,8 @@
7012 9019 // Anchor
7013 9020 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_anchor', array(
7014 9021 'name' => __pl('Anchor'),
7015 9022 'group' => 'other',
7016 - 'func' => 'pagelayer_sc_anchor',
7017 9023 'html' => '<div id="{{title}}" class="pagelayer-anchor-holder"></div>',
7018 9024 'params' => array(
7019 9025 'title' => array(
7020 9026 'type' => 'text',
@@ -7028,9 +9034,8 @@
7028 9034 // Star object
7029 9035 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_stars', array(
7030 9036 'name' => __pl('Stars'),
7031 9037 'group' => 'other',
7032 - 'func' => 'pagelayer_sc_stars',
7033 9038 'html' => '<span if="{{rating_title}}" class="pagelayer-stars-title">{{rating_title}}</span>
7034 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}}">
7035 9040 </div>',
7036 9041 'params' => array(
@@ -7065,14 +9070,15 @@
7065 9070 'title_style' => [
7066 9071 'rating_title' => array(
7067 9072 'type' => 'text',
7068 9073 'label' => __pl('rating_title'),
7069 - 'default' => 'Rate us',
9074 + 'default' => 'Rate us',
9075 + 'edit' => '.pagelayer-stars-title',
7070 9076 ),
7071 9077 'title_color' => array(
7072 9078 'type' => 'color',
7073 9079 'label' => __pl('title_color'),
7074 - 'default' => '#3e8ef7',
9080 + 'default' => '#0986c0',
7075 9081 'css' => ['{{element}} .pagelayer-stars-title' => 'color: {{val}}'],
7076 9082 ),
7077 9083 'title_style' => array(
7078 9084 'type' => 'typography',
@@ -7077,9 +9083,8 @@
7077 9083 'title_style' => array(
7078 9084 'type' => 'typography',
7079 9085 'label' => __pl('counter_number_size'),
7080 9086 'default' => ',25,,600,,,solid,,,,',
7081 - 'screen' => 1,
7082 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;'],
7083 9088 ),
7084 9089 ],
7085 9090 'stars_style' => [
@@ -7085,9 +9090,9 @@
7085 9090 'stars_style' => [
7086 9091 'stars_color' => array(
7087 9092 'type' => 'color',
7088 9093 'label' => __pl('stars_color'),
7089 - 'default' => '#3e8ef7',
9094 + 'default' => '#0986c0',
7090 9095 'css' => ['{{element}} .pagelayer-stars-icon:before' => 'color: {{val}}'],
7091 9096 ),
7092 9097 'unmarked_stars_color' => array(
7093 9098 'type' => 'color',
@@ -7124,9 +9129,8 @@
7124 9129 // Divider
7125 9130 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_divider', array(
7126 9131 'name' => __pl('Divider'),
7127 9132 'group' => 'other',
7128 - 'func' => 'pagelayer_sc_divider',
7129 9133 'html' => '<div class="pagelayer-divider-holder">
7130 9134 <span class="pagelayer-divider-seperator"></span>
7131 9135 </div>',
7132 9136 'params' => array(
@@ -7145,9 +9149,9 @@
7145 9149 ),
7146 9150 'divider_color' => array(
7147 9151 'type' => 'color',
7148 9152 'label' => __pl('divider_color'),
7149 - 'default' => '#3E8EF7',
9153 + 'default' => '#999',
7150 9154 'css' => ['{{element}} .pagelayer-divider-seperator' => 'border-top-color: {{val}};'],
7151 9155 ),
7152 9156 'divider_weight' => array(
7153 9157 'type' => 'slider',
@@ -7153,9 +9157,9 @@
7153 9157 'type' => 'slider',
7154 9158 'label' => __pl('divider_border_weight'),
7155 9159 'min' => 1,
7156 9160 'max' => 30,
7157 - 'default' => 3,
9161 + 'default' => 1,
7158 9162 'screen' => 1,
7159 9163 'css' => ['{{element}} .pagelayer-divider-seperator' =>'border-top-width: {{val}}px;'],
7160 9164 ),
7161 9165 'divider_widht' => array(
@@ -7162,9 +9166,9 @@
7162 9166 'type' => 'slider',
7163 9167 'label' => __pl('divider_border_width'),
7164 9168 'min' => 1,
7165 9169 'max' => 100,
7166 - 'default' => 50,
9170 + 'default' => 100,
7167 9171 'screen' => 1,
7168 9172 'css' => ['{{element}} .pagelayer-divider-seperator' =>'width: {{val}}%;'],
7169 9173 ),
7170 9174 'divider_gap' => array(
@@ -7195,9 +9199,8 @@
7195 9199 // Counter
7196 9200 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_counter', array(
7197 9201 'name' => __pl('Counter'),
7198 9202 'group' => 'other',
7199 - 'func' => 'pagelayer_sc_counter',
7200 9203 'html' => '<div class="pagelayer-counter-holder">
7201 9204 <div if="{{counter_start_number}}" class="pagelayer-counter-content">
7202 9205 <span if="{{number_prefix}}">{{number_prefix}}</span><span class="pagelayer-counter-display">{{counter_start_number}}</span><span if="{{number_suffix}}">{{number_suffix}}</span>
7203 9206 </div>
@@ -7243,9 +9246,9 @@
7243 9246 'counter_style' => [
7244 9247 'counter_number_color' => array(
7245 9248 'type' => 'color',
7246 9249 'label' => __pl('counter_number_color_label'),
7247 - 'default' => '#3E8EF7',
9250 + 'default' => '#0986c0',
7248 9251 'css' => ['{{element}} .pagelayer-counter-content' => 'color:{{val}};'],
7249 9252 ),
7250 9253 'number_prefix' => array(
7251 9254 'type' => 'text',
@@ -7277,9 +9280,8 @@
7277 9280 'counter_number_style' => array(
7278 9281 'type' => 'typography',
7279 9282 'label' => __pl('counter_number_size'),
7280 9283 'default' => ',60,,600,,,solid,,,,',
7281 - 'screen' => 1,
7282 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;'],
7283 9285 ),
7284 9286 ],
7285 9287 'counter_label_style' => [
@@ -7298,9 +9300,8 @@
7298 9300 'counter_text_style' => array(
7299 9301 'type' => 'typography',
7300 9302 'label' => __pl('counter_text_style'),
7301 9303 'default' => ',25,,400,,,solid,,,,',
7302 - 'screen' => 1,
7303 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;'],
7304 9305 ),
7305 9306 ],
7306 9307 'styles' => [
@@ -7309,17 +9310,237 @@
7309 9310 ],
7310 9311 )
7311 9312 );
7312 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 +
7313 9533 // Body Settings
7314 9534 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_post_props', array(
7315 9535 'name' => __pl('Body and Post Props'),
7316 9536 'group' => 'other',
7317 - 'func' => 'pagelayer_sc_body',
7318 9537 'not_visible' => 1,
7319 - '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.
7320 9540 'hide_active' => 1,
7321 - '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'],
7322 9543 'skip_props' => ['ele_zindex',
7323 9544 'ele_shadow', 'border_shadow_hover',
7324 9545 'hide_desktop', 'hide_tablet', 'hide_mobile'],
7325 9546 'params' => array(
@@ -7326,38 +9547,1765 @@
7326 9547 'post_title' => array(
7327 9548 'type' => 'text',
7328 9549 'label' => __pl('post_title'),
7329 9550 'default' => (empty($post->post_title) ? 'No Title' : $post->post_title),
9551 + 'export-def' => 1,
7330 9552 ),
7331 - 'post_name' => array(
7332 - 'type' => 'text',
7333 - 'label' => __pl('post_name'),
7334 - 'default' => (empty($post->post_name) ? 'no-slug' : $post->post_name),
7335 - ),
7336 9553 'post_status' => array(
7337 9554 'type' => 'select',
7338 - 'label' => __pl('post_status'),
9555 + 'label' => __pl('visibility'),
9556 + 'default' => (empty($post->post_status) ? 'draft' : $post->post_status),
9557 + 'export-def' => 1,
7339 9558 'list' => [
7340 9559 'publish' => __pl('Published'),
7341 - 'draft' => __pl('Draft'),
9560 + 'future' => __pl('Scheduled'),
9561 + 'private' => __pl('private'),
9562 + 'pass_protected' => __pl('password_protected'),
9563 + 'draft' => __pl('Draft')
7342 9564 ],
7343 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(
7344 9619 'featured_image' => array(
7345 - 'label' => __pl('featured_image'),
7346 - 'desc' => __pl('featured_image_desc'),
7347 9620 'type' => 'image',
7348 - '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,
7349 9624 ),
9625 + ),
9626 + 'postExcerpt' => array(
7350 9627 'post_excerpt' => array(
7351 9628 'type' => 'textarea',
7352 - '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'),
7353 9638 ),
9639 + 'ping_status' => array(
9640 + 'type' => 'checkbox',
9641 + 'label' => __pl('allow_p_and_t'),
9642 + )
7354 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 + ),
7355 9665 )
7356 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 +);
7357 9676
9677 +if(class_exists('WooCommerce')){
9678 + $pagelayer->customizer_styles_options['woocommerce'] = __pl('woocommerce');
9679 +}
7358 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 + )
7359 11304
11305 +);
11306 +*/
11307 +
7360 11308 ////////////////////////
7361 11309 // WordPress Group
7362 11310 ////////////////////////
7363 11311
@@ -7380,9 +11328,9 @@
7380 11328 // Widgets Area
7381 11329 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_widgets', array(
7382 11330 'name' => __pl('Sidebars / Widget Area'),
7383 11331 'group' => 'wordpress',
7384 - 'func' => 'pagelayer_sc_wp_widgets',
11332 + 'no_gt' => 1,
7385 11333 'html' => '<div class="pagelayer-wp-sidebar-title">{{title}}</div>
7386 11334 <div class="pagelayer-wp-sidebar-holder">{{{data}}}</div>',
7387 11335 'params' => array(
7388 11336 'title' => array(
@@ -7388,15 +11336,15 @@
7388 11336 'title' => array(
7389 11337 'type' => 'text',
7390 11338 'label' => __pl('parameters_title'),
7391 11339 'default' => 'Title',
7392 - 'desc' => __pl('wp_widgets_area_description')
11340 + 'desc' => __pl('wp_widgets_area_description'),
11341 + 'edit' => '.pagelayer-wp-sidebar-title',
7393 11342 ),
7394 11343 'sidebar' => array(
7395 11344 'type' => 'select',
7396 11345 'label' => __pl('wp_widgets_area_select'),
7397 11346 'default' => $pagelayer_wp_widget_default,
7398 - 'desc' => '',
7399 11347 'list' => $pagelayer_wp_widgets
7400 11348 )
7401 11349 )
7402 11350 )
@@ -7408,23 +11356,35 @@
7408 11356 // Include the widgets
7409 11357 //include_once(ABSPATH . 'wp-admin/includes/widgets.php');
7410 11358
7411 11359 //pagelayer_print($GLOBALS['wp_widget_factory']->widgets);die();
7412 -
11360 +
11361 +$wp_hidden_shortcode = array('media_audio', 'media_gallery', 'media_image', 'media_video');
11362 +
7413 11363 foreach($GLOBALS['wp_widget_factory']->widgets as $widget_key => $widget){
7414 11364
7415 - pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_'.$widget->id_base, array(
7416 - 'name' => $widget->name,
7417 - 'group' => 'wordpress',
7418 - 'func' => 'pagelayer_does_not_exist',
7419 - 'innerHTML' => 'widget_data',
7420 - '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 + )
7421 11377 )
7422 11378 );
7423 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 +
7424 11386 }
7425 11387 //}
7426 11388
7427 -// Its premium
7428 -if(defined('PAGELAYER_PREMIUM')){
7429 - include_once(dirname(__FILE__).'/premium.php');
7430 -}
11389 +// Apply filter to load custom widgets after shortcodes
11390 +do_action('pagelayer_after_add_shortcode');