PluginProbe
Page Builder: Pagelayer – Drag and Drop website builder / 2.2.0
Page Builder: Pagelayer – Drag and Drop website builder v2.2.0
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 1.0.5 All 129 releases
← All changes | main/shortcodes.php +5165 -571 0.9.72.2.0 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,
@@ -386,9 +663,8 @@
386 663 ],
387 664 'ele_bg_color' => [
388 665 'type' => 'color',
389 666 'label' => __pl('color'),
390 - 'default' => '',
391 667 'css' => 'background: {{val}};',
392 668 'show' => ['ele_bg_hover' => ''],
393 669 'req' => ['ele_bg_type' => 'color']
394 670 ],
@@ -394,9 +670,9 @@
394 670 ],
395 671 'ele_bg_gradient' => [
396 672 'type' => 'gradient',
397 673 'label' => '',
398 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
674 + 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
399 675 'css' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);',
400 676 'show' => ['ele_bg_hover' => ''],
401 677 'req' => ['ele_bg_type' => 'gradient']
402 678 ],
@@ -403,10 +679,10 @@
403 679 'ele_img_color' => [
404 680 'type' => 'color',
405 681 'label' => __pl('color'),
406 682 'default' => '',
407 - 'desc' => __pl('fallback background color if image is failed to load.'),
408 - 'css' => 'background: {{val}};',
683 + 'desc' => __pl('fallback_color'),
684 + 'css' => 'background-color: {{val}};',
409 685 'show' => ['ele_bg_hover' => ''],
410 686 'req' => ['ele_bg_type' => 'image']
411 687 ],
412 688 'ele_bg_img' => [
@@ -411,10 +687,9 @@
411 687 ],
412 688 'ele_bg_img' => [
413 689 'type' => 'image',
414 690 'label' => __pl('Image'),
415 - //'default' => '',
416 - 'css' => 'background: url({{{ele_bg_img-url}}});',
691 + 'css' => 'background-image: url("{{{ele_bg_img-url}}}");',
417 692 'show' => ['ele_bg_hover' => ''],
418 693 'req' => ['ele_bg_type' => 'image']
419 694 ],
420 695 'ele_bg_attachment' => [
@@ -435,14 +710,28 @@
435 710 'list' => [
436 711 '' => __pl('default'),
437 712 'center' => __pl('center'),
438 713 'left' => __pl('left'),
439 - 'right' => __pl('right')
714 + 'right' => __pl('right'),
715 + 'custom' => __pl('custom')
440 716 ],
441 717 'show' => ['ele_bg_hover' => ''],
442 718 'css' => 'background-position-x: {{val}};',
443 719 'req' => ['ele_bg_type' => 'image']
444 720 ],
721 + 'ele_bg_posx_custom' => array(
722 + 'label' => __pl('custom_x'),
723 + 'type' => 'slider',
724 + 'step' => 1,
725 + 'min' => -5000,
726 + 'max' => 5000,
727 + 'screen' => 1,
728 + 'units' => ['px', 'em', '%'],
729 + 'css' => 'background-position-x: {{val}};',
730 + 'req' => array(
731 + 'ele_bg_posx' => 'custom'
732 + ),
733 + ),
445 734 'ele_bg_posy' => [
446 735 'type' => 'select',
447 736 'label' => __pl('ele_bg_posy'),
448 737 'list' => [
@@ -448,14 +737,28 @@
448 737 'list' => [
449 738 '' => __pl('default'),
450 739 'center' => __pl('center'),
451 740 'top' => __pl('top'),
452 - 'bottom' => __pl('bottom')
741 + 'bottom' => __pl('bottom'),
742 + 'custom' => __pl('custom')
453 743 ],
454 744 'show' => ['ele_bg_hover' => ''],
455 745 'css' => 'background-position-y: {{val}};',
456 746 'req' => ['ele_bg_type' => 'image']
457 747 ],
748 + 'ele_bg_posy_custom' => array(
749 + 'label' => __pl('custom_y'),
750 + 'type' => 'slider',
751 + 'step' => 1,
752 + 'min' => -5000,
753 + 'max' => 5000,
754 + 'screen' => 1,
755 + 'units' => ['px', 'em', '%'],
756 + 'css' => 'background-position-y: {{val}};',
757 + 'req' => array(
758 + 'ele_bg_posy' => 'custom'
759 + ),
760 + ),
458 761 'ele_bg_repeat' => [
459 762 'type' => 'select',
460 763 'label' => __pl('ele_bg_repeat'),
461 764 'css' => 'background-repeat: {{val}};',
@@ -480,18 +783,8 @@
480 783 ],
481 784 'show' => ['ele_bg_hover' => ''],
482 785 'req' => ['ele_bg_type' => 'image']
483 786 ],
484 - 'ele_bg_hover_delay' => [
485 - 'type' => 'spinner',
486 - 'label' => __pl('ele_bg_hover_delay'),
487 - 'min' => 0,
488 - 'step' => 100,
489 - 'max' => 5000,
490 - 'default' => 400,
491 - 'css' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;',
492 - 'show' => ['ele_bg_hover' => 'hover']
493 - ],
494 787 'ele_bg_type_hover' => [
495 788 'type' => 'radio',
496 789 'label' => __pl('background_type'),
497 790 'default' => '',
@@ -502,12 +795,22 @@
502 795 'image' => __pl('image'),
503 796 ],
504 797 'show' => ['ele_bg_hover' => 'hover']
505 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 + ],
506 810 'ele_bg_color_hover' => [
507 811 'type' => 'color',
508 812 'label' => __pl('color_hover'),
509 - 'default' => '',
510 813 'css' => ['{{element}}:hover' => 'background: {{val}};'],
511 814 'show' => ['ele_bg_hover' => 'hover'],
512 815 'req' => ['ele_bg_type_hover' => 'color']
513 816 ],
@@ -513,9 +816,9 @@
513 816 ],
514 817 'ele_bg_gradient_hover' => [
515 818 'type' => 'gradient',
516 819 'label' => '',
517 - 'default' => '150,#44d3f6ff,25,#72e584ff,75,#2ca4ebff,100',
820 + 'default' => '150,#44d3f6,25,#72e584,75,#2ca4eb,100',
518 821 'css' => ['{{element}}:hover' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
519 822 'show' => ['ele_bg_hover' => 'hover'],
520 823 'req' => ['ele_bg_type_hover' => 'gradient']
521 824 ],
@@ -521,9 +824,9 @@
521 824 ],
522 825 'ele_bg_img_hover' => [
523 826 'type' => 'image',
524 827 'label' => __pl('Image Hover'),
525 - 'css' => ['{{element}}:hover' => 'background: url({{{ele_bg_img_hover-url}}});'],
828 + 'css' => ['{{element}}:hover' => 'background: url("{{{ele_bg_img_hover-url}}}");'],
526 829 'show' => ['ele_bg_hover' => 'hover'],
527 830 'req' => ['ele_bg_type_hover' => 'image']
528 831 ],
529 832 'ele_bg_attachment_hover' => [
@@ -609,15 +912,20 @@
609 912 ],
610 913 'ele_zindex' => [
611 914 'type' => 'slider',
612 915 'label' => __pl('z-index'),
613 - 'css' => 'z-index: {{val}}',
916 + 'css' => ['{{wrap}}' => 'z-index: {{val}} !important; position: relative;'],
614 917 ],
615 918 'ele_shadow' => [
616 - 'type' => 'shadow',
919 + 'type' => 'box_shadow',
617 920 'label' => __pl('shadow'),
618 - 'css' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;',
619 - ]
921 + 'css' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;',
922 + ],
923 + 'border_shadow_hover' => [ // This is actually box shadow hover
924 + 'type' => 'box_shadow',
925 + 'label' => __pl('box_shadow_hover'),
926 + 'css' => ['{{element}}:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'],
927 + ],
620 928 ];
621 929
622 930 $pagelayer->styles['border_styles'] = [
623 931 'border_hover' => [
@@ -632,8 +940,9 @@
632 940 ],
633 941 'border_type' => [
634 942 'type' => 'select',
635 943 'label' => __pl('border_type'),
944 + 'screen' => 1,
636 945 'list' => [
637 946 '' => __pl('none'),
638 947 'solid' => __pl('solid'),
639 948 'double' => __pl('double'),
@@ -648,8 +957,9 @@
648 957 'type' => 'padding',
649 958 'label' => __pl('border_width'),
650 959 'default' => '1,1,1,1',
651 960 'units' => ['px', 'em'],
961 + 'screen' => 1,
652 962 'show' => [
653 963 'border_hover' => ''
654 964 ],
655 965 'req' => [
@@ -660,8 +970,9 @@
660 970 'border_color' => [
661 971 'type' => 'color',
662 972 'label' => __pl('border_color'),
663 973 'default' => '#CCC',
974 + 'screen' => 1,
664 975 'show' => [
665 976 'border_hover' => ''
666 977 ],
667 978 'req' => [
@@ -672,20 +983,16 @@
672 983 'border_radius' => [
673 984 'type' => 'padding',
674 985 'label' => __pl('border_radius'),
675 986 'units' => ['px', 'em'],
987 + 'screen' => 1,
676 988 'show' => ['border_hover' => ''],
677 989 'css' => 'border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}}; -webkit-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};-moz-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};',
678 990 ],
679 - 'border_shadow' => [
680 - 'type' => 'shadow',
681 - 'label' => __pl('text_shadow'),
682 - 'css' => ['{{element}}' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
683 - 'show' => ['border_hover' => ''],
684 - ],
685 991 'border_type_hover' => [
686 992 'type' => 'select',
687 993 'label' => __pl('border_type'),
994 + 'screen' => 1,
688 995 'list' => [
689 996 '' => __pl('none'),
690 997 'solid' => __pl('solid'),
691 998 'double' => __pl('double'),
@@ -699,8 +1006,9 @@
699 1006 'border_width_hover' => [
700 1007 'type' => 'padding',
701 1008 'label' => __pl('border_width'),
702 1009 'units' => ['px', 'em'],
1010 + 'screen' => 1,
703 1011 'show' => [
704 1012 'border_hover' => 'hover'
705 1013 ],
706 1014 'req' => [
@@ -710,8 +1018,9 @@
710 1018 ],
711 1019 'border_color_hover' => [
712 1020 'type' => 'color',
713 1021 'label' => __pl('border_color'),
1022 + 'screen' => 1,
714 1023 'show' => [
715 1024 'border_hover' => 'hover'
716 1025 ],
717 1026 'req' => [
@@ -721,20 +1030,300 @@
721 1030 ],
722 1031 'border_radius_hover' => [
723 1032 'type' => 'padding',
724 1033 'label' => __pl('border_radius'),
1034 + 'screen' => 1,
725 1035 'units' => ['px', 'em'],
726 1036 'show' => ['border_hover' => 'hover'],
727 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]}};'],
728 1038 ],
729 - 'border_shadow_hover' => [
730 - 'type' => 'shadow',
731 - 'label' => __pl('text_shadow'),
732 - 'css' => ['{{element}}:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
733 - 'show' => ['border_hover' => 'hover'],
1039 +];
1040 +
1041 +$pagelayer->styles['font_style'] = [
1042 + 'font_family' => [
1043 + 'type'=> 'font_family',
1044 + 'label' => __pl('font_family'),
1045 + 'screen' => 1,
1046 + 'css' => ['{{element}}' => 'font-family: {{val}} !important;'],
734 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 + ],
735 1172 ];
736 1173
1174 +$pagelayer->styles['position_styles'] = [
1175 + 'ele_custom_pos' => array(
1176 + 'type' => 'checkbox',
1177 + 'label' => __pl('enable'),
1178 + ),
1179 + 'ele_width' => [
1180 + 'type' => 'select',
1181 + 'label' => __pl('width'),
1182 + 'screen' => 1,
1183 + 'css' => ['{{wrap}}' => 'width:{{val}} !important;'],
1184 + 'list' => [
1185 + 'initial' => __pl('default'),
1186 + '100%' => __pl('full'),
1187 + '' => __pl('custom'),
1188 + ],
1189 + 'req' => ['ele_custom_pos' => 'true']
1190 + ],
1191 + 'ele_custom_width' => [
1192 + 'type' => 'slider',
1193 + 'label' => __pl('custom_width'),
1194 + 'screen' => 1,
1195 + 'units' => ['px','%','vw'],
1196 + 'css' => ['{{wrap}}' => 'width:{{val}} !important;'],
1197 + 'min' => 0,
1198 + 'max' => 1000,
1199 + 'step' => 1,
1200 + 'req' => [
1201 + 'ele_width' => '',
1202 + 'ele_custom_pos' => 'true'
1203 + ]
1204 + ],
1205 + 'ele_align' => [
1206 + 'type' => 'select',
1207 + 'label' => __pl('alignment'),
1208 + 'default' => 'margin',
1209 + 'screen' => 1,
1210 + 'css' => ['{{wrap}}' => 'position:relative; left:{{val}}; transform:translateX(-{{val}});'],
1211 + 'list' => [
1212 + '0%' => __pl('left'),
1213 + '50%' => __pl('center'),
1214 + '100%' => __pl('right'),
1215 + ],
1216 + 'req' => [
1217 + 'ele_width' => '',
1218 + 'ele_custom_pos' => 'true'
1219 + ]
1220 + ],
1221 + 'ele_height' => [
1222 + 'type' => 'select',
1223 + 'label' => __pl('height'),
1224 + 'screen' => 1,
1225 + 'default' => 'auto',
1226 + 'css' => ['{{wrap}}' => 'height:{{val}};'],
1227 + 'list' => [
1228 + 'auto' => __pl('default'),
1229 + '100%' => __pl('full'),
1230 + '' => __pl('custom'),
1231 + ],
1232 + 'req' => ['ele_custom_pos' => 'true']
1233 + ],
1234 + 'ele_custom_height' => [
1235 + 'type' => 'slider',
1236 + 'label' => __pl('custom_height'),
1237 + 'screen' => 1,
1238 + 'units' => ['px','%','vh'],
1239 + 'css' => ['{{wrap}}' => 'height:{{val}};'],
1240 + 'min' => 0,
1241 + 'max' => 1000,
1242 + 'step' => 1,
1243 + 'req' => [
1244 + 'ele_height' => '',
1245 + 'ele_custom_pos' => 'true'
1246 + ]
1247 + ],
1248 + 'ele_position' => [
1249 + 'type' => 'select',
1250 + 'label' => __pl('position'),
1251 + 'default' => '',
1252 + 'screen' => 1,
1253 + 'css' => ['{{wrap}}' => 'position:{{val}} !important; z-index: 1; transform: translateX(-0%);'],
1254 + 'list' => [
1255 + '' => __pl('default'),
1256 + 'absolute' => __pl('absolute'),
1257 + 'fixed' => __pl('fixed'),
1258 + 'relative' => __pl('relative'),
1259 + ],
1260 + 'req' => ['ele_custom_pos' => 'true']
1261 + ],
1262 + 'ele_vposition' => [
1263 + 'type' => 'select',
1264 + 'label' => __pl('verticle_pos'),
1265 + 'screen' => 1,
1266 + 'css' => ['{{wrap}}' => '{{val}}:0;'],
1267 + 'list' => [
1268 + '' => __pl('default'),
1269 + 'top' => __pl('top'),
1270 + 'bottom' => __pl('bottom')
1271 + ],
1272 + 'req' => [
1273 + '!ele_position' => '',
1274 + 'ele_custom_pos' => 'true'
1275 + ]
1276 + ],
1277 + 'ele_vposition_offset' => [
1278 + 'type' => 'slider',
1279 + 'label' => __pl('ver_offset'),
1280 + 'screen' => 1,
1281 + 'units' => ['px','%','em'],
1282 + 'css' => ['{{wrap}}' => '{{ele_vposition}}:{{val}};'],
1283 + 'default' => 0,
1284 + 'min' => -1000,
1285 + 'max' => 1000,
1286 + 'step' => 1,
1287 + 'req' => [
1288 + '!ele_vposition' => '',
1289 + '!ele_position' => '',
1290 + 'ele_custom_pos' => 'true'
1291 + ]
1292 + ],
1293 + 'ele_hposition' => [
1294 + 'type' => 'select',
1295 + 'label' => __pl('horizontal_pos'),
1296 + 'screen' => 1,
1297 + 'css' => ['{{wrap}}' => '{{val}}:0;'],
1298 + 'list' => [
1299 + '' => __pl('default'),
1300 + 'left' => __pl('left'),
1301 + 'right' => __pl('right')
1302 + ],
1303 + 'req' => [
1304 + '!ele_position' => '',
1305 + 'ele_custom_pos' => 'true'
1306 + ]
1307 + ],
1308 + 'ele_hposition_offset' => [
1309 + 'type' => 'slider',
1310 + 'label' => __pl('hor_offset'),
1311 + 'screen' => 1,
1312 + 'units' => ['px','%','em'],
1313 + 'css' => ['{{wrap}}' => '{{ele_hposition}}:{{val}};'],
1314 + 'default' => 0,
1315 + 'min' => -1000,
1316 + 'max' => 1000,
1317 + 'step' => 1,
1318 + 'req' => [
1319 + '!ele_hposition' => '',
1320 + '!ele_position' => '',
1321 + 'ele_custom_pos' => 'true'
1322 + ]
1323 + ]
1324 +];
1325 +
737 1326 $pagelayer->styles['animation_styles'] = [
738 1327 'animation' => [
739 1328 'type' => 'select',
740 1329 'label' => __pl('animation'),
@@ -769,10 +1358,692 @@
769 1358 'req' => [
770 1359 '!animation' => ''
771 1360 ]
772 1361 ],
1362 + 'ele_hover_anim' => array(
1363 + 'type' => 'select',
1364 + 'label' => __pl('cta_hover_anim_label'),
1365 + 'addClass' => 'pagelayer-animation-{{val}}',
1366 + 'list' => [
1367 + '' => __pl('none'),
1368 + 'grow' => __pl('Grow'),
1369 + 'shrink' => __pl('Shrink'),
1370 + 'pulse' => __pl('Pulse'),
1371 + 'pulse-grow' => __pl('Pulse Grow'),
1372 + 'pulse-shrink' => __pl('Pulse Shrink'),
1373 + 'push' => __pl('Push'),
1374 + 'pop' => __pl('Pop'),
1375 + 'buzz' => __pl('Buzz'),
1376 + 'buzz-out' => __pl('Buzz Out'),
1377 + 'float' => __pl('Float'),
1378 + 'sink' => __pl('Sink'),
1379 + 'bob' => __pl('Bob'),
1380 + 'hang' => __pl('Hang'),
1381 + 'bounce-in' => __pl('Bounce In'),
1382 + 'bounce-out' => __pl('Bounce Out'),
1383 + 'rotate' => __pl('Rotate'),
1384 + 'grow-rotate' => __pl('Grow Rotate'),
1385 + 'skew-forward' => __pl('Skew Forward'),
1386 + 'skew-backward' => __pl('Skew Backward'),
1387 + 'wobble-vertical' => __pl('Wobble Vertical'),
1388 + 'wobble-horizontal' => __pl('Wobble Horizontal'),
1389 + 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
1390 + 'wobble-top-to-right' => __pl('Wobble Top To Right'),
1391 + 'wobble-top' => __pl('Wobble Top'),
1392 + 'wobble-bottom' => __pl('Wobble Bottom'),
1393 + 'wobble-skew' => __pl('Wobble Skew'),
1394 + ],
1395 + 'pro' => 1,
1396 + ),
1397 + 'ele_sticky_pos' => array(
1398 + 'type' => 'select',
1399 + 'label' => __pl('scroll_sticky'),
1400 + 'addClass' => 'pagelayer-sticky-ele',
1401 + 'addAttr' => 'data-sticky-position="{{ele_sticky_pos}}"',
1402 + 'list' => array(
1403 + '' => __pl('none'),
1404 + 'top' => __pl('top'),
1405 + 'bottom' => __pl('bottom'),
1406 + ),
1407 + 'pro' => 1,
1408 + ),
1409 + 'ele_sticky_on' => array(
1410 + 'type' => 'multiselect',
1411 + 'label' => __pl('sticky_on'),
1412 + 'default' => 'desktop,tablet,mobile',
1413 + 'addAttr' => 'data-sticky-on="{{ele_sticky_on}}"',
1414 + 'list' => array(
1415 + 'desktop' => __pl('desktop'),
1416 + 'tablet' => __pl('tablet'),
1417 + 'mobile' => __pl('mobile'),
1418 + ),
1419 + 'req' => [ '!ele_sticky_pos' => ''],
1420 + 'pro' => 1,
1421 + ),
1422 + 'ele_sticky_offset' => array(
1423 + 'type' => 'slider',
1424 + 'label' => __pl('offset'),
1425 + 'addAttr' => 'data-sticky-offset="{{ele_sticky_offset}}"',
1426 + 'req' => [ '!ele_sticky_pos' => ''],
1427 + 'pro' => 1,
1428 + ),
1429 + 'ele_sticky_in_col' => array(
1430 + 'type' => 'checkbox',
1431 + 'label' => __pl('sticky_in_col'),
1432 + 'addAttr' => 'data-sticky_in_col="{{ele_sticky_in_col}}"',
1433 + 'req' => [ '!ele_sticky_pos' => ''],
1434 + 'pro' => 1,
1435 + ),
773 1436 ];
774 1437
1438 +$pagelayer->styles['motion_effects'] = [
1439 + 'ele_motion_effects' => [
1440 + 'type' => 'radio',
1441 + 'label' => '',
1442 + 'list' => [
1443 + '' => __pl('Scrolling'),
1444 + 'mouse' => __pl('Mouse'),
1445 + ],
1446 + ],
1447 + 'ele_scrolling_effects' => array(
1448 + 'type' => 'checkbox',
1449 + 'label' => __pl('Scrolling Effects'),
1450 + 'addClass' => 'pagelayer-scrolling-effects',
1451 + 'show' => ['ele_motion_effects' => ''],
1452 + 'pro' => 1
1453 + ),
1454 + // Vertical Scroll Group
1455 + 'ele_vertical_scroll_group' => array(
1456 + 'type' => 'access',
1457 + 'label' => __pl('Vertical Scroll'),
1458 + 'show_group' => 'scrolling_v',
1459 + 'req' => ['!ele_scrolling_effects' => ''],
1460 + 'show' => ['ele_motion_effects' => '']
1461 + ),
1462 + // Vertical Scroll Settings
1463 + 'ele_vertical_scroll' => array(
1464 + 'type' => 'checkbox',
1465 + 'label' => __pl('Enable'),
1466 + 'group' => 'scrolling_v',
1467 + 'addAttr' => 'ele_vertical_scroll="{{ele_vertical_scroll}}"',
1468 + 'req' => ['!ele_scrolling_effects' => ''],
1469 + 'show' => ['ele_motion_effects' => '']
1470 + ),
1471 + 'ele_v_sc_direction' => array(
1472 + 'type' => 'select',
1473 + 'label' => __pl('Direction'),
1474 + 'group' => 'scrolling_v',
1475 + 'default' => 'opposite',
1476 + 'list' => array(
1477 + 'opposite' => __pl('Opposite'),
1478 + 'similar' => __pl('Similar'),
1479 + ),
1480 + 'addAttr' => 'ele_v_sc_direction="{{ele_v_sc_direction}}"',
1481 + 'req' => ['!ele_vertical_scroll' => '', '!ele_scrolling_effects' => ''],
1482 + 'show' => ['ele_motion_effects' => '']
1483 + ),
1484 + 'ele_v_sc_speed' => array(
1485 + 'type' => 'slider',
1486 + 'label' => __pl('speed'),
1487 + 'group' => 'scrolling_v',
1488 + 'min' => 0,
1489 + 'step' => 0.1,
1490 + 'max' => 10,
1491 + 'default' => 5,
1492 + 'addAttr' => 'ele_v_sc_speed="{{ele_v_sc_speed}}"',
1493 + 'req' => [ '!ele_vertical_scroll' => '', '!ele_scrolling_effects' => ''],
1494 + 'show' => ['ele_motion_effects' => '']
1495 + ),
1496 + 'ele_v_sc_top_viewport' => array(
1497 + 'type' => 'slider',
1498 + 'label' => __pl('Top'),
1499 + 'group' => 'scrolling_v',
1500 + 'min' => 0,
1501 + 'step' => 1,
1502 + 'max' => 100,
1503 + 'default' => 100,
1504 + 'screen' => 1,
1505 + 'addAttr' => 'ele_v_sc_top_viewport="{{ele_v_sc_top_viewport}}"',
1506 + 'req' => [ '!ele_vertical_scroll' => '', '!ele_scrolling_effects' => ''],
1507 + 'show' => ['ele_motion_effects' => '']
1508 + ),
1509 + 'ele_v_sc_bottom_viewport' => array(
1510 + 'type' => 'slider',
1511 + 'label' => __pl('bottom'),
1512 + 'group' => 'scrolling_v',
1513 + 'min' => 0,
1514 + 'step' => 1,
1515 + 'max' => 100,
1516 + 'default' => 100,
1517 + 'screen' => 1,
1518 + 'addAttr' => 'ele_v_sc_bottom_viewport="{{ele_v_sc_bottom_viewport}}"',
1519 + 'req' => [ '!ele_vertical_scroll' => '', '!ele_scrolling_effects' => ''],
1520 + 'show' => ['ele_motion_effects' => '']
1521 + ),
1522 + //Horizontal Group
1523 + 'ele_horizontal_scroll_group' => array(
1524 + 'type' => 'access',
1525 + 'label' => __pl('Horizontal Scroll'),
1526 + 'show_group' => 'scrolling_h',
1527 + 'req' => ['!ele_scrolling_effects' => ''],
1528 + 'show' => ['ele_motion_effects' => '']
1529 + ),
1530 + // Horizontal Scroll
1531 + 'ele_horizontal_scroll' => array(
1532 + 'type' => 'checkbox',
1533 + 'label' => __pl('Enable'),
1534 + 'group' => 'scrolling_h',
1535 + 'css' => 'transform:translateX(var(--transX));',
1536 + 'addAttr' => 'ele_horizontal_scroll="{{ele_horizontal_scroll}}"',
1537 + 'req' => ['!ele_scrolling_effects' => ''],
1538 + 'show' => ['ele_motion_effects' => '']
1539 + ),
1540 + 'ele_h_sc_direction' => array(
1541 + 'type' => 'select',
1542 + 'label' => __pl('Direction'),
1543 + 'group' => 'scrolling_h',
1544 + 'default' => 'toleft',
1545 + 'list' => array(
1546 + 'toleft' => __pl('Toleft'),
1547 + 'toright' => __pl('Toright'),
1548 + ),
1549 + 'addAttr' => 'ele_h_sc_direction="{{ele_h_sc_direction}}"',
1550 + 'req' => ['!ele_horizontal_scroll' => '', '!ele_scrolling_effects' => ''],
1551 + 'show' => ['ele_motion_effects' => '']
1552 + ),
1553 + 'ele_h_sc_speed' => array(
1554 + 'type' => 'slider',
1555 + 'label' => __pl('speed'),
1556 + 'group' => 'scrolling_h',
1557 + 'min' => 0,
1558 + 'step' => 0.1,
1559 + 'max' => 10,
1560 + 'default' => 5,
1561 + 'addAttr' => 'ele_h_sc_speed="{{ele_h_sc_speed}}"',
1562 + 'req' => [ '!ele_horizontal_scroll' => '', '!ele_scrolling_effects' => ''],
1563 + 'show' => ['ele_motion_effects' => '']
1564 + ),
1565 + 'ele_h_sc_left_viewport' => array(
1566 + 'type' => 'slider',
1567 + 'label' => __pl('Left'),
1568 + 'group' => 'scrolling_h',
1569 + 'min' => 0,
1570 + 'step' => 1,
1571 + 'max' => 100,
1572 + 'default' => 100,
1573 + 'screen' => 1,
1574 + 'addAttr' => 'ele_h_sc_left_viewport="{{ele_h_sc_left_viewport}}"',
1575 + 'req' => [ '!ele_horizontal_scroll' => '', '!ele_scrolling_effects' => ''],
1576 + 'show' => ['ele_motion_effects' => '']
1577 + ),
1578 + 'ele_h_sc_right_viewport' => array(
1579 + 'type' => 'slider',
1580 + 'label' => __pl('Right'),
1581 + 'group' => 'scrolling_h',
1582 + 'min' => 0,
1583 + 'step' => 1,
1584 + 'max' => 100,
1585 + 'default' => 100,
1586 + 'screen' => 1,
1587 + 'addAttr' => 'ele_h_sc_right_viewport="{{ele_h_sc_right_viewport}}"',
1588 + 'req' => [ '!ele_horizontal_scroll' => '', '!ele_scrolling_effects' => ''],
1589 + 'show' => ['ele_motion_effects' => '']
1590 + ),
1591 + // Transparency Group
1592 + 'ele_transparency_group' => array(
1593 + 'type' => 'access',
1594 + 'label' => __pl('Transparency'),
1595 + 'show_group' => 'scrolling_trans',
1596 + 'req' => ['!ele_scrolling_effects' => ''],
1597 + 'show' => ['ele_motion_effects' => '']
1598 + ),
1599 + // Transparency Settings
1600 + 'ele_transparency' => array(
1601 + 'type' => 'checkbox',
1602 + 'label' => __pl('Enable'),
1603 + 'group' => 'scrolling_trans',
1604 + 'addAttr' => 'ele_transparency="{{ele_transparency}}"',
1605 + 'req' => ['!ele_scrolling_effects' => ''],
1606 + 'show' => ['ele_motion_effects' => '']
1607 + ),
1608 + 'ele_transp_type' => array(
1609 + 'type' => 'select',
1610 + 'label' => __pl('Type'),
1611 + 'group' => 'scrolling_trans',
1612 + 'default' => 'fadein',
1613 + 'list' => array(
1614 + 'fadein' => __pl('Fade In'),
1615 + 'fadeout' => __pl('Fade Out'),
1616 + 'fadeinout' => __pl('Fade In Out'),
1617 + 'fadeoutin' => __pl('Fade Out In')
1618 + ),
1619 + 'addAttr' => 'ele_transp_type="{{ele_transp_type}}"',
1620 + 'req' => ['!ele_transparency' => '', '!ele_scrolling_effects' => ''],
1621 + 'show' => ['ele_motion_effects' => '']
1622 + ),
1623 + 'ele_transp_level' => array(
1624 + 'type' => 'slider',
1625 + 'label' => __pl('Level'),
1626 + 'group' => 'scrolling_trans',
1627 + 'min' => 1,
1628 + 'step' => 0.1,
1629 + 'max' => 10,
1630 + 'default' => 5,
1631 + 'addAttr' => 'ele_transp_level="{{ele_transp_level}}"',
1632 + 'req' => [ '!ele_transparency' => '', '!ele_scrolling_effects' => ''],
1633 + 'show' => ['ele_motion_effects' => '']
1634 + ),
1635 + 'ele_transp_top_viewport' => array(
1636 + 'type' => 'slider',
1637 + 'label' => __pl('top'),
1638 + 'group' => 'scrolling_trans',
1639 + 'min' => 0,
1640 + 'step' => 1,
1641 + 'max' => 100,
1642 + 'default' => 100,
1643 + 'screen' => 1,
1644 + 'addAttr' => 'ele_transp_top_viewport="{{ele_transp_top_viewport}}"',
1645 + 'req' => [ '!ele_transparency' => '', '!ele_scrolling_effects' => ''],
1646 + 'show' => ['ele_motion_effects' => '']
1647 + ),
1648 + 'ele_transp_bottom_viewport' => array(
1649 + 'type' => 'slider',
1650 + 'label' => __pl('bottom'),
1651 + 'group' => 'scrolling_trans',
1652 + 'min' => 0,
1653 + 'step' => 1,
1654 + 'max' => 100,
1655 + 'default' => 100,
1656 + 'screen' => 1,
1657 + 'addAttr' => 'ele_transp_bottom_viewport="{{ele_transp_bottom_viewport}}"',
1658 + 'req' => [ '!ele_transparency' => '', '!ele_scrolling_effects' => ''],
1659 + 'show' => ['ele_motion_effects' => '']
1660 + ),
1661 + // Blur Group
1662 + 'ele_blur_group' => array(
1663 + 'type' => 'access',
1664 + 'label' => __pl('Blur'),
1665 + 'show_group' => 'scrolling_blur',
1666 + 'req' => ['!ele_scrolling_effects' => ''],
1667 + 'show' => ['ele_motion_effects' => '']
1668 + ),
1669 + // Blur Setting
1670 + 'ele_blur' => array(
1671 + 'type' => 'checkbox',
1672 + 'label' => __pl('Enable'),
1673 + 'group' => 'scrolling_blur',
1674 + 'addAttr' => 'ele_blur="{{ele_blur}}"',
1675 + 'req' => ['!ele_scrolling_effects' => ''],
1676 + 'show' => ['ele_motion_effects' => '']
1677 + ),
1678 + 'ele_blur_type' => array(
1679 + 'type' => 'select',
1680 + 'label' => __pl('Type'),
1681 + 'group' => 'scrolling_blur',
1682 + 'default' => 'blurin',
1683 + 'list' => array(
1684 + 'blurin' => __pl('Blur In'),
1685 + 'blurout' => __pl('Blur Out'),
1686 + 'blurinout' => __pl('Blur In Out'),
1687 + 'bluroutin' => __pl('Blur Out In')
1688 + ),
1689 + 'addAttr' => 'ele_blur_type="{{ele_blur_type}}"',
1690 + 'req' => ['!ele_blur' => '', '!ele_scrolling_effects' => ''],
1691 + 'show' => ['ele_motion_effects' => '']
1692 + ),
1693 + 'ele_blur_level' => array(
1694 + 'type' => 'slider',
1695 + 'label' => __pl('Level'),
1696 + 'group' => 'scrolling_blur',
1697 + 'min' => 1,
1698 + 'step' => 0.1,
1699 + 'max' => 10,
1700 + 'default' => 5,
1701 + 'addAttr' => 'ele_blur_level="{{ele_blur_level}}"',
1702 + 'req' => [ '!ele_blur' => '', '!ele_scrolling_effects' => ''],
1703 + 'show' => ['ele_motion_effects' => '']
1704 + ),
1705 + 'ele_blur_top_viewport' => array(
1706 + 'type' => 'slider',
1707 + 'label' => __pl('top'),
1708 + 'group' => 'scrolling_blur',
1709 + 'min' => 0,
1710 + 'step' => 1,
1711 + 'max' => 100,
1712 + 'default' => 100,
1713 + 'screen' => 1,
1714 + 'addAttr' => 'ele_blur_top_viewport="{{ele_blur_top_viewport}}"',
1715 + 'req' => [ '!ele_blur' => '', '!ele_scrolling_effects' => ''],
1716 + 'show' => ['ele_motion_effects' => '']
1717 + ),
1718 + 'ele_blur_bottom_viewport' => array(
1719 + 'type' => 'slider',
1720 + 'label' => __pl('bottom'),
1721 + 'group' => 'scrolling_blur',
1722 + 'min' => 0,
1723 + 'step' => 1,
1724 + 'max' => 100,
1725 + 'default' => 100,
1726 + 'screen' => 1,
1727 + 'addAttr' => 'ele_blur_bottom_viewport="{{ele_blur_bottom_viewport}}"',
1728 + 'req' => [ '!ele_blur' => '', '!ele_scrolling_effects' => ''],
1729 + 'show' => ['ele_motion_effects' => '']
1730 + ),
1731 + // Rotate Group
1732 + 'ele_rotate_group' => array(
1733 + 'type' => 'access',
1734 + 'label' => __pl('Rotate'),
1735 + 'show_group' => 'scrolling_rotate',
1736 + 'req' => ['!ele_scrolling_effects' => ''],
1737 + 'show' => ['ele_motion_effects' => '']
1738 + ),
1739 + // Rotate Setting
1740 + 'ele_rotate' => array(
1741 + 'type' => 'checkbox',
1742 + 'label' => __pl('Enable'),
1743 + 'group' => 'scrolling_rotate',
1744 + 'addAttr' => 'ele_rotate="{{ele_rotate}}"',
1745 + 'req' => ['!ele_scrolling_effects' => ''],
1746 + 'show' => ['ele_motion_effects' => '']
1747 + ),
1748 + 'ele_rot_direction' => array(
1749 + 'type' => 'select',
1750 + 'label' => __pl('Direction'),
1751 + 'group' => 'scrolling_rotate',
1752 + 'default' => 'clockwise',
1753 + 'list' => array(
1754 + 'clockwise' => __pl('Clockwise'),
1755 + 'anticlockwise' => __pl('Anticlockwise')
1756 + ),
1757 + 'addAttr' => 'ele_rot_direction="{{ele_rot_direction}}"',
1758 + 'req' => ['!ele_rotate' => '', '!ele_scrolling_effects' => ''],
1759 + 'show' => ['ele_motion_effects' => '']
1760 + ),
1761 + 'ele_rot_speed' => array(
1762 + 'type' => 'slider',
1763 + 'label' => __pl('Speed'),
1764 + 'group' => 'scrolling_rotate',
1765 + 'min' => 1,
1766 + 'step' => 0.1,
1767 + 'max' => 10,
1768 + 'default' => 5,
1769 + 'addAttr' => 'ele_rot_speed="{{ele_rot_speed}}"',
1770 + 'req' => [ '!ele_rotate' => '', '!ele_scrolling_effects' => ''],
1771 + 'show' => ['ele_motion_effects' => '']
1772 + ),
1773 + 'ele_rot_top_viewport' => array(
1774 + 'type' => 'slider',
1775 + 'label' => __pl('top'),
1776 + 'group' => 'scrolling_rotate',
1777 + 'min' => 0,
1778 + 'step' => 1,
1779 + 'max' => 100,
1780 + 'default' => 100,
1781 + 'screen' => 1,
1782 + 'addAttr' => 'ele_rot_top_viewport="{{ele_rot_top_viewport}}"',
1783 + 'req' => [ '!ele_rotate' => '', '!ele_scrolling_effects' => ''],
1784 + 'show' => ['ele_motion_effects' => '']
1785 + ),
1786 + 'ele_rot_bottom_viewport' => array(
1787 + 'type' => 'slider',
1788 + 'label' => __pl('bottom'),
1789 + 'group' => 'scrolling_rotate',
1790 + 'min' => 0,
1791 + 'step' => 1,
1792 + 'max' => 100,
1793 + 'default' => 100,
1794 + 'screen' => 1,
1795 + 'addAttr' => 'ele_rot_bottom_viewport="{{ele_rot_bottom_viewport}}"',
1796 + 'req' => [ '!ele_rotate' => '', '!ele_scrolling_effects' => ''],
1797 + 'show' => ['ele_motion_effects' => '']
1798 + ),
1799 + 'ele_rot_x_anc_point' => array(
1800 + 'type' => 'select',
1801 + 'label' => __pl('X Anchor Point'),
1802 + 'group' => 'scrolling_rotate',
1803 + 'default' => 'center',
1804 + 'list' => array(
1805 + 'left' => __pl('Left'),
1806 + 'center' => __pl('Center'),
1807 + 'right' => __pl('Right')
1808 + ),
1809 + 'req' => ['!ele_rotate' => '', '!ele_scrolling_effects' => ''],
1810 + 'show' => ['ele_motion_effects' => '']
1811 + ),
1812 + 'ele_rot_y_anc_point' => array(
1813 + 'type' => 'select',
1814 + 'label' => __pl('Y Anchor Point'),
1815 + 'group' => 'scrolling_rotate',
1816 + 'default' => 'center',
1817 + 'list' => array(
1818 + 'top' => __pl('Top'),
1819 + 'center' => __pl('Center'),
1820 + 'bottom' => __pl('Bottom')
1821 + ),
1822 + 'css' => 'transform-origin:{{val}} {{ele_rot_x_anc_point}}',
1823 + 'req' => ['!ele_rotate' => '', '!ele_scrolling_effects' => ''],
1824 + 'show' => ['ele_motion_effects' => '']
1825 + ),
1826 + // Scale Group
1827 + 'ele_scale_group' => array(
1828 + 'type' => 'access',
1829 + 'label' => __pl('Scale'),
1830 + 'show_group' => 'scrolling_scale',
1831 + 'req' => ['!ele_scrolling_effects' => ''],
1832 + 'show' => ['ele_motion_effects' => '']
1833 + ),
1834 + // Scale Setting
1835 + 'ele_scale' => array(
1836 + 'type' => 'checkbox',
1837 + 'label' => __pl('Enable'),
1838 + 'group' => 'scrolling_scale',
1839 + 'addAttr' => 'ele_scale="{{ele_scale}}"',
1840 + 'req' => ['!ele_scrolling_effects' => ''],
1841 + 'show' => ['ele_motion_effects' => '']
1842 + ),
1843 + 'ele_scl_direction' => array(
1844 + 'type' => 'select',
1845 + 'label' => __pl('Direction'),
1846 + 'group' => 'scrolling_scale',
1847 + 'default' => 'scaleup',
1848 + 'list' => array(
1849 + 'scaleup' => __pl('Scale Up'),
1850 + 'scaledown' => __pl('Scale Down'),
1851 + 'scaleupdown' => __pl('Scale Up Down'),
1852 + 'scaledownup' => __pl('Scale Down Up')
1853 + ),
1854 + 'addAttr' => 'ele_scl_direction="{{ele_scl_direction}}"',
1855 + 'req' => ['!ele_scale' => '', '!ele_scrolling_effects' => ''],
1856 + 'show' => ['ele_motion_effects' => '']
1857 + ),
1858 + 'ele_scl_level' => array(
1859 + 'type' => 'slider',
1860 + 'label' => __pl('Level'),
1861 + 'group' => 'scrolling_scale',
1862 + 'min' => 1,
1863 + 'step' => 0.1,
1864 + 'max' => 10,
1865 + 'default' => 5,
1866 + 'addAttr' => 'ele_scl_level="{{ele_scl_level}}"',
1867 + 'req' => [ '!ele_scale' => '', '!ele_scrolling_effects' => ''],
1868 + 'show' => ['ele_motion_effects' => '']
1869 + ),
1870 + 'ele_scl_top_viewport' => array(
1871 + 'type' => 'slider',
1872 + 'label' => __pl('top'),
1873 + 'group' => 'scrolling_scale',
1874 + 'min' => 0,
1875 + 'step' => 1,
1876 + 'max' => 100,
1877 + 'default' => 100,
1878 + 'screen' => 1,
1879 + 'addAttr' => 'ele_scl_top_viewport="{{ele_scl_top_viewport}}"',
1880 + 'req' => [ '!ele_scale' => '', '!ele_scrolling_effects' => ''],
1881 + 'show' => ['ele_motion_effects' => '']
1882 + ),
1883 + 'ele_scl_bottom_viewport' => array(
1884 + 'type' => 'slider',
1885 + 'label' => __pl('bottom'),
1886 + 'group' => 'scrolling_scale',
1887 + 'min' => 0,
1888 + 'step' => 1,
1889 + 'max' => 100,
1890 + 'default' => 100,
1891 + 'screen' => 1,
1892 + 'addAttr' => 'ele_scl_bottom_viewport="{{ele_scl_bottom_viewport}}"',
1893 + 'req' => [ '!ele_scale' => '', '!ele_scrolling_effects' => ''],
1894 + 'show' => ['ele_motion_effects' => '']
1895 + ),
1896 + 'ele_scl_x_anc_point' => array(
1897 + 'type' => 'select',
1898 + 'label' => __pl('X Anchor Point'),
1899 + 'group' => 'scrolling_scale',
1900 + 'default' => 'center',
1901 + 'list' => array(
1902 + 'left' => __pl('Left'),
1903 + 'center' => __pl('Center'),
1904 + 'right' => __pl('Right')
1905 + ),
1906 + 'req' => ['!ele_scale' => '', '!ele_scrolling_effects' => ''],
1907 + 'show' => ['ele_motion_effects' => '']
1908 + ),
1909 + 'ele_scl_y_anc_point' => array(
1910 + 'type' => 'select',
1911 + 'label' => __pl('Y Anchor Point'),
1912 + 'group' => 'scrolling_scale',
1913 + 'default' => 'center',
1914 + 'list' => array(
1915 + 'top' => __pl('Top'),
1916 + 'center' => __pl('Center'),
1917 + 'bottom' => __pl('Bottom')
1918 + ),
1919 + 'css' => 'transform-origin:{{val}} {{ele_scl_x_anc_point}}',
1920 + 'req' => ['!ele_scale' => '', '!ele_scrolling_effects' => ''],
1921 + 'show' => ['ele_motion_effects' => '']
1922 + ),
1923 + // Motion Area Selection
1924 + 'motion_area' => array(
1925 + 'type' => 'select',
1926 + 'label' => __pl('Effect Relative To'),
1927 + 'default' => 'viewport',
1928 + 'list' => array(
1929 + 'viewport' => __pl('Viewport'),
1930 + 'entire_page' => __pl('Entire Page'),
1931 + ),
1932 + 'addAttr' => 'motion_area="{{motion_area}}"',
1933 + 'req' => ['!ele_scrolling_effects' => ''],
1934 + 'show' => ['ele_motion_effects' => '']
1935 + ),
1936 + // Motion Effect Screen Selection
1937 + 'ele_motion_effect_on' => array(
1938 + 'type' => 'multiselect',
1939 + 'label' => __pl('Apply Effects On'),
1940 + 'default' => 'desktop,tablet,mobile',
1941 + 'addAttr' => 'ele_motion_effect_on="{{ele_motion_effect_on}}"',
1942 + 'list' => array(
1943 + 'desktop' => __pl('desktop'),
1944 + 'tablet' => __pl('tablet'),
1945 + 'mobile' => __pl('mobile'),
1946 + ),
1947 + 'req' => ['!ele_scrolling_effects' => ''],
1948 + 'show' => ['ele_motion_effects' => ''],
1949 + 'pro' => 1,
1950 + ),
1951 + // Mouse Effect
1952 + 'ele_mouse_effects' => array(
1953 + 'type' => 'checkbox',
1954 + 'label' => __pl('Mouse Effects'),
1955 + 'addClass' => 'pagelayer-mouse-effects',
1956 + 'show' => ['ele_motion_effects' => 'mouse'],
1957 + 'pro' => 1
1958 + ),
1959 + // Mouse Track Group
1960 + 'ele_m_track_group' => array(
1961 + 'type' => 'access',
1962 + 'label' => __pl('Mouse Track'),
1963 + 'show_group' => 'mouse_track',
1964 + 'req' => ['!ele_mouse_effects' => ''],
1965 + 'show' => ['ele_motion_effects' => 'mouse']
1966 + ),
1967 + // Mouse Track Setting
1968 + 'ele_m_track' => array(
1969 + 'type' => 'checkbox',
1970 + 'label' => __pl('Enable'),
1971 + 'group' => 'mouse_track',
1972 + 'addAttr' => 'ele_m_track="{{ele_m_track}}"',
1973 + 'req' => ['!ele_mouse_effects' => ''],
1974 + 'show' => ['ele_motion_effects' => 'mouse']
1975 + ),
1976 + 'ele_m_tr_direction' => array(
1977 + 'type' => 'select',
1978 + 'label' => __pl('Direction'),
1979 + 'group' => 'mouse_track',
1980 + 'default' => 'opposite',
1981 + 'list' => array(
1982 + 'opposite' => __pl('Opposite'),
1983 + 'same' => __pl('Same')
1984 + ),
1985 + 'addAttr' => 'ele_m_tr_direction="{{ele_m_tr_direction}}"',
1986 + 'req' => ['!ele_m_track' => '', '!ele_mouse_effects' => ''],
1987 + 'show' => ['ele_motion_effects' => 'mouse']
1988 + ),
1989 + 'ele_m_tr_level' => array(
1990 + 'type' => 'slider',
1991 + 'label' => __pl('Level'),
1992 + 'group' => 'mouse_track',
1993 + 'min' => 1,
1994 + 'step' => 0.1,
1995 + 'max' => 10,
1996 + 'default' => 5,
1997 + 'addAttr' => 'ele_m_tr_level="{{ele_m_tr_level}}"',
1998 + 'req' => [ '!ele_m_track' => '', '!ele_mouse_effects' => ''],
1999 + 'show' => ['ele_motion_effects' => 'mouse']
2000 + ),
2001 + // 3D Tilt Group
2002 + 'ele_3d_tilt_group' => array(
2003 + 'type' => 'access',
2004 + 'label' => __pl('3D Tilt'),
2005 + 'show_group' => 'mouse_3d',
2006 + 'req' => ['!ele_mouse_effects' => ''],
2007 + 'show' => ['ele_motion_effects' => 'mouse']
2008 + ),
2009 + // 3D Tilt Setting
2010 + 'ele_3d_tilt' => array(
2011 + 'type' => 'checkbox',
2012 + 'label' => __pl('Enable'),
2013 + 'group' => 'mouse_3d',
2014 + 'addAttr' => 'ele_3d_tilt="{{ele_3d_tilt}}"',
2015 + 'css' => 'will-change:transform; transform-style:preserve-3d;',
2016 + 'req' => ['!ele_mouse_effects' => ''],
2017 + 'show' => ['ele_motion_effects' => 'mouse']
2018 + ),
2019 + 'ele_3d_tilt_direction' => array(
2020 + 'type' => 'select',
2021 + 'label' => __pl('Direction'),
2022 + 'group' => 'mouse_3d',
2023 + 'default' => 'opposite',
2024 + 'list' => array(
2025 + 'opposite' => __pl('Opposite'),
2026 + 'same' => __pl('Same')
2027 + ),
2028 + 'addAttr' => 'ele_3d_tilt_direction="{{ele_3d_tilt_direction}}"',
2029 + 'req' => ['!ele_3d_tilt' => '', '!ele_mouse_effects' => ''],
2030 + 'show' => ['ele_motion_effects' => 'mouse']
2031 + ),
2032 + 'ele_3d_tilt_level' => array(
2033 + 'type' => 'slider',
2034 + 'label' => __pl('Level'),
2035 + 'group' => 'mouse_3d',
2036 + 'min' => 1,
2037 + 'step' => 0.1,
2038 + 'max' => 10,
2039 + 'default' => 5,
2040 + 'addAttr' => 'ele_3d_tilt_level="{{ele_3d_tilt_level}}"',
2041 + 'req' => [ '!ele_3d_tilt' => '', '!ele_mouse_effects' => ''],
2042 + 'show' => ['ele_motion_effects' => 'mouse']
2043 + )
2044 +];
2045 +
775 2046 // Resposive stuff
776 2047 $pagelayer->styles['responsive_styles'] = [
777 2048 'hide_desktop' => [
778 2049 'type' => 'checkbox',
@@ -790,8 +2061,19 @@
790 2061 'addClass' => 'pagelayer-hide-mobile'
791 2062 ],
792 2063 ];
793 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 +
794 2076 // Custom stuff
795 2077 $pagelayer->styles['custom_styles'] = [
796 2078 'ele_id' => [
797 2079 'type' => 'text',
@@ -804,8 +2086,16 @@
804 2086 'label' => __pl('ele_classes'),
805 2087 'desc' => __pl('ele_classes_desc'),
806 2088 'addClass' => '{{val}}',
807 2089 ],
2090 + 'ele_css' => [
2091 + 'type' => 'textarea',
2092 + 'label' => __pl('custom_styles'),
2093 + 'desc' => __pl('ele_css_desc'),
2094 + 'rows' => 5,
2095 + 'css' => ['' => '{{val}}'],
2096 + 'pro' => 1
2097 + ],
808 2098 ];
809 2099
810 2100
811 2101 ////////////////////////
@@ -815,12 +2105,16 @@
815 2105 // ROW object
816 2106 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_row', array(
817 2107 'name' => __pl('row'),
818 2108 'group' => 'grid',
819 - 'func' => 'pagelayer_sc_row',
2109 + 'skip_props_cat' => ['position_styles'],
2110 + 'skip_props' => ['ele_sticky_in_container'],
820 2111 'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
2112 + <div if="{{bg_slider}}" class="pagelayer-bgimg-slider">
2113 + {{slider}}
2114 + </div>
821 2115 <div if="{{parallax_img}}" class="pagelayer-parallax-window">
822 - <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}}}">
823 2117 </div>
824 2118 <div if="{{row_shape_position}}" class="pagelayer-row-shape">
825 2119 <div class="pagelayer-row-svg">
826 2120 <svg if="{{row_shape_type_top}}" class="pagelayer-svg-top">{{svg_top}}</svg>
@@ -827,9 +2121,9 @@
827 2121 <svg if="{{row_shape_type_bottom}}" class="pagelayer-svg-bottom">{{svg_bottom}}</svg>
828 2122 </div>
829 2123 </div>
830 2124 <div if="{{overlay_type}}" class="pagelayer-background-overlay"></div>
831 - <div class="pagelayer-row-holder pagelayer-row pagelayer-auto"></div>',
2125 + <div class="pagelayer-row-holder pagelayer-row pagelayer-auto pagelayer-width-{{width_content}}"></div>',
832 2126 'holder' => '.pagelayer-row-holder',
833 2127 'params' => array(
834 2128 'stretch' => array(
835 2129 'type' => 'select',
@@ -848,9 +2142,10 @@
848 2142 'default' => 500,
849 2143 'min' => 300,
850 2144 'max' => 3000,
851 2145 'step' => 1,
852 - '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;'],
853 2148 'req' => array(
854 2149 'stretch' => 'fixed'
855 2150 )
856 2151 ),
@@ -859,8 +2154,9 @@
859 2154 'label' => __pl('col_gap'),
860 2155 'default' => 10,
861 2156 'min' => 0,
862 2157 'step' => 1,
2158 + 'screen' => 1,
863 2159 'max' => 1000,
864 2160 'css' => ['{{element}} .pagelayer-col-holder' => 'padding: {{val}}px;'],
865 2161 ),
866 2162 'width_content' => array(
@@ -874,14 +2170,15 @@
874 2170 )
875 2171 ),
876 2172 'fixed_width' => array(
877 2173 'type' => 'slider',
878 - 'label' => __pl('fixed_width'),
2174 + 'label' => __pl('fixed_con_width'),
879 2175 'default' => 500,
880 - 'min' => 300,
2176 + 'min' => 1,
881 2177 'max' => 3000,
882 - 'step' => 1,
883 - '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;'],
884 2181 'req' => array(
885 2182 'width_content' => 'fixed'
886 2183 )
887 2184 ),
@@ -900,40 +2197,26 @@
900 2197 'type' => 'slider',
901 2198 'label' => __pl('min_height'),
902 2199 'min' => 0,
903 2200 'max' => 2000,
904 - 'step' => 1,
905 - 'css' => 'min-height: {{val}}px;',
2201 + 'screen' => 1,
2202 + 'units' => ['px', 'vh', 'vw'],
2203 + 'css' => 'min-height: {{val}};',
906 2204 'req' => array(
907 2205 'row_height' => 'custom'
908 2206 )
909 2207 ),
910 - 'column_pos' => array(
2208 + 'content_pos' => array(
911 2209 'type' => 'select',
912 - 'label' => __pl('column_pos'),
913 - 'default' => 'default',
914 - '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}};'],
915 2212 'list' => array(
916 2213 '' => __pl('default'),
917 2214 'flex-start' => __pl('top'),
918 2215 'center' => __pl('center'),
919 2216 'flex-end' => __pl('bottom'),
920 - 'stretch' => __pl('Stretch')
921 2217 ),
922 2218 ),
923 - 'content_pos' => array(
924 - 'type' => 'select',
925 - 'label' => __pl('content_pos'),
926 - 'default' => 'default',
927 - 'css' => ['{{element}} .pagelayer-row-holder' => '-webkit-box-align: {{val}}; -webkit-align-items: {{val}}; -ms-flex-align: {{val}}; align-items: {{val}};'],
928 - 'list' => array(
929 - '' => __pl('default'),
930 - 'baseline' => __pl('top'),
931 - 'center' => __pl('center'),
932 - 'end' => __pl('bottom'),
933 - 'stretch' => __pl('Stretch')
934 - ),
935 - ),
936 2219 ),
937 2220 'row_bg_styles' => [
938 2221 'row_bg_type' => array(
939 2222 'type' => 'radio',
@@ -941,8 +2224,9 @@
941 2224 'list' => array(
942 2225 '' => __pl('none'),
943 2226 'video' => __pl('video'),
944 2227 'parallax' => __pl('parallax'),
2228 + 'slider' => __pl('slider'),
945 2229 ),
946 2230 ),
947 2231 'bg_video_src' => array(
948 2232 'type' => 'video',
@@ -949,13 +2233,86 @@
949 2233 'label' => __pl('video_src_label'),
950 2234 'desc' => __pl('video_src_desc'),
951 2235 'req' => ['row_bg_type' => 'video']
952 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 + ),
953 2247 'parallax_img' => array(
954 2248 'type' => 'image',
955 2249 'label' => __pl('Image'),
956 2250 'req' => ['row_bg_type' => 'parallax']
957 2251 ),
2252 + 'parallax_align' => array(
2253 + 'type' => 'radio',
2254 + 'label' => __pl('obj_align_label'),
2255 + 'screen' => 1,
2256 + 'default' => 'center',
2257 + 'css' => ['{{element}} .pagelayer-parallax-window' => 'text-align: {{val}}'],
2258 + 'list' => array(
2259 + 'left' => __pl('left'),
2260 + 'center' => __pl('center'),
2261 + 'right' => __pl('right')
2262 + ),
2263 + 'req' => ['row_bg_type' => 'parallax']
2264 + ),
2265 + 'parallax_id_size' => array(
2266 + 'label' => __pl('obj_image_size_label'),
2267 + 'type' => 'select',
2268 + 'default' => 'full',
2269 + 'list' => array(
2270 + 'full' => __pl('full'),
2271 + 'large' => __pl('large'),
2272 + 'medium' => __pl('medium'),
2273 + 'thumbnail' => __pl('thumbnail'),
2274 + 'custom' => __pl('custom')
2275 + ),
2276 + 'req' => ['row_bg_type' => 'parallax']
2277 + ),
2278 + 'parallax_custom_size' => array(
2279 + 'type' => 'dimension',
2280 + 'label' => __pl('image_custom_size_label'),
2281 + 'css' => ['{{element}} .pagelayer-parallax-window img' => 'width: {{val[0]}}px; height: {{val[1]}}px;'],
2282 + 'req' => [
2283 + 'parallax_id_size' => 'custom',
2284 + 'row_bg_type' => 'parallax'
2285 + ],
2286 + ),
2287 + 'parallax_max_width' => array(
2288 + 'label' => __pl('max-width-percent'),
2289 + 'type' => 'slider',
2290 + 'min' => 0,
2291 + 'max' => 100,
2292 + 'screen' => 1,
2293 + 'css' => ['{{element}} .pagelayer-parallax-window img' => 'max-width: {{val}}%'],
2294 + 'req' => ['row_bg_type' => 'parallax']
2295 + ),
2296 + 'bg_slider' => array(
2297 + 'type' => 'multi_image',
2298 + 'label' => __pl('image_slider_ids_label'),
2299 + 'req' => ['row_bg_type' => 'slider'],
2300 + 'pro' => 1
2301 + ),
2302 + 'bg_slider_speed' => array(
2303 + 'type' => 'spinner',
2304 + 'label' => __pl('speed_ms'),
2305 + 'default' => 2000,
2306 + 'min' => 200,
2307 + 'max' => 50000,
2308 + 'step' => 100,
2309 + 'addAttr' => ['{{element}} .pagelayer-bgimg-slider' => 'data-speed="{{bg_slider_speed}}"'],
2310 + 'req' => [
2311 + 'row_bg_type' => 'slider'
2312 + ],
2313 + 'pro' => 1
2314 + ),
958 2315 ],
959 2316 'row_bg_overlay' => [
960 2317 'overlay_state' => array(
961 2318 'type' => 'radio',
@@ -978,9 +2335,9 @@
978 2335 ),
979 2336 'overlay_color' => array(
980 2337 'type' => 'color',
981 2338 'label' => __pl('color'),
982 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-color: {{val}};'],
2339 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-color: {{val}};'],
983 2340 'req' => ['overlay_type' => 'color'],
984 2341 'show' => ['overlay_state' => ''],
985 2342 ),
986 2343 'overlay_gradient' => array(
@@ -985,10 +2342,10 @@
985 2342 ),
986 2343 'overlay_gradient' => array(
987 2344 'type' => 'gradient',
988 2345 'label' => '',
989 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
990 - '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]}}%);'],
991 2348 'show' => ['overlay_state' => ''],
992 2349 'req' => ['overlay_type' => 'gradient']
993 2350 ),
994 2351 'overlay_img' => array(
@@ -993,9 +2350,9 @@
993 2350 ),
994 2351 'overlay_img' => array(
995 2352 'type' => 'image',
996 2353 'label' => __pl('Image'),
997 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: url({{{overlay_img-url}}});'],
2354 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: url("{{{overlay_img-url}}}");'],
998 2355 'show' => ['overlay_state' => ''],
999 2356 'req' => ['overlay_type' => 'image']
1000 2357 ),
1001 2358 'overlay_img_attachment' => array(
@@ -1006,9 +2363,9 @@
1006 2363 'scroll' => __pl('scroll'),
1007 2364 'fixed' => __pl('fixed')
1008 2365 ],
1009 2366 'show' => ['overlay_state' => ''],
1010 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
2367 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1011 2368 'req' => ['overlay_type' => 'image']
1012 2369 ),
1013 2370 'overlay_bg_posx' => array(
1014 2371 'type' => 'select',
@@ -1019,9 +2376,9 @@
1019 2376 'left' => __pl('left'),
1020 2377 'right' => __pl('right')
1021 2378 ],
1022 2379 'show' => ['overlay_state' => ''],
1023 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
2380 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1024 2381 'req' => ['overlay_type' => 'image']
1025 2382 ),
1026 2383 'overlay_bg_posy' => array(
1027 2384 'type' => 'select',
@@ -1032,15 +2389,15 @@
1032 2389 'top' => __pl('top'),
1033 2390 'bottom' => __pl('bottom')
1034 2391 ],
1035 2392 'show' => ['overlay_state' => ''],
1036 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
2393 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1037 2394 'req' => ['overlay_type' => 'image']
1038 2395 ),
1039 2396 'overlay_bg_repeat' => array(
1040 2397 'type' => 'select',
1041 2398 'label' => __pl('overlay_bg_repeat'),
1042 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
2399 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1043 2400 'list' => [
1044 2401 '' => __pl('default'),
1045 2402 'repeat' => __pl('repeat'),
1046 2403 'no-repeat' => __pl('no-repeat'),
@@ -1052,9 +2409,9 @@
1052 2409 ),
1053 2410 'overlay_bg_size' => array(
1054 2411 'type' => 'select',
1055 2412 'label' => __pl('overlay_bg_size'),
1056 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-size: {{val}};'],
2413 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1057 2414 'list' => [
1058 2415 '' => __pl('default'),
1059 2416 'cover' => __pl('cover'),
1060 2417 'contain' => __pl('contain')
@@ -1068,9 +2425,9 @@
1068 2425 'default' => 0.5,
1069 2426 'min' => 0,
1070 2427 'max' => 1,
1071 2428 'step' => 0.1,
1072 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'opacity: {{val}};'],
2429 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1073 2430 'req' => array(
1074 2431 '!overlay_type' => '',
1075 2432 ),
1076 2433 'show' => ['overlay_state' => ''],
@@ -1081,9 +2438,9 @@
1081 2438 'min' => 0,
1082 2439 'step' => 100,
1083 2440 'max' => 5000,
1084 2441 'default' => 400,
1085 - '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;'],
1086 2443 'show' => array(
1087 2444 'overlay_state' => 'hover'
1088 2445 ),
1089 2446 ),
@@ -1101,9 +2458,9 @@
1101 2458 'overlay_color_hover' => array(
1102 2459 'type' => 'color',
1103 2460 'label' => __pl('color'),
1104 2461 //'desc' => __pl('video_src_desc'),
1105 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: {{val}};'],
2462 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: {{val}};'],
1106 2463 'req' => ['overlay_type_hover' => 'color'],
1107 2464 'show' => ['overlay_state' => 'hover'],
1108 2465 ),
1109 2466 'overlay_gradient_hover' => array(
@@ -1108,10 +2465,10 @@
1108 2465 ),
1109 2466 'overlay_gradient_hover' => array(
1110 2467 'type' => 'gradient',
1111 2468 'label' => '',
1112 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
1113 - '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]}}%);'],
1114 2471 'show' => ['overlay_state' => 'hover'],
1115 2472 'req' => ['overlay_type_hover' => 'gradient']
1116 2473 ),
1117 2474 'overlay_img_hover' => array(
@@ -1116,9 +2473,9 @@
1116 2473 ),
1117 2474 'overlay_img_hover' => array(
1118 2475 'type' => 'image',
1119 2476 'label' => __pl('Image'),
1120 - '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}}}");'],
1121 2478 'show' => ['overlay_state' => 'hover'],
1122 2479 'req' => ['overlay_type_hover' => 'image']
1123 2480 ),
1124 2481 'overlay_img_attachment_hover' => array(
@@ -1129,9 +2486,9 @@
1129 2486 'scroll' => __pl('scroll'),
1130 2487 'fixed' => __pl('fixed')
1131 2488 ],
1132 2489 'show' => ['overlay_state' => 'hover'],
1133 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
2490 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1134 2491 'req' => ['overlay_type_hover' => 'image']
1135 2492 ),
1136 2493 'overlay_bg_posx_hover' => array(
1137 2494 'type' => 'select',
@@ -1142,9 +2499,9 @@
1142 2499 'left' => __pl('left'),
1143 2500 'right' => __pl('right')
1144 2501 ],
1145 2502 'show' => ['overlay_state' => 'hover'],
1146 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
2503 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1147 2504 'req' => ['overlay_type_hover' => 'image']
1148 2505 ),
1149 2506 'overlay_bg_posy_hover' => array(
1150 2507 'type' => 'select',
@@ -1155,15 +2512,15 @@
1155 2512 'top' => __pl('top'),
1156 2513 'bottom' => __pl('bottom')
1157 2514 ],
1158 2515 'show' => ['overlay_state' => 'hover'],
1159 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
2516 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1160 2517 'req' => ['overlay_type_hover' => 'image']
1161 2518 ),
1162 2519 'overlay_bg_repeat_hover' => array(
1163 2520 'type' => 'select',
1164 2521 'label' => __pl('overlay_bg_repeat_hover'),
1165 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
2522 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1166 2523 'list' => [
1167 2524 '' => __pl('default'),
1168 2525 'repeat' => __pl('repeat'),
1169 2526 'no-repeat' => __pl('no-repeat'),
@@ -1175,9 +2532,9 @@
1175 2532 ),
1176 2533 'overlay_bg_size_hover' => array(
1177 2534 'type' => 'select',
1178 2535 'label' => __pl('overlay_bg_size_hover'),
1179 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-size: {{val}};'],
2536 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1180 2537 'list' => [
1181 2538 '' => __pl('default'),
1182 2539 'cover' => __pl('cover'),
1183 2540 'contain' => __pl('contain')
@@ -1190,9 +2547,9 @@
1190 2547 'label' => __pl('overlay_transperancy_hover'),
1191 2548 'min' => 0,
1192 2549 'max' => 1,
1193 2550 'step' => 0.1,
1194 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'opacity: {{val}};'],
2551 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1195 2552 'req' => array(
1196 2553 'overlay_type' => 'image',
1197 2554 'overlay_type' => 'color'
1198 2555 ),
@@ -1233,9 +2590,9 @@
1233 2590 ),
1234 2591 'row_shape_top_color' => array(
1235 2592 'type' => 'color',
1236 2593 'label' => __pl('shape_bg_color'),
1237 - 'default' => '#fff',
2594 + 'default' => '#227bc3',
1238 2595 'css' => ['{{element}} .pagelayer-svg-top .pagelayer-shape-fill' => 'fill:{{val}}'],
1239 2596 'show' => ['row_shape_position' => 'top'],
1240 2597 ),
1241 2598 'row_shape_top_width' => array(
@@ -1289,9 +2646,9 @@
1289 2646 ),
1290 2647 'row_shape_bottom_color' => array(
1291 2648 'type' => 'color',
1292 2649 'label' => __pl('shape_bg_color'),
1293 - 'default' => '#fff',
2650 + 'default' => '#e44993',
1294 2651 'css' => ['{{element}} .pagelayer-svg-bottom .pagelayer-shape-fill' => 'fill:{{val}}'],
1295 2652 'show' => ['row_shape_position' => 'bottom'],
1296 2653 ),
1297 2654 'row_shape_bottom_width' => array(
@@ -1333,12 +2690,16 @@
1333 2690 // Column object
1334 2691 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_col', array(
1335 2692 'name' => __pl('column'),
1336 2693 'group' => 'grid',
1337 - 'func' => 'pagelayer_sc_col',
2694 + 'skip_props_cat' => ['position_styles'],
2695 + 'skip_props' => ['ele_sticky_in_container'],
1338 2696 'html' => '<div if="{{bg_video_src}}" class="pagelayer-background-video">{{vid_src}}</div>
2697 + <div if="{{bg_slider}}" class="pagelayer-bgimg-slider">
2698 + {{slider}}
2699 + </div>
1339 2700 <div if="{{parallax_img}}" class="pagelayer-parallax-window">
1340 - <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}}}">
1341 2702 </div>
1342 2703 <div if="{{overlay_type}}" class="pagelayer-background-overlay"></div>
1343 2704 <div class="pagelayer-col-holder"></div>',
1344 2705 'holder' => '.pagelayer-col-holder',
@@ -1345,11 +2706,9 @@
1345 2706 'params' => array(
1346 2707 'content_pos' => array(
1347 2708 'type' => 'select',
1348 2709 'label' => __pl('content_pos'),
1349 - 'default' => '',
1350 - 'css' => ['{{element}}' => 'display:flex; -webkit-box-align: {{val}}; -webkit-align-items: {{val}}; -ms-flex-align: {{val}}; align-items: {{val}}; height: 100%;',
1351 - '{{element}} .pagelayer-col-holder' => 'width:100%'],
2710 + 'css' => ['{{element}}' => 'align-content: {{val}} !important;'],
1352 2711 'list' => array(
1353 2712 '' => __pl('default'),
1354 2713 'flex-start' => __pl('top'),
1355 2714 'center' => __pl('center'),
@@ -1389,10 +2748,11 @@
1389 2748 'type' => 'spinner',
1390 2749 'label' => __pl('width_custom'),
1391 2750 'min' => 0,
1392 2751 'step' => 1,
1393 - 'max' => 1000,
1394 - 'css' => ( !pagelayer_is_live() ? 'width: {{val}}px;' : '' ),
2752 + 'max' => 100,
2753 + 'screen' => 1,
2754 + 'css' =>['.pagelayer-row-holder {{wrap}}' => 'width: {{val}}%;'],
1395 2755 'req' => ['col' => ''],
1396 2756 ),
1397 2757 ),
1398 2758 'col_bg_styles' => [
@@ -1402,8 +2762,9 @@
1402 2762 'list' => array(
1403 2763 '' => __pl('none'),
1404 2764 'video' => __pl('video'),
1405 2765 'parallax' => __pl('parallax'),
2766 + 'slider' => __pl('slider'),
1406 2767 ),
1407 2768 ),
1408 2769 'bg_video_src' => array(
1409 2770 'type' => 'video',
@@ -1410,13 +2771,86 @@
1410 2771 'label' => __pl('video_src_label'),
1411 2772 'desc' => __pl('video_src_desc'),
1412 2773 'req' => ['col_bg_type' => 'video']
1413 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 + ),
1414 2785 'parallax_img' => array(
1415 2786 'type' => 'image',
1416 2787 'label' => __pl('Image'),
1417 2788 'req' => ['col_bg_type' => 'parallax']
1418 2789 ),
2790 + 'parallax_align' => array(
2791 + 'type' => 'radio',
2792 + 'label' => __pl('obj_align_label'),
2793 + 'screen' => 1,
2794 + 'default' => 'center',
2795 + 'css' => ['{{element}} .pagelayer-parallax-window' => 'text-align: {{val}}'],
2796 + 'list' => array(
2797 + 'left' => __pl('left'),
2798 + 'center' => __pl('center'),
2799 + 'right' => __pl('right')
2800 + ),
2801 + 'req' => ['col_bg_type' => 'parallax']
2802 + ),
2803 + 'parallax_id_size' => array(
2804 + 'label' => __pl('obj_image_size_label'),
2805 + 'type' => 'select',
2806 + 'default' => 'full',
2807 + 'list' => array(
2808 + 'full' => __pl('full'),
2809 + 'large' => __pl('large'),
2810 + 'medium' => __pl('medium'),
2811 + 'thumbnail' => __pl('thumbnail'),
2812 + 'custom' => __pl('custom')
2813 + ),
2814 + 'req' => ['col_bg_type' => 'parallax']
2815 + ),
2816 + 'parallax_custom_size' => array(
2817 + 'type' => 'dimension',
2818 + 'label' => __pl('image_custom_size_label'),
2819 + 'css' => ['{{element}} .pagelayer-parallax-window img' => 'width: {{val[0]}}px; height: {{val[1]}}px;'],
2820 + 'req' => array(
2821 + 'parallax_id_size' => 'custom',
2822 + 'col_bg_type' => 'parallax'
2823 + ),
2824 + ),
2825 + 'parallax_max_width' => array(
2826 + 'label' => __pl('max-width-percent'),
2827 + 'type' => 'slider',
2828 + 'min' => 0,
2829 + 'max' => 100,
2830 + 'screen' => 1,
2831 + 'css' => ['{{element}} .pagelayer-parallax-window img' => 'max-width: {{val}}%'],
2832 + 'req' => ['col_bg_type' => 'parallax']
2833 + ),
2834 + 'bg_slider' => array(
2835 + 'type' => 'multi_image',
2836 + 'label' => __pl('image_slider_ids_label'),
2837 + 'req' => ['col_bg_type' => 'slider'],
2838 + 'pro' => 1
2839 + ),
2840 + 'bg_slider_speed' => array(
2841 + 'type' => 'spinner',
2842 + 'label' => __pl('speed_ms'),
2843 + 'default' => 2000,
2844 + 'min' => 200,
2845 + 'max' => 50000,
2846 + 'step' => 100,
2847 + 'addAttr' => ['{{element}} .pagelayer-bgimg-slider' => 'data-speed="{{bg_slider_speed}}"'],
2848 + 'req' => [
2849 + 'col_bg_type' => 'slider'
2850 + ],
2851 + 'pro' => 1
2852 + ),
1419 2853 ],
1420 2854 'col_bg_overlay' => [
1421 2855 'overlay_state' => array(
1422 2856 'type' => 'radio',
@@ -1440,9 +2874,9 @@
1440 2874 'overlay_color' => array(
1441 2875 'type' => 'color',
1442 2876 'label' => __pl('color'),
1443 2877 //'desc' => __pl('video_src_desc'),
1444 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-color: {{val}};'],
2878 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-color: {{val}};'],
1445 2879 'req' => ['overlay_type' => 'color'],
1446 2880 'show' => ['overlay_state' => ''],
1447 2881 ),
1448 2882 'overlay_gradient' => array(
@@ -1447,10 +2881,10 @@
1447 2881 ),
1448 2882 'overlay_gradient' => array(
1449 2883 'type' => 'gradient',
1450 2884 'label' => '',
1451 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
1452 - '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]}}%);'],
1453 2887 'show' => ['overlay_state' => ''],
1454 2888 'req' => ['overlay_type' => 'gradient']
1455 2889 ),
1456 2890 'overlay_img' => array(
@@ -1455,9 +2889,9 @@
1455 2889 ),
1456 2890 'overlay_img' => array(
1457 2891 'type' => 'image',
1458 2892 'label' => __pl('Image'),
1459 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: url({{{overlay_img-url}}});'],
2893 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: url("{{{overlay_img-url}}}");'],
1460 2894 'show' => ['overlay_state' => ''],
1461 2895 'req' => ['overlay_type' => 'image']
1462 2896 ),
1463 2897 'overlay_img_attachment' => array(
@@ -1468,9 +2902,9 @@
1468 2902 'scroll' => __pl('scroll'),
1469 2903 'fixed' => __pl('fixed')
1470 2904 ],
1471 2905 'show' => ['overlay_state' => ''],
1472 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
2906 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1473 2907 'req' => ['overlay_type' => 'image']
1474 2908 ),
1475 2909 'overlay_bg_posx' => array(
1476 2910 'type' => 'select',
@@ -1481,9 +2915,9 @@
1481 2915 'left' => __pl('left'),
1482 2916 'right' => __pl('right')
1483 2917 ],
1484 2918 'show' => ['overlay_state' => ''],
1485 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
2919 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1486 2920 'req' => ['overlay_type' => 'image']
1487 2921 ),
1488 2922 'overlay_bg_posy' => array(
1489 2923 'type' => 'select',
@@ -1494,15 +2928,15 @@
1494 2928 'top' => __pl('top'),
1495 2929 'bottom' => __pl('bottom')
1496 2930 ],
1497 2931 'show' => ['overlay_state' => ''],
1498 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
2932 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1499 2933 'req' => ['overlay_type' => 'image']
1500 2934 ),
1501 2935 'overlay_bg_repeat' => array(
1502 2936 'type' => 'select',
1503 2937 'label' => __pl('overlay_bg_repeat'),
1504 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
2938 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1505 2939 'list' => [
1506 2940 '' => __pl('default'),
1507 2941 'repeat' => __pl('repeat'),
1508 2942 'no-repeat' => __pl('no-repeat'),
@@ -1514,9 +2948,9 @@
1514 2948 ),
1515 2949 'overlay_bg_size' => array(
1516 2950 'type' => 'select',
1517 2951 'label' => __pl('overlay_bg_size'),
1518 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-size: {{val}};'],
2952 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1519 2953 'list' => [
1520 2954 '' => __pl('default'),
1521 2955 'cover' => __pl('cover'),
1522 2956 'contain' => __pl('contain')
@@ -1530,9 +2964,9 @@
1530 2964 'default' => 0.5,
1531 2965 'min' => 0,
1532 2966 'max' => 1,
1533 2967 'step' => 0.1,
1534 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'opacity: {{val}};'],
2968 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1535 2969 'req' => array(
1536 2970 '!overlay_type' => '',
1537 2971 ),
1538 2972 'show' => ['overlay_state' => ''],
@@ -1543,9 +2977,9 @@
1543 2977 'min' => 0,
1544 2978 'step' => 100,
1545 2979 'max' => 5000,
1546 2980 'default' => 400,
1547 - '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;'],
1548 2982 'show' => array(
1549 2983 'overlay_state' => 'hover'
1550 2984 ),
1551 2985 ),
@@ -1563,9 +2997,9 @@
1563 2997 'overlay_color_hover' => array(
1564 2998 'type' => 'color',
1565 2999 'label' => __pl('color'),
1566 3000 //'desc' => __pl('video_src_desc'),
1567 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: {{val}};'],
3001 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: {{val}};'],
1568 3002 'req' => ['overlay_type_hover' => 'color'],
1569 3003 'show' => ['overlay_state' => 'hover'],
1570 3004 ),
1571 3005 'overlay_gradient_hover' => array(
@@ -1570,10 +3004,10 @@
1570 3004 ),
1571 3005 'overlay_gradient_hover' => array(
1572 3006 'type' => 'gradient',
1573 3007 'label' => '',
1574 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
1575 - '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]}}%);'],
1576 3010 'show' => ['overlay_state' => 'hover'],
1577 3011 'req' => ['overlay_type_hover' => 'gradient']
1578 3012 ),
1579 3013 'overlay_img_hover' => array(
@@ -1578,9 +3012,9 @@
1578 3012 ),
1579 3013 'overlay_img_hover' => array(
1580 3014 'type' => 'image',
1581 3015 'label' => __pl('Image'),
1582 - '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}}}");'],
1583 3017 'show' => ['overlay_state' => 'hover'],
1584 3018 'req' => ['overlay_type_hover' => 'image']
1585 3019 ),
1586 3020 'overlay_img_attachment_hover' => array(
@@ -1591,9 +3025,9 @@
1591 3025 'scroll' => __pl('scroll'),
1592 3026 'fixed' => __pl('fixed')
1593 3027 ],
1594 3028 'show' => ['overlay_state' => 'hover'],
1595 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
3029 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1596 3030 'req' => ['overlay_type_hover' => 'image']
1597 3031 ),
1598 3032 'overlay_bg_posx_hover' => array(
1599 3033 'type' => 'select',
@@ -1604,9 +3038,9 @@
1604 3038 'left' => __pl('left'),
1605 3039 'right' => __pl('right')
1606 3040 ],
1607 3041 'show' => ['overlay_state' => 'hover'],
1608 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
3042 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1609 3043 'req' => ['overlay_type_hover' => 'image']
1610 3044 ),
1611 3045 'overlay_bg_posy_hover' => array(
1612 3046 'type' => 'select',
@@ -1617,15 +3051,15 @@
1617 3051 'top' => __pl('top'),
1618 3052 'bottom' => __pl('bottom')
1619 3053 ],
1620 3054 'show' => ['overlay_state' => 'hover'],
1621 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
3055 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1622 3056 'req' => ['overlay_type_hover' => 'image']
1623 3057 ),
1624 3058 'overlay_bg_repeat_hover' => array(
1625 3059 'type' => 'select',
1626 3060 'label' => __pl('overlay_bg_repeat_hover'),
1627 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
3061 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1628 3062 'list' => [
1629 3063 '' => __pl('default'),
1630 3064 'repeat' => __pl('repeat'),
1631 3065 'no-repeat' => __pl('no-repeat'),
@@ -1637,9 +3071,9 @@
1637 3071 ),
1638 3072 'overlay_bg_size_hover' => array(
1639 3073 'type' => 'select',
1640 3074 'label' => __pl('overlay_bg_size_hover'),
1641 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-size: {{val}};'],
3075 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1642 3076 'list' => [
1643 3077 '' => __pl('default'),
1644 3078 'cover' => __pl('cover'),
1645 3079 'contain' => __pl('contain')
@@ -1653,9 +3087,9 @@
1653 3087 'default' => 0.5,
1654 3088 'min' => 0,
1655 3089 'max' => 1,
1656 3090 'step' => 0.1,
1657 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'opacity: {{val}};'],
3091 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1658 3092 'req' => array(
1659 3093 '!overlay_type_hover' => '',
1660 3094 ),
1661 3095 'show' => ['overlay_state' => 'hover'],
@@ -1675,12 +3109,11 @@
1675 3109 // Heading object
1676 3110 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_heading', array(
1677 3111 'name' => __pl('title'),
1678 3112 'group' => 'text',
1679 - 'func' => 'pagelayer_sc_heading',
1680 3113 'innerHTML' => 'text',
1681 - 'html' => '<a if-ext="{{link}}" href="{{link}}">
1682 - <div class="pagelayer-heading-holder">{{text}}</div>
3114 + 'html' => '<a if-ext="{{link}}" href="{{{link}}}" class="pagelayer-link-sel">
3115 + <div if={{text}} class="pagelayer-heading-holder">{{text}}</div>
1683 3116 </a>',
1684 3117 'params' => array(
1685 3118 'text' => array(
1686 3119 'type' => 'textarea',
@@ -1686,23 +3119,16 @@
1686 3119 'type' => 'textarea',
1687 3120 'label' => __pl('Edit Title'),
1688 3121 'default' => '<h2>Your Heading</h2>',
1689 3122 'desc' => __pl('Edit the heading here'),
3123 + 'e' => [ 'v', 'h', 'f', 'c', 'r'],
1690 3124 'edit' => '.pagelayer-heading-holder', // Edit the text and also mirror the same
1691 3125 ),
1692 3126 'link' => array(
3127 + 'type' => 'link',
1693 3128 'label' => __pl('image_link_label'),
1694 - 'desc' => __pl('image_link_desc'),
1695 - 'type' => 'link',
3129 + 'selector' => '.pagelayer-link-sel'
1696 3130 ),
1697 - 'target' => array(
1698 - 'label' => __pl('open_link_in_new_window'),
1699 - 'type' => 'checkbox',
1700 - 'addAttr' => ['{{element}} a' => 'target="_blank"'],
1701 - 'req' => array(
1702 - '!link' => ''
1703 - )
1704 - ),
1705 3131 'align' => array(
1706 3132 'label' => __pl('obj_align_label'),
1707 3133 'type' => 'radio',
1708 3134 'addAttr' => 'align="{{align}}"',
@@ -1715,26 +3141,55 @@
1715 3141 )
1716 3142 ),
1717 3143 ),
1718 3144 'heading_styles' => [
3145 + 'heading_state' => array(
3146 + 'type' => 'radio',
3147 + 'label' => __pl('state'),
3148 + 'default' => 'normal',
3149 + 'list' => array(
3150 + 'normal' => __pl('normal'),
3151 + 'hover' => __pl('hover'),
3152 + )
3153 + ),
1719 3154 'color' => array(
1720 3155 'type' => 'color',
1721 3156 'label' => __pl('color'),
1722 - 'default' => '#111111ff',
1723 3157 'css' => ['{{element}} .pagelayer-heading-holder *' => 'color:{{val}}', '{{element}} .pagelayer-heading-holder' => 'color:{{val}}'],
3158 + 'show' => ['heading_state' => 'normal']
1724 3159 ),
1725 3160 'heading_typo' => array(
1726 3161 'type' => 'typography',
1727 3162 'label' => __pl('typography'),
1728 - 'screen' => 1,
1729 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;',
1730 3164 '{{element}} .pagelayer-heading-holder' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
3165 + 'show' => ['heading_state' => 'normal']
1731 3166 ),
1732 3167 'heading_text_shadow' => array(
1733 3168 'type' => 'shadow',
1734 3169 'label' => __pl('text_shadow'),
1735 - 'css' => ['{{element}} .pagelayer-heading-holder' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
3170 + 'css' => ['{{element}} .pagelayer-heading-holder, {{element}} .pagelayer-heading-holder *' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
3171 + 'show' => ['heading_state' => 'normal']
1736 3172 ),
3173 + 'color_hover' => array(
3174 + 'type' => 'color',
3175 + 'label' => __pl('color'),
3176 + 'css' => ['{{element}} .pagelayer-heading-holder:hover *' => 'color:{{val}}', '{{element}} .pagelayer-heading-holder:hover' => 'color:{{val}}'],
3177 + 'show' => ['heading_state' => 'hover']
3178 + ),
3179 + 'heading_typo_hover' => array(
3180 + 'type' => 'typography',
3181 + 'label' => __pl('typography'),
3182 + 'css' => ['{{element}} .pagelayer-heading-holder:hover *' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
3183 + '{{element}} .pagelayer-heading-holder:hover' => 'font-family: {{val[0]}} !important; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
3184 + 'show' => ['heading_state' => 'hover']
3185 + ),
3186 + 'heading_text_shadow_hover' => array(
3187 + 'type' => 'shadow',
3188 + 'label' => __pl('text_shadow'),
3189 + 'css' => ['{{element}} .pagelayer-heading-holder:hover, {{element}} .pagelayer-heading-holder:hover *' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
3190 + 'show' => ['heading_state' => 'hover']
3191 + ),
1737 3192 ],
1738 3193 'styles' => [
1739 3194 'heading_styles' => __pl('heading_styles')
1740 3195 ],
@@ -1744,9 +3199,8 @@
1744 3199 // Rich Text object
1745 3200 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_text', array(
1746 3201 'name' => __pl('Rich Text'),
1747 3202 'group' => 'text',
1748 - 'func' => 'pagelayer_sc_code',
1749 3203 'innerHTML' => 'text',
1750 3204 'html' => '<div class="pagelayer-text-holder">{{text}}</div>',
1751 3205 'params' => array(
1752 3206 'text' => array(
@@ -1751,10 +3205,11 @@
1751 3205 'params' => array(
1752 3206 'text' => array(
1753 3207 'type' => 'editor',
1754 3208 'label' => __pl('Edit Rich Text'),
1755 - 'default' => 'Lorem ipsum dolor sit amet',
1756 - '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'),
1757 3212 'edit' => '.pagelayer-text-holder', // Edit the text and also mirror the same
1758 3213 )
1759 3214 )
1760 3215 )
@@ -1772,14 +3227,13 @@
1772 3227 {{quote_content}}
1773 3228 <i if="{{double_indent}}" class="fa fa-quote-right"></i>
1774 3229 </div>
1775 3230 <div if="{{cite}}" class="pagelayer-quote-cite">
1776 - <a if-ext="{{cite_url}}" href="{{cite_url}}">
3231 + <a if-ext="{{cite_url}}" href="{{{cite_url}}}" class="pagelayer-link-sel">
1777 3232 <span class="pagelayer-cite-holder">{{cite}}</span>
1778 3233 </a>
1779 3234 </div>
1780 3235 </div>',
1781 - 'func' => 'pagelayer_sc_quote',
1782 3236 'params' => array(
1783 3237 'quote_content' => array(
1784 3238 'type' => 'textarea',
1785 3239 'label' => __pl('quotes_content_label'),
@@ -1797,12 +3251,17 @@
1797 3251 'label' => __pl('quotes_content_color_label'),
1798 3252 'default' => '#050505',
1799 3253 'css' => ['{{element}} .pagelayer-quote-content' => 'color:{{val}}'],
1800 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 + ),
1801 3261 'quote_content_typo' => array(
1802 3262 'type' => 'typography',
1803 3263 'label' => __pl('quote_content_typo'),
1804 - 'screen' => 1,
1805 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;'],
1806 3265 ),
1807 3266 ),
1808 3267 'qoute_styles' => [
@@ -1838,9 +3297,9 @@
1838 3297 'step' => 1,
1839 3298 'max' => 1000,
1840 3299 'default' => 70,
1841 3300 'screen' => 1,
1842 - 'css' => ['{{element}} i' => 'font-size: {{val}}px;'],
3301 + 'css' => ['{{element}} .fa' => 'font-size: {{val}}px;'],
1843 3302 'req' => array(
1844 3303 'quote_style' => ['quotation','double']
1845 3304 )
1846 3305 ),
@@ -1846,10 +3305,10 @@
1846 3305 ),
1847 3306 'quotation_color' => array(
1848 3307 'type' => 'color',
1849 3308 'label' => __pl('quotation_color_label'),
1850 - 'default' => '#dadadaff',
1851 - 'css' => ['{{element}} i' => 'color:{{val}}'],
3309 + 'default' => '#dadada',
3310 + 'css' => ['{{element}} .fa' => 'color:{{val}}'],
1852 3311 'req' => array(
1853 3312 'quote_style' => ['quotation','double']
1854 3313 )
1855 3314 ),
@@ -1917,8 +3376,9 @@
1917 3376 ),
1918 3377 'cite_url' => array(
1919 3378 'type' => 'link',
1920 3379 'label' => __pl('quotes_url_label'),
3380 + 'selector' => '.pagelayer-link-sel',
1921 3381 'desc' => __pl('quotes_url_desc'),
1922 3382 ),
1923 3383 'cite_text_color' => array(
1924 3384 'type' => 'color',
@@ -1925,13 +3385,24 @@
1925 3385 'label' => __pl('quotes_cite_color_label'),
1926 3386 'default' => '#3f3f3f',
1927 3387 'css' => ['{{element}} .pagelayer-quote-cite span' => 'color:{{val}}']
1928 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 + ),
1929 3401 'cite_typo' => array(
1930 3402 'type' => 'typography',
1931 3403 'label' => __pl('cite_typo'),
1932 3404 'default' => ',16,italic,,,,solid,,,,',
1933 - 'screen' => 1,
1934 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;'],
1935 3406 )
1936 3407 ],
1937 3408 'border_style' => [
@@ -1983,14 +3454,14 @@
1983 3454 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list_item', array(
1984 3455 'name' => __pl('list_item'),
1985 3456 'group' => 'text',
1986 3457 'not_visible' => 1,
1987 - 'func' => 'pagelayer_sc_list_item',
3458 + 'parent' => [PAGELAYER_SC_PREFIX.'_list'],
1988 3459 'innerHTML' => 'item',
1989 3460 'html' => '<li if="{{item}}" class="pagelayer-list-li">
1990 - <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}}}">
1991 3462 <span class="pagelayer-list-icon-holder">
1992 - <i if="{{show_icon}}" class="pagelayer-list-icon fa fa-{{icon}}"></i>
3463 + <i if="{{show_icon}}" class="pagelayer-list-icon {{icon}}"></i>
1993 3464 <span if="{{item}}" class="pagelayer-list-item">{{item}}</span>
1994 3465 </span>
1995 3466 </a>
1996 3467 </li>',
@@ -1998,13 +3469,14 @@
1998 3469 'item' => array(
1999 3470 'type' => 'text',
2000 3471 'label' => __pl('list_items_label'),
2001 3472 'default' => __pl('list_items_default'),
3473 + 'edit' => '.pagelayer-list-item',
2002 3474 ),
2003 3475 'item_url' => array(
2004 - 'type' => 'text',
3476 + 'type' => 'link',
2005 3477 'label' => __pl('list_item_url_label'),
2006 - 'default' => ''
3478 + 'selector' => '.pagelayer-list-url',
2007 3479 ),
2008 3480 'show_icon' => array(
2009 3481 'type' => 'checkbox',
2010 3482 'label' => __pl('list_show_icon'),
@@ -2012,9 +3484,9 @@
2012 3484 ),
2013 3485 'icon' => array(
2014 3486 'type' => 'icon',
2015 3487 'label' => __pl('list_icon_label'),
2016 - 'default' => 'star',
3488 + 'default' => 'fas fa-star',
2017 3489 'req' => array(
2018 3490 'show_icon' => 'true'
2019 3491 )
2020 3492 )
@@ -2025,9 +3497,8 @@
2025 3497 // List
2026 3498 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
2027 3499 'name' => __pl('list'),
2028 3500 'group' => 'text',
2029 - 'func' => 'pagelayer_sc_list',
2030 3501 'has_group' => [
2031 3502 'section' => 'params',
2032 3503 'prop' => 'elements'
2033 3504 ],
@@ -2074,10 +3545,9 @@
2074 3545 'step' => 1,
2075 3546 'max' => 100,
2076 3547 'default' => 10,
2077 3548 'screen' => 1,
2078 - 'css' => ['{{element}} .pagelayer-list-ul div:not(:last-child)' => 'padding-bottom: calc({{val}}px/2);',
2079 - '{{element}} .pagelayer-list-ul div:not(:first-child)' => 'margin-top: calc({{val}}px/2)'],
3549 + 'css' => ['{{element}} .pagelayer-list-icon-holder' => 'padding-bottom: calc({{val}}px/2); padding-top: calc({{val}}px/2);'],
2080 3550 ),
2081 3551 'side_spacing' => array(
2082 3552 'type' => 'slider',
2083 3553 'label' => __pl('list_side_spacing_label'),
@@ -2088,22 +3558,37 @@
2088 3558 'css' => ['{{element}} .pagelayer-list_item' => 'padding-left: {{val}}px; padding-right: {{val}}px;'],
2089 3559 ),
2090 3560 ),
2091 3561 'text_style' => [
3562 + 'list_text_state' => array(
3563 + 'type' => 'radio',
3564 + 'label' => __pl('state'),
3565 + 'default' => 'normal',
3566 + 'list' => [
3567 + 'normal' => __pl('normal'),
3568 + 'hover' => __pl('hover')
3569 + ],
3570 + ),
2092 3571 'list_color' => array(
2093 3572 'type' => 'color',
2094 3573 'label' => __pl('list_color_label'),
2095 - 'default' => '#555555',
2096 - 'css' => ['{{element}} li' => 'color:{{val}}'],
3574 + 'css' => ['{{element}} .pagelayer-list-item' => 'color:{{val}}'],
3575 + 'show' =>['list_text_state' => 'normal']
2097 3576 ),
3577 + 'list_bg' => array(
3578 + 'type' => 'color',
3579 + 'label' => __pl('bg_color'),
3580 + 'css' => ['{{element}} .pagelayer-list-ul > div' => 'background-color:{{val}}'],
3581 + 'show' =>['list_text_state' => 'normal']
3582 + ),
2098 3583 'list_typo' => array(
2099 3584 'type' => 'typography',
2100 3585 'label' => __pl('list_typo'),
2101 - 'screen' => 1,
2102 3586 'css' => [
2103 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;',
2104 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;'
2105 3589 ],
3590 + 'show' =>['list_text_state' => 'normal']
2106 3591 ),
2107 3592 'item_indent' => array(
2108 3593 'type' => 'slider',
2109 3594 'label' => __pl('list_item_indent_label'),
@@ -2112,16 +3597,57 @@
2112 3597 'max' => 100,
2113 3598 'default' => 10,
2114 3599 'screen' => 1,
2115 3600 'css' => ['{{element}} .pagelayer-list-item' => 'margin-left: {{val}}px;'],
3601 + 'show' =>['list_text_state' => 'normal']
2116 3602 ),
3603 + 'list_hover_delay' => array(
3604 + 'type' => 'spinner',
3605 + 'label' => __pl('delay'),
3606 + 'min' => 0,
3607 + 'step' => 100,
3608 + 'max' => 5000,
3609 + 'css' => ['{{element}} .pagelayer-list-item, {{element}} .pagelayer-list-ul > div' => 'transition: all {{val}}ms;'],
3610 + 'show' =>['list_text_state' => 'hover']
3611 + ),
3612 + 'list_color_hover' => array(
3613 + 'type' => 'color',
3614 + 'label' => __pl('list_color_label'),
3615 + 'css' => ['{{element}} .pagelayer-list-ul > div:hover .pagelayer-list-item' => 'color:{{val}}'],
3616 + 'show' =>['list_text_state' => 'hover']
3617 + ),
3618 + 'list_bg_hover' => array(
3619 + 'type' => 'color',
3620 + 'label' => __pl('bg_color'),
3621 + 'css' => ['{{element}} .pagelayer-list-ul > div:hover' => 'background-color:{{val}}'],
3622 + 'show' =>['list_text_state' => 'hover']
3623 + ),
3624 + 'list_typo_hover' => array(
3625 + 'type' => 'typography',
3626 + 'label' => __pl('list_typo'),
3627 + 'css' => [
3628 + '{{element}} .pagelayer-list-ul > div:hover li' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;',
3629 + '{{element}} .pagelayer-list-ul > div:hover li > a' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'
3630 + ],
3631 + 'show' =>['list_text_state' => 'hover']
3632 + ),
2117 3633 ],
2118 3634 'icon_style' => [
3635 + 'list_icon_state' => array(
3636 + 'type' => 'radio',
3637 + 'label' => __pl('state'),
3638 + 'default' => 'normal',
3639 + 'list' => [
3640 + 'normal' => __pl('normal'),
3641 + 'hover' => __pl('hover')
3642 + ],
3643 + ),
2119 3644 'icon_color' => array(
2120 3645 'type' => 'color',
2121 3646 'label' => __pl('list_icon_color_label'),
2122 - 'default' => '#3E8EF7',
2123 - 'css' => ['{{element}} i' => 'color:{{val}}'],
3647 + 'default' => '#0986c0',
3648 + 'css' => ['{{element}} .pagelayer-list-icon' => 'color:{{val}}'],
3649 + 'show' => ['list_icon_state' => 'normal'],
2124 3650 ),
2125 3651 'icon_size' => array(
2126 3652 'type' => 'slider',
2127 3653 'label' => __pl('list_icon_size_label'),
@@ -2128,10 +3654,36 @@
2128 3654 'min' => 0,
2129 3655 'step' => 1,
2130 3656 'max' => 150,
2131 3657 'screen' => 1,
2132 - 'css' => ['{{element}} i' => 'font-size: {{val}}px'],
3658 + 'css' => ['{{element}} .pagelayer-list-icon' => 'font-size: {{val}}px'],
3659 + 'show' => ['list_icon_state' => 'normal'],
2133 3660 ),
3661 + 'icon_hover_delay' => array(
3662 + 'type' => 'spinner',
3663 + 'label' => __pl('delay'),
3664 + 'min' => 0,
3665 + 'step' => 100,
3666 + 'max' => 5000,
3667 + 'css' => ['{{element}} .pagelayer-list-icon' => 'transition: all {{val}}ms;'],
3668 + 'show' =>['list_icon_state' => 'hover']
3669 + ),
3670 + 'icon_color_hover' => array(
3671 + 'type' => 'color',
3672 + 'label' => __pl('list_icon_color_label'),
3673 + 'css' => ['{{element}} .pagelayer-list-ul > div:hover .pagelayer-list-icon' => 'color:{{val}}'],
3674 + 'show' => ['list_icon_state' => 'hover'],
3675 + ),
3676 + 'icon_size_hover' => array(
3677 + 'type' => 'slider',
3678 + 'label' => __pl('list_icon_size_label'),
3679 + 'min' => 0,
3680 + 'step' => 1,
3681 + 'max' => 150,
3682 + 'screen' => 1,
3683 + 'css' => ['{{element}} .pagelayer-list-ul > div:hover .pagelayer-list-icon' => 'font-size: {{val}}px'],
3684 + 'show' => ['list_icon_state' => 'hover'],
3685 + ),
2134 3686 ],
2135 3687 'divider' => [
2136 3688 'icon_border_type' => array(
2137 3689 'type' => 'select',
@@ -2163,9 +3715,9 @@
2163 3715 'step' => 1,
2164 3716 'max' => 100,
2165 3717 'default' => 3,
2166 3718 'screen' => 1,
2167 - 'css' => ['{{element}} .pagelayer-list-ul > div' => 'border-bottom-width: {{val[0]}}px;'],
3719 + 'css' => ['{{element}} .pagelayer-list-ul > div' => 'border-bottom-width: {{val}}px;'],
2168 3720 'req' => [
2169 3721 '!icon_border_type' => ''
2170 3722 ]
2171 3723 ),
@@ -2181,12 +3733,11 @@
2181 3733 // Icon
2182 3734 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2183 3735 'name' => __pl('icon'),
2184 3736 'group' => 'text',
2185 - 'func' => 'pagelayer_sc_icon',
2186 3737 'html' => '<div class="pagelayer-icon-holder">
2187 - <a if-ext="{{link}}" class="pagelayer-ele-link" href="{{link}}">
2188 - <i class="fa fa-{{icon}} {{bg_shape}} {{icon_size}} pagelayer-animation-{{anim_hover}}"></i>
3738 + <a if-ext="{{link}}" class="pagelayer-ele-link" href="{{{link}}}">
3739 + <i class="{{icon}} {{bg_shape}} {{icon_size}} pagelayer-animation-{{anim_hover}}"></i>
2189 3740 </a>
2190 3741 </div>',
2191 3742 'params' => array(
2192 3743 'icon' => array(
@@ -2191,9 +3742,9 @@
2191 3742 'params' => array(
2192 3743 'icon' => array(
2193 3744 'type' => 'icon',
2194 3745 'label' => __pl('list_icon_label'),
2195 - 'default' => 'star',
3746 + 'default' => 'fas fa-star',
2196 3747 ),
2197 3748 'icon_background_size' => array(
2198 3749 'type' => 'spinner',
2199 3750 'label' => __pl('service_box_icon_background_size'),
@@ -2206,15 +3757,10 @@
2206 3757 ),
2207 3758 'link' => array(
2208 3759 'type' => 'link',
2209 3760 'label' => __pl('icon_link_field_label'),
2210 - 'default' => ''
3761 + 'selector' => '.pagelayer-ele-link'
2211 3762 ),
2212 - 'target' => array(
2213 - 'type' => 'checkbox',
2214 - 'label' => __pl('open_link_in_new_window'),
2215 - 'addAttr' => ['{{element}} a' => 'target="_blank"']
2216 - ),
2217 3763 'icon_alignment' => array(
2218 3764 'type' => 'radio',
2219 3765 'label' => __pl('alignment'),
2220 3766 'default' => 'center',
@@ -2241,9 +3787,9 @@
2241 3787 'type' => 'color',
2242 3788 'label' => __pl('service_box_icon_color_label'),
2243 3789 'css' => ['{{element}} i' => 'height: 1em; width: 1em; position: relative; color: {{val}};',
2244 3790 '{{element}} i:before' => 'position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);'],
2245 - 'default' => '#3e8ef7',
3791 + 'default' => '#0986c0',
2246 3792 'show' => array(
2247 3793 'icon_hover' => ''
2248 3794 ),
2249 3795 ),
@@ -2298,9 +3844,9 @@
2298 3844 'type' => 'spinner',
2299 3845 'label' => __pl('service_box_icon_rotate'),
2300 3846 'default' => 0,
2301 3847 'css' => ['{{element}} i' => 'transform: rotate({{val}}deg)'],
2302 - 'min' => 0,
3848 + 'min' => -360,
2303 3849 'max' => 360,
2304 3850 'step' => 1,
2305 3851 'screen' => 1,
2306 3852 'show' => array(
@@ -2306,8 +3852,22 @@
2306 3852 'show' => array(
2307 3853 'icon_hover' => ''
2308 3854 ),
2309 3855 ),
3856 + 'icon_bg_rotate' => array(
3857 + 'type' => 'spinner',
3858 + 'label' => __pl('rotate_icon'),
3859 + 'default' => 0,
3860 + 'css' => ['{{element}} i:before' => 'transform: translate(-50%, -50%) rotate({{val}}deg)'],
3861 + 'min' => -360,
3862 + 'max' => 360,
3863 + 'step' => 1,
3864 + 'screen' => 1,
3865 + 'show' => array(
3866 + 'icon_hover' => ''
3867 + ),
3868 + 'req' => [ '!bg_shape' => '']
3869 + ),
2310 3870 'bg_color' => array(
2311 3871 'type' => 'color',
2312 3872 'label' => __pl('service_box_icon_background_color_label'),
2313 3873 'default' => '#42414f',
@@ -2326,9 +3886,10 @@
2326 3886 'step' => 100,
2327 3887 'max' => 5000,
2328 3888 'default' => 400,
2329 3889 'screen' => 1,
2330 - 'css' => ['{{element}} i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
3890 + 'css' => ['{{element}} i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;',
3891 + '{{element}} i:hover:before' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
2331 3892 'show' => array(
2332 3893 'icon_hover' => 'hover'
2333 3894 ),
2334 3895 ),
@@ -2404,9 +3965,23 @@
2404 3965 'screen' => 1,
2405 3966 'show' => array(
2406 3967 'icon_hover' => 'hover'
2407 3968 ),
3969 + 'req' => [ '!bg_shape' => '']
2408 3970 ),
3971 + 'icon_bg_rotate_hover' => array(
3972 + 'type' => 'spinner',
3973 + 'label' => __pl('rotate_icon'),
3974 + 'default' => 0,
3975 + 'css' => ['{{element}} i:hover:before' => 'transform: translate(-50%, -50%) rotate({{val}}deg)'],
3976 + 'min' => 0,
3977 + 'max' => 360,
3978 + 'step' => 1,
3979 + 'screen' => 1,
3980 + 'show' => array(
3981 + 'icon_hover' => 'hover'
3982 + ),
3983 + ),
2409 3984 'bg_color_hover' => array(
2410 3985 'type' => 'color',
2411 3986 'label' => __pl('service_box_icon_background_color_label'),
2412 3987 'css' => ['{{element}} i:hover' => 'background-color: {{val}};'],
@@ -2461,9 +4036,9 @@
2461 4036 ),
2462 4037 'icon_border_color' => array(
2463 4038 'type' => 'color',
2464 4039 'label' => __pl('service_box_icon_border_color_label'),
2465 - 'default' => '#3e8ef7',
4040 + 'default' => '#0986c0',
2466 4041 'css' => ['{{element}} i' => 'border-color: {{val}};'],
2467 4042 'req' => array(
2468 4043 '!icon_border_type' => ''
2469 4044 ),
@@ -2514,9 +4089,9 @@
2514 4089 'icon_border_color_hover' => array(
2515 4090 'type' => 'color',
2516 4091 'label' => __pl('service_box_icon_border_color_label'),
2517 4092 'css' => ['{{element}} i:hover' => 'border-color: {{val}};'],
2518 - 'default' => '#3e8ef7',
4093 + 'default' => '#0986c0',
2519 4094 'req' => array(
2520 4095 '!icon_border_type_hover' => ''
2521 4096 ),
2522 4097 'show' => array(
@@ -2558,20 +4133,19 @@
2558 4133 // Badge
2559 4134 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_badge', array(
2560 4135 'name' => __pl('Badge'),
2561 4136 'group' => 'text',
2562 - 'func' => 'pagelayer_sc_badge',
2563 4137 'innerHTML' => 'title',
2564 4138 'html' => '<div class="pagelayer-badge-span">
2565 4139 <span if="{{text}}" class="pagelayer-badge-text">{{text}}</span>
2566 - <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}}}">
2567 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>
2568 4142 </a>
2569 4143 </div>
2570 - <a if-ext="{{badge_url}}" class="pagelayer-ele-link" href="{{badge_url}}">
2571 - <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}}">
2572 4146 <span if="{{text}}" class="pagelayer-badge-text">{{text}}</span>
2573 - <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>
2574 4148 </button>
2575 4149 </a>',
2576 4150 'params' => array(
2577 4151 'badge_text' => array(
@@ -2576,14 +4150,15 @@
2576 4150 'params' => array(
2577 4151 'badge_text' => array(
2578 4152 'type' => 'text',
2579 4153 'label' => __pl('badge_text'),
2580 - 'default' => 'Badge',
4154 + 'default' => 'Badge',
4155 + 'edit' => '.pagelayer-badge-title',
2581 4156 ),
2582 4157 'badge_url' => array(
2583 4158 'type' => 'link',
2584 4159 'label' => __pl('badge_url_label'),
2585 - 'default' => '',
4160 + 'selector' => '.pagelayer-ele-link',
2586 4161 ),
2587 4162 'badge_notification_type' => array(
2588 4163 'type' => 'select',
2589 4164 'label' => __pl('badge_notification_type'),
@@ -2599,8 +4174,46 @@
2599 4174 'dark' => __pl('Dark'),
2600 4175 'custom' => __pl('Custom'),
2601 4176 ],
2602 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 + ),
2603 4216 'badge_style_type' => array(
2604 4217 'type' => 'select',
2605 4218 'label' => __pl('badge_style'),
2606 4219 'default' => 'normal',
@@ -2628,20 +4241,36 @@
2628 4241 'text' => array(
2629 4242 'type' => 'text',
2630 4243 'label' => __pl('text'),
2631 4244 'default' => 'Your custom text',
4245 + 'edit' => '.pagelayer-badge-text',
2632 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 + ),
2633 4256 'text_color' => array(
2634 4257 'type' => 'color',
2635 4258 'label' => __pl('badge_text_color_label'),
2636 4259 'default' => '#000000',
2637 - 'css' => ['{{element}} .pagelayer-badge-text' => 'color:{{val}};'],
4260 + 'css' => ['{{element}} .pagelayer-badge-text' => 'color:{{val}};'],
4261 + 'show' => ['text_state' => '']
2638 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 + ),
2639 4269 'text_style' => array(
2640 4270 'type' => 'typography',
2641 4271 'label' => __pl('text_size'),
2642 4272 'default' => ',25,,400,,,,,,,',
2643 - 'screen' => 1,
2644 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;'],
2645 4274 ),
2646 4275 ],
2647 4276 'badge_style' => [
@@ -2663,9 +4292,9 @@
2663 4292 ),
2664 4293 'badge_background_color' => array(
2665 4294 'type' => 'color',
2666 4295 'label' => __pl('badge_text_background_label'),
2667 - 'default' => '#4982eeff',
4296 + 'default' => '#4982ee',
2668 4297 'css' => ['{{element}} .pagelayer-badge-custom' => 'background-color:{{val}};'],
2669 4298 'req' => ['badge_notification_type' => 'custom'],
2670 4299 ),
2671 4300 'badge_vspacing' => array(
@@ -2735,9 +4364,9 @@
2735 4364 ),
2736 4365 'badge_btn_background_color' => array(
2737 4366 'type' => 'color',
2738 4367 'label' => __pl('badge_btn_background_label'),
2739 - 'default' => '#4982eeff',
4368 + 'default' => '#4982ee',
2740 4369 'css' => ['{{element}} .pagelayer-badge-btn' => 'background-color:{{val}};'],
2741 4370 'req' => [
2742 4371 'badge_btn_type' => 'custom',
2743 4372 'badge_button' => 'true',
@@ -2746,9 +4375,9 @@
2746 4375 ),
2747 4376 'badge_btn_background_color_hover' => array(
2748 4377 'type' => 'color',
2749 4378 'label' => __pl('badge_btn_background_label'),
2750 - 'default' => '#4982eeff',
4379 + 'default' => '#4982ee',
2751 4380 'css' => ['{{element}} .pagelayer-badge-btn:hover' => 'background-color:{{val}};'],
2752 4381 'show' => ['badge_btn_hover' => 'hover'],
2753 4382 ),
2754 4383 ],
@@ -2763,15 +4392,14 @@
2763 4392 // Tooltip
2764 4393 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tooltip', array(
2765 4394 'name' => __pl('Tooltip'),
2766 4395 'group' => 'text',
2767 - 'func' => 'pagelayer_sc_tooltip',
2768 4396 'innerHTML' => 'tooltip_text',
2769 4397 'html' => '<div class="pagelayer-tooltip-container">
2770 - <span if="{{tooltip_icon}}" class="pagelayer-tooltip-icon"><i class="fa fa-{{tooltip_icon}}"></i></span>
4398 + <span if="{{tooltip_icon}}" class="pagelayer-tooltip-icon"><i class="{{tooltip_icon}}"></i></span>
2771 4399 <span if="{{text}}" class="pagelayer-tooltip-title">{{text}}</span>
2772 4400 <div if="{{tooltip_text}}" class="pagelayer-tooltip-text pagelayer-tooltip-{{tooltip_position}}">
2773 - <span>{{tooltip_text}}</span>
4401 + {{tooltip_text}}
2774 4402 </div>
2775 4403 </div>',
2776 4404 'params' => array(
2777 4405 'text' => array(
@@ -2783,9 +4411,9 @@
2783 4411 'tooltip_text' => array(
2784 4412 'type' => 'editor',
2785 4413 'label' => __pl('tooltip_text'),
2786 4414 'default' => 'Hey there, I have an amazing tooltip !',
2787 - 'edit' => '.pagelayer-tooltip',
4415 + 'edit' => '.pagelayer-tooltip-text',
2788 4416 ),
2789 4417 ),
2790 4418 'text_style' => [
2791 4419 'tooltip_align' => array(
@@ -2808,17 +4436,16 @@
2808 4436 'text_size' => array(
2809 4437 'type' => 'typography',
2810 4438 'label' => __pl('tooltip_title_size'),
2811 4439 'default' => ',25,,400,,,,,,,',
2812 - 'screen' => 1,
2813 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;',
2814 - '{{element}} .pagelayer-tooltip-icon .fa' => 'font-size: {{val[1]}}px !important;'],
4441 + '{{element}} .pagelayer-tooltip-icon i' => 'font-size: {{val[1]}}px !important;'],
2815 4442 ),
2816 4443 'tooltip_text_shadow' => array(
2817 4444 'type' => 'shadow',
2818 4445 'label' => __pl('tooltip_text_shadow'),
2819 4446 'css' => ['{{element}} .pagelayer-tooltip-title' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};',
2820 - '{{element}} .pagelayer-tooltip-icon .fa' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
4447 + '{{element}} .pagelayer-tooltip-icon i' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
2821 4448 ),
2822 4449 ],
2823 4450 'tooltip_style' => [
2824 4451 'tooltip_position' => array(
@@ -2870,15 +4497,14 @@
2870 4497 'tooltip_text_size' => array(
2871 4498 'type' => 'typography',
2872 4499 'label' => __pl('tooltip_text_size'),
2873 4500 'default' => ',18,,400,,,,,,,',
2874 - 'screen' => 1,
2875 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;'],
2876 4502 ),
2877 4503 'tooltip_shadow' => array(
2878 - 'type' => 'shadow',
4504 + 'type' => 'box_shadow',
2879 4505 'label' => __pl('tooltip_shadow'),
2880 - '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]}};'],
2881 4507 ),
2882 4508 ],
2883 4509 'icon_style' => [
2884 4510 'show_icon' => array(
@@ -2887,9 +4513,9 @@
2887 4513 ),
2888 4514 'tooltip_icon' => array(
2889 4515 'type' => 'icon',
2890 4516 'label' => __pl('tooltip_icon'),
2891 - 'default' => 'exclamation-circle',
4517 + 'default' => 'fas fa-exclamation-circle',
2892 4518 'req' => array(
2893 4519 'show_icon' => 'true',
2894 4520 )
2895 4521 ),
@@ -2895,9 +4521,9 @@
2895 4521 ),
2896 4522 'icon_color' => array(
2897 4523 'type' => 'color',
2898 4524 'label' => __pl('tooltip_icon_color'),
2899 - 'default' => '#3E8EF7',
4525 + 'default' => '#0986c0',
2900 4526 'css' => ['{{element}} .pagelayer-tooltip-icon' => 'color:{{val}};'],
2901 4527 'req' => array(
2902 4528 'show_icon' => 'true',
2903 4529 )
@@ -2944,16 +4570,15 @@
2944 4570 // Image
2945 4571 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image', array(
2946 4572 'name' => __pl('image'),
2947 4573 'group' => 'image',
2948 - 'func' => 'pagelayer_sc_image',
2949 4574 'innerHTML' => 'text',
2950 - 'html' => '<div class="pagelayer-image-holder">
4575 + 'html' => '<div class="pagelayer-image-holder pagelayer-anim-par">
2951 4576 <a if-ext="{{link_type}}" class="pagelayer-ele-link" href="{{func_link}}" pagelayer-image-link-type="{{link_type}}">
2952 - <img class="pagelayer-img" src="{{func_id}}" title="{{{id-title}}}" alt="{{{id-alt}}}" />
4577 + <img class="pagelayer-img pagelayer-animation-{{anim_hover}}" src="{{func_id}}" title="{{{id-title}}}" alt="{{{id-alt}}}" srcset="{{pagelayer-srcset}}" />
2953 4578 <div if="{{overlay}}" class="pagelayer-image-overlay {{content_position}}">
2954 4579 <div class="pagelayer-image-overlay-content">
2955 - <i if="{{icon}}" class="pagelayer-image-overlay-icon fa fa-{{icon}}"></i>
4580 + <i if="{{icon}}" class="pagelayer-image-overlay-icon {{icon}}"></i>
2956 4581 <div if="{{text}}" class="pagelayer-image-overlay-text">{{text}}</div>
2957 4582 </div>
2958 4583 </div>
2959 4584 </a>
@@ -2964,8 +4589,9 @@
2964 4589 'label' => __pl('image_src_label'),
2965 4590 'desc' => __pl('image_src_desc'),
2966 4591 'type' => 'image',
2967 4592 'default' => PAGELAYER_URL.'/images/default-image.png',
4593 + 'retina' => 1,
2968 4594 ),
2969 4595 'id-size' => array(
2970 4596 'label' => __pl('obj_image_size_label'),
2971 4597 'type' => 'select',
@@ -2980,8 +4606,9 @@
2980 4606 ),
2981 4607 'custom_size' => array(
2982 4608 'label' => __pl('image_custom_size_label'),
2983 4609 'type' => 'text',
4610 + 'screen' => 1,
2984 4611 'default' => '100x100',
2985 4612 'sep' => 'x',
2986 4613 'css' => ['{{element}} img' => 'width: {{val[0]}}px; height: {{val[1]}}px;'],
2987 4614 'req' => array(
@@ -2991,9 +4618,9 @@
2991 4618 'align' => array(
2992 4619 'label' => __pl('obj_align_label'),
2993 4620 'type' => 'radio',
2994 4621 'default' => 'center',
2995 - 'addAttr' => 'align="{{align}}"',
4622 + 'screen' => 1,
2996 4623 'css' => ['{{element}} .pagelayer-image-holder' => 'text-align: {{val}}', '{{element}} .pagelayer-image-holder .pagelayer-image-overlay-content' => 'text-align: {{val}}'],
2997 4624 'list' => array(
2998 4625 'left' => __pl('left'),
2999 4626 'center' => __pl('center'),
@@ -3007,26 +4634,119 @@
3007 4634 'max' => 100,
3008 4635 'screen' => 1,
3009 4636 'css' => ['{{element}} img' => 'max-width: {{val}}%'],
3010 4637 ),
4638 + 'img_hover' => array(
4639 + 'type' => 'radio',
4640 + 'label' => __pl('state'),
4641 + 'default' => 'normal',
4642 + 'list' => array(
4643 + 'normal' => __pl('normal'),
4644 + 'hover' => __pl('hover'),
4645 + ),
4646 + ),
3011 4647 'img_filter' => array(
3012 4648 'type' => 'filter',
3013 4649 'label' => __pl('filter'),
3014 - 'default' => '0,100,100,0,0,100,100',
4650 + //'default' => '0,100,100,0,0,100,100',
3015 4651 'css' => ['{{element}} img' => 'filter: blur({{val[0]}}px) brightness({{val[1]}}%) contrast({{val[2]}}%) grayscale({{val[3]}}%) hue-rotate({{val[4]}}deg) opacity({{val[5]}}%) saturate({{val[6]}}%)'],
4652 + 'show' => ['img_hover' => 'normal']
3016 4653 ),
3017 4654 'img_shadow' => array(
3018 - 'type' => 'shadow',
4655 + 'type' => 'box_shadow',
3019 4656 'label' => __pl('shadow'),
3020 4657 'screen' => 1,
3021 - '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;'],
4659 + 'show' => ['img_hover' => 'normal']
3022 4660 ),
4661 + 'img_rotate' => array(
4662 + 'type' => 'spinner',
4663 + 'label' => __pl('Rotate'),
4664 + 'min' => 0,
4665 + 'max' => 360,
4666 + 'step' => 1,
4667 + 'screen' => 1,
4668 + 'css' => ['{{element}} img' => 'transform: rotate({{val}}deg)'],
4669 + 'show' => ['img_hover' => 'normal'],
4670 + 'pro' => 1
4671 + ),
4672 + 'img_hover_delay' => array(
4673 + 'type' => 'spinner',
4674 + 'label' => __pl('btn_hover_delay_label'),
4675 + 'desc' => __pl('btn_hover_delay_desc'),
4676 + 'min' => 0,
4677 + 'step' => 100,
4678 + 'max' => 5000,
4679 + 'default' => 400,
4680 + 'css' => ['{{element}} .pagelayer-img' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;',],
4681 + 'show' => ['img_hover' => 'hover']
4682 + ),
4683 + 'img_filter_hover' => array(
4684 + 'type' => 'filter',
4685 + 'label' => __pl('filter'),
4686 + //'default' => '0,100,100,0,0,100,100',
4687 + 'css' => ['{{element}} img:hover' => 'filter: blur({{val[0]}}px) brightness({{val[1]}}%) contrast({{val[2]}}%) grayscale({{val[3]}}%) hue-rotate({{val[4]}}deg) opacity({{val[5]}}%) saturate({{val[6]}}%)'],
4688 + 'show' => ['img_hover' => 'hover']
4689 + ),
4690 + 'img_shadow_hover' => array(
4691 + 'type' => 'box_shadow',
4692 + 'label' => __pl('shadow'),
4693 + 'screen' => 1,
4694 + 'css' => ['{{element}} img:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'],
4695 + 'show' => ['img_hover' => 'hover']
4696 + ),
4697 + 'img_rotate_hover' => array(
4698 + 'type' => 'spinner',
4699 + 'label' => __pl('Rotate'),
4700 + 'min' => 0,
4701 + 'max' => 360,
4702 + 'step' => 1,
4703 + 'screen' => 1,
4704 + 'css' => ['{{element}} img:hover' => 'transform: rotate({{val}}deg)'],
4705 + 'show' => ['img_hover' => 'hover'],
4706 + 'pro' => 1
4707 + ),
4708 + 'anim_hover' => array(
4709 + 'type' => 'select',
4710 + 'label' => __pl('icon_animation'),
4711 + 'list' => [
4712 + '' => __pl('none'),
4713 + 'grow' => __pl('Grow'),
4714 + 'shrink' => __pl('Shrink'),
4715 + 'pulse' => __pl('Pulse'),
4716 + 'pulse-grow' => __pl('Pulse Grow'),
4717 + 'pulse-shrink' => __pl('Pulse Shrink'),
4718 + 'push' => __pl('Push'),
4719 + 'pop' => __pl('Pop'),
4720 + 'buzz' => __pl('Buzz'),
4721 + 'buzz-out' => __pl('Buzz Out'),
4722 + 'float' => __pl('Float'),
4723 + 'sink' => __pl('Sink'),
4724 + 'bob' => __pl('Bob'),
4725 + 'hang' => __pl('Hang'),
4726 + 'bounce-in' => __pl('Bounce In'),
4727 + 'bounce-out' => __pl('Bounce Out'),
4728 + 'rotate' => __pl('Rotate'),
4729 + 'grow-rotate' => __pl('Grow Rotate'),
4730 + 'skew-forward' => __pl('Skew Forward'),
4731 + 'skew-backward' => __pl('Skew Backward'),
4732 + 'wobble-vertical' => __pl('Wobble Vertical'),
4733 + 'wobble-horizontal' => __pl('Wobble Horizontal'),
4734 + 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
4735 + 'wobble-top-to-right' => __pl('Wobble Top To Right'),
4736 + 'wobble-top' => __pl('Wobble Top'),
4737 + 'wobble-bottom' => __pl('Wobble Bottom'),
4738 + 'wobble-skew' => __pl('Wobble Skew'),
4739 + ],
4740 + 'show' => ['img_hover' => 'hover'],
4741 + 'pro' => 1
4742 + ),
3023 4743 ),
3024 4744 // Image related Styles
3025 4745 'link_settings' => [
3026 4746 'link_type' => array(
4747 + 'type' => 'select',
3027 4748 'label' => __pl('image_link_label'),
3028 - 'type' => 'select',
3029 4749 'default' => '',
3030 4750 'list' => array(
3031 4751 '' => __pl('none'),
3032 4752 'custom_url' => __pl('custom_url'),
@@ -3034,18 +4754,19 @@
3034 4754 'lightbox' => __pl('lightbox')
3035 4755 )
3036 4756 ),
3037 4757 'link' => array(
4758 + 'type' => 'link',
3038 4759 'label' => __pl('image_link_label'),
3039 4760 'desc' => __pl('image_link_desc'),
3040 - 'type' => 'link',
4761 + 'selector' => '.pagelayer-ele-link',
3041 4762 'req' => array(
3042 4763 'link_type' => 'custom_url'
3043 4764 )
3044 4765 ),
3045 4766 'rel' => array(
4767 + 'type' => 'text',
3046 4768 'label' => __pl('image_rel_label'),
3047 - 'type' => 'text',
3048 4769 'default' => '',
3049 4770 'addAttr' => ['{{element}} a' => 'rel="{{rel}}"'],
3050 4771 'req' => array(
3051 4772 'link_type' => 'media_file'
@@ -3056,9 +4777,10 @@
3056 4777 'type' => 'checkbox',
3057 4778 'addAttr' => ['{{element}} a' => 'target="_blank"'],
3058 4779 'req' => array(
3059 4780 'link_type' => ['custom_url', 'media_file']
3060 - )
4781 + ),
4782 + 'show' => ['link_type' => 'media_file']
3061 4783 ),
3062 4784 ],
3063 4785 // Caption related Styles
3064 4786 'caption_style' => [
@@ -3070,10 +4792,15 @@
3070 4792 ),
3071 4793 'caption_color' => array(
3072 4794 'label' => __pl('Caption Color'),
3073 4795 'type' => 'color',
3074 - 'default' => '#3E8EF7',
4796 + 'default' => '#0986c0',
3075 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;'],
3076 4803 )
3077 4804 ],
3078 4805 'overlay_style' => [
3079 4806 'overlay' => array(
@@ -3083,9 +4810,9 @@
3083 4810 ),
3084 4811 'icon' => array(
3085 4812 'label' => __pl('icon'),
3086 4813 'type' => 'icon',
3087 - 'default' => 'star',
4814 + 'default' => 'fas fa-star',
3088 4815 'req' => array(
3089 4816 'overlay' => 'true'
3090 4817 )
3091 4818 ),
@@ -3115,13 +4842,25 @@
3115 4842 'text' => array(
3116 4843 'label' => __pl('content'),
3117 4844 'type' => 'editor',
3118 4845 'default' => '<p>Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s.</p>',
3119 - 'text' => __pl('open_in_pleditor'),
4846 + 'edit' => '.pagelayer-image-overlay-text',
3120 4847 'req' => array(
3121 4848 'overlay' => 'true'
3122 4849 )
3123 - ),
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 + ),
3124 4863 'overlay_bg' => array(
3125 4864 'label' => __pl('image_overlay_background'),
3126 4865 'type' => 'color',
3127 4866 'default' => 'rgba(0,0,0,.6)',
@@ -3126,11 +4865,21 @@
3126 4865 'type' => 'color',
3127 4866 'default' => 'rgba(0,0,0,.6)',
3128 4867 'css' => ['{{element}} .pagelayer-image-overlay' => 'background: {{val}}'],
3129 4868 'req' => array(
3130 - 'overlay' => 'true'
4869 + 'overlay' => 'true',
4870 + '!overlay_bg_type' => 'gradient'
3131 4871 )
3132 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 + ],
3133 4882 'content_position' => array(
3134 4883 'label' => __pl('Overlay Content Position'),
3135 4884 'type' => 'radio',
3136 4885 'default' => 'center',
@@ -3157,9 +4906,9 @@
3157 4906 ],
3158 4907 'styles' => [
3159 4908 'link_settings' => __pl('link_settings'),
3160 4909 'caption_style' => __pl('caption_style'),
3161 - 'overlay_style' => __pl('overlay_style'),
4910 + 'overlay_style' => __pl('overlay_style')
3162 4911 ],
3163 4912 )
3164 4913 );
3165 4914
@@ -3166,12 +4915,12 @@
3166 4915 // Image Slider
3167 4916 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_slider', array(
3168 4917 'name' => __pl('Image Slider'),
3169 4918 'group' => 'image',
4919 + 'prevent_inside' => ['pl_slides'],
3170 4920 'html' => '<div class="pagelayer-image-slider-div">
3171 4921 <ul class="pagelayer-image-slider-ul pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme">{{ul}}</ul>
3172 4922 </div>',
3173 - 'func' => 'pagelayer_sc_image_slider',
3174 4923 'settings' => [
3175 4924 'params' => __pl('Image Slider'),
3176 4925 'slider_options' => __pl('slider_options'),
3177 4926 ],
@@ -3179,9 +4928,8 @@
3179 4928 'ids' => array(
3180 4929 'type' => 'multi_image',
3181 4930 'label' => __pl('image_slider_ids_label'),
3182 4931 'desc' => __pl('media_library_images_ids_desc'),
3183 - 'text' => __pl('image_slider_ids_text'),
3184 4932 ),
3185 4933 'size' => array(
3186 4934 'type' => 'select',
3187 4935 'label' => __pl('obj_image_size_label'),
@@ -3213,11 +4961,12 @@
3213 4961 'media_file' => __pl('media_file'),
3214 4962 )
3215 4963 ),
3216 4964 'link' => array(
4965 + 'type' => 'link',
3217 4966 'label' => __pl('image_link_url'),
3218 4967 'desc' => __pl('image_link_desc'),
3219 - 'type' => 'link',
4968 + 'selector' => '.pagelayer-link-sel',
3220 4969 'req' => array(
3221 4970 'link_type' => 'custom_url'
3222 4971 )
3223 4972 ),
@@ -3226,10 +4975,18 @@
3226 4975 'type' => 'checkbox',
3227 4976 'addAttr' => ['{{element}} a' => 'target="_blank"'],
3228 4977 'req' => array(
3229 4978 'link_type' => ['custom_url', 'media_file']
3230 - )
4979 + ),
4980 + 'show' => ['link_type' => 'media_file'] // Backward compatibility of link props
3231 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 + ),
3232 4989 ),
3233 4990 'slider_options' => [
3234 4991 'slide_items' => array(
3235 4992 'type' => 'spinner',
@@ -3324,18 +5081,17 @@
3324 5081 // Grid Gallery
3325 5082 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_grid_gallery', array(
3326 5083 'name' => __pl('Grid Gallery'),
3327 5084 'group' => 'image',
3328 - 'func' => 'pagelayer_sc_grid_gallery',
3329 5085 'html' => '<div class="pagelayer-grid-gallery-container">
3330 - {{ul}}
3331 - </div>',
5086 + {{ul}}
5087 + </div>
5088 + {{pagin}}',
3332 5089 'params' => array(
3333 5090 'ids' => array(
3334 5091 'type' => 'multi_image',
3335 5092 'label' => __pl('grid_gallery_images'),
3336 5093 'desc' => __pl('media_library_images_ids_desc'),
3337 - 'text' => __pl('image_slider_ids_text'),
3338 5094 ),
3339 5095 'columns' => array(
3340 5096 'type' => 'select',
3341 5097 'label' => __pl('columns_count'),
@@ -3388,9 +5144,9 @@
3388 5144 )
3389 5145 ),
3390 5146 'custom_size' => array(
3391 5147 'type' => 'dimension',
3392 - 'desc' => __pl('image_custom_size_label'),
5148 + 'label' => __pl('image_custom_size_label'),
3393 5149 'req' => array(
3394 5150 'size' => 'custom'
3395 5151 ),
3396 5152 'screen' => 1,
@@ -3439,8 +5195,11 @@
3439 5195 'list' => array(
3440 5196 'left' => __pl('left'),
3441 5197 'center' => __pl('center'),
3442 5198 'right' => __pl('right')
5199 + ),
5200 + 'req' => array(
5201 + 'caption' => 'true'
3443 5202 )
3444 5203 ),
3445 5204 'caption_color' => array(
3446 5205 'label' => __pl('Caption Color'),
@@ -3449,8 +5208,17 @@
3449 5208 'css' => ['{{element}} .pagelayer-grid-gallery-caption' => 'color: {{val}}'],
3450 5209 'req' => array(
3451 5210 'caption' => 'true'
3452 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
3453 5221 )
3454 5222 )
3455 5223 )
3456 5224 );
@@ -3464,31 +5232,28 @@
3464 5232 // Button
3465 5233 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
3466 5234 'name' => __pl('button'),
3467 5235 'group' => 'button',
3468 - 'func' => 'pagelayer_sc_btn',
3469 5236 'html' => '<a class="pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{icon_position}}">
3470 - <i if="{{icon}}" class="fa fa-{{icon}} pagelayer-btn-icon"></i>
5237 + <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
3471 5238 <span if="{{text}}" class="pagelayer-btn-text">{{text}}</span>
3472 - <i if="{{icon}}" class="fa fa-{{icon}} pagelayer-btn-icon"></i>
5239 + <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
3473 5240 </a>',
3474 5241 'params' => array(
3475 5242 'text' => array(
3476 5243 'type' => 'text',
3477 5244 'label' => __pl('button_text_label'),
3478 - 'default' => __pl('button_name')
5245 + 'default' => __pl('button_name'),
5246 + 'edit' => '.pagelayer-btn-text',
3479 5247 ),
3480 5248 'link' => array(
3481 5249 'type' => 'link',
3482 5250 'label' => __pl('button_link_label'),
3483 5251 'desc' => __pl('button_link_desc'),
3484 - 'addAttr' => ['{{element}} .pagelayer-btn-holder' => 'href="{{link}}"']
5252 + 'selector' => '.pagelayer-btn-holder',
5253 + 'addAttr' => ['{{element}} .pagelayer-btn-holder' => 'href="{{{link}}}"'],
5254 + 'req' => ['ele_scrollto' => '']
3485 5255 ),
3486 - 'target' => array(
3487 - 'type' => 'checkbox',
3488 - 'label' => __pl('open_link_in_new_window'),
3489 - 'addAttr' => ['{{element}} a' => 'target="_blank"']
3490 - ),
3491 5256 'full_width' => array(
3492 5257 'type' => 'checkbox',
3493 5258 'label' => __pl('stretch'),
3494 5259 'screen' => 1,
@@ -3496,9 +5261,8 @@
3496 5261 ),
3497 5262 'btn_typo' => array(
3498 5263 'type' => 'typography',
3499 5264 'label' => __pl('quote_content_typo'),
3500 - 'screen' => 1,
3501 5265 'css' => [
3502 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;',
3503 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;',
3504 5268 ],
@@ -3532,8 +5296,11 @@
3532 5296 'list' => array(
3533 5297 'pagelayer-btn-icon-left' => __pl('left'),
3534 5298 'pagelayer-btn-icon-right' => __pl('right')
3535 5299 ),
5300 + 'req' => array(
5301 + '!icon' => ''
5302 + ),
3536 5303 ),
3537 5304 'icon_spacing' => array(
3538 5305 'type' => 'slider',
3539 5306 'label' => __pl('icon_spacing'),
@@ -3543,9 +5310,9 @@
3543 5310 'default' => 5,
3544 5311 'screen' => 1,
3545 5312 'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'],
3546 5313 'req' => array(
3547 - '!icon' => 'none'
5314 + '!icon' => ''
3548 5315 ),
3549 5316 ),
3550 5317 ],
3551 5318 'btn_style' => [
@@ -3564,11 +5331,40 @@
3564 5331 'pagelayer-btn-danger' => __pl('btn_type_danger'),
3565 5332 'pagelayer-btn-dark' => __pl('btn_type_dark'),
3566 5333 'pagelayer-btn-light' => __pl('btn_type_light'),
3567 5334 'pagelayer-btn-link' => __pl('btn_type_link'),
5335 + 'pagelayer-btn-anim' => __pl('btn_type_anim'),
3568 5336 'pagelayer-btn-custom' => __pl('btn_type_custom')
3569 5337 ),
3570 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 + ),
3571 5367 'size' => array(
3572 5368 'type' => 'select',
3573 5369 'label' => __pl('button_size_label'),
3574 5370 'default' => 'pagelayer-btn-large',
@@ -3590,9 +5386,9 @@
3590 5386 'default' => 5,
3591 5387 'screen' => 1,
3592 5388 'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: calc({{val}}px / 2) {{val}}px;'],
3593 5389 'req' => array(
3594 - 'size' => 'pagelayer-btn-custom'
5390 + 'size' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
3595 5391 ),
3596 5392 ),
3597 5393 'btn_hover' => array(
3598 5394 'type' => 'radio',
@@ -3603,18 +5399,23 @@
3603 5399 '' => __pl('normal'),
3604 5400 'hover' => __pl('hover'),
3605 5401 ),
3606 5402 'req' => array(
3607 - 'type' => 'pagelayer-btn-custom',
5403 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
3608 5404 ),
3609 5405 ),
3610 5406 'btn_bg_color' => array(
3611 5407 'type' => 'color',
3612 5408 'label' => __pl('btn_bg_color_label'),
3613 - 'default' => '#3e8ef7',
3614 - '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 + ],
3615 5416 'req' => array(
3616 - 'type' => 'pagelayer-btn-custom',
5417 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
3617 5418 ),
3618 5419 'show' => array(
3619 5420 'btn_hover' => ''
3620 5421 ),
@@ -3624,9 +5425,9 @@
3624 5425 'label' => __pl('btn_color_label'),
3625 5426 'default' => '#ffffff',
3626 5427 'css' => ['{{element}} .pagelayer-btn-holder' => 'color: {{val}};'],
3627 5428 'req' => array(
3628 - 'type' => 'pagelayer-btn-custom',
5429 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
3629 5430 ),
3630 5431 'show' => array(
3631 5432 'btn_hover' => ''
3632 5433 ),
@@ -3640,8 +5441,9 @@
3640 5441 'max' => 5000,
3641 5442 'default' => 400,
3642 5443 'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
3643 5444 'show' => array(
5445 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
3644 5446 'btn_hover' => 'hover'
3645 5447 ),
3646 5448 ),
3647 5449 'btn_bg_color_hover' => array(
@@ -3647,14 +5449,18 @@
3647 5449 'btn_bg_color_hover' => array(
3648 5450 'type' => 'color',
3649 5451 'label' => __pl('btn_bg_color_hover_label'),
3650 5452 'default' => '',
3651 - '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 + ],
3652 5456 'req' => array(
3653 - 'type' => 'pagelayer-btn-custom',
5457 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
5458 + '!anim_type' => ['glow','thin'],
3654 5459 ),
3655 5460 'show' => array(
3656 - 'btn_hover' => 'hover'
5461 + 'btn_hover' => 'hover',
5462 + '!anim_type' => ['glow','thin'],
3657 5463 ),
3658 5464 ),
3659 5465 'btn_color_hover' => array(
3660 5466 'type' => 'color',
@@ -3661,14 +5467,24 @@
3661 5467 'label' => __pl('btn_color_hover_label'),
3662 5468 'default' => '',
3663 5469 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'color: {{val}};'],
3664 5470 'req' => array(
3665 - 'type' => 'pagelayer-btn-custom',
5471 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
3666 5472 ),
3667 5473 'show' => array(
3668 5474 'btn_hover' => 'hover'
3669 5475 ),
3670 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 + ],
3671 5487 ],
3672 5488 'border_style' => [
3673 5489 'btn_bor_hover' => array(
3674 5490 'type' => 'radio',
@@ -3682,9 +5498,12 @@
3682 5498 ),
3683 5499 'btn_border_type' => array(
3684 5500 'type' => 'select',
3685 5501 'label' => __pl('border_type'),
3686 - '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 + ],
3687 5506 'list' => [
3688 5507 '' => __pl('none'),
3689 5508 'solid' => __pl('solid'),
3690 5509 'double' => __pl('double'),
@@ -3711,9 +5530,9 @@
3711 5530 'btn_border_width' => array(
3712 5531 'type' => 'padding',
3713 5532 'label' => __pl('border_width'),
3714 5533 'screen' => 1,
3715 - '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'],
3716 5535 'req' => [
3717 5536 '!btn_border_type' => ''
3718 5537 ],
3719 5538 'show' => array(
@@ -3723,20 +5542,25 @@
3723 5542 'btn_border_radius' => array(
3724 5543 'type' => 'padding',
3725 5544 'label' => __pl('border_radius'),
3726 5545 'screen' => 1,
3727 - '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;'],
3728 5547 'req' => array(
3729 - '!btn_border_type' => ''
5548 + '!btn_border_type' => '',
5549 + '!anim_type' => 'slide'
3730 5550 ),
3731 5551 'show' => array(
3732 - 'btn_bor_hover' => ''
5552 + 'btn_bor_hover' => '',
5553 + '!anim_type' => 'slide'
3733 5554 ),
3734 5555 ),
3735 5556 'btn_border_type_hover' => array(
3736 5557 'type' => 'select',
3737 5558 'label' => __pl('border_type'),
3738 - '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 + ],
3739 5563 'list' => [
3740 5564 '' => __pl('none'),
3741 5565 'solid' => __pl('solid'),
3742 5566 'double' => __pl('double'),
@@ -3763,9 +5587,11 @@
3763 5587 'btn_border_width_hover' => array(
3764 5588 'type' => 'padding',
3765 5589 'label' => __pl('border_width_hover'),
3766 5590 'screen' => 1,
3767 - '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 + ],
3768 5594 'req' => [
3769 5595 '!btn_border_type_hover' => ''
3770 5596 ],
3771 5597 'show' => array(
@@ -3775,35 +5601,85 @@
3775 5601 'btn_border_radius_hover' => array(
3776 5602 'type' => 'padding',
3777 5603 'label' => __pl('border_radius_hover'),
3778 5604 'screen' => 1,
3779 - '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;'],
3780 5606 'req' => array(
3781 - '!btn_border_type_hover' => ''
5607 + '!btn_border_type_hover' => '',
5608 + '!anim_type' => 'slide'
3782 5609 ),
3783 5610 'show' => array(
3784 - 'btn_bor_hover' => 'hover'
5611 + 'btn_bor_hover' => 'hover',
5612 + '!anim_type' => 'slide'
3785 5613 ),
3786 5614 ),
3787 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 + ],
3788 5664 'styles' => [
3789 5665 'btn_style' => __pl('btn_style'),
3790 5666 'icon_style' => __pl('icon'),
3791 5667 'border_style' => __pl('border_style'),
5668 + 'scroll_to_element' => __pl('scroll_to_element'),
3792 5669 ]
3793 5670 )
3794 5671 );
3795 5672
3796 -
3797 5673 // Social Profile Item
3798 5674 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social', array(
3799 5675 'name' => __pl('Social Profile'),
3800 5676 'group' => 'button',
3801 - 'func' => 'pagelayer_sc_social',
3802 5677 'not_visible' => 1,
3803 - 'html' => '<div class="pagelayer-icon-holder pagelayer-{{icon}}-icon">
3804 - <a if-ext="{{social_url}}" class="pagelayer-ele-link" href="{{social_url}}">
3805 - <i class="pagelayer-social-fa fa fa-{{icon}}"></i>
5678 + 'parent' => [PAGELAYER_SC_PREFIX.'_social_grp'],
5679 + 'html' => '<div class="pagelayer-icon-holder">
5680 + <a if-ext="{{social_url}}" class="pagelayer-ele-link" href="{{{social_url}}}">
5681 + <i class="pagelayer-social-fa {{icon}}"></i>
3806 5682 </a>
3807 5683 </div>',
3808 5684 'params' => array(
3809 5685 'icon' => array(
@@ -3808,15 +5684,19 @@
3808 5684 'params' => array(
3809 5685 'icon' => array(
3810 5686 'type' => 'icon',
3811 5687 'label' => __pl('list_icon_label'),
3812 - 'default' => 'facebook-official',
3813 - 'list' => ['facebook', 'facebook-official', 'facebook-square', 'twitter', 'twitter-square', 'google-plus', 'google-plus-square', 'instagram', 'linkedin', 'linkedin-square', 'behance', 'behance-square', 'pinterest', 'pinterest-p', 'pinterest-square', 'reddit-alien', 'reddit-square', 'reddit', 'rss', 'rss-square', 'skype', 'slideshare', 'snapchat', 'snapchat-ghost', 'snapchat-square', 'soundcloud', 'spotify', 'stack-overflow', 'steam', 'steam-square', 'stumbleupon', 'telegram', 'thumb-tack', 'tripadvisor', 'tumblr', 'tumblr-square', 'twitch', 'vimeo', 'vimeo-square', 'vk', 'weibo', 'weixin', 'whatsapp', 'wordpress', 'xing', 'xing-square', 'yelp', 'youtube', 'youtube-square', 'youtube-play', '500px', 'flickr', 'android', 'github', 'github-square', 'gitlab', 'apple', 'jsfiddle', 'houzz', 'bitbucket', 'bitbucket-square', 'codepen', 'delicious', 'medium', 'meetup', 'mixcloud', 'dribbble', 'foursquare'],
5688 + 'default' => 'fab fa-facebook-square',
5689 + 'addAttr' => ['{{element}} .pagelayer-icon-holder' => 'data-icon="{{icon}}"'],
5690 + 'list' => ['facebook', 'facebook-f', 'facebook-square', 'facebook-messenger', 'twitter', 'twitter-square', 'x-twitter', 'x-twitter-square', 'google-plus', 'google-plus-g', 'google-plus-square', 'instagram', 'linkedin', 'linkedin-in', 'behance', 'behance-square', 'pinterest', 'pinterest-p', 'pinterest-square', 'reddit-alien', 'reddit-square', 'reddit', 'rss', 'rss-square', 'skype', 'slideshare', 'snapchat', 'snapchat-ghost', 'snapchat-square', 'soundcloud', 'spotify', 'stack-overflow', 'steam', 'steam-symbol', 'steam-square', 'stumbleupon', 'stumbleupon-circle', 'telegram', 'telegram-plane', 'thumbtack', 'tripadvisor', 'tumblr', 'tumblr-square', 'twitch', 'vimeo-v', 'vimeo', 'vimeo-square', 'vk', 'weibo', 'weixin', 'whatsapp', 'whatsapp-square', 'wordpress', 'wordpress-simple', 'xing', 'xing-square', 'yelp', 'youtube', 'youtube-square', '500px', 'flickr', 'android', 'github', 'github-alt', 'github-square', 'gitlab', 'apple', 'jsfiddle', 'houzz', 'bitbucket', 'codepen', 'delicious', 'medium', 'medium-m', 'meetup', 'mixcloud', 'dribbble', 'dribbble-square', 'foursquare', 'get-pocket', 'tiktok'],
5691 + 'onchange' => 'pagelayer_social_icon_onchange'
3814 5692 ),
3815 5693 'social_url' => array(
3816 5694 'type' => 'link',
3817 - 'label' => __pl('social_url_label')
3818 - )
5695 + 'label' => __pl('social_url_label'),
5696 + 'selector' => '.pagelayer-ele-link',
5697 + 'default' => get_option('pagelayer-facebook-url'),
5698 + ),
3819 5699 )
3820 5700 )
3821 5701 );
3822 5702
@@ -3823,9 +5703,8 @@
3823 5703 // Social Profile
3824 5704 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
3825 5705 'name' => __pl('Social Profile'),
3826 5706 'group' => 'button',
3827 - 'func' => 'pagelayer_sc_social_grp',
3828 5707 'has_group' => [
3829 5708 'section' => 'params',
3830 5709 'prop' => 'elements'
3831 5710 ],
@@ -3846,9 +5725,9 @@
3846 5725 'bg_shape' => array(
3847 5726 'type' => 'select',
3848 5727 'label' => __pl('icon_background_shape'),
3849 5728 'default' => '',
3850 - 'css' => ['{{element}} .fa' => 'height:1em; width:1em; position: absolute; top: 50%; left: 50%; transform: translate(-50% , -50%);',
5729 + 'css' => ['{{element}} i' => 'height:1em; width:1em; position: absolute; top: 50%; left: 50%; transform: translate(-50% , -50%);',
3851 5730 '{{element}} .pagelayer-icon-holder' => 'position: relative; min-height: 1em; min-width: 1em;'],
3852 5731 'addClass' => '{{val}}',
3853 5732 'list' => array(
3854 5733 '' => __pl('icon_shape_none'),
@@ -3948,9 +5827,9 @@
3948 5827 ),
3949 5828 'icon_bg_color' => array(
3950 5829 'type' => 'color',
3951 5830 'label' => __pl('social_bg_color_label'),
3952 - 'default' => '#3E8EF7',
5831 + 'default' => '#0986c0',
3953 5832 'css' => ['{{element}} .pagelayer-icon-holder' => 'background-color: {{val}} !important;'],
3954 5833 'req' => array(
3955 5834 '!bg_shape' => '',
3956 5835 'color_scheme' => ''
@@ -3956,8 +5835,64 @@
3956 5835 'color_scheme' => ''
3957 5836 ),
3958 5837 'show' => ['social_hover' => '']
3959 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 + ),
3960 5895 'icon_border_type' => array(
3961 5896 'type' => 'select',
3962 5897 'label' => __pl('border_type'),
3963 5898 'css' => ['{{element}} .pagelayer-icon-holder' => 'border-style: {{val}}'],
@@ -4015,66 +5950,8 @@
4015 5950 'show' => array(
4016 5951 'social_hover' => 'hover'
4017 5952 ),
4018 5953 ),
4019 - 'anim_hover' => array(
4020 - 'type' => 'select',
4021 - 'label' => __pl('icon_animation'),
4022 - 'list' => [
4023 - '' => __pl('none'),
4024 - 'grow' => __pl('Grow'),
4025 - 'shrink' => __pl('Shrink'),
4026 - 'pulse' => __pl('Pulse'),
4027 - 'pulse-grow' => __pl('Pulse Grow'),
4028 - 'pulse-shrink' => __pl('Pulse Shrink'),
4029 - 'push' => __pl('Push'),
4030 - 'pop' => __pl('Pop'),
4031 - 'buzz' => __pl('Buzz'),
4032 - 'buzz-out' => __pl('Buzz Out'),
4033 - 'float' => __pl('Float'),
4034 - 'sink' => __pl('Sink'),
4035 - 'bob' => __pl('Bob'),
4036 - 'hang' => __pl('Hang'),
4037 - 'bounce-in' => __pl('Bounce In'),
4038 - 'bounce-out' => __pl('Bounce Out'),
4039 - 'rotate' => __pl('Rotate'),
4040 - 'grow-rotate' => __pl('Grow Rotate'),
4041 - 'skew-forward' => __pl('Skew Forward'),
4042 - 'skew-backward' => __pl('Skew Backward'),
4043 - 'wobble-vertical' => __pl('Wobble Vertical'),
4044 - 'wobble-horizontal' => __pl('Wobble Horizontal'),
4045 - 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
4046 - 'wobble-top-to-right' => __pl('Wobble Top To Right'),
4047 - 'wobble-top' => __pl('Wobble Top'),
4048 - 'wobble-bottom' => __pl('Wobble Bottom'),
4049 - 'wobble-skew' => __pl('Wobble Skew'),
4050 - ],
4051 - 'show' => array(
4052 - 'social_hover' => 'hover',
4053 - ),
4054 - 'addAttr' => 'pagelayer-animation="{{anim_hover}}"',
4055 - ),
4056 - 'icon_color_hover' => array(
4057 - 'type' => 'color',
4058 - 'label' => __pl('social_color_label'),
4059 - 'default' => '#ffffff',
4060 - 'css' => ['{{element}} .pagelayer-icon-holder:hover .pagelayer-social-fa' => 'color: {{val}} !important;'],
4061 - 'req' => array(
4062 - 'color_scheme' => ''
4063 - ),
4064 - 'show' => ['social_hover' => 'hover']
4065 - ),
4066 - 'icon_bg_color_hover' => array(
4067 - 'type' => 'color',
4068 - 'label' => __pl('social_bg_color_label'),
4069 - 'default' => '#3E8EF7',
4070 - 'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'background-color: {{val}} !important;'],
4071 - 'req' => array(
4072 - '!bg_shape' => '',
4073 - 'color_scheme' => ''
4074 - ),
4075 - 'show' => ['social_hover' => 'hover']
4076 - ),
4077 5954 'icon_border_type_hover' => array(
4078 5955 'type' => 'select',
4079 5956 'label' => __pl('border_type'),
4080 5957 'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'border-style: {{val}}'],
@@ -4133,14 +6010,13 @@
4133 6010 // Video
4134 6011 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video', array(
4135 6012 'name' => __pl('video'),
4136 6013 'group' => 'media',
4137 - 'func' => 'pagelayer_sc_video',
4138 6014 'html' => '<div class="pagelayer-video-holder pagelayer-video-{{video_ratio}}">
4139 - <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>
4140 6016 <a if-ext={{lightbox}} href="{{{src-url}}}">
4141 6017 <div if={{overlay}} class="pagelayer-video-overlay" style="background-image:url({{video_overlay_image-url}});">
4142 - <i class="fa fa-{{play_icon}}" aria-hidden="true"></i>
6018 + <i class="{{play_icon}}" aria-hidden="true"></i>
4143 6019 </div>
4144 6020 </a>
4145 6021 </div>',
4146 6022 'params' => array(
@@ -4146,9 +6022,9 @@
4146 6022 'params' => array(
4147 6023 'src' => array(
4148 6024 'type' => 'video',
4149 6025 'label' => __pl('video_src_label'),
4150 - 'default' => 'https://www.youtube.com/watch?v=VT7WfVp1owQ',
6026 + 'default' => 'https://www.youtube.com/watch?v=t8Iz-v-qce8',
4151 6027 'desc' => __pl('video_src_desc'),
4152 6028 ),
4153 6029 'lightbox' => array(
4154 6030 'type' => 'checkbox',
@@ -4165,9 +6041,9 @@
4165 6041 ],
4166 6042 ),
4167 6043 'mute' => array(
4168 6044 'type' => 'checkbox',
4169 - 'label' => __pl('Mute'),
6045 + 'label' => __pl('mute'),
4170 6046 ),
4171 6047 'loop' => array(
4172 6048 'type' => 'checkbox',
4173 6049 'label' => __pl('loop'),
@@ -4203,9 +6079,9 @@
4203 6079 ),
4204 6080 'play_icon' => array(
4205 6081 'type' => 'icon',
4206 6082 'label' => __pl('list_icon_label'),
4207 - 'default' => 'play-circle',
6083 + 'default' => 'fas fa-play-circle',
4208 6084 'req' => array(
4209 6085 'overlay' => 'true'
4210 6086 )
4211 6087 ),
@@ -4211,9 +6087,9 @@
4211 6087 ),
4212 6088 'icon_color' => array(
4213 6089 'type' => 'color',
4214 6090 'label' => __pl('service_heading_color'),
4215 - 'default' => '#3e8ef7',
6091 + 'default' => '#0986c0',
4216 6092 'css' => ['{{element}} .pagelayer-video-overlay i' => 'color:{{val}}'],
4217 6093 'req' => array(
4218 6094 'overlay' => 'true'
4219 6095 )
@@ -4253,19 +6129,21 @@
4253 6129 // Service Box
4254 6130 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
4255 6131 'name' => __pl('Image Box'),
4256 6132 'group' => 'other',
4257 - 'func' => 'pagelayer_sc_service',
4258 6133 'innerHTML' => 'service_text',
4259 6134 'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
4260 6135 <div if="{{service_image}}" class="pagelayer-service-image">
4261 - <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}}" />
4262 6137 </div>
4263 6138 <div class="pagelayer-service-details">
4264 - <div if={{service_heading}} class="pagelayer-service-heading">{{service_heading}}</div>
6139 + <a if-ext={{heading_url}} href="{{{heading_url}}}" class="pagelayer-ele-link pagelayer-service-heading-link" >
6140 + <div if={{service_heading}} class="pagelayer-service-heading">{{service_heading}}</div>
6141 + </a>
4265 6142 <div if={{service_text}} class="pagelayer-service-text">{{service_text}}</div>
4266 - <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>
4267 6144 </div>
6145 + <a if-ext={{box_url}} href="{{{box_url}}}" class="pagelayer-ele-link pagelayer-box-link"> </a>
4268 6146 </div>',
4269 6147 'params' => [
4270 6148 'service_image' => array(
4271 6149 'type' => 'image',
@@ -4270,8 +6148,9 @@
4270 6148 'service_image' => array(
4271 6149 'type' => 'image',
4272 6150 'label' => __pl('service_box_image_icon_label'),
4273 6151 'default' => PAGELAYER_URL.'/images/default-image.png',
6152 + 'retina' => 1,
4274 6153 ),
4275 6154 'service_image_size' => array(
4276 6155 'type' => 'radio',
4277 6156 'label' => __pl('service_box_image_icon_size_label'),
@@ -4288,13 +6167,18 @@
4288 6167 'min' => '0',
4289 6168 'max' => '2000',
4290 6169 'screen' => 1,
4291 6170 'default' => '200',
4292 - 'css' => ['{{element}} .pagelayer-service-image img' => 'width:{{val}}px; height: auto;'],
6171 + 'css' => ['{{element}} .pagelayer-service-image img' => 'width:{{val}}px;'],
4293 6172 'req' => array(
4294 6173 'service_image_size' => 'custom',
4295 6174 )
4296 6175 ),
6176 + 'box_url' => array(
6177 + 'type' => 'link',
6178 + 'label' => __pl('url'),
6179 + 'selector' => '.pagelayer-box-link',
6180 + ),
4297 6181 'anim_hover' => array(
4298 6182 'type' => 'select',
4299 6183 'label' => __pl('icon_animation'),
4300 6184 'list' => [
@@ -4325,11 +6209,12 @@
4325 6209 'wobble-top' => __pl('Wobble Top'),
4326 6210 'wobble-bottom' => __pl('Wobble Bottom'),
4327 6211 'wobble-skew' => __pl('Wobble Skew'),
4328 6212 ],
6213 + 'addClass' => 'pagelayer-anim-par'
4329 6214 )
4330 6215 ],
4331 - 'service_img_style' => [
6216 + 'service_img_style' => [
4332 6217 'service_alignment' => array(
4333 6218 'type' => 'radio',
4334 6219 'label' => __pl('service_box_media_alignment'),
4335 6220 'default' => 'top',
@@ -4349,12 +6234,59 @@
4349 6234 'bottom' => __pl('bottom'),
4350 6235 ),
4351 6236 'req' => ['!service_alignment' => 'top']
4352 6237 ),
6238 + 'service_image_height' => array(
6239 + 'type' => 'slider',
6240 + 'label' => __pl('img_height'),
6241 + 'min' => '0',
6242 + 'screen' => 1,
6243 + 'css' => ['{{element}} .pagelayer-service-image img' => 'height:{{val}}px;'],
6244 + ),
6245 + 'service_image_object_fit' => array(
6246 + 'type' => 'select',
6247 + 'label' => __pl('object_fit'),
6248 + 'screen' => 1,
6249 + 'list' => array(
6250 + '' => __pl('none'),
6251 + 'contain' => __pl('contain'),
6252 + 'cover' => __pl('cover'),
6253 + 'fill' => __pl('fill'),
6254 + 'scale-down' => __pl('scale_down'),
6255 + ),
6256 + 'css' => ['{{element}} .pagelayer-service-image img' => 'object-fit:{{val}};'],
6257 + ),
6258 + 'service_image_object_pos' => array(
6259 + 'type' => 'select',
6260 + 'label' => __pl('object_pos'),
6261 + 'screen' => 1,
6262 + 'list' => array(
6263 + '' => __pl('none'),
6264 + 'top' => __pl('top'),
6265 + 'bottom' => __pl('bottom'),
6266 + 'center' => __pl('center'),
6267 + 'left' => __pl('left'),
6268 + 'right' => __pl('right'),
6269 + ),
6270 + 'css' => ['{{element}} .pagelayer-service-image img' => 'object-position:{{val}};'],
6271 + 'req' => [ '!service_image_object_fit' => ''],
6272 + ),
6273 + 'service_img_alignment' => array(
6274 + 'type' => 'radio',
6275 + 'label' => __pl('horizontal_pos'),
6276 + 'screen' => 1,
6277 + 'css' => ['{{element}} .pagelayer-service-image' => 'text-align: {{val}};,'],
6278 + 'list' => array(
6279 + 'left' => __pl('left'),
6280 + 'center' => __pl('center'),
6281 + 'right' => __pl('right'),
6282 + ),
6283 + 'req' => ['service_alignment' => 'top']
6284 + ),
4353 6285 'service_image_spacing' => array(
4354 6286 'type' => 'padding',
4355 6287 'label' => __pl('service_image_spacing'),
4356 - 'css' => ['{{element}} .pagelayer-service-image img' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
6288 + 'css' => ['{{element}} .pagelayer-service-image' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'],
4357 6289 ),
4358 6290 'img_bor_state' => array(
4359 6291 'type' => 'radio',
4360 6292 'label' => __pl('icon_state'),
@@ -4363,8 +6295,15 @@
4363 6295 'normal' => __pl('Normal'),
4364 6296 'hover' => __pl('Hover'),
4365 6297 ),
4366 6298 ),
6299 + 'img_filter' => array(
6300 + 'type' => 'filter',
6301 + 'label' => __pl('filter'),
6302 + 'default' => '0,100,100,0,0,100,100',
6303 + 'css' => ['{{element}} img' => 'filter: blur({{val[0]}}px) brightness({{val[1]}}%) contrast({{val[2]}}%) grayscale({{val[3]}}%) hue-rotate({{val[4]}}deg) opacity({{val[5]}}%) saturate({{val[6]}}%)'],
6304 + 'show' => ['img_bor_state' => 'normal'],
6305 + ),
4367 6306 'img_border_type' => array(
4368 6307 'type' => 'select',
4369 6308 'label' => __pl('icon_border_type'),
4370 6309 'css' => ['{{element}} .pagelayer-service-image img' =>'border-style: {{val}};'],
@@ -4380,9 +6319,9 @@
4380 6319 ),
4381 6320 'img_border_color' => array(
4382 6321 'type' => 'color',
4383 6322 'label' => __pl('icon_border_color_label'),
4384 - 'default' => '#3e8ef7',
6323 + 'default' => '#0986c0',
4385 6324 'css' => ['{{element}} .pagelayer-service-image img' => 'border-color: {{val}};'],
4386 6325 'req' => [
4387 6326 '!img_border_type' => '',
4388 6327 ],
@@ -4418,8 +6357,15 @@
4418 6357 'default' => 400,
4419 6358 'css' => ['{{element}} .pagelayer-service-image img' =>'-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
4420 6359 'show' => ['img_bor_state' => 'hover'],
4421 6360 ),
6361 + 'img_filter_hover' => array(
6362 + 'type' => 'filter',
6363 + 'label' => __pl('filter'),
6364 + 'default' => '0,100,100,0,0,100,100',
6365 + 'css' => ['{{element}}:hover img' => 'filter: blur({{val[0]}}px) brightness({{val[1]}}%) contrast({{val[2]}}%) grayscale({{val[3]}}%) hue-rotate({{val[4]}}deg) opacity({{val[5]}}%) saturate({{val[6]}}%)'],
6366 + 'show' => ['img_bor_state' => 'hover'],
6367 + ),
4422 6368 'img_border_type_hover' => array(
4423 6369 'type' => 'select',
4424 6370 'label' => __pl('icon_border_type_hover'),
4425 6371 'css' => ['{{element}}:hover .pagelayer-service-image img' =>'border-style: {{val}};'],
@@ -4435,9 +6381,9 @@
4435 6381 ),
4436 6382 'img_border_color_hover' => array(
4437 6383 'type' => 'color',
4438 6384 'label' => __pl('icon_border_color_hover_label'),
4439 - 'default' => '#3e8ef7',
6385 + 'default' => '#0986c0',
4440 6386 'css' => ['{{element}}:hover .pagelayer-service-image img' => 'border-color: {{val}};'],
4441 6387 'req' => [
4442 6388 '!img_border_type_hover' => '',
4443 6389 ],
@@ -4469,19 +6415,35 @@
4469 6415 'service_heading' => array(
4470 6416 'type' => 'textarea',
4471 6417 'label' => __pl('service_box_heading_label'),
4472 6418 'default' => 'This is an Image Box',
4473 - 'text' => __pl('open_in_wpeditor'),
6419 + 'edit' => '.pagelayer-service-heading',
4474 6420 ),
4475 - 'service_heading_spacing' => array(
4476 - 'type' => 'slider',
4477 - 'label' => __pl('service_heading_spacing'),
4478 - 'min' => '0',
4479 - 'max' => '200',
4480 - 'default' => '10',
6421 + 'heading_url' => array(
6422 + 'type' => 'link',
6423 + 'label' => __pl('url'),
6424 + 'selector' => '.pagelayer-service-heading-link',
6425 + 'req' => ['!service_heading' => '', 'box_url' => '']
6426 + ),
6427 + 'heading_alignment' => array(
6428 + 'type' => 'radio',
6429 + 'label' => __pl('service_box_heading_alignment'),
6430 + 'default' => 'center',
4481 6431 'screen' => 1,
4482 - 'css' => ['{{element}} .pagelayer-service-heading' => 'margin-bottom: {{val}}px !important;'],
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}};'],
4483 6438 ),
6439 + 'service_title_spacing' => array(
6440 + 'type' => 'padding',
6441 + 'label' => __pl('spacing'),
6442 + 'screen' => 1,
6443 + 'default' => ',,10,',
6444 + 'css' => ['{{element}} .pagelayer-service-heading' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;']
6445 + ),
4484 6446 'heading_state' => array(
4485 6447 'type' => 'radio',
4486 6448 'label' => __pl('icon_state'),
4487 6449 'default' => 'normal',
@@ -4492,9 +6454,9 @@
4492 6454 ),
4493 6455 'service_heading_color' => array(
4494 6456 'type' => 'color',
4495 6457 'label' => __pl('service_heading_color'),
4496 - 'default' => '#3e8ef7',
6458 + 'default' => '#0986c0',
4497 6459 'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
4498 6460 'show' => ['heading_state' => 'normal'],
4499 6461 ),
4500 6462 'service_heading_typo' => array(
@@ -4500,9 +6462,8 @@
4500 6462 'service_heading_typo' => array(
4501 6463 'type' => 'typography',
4502 6464 'label' => __pl('service_heading_typo'),
4503 6465 'default' => ',28,,600,,,,,,,',
4504 - 'screen' => 1,
4505 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;'],
4506 6467 'show' => ['heading_state' => 'normal'],
4507 6468 ),
4508 6469 'heading_transition' => array(
@@ -4517,9 +6478,8 @@
4517 6478 ),
4518 6479 'heading_color_hover' => array(
4519 6480 'type' => 'color',
4520 6481 'label' => __pl('service_heading_color'),
4521 - 'default' => '#3e8ef7',
4522 6482 'css' => ['{{element}}:hover .pagelayer-service-heading' => 'color:{{val}}'],
4523 6483 'show' => ['heading_state' => 'hover'],
4524 6484 ),
4525 6485 'heading_typo_hover' => array(
@@ -4524,10 +6484,8 @@
4524 6484 ),
4525 6485 'heading_typo_hover' => array(
4526 6486 'type' => 'typography',
4527 6487 'label' => __pl('service_heading_typo'),
4528 - 'default' => ',28,,600,,,,,,,',
4529 - 'screen' => 1,
4530 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;'],
4531 6489 'show' => ['heading_state' => 'hover'],
4532 6490 ),
4533 6491 ],
@@ -4533,9 +6491,9 @@
4533 6491 ],
4534 6492 //service content style
4535 6493 'service_content_style' =>[
4536 6494 'service_text_alignment' => array(
4537 - 'type' => 'select',
6495 + 'type' => 'radio',
4538 6496 'label' => __pl('service_box_text_alignment'),
4539 6497 'default' => 'center',
4540 6498 'screen' => 1,
4541 6499 'list' => array(
@@ -4545,13 +6503,19 @@
4545 6503 'justify' => __pl('justify'),
4546 6504 ),
4547 6505 'css' => ['{{element}} .pagelayer-service-details' => 'text-align:{{val}};'],
4548 6506 ),
6507 + 'service_content_spacing' => array(
6508 + 'type' => 'padding',
6509 + 'label' => __pl('spacing'),
6510 + 'screen' => 1,
6511 + 'css' => ['{{element}} .pagelayer-service-text' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'],
6512 + ),
4549 6513 'service_text' => array(
4550 6514 'type' => 'editor',
4551 6515 'label' => __pl('service_box_text_label'),
4552 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.',
4553 - 'text' => __pl('open_in_wpeditor'),
6517 + 'edit' => '.pagelayer-service-text',
4554 6518 )
4555 6519 ],
4556 6520 //service button style
4557 6521 'service_btn_style' =>[
@@ -4589,17 +6553,37 @@
4589 6553 'pagelayer-btn-small' => __pl('small'),
4590 6554 'pagelayer-btn-large' => __pl('large'),
4591 6555 'pagelayer-btn-extra-large' => __pl('extra_large'),
4592 6556 'pagelayer-btn-double-large' => __pl('double_large'),
4593 - //'pagelayer-btn-custom' => __pl('custom'),
6557 + 'pagelayer-btn-custom' => __pl('custom'),
4594 6558 ),
4595 6559 'req' => array(
4596 6560 'service_button' => 'true'
4597 6561 )
4598 6562 ),
6563 + 'service_btn_dim' => array(
6564 + 'type' => 'dimension',
6565 + 'label' => __pl('service_btn_dim'),
6566 + 'default' => '10,15',
6567 + 'screen' => 1,
6568 + 'css' => ['{{element}} .pagelayer-service-btn' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[0]}}px;padding-left:{{val[1]}}px;'],
6569 + 'req' => [
6570 + 'service_button' => 'true',
6571 + 'service_button_size' => 'pagelayer-btn-custom',
6572 + ]
6573 + ),
6574 + 'service_btn_stretch' => array(
6575 + 'type' => 'checkbox',
6576 + 'label' => __pl('stretch'),
6577 + 'css' => ['{{element}} .pagelayer-service-btn' => 'width:100%;'],
6578 + 'req' => array(
6579 + 'service_button' => 'true'
6580 + ),
6581 + ),
4599 6582 'service_button_url' => array(
4600 6583 'type' => 'link',
4601 6584 'label' => __pl('service_btn_url_label'),
6585 + 'selector' => '.pagelayer-service-btn',
4602 6586 'req' => array(
4603 6587 'service_button' => 'true'
4604 6588 ),
4605 6589 ),
@@ -4606,23 +6590,25 @@
4606 6590 'service_button_text' => array(
4607 6591 'type' => 'text',
4608 6592 'label' => __pl('service_button_text_label'),
4609 6593 'default' => 'Click Here!',
6594 + 'edit' => '.pagelayer-service-btn',
4610 6595 'req' => array(
4611 6596 'service_button' => 'true'
4612 6597 ),
4613 6598 ),
6599 + 'service_button_typo' => array(
6600 + 'type' => 'typography',
6601 + 'label' => __pl('typography'),
6602 + 'css' => ['{{element}} .pagelayer-service-btn' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
6603 + 'req' => ['service_button' => 'true']
6604 + ),
4614 6605 'service_btn_spacing' => array(
4615 - 'type' => 'slider',
4616 - 'label' => __pl('service_btn_spacing'),
4617 - 'min' => '0',
4618 - 'max' => '200',
4619 - 'default' => '10',
6606 + 'type' => 'padding',
6607 + 'label' => __pl('spacing'),
4620 6608 'screen' => 1,
4621 - 'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top: {{val}}px;'],
4622 - 'req' => [
4623 - 'service_button' => 'true',
4624 - ]
6609 + 'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
6610 + 'req' => ['service_button' => 'true']
4625 6611 ),
4626 6612 'service_button_font_size' => array(
4627 6613 'type' => 'slider',
4628 6614 'label' => __pl('iconbox_btn_text_size'),
@@ -4661,9 +6647,9 @@
4661 6647 ),
4662 6648 'service_button_bg_color' => array(
4663 6649 'type' => 'color',
4664 6650 'label' => __pl('service_button_bg_color'),
4665 - 'default' => '#3e8ef7',
6651 + 'default' => '#0986c0',
4666 6652 'css' => ['{{element}} .pagelayer-service-btn' => 'background-color:{{val}};'],
4667 6653 'req' => [
4668 6654 'service_button' => 'true',
4669 6655 'service_button_type' => 'pagelayer-btn-custom',
@@ -4694,13 +6680,126 @@
4694 6680 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'background-color:{{val}};'],
4695 6681 'show' => ['service_btn_state' => 'hover'],
4696 6682 ),
4697 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 + ],
4698 6796 'styles' => [
4699 6797 'service_img_style' => __pl('service_img_style'),
4700 6798 'service_heading_style' => __pl('service_heading_style'),
4701 6799 'service_content_style' => __pl('service_content_style'),
4702 6800 'service_btn_style' => __pl('service_btn_style'),
6801 + 'border_style' => __pl('btn_border_style'),
4703 6802 ],
4704 6803 )
4705 6804 );
4706 6805
@@ -4707,27 +6806,29 @@
4707 6806 // Icon Box
4708 6807 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4709 6808 'name' => __pl('Icon Box'),
4710 6809 'group' => 'other',
4711 - 'func' => 'pagelayer_sc_iconbox',
4712 6810 'innerHTML' => 'service_text',
4713 6811 'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
4714 6812 <div class="pagelayer-service-icon pagelayer-service-{{service_icon_view}}">
4715 - <i class="fa fa-{{service_icon}} pagelayer-icon-{{service_icon_shape_type}} pagelayer-animation-{{anim_hover}}" aria-hidden="true"></i>
6813 + <i class="{{service_icon}} pagelayer-icon-{{service_icon_shape_type}} pagelayer-animation-{{anim_hover}}" aria-hidden="true"></i>
4716 6814 </div>
4717 6815 <div class="pagelayer-service-details">
4718 - <div if="{{service_heading}}" class="pagelayer-service-heading">{{service_heading}}</div>
6816 + <a if-ext={{heading_url}} href="{{{heading_url}}}" class="pagelayer-ele-link pagelayer-service-heading-link" >
6817 + <div if="{{service_heading}}" class="pagelayer-service-heading">{{service_heading}}</div>
6818 + </a>
4719 6819 <div if="{{service_text}}" class="pagelayer-service-text">{{service_text}}</div>
4720 - <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}}">
4721 6821 <span if="{{service_button_text}}">{{service_button_text}}</span>
4722 6822 </a>
4723 6823 </div>
6824 + <a if-ext={{box_url}} href="{{{box_url}}}" class="pagelayer-ele-link pagelayer-box-link"> </a>
4724 6825 </div>',
4725 6826 'params' => array(
4726 6827 'service_icon' => array(
4727 6828 'type' => 'icon',
4728 6829 'label' => __pl('iconbox_font_icon_label'),
4729 - 'default' => 'exclamation-circle',
6830 + 'default' => 'fas fa-exclamation-circle',
4730 6831 ),
4731 6832 'service_alignment' => array(
4732 6833 'type' => 'radio',
4733 6834 'label' => __pl('iconbox_box_media_alignment'),
@@ -4750,8 +6851,25 @@
4750 6851 'req' => array(
4751 6852 '!service_alignment' => 'top'
4752 6853 )
4753 6854 ),
6855 + 'service_icon_alignment' => array(
6856 + 'type' => 'radio',
6857 + 'label' => __pl('horizontal_pos'),
6858 + 'screen' => 1,
6859 + 'css' => ['{{element}} .pagelayer-service-icon' => 'text-align: {{val}};,'],
6860 + 'list' => array(
6861 + 'left' => __pl('left'),
6862 + 'center' => __pl('center'),
6863 + 'right' => __pl('right'),
6864 + ),
6865 + 'req' => ['service_alignment' => 'top']
6866 + ),
6867 + 'box_url' => array(
6868 + 'type' => 'link',
6869 + 'label' => __pl('url'),
6870 + 'selector' => '.pagelayer-box-link',
6871 + ),
4754 6872 ),
4755 6873 // icon style
4756 6874 'service_icon_style' => [
4757 6875 'service_icon_view' => array(
@@ -4785,10 +6903,46 @@
4785 6903 'req' => ['!service_icon_view' => 'default'],
4786 6904 ),
4787 6905 'service_icon_spacing' => array(
4788 6906 'type' => 'padding',
6907 + 'screen' => 1,
4789 6908 'label' => __pl('service_icon_spacing'),
6909 + 'screen' => 1,
4790 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'
4791 6945 ),
4792 6946 'service_icon_state' => array(
4793 6947 'type' => 'radio',
4794 6948 'label' => __pl('icon_state'),
@@ -4800,9 +6954,9 @@
4800 6954 ),
4801 6955 'service_icon_color' => array(
4802 6956 'type' => 'color',
4803 6957 'label' => __pl('iconbox_icon_color'),
4804 - 'default' => '#3e8ef7',
6958 + 'default' => '#0986c0',
4805 6959 'css' => ['{{element}} .pagelayer-service-icon i' => 'color:{{val}};'],
4806 6960 'show' => ['service_icon_state' => 'normal'],
4807 6961 ),
4808 6962 'service_icon_background_color' => array(
@@ -4807,9 +6961,9 @@
4807 6961 ),
4808 6962 'service_icon_background_color' => array(
4809 6963 'type' => 'color',
4810 6964 'label' => __pl('service_icon_background_color'),
4811 - 'default' => '#eff0f0ff',
6965 + 'default' => '#eff0f0',
4812 6966 'css' => ['{{element}} .pagelayer-service-icon.pagelayer-service-stacked i' => 'background-color:{{val}};'],
4813 6967 'show' => ['service_icon_state' => 'normal'],
4814 6968 'req' => ['service_icon_view' => 'stacked']
4815 6969 ),
@@ -4842,44 +6996,8 @@
4842 6996 'default' => 400,
4843 6997 'css' => ['{{element}} .pagelayer-service-icon i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
4844 6998 'show' => ['service_icon_state' => 'hover'],
4845 6999 ),
4846 - 'anim_hover' => array(
4847 - 'type' => 'select',
4848 - 'label' => __pl('icon_animation'),
4849 - 'list' => [
4850 - '' => __pl('none'),
4851 - 'grow' => __pl('Grow'),
4852 - 'shrink' => __pl('Shrink'),
4853 - 'pulse' => __pl('Pulse'),
4854 - 'pulse-grow' => __pl('Pulse Grow'),
4855 - 'pulse-shrink' => __pl('Pulse Shrink'),
4856 - 'push' => __pl('Push'),
4857 - 'pop' => __pl('Pop'),
4858 - 'buzz' => __pl('Buzz'),
4859 - 'buzz-out' => __pl('Buzz Out'),
4860 - 'float' => __pl('Float'),
4861 - 'sink' => __pl('Sink'),
4862 - 'bob' => __pl('Bob'),
4863 - 'hang' => __pl('Hang'),
4864 - 'bounce-in' => __pl('Bounce In'),
4865 - 'bounce-out' => __pl('Bounce Out'),
4866 - 'rotate' => __pl('Rotate'),
4867 - 'grow-rotate' => __pl('Grow Rotate'),
4868 - 'skew-forward' => __pl('Skew Forward'),
4869 - 'skew-backward' => __pl('Skew Backward'),
4870 - 'wobble-vertical' => __pl('Wobble Vertical'),
4871 - 'wobble-horizontal' => __pl('Wobble Horizontal'),
4872 - 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
4873 - 'wobble-top-to-right' => __pl('Wobble Top To Right'),
4874 - 'wobble-top' => __pl('Wobble Top'),
4875 - 'wobble-bottom' => __pl('Wobble Bottom'),
4876 - 'wobble-skew' => __pl('Wobble Skew'),
4877 - ],
4878 - 'show' => array(
4879 - 'service_icon_state' => 'hover',
4880 - ),
4881 - ),
4882 7000 'service_icon_color_hover' => array(
4883 7001 'type' => 'color',
4884 7002 'label' => __pl('service_icon_color_hover'),
4885 7003 'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'color:{{val}};'],
@@ -4938,9 +7056,9 @@
4938 7056 ),
4939 7057 'service_icon_border_color' => array(
4940 7058 'type' => 'color',
4941 7059 'label' => __pl('icon_border_color_label'),
4942 - 'default' => '#3e8ef7',
7060 + 'default' => '#0986c0',
4943 7061 'css' => ['{{element}} .pagelayer-service-icon i' => 'border-color: {{val}};'],
4944 7062 'req' => [
4945 7063 '!service_icon_border_type' => '',
4946 7064 ],
@@ -4982,9 +7100,9 @@
4982 7100 ),
4983 7101 'service_icon_border_color_hover' => array(
4984 7102 'type' => 'color',
4985 7103 'label' => __pl('icon_border_color_hover_label'),
4986 - 'default' => '#3e8ef7',
7104 + 'default' => '#0986c0',
4987 7105 'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'border-color: {{val}};'],
4988 7106 'req' => [
4989 7107 '!service_icon_border_type_hover' => '',
4990 7108 ],
@@ -5015,19 +7133,35 @@
5015 7133 'service_heading' => array(
5016 7134 'type' => 'textarea',
5017 7135 'label' => __pl('iconbox_box_heading_label'),
5018 7136 'default' => 'This is Icon Box',
5019 - 'text' => __pl('open_in_wpeditor'),
7137 + 'edit' => '.pagelayer-service-heading',
5020 7138 ),
5021 - 'service_heading_spacing' => array(
5022 - 'type' => 'slider',
5023 - 'label' => __pl('service_heading_spacing'),
5024 - 'min' => '0',
5025 - 'max' => '200',
5026 - 'default' => '10',
7139 + 'heading_url' => array(
7140 + 'type' => 'link',
7141 + 'label' => __pl('url'),
7142 + 'selector' => '.pagelayer-service-heading-link',
7143 + 'req' => ['!service_heading' => '', 'box_url' => '']
7144 + ),
7145 + 'heading_alignment' => array(
7146 + 'type' => 'radio',
7147 + 'label' => __pl('service_box_heading_alignment'),
7148 + 'default' => 'center',
5027 7149 'screen' => 1,
5028 - 'css' => ['{{element}} .pagelayer-service-heading' => 'margin-bottom: {{val}}px;'],
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}};'],
5029 7156 ),
7157 + 'service_title_spacing' => array(
7158 + 'type' => 'padding',
7159 + 'label' => __pl('spacing'),
7160 + 'screen' => 1,
7161 + 'default' => ',,10,',
7162 + 'css' => ['{{element}} .pagelayer-service-heading' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;']
7163 + ),
5030 7164 'heading_state' => array(
5031 7165 'type' => 'radio',
5032 7166 'label' => __pl('icon_state'),
5033 7167 'default' => 'normal',
@@ -5038,9 +7172,9 @@
5038 7172 ),
5039 7173 'service_heading_color' => array(
5040 7174 'type' => 'color',
5041 7175 'label' => __pl('service_heading_color'),
5042 - 'default' => '#3e8ef7',
7176 + 'default' => '#0986c0',
5043 7177 'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
5044 7178 'show' => ['heading_state' => 'normal']
5045 7179 ),
5046 7180 'service_heading_typo' => array(
@@ -5046,9 +7180,8 @@
5046 7180 'service_heading_typo' => array(
5047 7181 'type' => 'typography',
5048 7182 'label' => __pl('service_heading_typo'),
5049 7183 'default' => ',28,,600,,,,,,,',
5050 - 'screen' => 1,
5051 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;'],
5052 7185 'show' => ['heading_state' => 'normal']
5053 7186 ),
5054 7187 'heading_delay' => array(
@@ -5063,9 +7196,8 @@
5063 7196 ),
5064 7197 'heading_color_hover' => array(
5065 7198 'type' => 'color',
5066 7199 'label' => __pl('service_heading_color'),
5067 - 'default' => '#3e8ef7',
5068 7200 'css' => ['{{element}}:hover .pagelayer-service-heading' => 'color:{{val}}'],
5069 7201 'show' => ['heading_state' => 'hover']
5070 7202 ),
5071 7203 'heading_typo_hover' => array(
@@ -5070,10 +7202,8 @@
5070 7202 ),
5071 7203 'heading_typo_hover' => array(
5072 7204 'type' => 'typography',
5073 7205 'label' => __pl('service_heading_typo'),
5074 - 'default' => ',28,,600,,,,,,,',
5075 - 'screen' => 1,
5076 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;'],
5077 7207 'show' => ['heading_state' => 'hover']
5078 7208 ),
5079 7209 ],
@@ -5079,9 +7209,9 @@
5079 7209 ],
5080 7210 //service content style
5081 7211 'service_content_style' =>[
5082 7212 'service_text_alignment' => array(
5083 - 'type' => 'select',
7213 + 'type' => 'radio',
5084 7214 'label' => __pl('alignment'),
5085 7215 'default' => 'center',
5086 7216 'screen' => 1,
5087 7217 'list' => array(
@@ -5091,13 +7221,18 @@
5091 7221 'justify' => __pl('justify'),
5092 7222 ),
5093 7223 'css' => ['{{element}} .pagelayer-service-details' => 'text-align:{{val}};'],
5094 7224 ),
7225 + 'service_content_spacing' => array(
7226 + 'type' => 'padding',
7227 + 'label' => __pl('spacing'),
7228 + 'css' => ['{{element}} .pagelayer-service-text' => 'padding-top:{{val[0]}}px; padding-right:{{val[1]}}px; padding-bottom:{{val[2]}}px; padding-left:{{val[3]}}px;'],
7229 + ),
5095 7230 'service_text' => array(
5096 7231 'type' => 'editor',
5097 7232 'label' => __pl('iconbox_box_text_label'),
5098 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.',
5099 - 'text' => __pl('open_in_wpeditor'),
7234 + 'edit' => '.pagelayer-service-text',
5100 7235 ),
5101 7236 ],
5102 7237 //service button style
5103 7238 'service_btn_style' =>[
@@ -5121,11 +7256,9 @@
5121 7256 'pagelayer-btn-light' => __pl('btn_type_light'),
5122 7257 'pagelayer-btn-link' => __pl('btn_type_link'),
5123 7258 'pagelayer-btn-custom' => __pl('btn_type_custom')
5124 7259 ),
5125 - 'req' => array(
5126 - 'service_button' => 'true'
5127 - ),
7260 + 'req' => ['service_button' => 'true']
5128 7261 ),
5129 7262 'service_button_size' => array(
5130 7263 'type' => 'select',
5131 7264 'label' => __pl('button_size_label'),
@@ -5135,40 +7268,53 @@
5135 7268 'pagelayer-btn-small' => __pl('small'),
5136 7269 'pagelayer-btn-large' => __pl('large'),
5137 7270 'pagelayer-btn-extra-large' => __pl('extra_large'),
5138 7271 'pagelayer-btn-double-large' => __pl('double_large'),
5139 - //'pagelayer-btn-custom' => __pl('custom'),
7272 + 'pagelayer-btn-custom' => __pl('custom'),
5140 7273 ),
5141 - 'req' => array(
5142 - 'service_button' => 'true'
5143 - )
7274 + 'req' => ['service_button' => 'true']
5144 7275 ),
7276 + 'service_btn_dim' => array(
7277 + 'type' => 'dimension',
7278 + 'label' => __pl('service_btn_dim'),
7279 + 'default' => '10,15',
7280 + 'screen' => 1,
7281 + 'css' => ['{{element}} .pagelayer-service-btn' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[0]}}px;padding-left:{{val[1]}}px;'],
7282 + 'req' => [
7283 + 'service_button' => 'true',
7284 + 'service_button_size' => 'pagelayer-btn-custom',
7285 + ]
7286 + ),
7287 + 'service_btn_stretch' => array(
7288 + 'type' => 'checkbox',
7289 + 'label' => __pl('stretch'),
7290 + 'css' => ['{{element}} .pagelayer-service-btn' => 'width:100%;'],
7291 + 'req' => ['service_button' => 'true']
7292 + ),
5145 7293 'service_button_url' => array(
5146 7294 'type' => 'link',
5147 7295 'label' => __pl('iconbox_btn_url_label'),
5148 - 'req' => array(
5149 - 'service_button' => 'true'
5150 - ),
7296 + 'selector' => '.pagelayer-service-btn',
7297 + 'req' => ['service_button' => 'true']
5151 7298 ),
5152 7299 'service_button_text' => array(
5153 7300 'type' => 'text',
5154 7301 'label' => __pl('iconbox_button_text_label'),
7302 + 'edit' => '.pagelayer-service-btn',
5155 7303 'default' => 'Click Here!',
5156 - 'req' => array(
5157 - 'service_button' => 'true'
5158 - ),
7304 + 'req' => ['service_button' => 'true']
5159 7305 ),
7306 + 'service_button_typo' => array(
7307 + 'type' => 'typography',
7308 + 'label' => __pl('typography'),
7309 + 'css' => ['{{element}} .pagelayer-service-btn' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
7310 + 'req' => ['service_button' => 'true']
7311 + ),
5160 7312 'service_btn_spacing' => array(
5161 - 'type' => 'slider',
5162 - 'label' => __pl('service_btn_spacing'),
5163 - 'min' => '0',
5164 - 'max' => '200',
5165 - 'default' => '10',
5166 - 'screen' => 1,
5167 - 'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top: {{val}}px;'],
5168 - 'req' => [
5169 - 'service_button' => 'true',
5170 - ]
7313 + 'type' => 'padding',
7314 + 'label' => __pl('spacing'),
7315 + 'css' => ['{{element}} .pagelayer-service-btn' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
7316 + 'req' => ['service_button' => 'true']
5171 7317 ),
5172 7318 'service_button_font_size' => array(
5173 7319 'type' => 'slider',
5174 7320 'label' => __pl('iconbox_btn_text_size'),
@@ -5207,9 +7353,9 @@
5207 7353 ),
5208 7354 'service_button_bg_color' => array(
5209 7355 'type' => 'color',
5210 7356 'label' => __pl('service_button_bg_color'),
5211 - 'default' => '#3e8ef7',
7357 + 'default' => '#0986c0',
5212 7358 'css' => ['{{element}} .pagelayer-service-btn' => 'background-color:{{val}};'],
5213 7359 'req' => [
5214 7360 'service_button' => 'true',
5215 7361 'iconbox_button_type' => 'pagelayer-btn-custom',
@@ -5240,8 +7386,120 @@
5240 7386 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'background-color:{{val}};'],
5241 7387 'show' => ['service_btn_state' => 'hover'],
5242 7388 ),
5243 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 + ],
5244 7502 'styles' => [
5245 7503 'service_icon_style' => __pl('service_icon_style'),
5246 7504 'service_icon_border' => __pl('service_icon_border'),
5247 7505 'service_heading_style' => __pl('service_heading_style'),
@@ -5246,8 +7504,9 @@
5246 7504 'service_icon_border' => __pl('service_icon_border'),
5247 7505 'service_heading_style' => __pl('service_heading_style'),
5248 7506 'service_content_style' => __pl('service_content_style'),
5249 7507 'service_btn_style' => __pl('service_btn_style'),
7508 + 'border_style' => __pl('btn_border_style'),
5250 7509 ],
5251 7510 )
5252 7511 );
5253 7512
@@ -5254,9 +7513,8 @@
5254 7513 // Tabs
5255 7514 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
5256 7515 'name' => __pl('tabs'),
5257 7516 'group' => 'other',
5258 - 'func' => 'pagelayer_sc_tabs',
5259 7517 'has_group' => [
5260 7518 'section' => 'params',
5261 7519 'prop' => 'elements'
5262 7520 ],
@@ -5390,15 +7648,14 @@
5390 7648 ),
5391 7649 'tabs_active_bg_color' => array(
5392 7650 'type' => 'color',
5393 7651 'label' => __pl('Active Tab Background Color'),
5394 - 'default' => '#3e8ef7',
7652 + 'default' => '#0986c0',
5395 7653 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks.active'=> 'background-color:{{val}}', '{{element}} .pagelayer-tabs-holder .pagelayer-tablinks:hover' => 'background-color:{{val}}'],
5396 7654 ),
5397 7655 'tab_title_typo' => array(
5398 7656 'type' => 'typography',
5399 7657 'label' => __pl('tab_title_typo'),
5400 - 'screen' => 1,
5401 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;'],
5402 7659 ),
5403 7660 'tabs_icon_align' => array(
5404 7661 'type' => 'radio',
@@ -5407,9 +7664,9 @@
5407 7664 'list' => array(
5408 7665 'left' => __pl('Left'),
5409 7666 'right' => __pl('Right'),
5410 7667 ),
5411 - 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks .fa'=> 'float:{{val}};'],
7668 + 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks i'=> 'float:{{val}};'],
5412 7669 ),
5413 7670 'tabs_icon_spacing' => array(
5414 7671 'type' => 'slider',
5415 7672 'label' => __pl('tabs_icon_spacing'),
@@ -5417,9 +7674,9 @@
5417 7674 'max' => 50,
5418 7675 'min' => 0,
5419 7676 'steps' => 1,
5420 7677 'screen' => 1,
5421 - 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks .fa'=> 'padding:0px {{val}}px;padding-{{tabs_icon_align}}:0px;'],
7678 + 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks i'=> 'padding:0px {{val}}px;padding-{{tabs_icon_align}}:0px;'],
5422 7679 ),
5423 7680 ],
5424 7681 'content_styles' => [
5425 7682 'tabs_content_typo' => array(
@@ -5424,9 +7681,8 @@
5424 7681 'content_styles' => [
5425 7682 'tabs_content_typo' => array(
5426 7683 'type' => 'typography',
5427 7684 'label' => __pl('tab_content_typo'),
5428 - 'screen' => 1,
5429 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;'],
5430 7686 ),
5431 7687 'tabs_content_color' => array(
5432 7688 'type' => 'color',
@@ -5447,9 +7703,9 @@
5447 7703 'min' => 0,
5448 7704 'max' => 50,
5449 7705 'step' => 1,
5450 7706 'screen' => 1,
5451 - 'css' => ['{{element}}.pagelayer-tabs .pagelayer-tabcontainer [pagelayer-id]' => 'padding: {{val}}px;'],
7707 + 'css' => ['{{element}}.pagelayer-tabs .pagelayer-tabcontainer .pagelayer-tab' => 'padding: {{val}}px;'],
5452 7708 ),
5453 7709 'tabs_content_border_width' => array(
5454 7710 'type' => 'padding',
5455 7711 'label' => __pl('border_width'),
@@ -5483,12 +7739,34 @@
5483 7739 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tab', array(
5484 7740 'name' => __pl('tab'),
5485 7741 'group' => 'other',
5486 7742 'not_visible' => 1,
5487 - 'func' => 'pagelayer_sc_tab',
5488 - 'innerHTML' => 'text',
5489 - '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>',
5490 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 + ),
5491 7769 'default_active' => array(
5492 7770 'type' => 'checkbox',
5493 7771 'label' => __pl('Default active tab'),
5494 7772 'addAttr' => 'pagelayer-default_active="1"'
@@ -5497,21 +7775,20 @@
5497 7775 'type' => 'icon',
5498 7776 'label' => __pl('icon'),
5499 7777 'addAttr' => 'pagelayer-tab-icon="{{tab_icon}}"',
5500 7778 ),
7779 + 'anchor_id' => array(
7780 + 'type' => 'text',
7781 + 'label' => __pl('ele_id'),
7782 + 'addAttr' => 'id="{{anchor_id}}"'
7783 + ),
5501 7784 'title' => array(
5502 7785 'type' => 'text',
5503 7786 'label' => __pl('title'),
5504 7787 'default' => 'Lorem',
5505 - 'addAttr' => 'pagelayer-tab-title="{{title}}"'
7788 + 'addAttr' => 'pagelayer-tab-title="{{title}}"',
7789 + 'edit' => '.pl-tab-title'
5506 7790 ),
5507 - 'text' => array(
5508 - 'type' => 'editor',
5509 - 'label' => __pl('Edit Rich Text'),
5510 - 'default' => 'Lorem ipsum dolor sit amet',
5511 - 'desc' => __pl('Edit the content here or edit directly in the Editor'),
5512 - 'edit' => '.pagelayer-text-holder',
5513 - ),
5514 7791 )
5515 7792 )
5516 7793 );
5517 7794
@@ -5518,9 +7795,8 @@
5518 7795 // Accordion
5519 7796 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
5520 7797 'name' => __pl('accordion'),
5521 7798 'group' => 'other',
5522 - 'func' => 'pagelayer_sc_accordion',
5523 7799 'has_group' => [
5524 7800 'section' => 'params',
5525 7801 'prop' => 'elements'
5526 7802 ],
@@ -5552,14 +7828,14 @@
5552 7828 'icon_styles' => [
5553 7829 'icon' => array(
5554 7830 'type' => 'icon',
5555 7831 'label' => __pl('list_icon_label'),
5556 - 'default' => 'plus',
7832 + 'default' => 'fas fa-plus',
5557 7833 ),
5558 7834 'active_icon' => array(
5559 7835 'type' => 'icon',
5560 7836 'label' => __pl('Active Icon'),
5561 - 'default' => 'minus',
7837 + 'default' => 'fas fa-minus',
5562 7838 ),
5563 7839 'icon_align' => array(
5564 7840 'type' => 'radio',
5565 7841 'label' => __pl('Alignment'),
@@ -5564,9 +7840,9 @@
5564 7840 'type' => 'radio',
5565 7841 'label' => __pl('Alignment'),
5566 7842 'default' => 'left',
5567 7843 'screen' => 1,
5568 - 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
7844 + 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'float:{{val}}'],
5569 7845 'list' => array(
5570 7846 'left' => __pl('left'),
5571 7847 'right' => __pl('right'),
5572 7848 )
@@ -5579,9 +7855,9 @@
5579 7855 'min' => 0,
5580 7856 'max' => 50,
5581 7857 'step' => 1,
5582 7858 'screen' => 1,
5583 - '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;'],
5584 7860 ),
5585 7861 ],
5586 7862 'tabs_styles' => [
5587 7863 'tabs_color' => array(
@@ -5599,15 +7875,15 @@
5599 7875 'tabs_active_color' => array(
5600 7876 'type' => 'color',
5601 7877 'label' => __pl('Active Tab Color '),
5602 7878 'default' => '#ffffff',
5603 - '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}}'],
5604 7880 ),
5605 7881 'tabs_active_bg_color' => array(
5606 7882 'type' => 'color',
5607 7883 'label' => __pl('Active Tab Background Color '),
5608 - 'default' => '#3e8ef7',
5609 - '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}}'],
5610 7886 ),
5611 7887 'tab_padding' => array(
5612 7888 'type' => 'slider',
5613 7889 'label' => __pl('tabs_padding_label'),
@@ -5633,10 +7909,16 @@
5633 7909 ),
5634 7910 'acc_content_typo' => array(
5635 7911 'type' => 'typography',
5636 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'],
5637 7919 'screen' => 1,
5638 - '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]}}'],
5639 7921 ),
5640 7922 'acc_border_type' => array(
5641 7923 'type' => 'select',
5642 7924 'label' => __pl('border_type'),
@@ -5667,8 +7949,14 @@
5667 7949 'req' => [
5668 7950 '!acc_border_type' => ''
5669 7951 ],
5670 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 '],
5671 7959 )
5672 7960 ],
5673 7961 'styles' => [
5674 7962 'icon_styles' => __pl('icon'),
@@ -5682,30 +7970,43 @@
5682 7970 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion_item', array(
5683 7971 'name' => __pl('Accordion item'),
5684 7972 'group' => 'other',
5685 7973 'not_visible' => 1,
5686 - 'func' => 'pagelayer_sc_accordion_item',
5687 - 'innerHTML' => 'text',
5688 - 'html' => '<a if="{{title}}" class="pagelayer-accordion-tabs">{{title}}<span class="pagelayer-accordion-icon"><i></i></span></a>
5689 - <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>',
5690 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 + ),
5691 7993 'default_active' => array(
5692 7994 'type' => 'checkbox',
5693 7995 'label' => __pl('Default active tab'),
7996 + 'addClass' => 'active'
5694 7997 ),
7998 + 'scroll_id' => array(
7999 + 'type' => 'text',
8000 + 'label' => __pl('ele_id'),
8001 + 'addAttr' => ['{{element}} .pagelayer-accordion-tabs' => 'id={{scroll_id}}']
8002 + ),
5695 8003 'title' => array(
5696 8004 'type' => 'text',
5697 8005 'label' => __pl('title'),
5698 8006 'default' => 'Lorem',
5699 - 'desc' => __pl(''),
8007 + 'edit' => '.pagelayer-accordion-title',
5700 8008 ),
5701 - 'text' => array(
5702 - 'type' => 'editor',
5703 - 'label' => __pl('Edit Rich Text'),
5704 - 'default' => 'Lorem ipsum dolor sit amet',
5705 - 'desc' => __pl('Edit the content here or edit directly in the Editor'),
5706 - 'edit' => '.pagelayer-text-holder',
5707 - ),
5708 8009 )
5709 8010 )
5710 8011 );
5711 8012
@@ -5712,9 +8013,8 @@
5712 8013 // Toggle / Collapse
5713 8014 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
5714 8015 'name' => __pl('Collapse'),
5715 8016 'group' => 'other',
5716 - 'func' => 'pagelayer_sc_collapse',
5717 8017 'has_group' => [
5718 8018 'section' => 'params',
5719 8019 'prop' => 'elements'
5720 8020 ],
@@ -5747,14 +8047,14 @@
5747 8047 'icon_style' => [
5748 8048 'icon' => array(
5749 8049 'type' => 'icon',
5750 8050 'label' => __pl('list_icon_label'),
5751 - 'default' => 'plus',
8051 + 'default' => 'fas fa-plus',
5752 8052 ),
5753 8053 'active_icon' => array(
5754 8054 'type' => 'icon',
5755 8055 'label' => __pl('Active icon'),
5756 - 'default' => 'minus'
8056 + 'default' => 'fas fa-minus'
5757 8057 ),
5758 8058 'icon_align' => array(
5759 8059 'type' => 'radio',
5760 8060 'label' => __pl('Alignment'),
@@ -5759,9 +8059,9 @@
5759 8059 'type' => 'radio',
5760 8060 'label' => __pl('Alignment'),
5761 8061 'default' => 'left',
5762 8062 'screen' => 1,
5763 - 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
8063 + 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'float:{{val}}'],
5764 8064 'list' => array(
5765 8065 'left' => __pl('left'),
5766 8066 'right' => __pl('right'),
5767 8067 )
@@ -5774,9 +8074,9 @@
5774 8074 'min' => 0,
5775 8075 'max' => 50,
5776 8076 'step' => 1,
5777 8077 'screen' => 1,
5778 - '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;'],
5779 8079 ),
5780 8080 ],
5781 8081 'tabs_styles' => [
5782 8082 'tabs_color' => array(
@@ -5794,15 +8094,15 @@
5794 8094 'tabs_active_color' => array(
5795 8095 'type' => 'color',
5796 8096 'label' => __pl('Active Tab Color '),
5797 8097 'default' => '#fff',
5798 - '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}}'],
5799 8099 ),
5800 8100 'tabs_active_bg_color' => array(
5801 8101 'type' => 'color',
5802 8102 'label' => __pl('Active Tab Background Color '),
5803 - 'default' => '#3e8ef7',
5804 - '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}}'],
5805 8105 ),
5806 8106 'tab_padding' => array(
5807 8107 'type' => 'slider',
5808 8108 'label' => __pl('tabs_padding_label'),
@@ -5815,9 +8115,8 @@
5815 8115 ),
5816 8116 'collapse_title_typo' => array(
5817 8117 'type' => 'typography',
5818 8118 'label' => __pl('collapsse_title_typo'),
5819 - 'screen' => 1,
5820 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;'],
5821 8120 ),
5822 8121 ],
5823 8122 'content_styles' => [
@@ -5826,8 +8125,15 @@
5826 8125 'label' => __pl('Background Color '),
5827 8126 'default' => '#ffffff',
5828 8127 'css' => ['{{element}} .pagelayer-accordion_item .pagelayer-accordion-panel'=> 'background-color:{{val}}'],
5829 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 + ),
5830 8136 'acc_border_type' => array(
5831 8137 'type' => 'select',
5832 8138 'label' => __pl('border_type'),
5833 8139 'list' => [
@@ -5859,8 +8165,17 @@
5859 8165 '!acc_border_type' => ''
5860 8166 ],
5861 8167 'css' => ['{{element}} .pagelayer-accordion_item' => 'border-color: {{val}}', '{{element}} .pagelayer-accordion_item .pagelayer-accordion-panel' =>'border-color: {{val}}'],
5862 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 + )
5863 8178 ],
5864 8179 'styles' => [
5865 8180 'icon_style' => __pl('icon'),
5866 8181 'tabs_styles' => __pl('Tabs'),
@@ -5872,9 +8187,8 @@
5872 8187 // Space
5873 8188 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_space', array(
5874 8189 'name' => __pl('space'),
5875 8190 'group' => 'other',
5876 - 'func' => 'pagelayer_sc_space',
5877 8191 'html' => '<div class="pagelayer-space-holder"></div>',
5878 8192 'params' => array(
5879 8193 'height' => array(
5880 8194 'type' => 'slider',
@@ -5879,10 +8193,10 @@
5879 8193 'height' => array(
5880 8194 'type' => 'slider',
5881 8195 'label' => __pl('Space Height'),
5882 8196 'screen' => 1,
5883 - 'units' => ['px', '%'],
5884 - 'css' => ['{{element}} .pagelayer-space-holder' => 'height: {{val}}px;'],
8197 + 'units' => ['px', 'em'],
8198 + 'css' => ['{{element}} .pagelayer-space-holder' => 'height: {{val}};'],
5885 8199 'default' => '10',
5886 8200 'min' => 0,
5887 8201 'max' => 1000,
5888 8202 'step' => 1
@@ -5894,9 +8208,8 @@
5894 8208 // Embed
5895 8209 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_embed', array(
5896 8210 'name' => __pl('embed'),
5897 8211 'group' => 'other',
5898 - 'func' => 'pagelayer_sc_embed',
5899 8212 'innerHTML' => 'data',
5900 8213 'html' => '<div if={{data}} class="pagelayer-embed-container">{{data}}</div>',
5901 8214 'params' => array(
5902 8215 'data' => array(
@@ -5901,9 +8214,9 @@
5901 8214 'params' => array(
5902 8215 'data' => array(
5903 8216 'type' => 'textarea',
5904 8217 'label' => __pl('embed_paste_code'),
5905 - 'default' => '<p>Paste HTML code here...</P>',
8218 + 'default' => '<p>Paste HTML code here...</p>',
5906 8219 'desc' => '',
5907 8220 ),
5908 8221 )
5909 8222 )
@@ -5912,9 +8225,9 @@
5912 8225 // Shortcodes
5913 8226 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_shortcodes', array(
5914 8227 'name' => __pl('shortcodes'),
5915 8228 'group' => 'other',
5916 - 'func' => 'pagelayer_sc_shortcodes',
8229 + 'no_gt' => 1,
5917 8230 'innerHTML' => 'data',
5918 8231 'holder' => '.pagelayer-shortcodes-container',
5919 8232 'html' => '<div class="pagelayer-shortcodes-container">{{{shortcode}}}</div>',
5920 8233 'params' => array(
@@ -5926,24 +8239,232 @@
5926 8239 )
5927 8240 )
5928 8241 );
5929 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 +
5930 8267 // Google Maps
5931 8268 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_google_maps', array(
5932 - 'name' => __pl('Google Maps'),
8269 + 'name' => __pl('google_maps'),
5933 8270 'group' => 'other',
5934 - 'func' => 'pagelayer_sc_google_maps',
5935 8271 'innerHTML' => 'address',
5936 8272 'html' => '<div class="pagelayer-google-maps-holder">
5937 - <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}}
5938 8275 </div>',
5939 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 + ),
5940 8306 'address' => array(
5941 8307 'type' => 'text',
5942 8308 'label' => __pl('google_map_address_label'),
5943 8309 'default' => 'New York, New York, USA',
5944 - 'desc' => __pl('google_map_address_desc')
8310 + 'desc' => __pl('google_map_address_desc'),
8311 + 'req' => ['!map_modes' => 'search']
5945 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 + ),
5946 8467 'noscroll' => array(
5947 8468 'type' => 'checkbox',
5948 8469 'label' => __pl('google_map_noscroll'),
5949 8470 'css' => ['{{element}} iframe' => 'pointer-events: none;'],
@@ -5952,9 +8473,9 @@
5952 8473 'type' => 'slider',
5953 8474 'label' => __pl('google_map_zoom_label'),
5954 8475 'default' => 10,
5955 8476 'min' => 0,
5956 - 'max' => 20
8477 + 'max' => 21
5957 8478 ),
5958 8479 'height' => array(
5959 8480 'type' => 'slider',
5960 8481 'label' => __pl('google_map_height'),
@@ -5971,18 +8492,17 @@
5971 8492 // Testimonial
5972 8493 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
5973 8494 'name' => __pl('testimonial'),
5974 8495 'group' => 'other',
5975 - 'func' => 'pagelayer_sc_testimonial',
5976 8496 'innerHTML' => 'quote_content',
5977 8497 'html' => '<div if="{{quote_content}}" class="pagelayer-testimonial-content">{{quote_content}}</div>
5978 8498 <div class="pagelayer-testimonial-author-details">
5979 - <div class="pagelayer-{{image_position}}">
5980 - <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}}}"/>
5981 8501 </div>
5982 8502 <div class="pagelayer-{{image_position}}">
5983 8503 <div if="{{cite}}" class="pagelayer-testimonial-cite">
5984 - <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}}}">
5985 8505 <span class="pagelayer-testimonial-author">{{cite}}</span>
5986 8506 </a>
5987 8507 <span if="{{designation}}" class="pagelayer-testimonial-author-title">
5988 8508 {{designation}}
@@ -6026,9 +8546,8 @@
6026 8546 'content_style' => [
6027 8547 'quote_content' => array(
6028 8548 'type' => 'editor',
6029 8549 'label' => __pl('testimonial_content_label'),
6030 - 'text' => __pl('Edit Testimonial content'),
6031 8550 'edit' => '.pagelayer-testimonial-content',
6032 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.'
6033 8552 )
6034 8553 ],
@@ -6035,10 +8554,11 @@
6035 8554 'avatar_style' => [
6036 8555 'avatar' => array(
6037 8556 'type' => 'image',
6038 8557 'label' => __pl('testimonial_image_label'),
8558 + 'default' => PAGELAYER_URL.'/images/default-image.png',
6039 8559 'desc' => __pl('testimonial_image_desc'),
6040 - 'default' => PAGELAYER_URL.'/images/default-image.png',
8560 + 'ai' => false,
6041 8561 ),
6042 8562 'testimonial_image_size' => array(
6043 8563 'label' => __pl('testimonial_image_sizes'),
6044 8564 'type' => 'slider',
@@ -6098,13 +8618,14 @@
6098 8618 'label' => __pl('testimonial_cite_label'),
6099 8619 'default' => 'John Smith',
6100 8620 'desc' => __pl('testimonial_cite_desc'),
6101 8621 'edit' => '.pagelayer-testimonial-author',
8622 + 'ai' => false,
6102 8623 ),
6103 8624 'cite_color' => array(
6104 8625 'type' => 'color',
6105 8626 'label' => __pl('testimonial_name_color_label'),
6106 - 'default' => '#426870ff',
8627 + 'default' => '#426870',
6107 8628 'css' => ['{{element}} .pagelayer-testimonial-author ' => 'color:{{val}}'],
6108 8629 ),
6109 8630 'cite_style' => array(
6110 8631 'type' => 'typography',
@@ -6109,15 +8630,14 @@
6109 8630 'cite_style' => array(
6110 8631 'type' => 'typography',
6111 8632 'label' => __pl('cite_style'),
6112 8633 'default' => ',20,,100,,none,,,,,',
6113 - 'screen' => 1,
6114 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;'],
6115 8635 ),
6116 8636 'cite_url' => array(
6117 8637 'type' => 'link',
6118 8638 'label' => __pl('testimonial_url_label'),
6119 - 'default' => '',
8639 + 'selector' => '.pagelayer-ele-link',
6120 8640 'desc' => __pl('testimonial_url_desc'),
6121 8641 ),
6122 8642 'cite_spacing' => array(
6123 8643 'type' => 'padding',
@@ -6136,9 +8656,9 @@
6136 8656 ),
6137 8657 'designation_color' => array(
6138 8658 'type' => 'color',
6139 8659 'label' => __pl('testimonial_title_color_label'),
6140 - 'default' => '#9cafc0ff',
8660 + 'default' => '#9cafc0',
6141 8661 'css' => ['{{element}} .pagelayer-testimonial-author-title' => 'color:{{val}}'],
6142 8662 ),
6143 8663 'cite_designation_style' => array(
6144 8664 'type' => 'typography',
@@ -6143,9 +8663,8 @@
6143 8663 'cite_designation_style' => array(
6144 8664 'type' => 'typography',
6145 8665 'label' => __pl('cite_designation_style'),
6146 8666 'default' => ',16,,100,,,,,,,',
6147 - 'screen' => 1,
6148 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;'],
6149 8668 ),
6150 8669 ],
6151 8670 'styles' => [
@@ -6161,11 +8680,14 @@
6161 8680 // Progress object - Make a group
6162 8681 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_progress', array(
6163 8682 'name' => __pl('Progress Bars'),
6164 8683 'group' => 'other',
6165 - 'func' => 'pagelayer_sc_progress',
6166 8684 'innerHTML' => 'progress_text',
6167 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>
6168 8690 <div class="pagelayer-progress-container">
6169 8691 <div if="{{progress_percentage}}" class="pagelayer-progress-bar pagelayer-progress-{{progress_type}}" style="width:{{progress_percentage}}%;">
6170 8692 <span if="{{progress_text}}" class="pagelayer-progress-text">{{progress_text}}</span>
6171 8693 <span if="{{progress_percentage}}" class="pagelayer-progress-percent"></span>
@@ -6187,12 +8709,18 @@
6187 8709 ),
6188 8710 'progress_color' => array(
6189 8711 'type' => 'color',
6190 8712 'label' => __pl('progress_bar_color'),
6191 - 'default' => '#3e8ef7',
8713 + 'default' => '#0986c0',
6192 8714 'css' => ['{{element}} .pagelayer-progress-bar' => 'background-color:{{val}};'],
6193 8715 'req' => ['progress_type' => '']
6194 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 + ),
6195 8723 'progress_height' => array(
6196 8724 'type' => 'slider',
6197 8725 'label' => __pl('progress_height'),
6198 8726 'min' => 0,
@@ -6204,8 +8732,41 @@
6204 8732 '{{element}} .pagelayer-progress-text' => 'line-height:{{val}}px; font-size: calc({{val}}px / 2);',
6205 8733 ],
6206 8734 'default' => 40,
6207 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 + )
6208 8769 ),
6209 8770 // Styles
6210 8771 'heading_style' => [
6211 8772 'title' => array(
@@ -6211,20 +8772,31 @@
6211 8772 'title' => array(
6212 8773 'type' => 'text',
6213 8774 'label' => __pl('progress_title'),
6214 8775 'default' => 'Progress',
8776 + 'edit' => '.pagelayer-progress-title',
6215 8777 ),
6216 8778 'title_color' => array(
6217 8779 'type' => 'color',
6218 8780 'label' => __pl('title_color'),
6219 - 'default' => '#768589ff',
8781 + 'default' => '#768589',
6220 8782 'css' => ['{{element}} .pagelayer-progress-title' => 'color:{{val}};'],
6221 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 + ),
6222 8795 'title_style' => array(
6223 8796 'type' => 'typography',
6224 8797 'label' => __pl('title_size'),
6225 8798 'default' => ',25,,100,,,,,,,',
6226 - 'screen' => 1,
6227 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;'],
6228 8800 ),
6229 8801 ],
6230 8802 'percentage_style' => [
@@ -6231,8 +8803,9 @@
6231 8803 'progress_text'=> array(
6232 8804 'type' => 'text',
6233 8805 'label' => __pl('progress_text'),
6234 8806 'default' => 'Designing',
8807 + 'edit' => '.pagelayer-progress-text',
6235 8808 ),
6236 8809 'progress_text_color' => array(
6237 8810 'type' => 'color',
6238 8811 'label' => __pl('progress_text_color'),
@@ -6243,9 +8816,8 @@
6243 8816 'type' => 'slider',
6244 8817 'label' => __pl('percentage'),
6245 8818 'min' => 0,
6246 8819 'max' => 100,
6247 - 'screen' => 1,
6248 8820 'css' => ['{{element}} .pagelayer-progress-container > .pagelayer-progress-bar:after' => 'width:{{val}}%;',],
6249 8821 'addAttr' => ['{{element}} .pagelayer-progress-bar' => 'pagelayer-progress-width="{{progress_percentage}}"'],
6250 8822 'default' => 75,
6251 8823 ),
@@ -6262,11 +8834,39 @@
6262 8834 'default' => '',
6263 8835 'css' => ['{{element}} .pagelayer-progress-percent' => 'display: none;']
6264 8836 ),
6265 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 + ],
6266 8865 'styles' => [
6267 8866 'heading_style' => __pl('heading_style'),
6268 8867 'percentage_style' => __pl('percentage'),
8868 + 'progress_prefix_suffix' => __pl('prefix_suffix'),
6269 8869 ]
6270 8870 )
6271 8871 );
6272 8872
@@ -6273,9 +8873,8 @@
6273 8873 // Color Block
6274 8874 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_block', array(
6275 8875 'name' => __pl('Color Block'),
6276 8876 'group' => 'other',
6277 - 'func' => 'pagelayer_sc_block',
6278 8877 'params' => array(
6279 8878 'block_color' => array(
6280 8879 'type' => 'color',
6281 8880 'label' => __pl('block_color'),
@@ -6299,14 +8898,13 @@
6299 8898 // Alert
6300 8899 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_alert', array(
6301 8900 'name' => __pl('Alert'),
6302 8901 'group' => 'other',
6303 - 'func' => 'pagelayer_sc_alert',
6304 8902 'innerHTML' => 'alert_content',
6305 8903 'html' => '<div class="pagelayer-alert-content">
6306 - <i if="{{alert_icon}}" class="pagelayer-alert-icon fa fa-{{alert_icon}}"></i>
8904 + <i if="{{alert_icon}}" class="pagelayer-alert-icon {{alert_icon}}"></i>
6307 8905 <div if="{{alert_title}}" class="pagelayer-alert-title">{{alert_title}}</div>
6308 - <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>
6309 8907 </div>
6310 8908 <span if="{{alert_content}}" class="pagelayer-alert-text">{{alert_content}}</span>',
6311 8909 'params' => array(
6312 8910 'alert_type' => array(
@@ -6341,9 +8939,9 @@
6341 8939 'icon_style' => [
6342 8940 'alert_icon' => array(
6343 8941 'type' => 'icon',
6344 8942 'label' => __pl('alert_icon'),
6345 - 'default' => 'exclamation',
8943 + 'default' => 'fas fa-exclamation',
6346 8944 ),
6347 8945 'alert_icon_color' => array(
6348 8946 'type' => 'color',
6349 8947 'label' => __pl('alert_icon_color'),
@@ -6353,9 +8951,9 @@
6353 8951 'label' => __pl('alert_font_size'),
6354 8952 'type' => 'slider',
6355 8953 'min' => 0,
6356 8954 'max' => 500,
6357 - 'default' => 30,
8955 + 'default' => 20,
6358 8956 'screen' => 1,
6359 8957 'css' => ['{{element}} .pagelayer-alert-icon' => 'font-size:{{val}}px;'],
6360 8958 ),
6361 8959 'alert_icon_spacing' => array(
@@ -6384,9 +8982,8 @@
6384 8982 'title_typo' => array(
6385 8983 'type' => 'typography',
6386 8984 'label' => __pl('title_typo'),
6387 8985 'default' => ',22,,600,,,,,,,',
6388 - 'screen' => 1,
6389 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;'],
6390 8987 ),
6391 8988 ],
6392 8989 'content_style' => [
@@ -6407,9 +9004,8 @@
6407 9004 'content_typo' => array(
6408 9005 'type' => 'typography',
6409 9006 'label' => __pl('title_typo'),
6410 9007 'default' => ',13,,,,,,,,,',
6411 - 'screen' => 1,
6412 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;'],
6413 9009 ),
6414 9010 ],
6415 9011 'styles' => [
@@ -6423,9 +9019,8 @@
6423 9019 // Anchor
6424 9020 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_anchor', array(
6425 9021 'name' => __pl('Anchor'),
6426 9022 'group' => 'other',
6427 - 'func' => 'pagelayer_sc_anchor',
6428 9023 'html' => '<div id="{{title}}" class="pagelayer-anchor-holder"></div>',
6429 9024 'params' => array(
6430 9025 'title' => array(
6431 9026 'type' => 'text',
@@ -6439,9 +9034,8 @@
6439 9034 // Star object
6440 9035 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_stars', array(
6441 9036 'name' => __pl('Stars'),
6442 9037 'group' => 'other',
6443 - 'func' => 'pagelayer_sc_stars',
6444 9038 'html' => '<span if="{{rating_title}}" class="pagelayer-stars-title">{{rating_title}}</span>
6445 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}}">
6446 9040 </div>',
6447 9041 'params' => array(
@@ -6476,14 +9070,15 @@
6476 9070 'title_style' => [
6477 9071 'rating_title' => array(
6478 9072 'type' => 'text',
6479 9073 'label' => __pl('rating_title'),
6480 - 'default' => 'Rate us',
9074 + 'default' => 'Rate us',
9075 + 'edit' => '.pagelayer-stars-title',
6481 9076 ),
6482 9077 'title_color' => array(
6483 9078 'type' => 'color',
6484 9079 'label' => __pl('title_color'),
6485 - 'default' => '#3e8ef7',
9080 + 'default' => '#0986c0',
6486 9081 'css' => ['{{element}} .pagelayer-stars-title' => 'color: {{val}}'],
6487 9082 ),
6488 9083 'title_style' => array(
6489 9084 'type' => 'typography',
@@ -6488,9 +9083,8 @@
6488 9083 'title_style' => array(
6489 9084 'type' => 'typography',
6490 9085 'label' => __pl('counter_number_size'),
6491 9086 'default' => ',25,,600,,,solid,,,,',
6492 - 'screen' => 1,
6493 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;'],
6494 9088 ),
6495 9089 ],
6496 9090 'stars_style' => [
@@ -6496,9 +9090,9 @@
6496 9090 'stars_style' => [
6497 9091 'stars_color' => array(
6498 9092 'type' => 'color',
6499 9093 'label' => __pl('stars_color'),
6500 - 'default' => '#3e8ef7',
9094 + 'default' => '#0986c0',
6501 9095 'css' => ['{{element}} .pagelayer-stars-icon:before' => 'color: {{val}}'],
6502 9096 ),
6503 9097 'unmarked_stars_color' => array(
6504 9098 'type' => 'color',
@@ -6535,9 +9129,8 @@
6535 9129 // Divider
6536 9130 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_divider', array(
6537 9131 'name' => __pl('Divider'),
6538 9132 'group' => 'other',
6539 - 'func' => 'pagelayer_sc_divider',
6540 9133 'html' => '<div class="pagelayer-divider-holder">
6541 9134 <span class="pagelayer-divider-seperator"></span>
6542 9135 </div>',
6543 9136 'params' => array(
@@ -6556,9 +9149,9 @@
6556 9149 ),
6557 9150 'divider_color' => array(
6558 9151 'type' => 'color',
6559 9152 'label' => __pl('divider_color'),
6560 - 'default' => '#3E8EF7',
9153 + 'default' => '#999',
6561 9154 'css' => ['{{element}} .pagelayer-divider-seperator' => 'border-top-color: {{val}};'],
6562 9155 ),
6563 9156 'divider_weight' => array(
6564 9157 'type' => 'slider',
@@ -6564,9 +9157,9 @@
6564 9157 'type' => 'slider',
6565 9158 'label' => __pl('divider_border_weight'),
6566 9159 'min' => 1,
6567 9160 'max' => 30,
6568 - 'default' => 3,
9161 + 'default' => 1,
6569 9162 'screen' => 1,
6570 9163 'css' => ['{{element}} .pagelayer-divider-seperator' =>'border-top-width: {{val}}px;'],
6571 9164 ),
6572 9165 'divider_widht' => array(
@@ -6573,9 +9166,9 @@
6573 9166 'type' => 'slider',
6574 9167 'label' => __pl('divider_border_width'),
6575 9168 'min' => 1,
6576 9169 'max' => 100,
6577 - 'default' => 50,
9170 + 'default' => 100,
6578 9171 'screen' => 1,
6579 9172 'css' => ['{{element}} .pagelayer-divider-seperator' =>'width: {{val}}%;'],
6580 9173 ),
6581 9174 'divider_gap' => array(
@@ -6606,9 +9199,8 @@
6606 9199 // Counter
6607 9200 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_counter', array(
6608 9201 'name' => __pl('Counter'),
6609 9202 'group' => 'other',
6610 - 'func' => 'pagelayer_sc_counter',
6611 9203 'html' => '<div class="pagelayer-counter-holder">
6612 9204 <div if="{{counter_start_number}}" class="pagelayer-counter-content">
6613 9205 <span if="{{number_prefix}}">{{number_prefix}}</span><span class="pagelayer-counter-display">{{counter_start_number}}</span><span if="{{number_suffix}}">{{number_suffix}}</span>
6614 9206 </div>
@@ -6654,9 +9246,9 @@
6654 9246 'counter_style' => [
6655 9247 'counter_number_color' => array(
6656 9248 'type' => 'color',
6657 9249 'label' => __pl('counter_number_color_label'),
6658 - 'default' => '#3E8EF7',
9250 + 'default' => '#0986c0',
6659 9251 'css' => ['{{element}} .pagelayer-counter-content' => 'color:{{val}};'],
6660 9252 ),
6661 9253 'number_prefix' => array(
6662 9254 'type' => 'text',
@@ -6688,9 +9280,8 @@
6688 9280 'counter_number_style' => array(
6689 9281 'type' => 'typography',
6690 9282 'label' => __pl('counter_number_size'),
6691 9283 'default' => ',60,,600,,,solid,,,,',
6692 - 'screen' => 1,
6693 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;'],
6694 9285 ),
6695 9286 ],
6696 9287 'counter_label_style' => [
@@ -6709,9 +9300,8 @@
6709 9300 'counter_text_style' => array(
6710 9301 'type' => 'typography',
6711 9302 'label' => __pl('counter_text_style'),
6712 9303 'default' => ',25,,400,,,solid,,,,',
6713 - 'screen' => 1,
6714 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;'],
6715 9305 ),
6716 9306 ],
6717 9307 'styles' => [
@@ -6720,10 +9310,2002 @@
6720 9310 ],
6721 9311 )
6722 9312 );
6723 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 +);
6724 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 +);
6725 9457
9458 +// Phone
9459 +pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_phone', array(
9460 + 'name' => __pl('phone'),
9461 + 'group' => 'other',
9462 + 'icon' => 'fas fa-phone-alt',
9463 + 'html' => '<div class="pagelayer-phone-holder">
9464 + <span class="pagelayer-phone-icon"><i class="{{icon}}"></i></span>
9465 + <a if-ext="{{linked}}" href="tel:'.pagelayer_get_option('pagelayer-phone').'">
9466 + <span class="pagelayer-phone">'.pagelayer_get_option('pagelayer-phone').'</span>
9467 + </a>
9468 + </div>',
9469 + 'params' => array(
9470 + 'linked' => array(
9471 + 'type' => 'checkbox',
9472 + 'label' => __pl('make_link'),
9473 + 'desc' => __pl('CMA_desc')
9474 + ),
9475 + 'color' => array(
9476 + 'type' => 'color',
9477 + 'label' => __pl('color'),
9478 + 'css' => ['{{element}} .pagelayer-phone *, {{element}} .pagelayer-phone' => 'color:{{val}}'],
9479 + ),
9480 + 'typography' => array(
9481 + 'type' => 'typography',
9482 + 'label' => __pl('typography'),
9483 + 'css' => ['{{element}} .pagelayer-phone *, {{element}} .pagelayer-phone' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px !important; font-style: {{val[2]}} !important; font-weight: {{val[3]}} !important; font-variant: {{val[4]}} !important; text-decoration-line: {{val[5]}} !important; text-decoration-style: {{val[6]}} !important; line-height: {{val[7]}}em !important; text-transform: {{val[8]}} !important; letter-spacing: {{val[9]}}px !important; word-spacing: {{val[10]}}px !important;'],
9484 + ),
9485 + 'align' => array(
9486 + 'type' => 'radio',
9487 + 'label' => __pl('alignment'),
9488 + 'screen' => 1,
9489 + 'list' => [
9490 + 'flex-start' => __pl('left'),
9491 + 'center' => __pl('center'),
9492 + 'flex-end' => __pl('right'),
9493 + ],
9494 + 'css' => ['{{element}} .pagelayer-phone-holder' => 'justify-content: {{val}}'],
9495 + ),
9496 + 'space' => array(
9497 + 'type' => 'slider',
9498 + 'label' => __pl('space'),
9499 + 'min' => 0,
9500 + 'max' => 100,
9501 + 'step' => 1,
9502 + 'screen' => 1,
9503 + 'css' => ['body:not(.rtl) {{element}} .pagelayer-phone-icon' => 'margin-right: {{val}}px;', 'body.rtl {{element}} .pagelayer-phone-icon' => 'margin-left:{{val}}px']
9504 + ),
9505 + ),
9506 + 'icon_style' =>[
9507 + 'icon' => array(
9508 + 'type' => 'icon',
9509 + 'label' => __pl('icon'),
9510 + 'default' => 'fas fa-phone-alt'
9511 + ),
9512 + 'icon_color' => array(
9513 + 'type' => 'color',
9514 + 'label' => __pl('color'),
9515 + 'css' => ['{{element}} .pagelayer-phone-icon i' => 'color:{{val}}'],
9516 + ),
9517 + 'icon_size' => array(
9518 + 'type' => 'slider',
9519 + 'label' => __pl('size'),
9520 + 'min' => 0,
9521 + 'max' => 100,
9522 + 'step' => 1,
9523 + 'screen' => 1,
9524 + 'css' => ['{{element}} .pagelayer-phone-icon i' => 'font-size: {{val}}px;']
9525 + ),
9526 + ],
9527 + 'styles' => [
9528 + 'icon_style' => __pl('icon_style')
9529 + ]
9530 + )
9531 +);
9532 +
9533 +// Body Settings
9534 +pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_post_props', array(
9535 + 'name' => __pl('Body and Post Props'),
9536 + 'group' => 'other',
9537 + 'not_visible' => 1,
9538 + 'parent' => [], // To hide on left panel block list
9539 + 'overide_css_selector' => pagelayer_is_gutenberg_editor() ? '{{element}}' : 'body', // To prevent apply style in gutenberg, we use .pagelayer-body class, that is not exists in gutenberg edit.
9540 + 'hide_active' => 1,
9541 + 'skip_props_cat_type' => ['product' => ['custom_hf_code']],
9542 + 'skip_props_cat' => ['position_styles', 'animation_styles', 'responsive_styles', 'motion_effects'],
9543 + 'skip_props' => ['ele_zindex',
9544 + 'ele_shadow', 'border_shadow_hover',
9545 + 'hide_desktop', 'hide_tablet', 'hide_mobile'],
9546 + 'params' => array(
9547 + 'post_title' => array(
9548 + 'type' => 'text',
9549 + 'label' => __pl('post_title'),
9550 + 'default' => (empty($post->post_title) ? 'No Title' : $post->post_title),
9551 + 'export-def' => 1,
9552 + ),
9553 + 'post_status' => array(
9554 + 'type' => 'select',
9555 + 'label' => __pl('visibility'),
9556 + 'default' => (empty($post->post_status) ? 'draft' : $post->post_status),
9557 + 'export-def' => 1,
9558 + 'list' => [
9559 + 'publish' => __pl('Published'),
9560 + 'future' => __pl('Scheduled'),
9561 + 'private' => __pl('private'),
9562 + 'pass_protected' => __pl('password_protected'),
9563 + 'draft' => __pl('Draft')
9564 + ],
9565 + ),
9566 + 'post_password' => array(
9567 + 'type' => 'text',
9568 + 'label' => __pl('password'),
9569 + 'export-def' => 1,
9570 + 'req' => ['post_status' => 'pass_protected']
9571 + ),
9572 + 'post_date' => array(
9573 + 'type' => 'postDate',
9574 + 'label' => __pl('publish_date'),
9575 + 'default' => (empty($post->post_date) ? current_time( 'mysql' ) : $post->post_date),
9576 + 'export-def' => 1,
9577 + ),
9578 + 'post_sticky' => array(
9579 + 'type' => 'checkbox',
9580 + 'label' => __pl('sticky_post'),
9581 + 'default' => (!empty($post->ID) && is_sticky($post->ID) ? 'true' : ''),
9582 + 'export-def' => 1,
9583 + ),
9584 + 'post_author' => array(
9585 + 'type' => 'select',
9586 + 'label' => __pl('author'),
9587 + 'default' => (empty($post->post_author) ? 0 : $post->post_author),
9588 + 'list' => [],
9589 + 'export-def' => 1,
9590 + ),
9591 + 'post_trash' => array(
9592 + 'type' => 'trashButton',
9593 + 'label' => '',
9594 + ),
9595 + ),
9596 + 'postPermalink' => array(
9597 + 'post_name' => array(
9598 + 'type' => 'permalink',
9599 + 'label' => __pl('url_slug'),
9600 + 'desc' => __pl('perma_desc'),
9601 + 'default' => (empty($post->post_name) ? '' : $post->post_name),
9602 + 'export-def' => 1,
9603 + ),
9604 + ),
9605 + 'postCategory' => array(
9606 + 'post_category' => array(
9607 + 'type' => 'postCategory',
9608 + 'label' => ''
9609 + )
9610 + ),
9611 + 'postTags' => array(
9612 + 'post_tags' => array(
9613 + 'type' => 'postTags',
9614 + 'label' => __pl('add_new_tag'),
9615 + 'desc' => __pl('post_tag_desc')
9616 + )
9617 + ),
9618 + 'postFeaturedImage' => array(
9619 + 'featured_image' => array(
9620 + 'type' => 'image',
9621 + 'label' => '',
9622 + 'default' => ( get_post_thumbnail_id($post) ? get_post_thumbnail_id($post) : PAGELAYER_URL.'/images/default-image.png' ),
9623 + 'export-def' => 1,
9624 + ),
9625 + ),
9626 + 'postExcerpt' => array(
9627 + 'post_excerpt' => array(
9628 + 'type' => 'textarea',
9629 + 'default' => ( empty($post->post_excerpt) ? '' : $post->post_excerpt),
9630 + 'export-def' => 1,
9631 + 'label' => __pl('write_an_excerpt'),
9632 + )
9633 + ),
9634 + 'postDiscussion' => array(
9635 + 'comment_status' => array(
9636 + 'type' => 'checkbox',
9637 + 'label' => __pl('allow_comments'),
9638 + ),
9639 + 'ping_status' => array(
9640 + 'type' => 'checkbox',
9641 + 'label' => __pl('allow_p_and_t'),
9642 + )
9643 + ),
9644 + 'pageParent' => array(
9645 + 'post_parent' => array(
9646 + 'type' => 'select',
9647 + 'label' => __pl('post_parent'),
9648 + 'list' => []
9649 + ),
9650 + 'menu_order' => array(
9651 + 'type' => 'spinner',
9652 + 'label' => __pl('order'),
9653 + )
9654 + ),
9655 + 'styles' => array(
9656 + 'params' => __pl('status_visibility'),
9657 + 'postPermalink' => __pl('post_name'),
9658 + 'postCategory' => __pl('wp_categories'),
9659 + 'postTags' => __pl('tags'),
9660 + 'postFeaturedImage' => __pl('featured_image'),
9661 + 'postExcerpt' => __pl('excerpt'),
9662 + 'postDiscussion' => __pl('discussion'),
9663 + 'pageParent' => __pl('page_attributes'),
9664 + ),
9665 + )
9666 +);
9667 +/*
9668 +$pagelayer->customizer_styles_options = array(
9669 +'params' => __pl('Site Identity'),
9670 +'breakpoint' => __pl('BreakPoints'),
9671 +'global' => __pl('Global Settings'),
9672 +'post_global' => __pl('Current Post Type Settings'),
9673 +'global_background' => __pl('Global Background'),
9674 +'global_button' => __pl('Global Buttons Style'),
9675 +);
9676 +
9677 +if(class_exists('WooCommerce')){
9678 + $pagelayer->customizer_styles_options['woocommerce'] = __pl('woocommerce');
9679 +}
9680 +
9681 +// Customizer Settings
9682 +pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_customizer', array(
9683 + 'name' => __pl('Customizer'),
9684 + 'group' => 'other',
9685 + 'overide_css_selector' => 'body',
9686 + 'hide_active' => 1,
9687 + 'skip_save' => 1,
9688 + 'skip_props_cat_type' => ['product' => ['custom_hf_code']],
9689 + 'skip_props_cat' => ['ele_bg_styles','ele_styles','border_styles','font_style','animation_styles','motion_effects','responsive_styles','attributes','custom_styles','position_styles', 'animation_styles', 'responsive_styles', 'motion_effects'],
9690 + 'skip_props' => ['ele_zindex', 'font_family', 'ele_shadow', 'border_shadow_hover', 'hide_desktop', 'hide_tablet', 'hide_mobile'],
9691 + 'params' => array(
9692 + 'site_name' => array(
9693 + 'type' => 'text',
9694 + 'label' => __pl('Site Name'),
9695 + 'option' => 'blogname',
9696 + ),
9697 + 'site_description' => array(
9698 + 'type' => 'text',
9699 + 'label' => __pl('Site Description'),
9700 + 'option' => 'blogdescription',
9701 + ),
9702 + 'site_logo' => array(
9703 + 'type' => 'image',
9704 + 'label' => __pl('Site Logo'),
9705 + 'option' => 'site_logo',
9706 + ),
9707 + 'site_icon' => array(
9708 + 'type' => 'image',
9709 + 'label' => __pl('Site Fav Icon'),
9710 + 'option' => 'site_icon',
9711 + ),
9712 + ),
9713 + 'breakpoint' => array(
9714 + 'content_width' => array(
9715 + 'type' => 'slider',
9716 + 'label' => __pl('Content Width'),
9717 + 'option' => 'pagelayer_content_width',
9718 + 'min' => 320,
9719 + 'max' => 2000,
9720 + 'css' =>['.pagelayer-row-stretch-auto > .pagelayer-row-holder'=>'max-width:{{val}}px;margin-left:auto;margin-right:auto'],
9721 + ),
9722 + 'widgets_space' => array(
9723 + 'type' => 'slider',
9724 + 'label' => __pl('Widgets Space'),
9725 + 'option' => 'pagelayer_between_widgets',
9726 + 'min' => 0,
9727 + 'max' => 2000,
9728 + ),
9729 + 'mobile_breakpoint' => array(
9730 + 'type' => 'slider',
9731 + 'label' => __pl('Mobile Breakpoint'),
9732 + 'option' => 'pagelayer_mobile_breakpoint',
9733 + 'min' => 0,
9734 + 'max' => 2000,
9735 + ),
9736 + 'tablet_breakpoint' => array(
9737 + 'type' => 'slider',
9738 + 'label' => __pl('Tablet Breakpoint'),
9739 + 'option' => 'pagelayer_tablet_breakpoint',
9740 + 'min' => 0,
9741 + 'max' => 2000,
9742 + ),
9743 + ),
9744 + 'global' => array(
9745 + 'ele_body_group' => array(
9746 + 'type' => 'access',
9747 + 'label' => __pl('Body Settings'),
9748 + 'show_group' => 'body_group',
9749 + ),
9750 + 'ele_header_group' => array(
9751 + 'type' => 'access',
9752 + 'label' => __pl('Header Settings'),
9753 + 'show_group' => 'header_group',
9754 + ),
9755 + 'ele_h1_group' => array(
9756 + 'type' => 'access',
9757 + 'label' => __pl('H1 Settings'),
9758 + 'show_group' => 'h1_group',
9759 + ),
9760 + 'ele_h2_group' => array(
9761 + 'type' => 'access',
9762 + 'label' => __pl('H2 Settings'),
9763 + 'show_group' => 'h2_group',
9764 + ),
9765 + 'ele_h3_group' => array(
9766 + 'type' => 'access',
9767 + 'label' => __pl('H3 Settings'),
9768 + 'show_group' => 'h3_group',
9769 + ),
9770 + 'ele_h4_group' => array(
9771 + 'type' => 'access',
9772 + 'label' => __pl('H4 Group'),
9773 + 'show_group' => 'h4_group',
9774 + ),
9775 + 'ele_h5_group' => array(
9776 + 'type' => 'access',
9777 + 'label' => __pl('H5 Settings'),
9778 + 'show_group' => 'h5_group',
9779 + ),
9780 + 'ele_h6_group' => array(
9781 + 'type' => 'access',
9782 + 'label' => __pl('H6 Settings'),
9783 + 'show_group' => 'h6_group',
9784 + ),
9785 + 'ele_b_group' => array(
9786 + 'type' => 'access',
9787 + 'label' => __pl('B Settings'),
9788 + 'show_group' => 'b_group',
9789 + ),
9790 + 'ele_i_group' => array(
9791 + 'type' => 'access',
9792 + 'label' => __pl('I Settings'),
9793 + 'show_group' => 'i_group',
9794 + ),
9795 + 'ele_a_group' => array(
9796 + 'type' => 'access',
9797 + 'label' => __pl('A Settings'),
9798 + 'show_group' => 'a_group',
9799 + ),
9800 + 'ele_a_hover_group' => array(
9801 + 'type' => 'access',
9802 + 'label' => __pl('A Hover Settings'),
9803 + 'show_group' => 'a_hover_group',
9804 + ),
9805 + 'ele_aside_group' => array(
9806 + 'type' => 'access',
9807 + 'label' => __pl('Aside Settings'),
9808 + 'show_group' => 'aside_group',
9809 + ),
9810 + 'ele_p_group' => array(
9811 + 'type' => 'access',
9812 + 'label' => __pl('P Settings'),
9813 + 'show_group' => 'p_group',
9814 + ),
9815 + 'ele_entry_header_group' => array(
9816 + 'type' => 'access',
9817 + 'label' => __pl('Header Settings'),
9818 + 'show_group' => 'entry_header_group',
9819 + ),
9820 + 'ele_entry_content_group' => array(
9821 + 'type' => 'access',
9822 + 'label' => __pl('Content Settings'),
9823 + 'show_group' => 'content_group',
9824 + ),
9825 + 'ele_entry_footer_group' => array(
9826 + 'type' => 'access',
9827 + 'label' => __pl('Footer Settings'),
9828 + 'show_group' => 'footer_group',
9829 + ),
9830 + 'body' => array(
9831 + 'type' => 'typography',
9832 + 'label' => __pl('body'),
9833 + 'group' => 'body_group',
9834 + 'css' => ['body.pagelayer-body' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9835 + ),
9836 + 'header' => array(
9837 + 'type' => 'typography',
9838 + 'label' => __pl('header'),
9839 + 'group' => 'header_group',
9840 + 'css' => ['body.pagelayer-body header' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9841 + ),
9842 + 'h1' => array(
9843 + 'type' => 'typography',
9844 + 'label' => __pl('h1'),
9845 + 'group' => 'h1_group',
9846 + 'css' => ['body.pagelayer-body h1' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9847 + ),
9848 + 'h2' => array(
9849 + 'type' => 'typography',
9850 + 'label' => __pl('h2'),
9851 + 'group' => 'h2_group',
9852 + 'css' => ['body.pagelayer-body h2' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9853 + ),
9854 + 'h3' => array(
9855 + 'type' => 'typography',
9856 + 'label' => __pl('h3'),
9857 + 'group' => 'h3_group',
9858 + 'css' => ['body.pagelayer-body h3' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9859 + ),
9860 + 'h4' => array(
9861 + 'type' => 'typography',
9862 + 'label' => __pl('h4'),
9863 + 'group' => 'h4_group',
9864 + 'css' => ['body.pagelayer-body h4' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9865 + ),
9866 + 'h5' => array(
9867 + 'type' => 'typography',
9868 + 'label' => __pl('h5'),
9869 + 'group' => 'h5_group',
9870 + 'css' => ['body.pagelayer-body h5' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9871 + ),
9872 + 'h6' => array(
9873 + 'type' => 'typography',
9874 + 'label' => __pl('h6'),
9875 + 'group' => 'h6_group',
9876 + 'css' => ['body.pagelayer-body h6' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9877 + ),
9878 + 'b' => array(
9879 + 'type' => 'typography',
9880 + 'label' => __pl('b'),
9881 + 'group' => 'b_group',
9882 + 'css' => ['body.pagelayer-body b' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9883 + ),
9884 + 'i' => array(
9885 + 'type' => 'typography',
9886 + 'label' => __pl('i'),
9887 + 'group' => 'i_group',
9888 + 'css' => ['body.pagelayer-body i' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9889 + ),
9890 + 'a' => array(
9891 + 'type' => 'typography',
9892 + 'label' => __pl('a'),
9893 + 'group' => 'a_group',
9894 + 'css' => ['body.pagelayer-body a' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9895 + ),
9896 + 'a_hover' => array(
9897 + 'type' => 'typography',
9898 + 'label' => __pl('a-hover'),
9899 + 'group' => 'a_hover_group',
9900 + 'css' => ['body.pagelayer-body a:hover' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9901 + ),
9902 + 'aside' => array(
9903 + 'type' => 'typography',
9904 + 'label' => __pl('aside'),
9905 + 'group' => 'aside_group',
9906 + 'css' => ['body.pagelayer-body p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9907 + ),
9908 + 'p' => array(
9909 + 'type' => 'typography',
9910 + 'label' => __pl('p'),
9911 + 'group' => 'p_group',
9912 + 'css' => ['body.pagelayer-body p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9913 + ),
9914 + 'entry-header' => array(
9915 + 'type' => 'typography',
9916 + 'label' => __pl('entry-header'),
9917 + 'group' => 'entry_header_group',
9918 + 'css' => ['body.pagelayer-body .entry-header' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9919 + ),
9920 + 'entry_content' => array(
9921 + 'type' => 'typography',
9922 + 'label' => __pl('entry-content'),
9923 + 'group' => 'content_group',
9924 + 'css' => ['body.pagelayer-body .entry-content' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9925 + ),
9926 + 'entry_footer' => array(
9927 + 'type' => 'typography',
9928 + 'label' => __pl('entry-footer'),
9929 + 'group' => 'footer_group',
9930 + 'css' => ['body.pagelayer-body .entry-footer' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
9931 + ),
9932 + 'body_color' => array(
9933 + 'type' => 'color',
9934 + 'screen' => 1,
9935 + 'label' => __pl('body_color'),
9936 + 'group' => 'body_group',
9937 + 'css' => ['body.pagelayer-body' => 'color:{{val}};'],
9938 + ),
9939 + 'header_color' => array(
9940 + 'type' => 'color',
9941 + 'screen' => 1,
9942 + 'group' => 'header_group',
9943 + 'label' => __pl('header_color'),
9944 + 'css' => ['body.pagelayer-body header' => 'color:{{val}};'],
9945 + ),
9946 + 'h1_color' => array(
9947 + 'type' => 'color',
9948 + 'screen' => 1,
9949 + 'group' => 'h1_group',
9950 + 'label' => __pl('h1_color'),
9951 + 'css' => ['body.pagelayer-body h1' => 'color:{{val}};'],
9952 + ),
9953 + 'h2_color' => array(
9954 + 'type' => 'color',
9955 + 'screen' => 1,
9956 + 'group' => 'h2_group',
9957 + 'label' => __pl('h2_color'),
9958 + 'css' => ['body.pagelayer-body h2' => 'color:{{val}};'],
9959 + ),
9960 + 'h3_color' => array(
9961 + 'type' => 'color',
9962 + 'screen' => 1,
9963 + 'group' => 'h3_group',
9964 + 'label' => __pl('h3_color'),
9965 + 'css' => ['body.pagelayer-body h3' => 'color:{{val}};'],
9966 + ),
9967 + 'h4_color' => array(
9968 + 'type' => 'color',
9969 + 'screen' => 1,
9970 + 'group' => 'h4_group',
9971 + 'label' => __pl('h4_color'),
9972 + 'css' => ['body.pagelayer-body h4' => 'color:{{val}};'],
9973 + ),
9974 + 'h5_color' => array(
9975 + 'type' => 'color',
9976 + 'screen' => 1,
9977 + 'group' => 'h5_group',
9978 + 'label' => __pl('h5_color'),
9979 + 'css' => ['body.pagelayer-body h5' => 'color:{{val}};'],
9980 + ),
9981 + 'h6_color' => array(
9982 + 'type' => 'color',
9983 + 'screen' => 1,
9984 + 'group' => 'h6_group',
9985 + 'label' => __pl('h6_color'),
9986 + 'css' => ['body.pagelayer-body h6' => 'color:{{val}};'],
9987 + ),
9988 + 'b_color' => array(
9989 + 'type' => 'color',
9990 + 'screen' => 1,
9991 + 'group' => 'b_group',
9992 + 'label' => __pl('b_color'),
9993 + 'css' => ['body.pagelayer-body b' => 'color:{{val}};'],
9994 + ),
9995 + 'i_color' => array(
9996 + 'type' => 'color',
9997 + 'screen' => 1,
9998 + 'group' => 'i_group',
9999 + 'label' => __pl('i_color'),
10000 + 'css' => ['body.pagelayer-body i' => 'color:{{val}};'],
10001 + ),
10002 + 'a_color' => array(
10003 + 'type' => 'color',
10004 + 'screen' => 1,
10005 + 'group' => 'a_group',
10006 + 'label' => __pl('a_color'),
10007 + 'css' => ['body.pagelayer-body a' => 'color:{{val}};'],
10008 + ),
10009 + 'a-hover_color' => array(
10010 + 'type' => 'color',
10011 + 'screen' => 1,
10012 + 'group' => 'a_hover_group',
10013 + 'label' => __pl('a_hover_color'),
10014 + 'css' => ['body.pagelayer-body a:hover' => 'color:{{val}};'],
10015 + ),
10016 + 'aside_color' => array(
10017 + 'type' => 'color',
10018 + 'screen' => 1,
10019 + 'group' => 'aside_group',
10020 + 'label' => __pl('aside_color'),
10021 + 'css' => ['body.pagelayer-body aside' => 'color:{{val}};'],
10022 + ),
10023 + 'p_color' => array(
10024 + 'type' => 'color',
10025 + 'screen' => 1,
10026 + 'group' => 'p_group',
10027 + 'label' => __pl('p_color'),
10028 + 'css' => ['body.pagelayer-body p' => 'color:{{val}};'],
10029 + ),
10030 + 'entry-header_color' => array(
10031 + 'type' => 'color',
10032 + 'screen' => 1,
10033 + 'group' => 'entry_header_group',
10034 + 'label' => __pl('entry_header_color'),
10035 + 'css' => ['body.pagelayer-body .entry-header' => 'color:{{val}};'],
10036 + ),
10037 + 'entry-content_color' => array(
10038 + 'type' => 'color',
10039 + 'screen' => 1,
10040 + 'group' => 'content_group',
10041 + 'label' => __pl('entry_content_color'),
10042 + 'css' => ['body.pagelayer-body .entry-content' => 'color:{{val}};'],
10043 + ),
10044 + 'entry-footer_color' => array(
10045 + 'type' => 'color',
10046 + 'screen' => 1,
10047 + 'group' => 'footer_group',
10048 + 'label' => __pl('entry_footer_color'),
10049 + 'css' => ['body.pagelayer-body .entry-footer' => 'color:{{val}};'],
10050 + ),
10051 + 'body_background_color' => array(
10052 + 'type' => 'color',
10053 + 'screen' => 1,
10054 + 'group' => 'body_group',
10055 + 'label' => __pl('body_background_color'),
10056 + 'css' => ['body.pagelayer-body' => 'background-color:{{val}};'],
10057 + ),
10058 + 'header_background_color' => array(
10059 + 'type' => 'color',
10060 + 'screen' => 1,
10061 + 'group' => 'header_group',
10062 + 'label' => __pl('header_background_color'),
10063 + 'css' => ['body.pagelayer-body header' => 'background-color:{{val}};'],
10064 + ),
10065 + 'h1_background_color' => array(
10066 + 'type' => 'color',
10067 + 'screen' => 1,
10068 + 'group' => 'h1_group',
10069 + 'label' => __pl('h1_background_color'),
10070 + 'css' => ['body.pagelayer-body h1' => 'background-color:{{val}};'],
10071 + ),
10072 + 'h2_background_color' => array(
10073 + 'type' => 'color',
10074 + 'screen' => 1,
10075 + 'group' => 'h2_group',
10076 + 'label' => __pl('h2_background_color'),
10077 + 'css' => ['body.pagelayer-body h2' => 'background-color:{{val}};'],
10078 + ),
10079 + 'h3_background_color' => array(
10080 + 'type' => 'color',
10081 + 'screen' => 1,
10082 + 'group' => 'h3_group',
10083 + 'label' => __pl('h3_background_color'),
10084 + 'css' => ['body.pagelayer-body h3' => 'background-color:{{val}};'],
10085 + ),
10086 + 'h4_background_color' => array(
10087 + 'type' => 'color',
10088 + 'screen' => 1,
10089 + 'group' => 'h4_group',
10090 + 'label' => __pl('h4_background_color'),
10091 + 'css' => ['body.pagelayer-body h4' => 'background-color:{{val}};'],
10092 + ),
10093 + 'h5_background_color' => array(
10094 + 'type' => 'color',
10095 + 'screen' => 1,
10096 + 'group' => 'h5_group',
10097 + 'label' => __pl('h5_background_color'),
10098 + 'css' => ['body.pagelayer-body h5' => 'background-color:{{val}};'],
10099 + ),
10100 + 'h6_background_color' => array(
10101 + 'type' => 'color',
10102 + 'screen' => 1,
10103 + 'group' => 'h6_group',
10104 + 'label' => __pl('h6_background_color'),
10105 + 'css' => ['body.pagelayer-body h6' => 'background-color:{{val}};'],
10106 + ),
10107 + 'b_background_color' => array(
10108 + 'type' => 'color',
10109 + 'screen' => 1,
10110 + 'group' => 'b_group',
10111 + 'label' => __pl('b_background_color'),
10112 + 'css' => ['body.pagelayer-body b' => 'background-color:{{val}};'],
10113 + ),
10114 + 'i_background_color' => array(
10115 + 'type' => 'color',
10116 + 'screen' => 1,
10117 + 'group' => 'i_group',
10118 + 'label' => __pl('i_background_color'),
10119 + 'css' => ['body.pagelayer-body i' => 'background-color:{{val}};'],
10120 + ),
10121 + 'a_background_color' => array(
10122 + 'type' => 'color',
10123 + 'screen' => 1,
10124 + 'group' => 'a_group',
10125 + 'label' => __pl('a_background_color'),
10126 + 'css' => ['body.pagelayer-body a' => 'background-color:{{val}};'],
10127 + ),
10128 + 'a-hover_background_color' => array(
10129 + 'type' => 'color',
10130 + 'screen' => 1,
10131 + 'group' => 'a_hover_group',
10132 + 'label' => __pl('a_hover_background_color'),
10133 + 'css' => ['body.pagelayer-body a:hover' => 'background-color:{{val}};'],
10134 + ),
10135 + 'aside_background_color' => array(
10136 + 'type' => 'color',
10137 + 'screen' => 1,
10138 + 'group' => 'aside_group',
10139 + 'label' => __pl('aside_background_color'),
10140 + 'css' => ['body.pagelayer-body aside' => 'background-color:{{val}};'],
10141 + ),
10142 + 'p_background_color' => array(
10143 + 'type' => 'color',
10144 + 'screen' => 1,
10145 + 'group' => 'p_group',
10146 + 'label' => __pl('p_background_color'),
10147 + 'css' => ['body.pagelayer-body p' => 'background-color:{{val}};'],
10148 + ),
10149 + 'entry-header_background_color' => array(
10150 + 'type' => 'color',
10151 + 'screen' => 1,
10152 + 'group' => 'entry_header_group',
10153 + 'label' => __pl('entry_header_background_color'),
10154 + 'css' => ['body.pagelayer-body .entry-header' => 'background-color:{{val}};'],
10155 + ),
10156 + 'entry-content_background_color' => array(
10157 + 'type' => 'color',
10158 + 'screen' => 1,
10159 + 'group' => 'content_group',
10160 + 'label' => __pl('entry_content_background_color'),
10161 + 'css' => ['body.pagelayer-body .entry-content' => 'background-color:{{val}};'],
10162 + ),
10163 + 'entry-footer_background_color' => array(
10164 + 'type' => 'color',
10165 + 'screen' => 1,
10166 + 'group' => 'footer_group',
10167 + 'label' => __pl('entry_footer_background_color'),
10168 + 'css' => ['body.pagelayer-body .entry-footer' => 'background-color:{{val}};'],
10169 + ),
10170 + 'body_padding' => array(
10171 + 'type' => 'padding',
10172 + 'label' => __pl('body_padding'),
10173 + 'screen' => 1,
10174 + 'group' => 'body_group',
10175 + 'css' => ['body.pagelayer-body' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10176 + ),
10177 + 'body_margin' => array(
10178 + 'type' => 'padding',
10179 + 'label' => __pl('body_margin'),
10180 + 'screen' => 1,
10181 + 'group' => 'body_group',
10182 + 'css' => ['body.pagelayer-body' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10183 + ),
10184 + 'header_padding' => array(
10185 + 'type' => 'padding',
10186 + 'label' => __pl('header_padding'),
10187 + 'screen' => 1,
10188 + 'group' => 'header_group',
10189 + 'css' => ['body.pagelayer-body header' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10190 + ),
10191 + 'header_margin' => array(
10192 + 'type' => 'padding',
10193 + 'label' => __pl('header_margin'),
10194 + 'screen' => 1,
10195 + 'group' => 'header_group',
10196 + 'css' => ['body.pagelayer-body header' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10197 + ),
10198 + 'h1_padding' => array(
10199 + 'type' => 'padding',
10200 + 'label' => __pl('h1_padding'),
10201 + 'screen' => 1,
10202 + 'group' => 'h1_group',
10203 + 'css' => ['body.pagelayer-body h1' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10204 + ),
10205 + 'h1_margin' => array(
10206 + 'type' => 'padding',
10207 + 'label' => __pl('h1_margin'),
10208 + 'screen' => 1,
10209 + 'group' => 'h1_group',
10210 + 'css' => ['body.pagelayer-body h1' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10211 + ),
10212 + 'h2_padding' => array(
10213 + 'type' => 'padding',
10214 + 'label' => __pl('h2_padding'),
10215 + 'screen' => 1,
10216 + 'group' => 'h2_group',
10217 + 'css' => ['body.pagelayer-body h2' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10218 + ),
10219 + 'h2_margin' => array(
10220 + 'type' => 'padding',
10221 + 'label' => __pl('h2_margin'),
10222 + 'screen' => 1,
10223 + 'group' => 'h2_group',
10224 + 'css' => ['body.pagelayer-body h2' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10225 + ),
10226 + 'h3_padding' => array(
10227 + 'type' => 'padding',
10228 + 'label' => __pl('h3_padding'),
10229 + 'screen' => 1,
10230 + 'group' => 'h3_group',
10231 + 'css' => ['body.pagelayer-body h3' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10232 + ),
10233 + 'h3_margin' => array(
10234 + 'type' => 'padding',
10235 + 'label' => __pl('h3_margin'),
10236 + 'screen' => 1,
10237 + 'group' => 'h3_group',
10238 + 'css' => ['body.pagelayer-body h3' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10239 + ),
10240 + 'h4_padding' => array(
10241 + 'type' => 'padding',
10242 + 'label' => __pl('h4_padding'),
10243 + 'screen' => 1,
10244 + 'group' => 'h4_group',
10245 + 'css' => ['body.pagelayer-body h4' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10246 + ),
10247 + 'h4_margin' => array(
10248 + 'type' => 'padding',
10249 + 'label' => __pl('h4_margin'),
10250 + 'screen' => 1,
10251 + 'group' => 'h4_group',
10252 + 'css' => ['body.pagelayer-body h4' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10253 + ),
10254 + 'h5_padding' => array(
10255 + 'type' => 'padding',
10256 + 'label' => __pl('h5_padding'),
10257 + 'screen' => 1,
10258 + 'group' => 'h5_group',
10259 + 'css' => ['body.pagelayer-body h5' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10260 + ),
10261 + 'h5_margin' => array(
10262 + 'type' => 'padding',
10263 + 'label' => __pl('h5_margin'),
10264 + 'screen' => 1,
10265 + 'group' => 'h5_group',
10266 + 'css' => ['body.pagelayer-body h5' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10267 + ),
10268 + 'h6_padding' => array(
10269 + 'type' => 'padding',
10270 + 'label' => __pl('h6_padding'),
10271 + 'screen' => 1,
10272 + 'group' => 'h6_group',
10273 + 'css' => ['body.pagelayer-body h6' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10274 + ),
10275 + 'h6_margin' => array(
10276 + 'type' => 'padding',
10277 + 'label' => __pl('h6_margin'),
10278 + 'screen' => 1,
10279 + 'group' => 'h6_group',
10280 + 'css' => ['body.pagelayer-body h6' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10281 + ),
10282 + 'b_padding' => array(
10283 + 'type' => 'padding',
10284 + 'label' => __pl('b_padding'),
10285 + 'screen' => 1,
10286 + 'group' => 'b_group',
10287 + 'css' => ['body.pagelayer-body b' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10288 + ),
10289 + 'b_margin' => array(
10290 + 'type' => 'padding',
10291 + 'label' => __pl('b_margin'),
10292 + 'screen' => 1,
10293 + 'group' => 'b_group',
10294 + 'css' => ['body.pagelayer-body b' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10295 + ),
10296 + 'i_padding' => array(
10297 + 'type' => 'padding',
10298 + 'label' => __pl('i_padding'),
10299 + 'screen' => 1,
10300 + 'group' => 'i_group',
10301 + 'css' => ['body.pagelayer-body i' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10302 + ),
10303 + 'i_margin' => array(
10304 + 'type' => 'padding',
10305 + 'label' => __pl('i_margin'),
10306 + 'screen' => 1,
10307 + 'group' => 'i_group',
10308 + 'css' => ['body.pagelayer-body i' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10309 + ),
10310 + 'a_padding' => array(
10311 + 'type' => 'padding',
10312 + 'label' => __pl('a_padding'),
10313 + 'screen' => 1,
10314 + 'group' => 'a_group',
10315 + 'css' => ['body.pagelayer-body a' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10316 + ),
10317 + 'a_margin' => array(
10318 + 'type' => 'padding',
10319 + 'label' => __pl('a_margin'),
10320 + 'screen' => 1,
10321 + 'group' => 'a_group',
10322 + 'css' => ['body.pagelayer-body a' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10323 + ),
10324 + 'a-hover_padding' => array(
10325 + 'type' => 'padding',
10326 + 'label' => __pl('_-hover_padding'),
10327 + 'screen' => 1,
10328 + 'group' => 'a_hover_group',
10329 + 'css' => ['body.pagelayer-body a:hover' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10330 + ),
10331 + 'a-hover_margin' => array(
10332 + 'type' => 'padding',
10333 + 'label' => __pl('a_hover_margin'),
10334 + 'screen' => 1,
10335 + 'group' => 'a_hover_group',
10336 + 'css' => ['body.pagelayer-body a:hover' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10337 + ),
10338 + 'aside_padding' => array(
10339 + 'type' => 'padding',
10340 + 'label' => __pl('aside_padding'),
10341 + 'screen' => 1,
10342 + 'group' => 'aside_group',
10343 + 'css' => ['body.pagelayer-body aside' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10344 + ),
10345 + 'aside_margin' => array(
10346 + 'type' => 'padding',
10347 + 'label' => __pl('aside_margin'),
10348 + 'screen' => 1,
10349 + 'group' => 'aside_group',
10350 + 'css' => ['body.pagelayer-body aside' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10351 + ),
10352 + 'p_padding' => array(
10353 + 'type' => 'padding',
10354 + 'label' => __pl('p_padding'),
10355 + 'screen' => 1,
10356 + 'group' => 'p_group',
10357 + 'css' => ['body.pagelayer-body p' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10358 + ),
10359 + 'p_margin' => array(
10360 + 'type' => 'padding',
10361 + 'label' => __pl('p_margin'),
10362 + 'screen' => 1,
10363 + 'group' => 'p_group',
10364 + 'css' => ['body.pagelayer-body p' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10365 + ),
10366 + 'entry-header_padding' => array(
10367 + 'type' => 'padding',
10368 + 'label' => __pl('entry_header_padding'),
10369 + 'screen' => 1,
10370 + 'group' => 'entry_header_group',
10371 + 'css' => ['body.pagelayer-body .entry-header' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10372 + ),
10373 + 'entry-header_margin' => array(
10374 + 'type' => 'padding',
10375 + 'label' => __pl('entry_header_margin'),
10376 + 'screen' => 1,
10377 + 'group' => 'entry_header_group',
10378 + 'css' => ['body.pagelayer-body .entry-header' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10379 + ),
10380 + 'entry-content_padding' => array(
10381 + 'type' => 'padding',
10382 + 'label' => __pl('entry_content_padding'),
10383 + 'screen' => 1,
10384 + 'group' => 'content_group',
10385 + 'css' => ['body.pagelayer-body .entry-content' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10386 + ),
10387 + 'entry-content_margin' => array(
10388 + 'type' => 'padding',
10389 + 'label' => __pl('entry_content_margin'),
10390 + 'screen' => 1,
10391 + 'group' => 'content_group',
10392 + 'css' => ['body.pagelayer-body .entry-content' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10393 + ),
10394 + 'entry-footer_padding' => array(
10395 + 'type' => 'padding',
10396 + 'label' => __pl('entry_footer_padding'),
10397 + 'screen' => 1,
10398 + 'group' => 'footer_group',
10399 + 'css' => ['body.pagelayer-body .entry-footer' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10400 + ),
10401 + 'entry-footer_margin' => array(
10402 + 'type' => 'padding',
10403 + 'label' => __pl('entry_footer_margin'),
10404 + 'screen' => 1,
10405 + 'group' => 'footer_group',
10406 + 'css' => ['body.pagelayer-body .entry-footer' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10407 + ),
10408 + ),
10409 + 'post_global' => array(
10410 + 'post_body_group' => array(
10411 + 'type' => 'access',
10412 + 'label' => __pl('Body Settings'),
10413 + 'show_group' => 'post_body_group',
10414 + ),
10415 + 'post_header_group' => array(
10416 + 'type' => 'access',
10417 + 'label' => __pl('Header Settings'),
10418 + 'show_group' => 'post_header_group',
10419 + ),
10420 + 'post_h1_group' => array(
10421 + 'type' => 'access',
10422 + 'label' => __pl('H1 Settings'),
10423 + 'show_group' => 'post_h1_group',
10424 + ),
10425 + 'post_h2_group' => array(
10426 + 'type' => 'access',
10427 + 'label' => __pl('H2 Settings'),
10428 + 'show_group' => 'post_h2_group',
10429 + ),
10430 + 'post_h3_group' => array(
10431 + 'type' => 'access',
10432 + 'label' => __pl('H3 Settings'),
10433 + 'show_group' => 'post_h3_group',
10434 + ),
10435 + 'post_h4_group' => array(
10436 + 'type' => 'access',
10437 + 'label' => __pl('H4 Group'),
10438 + 'show_group' => 'post_h4_group',
10439 + ),
10440 + 'post_h5_group' => array(
10441 + 'type' => 'access',
10442 + 'label' => __pl('H5 Settings'),
10443 + 'show_group' => 'post_h5_group',
10444 + ),
10445 + 'post_h6_group' => array(
10446 + 'type' => 'access',
10447 + 'label' => __pl('H6 Settings'),
10448 + 'show_group' => 'post_h6_group',
10449 + ),
10450 + 'post_b_group' => array(
10451 + 'type' => 'access',
10452 + 'label' => __pl('B Settings'),
10453 + 'show_group' => 'post_b_group',
10454 + ),
10455 + 'post_i_group' => array(
10456 + 'type' => 'access',
10457 + 'label' => __pl('I Settings'),
10458 + 'show_group' => 'post_i_group',
10459 + ),
10460 + 'post_a_group' => array(
10461 + 'type' => 'access',
10462 + 'label' => __pl('A Settings'),
10463 + 'show_group' => 'post_a_group',
10464 + ),
10465 + 'post_a_hover_group' => array(
10466 + 'type' => 'access',
10467 + 'label' => __pl('A Hover Settings'),
10468 + 'show_group' => 'post_a_hover_group',
10469 + ),
10470 + 'post_aside_group' => array(
10471 + 'type' => 'access',
10472 + 'label' => __pl('Aside Settings'),
10473 + 'show_group' => 'post_aside_group',
10474 + ),
10475 + 'post_p_group' => array(
10476 + 'type' => 'access',
10477 + 'label' => __pl('P Settings'),
10478 + 'show_group' => 'post_p_group',
10479 + ),
10480 + 'post_entry_header_group' => array(
10481 + 'type' => 'access',
10482 + 'label' => __pl('Header Settings'),
10483 + 'show_group' => 'post_entry_header_group',
10484 + ),
10485 + 'post_entry_content_group' => array(
10486 + 'type' => 'access',
10487 + 'label' => __pl('Content Settings'),
10488 + 'show_group' => 'post_content_group',
10489 + ),
10490 + 'post_entry_footer_group' => array(
10491 + 'type' => 'access',
10492 + 'label' => __pl('Footer Settings'),
10493 + 'show_group' => 'post_footer_group',
10494 + ),
10495 + 'current_body' => array(
10496 + 'type' => 'typography',
10497 + 'label' => __pl('current_body'),
10498 + 'group' => 'post_body_group',
10499 + 'customizer_mods' => 'pagelayer_body_typography_{{post_type}}',
10500 + 'customizer_css' => 1,
10501 + 'css' => ['body.pagelayer-body ' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10502 + ),
10503 + 'current_header' => array(
10504 + 'type' => 'typography',
10505 + 'label' => __pl('current_header'),
10506 + 'group' => 'post_header_group',
10507 + 'css' => ['body.pagelayer-body header' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10508 + ),
10509 + 'current_h1' => array(
10510 + 'type' => 'typography',
10511 + 'label' => __pl('current_h1'),
10512 + 'group' => 'post_h1_group',
10513 + 'css' => ['body.pagelayer-body h1' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10514 + ),
10515 + 'current_h2' => array(
10516 + 'type' => 'typography',
10517 + 'label' => __pl('current_h2'),
10518 + 'group' => 'post_h2_group',
10519 + 'css' => ['body.pagelayer-body h2' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10520 + ),
10521 + 'current_h3' => array(
10522 + 'type' => 'typography',
10523 + 'label' => __pl('current_h3'),
10524 + 'group' => 'post_h3_group',
10525 + 'css' => ['body.pagelayer-body h3' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10526 + ),
10527 + 'current_h4' => array(
10528 + 'type' => 'typography',
10529 + 'label' => __pl('current_h4'),
10530 + 'group' => 'post_h4_group',
10531 + 'css' => ['body.pagelayer-body h4' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10532 + ),
10533 + 'current_h5' => array(
10534 + 'type' => 'typography',
10535 + 'label' => __pl('current_h5'),
10536 + 'group' => 'post_h5_group',
10537 + 'css' => ['body.pagelayer-body h5' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10538 + ),
10539 + 'current_h6' => array(
10540 + 'type' => 'typography',
10541 + 'label' => __pl('current_h6'),
10542 + 'group' => 'post_h6_group',
10543 + 'css' => ['body.pagelayer-body h6' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10544 + ),
10545 + 'current_b' => array(
10546 + 'type' => 'typography',
10547 + 'label' => __pl('current_b'),
10548 + 'group' => 'post_b_group',
10549 + 'css' => ['body.pagelayer-body b' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10550 + ),
10551 + 'current_i' => array(
10552 + 'type' => 'typography',
10553 + 'label' => __pl('current_i'),
10554 + 'group' => 'post_i_group',
10555 + 'css' => ['body.pagelayer-body i' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10556 + ),
10557 + 'current_a' => array(
10558 + 'type' => 'typography',
10559 + 'label' => __pl('current_a'),
10560 + 'group' => 'post_a_group',
10561 + 'css' => ['body.pagelayer-body a' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10562 + ),
10563 + 'current_a-hover' => array(
10564 + 'type' => 'typography',
10565 + 'label' => __pl('current_a_hover'),
10566 + 'group' => 'post_a_hover_group',
10567 + 'css' => ['body.pagelayer-body a:hover' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10568 + ),
10569 + 'current_aside' => array(
10570 + 'type' => 'typography',
10571 + 'label' => __pl('current_aside'),
10572 + 'group' => 'post_aside_group',
10573 + 'css' => ['body.pagelayer-body p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10574 + ),
10575 + 'current_p' => array(
10576 + 'type' => 'typography',
10577 + 'label' => __pl('p'),
10578 + 'group' => 'post_p_group',
10579 + 'css' => ['body.pagelayer-body p' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10580 + ),
10581 + 'current_entry-header' => array(
10582 + 'type' => 'typography',
10583 + 'label' => __pl('current_entry_header'),
10584 + 'group' => 'post_entry_header_group',
10585 + 'css' => ['body.pagelayer-body .entry-header' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10586 + ),
10587 + 'current_entry-content' => array(
10588 + 'type' => 'typography',
10589 + 'label' => __pl('current_entry_content'),
10590 + 'group' => 'post_content_group',
10591 + 'css' => ['body.pagelayer-body .entry-content' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10592 + ),
10593 + 'current_entry-footer' => array(
10594 + 'type' => 'typography',
10595 + 'label' => __pl('current_entry_footer'),
10596 + 'group' => 'post_footer_group',
10597 + 'css' => ['body.pagelayer-body .entry-footer' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
10598 + ),
10599 + 'current_body_color' => array(
10600 + 'type' => 'color',
10601 + 'screen' => 1,
10602 + 'group' => 'post_body_group',
10603 + 'label' => __pl('current_body_color'),
10604 + 'css' => ['body.pagelayer-body ' => 'color:{{val}};'],
10605 + ),
10606 + 'current_header_color' => array(
10607 + 'type' => 'color',
10608 + 'screen' => 1,
10609 + 'group' => 'post_header_group',
10610 + 'label' => __pl('current_header_color'),
10611 + 'css' => ['body.pagelayer-body header' => 'color:{{val}};'],
10612 + ),
10613 + 'current_h1_color' => array(
10614 + 'type' => 'color',
10615 + 'screen' => 1,
10616 + 'group' => 'post_h1_group',
10617 + 'label' => __pl('current_h1_color'),
10618 + 'css' => ['body.pagelayer-body h1' => 'color:{{val}};'],
10619 + ),
10620 + 'current_h2_color' => array(
10621 + 'type' => 'color',
10622 + 'screen' => 1,
10623 + 'group' => 'post_h2_group',
10624 + 'label' => __pl('current_h2_color'),
10625 + 'css' => ['body.pagelayer-body h2' => 'color:{{val}};'],
10626 + ),
10627 + 'current_h3_color' => array(
10628 + 'type' => 'color',
10629 + 'screen' => 1,
10630 + 'group' => 'post_h3_group',
10631 + 'label' => __pl('current_h3_color'),
10632 + 'css' => ['body.pagelayer-body h3' => 'color:{{val}};'],
10633 + ),
10634 + 'current_h4_color' => array(
10635 + 'type' => 'color',
10636 + 'screen' => 1,
10637 + 'label' => __pl('current_h4_color'),
10638 + 'group' => 'post_h4_group',
10639 + 'css' => ['body.pagelayer-body h4' => 'color:{{val}};'],
10640 + ),
10641 + 'current_h5_color' => array(
10642 + 'type' => 'color',
10643 + 'screen' => 1,
10644 + 'group' => 'post_h5_group',
10645 + 'label' => __pl('current_h5_color'),
10646 + 'css' => ['body.pagelayer-body h5' => 'color:{{val}};'],
10647 + ),
10648 + 'current_h6_color' => array(
10649 + 'type' => 'color',
10650 + 'screen' => 1,
10651 + 'group' => 'post_h6_group',
10652 + 'label' => __pl('current_h6_color'),
10653 + 'css' => ['body.pagelayer-body h6' => 'color:{{val}};'],
10654 + ),
10655 + 'current_b_color' => array(
10656 + 'type' => 'color',
10657 + 'screen' => 1,
10658 + 'group' => 'post_b_group',
10659 + 'label' => __pl('current_b_color'),
10660 + 'css' => ['body.pagelayer-body b' => 'color:{{val}};'],
10661 + ),
10662 + 'current_i_color' => array(
10663 + 'type' => 'color',
10664 + 'screen' => 1,
10665 + 'group' => 'post_i_group',
10666 + 'label' => __pl('current_i_color'),
10667 + 'css' => ['body.pagelayer-body i' => 'color:{{val}};'],
10668 + ),
10669 + 'current_a_color' => array(
10670 + 'type' => 'color',
10671 + 'screen' => 1,
10672 + 'group' => 'post_a_group',
10673 + 'label' => __pl('current_a_color'),
10674 + 'css' => ['body.pagelayer-body a' => 'color:{{val}};'],
10675 + ),
10676 + 'current_a-hover_color' => array(
10677 + 'type' => 'color',
10678 + 'screen' => 1,
10679 + 'group' => 'post_a_hover_group',
10680 + 'label' => __pl('current_a_hover_color'),
10681 + 'css' => ['body.pagelayer-body a:hover' => 'color:{{val}};'],
10682 + ),
10683 + 'current_aside_color' => array(
10684 + 'type' => 'color',
10685 + 'screen' => 1,
10686 + 'group' => 'post_aside_group',
10687 + 'label' => __pl('current_aside_color'),
10688 + 'css' => ['body.pagelayer-body aside' => 'color:{{val}};'],
10689 + ),
10690 + 'current_p_color' => array(
10691 + 'type' => 'color',
10692 + 'screen' => 1,
10693 + 'group' => 'post_p_group',
10694 + 'label' => __pl('current_p_color'),
10695 + 'css' => ['body.pagelayer-body p' => 'color:{{val}};'],
10696 + ),
10697 + 'current_entry-header_color' => array(
10698 + 'type' => 'color',
10699 + 'screen' => 1,
10700 + 'group' => 'post_entry_header_group',
10701 + 'label' => __pl('current_entry_header_color'),
10702 + 'css' => ['body.pagelayer-body .entry-header' => 'color:{{val}};'],
10703 + ),
10704 + 'current_entry-content_color' => array(
10705 + 'type' => 'color',
10706 + 'screen' => 1,
10707 + 'group' => 'post_content_group',
10708 + 'label' => __pl('current_entry_content_color'),
10709 + 'css' => ['body.pagelayer-body .entry-content' => 'color:{{val}};'],
10710 + ),
10711 + 'current_entry-footer_color' => array(
10712 + 'type' => 'color',
10713 + 'screen' => 1,
10714 + 'group' => 'post_footer_group',
10715 + 'label' => __pl('current_entry_footer_color'),
10716 + 'css' => ['body.pagelayer-body .entry-footer' => 'color:{{val}};'],
10717 + ),
10718 + 'current_body_background_color' => array(
10719 + 'type' => 'color',
10720 + 'screen' => 1,
10721 + 'group' => 'post_body_group',
10722 + 'label' => __pl('current_body_background_color'),
10723 + 'css' => ['body.pagelayer-body ' => 'background-color:{{val}};'],
10724 + ),
10725 + 'current_header_background_color' => array(
10726 + 'type' => 'color',
10727 + 'screen' => 1,
10728 + 'group' => 'post_header_group',
10729 + 'label' => __pl('current_header_background_color'),
10730 + 'css' => ['body.pagelayer-body header' => 'background-color:{{val}};'],
10731 + ),
10732 + 'current_h1_background_color' => array(
10733 + 'type' => 'color',
10734 + 'screen' => 1,
10735 + 'group' => 'post_h1_group',
10736 + 'label' => __pl('current_h1_background_color'),
10737 + 'css' => ['body.pagelayer-body h1' => 'background-color:{{val}};'],
10738 + ),
10739 + 'current_h2_background_color' => array(
10740 + 'type' => 'color',
10741 + 'screen' => 1,
10742 + 'group' => 'post_h2_group',
10743 + 'label' => __pl('current_h2_background_color'),
10744 + 'css' => ['body.pagelayer-body h2' => 'background-color:{{val}};'],
10745 + ),
10746 + 'current_h3_background_color' => array(
10747 + 'type' => 'color',
10748 + 'screen' => 1,
10749 + 'group' => 'post_h3_group',
10750 + 'label' => __pl('current_h3_background_color'),
10751 + 'css' => ['body.pagelayer-body h3' => 'background-color:{{val}};'],
10752 + ),
10753 + 'current_h4_background_color' => array(
10754 + 'type' => 'color',
10755 + 'screen' => 1,
10756 + 'label' => __pl('current_h4_background_color'),
10757 + 'group' => 'post_h4_group',
10758 + 'css' => ['body.pagelayer-body h4' => 'background-color:{{val}};'],
10759 + ),
10760 + 'current_h5_background_color' => array(
10761 + 'type' => 'color',
10762 + 'screen' => 1,
10763 + 'group' => 'post_h5_group',
10764 + 'label' => __pl('current_h5_background_color'),
10765 + 'css' => ['body.pagelayer-body h5' => 'background-color:{{val}};'],
10766 + ),
10767 + 'current_h6_background_color' => array(
10768 + 'type' => 'color',
10769 + 'screen' => 1,
10770 + 'group' => 'post_h6_group',
10771 + 'label' => __pl('current_h6_background_color'),
10772 + 'css' => ['body.pagelayer-body h6' => 'background-color:{{val}};'],
10773 + ),
10774 + 'current_b_background_color' => array(
10775 + 'type' => 'color',
10776 + 'screen' => 1,
10777 + 'group' => 'post_b_group',
10778 + 'label' => __pl('current_b_background_color'),
10779 + 'css' => ['body.pagelayer-body b' => 'background-color:{{val}};'],
10780 + ),
10781 + 'current_i_background_color' => array(
10782 + 'type' => 'color',
10783 + 'screen' => 1,
10784 + 'group' => 'post_i_group',
10785 + 'label' => __pl('current_i_background_color'),
10786 + 'css' => ['body.pagelayer-body i' => 'background-color:{{val}};'],
10787 + ),
10788 + 'current_a_background_color' => array(
10789 + 'type' => 'color',
10790 + 'screen' => 1,
10791 + 'group' => 'post_a_group',
10792 + 'label' => __pl('current_a_background_color'),
10793 + 'css' => ['body.pagelayer-body a' => 'background-color:{{val}};'],
10794 + ),
10795 + 'current_a-hover_background_color' => array(
10796 + 'type' => 'color',
10797 + 'screen' => 1,
10798 + 'group' => 'post_a_hover_group',
10799 + 'label' => __pl('current_a_hover_background_color'),
10800 + 'css' => ['body.pagelayer-body a:hover' => 'background-color:{{val}};'],
10801 + ),
10802 + 'current_aside_background_color' => array(
10803 + 'type' => 'color',
10804 + 'screen' => 1,
10805 + 'group' => 'post_aside_group',
10806 + 'label' => __pl('current_aside_background_color'),
10807 + 'css' => ['body.pagelayer-body aside' => 'background-color:{{val}};'],
10808 + ),
10809 + 'current_p_background_color' => array(
10810 + 'type' => 'color',
10811 + 'screen' => 1,
10812 + 'group' => 'post_p_group',
10813 + 'label' => __pl('current_p_background_color'),
10814 + 'css' => ['body.pagelayer-body p' => 'background-color:{{val}};'],
10815 + ),
10816 + 'current_entry-header_background_color' => array(
10817 + 'type' => 'color',
10818 + 'screen' => 1,
10819 + 'group' => 'post_entry_header_group',
10820 + 'label' => __pl('current_entry_header_background_color'),
10821 + 'css' => ['body.pagelayer-body .entry-header' => 'background-color:{{val}};'],
10822 + ),
10823 + 'current_entry-content_background_color' => array(
10824 + 'type' => 'color',
10825 + 'screen' => 1,
10826 + 'group' => 'post_content_group',
10827 + 'label' => __pl('current_entry_content_background_color'),
10828 + 'css' => ['body.pagelayer-body .entry-content' => 'background-color:{{val}};'],
10829 + ),
10830 + 'current_entry-footer_background_color' => array(
10831 + 'type' => 'color',
10832 + 'screen' => 1,
10833 + 'group' => 'post_footer_group',
10834 + 'label' => __pl('current_entry_footer_background_color'),
10835 + 'css' => ['body.pagelayer-body .entry-footer' => 'background-color:{{val}};'],
10836 + ),
10837 + 'current_body_padding' => array(
10838 + 'type' => 'padding',
10839 + 'label' => __pl('current_body_padding'),
10840 + 'screen' => 1,
10841 + 'group' => 'post_body_group',
10842 + 'css' => ['body.pagelayer-body' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10843 + ),
10844 + 'current_body_margin' => array(
10845 + 'type' => 'padding',
10846 + 'label' => __pl('current_body_margin'),
10847 + 'screen' => 1,
10848 + 'group' => 'post_body_group',
10849 + 'css' => ['body.pagelayer-body' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10850 + ),
10851 + 'current_header_padding' => array(
10852 + 'type' => 'padding',
10853 + 'label' => __pl('current_header_padding'),
10854 + 'screen' => 1,
10855 + 'group' => 'post_header_group',
10856 + 'css' => ['body.pagelayer-body header' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10857 + ),
10858 + 'current_header_margin' => array(
10859 + 'type' => 'padding',
10860 + 'label' => __pl('current_header_margin'),
10861 + 'screen' => 1,
10862 + 'group' => 'post_header_group',
10863 + 'css' => ['body.pagelayer-body header' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10864 + ),
10865 + 'current_h1_padding' => array(
10866 + 'type' => 'padding',
10867 + 'label' => __pl('current_h1_padding'),
10868 + 'screen' => 1,
10869 + 'group' => 'post_h1_group',
10870 + 'css' => ['body.pagelayer-body h1' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10871 + ),
10872 + 'current_h1_margin' => array(
10873 + 'type' => 'padding',
10874 + 'label' => __pl('current_h1_margin'),
10875 + 'screen' => 1,
10876 + 'group' => 'post_h1_group',
10877 + 'css' => ['body.pagelayer-body h1' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10878 + ),
10879 + 'current_h2_padding' => array(
10880 + 'type' => 'padding',
10881 + 'label' => __pl('current_h2_padding'),
10882 + 'screen' => 1,
10883 + 'group' => 'post_h2_group',
10884 + 'css' => ['body.pagelayer-body h2' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10885 + ),
10886 + 'current_h2_margin' => array(
10887 + 'type' => 'padding',
10888 + 'label' => __pl('current_h2_margin'),
10889 + 'screen' => 1,
10890 + 'group' => 'post_h2_group',
10891 + 'css' => ['body.pagelayer-body h2' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10892 + ),
10893 + 'current_h3_padding' => array(
10894 + 'type' => 'padding',
10895 + 'label' => __pl('current_h3_padding'),
10896 + 'screen' => 1,
10897 + 'group' => 'post_h3_group',
10898 + 'css' => ['body.pagelayer-body h3' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10899 + ),
10900 + 'current_h3_margin' => array(
10901 + 'type' => 'padding',
10902 + 'label' => __pl('current_h3_margin'),
10903 + 'screen' => 1,
10904 + 'group' => 'post_h3_group',
10905 + 'css' => ['body.pagelayer-body h3' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10906 + ),
10907 + 'current_h4_padding' => array(
10908 + 'type' => 'padding',
10909 + 'label' => __pl('current_h4_padding'),
10910 + 'screen' => 1,
10911 + 'group' => 'post_h4_group',
10912 + 'css' => ['body.pagelayer-body h4' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10913 + ),
10914 + 'current_h4_margin' => array(
10915 + 'type' => 'padding',
10916 + 'label' => __pl('current_h4_margin'),
10917 + 'screen' => 1,
10918 + 'group' => 'post_h4_group',
10919 + 'css' => ['body.pagelayer-body h4' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10920 + ),
10921 + 'current_h5_padding' => array(
10922 + 'type' => 'padding',
10923 + 'label' => __pl('current_h5_padding'),
10924 + 'screen' => 1,
10925 + 'group' => 'post_h5_group',
10926 + 'css' => ['body.pagelayer-body h5' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10927 + ),
10928 + 'current_h5_margin' => array(
10929 + 'type' => 'padding',
10930 + 'label' => __pl('current_h5_margin'),
10931 + 'screen' => 1,
10932 + 'group' => 'post_h5_group',
10933 + 'css' => ['body.pagelayer-body h5' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10934 + ),
10935 + 'current_h6_padding' => array(
10936 + 'type' => 'padding',
10937 + 'label' => __pl('current_h6_padding'),
10938 + 'screen' => 1,
10939 + 'group' => 'post_h6_group',
10940 + 'css' => ['body.pagelayer-body h6' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10941 + ),
10942 + 'current_h6_margin' => array(
10943 + 'type' => 'padding',
10944 + 'label' => __pl('current_h6_margin'),
10945 + 'screen' => 1,
10946 + 'group' => 'post_h6_group',
10947 + 'css' => ['body.pagelayer-body h6' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10948 + ),
10949 + 'current_b_padding' => array(
10950 + 'type' => 'padding',
10951 + 'label' => __pl('current_b_padding'),
10952 + 'screen' => 1,
10953 + 'group' => 'post_b_group',
10954 + 'css' => ['body.pagelayer-body b' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10955 + ),
10956 + 'current_b_margin' => array(
10957 + 'type' => 'padding',
10958 + 'label' => __pl('current_b_margin'),
10959 + 'screen' => 1,
10960 + 'group' => 'post_b_group',
10961 + 'css' => ['body.pagelayer-body b' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10962 + ),
10963 + 'current_i_padding' => array(
10964 + 'type' => 'padding',
10965 + 'label' => __pl('current_i_padding'),
10966 + 'screen' => 1,
10967 + 'group' => 'post_i_group',
10968 + 'css' => ['body.pagelayer-body i' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10969 + ),
10970 + 'current_i_margin' => array(
10971 + 'type' => 'padding',
10972 + 'label' => __pl('current_i_margin'),
10973 + 'screen' => 1,
10974 + 'group' => 'post_i_group',
10975 + 'css' => ['body.pagelayer-body i' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10976 + ),
10977 + 'current_a_padding' => array(
10978 + 'type' => 'padding',
10979 + 'label' => __pl('current_a_padding'),
10980 + 'screen' => 1,
10981 + 'group' => 'post_a_group',
10982 + 'css' => ['body.pagelayer-body a' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10983 + ),
10984 + 'current_a_margin' => array(
10985 + 'type' => 'padding',
10986 + 'label' => __pl('current_a_margin'),
10987 + 'screen' => 1,
10988 + 'group' => 'post_a_group',
10989 + 'css' => ['body.pagelayer-body a' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
10990 + ),
10991 + 'current_a-hover_padding' => array(
10992 + 'type' => 'padding',
10993 + 'label' => __pl('current_a_hover_padding'),
10994 + 'screen' => 1,
10995 + 'group' => 'post_a_hover_group',
10996 + 'css' => ['body.pagelayer-body a:hover' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
10997 + ),
10998 + 'current_a-hover_margin' => array(
10999 + 'type' => 'padding',
11000 + 'label' => __pl('current_a_hover_margin'),
11001 + 'screen' => 1,
11002 + 'group' => 'post_a_hover_group',
11003 + 'css' => ['body.pagelayer-body a:hover' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11004 + ),
11005 + 'current_aside_padding' => array(
11006 + 'type' => 'padding',
11007 + 'label' => __pl('current_aside_padding'),
11008 + 'screen' => 1,
11009 + 'group' => 'post_aside_group',
11010 + 'css' => ['body.pagelayer-body aside' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
11011 + ),
11012 + 'current_aside_margin' => array(
11013 + 'type' => 'padding',
11014 + 'label' => __pl('current_aside_margin'),
11015 + 'screen' => 1,
11016 + 'group' => 'post_aside_group',
11017 + 'css' => ['body.pagelayer-body aside' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11018 + ),
11019 + 'current_p_padding' => array(
11020 + 'type' => 'padding',
11021 + 'label' => __pl('current_p_padding'),
11022 + 'screen' => 1,
11023 + 'group' => 'post_p_group',
11024 + 'css' => ['body.pagelayer-body p' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
11025 + ),
11026 + 'current_p_margin' => array(
11027 + 'type' => 'padding',
11028 + 'label' => __pl('current_p_margin'),
11029 + 'screen' => 1,
11030 + 'group' => 'post_p_group',
11031 + 'css' => ['body.pagelayer-body p' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11032 + ),
11033 + 'current_entry-header_padding' => array(
11034 + 'type' => 'padding',
11035 + 'label' => __pl('current_entry_header_padding'),
11036 + 'screen' => 1,
11037 + 'group' => 'post_entry_header_group',
11038 + 'css' => ['body.pagelayer-body .entry-header' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
11039 + ),
11040 + 'current_entry-header_margin' => array(
11041 + 'type' => 'padding',
11042 + 'label' => __pl('current_entry_header_margin'),
11043 + 'screen' => 1,
11044 + 'group' => 'post_entry_header_group',
11045 + 'css' => ['body.pagelayer-body .entry-header' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11046 + ),
11047 + 'current_entry-content_padding' => array(
11048 + 'type' => 'padding',
11049 + 'label' => __pl('current_entry_content_padding'),
11050 + 'screen' => 1,
11051 + 'group' => 'post_content_group',
11052 + 'css' => ['body.pagelayer-body .entry-content' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
11053 + ),
11054 + 'current_entry-content_margin' => array(
11055 + 'type' => 'padding',
11056 + 'label' => __pl('current_entry_content_margin'),
11057 + 'screen' => 1,
11058 + 'group' => 'post_content_group',
11059 + 'css' => ['body.pagelayer-body .entry-content' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11060 + ),
11061 + 'current_entry-footer_padding' => array(
11062 + 'type' => 'padding',
11063 + 'label' => __pl('current_entry_footer_padding'),
11064 + 'screen' => 1,
11065 + 'group' => 'post_footer_group',
11066 + 'css' => ['body.pagelayer-body .entry-footer' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[3]}}px;padding-left:{{val[4]}}px;'],
11067 + ),
11068 + 'current_entry-footer_margin' => array(
11069 + 'type' => 'padding',
11070 + 'label' => __pl('current_entry_footer_margin'),
11071 + 'screen' => 1,
11072 + 'group' => 'post_footer_group',
11073 + 'css' => ['body.pagelayer-body .entry-footer' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11074 + ),
11075 + ),
11076 + 'global_background' => array(
11077 + 'ele_bg_type' => array(
11078 + 'type' => 'radio',
11079 + 'label' => __pl('Background Type'),
11080 + 'list' => array(
11081 + '' => __pl('none'),
11082 + 'color' => __pl('color'),
11083 + 'gradient' => __pl('gradient'),
11084 + 'image' => __pl('image'),
11085 + ),
11086 + ),
11087 + 'ele_bg_color' => array(
11088 + 'type' => 'color',
11089 + 'label' => __pl('color'),
11090 + 'customizer_css' => 1,
11091 + 'css' => ['body.pagelayer-body' => 'background: {{val}};'],
11092 + 'req' => ['ele_bg_type' => 'color']
11093 + ),
11094 + 'ele_bg_gradient' => array(
11095 + 'type' => 'gradient',
11096 + 'label' => '',
11097 + 'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
11098 + 'customizer_css' => 1,
11099 + 'css' => ['body.pagelayer-body' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
11100 + 'req' => ['ele_bg_type' => 'gradient']
11101 + ),
11102 + 'ele_img_color' => array(
11103 + 'type' => 'color',
11104 + 'label' => __pl('color'),
11105 + 'desc' => __pl('fallback_color'),
11106 + 'customizer_css' => 1,
11107 + 'css' => ['body.pagelayer-body' => 'background-color: {{val}};'],
11108 + 'req' => ['ele_bg_type' => 'image']
11109 + ),
11110 + 'ele_bg_img' => array(
11111 + 'type' => 'image',
11112 + 'label' => __pl('Image'),
11113 + 'customizer_css' => 1,
11114 + 'css' => ['body.pagelayer-body' => 'background-image: url("{{{ele_bg_img-url}}}");'],
11115 + 'req' => ['ele_bg_type' => 'image']
11116 + ),
11117 + 'ele_bg_attachment' => array(
11118 + 'type' => 'select',
11119 + 'label' => __pl('ele_bg_attachment'),
11120 + 'list' => array(
11121 + '' => __pl('default'),
11122 + 'scroll' => __pl('scroll'),
11123 + 'fixed' => __pl('fixed')
11124 + ),
11125 + 'customizer_css' => 1,
11126 + 'css' => ['body.pagelayer-body' => 'background-attachment: {{val}};'],
11127 + 'req' => ['ele_bg_type' => 'image']
11128 + ),
11129 + 'ele_bg_posx' => array(
11130 + 'type' => 'select',
11131 + 'label' => __pl('ele_bg_posx'),
11132 + 'list' => array(
11133 + '' => __pl('default'),
11134 + 'center' => __pl('center'),
11135 + 'left' => __pl('left'),
11136 + 'right' => __pl('right'),
11137 + 'custom' => __pl('custom')
11138 + ),
11139 + 'customizer_css' => 1,
11140 + 'css' => ['body.pagelayer-body' => 'background-position-x: {{val}};'],
11141 + 'req' => ['ele_bg_type' => 'image']
11142 + ),
11143 + 'ele_bg_posx_custom' => array(
11144 + 'label' => __pl('custom_x'),
11145 + 'type' => 'slider',
11146 + 'step' => 1,
11147 + 'min' => -5000,
11148 + 'max' => 5000,
11149 + 'screen' => 1,
11150 + 'units' => ['px', 'em', '%'],
11151 + 'customizer_css' => 1,
11152 + 'css' => ['body.pagelayer-body' => 'background-position-x: {{val}};'],
11153 + 'req' => array(
11154 + 'ele_bg_posx' => 'custom'
11155 + ),
11156 + ),
11157 + 'ele_bg_posy' => array(
11158 + 'type' => 'select',
11159 + 'label' => __pl('ele_bg_posy'),
11160 + 'list' => array(
11161 + '' => __pl('default'),
11162 + 'center' => __pl('center'),
11163 + 'top' => __pl('top'),
11164 + 'bottom' => __pl('bottom'),
11165 + 'custom' => __pl('custom')
11166 + ),
11167 + 'customizer_css' => 1,
11168 + 'css' => ['body.pagelayer-body' => 'background-position-y: {{val}};'],
11169 + 'req' => ['ele_bg_type' => 'image']
11170 + ),
11171 + 'ele_bg_posy_custom' => array(
11172 + 'label' => __pl('custom_y'),
11173 + 'type' => 'slider',
11174 + 'step' => 1,
11175 + 'min' => -5000,
11176 + 'max' => 5000,
11177 + 'screen' => 1,
11178 + 'units' => ['px', 'em', '%'],
11179 + 'customizer_css' => 1,
11180 + 'css' => ['body.pagelayer-body' => 'background-position-y: {{val}};'],
11181 + 'req' => array(
11182 + 'ele_bg_posy' => 'custom'
11183 + ),
11184 + ),
11185 + 'ele_bg_repeat' => array(
11186 + 'type' => 'select',
11187 + 'label' => __pl('ele_bg_repeat'),
11188 + 'customizer_css' => 1,
11189 + 'css' => ['body.pagelayer-body' => 'background-repeat: {{val}};'],
11190 + 'list' => array(
11191 + '' => __pl('default'),
11192 + 'repeat' => __pl('repeat'),
11193 + 'no-repeat' => __pl('no-repeat'),
11194 + 'repeat-x' => __pl('repeat-x'),
11195 + 'repeat-y' => __pl('repeat-y'),
11196 + ),
11197 + 'req' => ['ele_bg_type' => 'image']
11198 + ),
11199 + 'ele_bg_size' => array(
11200 + 'type' => 'select',
11201 + 'label' => __pl('ele_bg_size'),
11202 + 'customizer_css' => 1,
11203 + 'css' => ['body.pagelayer-body' => 'background-size: {{val}};'],
11204 + 'list' => array(
11205 + '' => __pl('default'),
11206 + 'cover' => __pl('cover'),
11207 + 'contain' => __pl('contain')
11208 + ),
11209 + 'req' => ['ele_bg_type' => 'image']
11210 + ),
11211 + ),
11212 + 'global_button' => array(
11213 + 'button' => array(
11214 + 'type' => 'typography',
11215 + 'label' => __pl('Typography'),
11216 + 'customizer_css' => 1,
11217 + 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'font-family: {{val[0]}}; font-size: {{val[1]}}px; font-style: {{val[2]}}; font-weight: {{val[3]}}; font-variant: {{val[4]}}; text-decoration-line: {{val[5]}}; text-decoration-style: {{val[6]}}; line-height: {{val[7]}}em; text-transform: {{val[8]}}; letter-spacing: {{val[9]}}px; word-spacing: {{val[10]}}px;'],
11218 + ),
11219 + 'button_padding' => array(
11220 + 'type' => 'padding',
11221 + 'label' => __pl('global_btn_dim'),
11222 + 'screen' => 1,
11223 + 'customizer_css' => 1,
11224 + 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[2]}}px;padding-left:{{val[3]}}px;'],
11225 + ),
11226 + 'button_margin' => array(
11227 + 'type' => 'padding',
11228 + 'label' => __pl('spacing'),
11229 + 'customizer_css' => 1,
11230 + 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
11231 + ),
11232 + 'global_btn_state' => array(
11233 + 'type' => 'radio',
11234 + 'label' => __pl('button_state'),
11235 + 'default' => 'normal',
11236 + 'list' => array(
11237 + 'normal' => __pl('Normal'),
11238 + 'hover' => __pl('Hover'),
11239 + ),
11240 + ),
11241 + 'button_color' => array(
11242 + 'type' => 'color',
11243 + 'label' => __pl('iconbox_button_color'),
11244 + 'customizer_css' => 1,
11245 + 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'color:{{val}};'],
11246 + 'show' => ['global_btn_state' => 'normal']
11247 + ),
11248 + 'button_background_color' => array(
11249 + 'type' => 'color',
11250 + 'label' => __pl('global_button_bg_color'),
11251 + 'customizer_css' => 1,
11252 + 'css' => ['body.pagelayer-body .pagelayer-btn-holder' => 'background-color:{{val}};'],
11253 + 'show' => ['global_btn_state' => 'normal']
11254 + ),
11255 + 'button_hover_color' => array(
11256 + 'type' => 'color',
11257 + 'label' => __pl('iconbox_button_color'),
11258 + 'customizer_css' => 1,
11259 + 'css' => ['body.pagelayer-body .pagelayer-btn-holder:hover' => 'color:{{val}};'],
11260 + 'show' => ['global_btn_state' => 'hover'],
11261 + ),
11262 + 'button_hover_background_color' => array(
11263 + 'type' => 'color',
11264 + 'label' => __pl('global_button_bg_color_hover'),
11265 + 'customizer_css' => 1,
11266 + 'css' => ['body.pagelayer-body .pagelayer-btn-holder:hover' => 'background-color:{{val}};'],
11267 + 'show' => ['global_btn_state' => 'hover'],
11268 + ),
11269 + ),
11270 + 'woocommerce' => array(
11271 + 'shop' => array(
11272 + 'type' => 'select',
11273 + 'label' => __pl('shop'),
11274 + 'option' => 'woocommerce_shop_page_id',
11275 + 'list' => pagelayer_get_posts(array('page')),
11276 + ),
11277 + 'cart' => array(
11278 + 'type' => 'select',
11279 + 'label' => __pl('cart'),
11280 + 'option' => 'woocommerce_cart_page_id',
11281 + 'list' => pagelayer_get_posts(array('page')),
11282 + ),
11283 + 'checkout' => array(
11284 + 'type' => 'select',
11285 + 'label' => __pl('checkout'),
11286 + 'option' => 'woocommerce_checkout_page_id',
11287 + 'list' => pagelayer_get_posts(array('page')),
11288 + ),
11289 + 'my_account' => array(
11290 + 'type' => 'select',
11291 + 'label' => __pl('my_account'),
11292 + 'option' => 'woocommerce_myaccount_page_id',
11293 + 'list' => pagelayer_get_posts(array('page')),
11294 + ),
11295 + 't_&c' => array(
11296 + 'type' => 'select',
11297 + 'label' => __pl('t_&c'),
11298 + 'option' => 'woocommerce_terms_page_id',
11299 + 'list' => pagelayer_get_posts(array('page')),
11300 + ),
11301 + ),
11302 + 'styles' => $pagelayer->customizer_styles_options,
11303 + )
11304 +
11305 +);
11306 +*/
11307 +
6726 11308 ////////////////////////
6727 11309 // WordPress Group
6728 11310 ////////////////////////
6729 11311
@@ -6746,9 +11328,9 @@
6746 11328 // Widgets Area
6747 11329 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_widgets', array(
6748 11330 'name' => __pl('Sidebars / Widget Area'),
6749 11331 'group' => 'wordpress',
6750 - 'func' => 'pagelayer_sc_wp_widgets',
11332 + 'no_gt' => 1,
6751 11333 'html' => '<div class="pagelayer-wp-sidebar-title">{{title}}</div>
6752 11334 <div class="pagelayer-wp-sidebar-holder">{{{data}}}</div>',
6753 11335 'params' => array(
6754 11336 'title' => array(
@@ -6754,15 +11336,15 @@
6754 11336 'title' => array(
6755 11337 'type' => 'text',
6756 11338 'label' => __pl('parameters_title'),
6757 11339 'default' => 'Title',
6758 - 'desc' => __pl('wp_widgets_area_description')
11340 + 'desc' => __pl('wp_widgets_area_description'),
11341 + 'edit' => '.pagelayer-wp-sidebar-title',
6759 11342 ),
6760 11343 'sidebar' => array(
6761 11344 'type' => 'select',
6762 11345 'label' => __pl('wp_widgets_area_select'),
6763 11346 'default' => $pagelayer_wp_widget_default,
6764 - 'desc' => '',
6765 11347 'list' => $pagelayer_wp_widgets
6766 11348 )
6767 11349 )
6768 11350 )
@@ -6768,29 +11350,41 @@
6768 11350 )
6769 11351 );
6770 11352
6771 11353 // Load the wordpress widgets, IF ALLOWED !
6772 -if(current_user_can('edit_theme_options')){
11354 +//if(current_user_can('edit_theme_options')){
6773 11355
6774 11356 // Include the widgets
6775 11357 //include_once(ABSPATH . 'wp-admin/includes/widgets.php');
6776 11358
6777 11359 //pagelayer_print($GLOBALS['wp_widget_factory']->widgets);die();
11360 +
11361 +$wp_hidden_shortcode = array('media_audio', 'media_gallery', 'media_image', 'media_video');
11362 +
11363 +foreach($GLOBALS['wp_widget_factory']->widgets as $widget_key => $widget){
6778 11364
6779 - foreach($GLOBALS['wp_widget_factory']->widgets as $widget_key => $widget){
6780 -
6781 - pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_'.$widget->id_base, array(
6782 - 'name' => $widget->name,
6783 - 'group' => 'wordpress',
6784 - 'func' => 'pagelayer_does_not_exist',
6785 - 'innerHTML' => 'widget_data',
6786 - '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,
6787 11376 )
6788 - );
6789 -
11377 + )
11378 + );
11379 +
11380 + if(in_array($widget->id_base, $wp_hidden_shortcode)){
11381 + $wp_shortcode['not_visible'] = 1;
6790 11382 }
11383 +
11384 + pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_'.$widget->id_base, $wp_shortcode);
11385 +
6791 11386 }
11387 +//}
6792 11388
6793 -// Its premium
6794 -if(defined('PAGELAYER_PREMIUM')){
6795 - include_once(dirname(__FILE__).'/premium.php');
6796 -}
11389 +// Apply filter to load custom widgets after shortcodes
11390 +do_action('pagelayer_after_add_shortcode');