PluginProbe
Page Builder: Pagelayer – Drag and Drop website builder / 2.2.2
Page Builder: Pagelayer – Drag and Drop website builder v2.2.2
2.2.2 2.2.1 2.2.0 2.1.9 2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 trunk 0.9.0 0.9.1 0.9.2 0.9.3 0.9.4 0.9.5 0.9.6 0.9.7 0.9.8 0.9.9 1.0.0 1.0.2 1.0.3 1.0.4 All 130 releases
← All changes | main/shortcodes.php +5006 -539 1.0.0 → 2.2.2 View file →
@@ -94,8 +94,13 @@
94 94 'href="/"',
95 95 'rel="{{rel}}"',
96 96 ],
97 97
98 +// Define group and set default content if it has inner_row child
99 +'has_group' => [
100 + 'section' => 'params',
101 + 'prop' => 'elements',
102 + ],
98 103 */
99 104
100 105 ////////////////////////
101 106 // Default Styles
@@ -262,20 +267,144 @@
262 267 '{{element}} .pagelayer-owl-prev' => 'border-radius: {{val}}% !important;',
263 268 '{{element}} .pagelayer-owl-next' => 'border-radius: {{val}}% !important;',
264 269 ]
265 270 ),
271 + 'arrow_pos_type' => array(
272 + 'type' => 'select',
273 + 'label' => __pl('position'),
274 + 'list' => array(
275 + '' => __pl('default'),
276 + 'custom' => __pl('custom'),
277 + 'top' => __pl('top'),
278 + 'bottom' => __pl('bottom')
279 + ),
280 + ),
281 + 'arrow_pos_top' => array(
282 + 'label' => __pl('alignment'),
283 + 'type' => 'radio',
284 + 'list' => array(
285 + 'left' => __pl('left'),
286 + 'center' => __pl('center'),
287 + 'right' => __pl('right'),
288 + ),
289 + 'default' => 'center',
290 + 'req' => [ 'arrow_pos_type' => 'top'],
291 + 'addClass' => ['pagelayer-slide-arrow-pos-top'],
292 + 'css' => ['{{element}} .pagelayer-owl-nav' => 'justify-content:{{arrow_pos_top}}']
293 + ),
294 + 'arrow_pos_bottom' => array(
295 + 'label' => __pl('alignment'),
296 + 'type' => 'radio',
297 + 'list' => array(
298 + 'left' => __pl('left'),
299 + 'center' => __pl('center'),
300 + 'right' => __pl('right'),
301 + ),
302 + 'default' => 'center',
303 + 'req' => ['arrow_pos_type' => 'bottom'],
304 + 'addClass' => ['pagelayer-slide-arrow-pos-bottom'],
305 + 'css' => [
306 + '{{element}} .pagelayer-owl-nav' => 'justify-content:{{arrow_pos_bottom}}'
307 + ]
308 + ),
309 + 'arrow_icon_type' => array(
310 + 'type' => 'select',
311 + 'label' => __pl('icon_type'),
312 + 'list' => array(
313 + '' => __pl('default'),
314 + 'custom' => __pl('custom'),
315 + ),
316 + ),
317 + 'arrow_icon' => array(
318 + 'type' => 'icon',
319 + 'label' => __pl('list_icon_label'),
320 + 'show' => ['arrow_icon_style' => ''],
321 + 'default' => 'fas fa-angle-left',
322 + 'addAttr' => ['{{element}} .pagelayer-owl-holder' => 'data-slides-navText="{{arrow_icon}}"'],
323 + 'list' => ['angle-double-left', 'arrow-alt-circle-left', 'arrow-circle-left', 'arrow-left', 'long-arrow-alt-left', 'arrow-alt-circle-left', 'angle-double-left', 'angle-left'],
324 + 'css' => [
325 + '{{element}} .pagelayer-owl-prev i' => 'font-size: {{nav_size}}px !important;',
326 + '{{element}} .pagelayer-owl-next i' => 'font-size: {{nav_size}}px !important;'
327 + ],
328 + 'req' => ['!arrow_icon_type' => '']
329 + ),
330 + 'arrow_pos_style' => array(
331 + 'type' => 'radio',
332 + 'label' => __pl('arrow_pos'),
333 + 'list' => array(
334 + '' => __pl('left_arrow'),
335 + 'right' => __pl('right_arrow'),
336 + ),
337 + 'show' => ['arrow_pos_type' => 'custom']
338 + ),
339 + 'arrow_left_horizontal_pos' => array(
340 + 'type' => 'slider',
341 + 'label' => __pl('horizontal_pos'),
342 + 'min' => 0,
343 + 'step' => 1,
344 + 'max' => 100,
345 + 'screen' => 1,
346 + 'css' => [
347 + '{{element}} .pagelayer-owl-prev' => 'left: {{val}}% !important;',
348 + ],
349 + 'req' => ['arrow_pos_type' => 'custom'],
350 + 'show' => ['arrow_pos_style' => ''],
351 + ),
352 + 'arrow_right_horizontal_pos' => array(
353 + 'type' => 'slider',
354 + 'label' => __pl('horizontal_pos'),
355 + 'min' => 0,
356 + 'step' => 1,
357 + 'max' => 100,
358 + 'screen' => 1,
359 + 'css' => [
360 + '{{element}} .pagelayer-owl-next' => 'right: {{val}}% !important;',
361 + ],
362 + 'req' => ['arrow_pos_type' => 'custom'],
363 + 'show' => ['!arrow_pos_style' => ''],
364 + ),
365 + 'arrow_vertical_pos' => array(
366 + 'type' => 'slider',
367 + 'label' => __pl('vertical_pos'),
368 + 'min' => 0,
369 + 'step' => 1,
370 + 'max' => 100,
371 + 'screen' => 1,
372 + 'css' => [
373 + '{{element}} .pagelayer-owl-prev' => 'top: {{val}}% !important;',
374 + '{{element}} .pagelayer-owl-next' => 'top: {{val}}% !important;',
375 + ],
376 + 'req' => ['arrow_pos_type' => 'custom'],
377 + ),
266 378 ];
267 379
268 380 $pagelayer->slider_pager_styles = [
381 + 'show_num' => array(
382 + 'type' => 'checkbox',
383 + 'label' => __pl('show_num'),
384 + 'addClass' => ['pagelayer-slide-dot-number'],
385 + 'css' => ['{{element}} .pagelayer-owl-dot span::before' => 'line-height: {{dot_height}}px;'],
386 + ),
387 + 'dot_state' => array(
388 + 'type' => 'radio',
389 + 'label' => __pl('dot_state'),
390 + 'list' => array(
391 + '' => __pl('normal'),
392 + 'active' => __pl('active'),
393 + ),
394 + ),
269 395 'pager_color' => array(
270 396 'type' => 'color',
271 397 'label' => __pl('color'),
272 - 'css' => ['{{element}} .pagelayer-owl-dot span' => 'background-color: {{val}} !important']
398 + 'css' => ['{{element}} .pagelayer-owl-dot span' => 'background-color: {{val}} !important'],
399 + 'show' => ['dot_state' => ''],
273 400 ),
274 - 'active_pager_color' => array(
401 + 'dot_num_color' => array(
275 402 'type' => 'color',
276 - 'label' => __pl('active_pager_color'),
277 - 'css' => ['{{element}} .pagelayer-owl-dot.active span' => 'background-color: {{val}} !important']
403 + 'label' => __pl('number_color'),
404 + 'css' => ['{{element}} .pagelayer-owl-dot span::before' => 'color:{{val}}'],
405 + 'req' => ['!show_num' => ''],
406 + 'show' => ['dot_state' => ''],
278 407 ),
279 408 'dot_size' => array(
280 409 'type' => 'slider',
281 410 'label' => __pl('dot_size'),
@@ -284,10 +413,157 @@
284 413 'max' => 200,
285 414 'screen' => 1,
286 415 'css' => [
287 416 '{{element}} .pagelayer-owl-dot span' => 'width: {{val}}px !important; height: {{val}}px !important;'
417 + ],
418 + 'show' => ['dot_state' => ''],
419 + ),
420 + 'dot_width' => array(
421 + 'type' => 'slider',
422 + 'label' => __pl('dot_width'),
423 + 'min' => 0,
424 + 'step' => 1,
425 + 'max' => 200,
426 + 'screen' => 1,
427 + 'css' => [
428 + '{{element}} .pagelayer-owl-dot span' => 'width: {{val}}px !important;'
429 + ],
430 + 'show' => ['dot_state' => ''],
431 + ),
432 + 'dot_height' => array(
433 + 'type' => 'slider',
434 + 'label' => __pl('dot_height'),
435 + 'min' => 0,
436 + 'step' => 1,
437 + 'max' => 200,
438 + 'screen' => 1,
439 + 'css' => [
440 + '{{element}} .pagelayer-owl-dot span' => 'height: {{val}}px !important;'
441 + ],
442 + 'show' => ['dot_state' => ''],
443 + ),
444 + 'dot_radius' => array(
445 + 'type' => 'padding',
446 + 'label' => __pl('dot_radius'),
447 + 'min' => 0,
448 + 'step' => 1,
449 + 'max' => 200,
450 + 'screen' => 1,
451 + 'css' => [
452 + '{{element}} .pagelayer-owl-dot span' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important;'
453 + ],
454 + 'show' => ['dot_state' => ''],
455 + ),
456 + 'active_pager_color' => array(
457 + 'type' => 'color',
458 + 'label' => __pl('active_pager_color'),
459 + 'css' => ['{{element}} .pagelayer-owl-dot.active span' => 'background-color: {{val}} !important'],
460 + 'show' => ['!dot_state' => ''],
461 + ),
462 + 'active_dot_num_color' => array(
463 + 'type' => 'color',
464 + 'label' => __pl('number_color'),
465 + 'css' => ['{{element}} .pagelayer-owl-dot.active span::before' => 'color:{{val}}'],
466 + 'req' => ['!show_num' => ''],
467 + 'show' => ['!dot_state' => ''],
468 + ),
469 + 'active_dot_size' => array(
470 + 'type' => 'slider',
471 + 'label' => __pl('active_dot_size'),
472 + 'min' => 0,
473 + 'step' => 1,
474 + 'max' => 200,
475 + 'screen' => 1,
476 + 'css' => [
477 + '{{element}} .pagelayer-owl-dot.active span' => 'width: {{val}}px !important; height: {{val}}px !important;'
478 + ],
479 + 'show' => ['!dot_state' => ''],
480 + ),
481 + 'active_dot_width' => array(
482 + 'type' => 'slider',
483 + 'label' => __pl('dot_width'),
484 + 'min' => 0,
485 + 'step' => 1,
486 + 'max' => 200,
487 + 'screen' => 1,
488 + 'css' => [
489 + '{{element}} .pagelayer-owl-dot.active span' => 'width: {{val}}px !important;'
490 + ],
491 + 'show' => ['!dot_state' => ''],
492 + ),
493 + 'active_dot_height' => array(
494 + 'type' => 'slider',
495 + 'label' => __pl('dot_height'),
496 + 'min' => 0,
497 + 'step' => 1,
498 + 'max' => 200,
499 + 'screen' => 1,
500 + 'css' => [
501 + '{{element}} .pagelayer-owl-dot.active span' => 'height: {{val}}px !important;'
502 + ],
503 + 'show' => ['!dot_state' => ''],
504 + ),
505 + 'active_dot_radius' => array(
506 + 'type' => 'padding',
507 + 'label' => __pl('dot_radius'),
508 + 'min' => 0,
509 + 'step' => 1,
510 + 'max' => 200,
511 + 'screen' => 1,
512 + 'css' => [
513 + '{{element}} .pagelayer-owl-dot.active span' => 'border-radius: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important;'
514 + ],
515 + 'show' => ['!dot_state' => ''],
516 + ),
517 + 'dot_border_type' => array(
518 + 'type' => 'select',
519 + 'label' => __pl('border_type'),
520 + 'list' => [
521 + '' => __pl('none'),
522 + 'solid' => __pl('solid'),
523 + 'double' => __pl('double'),
524 + 'dotted' => __pl('dotted'),
525 + 'dashed' => __pl('dashed'),
526 + 'groove' => __pl('groove'),
527 + ],
528 + 'css' => [ '{{element}} .pagelayer-owl-dot span' => 'border-style: {{val}};' ],
529 + ),
530 + 'dot_border_width' => array(
531 + 'type' => 'padding',
532 + 'label' => __pl('border_width'),
533 + 'screen' => 1,
534 + 'css' => [ '{{element}} .pagelayer-owl-dot span' => 'border-width: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;' ],
535 + 'req' => ['!dot_border_type' => ''],
536 + ),
537 + 'dot_border_color' => array(
538 + 'type' => 'color',
539 + 'label' => __pl('border_color'),
540 + 'css' => [ '{{element}} .pagelayer-owl-dot span' => 'border-color: {{val}};' ],
541 + 'req' => ['!dot_border_type' => ''],
542 + ),
543 + 'dot_pos' => array(
544 + 'type' => 'select',
545 + 'label' => __pl('position'),
546 + 'list' => array(
547 + '' => __pl('bottom'),
548 + 'top' => __pl('top'),
549 + 'right' => __pl('right'),
550 + 'left' => __pl('left'),
551 + ),
552 + 'addClass' => ['pagelayer-slide-dot-pos-{{val}}'],
553 + 'css' => ['{{element}} .pagelayer-owl-dots' => '{{val}}: 10px'],
554 + ),
555 + 'pager_top_space' => array(
556 + 'type' => 'slider',
557 + 'label' => __pl('service_btn_spacing'),
558 + 'min' => 0,
559 + 'step' => 1,
560 + 'max' => 200,
561 + 'screen' => 1,
562 + 'css' => [
563 + '{{element}} .pagelayer-owl-dots' => 'margin-top: {{val}}px !important;'
288 564 ]
289 - ),
565 + )
290 566 ];
291 567
292 568 $pagelayer->slider_options = [
293 569 'slide_items' => array(
@@ -292,8 +568,9 @@
292 568 $pagelayer->slider_options = [
293 569 'slide_items' => array(
294 570 'type' => 'spinner',
295 571 'label' => __pl('number_of_items'),
572 + 'np' => 1,
296 573 'min' => 1,
297 574 'step' => 1,
298 575 'max' => 10,
299 576 'default' => 1,
@@ -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}}; position: relative;',
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' => [
@@ -679,14 +987,8 @@
679 987 'screen' => 1,
680 988 'show' => ['border_hover' => ''],
681 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]}};',
682 990 ],
683 - 'border_shadow' => [
684 - 'type' => 'shadow',
685 - 'label' => __pl('text_shadow'),
686 - 'css' => ['{{element}}' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
687 - 'show' => ['border_hover' => ''],
688 - ],
689 991 'border_type_hover' => [
690 992 'type' => 'select',
691 993 'label' => __pl('border_type'),
692 994 'screen' => 1,
@@ -733,16 +1035,295 @@
733 1035 'units' => ['px', 'em'],
734 1036 'show' => ['border_hover' => 'hover'],
735 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]}};'],
736 1038 ],
737 - 'border_shadow_hover' => [
738 - 'type' => 'shadow',
739 - 'label' => __pl('text_shadow'),
740 - 'css' => ['{{element}}:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
741 - '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;'],
742 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 + ],
743 1172 ];
744 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 +
745 1326 $pagelayer->styles['animation_styles'] = [
746 1327 'animation' => [
747 1328 'type' => 'select',
748 1329 'label' => __pl('animation'),
@@ -777,10 +1358,692 @@
777 1358 'req' => [
778 1359 '!animation' => ''
779 1360 ]
780 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 + ),
781 1436 ];
782 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 +
783 2046 // Resposive stuff
784 2047 $pagelayer->styles['responsive_styles'] = [
785 2048 'hide_desktop' => [
786 2049 'type' => 'checkbox',
@@ -798,8 +2061,19 @@
798 2061 'addClass' => 'pagelayer-hide-mobile'
799 2062 ],
800 2063 ];
801 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 +
802 2076 // Custom stuff
803 2077 $pagelayer->styles['custom_styles'] = [
804 2078 'ele_id' => [
805 2079 'type' => 'text',
@@ -812,8 +2086,16 @@
812 2086 'label' => __pl('ele_classes'),
813 2087 'desc' => __pl('ele_classes_desc'),
814 2088 'addClass' => '{{val}}',
815 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 + ],
816 2098 ];
817 2099
818 2100
819 2101 ////////////////////////
@@ -823,12 +2105,16 @@
823 2105 // ROW object
824 2106 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_row', array(
825 2107 'name' => __pl('row'),
826 2108 'group' => 'grid',
827 - 'func' => 'pagelayer_sc_row',
2109 + 'skip_props_cat' => ['position_styles'],
2110 + 'skip_props' => ['ele_sticky_in_container'],
828 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>
829 2115 <div if="{{parallax_img}}" class="pagelayer-parallax-window">
830 - <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}}}">
831 2117 </div>
832 2118 <div if="{{row_shape_position}}" class="pagelayer-row-shape">
833 2119 <div class="pagelayer-row-svg">
834 2120 <svg if="{{row_shape_type_top}}" class="pagelayer-svg-top">{{svg_top}}</svg>
@@ -856,9 +2142,10 @@
856 2142 'default' => 500,
857 2143 'min' => 300,
858 2144 'max' => 3000,
859 2145 'step' => 1,
860 - '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;'],
861 2148 'req' => array(
862 2149 'stretch' => 'fixed'
863 2150 )
864 2151 ),
@@ -867,8 +2154,9 @@
867 2154 'label' => __pl('col_gap'),
868 2155 'default' => 10,
869 2156 'min' => 0,
870 2157 'step' => 1,
2158 + 'screen' => 1,
871 2159 'max' => 1000,
872 2160 'css' => ['{{element}} .pagelayer-col-holder' => 'padding: {{val}}px;'],
873 2161 ),
874 2162 'width_content' => array(
@@ -882,14 +2170,15 @@
882 2170 )
883 2171 ),
884 2172 'fixed_width' => array(
885 2173 'type' => 'slider',
886 - 'label' => __pl('fixed_width'),
2174 + 'label' => __pl('fixed_con_width'),
887 2175 'default' => 500,
888 - 'min' => 300,
2176 + 'min' => 1,
889 2177 'max' => 3000,
890 - 'step' => 1,
891 - '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;'],
892 2181 'req' => array(
893 2182 'width_content' => 'fixed'
894 2183 )
895 2184 ),
@@ -908,40 +2197,26 @@
908 2197 'type' => 'slider',
909 2198 'label' => __pl('min_height'),
910 2199 'min' => 0,
911 2200 'max' => 2000,
912 - 'step' => 1,
913 - 'css' => 'min-height: {{val}}px;',
2201 + 'screen' => 1,
2202 + 'units' => ['px', 'vh', 'vw'],
2203 + 'css' => 'min-height: {{val}};',
914 2204 'req' => array(
915 2205 'row_height' => 'custom'
916 2206 )
917 2207 ),
918 - 'column_pos' => array(
2208 + 'content_pos' => array(
919 2209 'type' => 'select',
920 - 'label' => __pl('column_pos'),
921 - 'default' => 'default',
922 - '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}};'],
923 2212 'list' => array(
924 2213 '' => __pl('default'),
925 2214 'flex-start' => __pl('top'),
926 2215 'center' => __pl('center'),
927 2216 'flex-end' => __pl('bottom'),
928 - 'stretch' => __pl('Stretch')
929 2217 ),
930 2218 ),
931 - 'content_pos' => array(
932 - 'type' => 'select',
933 - 'label' => __pl('content_pos'),
934 - 'default' => 'default',
935 - 'css' => ['{{element}} .pagelayer-row-holder' => '-webkit-box-align: {{val}}; -webkit-align-items: {{val}}; -ms-flex-align: {{val}}; align-items: {{val}};'],
936 - 'list' => array(
937 - '' => __pl('default'),
938 - 'baseline' => __pl('top'),
939 - 'center' => __pl('center'),
940 - 'end' => __pl('bottom'),
941 - 'stretch' => __pl('Stretch')
942 - ),
943 - ),
944 2219 ),
945 2220 'row_bg_styles' => [
946 2221 'row_bg_type' => array(
947 2222 'type' => 'radio',
@@ -949,8 +2224,9 @@
949 2224 'list' => array(
950 2225 '' => __pl('none'),
951 2226 'video' => __pl('video'),
952 2227 'parallax' => __pl('parallax'),
2228 + 'slider' => __pl('slider'),
953 2229 ),
954 2230 ),
955 2231 'bg_video_src' => array(
956 2232 'type' => 'video',
@@ -957,13 +2233,86 @@
957 2233 'label' => __pl('video_src_label'),
958 2234 'desc' => __pl('video_src_desc'),
959 2235 'req' => ['row_bg_type' => 'video']
960 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 + ),
961 2247 'parallax_img' => array(
962 2248 'type' => 'image',
963 2249 'label' => __pl('Image'),
964 2250 'req' => ['row_bg_type' => 'parallax']
965 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 + ),
966 2315 ],
967 2316 'row_bg_overlay' => [
968 2317 'overlay_state' => array(
969 2318 'type' => 'radio',
@@ -986,9 +2335,9 @@
986 2335 ),
987 2336 'overlay_color' => array(
988 2337 'type' => 'color',
989 2338 'label' => __pl('color'),
990 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-color: {{val}};'],
2339 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-color: {{val}};'],
991 2340 'req' => ['overlay_type' => 'color'],
992 2341 'show' => ['overlay_state' => ''],
993 2342 ),
994 2343 'overlay_gradient' => array(
@@ -993,10 +2342,10 @@
993 2342 ),
994 2343 'overlay_gradient' => array(
995 2344 'type' => 'gradient',
996 2345 'label' => '',
997 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
998 - '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]}}%);'],
999 2348 'show' => ['overlay_state' => ''],
1000 2349 'req' => ['overlay_type' => 'gradient']
1001 2350 ),
1002 2351 'overlay_img' => array(
@@ -1001,9 +2350,9 @@
1001 2350 ),
1002 2351 'overlay_img' => array(
1003 2352 'type' => 'image',
1004 2353 'label' => __pl('Image'),
1005 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: url({{{overlay_img-url}}});'],
2354 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: url("{{{overlay_img-url}}}");'],
1006 2355 'show' => ['overlay_state' => ''],
1007 2356 'req' => ['overlay_type' => 'image']
1008 2357 ),
1009 2358 'overlay_img_attachment' => array(
@@ -1014,9 +2363,9 @@
1014 2363 'scroll' => __pl('scroll'),
1015 2364 'fixed' => __pl('fixed')
1016 2365 ],
1017 2366 'show' => ['overlay_state' => ''],
1018 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
2367 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1019 2368 'req' => ['overlay_type' => 'image']
1020 2369 ),
1021 2370 'overlay_bg_posx' => array(
1022 2371 'type' => 'select',
@@ -1027,9 +2376,9 @@
1027 2376 'left' => __pl('left'),
1028 2377 'right' => __pl('right')
1029 2378 ],
1030 2379 'show' => ['overlay_state' => ''],
1031 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
2380 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1032 2381 'req' => ['overlay_type' => 'image']
1033 2382 ),
1034 2383 'overlay_bg_posy' => array(
1035 2384 'type' => 'select',
@@ -1040,15 +2389,15 @@
1040 2389 'top' => __pl('top'),
1041 2390 'bottom' => __pl('bottom')
1042 2391 ],
1043 2392 'show' => ['overlay_state' => ''],
1044 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
2393 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1045 2394 'req' => ['overlay_type' => 'image']
1046 2395 ),
1047 2396 'overlay_bg_repeat' => array(
1048 2397 'type' => 'select',
1049 2398 'label' => __pl('overlay_bg_repeat'),
1050 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
2399 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1051 2400 'list' => [
1052 2401 '' => __pl('default'),
1053 2402 'repeat' => __pl('repeat'),
1054 2403 'no-repeat' => __pl('no-repeat'),
@@ -1060,9 +2409,9 @@
1060 2409 ),
1061 2410 'overlay_bg_size' => array(
1062 2411 'type' => 'select',
1063 2412 'label' => __pl('overlay_bg_size'),
1064 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-size: {{val}};'],
2413 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1065 2414 'list' => [
1066 2415 '' => __pl('default'),
1067 2416 'cover' => __pl('cover'),
1068 2417 'contain' => __pl('contain')
@@ -1076,9 +2425,9 @@
1076 2425 'default' => 0.5,
1077 2426 'min' => 0,
1078 2427 'max' => 1,
1079 2428 'step' => 0.1,
1080 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'opacity: {{val}};'],
2429 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1081 2430 'req' => array(
1082 2431 '!overlay_type' => '',
1083 2432 ),
1084 2433 'show' => ['overlay_state' => ''],
@@ -1089,9 +2438,9 @@
1089 2438 'min' => 0,
1090 2439 'step' => 100,
1091 2440 'max' => 5000,
1092 2441 'default' => 400,
1093 - '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;'],
1094 2443 'show' => array(
1095 2444 'overlay_state' => 'hover'
1096 2445 ),
1097 2446 ),
@@ -1109,9 +2458,9 @@
1109 2458 'overlay_color_hover' => array(
1110 2459 'type' => 'color',
1111 2460 'label' => __pl('color'),
1112 2461 //'desc' => __pl('video_src_desc'),
1113 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: {{val}};'],
2462 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: {{val}};'],
1114 2463 'req' => ['overlay_type_hover' => 'color'],
1115 2464 'show' => ['overlay_state' => 'hover'],
1116 2465 ),
1117 2466 'overlay_gradient_hover' => array(
@@ -1116,10 +2465,10 @@
1116 2465 ),
1117 2466 'overlay_gradient_hover' => array(
1118 2467 'type' => 'gradient',
1119 2468 'label' => '',
1120 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
1121 - '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]}}%);'],
1122 2471 'show' => ['overlay_state' => 'hover'],
1123 2472 'req' => ['overlay_type_hover' => 'gradient']
1124 2473 ),
1125 2474 'overlay_img_hover' => array(
@@ -1124,9 +2473,9 @@
1124 2473 ),
1125 2474 'overlay_img_hover' => array(
1126 2475 'type' => 'image',
1127 2476 'label' => __pl('Image'),
1128 - '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}}}");'],
1129 2478 'show' => ['overlay_state' => 'hover'],
1130 2479 'req' => ['overlay_type_hover' => 'image']
1131 2480 ),
1132 2481 'overlay_img_attachment_hover' => array(
@@ -1137,9 +2486,9 @@
1137 2486 'scroll' => __pl('scroll'),
1138 2487 'fixed' => __pl('fixed')
1139 2488 ],
1140 2489 'show' => ['overlay_state' => 'hover'],
1141 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
2490 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1142 2491 'req' => ['overlay_type_hover' => 'image']
1143 2492 ),
1144 2493 'overlay_bg_posx_hover' => array(
1145 2494 'type' => 'select',
@@ -1150,9 +2499,9 @@
1150 2499 'left' => __pl('left'),
1151 2500 'right' => __pl('right')
1152 2501 ],
1153 2502 'show' => ['overlay_state' => 'hover'],
1154 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
2503 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1155 2504 'req' => ['overlay_type_hover' => 'image']
1156 2505 ),
1157 2506 'overlay_bg_posy_hover' => array(
1158 2507 'type' => 'select',
@@ -1163,15 +2512,15 @@
1163 2512 'top' => __pl('top'),
1164 2513 'bottom' => __pl('bottom')
1165 2514 ],
1166 2515 'show' => ['overlay_state' => 'hover'],
1167 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
2516 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1168 2517 'req' => ['overlay_type_hover' => 'image']
1169 2518 ),
1170 2519 'overlay_bg_repeat_hover' => array(
1171 2520 'type' => 'select',
1172 2521 'label' => __pl('overlay_bg_repeat_hover'),
1173 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
2522 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1174 2523 'list' => [
1175 2524 '' => __pl('default'),
1176 2525 'repeat' => __pl('repeat'),
1177 2526 'no-repeat' => __pl('no-repeat'),
@@ -1183,9 +2532,9 @@
1183 2532 ),
1184 2533 'overlay_bg_size_hover' => array(
1185 2534 'type' => 'select',
1186 2535 'label' => __pl('overlay_bg_size_hover'),
1187 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-size: {{val}};'],
2536 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1188 2537 'list' => [
1189 2538 '' => __pl('default'),
1190 2539 'cover' => __pl('cover'),
1191 2540 'contain' => __pl('contain')
@@ -1198,9 +2547,9 @@
1198 2547 'label' => __pl('overlay_transperancy_hover'),
1199 2548 'min' => 0,
1200 2549 'max' => 1,
1201 2550 'step' => 0.1,
1202 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'opacity: {{val}};'],
2551 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1203 2552 'req' => array(
1204 2553 'overlay_type' => 'image',
1205 2554 'overlay_type' => 'color'
1206 2555 ),
@@ -1241,9 +2590,9 @@
1241 2590 ),
1242 2591 'row_shape_top_color' => array(
1243 2592 'type' => 'color',
1244 2593 'label' => __pl('shape_bg_color'),
1245 - 'default' => '#fff',
2594 + 'default' => '#227bc3',
1246 2595 'css' => ['{{element}} .pagelayer-svg-top .pagelayer-shape-fill' => 'fill:{{val}}'],
1247 2596 'show' => ['row_shape_position' => 'top'],
1248 2597 ),
1249 2598 'row_shape_top_width' => array(
@@ -1297,9 +2646,9 @@
1297 2646 ),
1298 2647 'row_shape_bottom_color' => array(
1299 2648 'type' => 'color',
1300 2649 'label' => __pl('shape_bg_color'),
1301 - 'default' => '#fff',
2650 + 'default' => '#e44993',
1302 2651 'css' => ['{{element}} .pagelayer-svg-bottom .pagelayer-shape-fill' => 'fill:{{val}}'],
1303 2652 'show' => ['row_shape_position' => 'bottom'],
1304 2653 ),
1305 2654 'row_shape_bottom_width' => array(
@@ -1341,12 +2690,16 @@
1341 2690 // Column object
1342 2691 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_col', array(
1343 2692 'name' => __pl('column'),
1344 2693 'group' => 'grid',
1345 - 'func' => 'pagelayer_sc_col',
2694 + 'skip_props_cat' => ['position_styles'],
2695 + 'skip_props' => ['ele_sticky_in_container'],
1346 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>
1347 2700 <div if="{{parallax_img}}" class="pagelayer-parallax-window">
1348 - <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}}}">
1349 2702 </div>
1350 2703 <div if="{{overlay_type}}" class="pagelayer-background-overlay"></div>
1351 2704 <div class="pagelayer-col-holder"></div>',
1352 2705 'holder' => '.pagelayer-col-holder',
@@ -1353,11 +2706,9 @@
1353 2706 'params' => array(
1354 2707 'content_pos' => array(
1355 2708 'type' => 'select',
1356 2709 'label' => __pl('content_pos'),
1357 - 'default' => '',
1358 - 'css' => ['{{element}}' => 'display:flex; -webkit-box-align: {{val}}; -webkit-align-items: {{val}}; -ms-flex-align: {{val}}; align-items: {{val}}; height: 100%;',
1359 - '{{element}} .pagelayer-col-holder' => 'width:100%'],
2710 + 'css' => ['{{element}}' => 'align-content: {{val}} !important;'],
1360 2711 'list' => array(
1361 2712 '' => __pl('default'),
1362 2713 'flex-start' => __pl('top'),
1363 2714 'center' => __pl('center'),
@@ -1397,10 +2748,11 @@
1397 2748 'type' => 'spinner',
1398 2749 'label' => __pl('width_custom'),
1399 2750 'min' => 0,
1400 2751 'step' => 1,
1401 - 'max' => 1000,
1402 - 'css' => ( !pagelayer_is_live() ? 'width: {{val}}px;' : '' ),
2752 + 'max' => 100,
2753 + 'screen' => 1,
2754 + 'css' =>['.pagelayer-row-holder {{wrap}}' => 'width: {{val}}%;'],
1403 2755 'req' => ['col' => ''],
1404 2756 ),
1405 2757 ),
1406 2758 'col_bg_styles' => [
@@ -1410,8 +2762,9 @@
1410 2762 'list' => array(
1411 2763 '' => __pl('none'),
1412 2764 'video' => __pl('video'),
1413 2765 'parallax' => __pl('parallax'),
2766 + 'slider' => __pl('slider'),
1414 2767 ),
1415 2768 ),
1416 2769 'bg_video_src' => array(
1417 2770 'type' => 'video',
@@ -1418,13 +2771,86 @@
1418 2771 'label' => __pl('video_src_label'),
1419 2772 'desc' => __pl('video_src_desc'),
1420 2773 'req' => ['col_bg_type' => 'video']
1421 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 + ),
1422 2785 'parallax_img' => array(
1423 2786 'type' => 'image',
1424 2787 'label' => __pl('Image'),
1425 2788 'req' => ['col_bg_type' => 'parallax']
1426 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 + ),
1427 2853 ],
1428 2854 'col_bg_overlay' => [
1429 2855 'overlay_state' => array(
1430 2856 'type' => 'radio',
@@ -1448,9 +2874,9 @@
1448 2874 'overlay_color' => array(
1449 2875 'type' => 'color',
1450 2876 'label' => __pl('color'),
1451 2877 //'desc' => __pl('video_src_desc'),
1452 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-color: {{val}};'],
2878 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-color: {{val}};'],
1453 2879 'req' => ['overlay_type' => 'color'],
1454 2880 'show' => ['overlay_state' => ''],
1455 2881 ),
1456 2882 'overlay_gradient' => array(
@@ -1455,10 +2881,10 @@
1455 2881 ),
1456 2882 'overlay_gradient' => array(
1457 2883 'type' => 'gradient',
1458 2884 'label' => '',
1459 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
1460 - '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]}}%);'],
1461 2887 'show' => ['overlay_state' => ''],
1462 2888 'req' => ['overlay_type' => 'gradient']
1463 2889 ),
1464 2890 'overlay_img' => array(
@@ -1463,9 +2889,9 @@
1463 2889 ),
1464 2890 'overlay_img' => array(
1465 2891 'type' => 'image',
1466 2892 'label' => __pl('Image'),
1467 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background: url({{{overlay_img-url}}});'],
2893 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background: url("{{{overlay_img-url}}}");'],
1468 2894 'show' => ['overlay_state' => ''],
1469 2895 'req' => ['overlay_type' => 'image']
1470 2896 ),
1471 2897 'overlay_img_attachment' => array(
@@ -1476,9 +2902,9 @@
1476 2902 'scroll' => __pl('scroll'),
1477 2903 'fixed' => __pl('fixed')
1478 2904 ],
1479 2905 'show' => ['overlay_state' => ''],
1480 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
2906 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1481 2907 'req' => ['overlay_type' => 'image']
1482 2908 ),
1483 2909 'overlay_bg_posx' => array(
1484 2910 'type' => 'select',
@@ -1489,9 +2915,9 @@
1489 2915 'left' => __pl('left'),
1490 2916 'right' => __pl('right')
1491 2917 ],
1492 2918 'show' => ['overlay_state' => ''],
1493 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
2919 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1494 2920 'req' => ['overlay_type' => 'image']
1495 2921 ),
1496 2922 'overlay_bg_posy' => array(
1497 2923 'type' => 'select',
@@ -1502,15 +2928,15 @@
1502 2928 'top' => __pl('top'),
1503 2929 'bottom' => __pl('bottom')
1504 2930 ],
1505 2931 'show' => ['overlay_state' => ''],
1506 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
2932 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1507 2933 'req' => ['overlay_type' => 'image']
1508 2934 ),
1509 2935 'overlay_bg_repeat' => array(
1510 2936 'type' => 'select',
1511 2937 'label' => __pl('overlay_bg_repeat'),
1512 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
2938 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1513 2939 'list' => [
1514 2940 '' => __pl('default'),
1515 2941 'repeat' => __pl('repeat'),
1516 2942 'no-repeat' => __pl('no-repeat'),
@@ -1522,9 +2948,9 @@
1522 2948 ),
1523 2949 'overlay_bg_size' => array(
1524 2950 'type' => 'select',
1525 2951 'label' => __pl('overlay_bg_size'),
1526 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'background-size: {{val}};'],
2952 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1527 2953 'list' => [
1528 2954 '' => __pl('default'),
1529 2955 'cover' => __pl('cover'),
1530 2956 'contain' => __pl('contain')
@@ -1538,9 +2964,9 @@
1538 2964 'default' => 0.5,
1539 2965 'min' => 0,
1540 2966 'max' => 1,
1541 2967 'step' => 0.1,
1542 - 'css' => ['{{element}} .pagelayer-background-overlay' => 'opacity: {{val}};'],
2968 + 'css' => ['{{element}} > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1543 2969 'req' => array(
1544 2970 '!overlay_type' => '',
1545 2971 ),
1546 2972 'show' => ['overlay_state' => ''],
@@ -1551,9 +2977,9 @@
1551 2977 'min' => 0,
1552 2978 'step' => 100,
1553 2979 'max' => 5000,
1554 2980 'default' => 400,
1555 - '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;'],
1556 2982 'show' => array(
1557 2983 'overlay_state' => 'hover'
1558 2984 ),
1559 2985 ),
@@ -1571,9 +2997,9 @@
1571 2997 'overlay_color_hover' => array(
1572 2998 'type' => 'color',
1573 2999 'label' => __pl('color'),
1574 3000 //'desc' => __pl('video_src_desc'),
1575 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background: {{val}};'],
3001 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background: {{val}};'],
1576 3002 'req' => ['overlay_type_hover' => 'color'],
1577 3003 'show' => ['overlay_state' => 'hover'],
1578 3004 ),
1579 3005 'overlay_gradient_hover' => array(
@@ -1578,10 +3004,10 @@
1578 3004 ),
1579 3005 'overlay_gradient_hover' => array(
1580 3006 'type' => 'gradient',
1581 3007 'label' => '',
1582 - 'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
1583 - '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]}}%);'],
1584 3010 'show' => ['overlay_state' => 'hover'],
1585 3011 'req' => ['overlay_type_hover' => 'gradient']
1586 3012 ),
1587 3013 'overlay_img_hover' => array(
@@ -1586,9 +3012,9 @@
1586 3012 ),
1587 3013 'overlay_img_hover' => array(
1588 3014 'type' => 'image',
1589 3015 'label' => __pl('Image'),
1590 - '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}}}");'],
1591 3017 'show' => ['overlay_state' => 'hover'],
1592 3018 'req' => ['overlay_type_hover' => 'image']
1593 3019 ),
1594 3020 'overlay_img_attachment_hover' => array(
@@ -1599,9 +3025,9 @@
1599 3025 'scroll' => __pl('scroll'),
1600 3026 'fixed' => __pl('fixed')
1601 3027 ],
1602 3028 'show' => ['overlay_state' => 'hover'],
1603 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
3029 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-attachment: {{val}};'],
1604 3030 'req' => ['overlay_type_hover' => 'image']
1605 3031 ),
1606 3032 'overlay_bg_posx_hover' => array(
1607 3033 'type' => 'select',
@@ -1612,9 +3038,9 @@
1612 3038 'left' => __pl('left'),
1613 3039 'right' => __pl('right')
1614 3040 ],
1615 3041 'show' => ['overlay_state' => 'hover'],
1616 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
3042 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-x: {{val}};'],
1617 3043 'req' => ['overlay_type_hover' => 'image']
1618 3044 ),
1619 3045 'overlay_bg_posy_hover' => array(
1620 3046 'type' => 'select',
@@ -1625,15 +3051,15 @@
1625 3051 'top' => __pl('top'),
1626 3052 'bottom' => __pl('bottom')
1627 3053 ],
1628 3054 'show' => ['overlay_state' => 'hover'],
1629 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
3055 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-position-y: {{val}};'],
1630 3056 'req' => ['overlay_type_hover' => 'image']
1631 3057 ),
1632 3058 'overlay_bg_repeat_hover' => array(
1633 3059 'type' => 'select',
1634 3060 'label' => __pl('overlay_bg_repeat_hover'),
1635 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
3061 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-repeat: {{val}};'],
1636 3062 'list' => [
1637 3063 '' => __pl('default'),
1638 3064 'repeat' => __pl('repeat'),
1639 3065 'no-repeat' => __pl('no-repeat'),
@@ -1645,9 +3071,9 @@
1645 3071 ),
1646 3072 'overlay_bg_size_hover' => array(
1647 3073 'type' => 'select',
1648 3074 'label' => __pl('overlay_bg_size_hover'),
1649 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'background-size: {{val}};'],
3075 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'background-size: {{val}};'],
1650 3076 'list' => [
1651 3077 '' => __pl('default'),
1652 3078 'cover' => __pl('cover'),
1653 3079 'contain' => __pl('contain')
@@ -1661,9 +3087,9 @@
1661 3087 'default' => 0.5,
1662 3088 'min' => 0,
1663 3089 'max' => 1,
1664 3090 'step' => 0.1,
1665 - 'css' => ['{{element}}:hover .pagelayer-background-overlay' => 'opacity: {{val}};'],
3091 + 'css' => ['{{element}}:hover > .pagelayer-background-overlay' => 'opacity: {{val}};'],
1666 3092 'req' => array(
1667 3093 '!overlay_type_hover' => '',
1668 3094 ),
1669 3095 'show' => ['overlay_state' => 'hover'],
@@ -1683,12 +3109,11 @@
1683 3109 // Heading object
1684 3110 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_heading', array(
1685 3111 'name' => __pl('title'),
1686 3112 'group' => 'text',
1687 - 'func' => 'pagelayer_sc_heading',
1688 3113 'innerHTML' => 'text',
1689 - 'html' => '<a if-ext="{{link}}" href="{{link}}">
1690 - <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>
1691 3116 </a>',
1692 3117 'params' => array(
1693 3118 'text' => array(
1694 3119 'type' => 'textarea',
@@ -1694,23 +3119,16 @@
1694 3119 'type' => 'textarea',
1695 3120 'label' => __pl('Edit Title'),
1696 3121 'default' => '<h2>Your Heading</h2>',
1697 3122 'desc' => __pl('Edit the heading here'),
3123 + 'e' => [ 'v', 'h', 'f', 'c', 'r'],
1698 3124 'edit' => '.pagelayer-heading-holder', // Edit the text and also mirror the same
1699 3125 ),
1700 3126 'link' => array(
3127 + 'type' => 'link',
1701 3128 'label' => __pl('image_link_label'),
1702 - 'desc' => __pl('image_link_desc'),
1703 - 'type' => 'link',
3129 + 'selector' => '.pagelayer-link-sel'
1704 3130 ),
1705 - 'target' => array(
1706 - 'label' => __pl('open_link_in_new_window'),
1707 - 'type' => 'checkbox',
1708 - 'addAttr' => ['{{element}} a' => 'target="_blank"'],
1709 - 'req' => array(
1710 - '!link' => ''
1711 - )
1712 - ),
1713 3131 'align' => array(
1714 3132 'label' => __pl('obj_align_label'),
1715 3133 'type' => 'radio',
1716 3134 'addAttr' => 'align="{{align}}"',
@@ -1723,26 +3141,55 @@
1723 3141 )
1724 3142 ),
1725 3143 ),
1726 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 + ),
1727 3154 'color' => array(
1728 3155 'type' => 'color',
1729 3156 'label' => __pl('color'),
1730 - 'default' => '#111111ff',
1731 3157 'css' => ['{{element}} .pagelayer-heading-holder *' => 'color:{{val}}', '{{element}} .pagelayer-heading-holder' => 'color:{{val}}'],
3158 + 'show' => ['heading_state' => 'normal']
1732 3159 ),
1733 3160 'heading_typo' => array(
1734 3161 'type' => 'typography',
1735 3162 'label' => __pl('typography'),
1736 - 'screen' => 1,
1737 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;',
1738 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']
1739 3166 ),
1740 3167 'heading_text_shadow' => array(
1741 3168 'type' => 'shadow',
1742 3169 'label' => __pl('text_shadow'),
1743 - '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']
1744 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 + ),
1745 3192 ],
1746 3193 'styles' => [
1747 3194 'heading_styles' => __pl('heading_styles')
1748 3195 ],
@@ -1752,9 +3199,8 @@
1752 3199 // Rich Text object
1753 3200 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_text', array(
1754 3201 'name' => __pl('Rich Text'),
1755 3202 'group' => 'text',
1756 - 'func' => 'pagelayer_sc_code',
1757 3203 'innerHTML' => 'text',
1758 3204 'html' => '<div class="pagelayer-text-holder">{{text}}</div>',
1759 3205 'params' => array(
1760 3206 'text' => array(
@@ -1759,10 +3205,11 @@
1759 3205 'params' => array(
1760 3206 'text' => array(
1761 3207 'type' => 'editor',
1762 3208 'label' => __pl('Edit Rich Text'),
1763 - 'default' => 'Lorem ipsum dolor sit amet',
1764 - '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'),
1765 3212 'edit' => '.pagelayer-text-holder', // Edit the text and also mirror the same
1766 3213 )
1767 3214 )
1768 3215 )
@@ -1780,14 +3227,13 @@
1780 3227 {{quote_content}}
1781 3228 <i if="{{double_indent}}" class="fa fa-quote-right"></i>
1782 3229 </div>
1783 3230 <div if="{{cite}}" class="pagelayer-quote-cite">
1784 - <a if-ext="{{cite_url}}" href="{{cite_url}}">
3231 + <a if-ext="{{cite_url}}" href="{{{cite_url}}}" class="pagelayer-link-sel">
1785 3232 <span class="pagelayer-cite-holder">{{cite}}</span>
1786 3233 </a>
1787 3234 </div>
1788 3235 </div>',
1789 - 'func' => 'pagelayer_sc_quote',
1790 3236 'params' => array(
1791 3237 'quote_content' => array(
1792 3238 'type' => 'textarea',
1793 3239 'label' => __pl('quotes_content_label'),
@@ -1805,12 +3251,17 @@
1805 3251 'label' => __pl('quotes_content_color_label'),
1806 3252 'default' => '#050505',
1807 3253 'css' => ['{{element}} .pagelayer-quote-content' => 'color:{{val}}'],
1808 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 + ),
1809 3261 'quote_content_typo' => array(
1810 3262 'type' => 'typography',
1811 3263 'label' => __pl('quote_content_typo'),
1812 - 'screen' => 1,
1813 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;'],
1814 3265 ),
1815 3266 ),
1816 3267 'qoute_styles' => [
@@ -1846,9 +3297,9 @@
1846 3297 'step' => 1,
1847 3298 'max' => 1000,
1848 3299 'default' => 70,
1849 3300 'screen' => 1,
1850 - 'css' => ['{{element}} i' => 'font-size: {{val}}px;'],
3301 + 'css' => ['{{element}} .fa' => 'font-size: {{val}}px;'],
1851 3302 'req' => array(
1852 3303 'quote_style' => ['quotation','double']
1853 3304 )
1854 3305 ),
@@ -1854,10 +3305,10 @@
1854 3305 ),
1855 3306 'quotation_color' => array(
1856 3307 'type' => 'color',
1857 3308 'label' => __pl('quotation_color_label'),
1858 - 'default' => '#dadadaff',
1859 - 'css' => ['{{element}} i' => 'color:{{val}}'],
3309 + 'default' => '#dadada',
3310 + 'css' => ['{{element}} .fa' => 'color:{{val}}'],
1860 3311 'req' => array(
1861 3312 'quote_style' => ['quotation','double']
1862 3313 )
1863 3314 ),
@@ -1925,8 +3376,9 @@
1925 3376 ),
1926 3377 'cite_url' => array(
1927 3378 'type' => 'link',
1928 3379 'label' => __pl('quotes_url_label'),
3380 + 'selector' => '.pagelayer-link-sel',
1929 3381 'desc' => __pl('quotes_url_desc'),
1930 3382 ),
1931 3383 'cite_text_color' => array(
1932 3384 'type' => 'color',
@@ -1933,13 +3385,24 @@
1933 3385 'label' => __pl('quotes_cite_color_label'),
1934 3386 'default' => '#3f3f3f',
1935 3387 'css' => ['{{element}} .pagelayer-quote-cite span' => 'color:{{val}}']
1936 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 + ),
1937 3401 'cite_typo' => array(
1938 3402 'type' => 'typography',
1939 3403 'label' => __pl('cite_typo'),
1940 3404 'default' => ',16,italic,,,,solid,,,,',
1941 - 'screen' => 1,
1942 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;'],
1943 3406 )
1944 3407 ],
1945 3408 'border_style' => [
@@ -1991,14 +3454,14 @@
1991 3454 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list_item', array(
1992 3455 'name' => __pl('list_item'),
1993 3456 'group' => 'text',
1994 3457 'not_visible' => 1,
1995 - 'func' => 'pagelayer_sc_list_item',
3458 + 'parent' => [PAGELAYER_SC_PREFIX.'_list'],
1996 3459 'innerHTML' => 'item',
1997 3460 'html' => '<li if="{{item}}" class="pagelayer-list-li">
1998 - <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}}}">
1999 3462 <span class="pagelayer-list-icon-holder">
2000 - <i if="{{show_icon}}" class="pagelayer-list-icon fa fa-{{icon}}"></i>
3463 + <i if="{{show_icon}}" class="pagelayer-list-icon {{icon}}"></i>
2001 3464 <span if="{{item}}" class="pagelayer-list-item">{{item}}</span>
2002 3465 </span>
2003 3466 </a>
2004 3467 </li>',
@@ -2006,13 +3469,14 @@
2006 3469 'item' => array(
2007 3470 'type' => 'text',
2008 3471 'label' => __pl('list_items_label'),
2009 3472 'default' => __pl('list_items_default'),
3473 + 'edit' => '.pagelayer-list-item',
2010 3474 ),
2011 3475 'item_url' => array(
2012 - 'type' => 'text',
3476 + 'type' => 'link',
2013 3477 'label' => __pl('list_item_url_label'),
2014 - 'default' => ''
3478 + 'selector' => '.pagelayer-list-url',
2015 3479 ),
2016 3480 'show_icon' => array(
2017 3481 'type' => 'checkbox',
2018 3482 'label' => __pl('list_show_icon'),
@@ -2020,9 +3484,9 @@
2020 3484 ),
2021 3485 'icon' => array(
2022 3486 'type' => 'icon',
2023 3487 'label' => __pl('list_icon_label'),
2024 - 'default' => 'star',
3488 + 'default' => 'fas fa-star',
2025 3489 'req' => array(
2026 3490 'show_icon' => 'true'
2027 3491 )
2028 3492 )
@@ -2033,9 +3497,8 @@
2033 3497 // List
2034 3498 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_list', array(
2035 3499 'name' => __pl('list'),
2036 3500 'group' => 'text',
2037 - 'func' => 'pagelayer_sc_list',
2038 3501 'has_group' => [
2039 3502 'section' => 'params',
2040 3503 'prop' => 'elements'
2041 3504 ],
@@ -2082,10 +3545,9 @@
2082 3545 'step' => 1,
2083 3546 'max' => 100,
2084 3547 'default' => 10,
2085 3548 'screen' => 1,
2086 - 'css' => ['{{element}} .pagelayer-list-ul div:not(:last-child)' => 'padding-bottom: calc({{val}}px/2);',
2087 - '{{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);'],
2088 3550 ),
2089 3551 'side_spacing' => array(
2090 3552 'type' => 'slider',
2091 3553 'label' => __pl('list_side_spacing_label'),
@@ -2096,22 +3558,37 @@
2096 3558 'css' => ['{{element}} .pagelayer-list_item' => 'padding-left: {{val}}px; padding-right: {{val}}px;'],
2097 3559 ),
2098 3560 ),
2099 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 + ),
2100 3571 'list_color' => array(
2101 3572 'type' => 'color',
2102 3573 'label' => __pl('list_color_label'),
2103 - 'default' => '#555555',
2104 - 'css' => ['{{element}} li' => 'color:{{val}}'],
3574 + 'css' => ['{{element}} .pagelayer-list-item' => 'color:{{val}}'],
3575 + 'show' =>['list_text_state' => 'normal']
2105 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 + ),
2106 3583 'list_typo' => array(
2107 3584 'type' => 'typography',
2108 3585 'label' => __pl('list_typo'),
2109 - 'screen' => 1,
2110 3586 'css' => [
2111 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;',
2112 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;'
2113 3589 ],
3590 + 'show' =>['list_text_state' => 'normal']
2114 3591 ),
2115 3592 'item_indent' => array(
2116 3593 'type' => 'slider',
2117 3594 'label' => __pl('list_item_indent_label'),
@@ -2120,16 +3597,57 @@
2120 3597 'max' => 100,
2121 3598 'default' => 10,
2122 3599 'screen' => 1,
2123 3600 'css' => ['{{element}} .pagelayer-list-item' => 'margin-left: {{val}}px;'],
3601 + 'show' =>['list_text_state' => 'normal']
2124 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 + ),
2125 3633 ],
2126 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 + ),
2127 3644 'icon_color' => array(
2128 3645 'type' => 'color',
2129 3646 'label' => __pl('list_icon_color_label'),
2130 - 'default' => '#3E8EF7',
2131 - 'css' => ['{{element}} i' => 'color:{{val}}'],
3647 + 'default' => '#0986c0',
3648 + 'css' => ['{{element}} .pagelayer-list-icon' => 'color:{{val}}'],
3649 + 'show' => ['list_icon_state' => 'normal'],
2132 3650 ),
2133 3651 'icon_size' => array(
2134 3652 'type' => 'slider',
2135 3653 'label' => __pl('list_icon_size_label'),
@@ -2136,10 +3654,36 @@
2136 3654 'min' => 0,
2137 3655 'step' => 1,
2138 3656 'max' => 150,
2139 3657 'screen' => 1,
2140 - 'css' => ['{{element}} i' => 'font-size: {{val}}px'],
3658 + 'css' => ['{{element}} .pagelayer-list-icon' => 'font-size: {{val}}px'],
3659 + 'show' => ['list_icon_state' => 'normal'],
2141 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 + ),
2142 3686 ],
2143 3687 'divider' => [
2144 3688 'icon_border_type' => array(
2145 3689 'type' => 'select',
@@ -2171,9 +3715,9 @@
2171 3715 'step' => 1,
2172 3716 'max' => 100,
2173 3717 'default' => 3,
2174 3718 'screen' => 1,
2175 - 'css' => ['{{element}} .pagelayer-list-ul > div' => 'border-bottom-width: {{val[0]}}px;'],
3719 + 'css' => ['{{element}} .pagelayer-list-ul > div' => 'border-bottom-width: {{val}}px;'],
2176 3720 'req' => [
2177 3721 '!icon_border_type' => ''
2178 3722 ]
2179 3723 ),
@@ -2189,12 +3733,11 @@
2189 3733 // Icon
2190 3734 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_icon', array(
2191 3735 'name' => __pl('icon'),
2192 3736 'group' => 'text',
2193 - 'func' => 'pagelayer_sc_icon',
2194 3737 'html' => '<div class="pagelayer-icon-holder">
2195 - <a if-ext="{{link}}" class="pagelayer-ele-link" href="{{link}}">
2196 - <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>
2197 3740 </a>
2198 3741 </div>',
2199 3742 'params' => array(
2200 3743 'icon' => array(
@@ -2199,9 +3742,9 @@
2199 3742 'params' => array(
2200 3743 'icon' => array(
2201 3744 'type' => 'icon',
2202 3745 'label' => __pl('list_icon_label'),
2203 - 'default' => 'star',
3746 + 'default' => 'fas fa-star',
2204 3747 ),
2205 3748 'icon_background_size' => array(
2206 3749 'type' => 'spinner',
2207 3750 'label' => __pl('service_box_icon_background_size'),
@@ -2214,15 +3757,10 @@
2214 3757 ),
2215 3758 'link' => array(
2216 3759 'type' => 'link',
2217 3760 'label' => __pl('icon_link_field_label'),
2218 - 'default' => ''
3761 + 'selector' => '.pagelayer-ele-link'
2219 3762 ),
2220 - 'target' => array(
2221 - 'type' => 'checkbox',
2222 - 'label' => __pl('open_link_in_new_window'),
2223 - 'addAttr' => ['{{element}} a' => 'target="_blank"']
2224 - ),
2225 3763 'icon_alignment' => array(
2226 3764 'type' => 'radio',
2227 3765 'label' => __pl('alignment'),
2228 3766 'default' => 'center',
@@ -2249,9 +3787,9 @@
2249 3787 'type' => 'color',
2250 3788 'label' => __pl('service_box_icon_color_label'),
2251 3789 'css' => ['{{element}} i' => 'height: 1em; width: 1em; position: relative; color: {{val}};',
2252 3790 '{{element}} i:before' => 'position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);'],
2253 - 'default' => '#3e8ef7',
3791 + 'default' => '#0986c0',
2254 3792 'show' => array(
2255 3793 'icon_hover' => ''
2256 3794 ),
2257 3795 ),
@@ -2306,9 +3844,9 @@
2306 3844 'type' => 'spinner',
2307 3845 'label' => __pl('service_box_icon_rotate'),
2308 3846 'default' => 0,
2309 3847 'css' => ['{{element}} i' => 'transform: rotate({{val}}deg)'],
2310 - 'min' => 0,
3848 + 'min' => -360,
2311 3849 'max' => 360,
2312 3850 'step' => 1,
2313 3851 'screen' => 1,
2314 3852 'show' => array(
@@ -2319,9 +3857,9 @@
2319 3857 'type' => 'spinner',
2320 3858 'label' => __pl('rotate_icon'),
2321 3859 'default' => 0,
2322 3860 'css' => ['{{element}} i:before' => 'transform: translate(-50%, -50%) rotate({{val}}deg)'],
2323 - 'min' => 0,
3861 + 'min' => -360,
2324 3862 'max' => 360,
2325 3863 'step' => 1,
2326 3864 'screen' => 1,
2327 3865 'show' => array(
@@ -2498,9 +4036,9 @@
2498 4036 ),
2499 4037 'icon_border_color' => array(
2500 4038 'type' => 'color',
2501 4039 'label' => __pl('service_box_icon_border_color_label'),
2502 - 'default' => '#3e8ef7',
4040 + 'default' => '#0986c0',
2503 4041 'css' => ['{{element}} i' => 'border-color: {{val}};'],
2504 4042 'req' => array(
2505 4043 '!icon_border_type' => ''
2506 4044 ),
@@ -2551,9 +4089,9 @@
2551 4089 'icon_border_color_hover' => array(
2552 4090 'type' => 'color',
2553 4091 'label' => __pl('service_box_icon_border_color_label'),
2554 4092 'css' => ['{{element}} i:hover' => 'border-color: {{val}};'],
2555 - 'default' => '#3e8ef7',
4093 + 'default' => '#0986c0',
2556 4094 'req' => array(
2557 4095 '!icon_border_type_hover' => ''
2558 4096 ),
2559 4097 'show' => array(
@@ -2595,20 +4133,19 @@
2595 4133 // Badge
2596 4134 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_badge', array(
2597 4135 'name' => __pl('Badge'),
2598 4136 'group' => 'text',
2599 - 'func' => 'pagelayer_sc_badge',
2600 4137 'innerHTML' => 'title',
2601 4138 'html' => '<div class="pagelayer-badge-span">
2602 4139 <span if="{{text}}" class="pagelayer-badge-text">{{text}}</span>
2603 - <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}}}">
2604 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>
2605 4142 </a>
2606 4143 </div>
2607 - <a if-ext="{{badge_url}}" class="pagelayer-ele-link" href="{{badge_url}}">
2608 - <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}}">
2609 4146 <span if="{{text}}" class="pagelayer-badge-text">{{text}}</span>
2610 - <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>
2611 4148 </button>
2612 4149 </a>',
2613 4150 'params' => array(
2614 4151 'badge_text' => array(
@@ -2613,14 +4150,15 @@
2613 4150 'params' => array(
2614 4151 'badge_text' => array(
2615 4152 'type' => 'text',
2616 4153 'label' => __pl('badge_text'),
2617 - 'default' => 'Badge',
4154 + 'default' => 'Badge',
4155 + 'edit' => '.pagelayer-badge-title',
2618 4156 ),
2619 4157 'badge_url' => array(
2620 4158 'type' => 'link',
2621 4159 'label' => __pl('badge_url_label'),
2622 - 'default' => '',
4160 + 'selector' => '.pagelayer-ele-link',
2623 4161 ),
2624 4162 'badge_notification_type' => array(
2625 4163 'type' => 'select',
2626 4164 'label' => __pl('badge_notification_type'),
@@ -2636,8 +4174,46 @@
2636 4174 'dark' => __pl('Dark'),
2637 4175 'custom' => __pl('Custom'),
2638 4176 ],
2639 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 + ),
2640 4216 'badge_style_type' => array(
2641 4217 'type' => 'select',
2642 4218 'label' => __pl('badge_style'),
2643 4219 'default' => 'normal',
@@ -2665,20 +4241,36 @@
2665 4241 'text' => array(
2666 4242 'type' => 'text',
2667 4243 'label' => __pl('text'),
2668 4244 'default' => 'Your custom text',
4245 + 'edit' => '.pagelayer-badge-text',
2669 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 + ),
2670 4256 'text_color' => array(
2671 4257 'type' => 'color',
2672 4258 'label' => __pl('badge_text_color_label'),
2673 4259 'default' => '#000000',
2674 - 'css' => ['{{element}} .pagelayer-badge-text' => 'color:{{val}};'],
4260 + 'css' => ['{{element}} .pagelayer-badge-text' => 'color:{{val}};'],
4261 + 'show' => ['text_state' => '']
2675 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 + ),
2676 4269 'text_style' => array(
2677 4270 'type' => 'typography',
2678 4271 'label' => __pl('text_size'),
2679 4272 'default' => ',25,,400,,,,,,,',
2680 - 'screen' => 1,
2681 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;'],
2682 4274 ),
2683 4275 ],
2684 4276 'badge_style' => [
@@ -2700,9 +4292,9 @@
2700 4292 ),
2701 4293 'badge_background_color' => array(
2702 4294 'type' => 'color',
2703 4295 'label' => __pl('badge_text_background_label'),
2704 - 'default' => '#4982eeff',
4296 + 'default' => '#4982ee',
2705 4297 'css' => ['{{element}} .pagelayer-badge-custom' => 'background-color:{{val}};'],
2706 4298 'req' => ['badge_notification_type' => 'custom'],
2707 4299 ),
2708 4300 'badge_vspacing' => array(
@@ -2772,9 +4364,9 @@
2772 4364 ),
2773 4365 'badge_btn_background_color' => array(
2774 4366 'type' => 'color',
2775 4367 'label' => __pl('badge_btn_background_label'),
2776 - 'default' => '#4982eeff',
4368 + 'default' => '#4982ee',
2777 4369 'css' => ['{{element}} .pagelayer-badge-btn' => 'background-color:{{val}};'],
2778 4370 'req' => [
2779 4371 'badge_btn_type' => 'custom',
2780 4372 'badge_button' => 'true',
@@ -2783,9 +4375,9 @@
2783 4375 ),
2784 4376 'badge_btn_background_color_hover' => array(
2785 4377 'type' => 'color',
2786 4378 'label' => __pl('badge_btn_background_label'),
2787 - 'default' => '#4982eeff',
4379 + 'default' => '#4982ee',
2788 4380 'css' => ['{{element}} .pagelayer-badge-btn:hover' => 'background-color:{{val}};'],
2789 4381 'show' => ['badge_btn_hover' => 'hover'],
2790 4382 ),
2791 4383 ],
@@ -2800,15 +4392,14 @@
2800 4392 // Tooltip
2801 4393 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tooltip', array(
2802 4394 'name' => __pl('Tooltip'),
2803 4395 'group' => 'text',
2804 - 'func' => 'pagelayer_sc_tooltip',
2805 4396 'innerHTML' => 'tooltip_text',
2806 4397 'html' => '<div class="pagelayer-tooltip-container">
2807 - <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>
2808 4399 <span if="{{text}}" class="pagelayer-tooltip-title">{{text}}</span>
2809 4400 <div if="{{tooltip_text}}" class="pagelayer-tooltip-text pagelayer-tooltip-{{tooltip_position}}">
2810 - <span>{{tooltip_text}}</span>
4401 + {{tooltip_text}}
2811 4402 </div>
2812 4403 </div>',
2813 4404 'params' => array(
2814 4405 'text' => array(
@@ -2820,9 +4411,9 @@
2820 4411 'tooltip_text' => array(
2821 4412 'type' => 'editor',
2822 4413 'label' => __pl('tooltip_text'),
2823 4414 'default' => 'Hey there, I have an amazing tooltip !',
2824 - 'edit' => '.pagelayer-tooltip',
4415 + 'edit' => '.pagelayer-tooltip-text',
2825 4416 ),
2826 4417 ),
2827 4418 'text_style' => [
2828 4419 'tooltip_align' => array(
@@ -2845,17 +4436,16 @@
2845 4436 'text_size' => array(
2846 4437 'type' => 'typography',
2847 4438 'label' => __pl('tooltip_title_size'),
2848 4439 'default' => ',25,,400,,,,,,,',
2849 - 'screen' => 1,
2850 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;',
2851 - '{{element}} .pagelayer-tooltip-icon .fa' => 'font-size: {{val[1]}}px !important;'],
4441 + '{{element}} .pagelayer-tooltip-icon i' => 'font-size: {{val[1]}}px !important;'],
2852 4442 ),
2853 4443 'tooltip_text_shadow' => array(
2854 4444 'type' => 'shadow',
2855 4445 'label' => __pl('tooltip_text_shadow'),
2856 4446 'css' => ['{{element}} .pagelayer-tooltip-title' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};',
2857 - '{{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]}};'],
2858 4448 ),
2859 4449 ],
2860 4450 'tooltip_style' => [
2861 4451 'tooltip_position' => array(
@@ -2907,15 +4497,14 @@
2907 4497 'tooltip_text_size' => array(
2908 4498 'type' => 'typography',
2909 4499 'label' => __pl('tooltip_text_size'),
2910 4500 'default' => ',18,,400,,,,,,,',
2911 - 'screen' => 1,
2912 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;'],
2913 4502 ),
2914 4503 'tooltip_shadow' => array(
2915 - 'type' => 'shadow',
4504 + 'type' => 'box_shadow',
2916 4505 'label' => __pl('tooltip_shadow'),
2917 - '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]}};'],
2918 4507 ),
2919 4508 ],
2920 4509 'icon_style' => [
2921 4510 'show_icon' => array(
@@ -2924,9 +4513,9 @@
2924 4513 ),
2925 4514 'tooltip_icon' => array(
2926 4515 'type' => 'icon',
2927 4516 'label' => __pl('tooltip_icon'),
2928 - 'default' => 'exclamation-circle',
4517 + 'default' => 'fas fa-exclamation-circle',
2929 4518 'req' => array(
2930 4519 'show_icon' => 'true',
2931 4520 )
2932 4521 ),
@@ -2932,9 +4521,9 @@
2932 4521 ),
2933 4522 'icon_color' => array(
2934 4523 'type' => 'color',
2935 4524 'label' => __pl('tooltip_icon_color'),
2936 - 'default' => '#3E8EF7',
4525 + 'default' => '#0986c0',
2937 4526 'css' => ['{{element}} .pagelayer-tooltip-icon' => 'color:{{val}};'],
2938 4527 'req' => array(
2939 4528 'show_icon' => 'true',
2940 4529 )
@@ -2981,16 +4570,15 @@
2981 4570 // Image
2982 4571 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image', array(
2983 4572 'name' => __pl('image'),
2984 4573 'group' => 'image',
2985 - 'func' => 'pagelayer_sc_image',
2986 4574 'innerHTML' => 'text',
2987 - 'html' => '<div class="pagelayer-image-holder">
4575 + 'html' => '<div class="pagelayer-image-holder pagelayer-anim-par">
2988 4576 <a if-ext="{{link_type}}" class="pagelayer-ele-link" href="{{func_link}}" pagelayer-image-link-type="{{link_type}}">
2989 - <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}}" />
2990 4578 <div if="{{overlay}}" class="pagelayer-image-overlay {{content_position}}">
2991 4579 <div class="pagelayer-image-overlay-content">
2992 - <i if="{{icon}}" class="pagelayer-image-overlay-icon fa fa-{{icon}}"></i>
4580 + <i if="{{icon}}" class="pagelayer-image-overlay-icon {{icon}}"></i>
2993 4581 <div if="{{text}}" class="pagelayer-image-overlay-text">{{text}}</div>
2994 4582 </div>
2995 4583 </div>
2996 4584 </a>
@@ -3001,8 +4589,9 @@
3001 4589 'label' => __pl('image_src_label'),
3002 4590 'desc' => __pl('image_src_desc'),
3003 4591 'type' => 'image',
3004 4592 'default' => PAGELAYER_URL.'/images/default-image.png',
4593 + 'retina' => 1,
3005 4594 ),
3006 4595 'id-size' => array(
3007 4596 'label' => __pl('obj_image_size_label'),
3008 4597 'type' => 'select',
@@ -3017,8 +4606,9 @@
3017 4606 ),
3018 4607 'custom_size' => array(
3019 4608 'label' => __pl('image_custom_size_label'),
3020 4609 'type' => 'text',
4610 + 'screen' => 1,
3021 4611 'default' => '100x100',
3022 4612 'sep' => 'x',
3023 4613 'css' => ['{{element}} img' => 'width: {{val[0]}}px; height: {{val[1]}}px;'],
3024 4614 'req' => array(
@@ -3028,9 +4618,9 @@
3028 4618 'align' => array(
3029 4619 'label' => __pl('obj_align_label'),
3030 4620 'type' => 'radio',
3031 4621 'default' => 'center',
3032 - 'addAttr' => 'align="{{align}}"',
4622 + 'screen' => 1,
3033 4623 'css' => ['{{element}} .pagelayer-image-holder' => 'text-align: {{val}}', '{{element}} .pagelayer-image-holder .pagelayer-image-overlay-content' => 'text-align: {{val}}'],
3034 4624 'list' => array(
3035 4625 'left' => __pl('left'),
3036 4626 'center' => __pl('center'),
@@ -3044,26 +4634,119 @@
3044 4634 'max' => 100,
3045 4635 'screen' => 1,
3046 4636 'css' => ['{{element}} img' => 'max-width: {{val}}%'],
3047 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 + ),
3048 4647 'img_filter' => array(
3049 4648 'type' => 'filter',
3050 4649 'label' => __pl('filter'),
3051 - 'default' => '0,100,100,0,0,100,100',
4650 + //'default' => '0,100,100,0,0,100,100',
3052 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']
3053 4653 ),
3054 4654 'img_shadow' => array(
3055 - 'type' => 'shadow',
4655 + 'type' => 'box_shadow',
3056 4656 'label' => __pl('shadow'),
3057 4657 'screen' => 1,
3058 - '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']
3059 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 + ),
3060 4743 ),
3061 4744 // Image related Styles
3062 4745 'link_settings' => [
3063 4746 'link_type' => array(
4747 + 'type' => 'select',
3064 4748 'label' => __pl('image_link_label'),
3065 - 'type' => 'select',
3066 4749 'default' => '',
3067 4750 'list' => array(
3068 4751 '' => __pl('none'),
3069 4752 'custom_url' => __pl('custom_url'),
@@ -3071,18 +4754,19 @@
3071 4754 'lightbox' => __pl('lightbox')
3072 4755 )
3073 4756 ),
3074 4757 'link' => array(
4758 + 'type' => 'link',
3075 4759 'label' => __pl('image_link_label'),
3076 4760 'desc' => __pl('image_link_desc'),
3077 - 'type' => 'link',
4761 + 'selector' => '.pagelayer-ele-link',
3078 4762 'req' => array(
3079 4763 'link_type' => 'custom_url'
3080 4764 )
3081 4765 ),
3082 4766 'rel' => array(
4767 + 'type' => 'text',
3083 4768 'label' => __pl('image_rel_label'),
3084 - 'type' => 'text',
3085 4769 'default' => '',
3086 4770 'addAttr' => ['{{element}} a' => 'rel="{{rel}}"'],
3087 4771 'req' => array(
3088 4772 'link_type' => 'media_file'
@@ -3093,9 +4777,10 @@
3093 4777 'type' => 'checkbox',
3094 4778 'addAttr' => ['{{element}} a' => 'target="_blank"'],
3095 4779 'req' => array(
3096 4780 'link_type' => ['custom_url', 'media_file']
3097 - )
4781 + ),
4782 + 'show' => ['link_type' => 'media_file']
3098 4783 ),
3099 4784 ],
3100 4785 // Caption related Styles
3101 4786 'caption_style' => [
@@ -3107,10 +4792,15 @@
3107 4792 ),
3108 4793 'caption_color' => array(
3109 4794 'label' => __pl('Caption Color'),
3110 4795 'type' => 'color',
3111 - 'default' => '#3E8EF7',
4796 + 'default' => '#0986c0',
3112 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;'],
3113 4803 )
3114 4804 ],
3115 4805 'overlay_style' => [
3116 4806 'overlay' => array(
@@ -3120,9 +4810,9 @@
3120 4810 ),
3121 4811 'icon' => array(
3122 4812 'label' => __pl('icon'),
3123 4813 'type' => 'icon',
3124 - 'default' => 'star',
4814 + 'default' => 'fas fa-star',
3125 4815 'req' => array(
3126 4816 'overlay' => 'true'
3127 4817 )
3128 4818 ),
@@ -3152,13 +4842,25 @@
3152 4842 'text' => array(
3153 4843 'label' => __pl('content'),
3154 4844 'type' => 'editor',
3155 4845 'default' => '<p>Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s.</p>',
3156 - 'text' => __pl('open_in_pleditor'),
4846 + 'edit' => '.pagelayer-image-overlay-text',
3157 4847 'req' => array(
3158 4848 'overlay' => 'true'
3159 4849 )
3160 - ),
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 + ),
3161 4863 'overlay_bg' => array(
3162 4864 'label' => __pl('image_overlay_background'),
3163 4865 'type' => 'color',
3164 4866 'default' => 'rgba(0,0,0,.6)',
@@ -3163,11 +4865,21 @@
3163 4865 'type' => 'color',
3164 4866 'default' => 'rgba(0,0,0,.6)',
3165 4867 'css' => ['{{element}} .pagelayer-image-overlay' => 'background: {{val}}'],
3166 4868 'req' => array(
3167 - 'overlay' => 'true'
4869 + 'overlay' => 'true',
4870 + '!overlay_bg_type' => 'gradient'
3168 4871 )
3169 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 + ],
3170 4882 'content_position' => array(
3171 4883 'label' => __pl('Overlay Content Position'),
3172 4884 'type' => 'radio',
3173 4885 'default' => 'center',
@@ -3194,9 +4906,9 @@
3194 4906 ],
3195 4907 'styles' => [
3196 4908 'link_settings' => __pl('link_settings'),
3197 4909 'caption_style' => __pl('caption_style'),
3198 - 'overlay_style' => __pl('overlay_style'),
4910 + 'overlay_style' => __pl('overlay_style')
3199 4911 ],
3200 4912 )
3201 4913 );
3202 4914
@@ -3203,12 +4915,12 @@
3203 4915 // Image Slider
3204 4916 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_slider', array(
3205 4917 'name' => __pl('Image Slider'),
3206 4918 'group' => 'image',
4919 + 'prevent_inside' => ['pl_slides'],
3207 4920 'html' => '<div class="pagelayer-image-slider-div">
3208 4921 <ul class="pagelayer-image-slider-ul pagelayer-owl-holder pagelayer-owl-carousel pagelayer-owl-theme">{{ul}}</ul>
3209 4922 </div>',
3210 - 'func' => 'pagelayer_sc_image_slider',
3211 4923 'settings' => [
3212 4924 'params' => __pl('Image Slider'),
3213 4925 'slider_options' => __pl('slider_options'),
3214 4926 ],
@@ -3216,9 +4928,8 @@
3216 4928 'ids' => array(
3217 4929 'type' => 'multi_image',
3218 4930 'label' => __pl('image_slider_ids_label'),
3219 4931 'desc' => __pl('media_library_images_ids_desc'),
3220 - 'text' => __pl('image_slider_ids_text'),
3221 4932 ),
3222 4933 'size' => array(
3223 4934 'type' => 'select',
3224 4935 'label' => __pl('obj_image_size_label'),
@@ -3250,11 +4961,12 @@
3250 4961 'media_file' => __pl('media_file'),
3251 4962 )
3252 4963 ),
3253 4964 'link' => array(
4965 + 'type' => 'link',
3254 4966 'label' => __pl('image_link_url'),
3255 4967 'desc' => __pl('image_link_desc'),
3256 - 'type' => 'link',
4968 + 'selector' => '.pagelayer-link-sel',
3257 4969 'req' => array(
3258 4970 'link_type' => 'custom_url'
3259 4971 )
3260 4972 ),
@@ -3263,10 +4975,18 @@
3263 4975 'type' => 'checkbox',
3264 4976 'addAttr' => ['{{element}} a' => 'target="_blank"'],
3265 4977 'req' => array(
3266 4978 'link_type' => ['custom_url', 'media_file']
3267 - )
4979 + ),
4980 + 'show' => ['link_type' => 'media_file'] // Backward compatibility of link props
3268 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 + ),
3269 4989 ),
3270 4990 'slider_options' => [
3271 4991 'slide_items' => array(
3272 4992 'type' => 'spinner',
@@ -3361,18 +5081,17 @@
3361 5081 // Grid Gallery
3362 5082 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_grid_gallery', array(
3363 5083 'name' => __pl('Grid Gallery'),
3364 5084 'group' => 'image',
3365 - 'func' => 'pagelayer_sc_grid_gallery',
3366 5085 'html' => '<div class="pagelayer-grid-gallery-container">
3367 - {{ul}}
3368 - </div>',
5086 + {{ul}}
5087 + </div>
5088 + {{pagin}}',
3369 5089 'params' => array(
3370 5090 'ids' => array(
3371 5091 'type' => 'multi_image',
3372 5092 'label' => __pl('grid_gallery_images'),
3373 5093 'desc' => __pl('media_library_images_ids_desc'),
3374 - 'text' => __pl('image_slider_ids_text'),
3375 5094 ),
3376 5095 'columns' => array(
3377 5096 'type' => 'select',
3378 5097 'label' => __pl('columns_count'),
@@ -3425,9 +5144,9 @@
3425 5144 )
3426 5145 ),
3427 5146 'custom_size' => array(
3428 5147 'type' => 'dimension',
3429 - 'desc' => __pl('image_custom_size_label'),
5148 + 'label' => __pl('image_custom_size_label'),
3430 5149 'req' => array(
3431 5150 'size' => 'custom'
3432 5151 ),
3433 5152 'screen' => 1,
@@ -3476,8 +5195,11 @@
3476 5195 'list' => array(
3477 5196 'left' => __pl('left'),
3478 5197 'center' => __pl('center'),
3479 5198 'right' => __pl('right')
5199 + ),
5200 + 'req' => array(
5201 + 'caption' => 'true'
3480 5202 )
3481 5203 ),
3482 5204 'caption_color' => array(
3483 5205 'label' => __pl('Caption Color'),
@@ -3486,8 +5208,17 @@
3486 5208 'css' => ['{{element}} .pagelayer-grid-gallery-caption' => 'color: {{val}}'],
3487 5209 'req' => array(
3488 5210 'caption' => 'true'
3489 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
3490 5221 )
3491 5222 )
3492 5223 )
3493 5224 );
@@ -3501,31 +5232,28 @@
3501 5232 // Button
3502 5233 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_btn', array(
3503 5234 'name' => __pl('button'),
3504 5235 'group' => 'button',
3505 - 'func' => 'pagelayer_sc_btn',
3506 5236 'html' => '<a class="pagelayer-btn-holder pagelayer-ele-link {{type}} {{size}} {{icon_position}}">
3507 - <i if="{{icon}}" class="fa fa-{{icon}} pagelayer-btn-icon"></i>
5237 + <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
3508 5238 <span if="{{text}}" class="pagelayer-btn-text">{{text}}</span>
3509 - <i if="{{icon}}" class="fa fa-{{icon}} pagelayer-btn-icon"></i>
5239 + <i if="{{icon}}" class="{{icon}} pagelayer-btn-icon"></i>
3510 5240 </a>',
3511 5241 'params' => array(
3512 5242 'text' => array(
3513 5243 'type' => 'text',
3514 5244 'label' => __pl('button_text_label'),
3515 - 'default' => __pl('button_name')
5245 + 'default' => __pl('button_name'),
5246 + 'edit' => '.pagelayer-btn-text',
3516 5247 ),
3517 5248 'link' => array(
3518 5249 'type' => 'link',
3519 5250 'label' => __pl('button_link_label'),
3520 5251 'desc' => __pl('button_link_desc'),
3521 - 'addAttr' => ['{{element}} .pagelayer-btn-holder' => 'href="{{link}}"']
5252 + 'selector' => '.pagelayer-btn-holder',
5253 + 'addAttr' => ['{{element}} .pagelayer-btn-holder' => 'href="{{{link}}}"'],
5254 + 'req' => ['ele_scrollto' => '']
3522 5255 ),
3523 - 'target' => array(
3524 - 'type' => 'checkbox',
3525 - 'label' => __pl('open_link_in_new_window'),
3526 - 'addAttr' => ['{{element}} a' => 'target="_blank"']
3527 - ),
3528 5256 'full_width' => array(
3529 5257 'type' => 'checkbox',
3530 5258 'label' => __pl('stretch'),
3531 5259 'screen' => 1,
@@ -3533,9 +5261,8 @@
3533 5261 ),
3534 5262 'btn_typo' => array(
3535 5263 'type' => 'typography',
3536 5264 'label' => __pl('quote_content_typo'),
3537 - 'screen' => 1,
3538 5265 'css' => [
3539 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;',
3540 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;',
3541 5268 ],
@@ -3569,8 +5296,11 @@
3569 5296 'list' => array(
3570 5297 'pagelayer-btn-icon-left' => __pl('left'),
3571 5298 'pagelayer-btn-icon-right' => __pl('right')
3572 5299 ),
5300 + 'req' => array(
5301 + '!icon' => ''
5302 + ),
3573 5303 ),
3574 5304 'icon_spacing' => array(
3575 5305 'type' => 'slider',
3576 5306 'label' => __pl('icon_spacing'),
@@ -3580,9 +5310,9 @@
3580 5310 'default' => 5,
3581 5311 'screen' => 1,
3582 5312 'css' => ['{{element}} .pagelayer-btn-icon' => 'padding: 0 {{val}}px;'],
3583 5313 'req' => array(
3584 - '!icon' => 'none'
5314 + '!icon' => ''
3585 5315 ),
3586 5316 ),
3587 5317 ],
3588 5318 'btn_style' => [
@@ -3601,11 +5331,40 @@
3601 5331 'pagelayer-btn-danger' => __pl('btn_type_danger'),
3602 5332 'pagelayer-btn-dark' => __pl('btn_type_dark'),
3603 5333 'pagelayer-btn-light' => __pl('btn_type_light'),
3604 5334 'pagelayer-btn-link' => __pl('btn_type_link'),
5335 + 'pagelayer-btn-anim' => __pl('btn_type_anim'),
3605 5336 'pagelayer-btn-custom' => __pl('btn_type_custom')
3606 5337 ),
3607 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 + ),
3608 5367 'size' => array(
3609 5368 'type' => 'select',
3610 5369 'label' => __pl('button_size_label'),
3611 5370 'default' => 'pagelayer-btn-large',
@@ -3627,9 +5386,9 @@
3627 5386 'default' => 5,
3628 5387 'screen' => 1,
3629 5388 'css' => ['{{element}} .pagelayer-btn-holder' => 'padding: calc({{val}}px / 2) {{val}}px;'],
3630 5389 'req' => array(
3631 - 'size' => 'pagelayer-btn-custom'
5390 + 'size' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
3632 5391 ),
3633 5392 ),
3634 5393 'btn_hover' => array(
3635 5394 'type' => 'radio',
@@ -3640,18 +5399,23 @@
3640 5399 '' => __pl('normal'),
3641 5400 'hover' => __pl('hover'),
3642 5401 ),
3643 5402 'req' => array(
3644 - 'type' => 'pagelayer-btn-custom',
5403 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
3645 5404 ),
3646 5405 ),
3647 5406 'btn_bg_color' => array(
3648 5407 'type' => 'color',
3649 5408 'label' => __pl('btn_bg_color_label'),
3650 - 'default' => '#3e8ef7',
3651 - '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 + ],
3652 5416 'req' => array(
3653 - 'type' => 'pagelayer-btn-custom',
5417 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
3654 5418 ),
3655 5419 'show' => array(
3656 5420 'btn_hover' => ''
3657 5421 ),
@@ -3661,9 +5425,9 @@
3661 5425 'label' => __pl('btn_color_label'),
3662 5426 'default' => '#ffffff',
3663 5427 'css' => ['{{element}} .pagelayer-btn-holder' => 'color: {{val}};'],
3664 5428 'req' => array(
3665 - 'type' => 'pagelayer-btn-custom',
5429 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
3666 5430 ),
3667 5431 'show' => array(
3668 5432 'btn_hover' => ''
3669 5433 ),
@@ -3677,8 +5441,9 @@
3677 5441 'max' => 5000,
3678 5442 'default' => 400,
3679 5443 'css' => ['{{element}} .pagelayer-btn-holder' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
3680 5444 'show' => array(
5445 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
3681 5446 'btn_hover' => 'hover'
3682 5447 ),
3683 5448 ),
3684 5449 'btn_bg_color_hover' => array(
@@ -3684,14 +5449,18 @@
3684 5449 'btn_bg_color_hover' => array(
3685 5450 'type' => 'color',
3686 5451 'label' => __pl('btn_bg_color_hover_label'),
3687 5452 'default' => '',
3688 - '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 + ],
3689 5456 'req' => array(
3690 - 'type' => 'pagelayer-btn-custom',
5457 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
5458 + '!anim_type' => ['glow','thin'],
3691 5459 ),
3692 5460 'show' => array(
3693 - 'btn_hover' => 'hover'
5461 + 'btn_hover' => 'hover',
5462 + '!anim_type' => ['glow','thin'],
3694 5463 ),
3695 5464 ),
3696 5465 'btn_color_hover' => array(
3697 5466 'type' => 'color',
@@ -3698,14 +5467,24 @@
3698 5467 'label' => __pl('btn_color_hover_label'),
3699 5468 'default' => '',
3700 5469 'css' => ['{{element}} .pagelayer-btn-holder:hover' => 'color: {{val}};'],
3701 5470 'req' => array(
3702 - 'type' => 'pagelayer-btn-custom',
5471 + 'type' => ['pagelayer-btn-custom','pagelayer-btn-anim'],
3703 5472 ),
3704 5473 'show' => array(
3705 5474 'btn_hover' => 'hover'
3706 5475 ),
3707 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 + ],
3708 5487 ],
3709 5488 'border_style' => [
3710 5489 'btn_bor_hover' => array(
3711 5490 'type' => 'radio',
@@ -3719,9 +5498,12 @@
3719 5498 ),
3720 5499 'btn_border_type' => array(
3721 5500 'type' => 'select',
3722 5501 'label' => __pl('border_type'),
3723 - '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 + ],
3724 5506 'list' => [
3725 5507 '' => __pl('none'),
3726 5508 'solid' => __pl('solid'),
3727 5509 'double' => __pl('double'),
@@ -3748,9 +5530,9 @@
3748 5530 'btn_border_width' => array(
3749 5531 'type' => 'padding',
3750 5532 'label' => __pl('border_width'),
3751 5533 'screen' => 1,
3752 - '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'],
3753 5535 'req' => [
3754 5536 '!btn_border_type' => ''
3755 5537 ],
3756 5538 'show' => array(
@@ -3760,20 +5542,25 @@
3760 5542 'btn_border_radius' => array(
3761 5543 'type' => 'padding',
3762 5544 'label' => __pl('border_radius'),
3763 5545 'screen' => 1,
3764 - '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;'],
3765 5547 'req' => array(
3766 - '!btn_border_type' => ''
5548 + '!btn_border_type' => '',
5549 + '!anim_type' => 'slide'
3767 5550 ),
3768 5551 'show' => array(
3769 - 'btn_bor_hover' => ''
5552 + 'btn_bor_hover' => '',
5553 + '!anim_type' => 'slide'
3770 5554 ),
3771 5555 ),
3772 5556 'btn_border_type_hover' => array(
3773 5557 'type' => 'select',
3774 5558 'label' => __pl('border_type'),
3775 - '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 + ],
3776 5563 'list' => [
3777 5564 '' => __pl('none'),
3778 5565 'solid' => __pl('solid'),
3779 5566 'double' => __pl('double'),
@@ -3800,9 +5587,11 @@
3800 5587 'btn_border_width_hover' => array(
3801 5588 'type' => 'padding',
3802 5589 'label' => __pl('border_width_hover'),
3803 5590 'screen' => 1,
3804 - '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 + ],
3805 5594 'req' => [
3806 5595 '!btn_border_type_hover' => ''
3807 5596 ],
3808 5597 'show' => array(
@@ -3812,35 +5601,85 @@
3812 5601 'btn_border_radius_hover' => array(
3813 5602 'type' => 'padding',
3814 5603 'label' => __pl('border_radius_hover'),
3815 5604 'screen' => 1,
3816 - '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;'],
3817 5606 'req' => array(
3818 - '!btn_border_type_hover' => ''
5607 + '!btn_border_type_hover' => '',
5608 + '!anim_type' => 'slide'
3819 5609 ),
3820 5610 'show' => array(
3821 - 'btn_bor_hover' => 'hover'
5611 + 'btn_bor_hover' => 'hover',
5612 + '!anim_type' => 'slide'
3822 5613 ),
3823 5614 ),
3824 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 + ],
3825 5664 'styles' => [
3826 5665 'btn_style' => __pl('btn_style'),
3827 5666 'icon_style' => __pl('icon'),
3828 5667 'border_style' => __pl('border_style'),
5668 + 'scroll_to_element' => __pl('scroll_to_element'),
3829 5669 ]
3830 5670 )
3831 5671 );
3832 5672
3833 -
3834 5673 // Social Profile Item
3835 5674 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social', array(
3836 5675 'name' => __pl('Social Profile'),
3837 5676 'group' => 'button',
3838 - 'func' => 'pagelayer_sc_social',
3839 5677 'not_visible' => 1,
3840 - 'html' => '<div class="pagelayer-icon-holder pagelayer-{{icon}}-icon">
3841 - <a if-ext="{{social_url}}" class="pagelayer-ele-link" href="{{social_url}}">
3842 - <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>
3843 5682 </a>
3844 5683 </div>',
3845 5684 'params' => array(
3846 5685 'icon' => array(
@@ -3845,15 +5684,19 @@
3845 5684 'params' => array(
3846 5685 'icon' => array(
3847 5686 'type' => 'icon',
3848 5687 'label' => __pl('list_icon_label'),
3849 - 'default' => 'facebook-official',
3850 - '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'
3851 5692 ),
3852 5693 'social_url' => array(
3853 5694 'type' => 'link',
3854 - 'label' => __pl('social_url_label')
3855 - )
5695 + 'label' => __pl('social_url_label'),
5696 + 'selector' => '.pagelayer-ele-link',
5697 + 'default' => get_option('pagelayer-facebook-url'),
5698 + ),
3856 5699 )
3857 5700 )
3858 5701 );
3859 5702
@@ -3860,9 +5703,8 @@
3860 5703 // Social Profile
3861 5704 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_social_grp', array(
3862 5705 'name' => __pl('Social Profile'),
3863 5706 'group' => 'button',
3864 - 'func' => 'pagelayer_sc_social_grp',
3865 5707 'has_group' => [
3866 5708 'section' => 'params',
3867 5709 'prop' => 'elements'
3868 5710 ],
@@ -3883,9 +5725,9 @@
3883 5725 'bg_shape' => array(
3884 5726 'type' => 'select',
3885 5727 'label' => __pl('icon_background_shape'),
3886 5728 'default' => '',
3887 - '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%);',
3888 5730 '{{element}} .pagelayer-icon-holder' => 'position: relative; min-height: 1em; min-width: 1em;'],
3889 5731 'addClass' => '{{val}}',
3890 5732 'list' => array(
3891 5733 '' => __pl('icon_shape_none'),
@@ -3985,9 +5827,9 @@
3985 5827 ),
3986 5828 'icon_bg_color' => array(
3987 5829 'type' => 'color',
3988 5830 'label' => __pl('social_bg_color_label'),
3989 - 'default' => '#3E8EF7',
5831 + 'default' => '#0986c0',
3990 5832 'css' => ['{{element}} .pagelayer-icon-holder' => 'background-color: {{val}} !important;'],
3991 5833 'req' => array(
3992 5834 '!bg_shape' => '',
3993 5835 'color_scheme' => ''
@@ -3993,8 +5835,64 @@
3993 5835 'color_scheme' => ''
3994 5836 ),
3995 5837 'show' => ['social_hover' => '']
3996 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 + ),
3997 5895 'icon_border_type' => array(
3998 5896 'type' => 'select',
3999 5897 'label' => __pl('border_type'),
4000 5898 'css' => ['{{element}} .pagelayer-icon-holder' => 'border-style: {{val}}'],
@@ -4052,66 +5950,8 @@
4052 5950 'show' => array(
4053 5951 'social_hover' => 'hover'
4054 5952 ),
4055 5953 ),
4056 - 'anim_hover' => array(
4057 - 'type' => 'select',
4058 - 'label' => __pl('icon_animation'),
4059 - 'list' => [
4060 - '' => __pl('none'),
4061 - 'grow' => __pl('Grow'),
4062 - 'shrink' => __pl('Shrink'),
4063 - 'pulse' => __pl('Pulse'),
4064 - 'pulse-grow' => __pl('Pulse Grow'),
4065 - 'pulse-shrink' => __pl('Pulse Shrink'),
4066 - 'push' => __pl('Push'),
4067 - 'pop' => __pl('Pop'),
4068 - 'buzz' => __pl('Buzz'),
4069 - 'buzz-out' => __pl('Buzz Out'),
4070 - 'float' => __pl('Float'),
4071 - 'sink' => __pl('Sink'),
4072 - 'bob' => __pl('Bob'),
4073 - 'hang' => __pl('Hang'),
4074 - 'bounce-in' => __pl('Bounce In'),
4075 - 'bounce-out' => __pl('Bounce Out'),
4076 - 'rotate' => __pl('Rotate'),
4077 - 'grow-rotate' => __pl('Grow Rotate'),
4078 - 'skew-forward' => __pl('Skew Forward'),
4079 - 'skew-backward' => __pl('Skew Backward'),
4080 - 'wobble-vertical' => __pl('Wobble Vertical'),
4081 - 'wobble-horizontal' => __pl('Wobble Horizontal'),
4082 - 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
4083 - 'wobble-top-to-right' => __pl('Wobble Top To Right'),
4084 - 'wobble-top' => __pl('Wobble Top'),
4085 - 'wobble-bottom' => __pl('Wobble Bottom'),
4086 - 'wobble-skew' => __pl('Wobble Skew'),
4087 - ],
4088 - 'show' => array(
4089 - 'social_hover' => 'hover',
4090 - ),
4091 - 'addAttr' => 'pagelayer-animation="{{anim_hover}}"',
4092 - ),
4093 - 'icon_color_hover' => array(
4094 - 'type' => 'color',
4095 - 'label' => __pl('social_color_label'),
4096 - 'default' => '#ffffff',
4097 - 'css' => ['{{element}} .pagelayer-icon-holder:hover .pagelayer-social-fa' => 'color: {{val}} !important;'],
4098 - 'req' => array(
4099 - 'color_scheme' => ''
4100 - ),
4101 - 'show' => ['social_hover' => 'hover']
4102 - ),
4103 - 'icon_bg_color_hover' => array(
4104 - 'type' => 'color',
4105 - 'label' => __pl('social_bg_color_label'),
4106 - 'default' => '#3E8EF7',
4107 - 'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'background-color: {{val}} !important;'],
4108 - 'req' => array(
4109 - '!bg_shape' => '',
4110 - 'color_scheme' => ''
4111 - ),
4112 - 'show' => ['social_hover' => 'hover']
4113 - ),
4114 5954 'icon_border_type_hover' => array(
4115 5955 'type' => 'select',
4116 5956 'label' => __pl('border_type'),
4117 5957 'css' => ['{{element}} .pagelayer-icon-holder:hover' => 'border-style: {{val}}'],
@@ -4170,14 +6010,13 @@
4170 6010 // Video
4171 6011 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_video', array(
4172 6012 'name' => __pl('video'),
4173 6013 'group' => 'media',
4174 - 'func' => 'pagelayer_sc_video',
4175 6014 'html' => '<div class="pagelayer-video-holder pagelayer-video-{{video_ratio}}">
4176 - <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>
4177 6016 <a if-ext={{lightbox}} href="{{{src-url}}}">
4178 6017 <div if={{overlay}} class="pagelayer-video-overlay" style="background-image:url({{video_overlay_image-url}});">
4179 - <i class="fa fa-{{play_icon}}" aria-hidden="true"></i>
6018 + <i class="{{play_icon}}" aria-hidden="true"></i>
4180 6019 </div>
4181 6020 </a>
4182 6021 </div>',
4183 6022 'params' => array(
@@ -4183,9 +6022,9 @@
4183 6022 'params' => array(
4184 6023 'src' => array(
4185 6024 'type' => 'video',
4186 6025 'label' => __pl('video_src_label'),
4187 - 'default' => 'https://www.youtube.com/watch?v=VT7WfVp1owQ',
6026 + 'default' => 'https://www.youtube.com/watch?v=t8Iz-v-qce8',
4188 6027 'desc' => __pl('video_src_desc'),
4189 6028 ),
4190 6029 'lightbox' => array(
4191 6030 'type' => 'checkbox',
@@ -4202,9 +6041,9 @@
4202 6041 ],
4203 6042 ),
4204 6043 'mute' => array(
4205 6044 'type' => 'checkbox',
4206 - 'label' => __pl('Mute'),
6045 + 'label' => __pl('mute'),
4207 6046 ),
4208 6047 'loop' => array(
4209 6048 'type' => 'checkbox',
4210 6049 'label' => __pl('loop'),
@@ -4240,9 +6079,9 @@
4240 6079 ),
4241 6080 'play_icon' => array(
4242 6081 'type' => 'icon',
4243 6082 'label' => __pl('list_icon_label'),
4244 - 'default' => 'play-circle',
6083 + 'default' => 'fas fa-play-circle',
4245 6084 'req' => array(
4246 6085 'overlay' => 'true'
4247 6086 )
4248 6087 ),
@@ -4248,9 +6087,9 @@
4248 6087 ),
4249 6088 'icon_color' => array(
4250 6089 'type' => 'color',
4251 6090 'label' => __pl('service_heading_color'),
4252 - 'default' => '#3e8ef7',
6091 + 'default' => '#0986c0',
4253 6092 'css' => ['{{element}} .pagelayer-video-overlay i' => 'color:{{val}}'],
4254 6093 'req' => array(
4255 6094 'overlay' => 'true'
4256 6095 )
@@ -4290,22 +6129,21 @@
4290 6129 // Service Box
4291 6130 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_service', array(
4292 6131 'name' => __pl('Image Box'),
4293 6132 'group' => 'other',
4294 - 'func' => 'pagelayer_sc_service',
4295 6133 'innerHTML' => 'service_text',
4296 6134 'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
4297 6135 <div if="{{service_image}}" class="pagelayer-service-image">
4298 - <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}}" />
4299 6137 </div>
4300 6138 <div class="pagelayer-service-details">
4301 - <a if-ext={{heading_url}} href="{{heading_url}}" class="pagelayer-ele-link">
6139 + <a if-ext={{heading_url}} href="{{{heading_url}}}" class="pagelayer-ele-link pagelayer-service-heading-link" >
4302 6140 <div if={{service_heading}} class="pagelayer-service-heading">{{service_heading}}</div>
4303 6141 </a>
4304 6142 <div if={{service_text}} class="pagelayer-service-text">{{service_text}}</div>
4305 - <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>
4306 6144 </div>
4307 - <a if-ext={{box_url}} href="{{box_url}}" class="pagelayer-ele-link pagelayer-box-link"> </a>
6145 + <a if-ext={{box_url}} href="{{{box_url}}}" class="pagelayer-ele-link pagelayer-box-link"> </a>
4308 6146 </div>',
4309 6147 'params' => [
4310 6148 'service_image' => array(
4311 6149 'type' => 'image',
@@ -4310,8 +6148,9 @@
4310 6148 'service_image' => array(
4311 6149 'type' => 'image',
4312 6150 'label' => __pl('service_box_image_icon_label'),
4313 6151 'default' => PAGELAYER_URL.'/images/default-image.png',
6152 + 'retina' => 1,
4314 6153 ),
4315 6154 'service_image_size' => array(
4316 6155 'type' => 'radio',
4317 6156 'label' => __pl('service_box_image_icon_size_label'),
@@ -4328,9 +6167,9 @@
4328 6167 'min' => '0',
4329 6168 'max' => '2000',
4330 6169 'screen' => 1,
4331 6170 'default' => '200',
4332 - 'css' => ['{{element}} .pagelayer-service-image img' => 'width:{{val}}px; height: auto;'],
6171 + 'css' => ['{{element}} .pagelayer-service-image img' => 'width:{{val}}px;'],
4333 6172 'req' => array(
4334 6173 'service_image_size' => 'custom',
4335 6174 )
4336 6175 ),
@@ -4336,8 +6175,9 @@
4336 6175 ),
4337 6176 'box_url' => array(
4338 6177 'type' => 'link',
4339 6178 'label' => __pl('url'),
6179 + 'selector' => '.pagelayer-box-link',
4340 6180 ),
4341 6181 'anim_hover' => array(
4342 6182 'type' => 'select',
4343 6183 'label' => __pl('icon_animation'),
@@ -4369,11 +6209,12 @@
4369 6209 'wobble-top' => __pl('Wobble Top'),
4370 6210 'wobble-bottom' => __pl('Wobble Bottom'),
4371 6211 'wobble-skew' => __pl('Wobble Skew'),
4372 6212 ],
6213 + 'addClass' => 'pagelayer-anim-par'
4373 6214 )
4374 6215 ],
4375 - 'service_img_style' => [
6216 + 'service_img_style' => [
4376 6217 'service_alignment' => array(
4377 6218 'type' => 'radio',
4378 6219 'label' => __pl('service_box_media_alignment'),
4379 6220 'default' => 'top',
@@ -4393,11 +6234,47 @@
4393 6234 'bottom' => __pl('bottom'),
4394 6235 ),
4395 6236 'req' => ['!service_alignment' => 'top']
4396 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 + ),
4397 6273 'service_img_alignment' => array(
4398 6274 'type' => 'radio',
4399 6275 'label' => __pl('horizontal_pos'),
6276 + 'screen' => 1,
4400 6277 'css' => ['{{element}} .pagelayer-service-image' => 'text-align: {{val}};,'],
4401 6278 'list' => array(
4402 6279 'left' => __pl('left'),
4403 6280 'center' => __pl('center'),
@@ -4442,9 +6319,9 @@
4442 6319 ),
4443 6320 'img_border_color' => array(
4444 6321 'type' => 'color',
4445 6322 'label' => __pl('icon_border_color_label'),
4446 - 'default' => '#3e8ef7',
6323 + 'default' => '#0986c0',
4447 6324 'css' => ['{{element}} .pagelayer-service-image img' => 'border-color: {{val}};'],
4448 6325 'req' => [
4449 6326 '!img_border_type' => '',
4450 6327 ],
@@ -4504,9 +6381,9 @@
4504 6381 ),
4505 6382 'img_border_color_hover' => array(
4506 6383 'type' => 'color',
4507 6384 'label' => __pl('icon_border_color_hover_label'),
4508 - 'default' => '#3e8ef7',
6385 + 'default' => '#0986c0',
4509 6386 'css' => ['{{element}}:hover .pagelayer-service-image img' => 'border-color: {{val}};'],
4510 6387 'req' => [
4511 6388 '!img_border_type_hover' => '',
4512 6389 ],
@@ -4538,15 +6415,28 @@
4538 6415 'service_heading' => array(
4539 6416 'type' => 'textarea',
4540 6417 'label' => __pl('service_box_heading_label'),
4541 6418 'default' => 'This is an Image Box',
4542 - 'text' => __pl('open_in_wpeditor'),
6419 + 'edit' => '.pagelayer-service-heading',
4543 6420 ),
4544 6421 'heading_url' => array(
4545 6422 'type' => 'link',
4546 6423 'label' => __pl('url'),
4547 - 'req' => ['!service_heading' => '']
6424 + 'selector' => '.pagelayer-service-heading-link',
6425 + 'req' => ['!service_heading' => '', 'box_url' => '']
4548 6426 ),
6427 + 'heading_alignment' => array(
6428 + 'type' => 'radio',
6429 + 'label' => __pl('service_box_heading_alignment'),
6430 + 'default' => 'center',
6431 + 'screen' => 1,
6432 + 'list' => array(
6433 + 'left' => __pl('left'),
6434 + 'center' => __pl('center'),
6435 + 'right' => __pl('right'),
6436 + ),
6437 + 'css' => ['{{element}} .pagelayer-service-heading' => 'text-align:{{val}};'],
6438 + ),
4549 6439 'service_title_spacing' => array(
4550 6440 'type' => 'padding',
4551 6441 'label' => __pl('spacing'),
4552 6442 'screen' => 1,
@@ -4564,9 +6454,9 @@
4564 6454 ),
4565 6455 'service_heading_color' => array(
4566 6456 'type' => 'color',
4567 6457 'label' => __pl('service_heading_color'),
4568 - 'default' => '#3e8ef7',
6458 + 'default' => '#0986c0',
4569 6459 'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
4570 6460 'show' => ['heading_state' => 'normal'],
4571 6461 ),
4572 6462 'service_heading_typo' => array(
@@ -4572,9 +6462,8 @@
4572 6462 'service_heading_typo' => array(
4573 6463 'type' => 'typography',
4574 6464 'label' => __pl('service_heading_typo'),
4575 6465 'default' => ',28,,600,,,,,,,',
4576 - 'screen' => 1,
4577 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;'],
4578 6467 'show' => ['heading_state' => 'normal'],
4579 6468 ),
4580 6469 'heading_transition' => array(
@@ -4595,9 +6484,8 @@
4595 6484 ),
4596 6485 'heading_typo_hover' => array(
4597 6486 'type' => 'typography',
4598 6487 'label' => __pl('service_heading_typo'),
4599 - 'screen' => 1,
4600 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;'],
4601 6489 'show' => ['heading_state' => 'hover'],
4602 6490 ),
4603 6491 ],
@@ -4625,9 +6513,9 @@
4625 6513 'service_text' => array(
4626 6514 'type' => 'editor',
4627 6515 'label' => __pl('service_box_text_label'),
4628 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.',
4629 - 'text' => __pl('open_in_wpeditor'),
6517 + 'edit' => '.pagelayer-service-text',
4630 6518 )
4631 6519 ],
4632 6520 //service button style
4633 6521 'service_btn_style' =>[
@@ -4682,11 +6570,20 @@
4682 6570 'service_button' => 'true',
4683 6571 'service_button_size' => 'pagelayer-btn-custom',
4684 6572 ]
4685 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 + ),
4686 6582 'service_button_url' => array(
4687 6583 'type' => 'link',
4688 6584 'label' => __pl('service_btn_url_label'),
6585 + 'selector' => '.pagelayer-service-btn',
4689 6586 'req' => array(
4690 6587 'service_button' => 'true'
4691 6588 ),
4692 6589 ),
@@ -4693,8 +6590,9 @@
4693 6590 'service_button_text' => array(
4694 6591 'type' => 'text',
4695 6592 'label' => __pl('service_button_text_label'),
4696 6593 'default' => 'Click Here!',
6594 + 'edit' => '.pagelayer-service-btn',
4697 6595 'req' => array(
4698 6596 'service_button' => 'true'
4699 6597 ),
4700 6598 ),
@@ -4700,18 +6598,17 @@
4700 6598 ),
4701 6599 'service_button_typo' => array(
4702 6600 'type' => 'typography',
4703 6601 'label' => __pl('typography'),
4704 - 'screen' => 1,
4705 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']
4706 6604 ),
4707 6605 'service_btn_spacing' => array(
4708 6606 'type' => 'padding',
4709 6607 'label' => __pl('spacing'),
6608 + 'screen' => 1,
4710 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;'],
4711 - 'req' => [
4712 - 'service_button' => 'true',
4713 - ]
6610 + 'req' => ['service_button' => 'true']
4714 6611 ),
4715 6612 'service_button_font_size' => array(
4716 6613 'type' => 'slider',
4717 6614 'label' => __pl('iconbox_btn_text_size'),
@@ -4750,9 +6647,9 @@
4750 6647 ),
4751 6648 'service_button_bg_color' => array(
4752 6649 'type' => 'color',
4753 6650 'label' => __pl('service_button_bg_color'),
4754 - 'default' => '#3e8ef7',
6651 + 'default' => '#0986c0',
4755 6652 'css' => ['{{element}} .pagelayer-service-btn' => 'background-color:{{val}};'],
4756 6653 'req' => [
4757 6654 'service_button' => 'true',
4758 6655 'service_button_type' => 'pagelayer-btn-custom',
@@ -4783,13 +6680,126 @@
4783 6680 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'background-color:{{val}};'],
4784 6681 'show' => ['service_btn_state' => 'hover'],
4785 6682 ),
4786 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 + ],
4787 6796 'styles' => [
4788 6797 'service_img_style' => __pl('service_img_style'),
4789 6798 'service_heading_style' => __pl('service_heading_style'),
4790 6799 'service_content_style' => __pl('service_content_style'),
4791 6800 'service_btn_style' => __pl('service_btn_style'),
6801 + 'border_style' => __pl('btn_border_style'),
4792 6802 ],
4793 6803 )
4794 6804 );
4795 6805
@@ -4796,30 +6806,29 @@
4796 6806 // Icon Box
4797 6807 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_iconbox', array(
4798 6808 'name' => __pl('Icon Box'),
4799 6809 'group' => 'other',
4800 - 'func' => 'pagelayer_sc_iconbox',
4801 6810 'innerHTML' => 'service_text',
4802 6811 'html' => '<div class="pagelayer-service-container pagelayer-service-align-{{service_alignment}} pagelayer-service-vertical-{{service_vertical_alignment}}">
4803 6812 <div class="pagelayer-service-icon pagelayer-service-{{service_icon_view}}">
4804 - <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>
4805 6814 </div>
4806 6815 <div class="pagelayer-service-details">
4807 - <a if-ext={{heading_url}} href="{{heading_url}}" class="pagelayer-ele-link">
6816 + <a if-ext={{heading_url}} href="{{{heading_url}}}" class="pagelayer-ele-link pagelayer-service-heading-link" >
4808 6817 <div if="{{service_heading}}" class="pagelayer-service-heading">{{service_heading}}</div>
4809 6818 </a>
4810 6819 <div if="{{service_text}}" class="pagelayer-service-text">{{service_text}}</div>
4811 - <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}}">
4812 6821 <span if="{{service_button_text}}">{{service_button_text}}</span>
4813 6822 </a>
4814 6823 </div>
4815 - <a if-ext={{box_url}} href="{{box_url}}" class="pagelayer-ele-link pagelayer-box-link"> </a>
6824 + <a if-ext={{box_url}} href="{{{box_url}}}" class="pagelayer-ele-link pagelayer-box-link"> </a>
4816 6825 </div>',
4817 6826 'params' => array(
4818 6827 'service_icon' => array(
4819 6828 'type' => 'icon',
4820 6829 'label' => __pl('iconbox_font_icon_label'),
4821 - 'default' => 'exclamation-circle',
6830 + 'default' => 'fas fa-exclamation-circle',
4822 6831 ),
4823 6832 'service_alignment' => array(
4824 6833 'type' => 'radio',
4825 6834 'label' => __pl('iconbox_box_media_alignment'),
@@ -4845,8 +6854,9 @@
4845 6854 ),
4846 6855 'service_icon_alignment' => array(
4847 6856 'type' => 'radio',
4848 6857 'label' => __pl('horizontal_pos'),
6858 + 'screen' => 1,
4849 6859 'css' => ['{{element}} .pagelayer-service-icon' => 'text-align: {{val}};,'],
4850 6860 'list' => array(
4851 6861 'left' => __pl('left'),
4852 6862 'center' => __pl('center'),
@@ -4856,8 +6866,9 @@
4856 6866 ),
4857 6867 'box_url' => array(
4858 6868 'type' => 'link',
4859 6869 'label' => __pl('url'),
6870 + 'selector' => '.pagelayer-box-link',
4860 6871 ),
4861 6872 ),
4862 6873 // icon style
4863 6874 'service_icon_style' => [
@@ -4892,10 +6903,46 @@
4892 6903 'req' => ['!service_icon_view' => 'default'],
4893 6904 ),
4894 6905 'service_icon_spacing' => array(
4895 6906 'type' => 'padding',
6907 + 'screen' => 1,
4896 6908 'label' => __pl('service_icon_spacing'),
6909 + 'screen' => 1,
4897 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'
4898 6945 ),
4899 6946 'service_icon_state' => array(
4900 6947 'type' => 'radio',
4901 6948 'label' => __pl('icon_state'),
@@ -4907,9 +6954,9 @@
4907 6954 ),
4908 6955 'service_icon_color' => array(
4909 6956 'type' => 'color',
4910 6957 'label' => __pl('iconbox_icon_color'),
4911 - 'default' => '#3e8ef7',
6958 + 'default' => '#0986c0',
4912 6959 'css' => ['{{element}} .pagelayer-service-icon i' => 'color:{{val}};'],
4913 6960 'show' => ['service_icon_state' => 'normal'],
4914 6961 ),
4915 6962 'service_icon_background_color' => array(
@@ -4914,9 +6961,9 @@
4914 6961 ),
4915 6962 'service_icon_background_color' => array(
4916 6963 'type' => 'color',
4917 6964 'label' => __pl('service_icon_background_color'),
4918 - 'default' => '#eff0f0ff',
6965 + 'default' => '#eff0f0',
4919 6966 'css' => ['{{element}} .pagelayer-service-icon.pagelayer-service-stacked i' => 'background-color:{{val}};'],
4920 6967 'show' => ['service_icon_state' => 'normal'],
4921 6968 'req' => ['service_icon_view' => 'stacked']
4922 6969 ),
@@ -4949,44 +6996,8 @@
4949 6996 'default' => 400,
4950 6997 'css' => ['{{element}} .pagelayer-service-icon i' => '-webkit-transition: all {{val}}ms; transition: all {{val}}ms;'],
4951 6998 'show' => ['service_icon_state' => 'hover'],
4952 6999 ),
4953 - 'anim_hover' => array(
4954 - 'type' => 'select',
4955 - 'label' => __pl('icon_animation'),
4956 - 'list' => [
4957 - '' => __pl('none'),
4958 - 'grow' => __pl('Grow'),
4959 - 'shrink' => __pl('Shrink'),
4960 - 'pulse' => __pl('Pulse'),
4961 - 'pulse-grow' => __pl('Pulse Grow'),
4962 - 'pulse-shrink' => __pl('Pulse Shrink'),
4963 - 'push' => __pl('Push'),
4964 - 'pop' => __pl('Pop'),
4965 - 'buzz' => __pl('Buzz'),
4966 - 'buzz-out' => __pl('Buzz Out'),
4967 - 'float' => __pl('Float'),
4968 - 'sink' => __pl('Sink'),
4969 - 'bob' => __pl('Bob'),
4970 - 'hang' => __pl('Hang'),
4971 - 'bounce-in' => __pl('Bounce In'),
4972 - 'bounce-out' => __pl('Bounce Out'),
4973 - 'rotate' => __pl('Rotate'),
4974 - 'grow-rotate' => __pl('Grow Rotate'),
4975 - 'skew-forward' => __pl('Skew Forward'),
4976 - 'skew-backward' => __pl('Skew Backward'),
4977 - 'wobble-vertical' => __pl('Wobble Vertical'),
4978 - 'wobble-horizontal' => __pl('Wobble Horizontal'),
4979 - 'wobble-bottom-to-right' => __pl('Wobble Bottom To Right'),
4980 - 'wobble-top-to-right' => __pl('Wobble Top To Right'),
4981 - 'wobble-top' => __pl('Wobble Top'),
4982 - 'wobble-bottom' => __pl('Wobble Bottom'),
4983 - 'wobble-skew' => __pl('Wobble Skew'),
4984 - ],
4985 - 'show' => array(
4986 - 'service_icon_state' => 'hover',
4987 - ),
4988 - ),
4989 7000 'service_icon_color_hover' => array(
4990 7001 'type' => 'color',
4991 7002 'label' => __pl('service_icon_color_hover'),
4992 7003 'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'color:{{val}};'],
@@ -5045,9 +7056,9 @@
5045 7056 ),
5046 7057 'service_icon_border_color' => array(
5047 7058 'type' => 'color',
5048 7059 'label' => __pl('icon_border_color_label'),
5049 - 'default' => '#3e8ef7',
7060 + 'default' => '#0986c0',
5050 7061 'css' => ['{{element}} .pagelayer-service-icon i' => 'border-color: {{val}};'],
5051 7062 'req' => [
5052 7063 '!service_icon_border_type' => '',
5053 7064 ],
@@ -5089,9 +7100,9 @@
5089 7100 ),
5090 7101 'service_icon_border_color_hover' => array(
5091 7102 'type' => 'color',
5092 7103 'label' => __pl('icon_border_color_hover_label'),
5093 - 'default' => '#3e8ef7',
7104 + 'default' => '#0986c0',
5094 7105 'css' => ['{{element}}:hover .pagelayer-service-icon i' => 'border-color: {{val}};'],
5095 7106 'req' => [
5096 7107 '!service_icon_border_type_hover' => '',
5097 7108 ],
@@ -5122,15 +7133,28 @@
5122 7133 'service_heading' => array(
5123 7134 'type' => 'textarea',
5124 7135 'label' => __pl('iconbox_box_heading_label'),
5125 7136 'default' => 'This is Icon Box',
5126 - 'text' => __pl('open_in_wpeditor'),
7137 + 'edit' => '.pagelayer-service-heading',
5127 7138 ),
5128 7139 'heading_url' => array(
5129 7140 'type' => 'link',
5130 7141 'label' => __pl('url'),
5131 - 'req' => ['!service_heading' => '']
7142 + 'selector' => '.pagelayer-service-heading-link',
7143 + 'req' => ['!service_heading' => '', 'box_url' => '']
5132 7144 ),
7145 + 'heading_alignment' => array(
7146 + 'type' => 'radio',
7147 + 'label' => __pl('service_box_heading_alignment'),
7148 + 'default' => 'center',
7149 + 'screen' => 1,
7150 + 'list' => array(
7151 + 'left' => __pl('left'),
7152 + 'center' => __pl('center'),
7153 + 'right' => __pl('right'),
7154 + ),
7155 + 'css' => ['{{element}} .pagelayer-service-heading' => 'text-align:{{val}};'],
7156 + ),
5133 7157 'service_title_spacing' => array(
5134 7158 'type' => 'padding',
5135 7159 'label' => __pl('spacing'),
5136 7160 'screen' => 1,
@@ -5148,9 +7172,9 @@
5148 7172 ),
5149 7173 'service_heading_color' => array(
5150 7174 'type' => 'color',
5151 7175 'label' => __pl('service_heading_color'),
5152 - 'default' => '#3e8ef7',
7176 + 'default' => '#0986c0',
5153 7177 'css' => ['{{element}} .pagelayer-service-heading' => 'color:{{val}}'],
5154 7178 'show' => ['heading_state' => 'normal']
5155 7179 ),
5156 7180 'service_heading_typo' => array(
@@ -5156,9 +7180,8 @@
5156 7180 'service_heading_typo' => array(
5157 7181 'type' => 'typography',
5158 7182 'label' => __pl('service_heading_typo'),
5159 7183 'default' => ',28,,600,,,,,,,',
5160 - 'screen' => 1,
5161 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;'],
5162 7185 'show' => ['heading_state' => 'normal']
5163 7186 ),
5164 7187 'heading_delay' => array(
@@ -5179,9 +7202,8 @@
5179 7202 ),
5180 7203 'heading_typo_hover' => array(
5181 7204 'type' => 'typography',
5182 7205 'label' => __pl('service_heading_typo'),
5183 - 'screen' => 1,
5184 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;'],
5185 7207 'show' => ['heading_state' => 'hover']
5186 7208 ),
5187 7209 ],
@@ -5208,9 +7230,9 @@
5208 7230 'service_text' => array(
5209 7231 'type' => 'editor',
5210 7232 'label' => __pl('iconbox_box_text_label'),
5211 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.',
5212 - 'text' => __pl('open_in_wpeditor'),
7234 + 'edit' => '.pagelayer-service-text',
5213 7235 ),
5214 7236 ],
5215 7237 //service button style
5216 7238 'service_btn_style' =>[
@@ -5234,11 +7256,9 @@
5234 7256 'pagelayer-btn-light' => __pl('btn_type_light'),
5235 7257 'pagelayer-btn-link' => __pl('btn_type_link'),
5236 7258 'pagelayer-btn-custom' => __pl('btn_type_custom')
5237 7259 ),
5238 - 'req' => array(
5239 - 'service_button' => 'true'
5240 - ),
7260 + 'req' => ['service_button' => 'true']
5241 7261 ),
5242 7262 'service_button_size' => array(
5243 7263 'type' => 'select',
5244 7264 'label' => __pl('button_size_label'),
@@ -5250,11 +7270,9 @@
5250 7270 'pagelayer-btn-extra-large' => __pl('extra_large'),
5251 7271 'pagelayer-btn-double-large' => __pl('double_large'),
5252 7272 'pagelayer-btn-custom' => __pl('custom'),
5253 7273 ),
5254 - 'req' => array(
5255 - 'service_button' => 'true'
5256 - )
7274 + 'req' => ['service_button' => 'true']
5257 7275 ),
5258 7276 'service_btn_dim' => array(
5259 7277 'type' => 'dimension',
5260 7278 'label' => __pl('service_btn_dim'),
@@ -5265,36 +7283,38 @@
5265 7283 'service_button' => 'true',
5266 7284 'service_button_size' => 'pagelayer-btn-custom',
5267 7285 ]
5268 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 + ),
5269 7293 'service_button_url' => array(
5270 7294 'type' => 'link',
5271 7295 'label' => __pl('iconbox_btn_url_label'),
5272 - 'req' => array(
5273 - 'service_button' => 'true'
5274 - ),
7296 + 'selector' => '.pagelayer-service-btn',
7297 + 'req' => ['service_button' => 'true']
5275 7298 ),
5276 7299 'service_button_text' => array(
5277 7300 'type' => 'text',
5278 7301 'label' => __pl('iconbox_button_text_label'),
7302 + 'edit' => '.pagelayer-service-btn',
5279 7303 'default' => 'Click Here!',
5280 - 'req' => array(
5281 - 'service_button' => 'true'
5282 - ),
7304 + 'req' => ['service_button' => 'true']
5283 7305 ),
5284 7306 'service_button_typo' => array(
5285 7307 'type' => 'typography',
5286 7308 'label' => __pl('typography'),
5287 - 'screen' => 1,
5288 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']
5289 7311 ),
5290 7312 'service_btn_spacing' => array(
5291 7313 'type' => 'padding',
5292 7314 'label' => __pl('spacing'),
5293 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;'],
5294 - 'req' => [
5295 - 'service_button' => 'true',
5296 - ]
7316 + 'req' => ['service_button' => 'true']
5297 7317 ),
5298 7318 'service_button_font_size' => array(
5299 7319 'type' => 'slider',
5300 7320 'label' => __pl('iconbox_btn_text_size'),
@@ -5333,9 +7353,9 @@
5333 7353 ),
5334 7354 'service_button_bg_color' => array(
5335 7355 'type' => 'color',
5336 7356 'label' => __pl('service_button_bg_color'),
5337 - 'default' => '#3e8ef7',
7357 + 'default' => '#0986c0',
5338 7358 'css' => ['{{element}} .pagelayer-service-btn' => 'background-color:{{val}};'],
5339 7359 'req' => [
5340 7360 'service_button' => 'true',
5341 7361 'iconbox_button_type' => 'pagelayer-btn-custom',
@@ -5366,8 +7386,120 @@
5366 7386 'css' => ['{{element}} .pagelayer-service-btn:hover' => 'background-color:{{val}};'],
5367 7387 'show' => ['service_btn_state' => 'hover'],
5368 7388 ),
5369 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 + ],
5370 7502 'styles' => [
5371 7503 'service_icon_style' => __pl('service_icon_style'),
5372 7504 'service_icon_border' => __pl('service_icon_border'),
5373 7505 'service_heading_style' => __pl('service_heading_style'),
@@ -5372,8 +7504,9 @@
5372 7504 'service_icon_border' => __pl('service_icon_border'),
5373 7505 'service_heading_style' => __pl('service_heading_style'),
5374 7506 'service_content_style' => __pl('service_content_style'),
5375 7507 'service_btn_style' => __pl('service_btn_style'),
7508 + 'border_style' => __pl('btn_border_style'),
5376 7509 ],
5377 7510 )
5378 7511 );
5379 7512
@@ -5380,9 +7513,8 @@
5380 7513 // Tabs
5381 7514 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tabs', array(
5382 7515 'name' => __pl('tabs'),
5383 7516 'group' => 'other',
5384 - 'func' => 'pagelayer_sc_tabs',
5385 7517 'has_group' => [
5386 7518 'section' => 'params',
5387 7519 'prop' => 'elements'
5388 7520 ],
@@ -5516,15 +7648,14 @@
5516 7648 ),
5517 7649 'tabs_active_bg_color' => array(
5518 7650 'type' => 'color',
5519 7651 'label' => __pl('Active Tab Background Color'),
5520 - 'default' => '#3e8ef7',
7652 + 'default' => '#0986c0',
5521 7653 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks.active'=> 'background-color:{{val}}', '{{element}} .pagelayer-tabs-holder .pagelayer-tablinks:hover' => 'background-color:{{val}}'],
5522 7654 ),
5523 7655 'tab_title_typo' => array(
5524 7656 'type' => 'typography',
5525 7657 'label' => __pl('tab_title_typo'),
5526 - 'screen' => 1,
5527 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;'],
5528 7659 ),
5529 7660 'tabs_icon_align' => array(
5530 7661 'type' => 'radio',
@@ -5533,9 +7664,9 @@
5533 7664 'list' => array(
5534 7665 'left' => __pl('Left'),
5535 7666 'right' => __pl('Right'),
5536 7667 ),
5537 - 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks .fa'=> 'float:{{val}};'],
7668 + 'css' => ['{{element}} .pagelayer-tabs-holder .pagelayer-tablinks i'=> 'float:{{val}};'],
5538 7669 ),
5539 7670 'tabs_icon_spacing' => array(
5540 7671 'type' => 'slider',
5541 7672 'label' => __pl('tabs_icon_spacing'),
@@ -5543,9 +7674,9 @@
5543 7674 'max' => 50,
5544 7675 'min' => 0,
5545 7676 'steps' => 1,
5546 7677 'screen' => 1,
5547 - '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;'],
5548 7679 ),
5549 7680 ],
5550 7681 'content_styles' => [
5551 7682 'tabs_content_typo' => array(
@@ -5550,9 +7681,8 @@
5550 7681 'content_styles' => [
5551 7682 'tabs_content_typo' => array(
5552 7683 'type' => 'typography',
5553 7684 'label' => __pl('tab_content_typo'),
5554 - 'screen' => 1,
5555 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;'],
5556 7686 ),
5557 7687 'tabs_content_color' => array(
5558 7688 'type' => 'color',
@@ -5573,9 +7703,9 @@
5573 7703 'min' => 0,
5574 7704 'max' => 50,
5575 7705 'step' => 1,
5576 7706 'screen' => 1,
5577 - 'css' => ['{{element}}.pagelayer-tabs .pagelayer-tabcontainer [pagelayer-id]' => 'padding: {{val}}px;'],
7707 + 'css' => ['{{element}}.pagelayer-tabs .pagelayer-tabcontainer .pagelayer-tab' => 'padding: {{val}}px;'],
5578 7708 ),
5579 7709 'tabs_content_border_width' => array(
5580 7710 'type' => 'padding',
5581 7711 'label' => __pl('border_width'),
@@ -5609,12 +7739,34 @@
5609 7739 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_tab', array(
5610 7740 'name' => __pl('tab'),
5611 7741 'group' => 'other',
5612 7742 'not_visible' => 1,
5613 - 'func' => 'pagelayer_sc_tab',
5614 - 'innerHTML' => 'text',
5615 - '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>',
5616 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 + ),
5617 7769 'default_active' => array(
5618 7770 'type' => 'checkbox',
5619 7771 'label' => __pl('Default active tab'),
5620 7772 'addAttr' => 'pagelayer-default_active="1"'
@@ -5623,21 +7775,20 @@
5623 7775 'type' => 'icon',
5624 7776 'label' => __pl('icon'),
5625 7777 'addAttr' => 'pagelayer-tab-icon="{{tab_icon}}"',
5626 7778 ),
7779 + 'anchor_id' => array(
7780 + 'type' => 'text',
7781 + 'label' => __pl('ele_id'),
7782 + 'addAttr' => 'id="{{anchor_id}}"'
7783 + ),
5627 7784 'title' => array(
5628 7785 'type' => 'text',
5629 7786 'label' => __pl('title'),
5630 7787 'default' => 'Lorem',
5631 - 'addAttr' => 'pagelayer-tab-title="{{title}}"'
7788 + 'addAttr' => 'pagelayer-tab-title="{{title}}"',
7789 + 'edit' => '.pl-tab-title'
5632 7790 ),
5633 - 'text' => array(
5634 - 'type' => 'editor',
5635 - 'label' => __pl('Edit Rich Text'),
5636 - 'default' => 'Lorem ipsum dolor sit amet',
5637 - 'desc' => __pl('Edit the content here or edit directly in the Editor'),
5638 - 'edit' => '.pagelayer-text-holder',
5639 - ),
5640 7791 )
5641 7792 )
5642 7793 );
5643 7794
@@ -5644,9 +7795,8 @@
5644 7795 // Accordion
5645 7796 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion', array(
5646 7797 'name' => __pl('accordion'),
5647 7798 'group' => 'other',
5648 - 'func' => 'pagelayer_sc_accordion',
5649 7799 'has_group' => [
5650 7800 'section' => 'params',
5651 7801 'prop' => 'elements'
5652 7802 ],
@@ -5678,14 +7828,14 @@
5678 7828 'icon_styles' => [
5679 7829 'icon' => array(
5680 7830 'type' => 'icon',
5681 7831 'label' => __pl('list_icon_label'),
5682 - 'default' => 'plus',
7832 + 'default' => 'fas fa-plus',
5683 7833 ),
5684 7834 'active_icon' => array(
5685 7835 'type' => 'icon',
5686 7836 'label' => __pl('Active Icon'),
5687 - 'default' => 'minus',
7837 + 'default' => 'fas fa-minus',
5688 7838 ),
5689 7839 'icon_align' => array(
5690 7840 'type' => 'radio',
5691 7841 'label' => __pl('Alignment'),
@@ -5690,9 +7840,9 @@
5690 7840 'type' => 'radio',
5691 7841 'label' => __pl('Alignment'),
5692 7842 'default' => 'left',
5693 7843 'screen' => 1,
5694 - 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
7844 + 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'float:{{val}}'],
5695 7845 'list' => array(
5696 7846 'left' => __pl('left'),
5697 7847 'right' => __pl('right'),
5698 7848 )
@@ -5705,9 +7855,9 @@
5705 7855 'min' => 0,
5706 7856 'max' => 50,
5707 7857 'step' => 1,
5708 7858 'screen' => 1,
5709 - '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;'],
5710 7860 ),
5711 7861 ],
5712 7862 'tabs_styles' => [
5713 7863 'tabs_color' => array(
@@ -5725,15 +7875,15 @@
5725 7875 'tabs_active_color' => array(
5726 7876 'type' => 'color',
5727 7877 'label' => __pl('Active Tab Color '),
5728 7878 'default' => '#ffffff',
5729 - '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}}'],
5730 7880 ),
5731 7881 'tabs_active_bg_color' => array(
5732 7882 'type' => 'color',
5733 7883 'label' => __pl('Active Tab Background Color '),
5734 - 'default' => '#3e8ef7',
5735 - '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}}'],
5736 7886 ),
5737 7887 'tab_padding' => array(
5738 7888 'type' => 'slider',
5739 7889 'label' => __pl('tabs_padding_label'),
@@ -5759,10 +7909,16 @@
5759 7909 ),
5760 7910 'acc_content_typo' => array(
5761 7911 'type' => 'typography',
5762 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'],
5763 7919 'screen' => 1,
5764 - '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]}}'],
5765 7921 ),
5766 7922 'acc_border_type' => array(
5767 7923 'type' => 'select',
5768 7924 'label' => __pl('border_type'),
@@ -5793,8 +7949,14 @@
5793 7949 'req' => [
5794 7950 '!acc_border_type' => ''
5795 7951 ],
5796 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 '],
5797 7959 )
5798 7960 ],
5799 7961 'styles' => [
5800 7962 'icon_styles' => __pl('icon'),
@@ -5808,31 +7970,43 @@
5808 7970 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_accordion_item', array(
5809 7971 'name' => __pl('Accordion item'),
5810 7972 'group' => 'other',
5811 7973 'not_visible' => 1,
5812 - 'func' => 'pagelayer_sc_accordion_item',
5813 - 'innerHTML' => 'text',
5814 - 'html' => '<a if="{{title}}" class="pagelayer-accordion-tabs">{{title}}<span class="pagelayer-accordion-icon"><i></i></span></a>
5815 - <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>',
5816 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 + ),
5817 7993 'default_active' => array(
5818 7994 'type' => 'checkbox',
5819 7995 'label' => __pl('Default active tab'),
5820 7996 'addClass' => 'active'
5821 7997 ),
7998 + 'scroll_id' => array(
7999 + 'type' => 'text',
8000 + 'label' => __pl('ele_id'),
8001 + 'addAttr' => ['{{element}} .pagelayer-accordion-tabs' => 'id={{scroll_id}}']
8002 + ),
5822 8003 'title' => array(
5823 8004 'type' => 'text',
5824 8005 'label' => __pl('title'),
5825 8006 'default' => 'Lorem',
5826 - 'desc' => __pl(''),
8007 + 'edit' => '.pagelayer-accordion-title',
5827 8008 ),
5828 - 'text' => array(
5829 - 'type' => 'editor',
5830 - 'label' => __pl('Edit Rich Text'),
5831 - 'default' => 'Lorem ipsum dolor sit amet',
5832 - 'desc' => __pl('Edit the content here or edit directly in the Editor'),
5833 - 'edit' => '.pagelayer-text-holder',
5834 - ),
5835 8009 )
5836 8010 )
5837 8011 );
5838 8012
@@ -5839,9 +8013,8 @@
5839 8013 // Toggle / Collapse
5840 8014 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_collapse', array(
5841 8015 'name' => __pl('Collapse'),
5842 8016 'group' => 'other',
5843 - 'func' => 'pagelayer_sc_collapse',
5844 8017 'has_group' => [
5845 8018 'section' => 'params',
5846 8019 'prop' => 'elements'
5847 8020 ],
@@ -5874,14 +8047,14 @@
5874 8047 'icon_style' => [
5875 8048 'icon' => array(
5876 8049 'type' => 'icon',
5877 8050 'label' => __pl('list_icon_label'),
5878 - 'default' => 'plus',
8051 + 'default' => 'fas fa-plus',
5879 8052 ),
5880 8053 'active_icon' => array(
5881 8054 'type' => 'icon',
5882 8055 'label' => __pl('Active icon'),
5883 - 'default' => 'minus'
8056 + 'default' => 'fas fa-minus'
5884 8057 ),
5885 8058 'icon_align' => array(
5886 8059 'type' => 'radio',
5887 8060 'label' => __pl('Alignment'),
@@ -5886,9 +8059,9 @@
5886 8059 'type' => 'radio',
5887 8060 'label' => __pl('Alignment'),
5888 8061 'default' => 'left',
5889 8062 'screen' => 1,
5890 - 'css' => ['{{element}} .pagelayer-accordion-tabs span' => 'float:{{val}}'],
8063 + 'css' => ['{{element}} .pagelayer-accordion-tabs .pagelayer-accordion-icon' => 'float:{{val}}'],
5891 8064 'list' => array(
5892 8065 'left' => __pl('left'),
5893 8066 'right' => __pl('right'),
5894 8067 )
@@ -5901,9 +8074,9 @@
5901 8074 'min' => 0,
5902 8075 'max' => 50,
5903 8076 'step' => 1,
5904 8077 'screen' => 1,
5905 - '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;'],
5906 8079 ),
5907 8080 ],
5908 8081 'tabs_styles' => [
5909 8082 'tabs_color' => array(
@@ -5921,15 +8094,15 @@
5921 8094 'tabs_active_color' => array(
5922 8095 'type' => 'color',
5923 8096 'label' => __pl('Active Tab Color '),
5924 8097 'default' => '#fff',
5925 - '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}}'],
5926 8099 ),
5927 8100 'tabs_active_bg_color' => array(
5928 8101 'type' => 'color',
5929 8102 'label' => __pl('Active Tab Background Color '),
5930 - 'default' => '#3e8ef7',
5931 - '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}}'],
5932 8105 ),
5933 8106 'tab_padding' => array(
5934 8107 'type' => 'slider',
5935 8108 'label' => __pl('tabs_padding_label'),
@@ -5942,9 +8115,8 @@
5942 8115 ),
5943 8116 'collapse_title_typo' => array(
5944 8117 'type' => 'typography',
5945 8118 'label' => __pl('collapsse_title_typo'),
5946 - 'screen' => 1,
5947 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;'],
5948 8120 ),
5949 8121 ],
5950 8122 'content_styles' => [
@@ -5953,8 +8125,15 @@
5953 8125 'label' => __pl('Background Color '),
5954 8126 'default' => '#ffffff',
5955 8127 'css' => ['{{element}} .pagelayer-accordion_item .pagelayer-accordion-panel'=> 'background-color:{{val}}'],
5956 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 + ),
5957 8136 'acc_border_type' => array(
5958 8137 'type' => 'select',
5959 8138 'label' => __pl('border_type'),
5960 8139 'list' => [
@@ -5986,8 +8165,17 @@
5986 8165 '!acc_border_type' => ''
5987 8166 ],
5988 8167 'css' => ['{{element}} .pagelayer-accordion_item' => 'border-color: {{val}}', '{{element}} .pagelayer-accordion_item .pagelayer-accordion-panel' =>'border-color: {{val}}'],
5989 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 + )
5990 8178 ],
5991 8179 'styles' => [
5992 8180 'icon_style' => __pl('icon'),
5993 8181 'tabs_styles' => __pl('Tabs'),
@@ -5999,9 +8187,8 @@
5999 8187 // Space
6000 8188 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_space', array(
6001 8189 'name' => __pl('space'),
6002 8190 'group' => 'other',
6003 - 'func' => 'pagelayer_sc_space',
6004 8191 'html' => '<div class="pagelayer-space-holder"></div>',
6005 8192 'params' => array(
6006 8193 'height' => array(
6007 8194 'type' => 'slider',
@@ -6006,9 +8193,9 @@
6006 8193 'height' => array(
6007 8194 'type' => 'slider',
6008 8195 'label' => __pl('Space Height'),
6009 8196 'screen' => 1,
6010 - 'units' => ['px', '%'],
8197 + 'units' => ['px', 'em'],
6011 8198 'css' => ['{{element}} .pagelayer-space-holder' => 'height: {{val}};'],
6012 8199 'default' => '10',
6013 8200 'min' => 0,
6014 8201 'max' => 1000,
@@ -6021,9 +8208,8 @@
6021 8208 // Embed
6022 8209 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_embed', array(
6023 8210 'name' => __pl('embed'),
6024 8211 'group' => 'other',
6025 - 'func' => 'pagelayer_sc_embed',
6026 8212 'innerHTML' => 'data',
6027 8213 'html' => '<div if={{data}} class="pagelayer-embed-container">{{data}}</div>',
6028 8214 'params' => array(
6029 8215 'data' => array(
@@ -6028,9 +8214,9 @@
6028 8214 'params' => array(
6029 8215 'data' => array(
6030 8216 'type' => 'textarea',
6031 8217 'label' => __pl('embed_paste_code'),
6032 - 'default' => '<p>Paste HTML code here...</P>',
8218 + 'default' => '<p>Paste HTML code here...</p>',
6033 8219 'desc' => '',
6034 8220 ),
6035 8221 )
6036 8222 )
@@ -6039,9 +8225,9 @@
6039 8225 // Shortcodes
6040 8226 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_shortcodes', array(
6041 8227 'name' => __pl('shortcodes'),
6042 8228 'group' => 'other',
6043 - 'func' => 'pagelayer_sc_shortcodes',
8229 + 'no_gt' => 1,
6044 8230 'innerHTML' => 'data',
6045 8231 'holder' => '.pagelayer-shortcodes-container',
6046 8232 'html' => '<div class="pagelayer-shortcodes-container">{{{shortcode}}}</div>',
6047 8233 'params' => array(
@@ -6053,24 +8239,232 @@
6053 8239 )
6054 8240 )
6055 8241 );
6056 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 +
6057 8267 // Google Maps
6058 8268 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_google_maps', array(
6059 - 'name' => __pl('Google Maps'),
8269 + 'name' => __pl('google_maps'),
6060 8270 'group' => 'other',
6061 - 'func' => 'pagelayer_sc_google_maps',
6062 8271 'innerHTML' => 'address',
6063 8272 'html' => '<div class="pagelayer-google-maps-holder">
6064 - <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}}
6065 8275 </div>',
6066 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 + ),
6067 8306 'address' => array(
6068 8307 'type' => 'text',
6069 8308 'label' => __pl('google_map_address_label'),
6070 8309 'default' => 'New York, New York, USA',
6071 - 'desc' => __pl('google_map_address_desc')
8310 + 'desc' => __pl('google_map_address_desc'),
8311 + 'req' => ['!map_modes' => 'search']
6072 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 + ),
6073 8467 'noscroll' => array(
6074 8468 'type' => 'checkbox',
6075 8469 'label' => __pl('google_map_noscroll'),
6076 8470 'css' => ['{{element}} iframe' => 'pointer-events: none;'],
@@ -6079,9 +8473,9 @@
6079 8473 'type' => 'slider',
6080 8474 'label' => __pl('google_map_zoom_label'),
6081 8475 'default' => 10,
6082 8476 'min' => 0,
6083 - 'max' => 20
8477 + 'max' => 21
6084 8478 ),
6085 8479 'height' => array(
6086 8480 'type' => 'slider',
6087 8481 'label' => __pl('google_map_height'),
@@ -6098,18 +8492,17 @@
6098 8492 // Testimonial
6099 8493 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_testimonial', array(
6100 8494 'name' => __pl('testimonial'),
6101 8495 'group' => 'other',
6102 - 'func' => 'pagelayer_sc_testimonial',
6103 8496 'innerHTML' => 'quote_content',
6104 8497 'html' => '<div if="{{quote_content}}" class="pagelayer-testimonial-content">{{quote_content}}</div>
6105 8498 <div class="pagelayer-testimonial-author-details">
6106 - <div class="pagelayer-{{image_position}}">
6107 - <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}}}"/>
6108 8501 </div>
6109 8502 <div class="pagelayer-{{image_position}}">
6110 8503 <div if="{{cite}}" class="pagelayer-testimonial-cite">
6111 - <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}}}">
6112 8505 <span class="pagelayer-testimonial-author">{{cite}}</span>
6113 8506 </a>
6114 8507 <span if="{{designation}}" class="pagelayer-testimonial-author-title">
6115 8508 {{designation}}
@@ -6153,9 +8546,8 @@
6153 8546 'content_style' => [
6154 8547 'quote_content' => array(
6155 8548 'type' => 'editor',
6156 8549 'label' => __pl('testimonial_content_label'),
6157 - 'text' => __pl('Edit Testimonial content'),
6158 8550 'edit' => '.pagelayer-testimonial-content',
6159 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.'
6160 8552 )
6161 8553 ],
@@ -6162,10 +8554,11 @@
6162 8554 'avatar_style' => [
6163 8555 'avatar' => array(
6164 8556 'type' => 'image',
6165 8557 'label' => __pl('testimonial_image_label'),
8558 + 'default' => PAGELAYER_URL.'/images/default-image.png',
6166 8559 'desc' => __pl('testimonial_image_desc'),
6167 - 'default' => PAGELAYER_URL.'/images/default-image.png',
8560 + 'ai' => false,
6168 8561 ),
6169 8562 'testimonial_image_size' => array(
6170 8563 'label' => __pl('testimonial_image_sizes'),
6171 8564 'type' => 'slider',
@@ -6225,13 +8618,14 @@
6225 8618 'label' => __pl('testimonial_cite_label'),
6226 8619 'default' => 'John Smith',
6227 8620 'desc' => __pl('testimonial_cite_desc'),
6228 8621 'edit' => '.pagelayer-testimonial-author',
8622 + 'ai' => false,
6229 8623 ),
6230 8624 'cite_color' => array(
6231 8625 'type' => 'color',
6232 8626 'label' => __pl('testimonial_name_color_label'),
6233 - 'default' => '#426870ff',
8627 + 'default' => '#426870',
6234 8628 'css' => ['{{element}} .pagelayer-testimonial-author ' => 'color:{{val}}'],
6235 8629 ),
6236 8630 'cite_style' => array(
6237 8631 'type' => 'typography',
@@ -6236,15 +8630,14 @@
6236 8630 'cite_style' => array(
6237 8631 'type' => 'typography',
6238 8632 'label' => __pl('cite_style'),
6239 8633 'default' => ',20,,100,,none,,,,,',
6240 - 'screen' => 1,
6241 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;'],
6242 8635 ),
6243 8636 'cite_url' => array(
6244 8637 'type' => 'link',
6245 8638 'label' => __pl('testimonial_url_label'),
6246 - 'default' => '',
8639 + 'selector' => '.pagelayer-ele-link',
6247 8640 'desc' => __pl('testimonial_url_desc'),
6248 8641 ),
6249 8642 'cite_spacing' => array(
6250 8643 'type' => 'padding',
@@ -6263,9 +8656,9 @@
6263 8656 ),
6264 8657 'designation_color' => array(
6265 8658 'type' => 'color',
6266 8659 'label' => __pl('testimonial_title_color_label'),
6267 - 'default' => '#9cafc0ff',
8660 + 'default' => '#9cafc0',
6268 8661 'css' => ['{{element}} .pagelayer-testimonial-author-title' => 'color:{{val}}'],
6269 8662 ),
6270 8663 'cite_designation_style' => array(
6271 8664 'type' => 'typography',
@@ -6270,9 +8663,8 @@
6270 8663 'cite_designation_style' => array(
6271 8664 'type' => 'typography',
6272 8665 'label' => __pl('cite_designation_style'),
6273 8666 'default' => ',16,,100,,,,,,,',
6274 - 'screen' => 1,
6275 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;'],
6276 8668 ),
6277 8669 ],
6278 8670 'styles' => [
@@ -6288,11 +8680,14 @@
6288 8680 // Progress object - Make a group
6289 8681 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_progress', array(
6290 8682 'name' => __pl('Progress Bars'),
6291 8683 'group' => 'other',
6292 - 'func' => 'pagelayer_sc_progress',
6293 8684 'innerHTML' => 'progress_text',
6294 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>
6295 8690 <div class="pagelayer-progress-container">
6296 8691 <div if="{{progress_percentage}}" class="pagelayer-progress-bar pagelayer-progress-{{progress_type}}" style="width:{{progress_percentage}}%;">
6297 8692 <span if="{{progress_text}}" class="pagelayer-progress-text">{{progress_text}}</span>
6298 8693 <span if="{{progress_percentage}}" class="pagelayer-progress-percent"></span>
@@ -6314,12 +8709,18 @@
6314 8709 ),
6315 8710 'progress_color' => array(
6316 8711 'type' => 'color',
6317 8712 'label' => __pl('progress_bar_color'),
6318 - 'default' => '#3e8ef7',
8713 + 'default' => '#0986c0',
6319 8714 'css' => ['{{element}} .pagelayer-progress-bar' => 'background-color:{{val}};'],
6320 8715 'req' => ['progress_type' => '']
6321 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 + ),
6322 8723 'progress_height' => array(
6323 8724 'type' => 'slider',
6324 8725 'label' => __pl('progress_height'),
6325 8726 'min' => 0,
@@ -6331,8 +8732,41 @@
6331 8732 '{{element}} .pagelayer-progress-text' => 'line-height:{{val}}px; font-size: calc({{val}}px / 2);',
6332 8733 ],
6333 8734 'default' => 40,
6334 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 + )
6335 8769 ),
6336 8770 // Styles
6337 8771 'heading_style' => [
6338 8772 'title' => array(
@@ -6338,20 +8772,31 @@
6338 8772 'title' => array(
6339 8773 'type' => 'text',
6340 8774 'label' => __pl('progress_title'),
6341 8775 'default' => 'Progress',
8776 + 'edit' => '.pagelayer-progress-title',
6342 8777 ),
6343 8778 'title_color' => array(
6344 8779 'type' => 'color',
6345 8780 'label' => __pl('title_color'),
6346 - 'default' => '#768589ff',
8781 + 'default' => '#768589',
6347 8782 'css' => ['{{element}} .pagelayer-progress-title' => 'color:{{val}};'],
6348 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 + ),
6349 8795 'title_style' => array(
6350 8796 'type' => 'typography',
6351 8797 'label' => __pl('title_size'),
6352 8798 'default' => ',25,,100,,,,,,,',
6353 - 'screen' => 1,
6354 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;'],
6355 8800 ),
6356 8801 ],
6357 8802 'percentage_style' => [
@@ -6358,8 +8803,9 @@
6358 8803 'progress_text'=> array(
6359 8804 'type' => 'text',
6360 8805 'label' => __pl('progress_text'),
6361 8806 'default' => 'Designing',
8807 + 'edit' => '.pagelayer-progress-text',
6362 8808 ),
6363 8809 'progress_text_color' => array(
6364 8810 'type' => 'color',
6365 8811 'label' => __pl('progress_text_color'),
@@ -6370,9 +8816,8 @@
6370 8816 'type' => 'slider',
6371 8817 'label' => __pl('percentage'),
6372 8818 'min' => 0,
6373 8819 'max' => 100,
6374 - 'screen' => 1,
6375 8820 'css' => ['{{element}} .pagelayer-progress-container > .pagelayer-progress-bar:after' => 'width:{{val}}%;',],
6376 8821 'addAttr' => ['{{element}} .pagelayer-progress-bar' => 'pagelayer-progress-width="{{progress_percentage}}"'],
6377 8822 'default' => 75,
6378 8823 ),
@@ -6389,11 +8834,39 @@
6389 8834 'default' => '',
6390 8835 'css' => ['{{element}} .pagelayer-progress-percent' => 'display: none;']
6391 8836 ),
6392 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 + ],
6393 8865 'styles' => [
6394 8866 'heading_style' => __pl('heading_style'),
6395 8867 'percentage_style' => __pl('percentage'),
8868 + 'progress_prefix_suffix' => __pl('prefix_suffix'),
6396 8869 ]
6397 8870 )
6398 8871 );
6399 8872
@@ -6400,9 +8873,8 @@
6400 8873 // Color Block
6401 8874 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_block', array(
6402 8875 'name' => __pl('Color Block'),
6403 8876 'group' => 'other',
6404 - 'func' => 'pagelayer_sc_block',
6405 8877 'params' => array(
6406 8878 'block_color' => array(
6407 8879 'type' => 'color',
6408 8880 'label' => __pl('block_color'),
@@ -6426,14 +8898,13 @@
6426 8898 // Alert
6427 8899 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_alert', array(
6428 8900 'name' => __pl('Alert'),
6429 8901 'group' => 'other',
6430 - 'func' => 'pagelayer_sc_alert',
6431 8902 'innerHTML' => 'alert_content',
6432 8903 'html' => '<div class="pagelayer-alert-content">
6433 - <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>
6434 8905 <div if="{{alert_title}}" class="pagelayer-alert-title">{{alert_title}}</div>
6435 - <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>
6436 8907 </div>
6437 8908 <span if="{{alert_content}}" class="pagelayer-alert-text">{{alert_content}}</span>',
6438 8909 'params' => array(
6439 8910 'alert_type' => array(
@@ -6468,9 +8939,9 @@
6468 8939 'icon_style' => [
6469 8940 'alert_icon' => array(
6470 8941 'type' => 'icon',
6471 8942 'label' => __pl('alert_icon'),
6472 - 'default' => 'exclamation',
8943 + 'default' => 'fas fa-exclamation',
6473 8944 ),
6474 8945 'alert_icon_color' => array(
6475 8946 'type' => 'color',
6476 8947 'label' => __pl('alert_icon_color'),
@@ -6480,9 +8951,9 @@
6480 8951 'label' => __pl('alert_font_size'),
6481 8952 'type' => 'slider',
6482 8953 'min' => 0,
6483 8954 'max' => 500,
6484 - 'default' => 30,
8955 + 'default' => 20,
6485 8956 'screen' => 1,
6486 8957 'css' => ['{{element}} .pagelayer-alert-icon' => 'font-size:{{val}}px;'],
6487 8958 ),
6488 8959 'alert_icon_spacing' => array(
@@ -6511,9 +8982,8 @@
6511 8982 'title_typo' => array(
6512 8983 'type' => 'typography',
6513 8984 'label' => __pl('title_typo'),
6514 8985 'default' => ',22,,600,,,,,,,',
6515 - 'screen' => 1,
6516 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;'],
6517 8987 ),
6518 8988 ],
6519 8989 'content_style' => [
@@ -6534,9 +9004,8 @@
6534 9004 'content_typo' => array(
6535 9005 'type' => 'typography',
6536 9006 'label' => __pl('title_typo'),
6537 9007 'default' => ',13,,,,,,,,,',
6538 - 'screen' => 1,
6539 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;'],
6540 9009 ),
6541 9010 ],
6542 9011 'styles' => [
@@ -6550,9 +9019,8 @@
6550 9019 // Anchor
6551 9020 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_anchor', array(
6552 9021 'name' => __pl('Anchor'),
6553 9022 'group' => 'other',
6554 - 'func' => 'pagelayer_sc_anchor',
6555 9023 'html' => '<div id="{{title}}" class="pagelayer-anchor-holder"></div>',
6556 9024 'params' => array(
6557 9025 'title' => array(
6558 9026 'type' => 'text',
@@ -6566,9 +9034,8 @@
6566 9034 // Star object
6567 9035 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_stars', array(
6568 9036 'name' => __pl('Stars'),
6569 9037 'group' => 'other',
6570 - 'func' => 'pagelayer_sc_stars',
6571 9038 'html' => '<span if="{{rating_title}}" class="pagelayer-stars-title">{{rating_title}}</span>
6572 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}}">
6573 9040 </div>',
6574 9041 'params' => array(
@@ -6603,14 +9070,15 @@
6603 9070 'title_style' => [
6604 9071 'rating_title' => array(
6605 9072 'type' => 'text',
6606 9073 'label' => __pl('rating_title'),
6607 - 'default' => 'Rate us',
9074 + 'default' => 'Rate us',
9075 + 'edit' => '.pagelayer-stars-title',
6608 9076 ),
6609 9077 'title_color' => array(
6610 9078 'type' => 'color',
6611 9079 'label' => __pl('title_color'),
6612 - 'default' => '#3e8ef7',
9080 + 'default' => '#0986c0',
6613 9081 'css' => ['{{element}} .pagelayer-stars-title' => 'color: {{val}}'],
6614 9082 ),
6615 9083 'title_style' => array(
6616 9084 'type' => 'typography',
@@ -6615,9 +9083,8 @@
6615 9083 'title_style' => array(
6616 9084 'type' => 'typography',
6617 9085 'label' => __pl('counter_number_size'),
6618 9086 'default' => ',25,,600,,,solid,,,,',
6619 - 'screen' => 1,
6620 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;'],
6621 9088 ),
6622 9089 ],
6623 9090 'stars_style' => [
@@ -6623,9 +9090,9 @@
6623 9090 'stars_style' => [
6624 9091 'stars_color' => array(
6625 9092 'type' => 'color',
6626 9093 'label' => __pl('stars_color'),
6627 - 'default' => '#3e8ef7',
9094 + 'default' => '#0986c0',
6628 9095 'css' => ['{{element}} .pagelayer-stars-icon:before' => 'color: {{val}}'],
6629 9096 ),
6630 9097 'unmarked_stars_color' => array(
6631 9098 'type' => 'color',
@@ -6662,9 +9129,8 @@
6662 9129 // Divider
6663 9130 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_divider', array(
6664 9131 'name' => __pl('Divider'),
6665 9132 'group' => 'other',
6666 - 'func' => 'pagelayer_sc_divider',
6667 9133 'html' => '<div class="pagelayer-divider-holder">
6668 9134 <span class="pagelayer-divider-seperator"></span>
6669 9135 </div>',
6670 9136 'params' => array(
@@ -6683,9 +9149,9 @@
6683 9149 ),
6684 9150 'divider_color' => array(
6685 9151 'type' => 'color',
6686 9152 'label' => __pl('divider_color'),
6687 - 'default' => '#3E8EF7',
9153 + 'default' => '#999',
6688 9154 'css' => ['{{element}} .pagelayer-divider-seperator' => 'border-top-color: {{val}};'],
6689 9155 ),
6690 9156 'divider_weight' => array(
6691 9157 'type' => 'slider',
@@ -6691,9 +9157,9 @@
6691 9157 'type' => 'slider',
6692 9158 'label' => __pl('divider_border_weight'),
6693 9159 'min' => 1,
6694 9160 'max' => 30,
6695 - 'default' => 3,
9161 + 'default' => 1,
6696 9162 'screen' => 1,
6697 9163 'css' => ['{{element}} .pagelayer-divider-seperator' =>'border-top-width: {{val}}px;'],
6698 9164 ),
6699 9165 'divider_widht' => array(
@@ -6700,9 +9166,9 @@
6700 9166 'type' => 'slider',
6701 9167 'label' => __pl('divider_border_width'),
6702 9168 'min' => 1,
6703 9169 'max' => 100,
6704 - 'default' => 50,
9170 + 'default' => 100,
6705 9171 'screen' => 1,
6706 9172 'css' => ['{{element}} .pagelayer-divider-seperator' =>'width: {{val}}%;'],
6707 9173 ),
6708 9174 'divider_gap' => array(
@@ -6733,9 +9199,8 @@
6733 9199 // Counter
6734 9200 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_counter', array(
6735 9201 'name' => __pl('Counter'),
6736 9202 'group' => 'other',
6737 - 'func' => 'pagelayer_sc_counter',
6738 9203 'html' => '<div class="pagelayer-counter-holder">
6739 9204 <div if="{{counter_start_number}}" class="pagelayer-counter-content">
6740 9205 <span if="{{number_prefix}}">{{number_prefix}}</span><span class="pagelayer-counter-display">{{counter_start_number}}</span><span if="{{number_suffix}}">{{number_suffix}}</span>
6741 9206 </div>
@@ -6781,9 +9246,9 @@
6781 9246 'counter_style' => [
6782 9247 'counter_number_color' => array(
6783 9248 'type' => 'color',
6784 9249 'label' => __pl('counter_number_color_label'),
6785 - 'default' => '#3E8EF7',
9250 + 'default' => '#0986c0',
6786 9251 'css' => ['{{element}} .pagelayer-counter-content' => 'color:{{val}};'],
6787 9252 ),
6788 9253 'number_prefix' => array(
6789 9254 'type' => 'text',
@@ -6815,9 +9280,8 @@
6815 9280 'counter_number_style' => array(
6816 9281 'type' => 'typography',
6817 9282 'label' => __pl('counter_number_size'),
6818 9283 'default' => ',60,,600,,,solid,,,,',
6819 - 'screen' => 1,
6820 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;'],
6821 9285 ),
6822 9286 ],
6823 9287 'counter_label_style' => [
@@ -6836,9 +9300,8 @@
6836 9300 'counter_text_style' => array(
6837 9301 'type' => 'typography',
6838 9302 'label' => __pl('counter_text_style'),
6839 9303 'default' => ',25,,400,,,solid,,,,',
6840 - 'screen' => 1,
6841 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;'],
6842 9305 ),
6843 9306 ],
6844 9307 'styles' => [
@@ -6847,10 +9310,2002 @@
6847 9310 ],
6848 9311 )
6849 9312 );
6850 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 +);
6851 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 +);
6852 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 +
6853 11308 ////////////////////////
6854 11309 // WordPress Group
6855 11310 ////////////////////////
6856 11311
@@ -6873,9 +11328,9 @@
6873 11328 // Widgets Area
6874 11329 pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_widgets', array(
6875 11330 'name' => __pl('Sidebars / Widget Area'),
6876 11331 'group' => 'wordpress',
6877 - 'func' => 'pagelayer_sc_wp_widgets',
11332 + 'no_gt' => 1,
6878 11333 'html' => '<div class="pagelayer-wp-sidebar-title">{{title}}</div>
6879 11334 <div class="pagelayer-wp-sidebar-holder">{{{data}}}</div>',
6880 11335 'params' => array(
6881 11336 'title' => array(
@@ -6881,15 +11336,15 @@
6881 11336 'title' => array(
6882 11337 'type' => 'text',
6883 11338 'label' => __pl('parameters_title'),
6884 11339 'default' => 'Title',
6885 - 'desc' => __pl('wp_widgets_area_description')
11340 + 'desc' => __pl('wp_widgets_area_description'),
11341 + 'edit' => '.pagelayer-wp-sidebar-title',
6886 11342 ),
6887 11343 'sidebar' => array(
6888 11344 'type' => 'select',
6889 11345 'label' => __pl('wp_widgets_area_select'),
6890 11346 'default' => $pagelayer_wp_widget_default,
6891 - 'desc' => '',
6892 11347 'list' => $pagelayer_wp_widgets
6893 11348 )
6894 11349 )
6895 11350 )
@@ -6895,29 +11350,41 @@
6895 11350 )
6896 11351 );
6897 11352
6898 11353 // Load the wordpress widgets, IF ALLOWED !
6899 -if(current_user_can('edit_theme_options')){
11354 +//if(current_user_can('edit_theme_options')){
6900 11355
6901 11356 // Include the widgets
6902 11357 //include_once(ABSPATH . 'wp-admin/includes/widgets.php');
6903 11358
6904 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){
6905 11364
6906 - foreach($GLOBALS['wp_widget_factory']->widgets as $widget_key => $widget){
6907 -
6908 - pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_'.$widget->id_base, array(
6909 - 'name' => $widget->name,
6910 - 'group' => 'wordpress',
6911 - 'func' => 'pagelayer_does_not_exist',
6912 - 'innerHTML' => 'widget_data',
6913 - '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,
6914 11376 )
6915 - );
6916 -
11377 + )
11378 + );
11379 +
11380 + if(in_array($widget->id_base, $wp_hidden_shortcode)){
11381 + $wp_shortcode['not_visible'] = 1;
6917 11382 }
11383 +
11384 + pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_'.$widget->id_base, $wp_shortcode);
11385 +
6918 11386 }
11387 +//}
6919 11388
6920 -// Its premium
6921 -if(defined('PAGELAYER_PREMIUM')){
6922 - include_once(dirname(__FILE__).'/premium.php');
6923 -}
11389 +// Apply filter to load custom widgets after shortcodes
11390 +do_action('pagelayer_after_add_shortcode');