Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s.
',
'edit' => '.pagelayer-image-overlay-text',
'req' => array(
'overlay' => 'true'
)
),
'overlay_bg_type' => array(
'label' => __pl('background_type'),
'type' => 'radio',
'default' => 'color',
'list' => array(
'color' => __pl('color'),
'gradient' => __pl('gradient')
),
'req' => array(
'overlay' => 'true'
)
),
'overlay_bg' => array(
'label' => __pl('image_overlay_background'),
'type' => 'color',
'default' => 'rgba(0,0,0,.6)',
'css' => ['{{element}} .pagelayer-image-overlay' => 'background: {{val}}'],
'req' => array(
'overlay' => 'true',
'!overlay_bg_type' => 'gradient'
)
),
'overlay_gradient' => [
'type' => 'gradient',
'label' => '',
'css' => ['{{element}} .pagelayer-image-overlay' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
'req' => array(
'overlay' => 'true',
'overlay_bg_type' => 'gradient'
)
],
'content_position' => array(
'label' => __pl('Overlay Content Position'),
'type' => 'radio',
'default' => 'center',
'screen' => 1,
'css' => ['{{element}} .pagelayer-image-overlay' => 'display:-webkit-flex;display:flex;-webkit-align-items:{{val}}; align-items:{{val}};'],
'list' => array(
'flex-start' => __pl('Top'),
'center' => __pl('Middle'),
'flex-end' => __pl('Bottom'),
),
'req' => array(
'overlay' => 'true'
)
),
'show_always' => array(
'label' => __pl('image_show_always'),
'type' => 'checkbox',
'screen' => 1,
'css' => ['{{element}} .pagelayer-image-overlay' => 'opacity:1;'],
'req' => array(
'overlay' => 'true'
)
)
],
'styles' => [
'link_settings' => __pl('link_settings'),
'caption_style' => __pl('caption_style'),
'overlay_style' => __pl('overlay_style')
],
)
);
// Image Slider
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_slider', array(
'name' => __pl('Image Slider'),
'group' => 'image',
'prevent_inside' => ['pl_slides'],
'html' => 'Paste HTML code here...
',
'desc' => '',
),
)
)
);
// Shortcodes
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_shortcodes', array(
'name' => __pl('shortcodes'),
'group' => 'other',
'no_gt' => 1,
'innerHTML' => 'data',
'holder' => '.pagelayer-shortcodes-container',
'html' => '
{{number_prefix}}{{counter_start_number}}{{number_suffix}}
{{counter_text}}
',
'params' => array(
'counter_start_number' => array(
'type' => 'spinner',
'label' => __pl('starting_number'),
'min' => '0',
'default' => '1',
'addAttr' => ['{{element}} .pagelayer-counter-display' => 'pagelayer-counter-initial-value="{{counter_start_number}}"'],
),
'counter_end_number' => array(
'type' => 'spinner',
'label' => __pl('Ending_number'),
'min' => '0',
'default' => '200',
'addAttr' => ['{{element}} .pagelayer-counter-display' => 'pagelayer-counter-last-value="{{counter_end_number}}"'],
),
'animation_duration' => array(
'type' => 'spinner',
'label' => __pl('counter_animation_duration'),
'min' => '500',
'max' => '500000',
'default' =>'2000',
'addAttr' => ['{{element}} .pagelayer-counter-display' => 'pagelayer-counter-animation-duration="{{animation_duration}}"'],
),
'counter_align' => array(
'type' => 'radio',
'label' => __pl('counter_align'),
'default' => 'center',
'css' => 'text-align: {{val}};',
'screen' => 1,
'list' => [
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right'),
]
),
),
// Styles
'counter_style' => [
'counter_number_color' => array(
'type' => 'color',
'label' => __pl('counter_number_color_label'),
'default' => '#0986c0',
'css' => ['{{element}} .pagelayer-counter-content' => 'color:{{val}};'],
),
'number_prefix' => array(
'type' => 'text',
'label' => __pl('number_prefix'),
),
'number_suffix' => array(
'type' => 'text',
'label' => __pl('number_suffix'),
),
'thousand_seperator' => array(
'type' => 'checkbox',
'label' => __pl('thousand_seperator'),
'addAttr' => ['{{element}} .pagelayer-counter-display' => 'pagelayer-counter-seperator="{{thousand_seperator}}"'],
),
'thousand_seperator_type' => array(
'type' => 'select',
'label' => __pl('thousand_seperator_type'),
'default' => ',',
'list' => [
',' => __pl('Default'),
'.' => __pl('Dot'),
' ' => __pl('Space'),
],
'addAttr' => ['{{element}} .pagelayer-counter-display' => 'pagelayer-counter-seperator-type="{{thousand_seperator_type}}"'],
'req' => array(
'thousand_seperator' => 'true',
),
),
'counter_number_style' => array(
'type' => 'typography',
'label' => __pl('counter_number_size'),
'default' => ',60,,600,,,solid,,,,',
'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;'],
),
],
'counter_label_style' => [
'counter_text' => array(
'type' => 'text',
'label' => __pl('counter_text'),
'default' => 'Counter',
'edit' => '.pagelayer-counter-info'
),
'counter_text_color' => array(
'type' => 'color',
'label' => __pl('counter_text_color_label'),
'default' => '#333333',
'css' => ['{{element}} .pagelayer-counter-info' => 'color:{{val}};'],
),
'counter_text_style' => array(
'type' => 'typography',
'label' => __pl('counter_text_style'),
'default' => ',25,,400,,,solid,,,,',
'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;'],
),
],
'styles' => [
'counter_label_style' => __pl('counter_label_style'),
'counter_style' => __pl('counter_style'),
],
)
);
// Address
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_address', array(
'name' => __pl('address'),
'group' => 'other',
'icon' => 'fas fa-map-marker-alt',
'html' => '