',
'params' => array(
'align' => array(
'type' => 'radio',
'label' => __pl('alignment'),
'css' => ['.woocommerce {{element}}' => 'text-align: {{val}}'],
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right'),
),
),
'cart_typo' => array(
'type' => 'typography',
'label' => __pl('heading_typo'),
'css' => ['.woocommerce {{element}} .cart button' => '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;'],
),
'cart_colors' => array(
'type' => 'radio',
'label' => __pl('color'),
'list' => array(
'' => __pl('normal'),
'hover' => __pl('hover'),
),
),
'cart_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['.woocommerce {{element}} .cart button' => 'color: {{val}} !important'],
'show' => ['cart_colors' => ''],
),
'cart_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['.woocommerce {{element}} .cart button' => 'background-color: {{val}} !important'],
'show' => ['cart_colors' => ''],
),
'cart_border_color' => array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => ['.woocommerce {{element}} .cart button' => 'border-color: {{val}} !important'],
'show' => ['cart_colors' => ''],
),
'cart_color_hover' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['.woocommerce {{element}} .cart button:hover' => 'color: {{val}} !important'],
'show' => ['cart_colors' => 'hover'],
),
'cart_bg_color_hover' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['.woocommerce {{element}} .cart button:hover' => 'background-color: {{val}} !important'],
'show' => ['cart_colors' => 'hover'],
),
'cart_border_color_hover' => array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => ['.woocommerce {{element}} .cart button:hover' => 'border-color: {{val}} !important'],
'show' => ['cart_colors' => 'hover'],
),
'cart_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'css' => ['.woocommerce {{element}} .cart button' => 'border-style: {{val}}',
],
'list' => [
'' => __pl('default'),
'none' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
),
'cart_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'css' => ['.woocommerce {{element}} .cart button' => 'border-top-width: {{val[0]}}px !important; border-right-width: {{val[1]}}px !important; border-bottom-width: {{val[2]}}px !important; border-left-width: {{val[3]}}px !important',
],
'req' => [
'!cart_border_type' => ['', 'none'],
],
),
'cart_border_radius' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'units' => [ 'px', '%' ],
'css' => ['.woocommerce {{element}} .cart button' => 'border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important; -webkit-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;-moz-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;',
],
),
'cart_border_padding' => array(
'type' => 'padding',
'label' => __pl('padding'),
'units' => [ 'px', '%', 'em' ],
'css' => ['.woocommerce {{element}} .cart button' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;'],
),
),
'cart_quantity' => array(
'quantity_space' => array(
'type' => 'slider',
'label' => __pl('space'),
'units' => [ 'px', 'em' ],
'step' => 0.1,
'css' => ['body:not(.rtl) {{element}} .quantity + .button' => 'margin-left: {{val}}',
'body.rtl {{element}} .quantity + .button' => 'margin-right: {{val}}'
],
),
'quantity_width' => array(
'type' => 'slider',
'label' => __pl('Width'),
'units' => [ 'px', 'em' ],
'step' => 0.1,
'css' => ['.woocommerce {{element}} .quantity .qty' => 'width: {{val}} !important'],
),
'quantity_typo' => array(
'type' => 'typography',
'label' => __pl('heading_typo'),
'css' => ['.woocommerce {{element}} .quantity .qty' => '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;'],
),
'quantity_colors' => array(
'type' => 'radio',
'label' => __pl('colors'),
'list' => array(
'' => __pl('normal'),
'focus' => __pl('focus'),
),
),
'quantity_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['.woocommerce {{element}} .quantity .qty' => 'color: {{val}} !important'],
'show' => ['quantity_colors' => ''],
),
'quantity_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['.woocommerce {{element}} .quantity .qty' => 'background-color: {{val}} !important'],
'show' => ['quantity_colors' => ''],
),
'quantity_border_color' => array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => ['.woocommerce {{element}} .quantity .qty' => 'border-color: {{val}} !important'],
'show' => ['quantity_colors' => ''],
),
'quantity_color_hover' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['.woocommerce {{element}} .quantity .qty:focus' => 'color: {{val}} !important'],
'show' => ['quantity_colors' => 'focus'],
),
'quantity_bg_color_hover' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['.woocommerce {{element}} .quantity .qty:focus' => 'background-color: {{val}} !important'],
'show' => ['quantity_colors' => 'focus'],
),
'quantity_border_color_hover' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['.woocommerce {{element}} .quantity .qty:focus' => 'border-color: {{val}} !important'],
'show' => ['quantity_colors' => 'focus'],
),
'quantity_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'css' => ['.woocommerce {{element}} .quantity .qty' => 'border-style: {{val}} !important',
],
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
),
'quantity_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'css' => ['.woocommerce {{element}} .quantity .qty' => 'border-top-width: {{val[0]}}px !important; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px !important; border-left-width: {{val[3]}}px !important',
],
'req' => [
'!quantity_border_type' => ''
],
),
'quantity_border_radius' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'units' => [ 'px', '%' ],
'css' => ['.woocommerce {{element}} .quantity .qty' => 'border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important; -webkit-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;-moz-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;',
],
),
'quantity_border_padding' => array(
'type' => 'padding',
'label' => __pl('padding'),
'units' => [ 'px', '%', 'em' ],
'css' => ['.woocommerce {{element}} .quantity .qty' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;'],
),
),
'cart_variations' => array(
'variations_space' => array(
'type' => 'slider',
'label' => __pl('space'),
'units' => [ 'px', 'em' ],
'step' => 0.1,
'css' => ['.woocommerce {{element}} form.cart .variations' => 'margin-bottom: {{val}} !important'],
),
'variations_space_between' => array(
'type' => 'slider',
'label' => __pl('space_between'),
'units' => [ 'px', 'em' ],
'step' => 0.1,
'css' => ['.woocommerce {{element}} form.cart table.variations tr:not(:last-child)' => 'margin-bottom: {{val}} !important'],
),
'variations_label' => array(
'type' => 'heading',
'label' => __pl('label'),
),
'variations_label_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['.woocommerce {{element}} form.cart table.variations label' => '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;'],
),
'variations_label_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['.woocommerce {{element}} form.cart table.variations label' => 'color: {{val}} !important'],
),
'sel_label' => array(
'type' => 'heading',
'label' => __pl('select'),
),
'variations_sel_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['.woocommerce {{element}} form.cart table.variations td.value select' => '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;'],
),
'variations_sel_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['.woocommerce {{element}} form.cart table.variations td.value select' => 'color: {{val}} !important'],
),
'variations_sel_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['.woocommerce {{element}} form.cart table.variations td.value select' => 'background-color: {{val}} !important'],
),
'variations_border_sel_color' => array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => ['.woocommerce {{element}} form.cart table.variations td.value:before' => 'border-color: {{val}} !important'],
),
'variations_border_radius' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'units' => [ 'px', '%' ],
'css' => ['.woocommerce {{element}} form.cart table.variations td.value select' => 'border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important; -webkit-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;-moz-border-radius: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;',
],
),
),
'styles' => [
'cart_quantity' => __pl('quantity'),
'cart_variations' => __pl('variations'),
],
)
);
// Product Rating
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_rating', array(
'name' => __pl('product_rating'),
'group' => 'woocommerce',
'html' => '
{{product_rating}}
',
'params' => array(
'align' => array(
'type' => 'radio',
'label' => __pl('alignment'),
'css' => ['.woocommerce {{element}}' => 'text-align: {{val}}'],
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right'),
),
),
'star_color' => array(
'type' => 'color',
'label' => __pl('star_color'),
'css' => ['.woocommerce {{element}} .star-rating' => 'color: {{val}}'],
),
'star_emp_color' => array(
'type' => 'color',
'label' => __pl('empty_star_color'),
'css' => ['.woocommerce {{element}} .star-rating::before' => 'color: {{val}}'],
),
'review_link_color' => array(
'type' => 'color',
'label' => __pl('link_color'),
'css' => ['.woocommerce {{element}} .woocommerce-review-link' => 'color: {{val}}'],
),
'typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['.woocommerce {{element}} .woocommerce-review-link' => '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;'],
),
'star_size' => array(
'type' => 'slider',
'label' => __pl('star_size'),
'units' => [ 'px', 'em' ],
'step' => 0.1,
'css' => ['.woocommerce {{element}} .star-rating' => 'font-size:{{val}}'],
),
'space_between' => array(
'type' => 'slider',
'label' => __pl('space_between'),
'units' => [ 'px', 'em' ],
'step' => 0.1,
'css' => [
'.woocommerce:not(.rtl) {{element}} .star-rating' => 'margin-right: {{val}}',
'.woocommerce.rtl {{element}} .star-rating' => 'margin-left: {{val}}'
],
),
),
'review_link' => array(
'disable_review_link' => array(
'type' => 'checkbox',
'label' => __pl('disable_link'),
'css' => ['.woocommerce {{element}} .woocommerce-review-link' => 'display:none !important'],
),
'link_hover' => array(
'type' => 'radio',
'label' => __pl('state'),
'list' => array(
'' => __pl('normal'),
'hover' => __pl('hover'),
),
'req' => array(
'disable_review_link' => '',
),
),
'link_color' => array(
'type' => 'color',
'label' => __pl('link_color'),
'css' => ['.woocommerce {{element}} .woocommerce-review-link' => 'color: {{val}}; transition: all 0.5s ;'],
'req' => array(
'disable_review_link' => '',
),
'show' => ['link_hover' => ''],
),
'link_hover_color' => array(
'type' => 'color',
'label' => __pl('link_color'),
'css' => ['.woocommerce {{element}} .woocommerce-review-link:hover' => 'color: {{val}} !important;'],
'req' => array(
'disable_review_link' => '',
),
'show' => ['link_hover' => 'hover'],
),
),
'styles' => [
'review_link' => __pl('Review Link'),
]
)
);
// Product Meta
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_meta', array(
'name' => __pl('product_meta'),
'group' => 'woocommerce',
'html' => '
{{product_meta}}
',
'params' => array(
'align' => array(
'type' => 'radio',
'label' => __pl('alignment'),
'css' => ['.woocommerce {{element}} .pagelayer-product-meta' => 'text-align: {{val}}'],
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right'),
),
),
'display' => array(
'type' => 'radio',
'label' => __pl('display'),
'css' => ['.woocommerce {{element}} .product_meta > span' => 'display: {{val}}'],
'list' => array(
'inline-block' => __pl('inline_block'),
'block' => __pl('block'),
),
),
'space_between' => array(
'type' => 'slider',
'label' => __pl('space_between'),
'step' => 0.1,
'css' => [
'.woocommerce {{element}} .pagelayer-product-meta:not(.pagelayer-meta-block) .product_meta > span:not(:first-child)' => 'margin-left: {{val}}px',
'.woocommerce {{element}} .pagelayer-product-meta.pagelayer-meta-block .product_meta > span:not(:last-child)' => 'margin-bottom: {{val}}px',
],
),
'meta_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['.woocommerce {{element}} .product_meta span' => 'color: {{val}}'],
),
'typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['.woocommerce {{element}} .product_meta span' => '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;'],
),
'link_color' => array(
'type' => 'color',
'label' => __pl('link_color'),
'css' => ['.woocommerce {{element}} .product_meta a' => 'color: {{val}}'],
),
'linl_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['.woocommerce {{element}} .product_meta a' => '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;'],
),
),
)
);
// Product short description
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_short_desc', array(
'name' => __pl('product_short_desc'),
'group' => 'woocommerce',
'html' => '
{{product_short_desc}}
',
'params' => array(
'align' => array(
'type' => 'radio',
'label' => __pl('alignment'),
'css' => ['.woocommerce {{element}} .pagelayer-product-short-desc' => 'text-align: {{val}}'],
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right'),
),
),
'meta_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['.woocommerce {{element}} .pagelayer-product-short-desc *' => 'color: {{val}}'],
),
'typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['.woocommerce {{element}} .pagelayer-product-short-desc' => '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;'],
),
),
)
);
// Products style
$products_style = array(
'column_gap' => array(
'type' => 'slider',
'label' => __pl('column_gap'),
'units' => ['px', '%'],
'screen' => 1,
'default' => 20,
'step' => 0.2,
'max' => 100,
'css' => ['{{element}} ul.products li.product' => 'margin-right: {{val}}'],
),
'row_gap' => array(
'type' => 'slider',
'label' => __pl('row_gap'),
'units' => ['px', '%'],
'screen' => 1,
'default' => 20,
'step' => 0.2,
'max' => 100,
'css' => ['{{element}} ul.products li.product' => 'margin-bottom: {{val}}'],
),
'align' => array(
'type' => 'radio',
'label' => __pl('alignment'),
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right'),
),
'addAttr' => ['{{element}} .pagelayer-product-related-container' => 'pagelayer-content-align="{{align}}"'],
'css' => ['{{element}} ul.products li.product' => 'text-align:{{val}}'],
),
'img_lable' => array(
'type' => 'heading',
'label' => __pl('image'),
),
'img_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'css' => ['{{element}} .attachment-woocommerce_thumbnail' => 'border-style: {{val}}',
],
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
),
'img_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'screen' => 1,
'css' => ['{{element}} .attachment-woocommerce_thumbnail' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'
],
'req' => [
'!img_border_type' => ''
],
),
'img_border_color_hover' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .attachment-woocommerce_thumbnail' => 'border-color: {{val}}'],
'show' => ['img_border_type' => ''],
),
'img_border_radius' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => ['{{element}} .attachment-woocommerce_thumbnail' => '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]}};',
],
),
'img_spacing' => array(
'type' => 'slider',
'label' => __pl('spacing'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => ['{{element}} .attachment-woocommerce_thumbnail' => 'margin-bottom: {{val}}'],
),
'title_lable' => array(
'type' => 'heading',
'label' => __pl('title'),
),
'title_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => [
'{{element}} ul.products li.product .woocommerce-loop-product__title' => 'color: {{val}}',
'{{element}} ul.products li.product .woocommerce-loop-category__title' => 'color: {{val}}'
],
),
'title_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} ul.products li.product .woocommerce-loop-product__title' => '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;',
'{{element}} ul.products li.product .woocommerce-loop-category__title' => '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;'
],
),
'title_spacing' => array(
'type' => 'slider',
'label' => __pl('spacing'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => [
'{{element}} ul.products li.product .woocommerce-loop-product__title' => 'margin-bottom: {{val}}',
'{{element}} ul.products li.product .woocommerce-loop-category__title' => 'margin-bottom: {{val}}'
],
),
'rating_lable' => array(
'type' => 'heading',
'label' => __pl('stars_rating'),
),
'star_color' => array(
'type' => 'color',
'label' => __pl('star_color'),
'css' => ['{{element}} ul.products li.product .star-rating' => 'color: {{val}}'],
),
'empty_star_color' => array(
'type' => 'color',
'label' => __pl('empty_star_color'),
'css' => ['{{element}} ul.products li.product .star-rating::before' => 'color: {{val}}'],
),
'star_size' => array(
'type' => 'slider',
'label' => __pl('star_size'),
'max' => 5,
'step' => 0.1,
'css' => ['{{element}} ul.products li.product .star-rating' => 'font-size: {{val}}em'],
),
'star_spacing' => array(
'type' => 'slider',
'label' => __pl('spacing'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => ['{{element}} ul.products li.product .star-rating' => 'margin-bottom: {{val}}'],
),
'price_lable' => array(
'type' => 'heading',
'label' => __pl('price_style'),
),
'price_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => [
'{{element}} ul.products li.product .price' => 'color: {{val}}',
'{{element}} ul.products li.product .price ins' => 'color: {{val}}',
'{{element}} ul.products li.product .price ins .amount' => 'color: {{val}}',
],
),
'price_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['{{element}} ul.products li.product .price' => '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;'],
),
'reg_price_lable' => array(
'type' => 'heading',
'label' => __pl('regular_price'),
),
'reg_price_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => [
'{{element}} ul.products li.product .price del .amount' => 'color:{{val}}',
'{{element}} ul.products li.product .price del' => 'color:{{val}}'
]
),
'reg_price_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} ul.products li.product .price del .amount' => '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;',
'{{element}} ul.products li.product .price del' => '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;'
],
),
'button_lable' => array(
'type' => 'heading',
'label' => __pl('button'),
),
'button_colors'=> array(
'type' => 'radio',
'label' => '',
'list' => array(
'' => __pl('normal'),
'hover' => __pl('hover'),
),
),
'btn_color'=> array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} ul.products li.product .button' => 'color:{{val}}'],
'show' => [ 'button_colors' => '' ],
),
'btn_bg_color'=> array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} ul.products li.product .button' => 'background-color:{{val}}'],
'show' => [ 'button_colors' => '' ],
),
'btn_border_color'=> array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => ['{{element}} ul.products li.product .button' => 'border-color:{{val}}'],
'show' => [ 'button_colors' => '' ],
),
'btn_hover_color'=> array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} ul.products li.product .button:hover' => 'color:{{val}}'],
'show' => [ 'button_colors' => 'hover' ],
),
'btn_bg_hover_color'=> array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} ul.products li.product .button:hover' => 'background-color:{{val}}'],
'show' => [ 'button_colors' => 'hover' ],
),
'btn_border_hover_color'=> array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => ['{{element}} ul.products li.product .button:hover' => 'border-color:{{val}}'],
'show' => [ 'button_colors' => 'hover' ],
),
'btnb_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['{{element}} ul.products li.product .button' => '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;'],
),
'btn_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'css' => ['{{element}} ul.products li.product .button' => 'border-style: {{val}}',
],
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
),
'btn_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'screen' => 1,
'css' => ['{{element}} ul.products li.product .button' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px',
],
'req' => [
'!btn_border_type' => ''
],
),
'btn_border_radius' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => ['{{element}} ul.products li.product .button' => '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]}};',
],
),
'btn_text_padding' => array(
'type' => 'padding',
'label' => __pl('padding'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => ['{{element}} ul.products li.product .button' => 'padding: {{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]}};',
],
),
'btn_spacing' => array(
'type' => 'slider',
'label' => __pl('spacing'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => ['{{element}} ul.products li.product .button' => 'margin-top:{{val}}'],
),
'view_cart_lable' => array(
'type' => 'heading',
'label' => __pl('view_cart'),
),
'view_cart_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .added_to_cart' => 'color: {{val}}'],
),
'view_cart_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['{{element}} .added_to_cart' => '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;'],
),
);
// Products heading style
$products_heading = array(
'heading_show'=> array(
'type' => 'checkbox',
'label' => __pl('heading_style'),
'default' => 'true',
'addAttr' => ['{{element}} .pagelayer-product-related-container' => 'pagelayer-heading-show="{{heading_show}}"'],
),
'heading_color'=> array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .products > h2' => 'color: {{val}}'],
'req' => ['heading_show' => 'true'],
),
'heading_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['{{element}} .products > h2' => '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;'],
'req' => ['heading_show' => 'true'],
),
'heading_align'=> array(
'type' => 'radio',
'label' => __pl('alignment'),
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right'),
),
'css' => ['{{element}} .products > h2' => 'text-align: {{val}}'],
'req' => ['heading_show' => 'true'],
),
'heading_spacing' => array(
'type' => 'slider',
'label' => __pl('spacing'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => ['{{element}} .products > h2' => 'margin-bottom: {{val}}'],
'req' => ['heading_show' => 'true'],
),
);
// Products box style
$products_box = array(
'box_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'css' => ['{{element}} ul.products li.product' => 'border-style: {{val}}',
],
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
),
'box_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'screen' => 1,
'css' => ['{{element}} ul.products li.product' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px',
],
'req' => [
'!box_border_type' => ''
],
),
'box_border_radius' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => ['{{element}} ul.products li.product' => '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]}};',
],
),
'box_padding' => array(
'type' => 'padding',
'label' => __pl('padding'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => ['{{element}} ul.products li.product' => '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]}};',
],
),
'box_colors' => array(
'type' => 'radio',
'label' => '',
'list' => array(
'' => __pl('normal'),
'hover' => __pl('hover'),
),
),
'box_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} ul.products li.product' => 'background-color: {{val}}'],
'show' => ['box_colors' => ''],
),
'box_border_color' => array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => ['{{element}} ul.products li.product' => 'border-color: {{val}}'],
'show' => ['box_colors' => ''],
),
'box_shadow' => [
'type' => 'box_shadow',
'label' => __pl('shadow'),
'css' => ['{{element}} ul.products li.product' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
'show' => ['box_colors' => ''],
],
'box_bg_hover_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} ul.products li.product:hover' => 'background-color: {{val}}'],
'show' => ['box_colors' => 'hover'],
),
'box_border_hover_color' => array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => ['{{element}} ul.products li.product:hover' => 'border-color: {{val}}'],
'show' => ['box_colors' => 'hover'],
),
'box_hover_shadow' => [
'type' => 'box_shadow',
'label' => __pl('shadow'),
'css' => ['{{element}} ul.products li.product:hover' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
'show' => ['box_colors' => 'hover'],
],
);
// Products sale flash style
$products_sale_flash = array(
'sale_flash' => array(
'type' => 'checkbox',
'label' => __pl('sale_flash'),
'default' => 'true',
'addAttr' => ['{{element}} .pagelayer-product-related-container' => 'pagelayer-sale-flash="{{sale_flash}}"'],
),
'flash_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} ul.products li.product span.onsale' => 'color: {{val}}'],
'req' => [ 'sale_flash' => 'true'],
),
'flash_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} ul.products li.product span.onsale' => 'background-color: {{val}}'],
'req' => [ 'sale_flash' => 'true'],
),
'flash_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['{{element}} ul.products li.product span.onsale' => '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;'],
'req' => [ 'sale_flash' => 'true'],
),
'flash_border_radius' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => ['{{element}} .ul.products li.product span.onsale' => '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]}};',
],
'req' => [ 'sale_flash' => 'true'],
),
'flash_width' => array(
'type' => 'slider',
'label' => __pl('width'),
'units' => [ 'px', '%' ],
'css' => ['{{element}} ul.products li.product span.onsale' => 'min-width: {{val}};'],
'req' => [ 'sale_flash' => 'true'],
),
'flash_height' => array(
'type' => 'slider',
'label' => __pl('height'),
'units' => [ 'px', '%' ],
'css' => ['{{element}} ul.products li.product span.onsale' => 'min-height: {{val}}; line-height: {{val}};'],
'req' => [ 'sale_flash' => 'true'],
),
'flash_distance' => array(
'type' => 'slider',
'label' => __pl('distance'),
'units' => [ 'px', '%' ],
'max' => 20,
'css' => ['{{element}} ul.products li.product span.onsale' => 'margin: {{val}};'],
'req' => [ 'sale_flash' => 'true'],
),
'flash_position' => array(
'type' => 'radio',
'label' => __pl('position'),
'list' => array(
'left' => __pl('left'),
'right' => __pl('right'),
),
'css' => ['{{element}} ul.products li.product span.onsale' => 'left:auto; right:auto; {{val}} : 0;'],
'req' => [ 'sale_flash' => 'true'],
),
);
// Product related
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_related', array(
'name' => __pl('related_upsell_products'),
'group' => 'woocommerce',
'html' => '
{{related_products}}
',
'params' => array(
'select_product' => array(
'type' => 'select',
'label' => __pl('product_type'),
'default' => 'related',
'list' => array(
'related' => __pl('related'),
'upsell' => __pl('upsell'),
),
),
'posts_per_page' => array(
'type' => 'spinner',
'label' => __pl('products_per_page'),
'default' => 4,
'max' => 20,
'req' => ['select_product' => 'related'],
),
'columns' => array(
'type' => 'spinner',
'label' => __pl('columns'),
'screen' => 1,
'default' => 4,
'min' => 1,
'max' => 6,
),
'order_by' => array(
'type' => 'select',
'label' => __pl('order_by'),
'default' => 'date',
'list' => array(
'date' => __pl('date'),
'title' => __pl('title'),
'price' => __pl('price'),
'popularity' => __pl('popularity'),
'rating' => __pl('rating'),
'rand' => __pl('random'),
'menu_order' => __pl('menu_order'),
),
),
'order' => array(
'type' => 'select',
'label' => __pl('order'),
'default' => 'asc',
'list' => array(
'asc' => __pl('asc'),
'desc' => __pl('desc'),
),
),
),
'products_style' => $products_style,
'heading_style' => $products_heading,
'box_style' => $products_box,
'sale_flash_style' => $products_sale_flash,
'styles' =>[
'products_style' => __pl('products_style'),
'heading_style' => __pl('heading_styles'),
'box_style' => __pl('box_style'),
'sale_flash_style' => __pl('sale_flash_style'),
],
)
);
// woocommerce breadcrumb
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_woo_breadcrumb', array(
'name' => __pl('woo_breadcrumb'),
'group' => 'woocommerce',
'html' => '
'. pagelayer_woo_breadcrumb() .'
',
'params' => array(
'color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .woocommerce-breadcrumb' => 'color:{{val}}'],
),
'link_color' => array(
'type' => 'color',
'label' => __pl('link_color'),
'css' => ['{{element}} .woocommerce-breadcrumb > a' => 'color:{{val}}'],
),
'typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['{{element}} .woocommerce-breadcrumb' => '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;'],
),
'align' => array(
'type' => 'radio',
'label' => __pl('alignment'),
'css' => ['{{element}} .woocommerce-breadcrumb' => 'text-align:{{val}}'],
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right'),
),
),
),
)
);
// Product pages
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_woo_pages', array(
'name' => __pl('woo_pages'),
'group' => 'woocommerce',
'html' => '
{{page_content}}
',
'params' => array(
'pages' => array(
'type' => 'select',
'label' => __pl('pages'),
'css' => ['{{element}} .woocommerce-breadcrumb' => 'color:{{val}}'],
'list' => array(
'' => __pl( 'Select' ),
'woocommerce_cart' => __pl('cart_page'),
//'product_page' => __pl('single_product_page'),
'woocommerce_checkout' => __pl('checkout_page'),
'woocommerce_order_tracking' => __pl('order_tracking_form'),
'woocommerce_my_account' => __pl('my_account'),
),
),
),
)
);
// Product pages
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_categories', array(
'name' => __pl('product_categories'),
'group' => 'woocommerce',
'html' => '
{{product_categories}}
',
'params' => array(
'columns' => array(
'type' => 'spinner',
'label' => __pl('columns'),
'screen' => 1,
'default' => 4,
'max' => 12,
),
'number' => array(
'type' => 'spinner',
'label' => __pl('limit'),
'default' => 4,
),
'source' => array(
'type' => 'select',
'label' => __pl('source'),
'list' => array(
'' => __pl('show_all'),
'by_id' => __pl('manual_selection'),
'by_parent' => __pl('by_parent'),
'current_subcategories' => __pl('current_subcategories'),
),
),
'by_id' => array(
'type' => 'multiselect',
'label' => __pl('categories'),
'list' => pagelayer_get_product_cat(),
'req' => ['source' => 'by_id'],
),
'parent' => array(
'type' => 'select',
'label' => __pl('parent'),
'list' => [ '0' => __pl('only_top_level') ] + pagelayer_get_product_cat(),
'req' => ['source' => 'by_parent'],
),
'hide_empty' => array(
'type' => 'checkbox',
'label' => __pl('hide_empty'),
),
'orderby' => array(
'type' => 'select',
'label' => __pl('order_by'),
'default' => 'name',
'list' => array(
'name' => __pl('name'),
'slug' => __pl('slug'),
'description' => __pl('description'),
'count' => __pl('count'),
),
),
'order' => array(
'type' => 'select',
'label' => __pl('order'),
'default' => 'desc',
'list' => array(
'asc' => __pl('asc'),
'desc' => __pl('desc'),
),
),
),
'products_style' => array(
'column_gap' => array(
'type' => 'slider',
'label' => __pl('column_gap'),
'units' => ['px', '%'],
'screen' => 1,
'default' => 20,
'step' => 0.2,
'max' => 100,
'css' => ['{{element}} ul.products li.product' => 'margin-right: {{val}}'],
),
'row_gap' => array(
'type' => 'slider',
'label' => __pl('row_gap'),
'units' => ['px', '%'],
'screen' => 1,
'default' => 20,
'step' => 0.2,
'max' => 100,
'css' => ['{{element}} ul.products li.product' => 'margin-bottom: {{val}}'],
),
'align' => array(
'type' => 'radio',
'label' => __pl('alignment'),
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right'),
),
'css' => ['{{element}} ul.products li.product' => 'text-align:{{val}}'],
),
'img_lable' => array(
'type' => 'heading',
'label' => __pl('image'),
),
'img_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'css' => ['{{element}} a > img' => 'border-style: {{val}}',
],
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
),
'img_border_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} a > img' => 'border-color: {{val}}'],
'show' => ['!img_border_type' => ''],
),
'img_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'screen' => 1,
'css' => ['{{element}} a > img' => 'border-top-width: {{val[0]}}px; border-right-width: {{val[1]}}px; border-bottom-width: {{val[2]}}px; border-left-width: {{val[3]}}px'
],
'req' => [
'!img_border_type' => ''
],
),
'img_border_radius' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => ['{{element}} a > img' => '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]}};',
],
),
'img_spacing' => array(
'type' => 'slider',
'label' => __pl('spacing'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => ['{{element}} a > img' => 'margin-bottom: {{val}}'],
),
'title_lable' => array(
'type' => 'heading',
'label' => __pl('title'),
),
'title_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .woocommerce-loop-category__title' => 'color: {{val}}'],
),
'title_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} .woocommerce-loop-category__title' => '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;'
],
),
'title_spacing' => array(
'type' => 'slider',
'label' => __pl('spacing'),
'units' => [ 'px', '%' ],
'screen' => 1,
'css' => [
'{{element}} .woocommerce-loop-category__title' => 'margin-bottom: {{val}}'
],
),
'count_lable' => array(
'type' => 'heading',
'label' => __pl('count'),
),
'count_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .woocommerce-loop-category__title .count' => 'color: {{val}}'],
),
'count_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} .woocommerce-loop-category__title .count' => '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;'
],
),
),
'styles' =>[
'products_style' => __pl('products_style'),
],
)
);
// Archives Product
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_archives', array(
'name' => __pl('product_archives'),
'group' => 'woocommerce',
'html' => '
{{product_archives}}
',
'params' => array(
'allow_order' => array(
'type' => 'checkbox',
'label' => __pl('allow_order'),
'default' => 'true',
),
'show_result' => array(
'type' => 'checkbox',
'label' => __pl('show_result_counter'),
'default' => 'true',
),
'no_found' => array(
'type' => 'textarea',
'label' => __pl('no_found_msg'),
'default' => __pl('Products not found.'),
),
),
'products_style' => $products_style,
'box_style' => $products_box,
'sale_flash_style' => $products_sale_flash,
'pagination_style' => array(
'pagination_spacing' => array(
'type' => 'slider',
'label' => __pl('spacing'),
'css' => ['{{element}} nav.woocommerce-pagination' => 'margin-top:{{val}}px'],
),
'pagination_border' => array(
'type' => 'checkbox',
'label' => __pl('border'),
//'css' => ['{{element}} nav.woocommerce-pagination' => 'margin-top:{{val}}px'],
),
'pagination_border_color' => array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => [
'{{element}}nav.woocommerce-pagination ul' => 'border-color:{{val}}',
'{{element}} nav.woocommerce-pagination ul li' => 'border-right-color: {{val}}; border-left-color: {{val}}',
],
),
'pagination_padding' => array(
'type' => 'slider',
'label' => __pl('padding'),
'screen' => 1,
'units' => [ 'em' ],
'min' => 0,
'max' => 4,
'step' => 0.1,
'css' => [
'{{element}} nav.woocommerce-pagination ul li a' => 'padding: {{val}}',
'{{element}} nav.woocommerce-pagination ul li span' => 'padding: {{val}}'
],
),
'pagination_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} nav.woocommerce-pagination' => '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;'
],
),
'pagination_colors' => array(
'type' => 'radio',
'label' => __pl('colors'),
'list' => array(
'normal' => __pl('normal'),
'hover' => __pl('hover'),
'active' => __pl('active'),
),
),
'pagination_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} nav.woocommerce-pagination ul li a' => 'color:{{val}}'],
'show' => ['pagination_colors' => 'normal'],
),
'pagination_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} nav.woocommerce-pagination ul li a' => 'background-color:{{val}}'],
'show' => ['pagination_colors' => 'normal'],
),
'pagination_color_hover' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} nav.woocommerce-pagination ul li a:hover' => 'color:{{val}}'],
'show' => ['pagination_colors' => 'hover'],
),
'pagination_bg_color_hover' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} nav.woocommerce-pagination ul li a:hover' => 'background-color:{{val}}'],
'show' => ['pagination_colors' => 'hover'],
),
'pagination_color_active' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => [ '{{element}} nav.woocommerce-pagination ul li span.current' => 'color:{{val}};' ],
'show' => ['pagination_colors' => 'active'],
),
'pagination_bg_color_active' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} nav.woocommerce-pagination ul li span.current' => 'background-color:{{val}}'],
'show' => ['pagination_colors' => 'active'],
),
),
'no_found_style' => array(
'nf_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .pagelayer-product-no-found' => 'color:{{val}}'],
),
'nf_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} .pagelayer-product-no-found' => '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;'
],
),
),
'styles' =>[
'products_style' => __pl('products_style'),
'box_style' => __pl('box_style'),
'pagination_style' => __pl('pagination_style'),
'sale_flash_style' => __pl('sale_flash_style'),
'no_found_style' => __pl('no_found_style'),
],
)
);
// Products
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_products', array(
'name' => __pl('products'),
'group' => 'woocommerce',
'html' => '
{{products_content}}
',
'params' => array(
'columns' => array(
'type' => 'spinner',
'label' => __pl('columns'),
'screen' => 1,
'default' => 4,
'max' => 12,
),
'rows' => array(
'type' => 'spinner',
'label' => __pl('rows'),
'default' => 4,
),
'paginate' => array(
'type' => 'checkbox',
'label' => __pl('pagination'),
),
'allow_order' => array(
'type' => 'checkbox',
'label' => __pl('allow_order'),
'req' => ['paginate' => 'true'],
),
'show_result' => array(
'type' => 'checkbox',
'label' => __pl('show_result_counter'),
'req' => ['paginate' => 'true'],
),
'no_found' => array(
'type' => 'textarea',
'label' => __pl('no_found_msg'),
'default' => __pl('Products not found.'),
),
),
'query' => array(
'source' => array(
'type' => 'select',
'label' => __pl('source'),
'default' => 'recent_products',
'list' => array(
'pagelayer_current_query' => __pl('currunt_query'),
'recent_products' => __pl('recent_products'),
'sale_products' => __pl('sale_products'),
'best_selling_products' => __pl('best_selling_products'),
'top_rated_products' => __pl('top_rated_products'),
'featured_products' => __pl('featured_product'),
'by_id' => __pl('manual_selection'),
),
),
'ids' => array(
'type' => 'multiselect',
'label' => __pl('products'),
'list' => pagelayer_post_list_by_type('product'),
'req' => ['source' => 'by_id'],
),
'orderby' => array(
'type' => 'select',
'label' => __pl('order_by'),
'default' => 'date',
'list' => array(
'date' => __pl('date'),
'title' => __pl('title'),
'price' => __pl('price'),
'popularity' => __pl('popularity'),
'rating' => __pl('rating'),
'rand' => __pl('rand'),
'menu_order' => __pl('menu_order'),
),
),
'order' => array(
'type' => 'select',
'label' => __pl('order'),
'default' => 'ASC',
'list' => array(
'ASC' => __pl('ASC'),
'DESC' => __pl('DESC'),
),
),
),
'products_style' => $products_style,
'box_style' => $products_box,
'sale_flash_style' => $products_sale_flash,
'pagination_style' => array(
'pagination_spacing' => array(
'type' => 'slider',
'label' => __pl('spacing'),
'css' => ['{{element}} nav.woocommerce-pagination' => 'margin-top:{{val}}px'],
),
'pagination_border' => array(
'type' => 'checkbox',
'label' => __pl('border'),
//'css' => ['{{element}} nav.woocommerce-pagination' => 'margin-top:{{val}}px'],
),
'pagination_border_color' => array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => [
'{{element}}nav.woocommerce-pagination ul' => 'border-color:{{val}}',
'{{element}} nav.woocommerce-pagination ul li' => 'border-right-color: {{val}}; border-left-color: {{val}}',
],
),
'pagination_padding' => array(
'type' => 'slider',
'label' => __pl('padding'),
'screen' => 1,
'units' => [ 'em' ],
'min' => 0,
'max' => 4,
'step' => 0.1,
'css' => [
'{{element}} nav.woocommerce-pagination ul li a' => 'padding: {{val}}',
'{{element}} nav.woocommerce-pagination ul li span' => 'padding: {{val}}'
],
),
'pagination_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} nav.woocommerce-pagination' => '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;'
],
),
'pagination_colors' => array(
'type' => 'radio',
'label' => __pl('colors'),
'list' => array(
'normal' => __pl('normal'),
'hover' => __pl('hover'),
'active' => __pl('active'),
),
),
'pagination_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} nav.woocommerce-pagination ul li a' => 'color:{{val}}'],
'show' => ['pagination_colors' => 'normal'],
),
'pagination_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} nav.woocommerce-pagination ul li a' => 'background-color:{{val}}'],
'show' => ['pagination_colors' => 'normal'],
),
'pagination_color_hover' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} nav.woocommerce-pagination ul li a:hover' => 'color:{{val}}'],
'show' => ['pagination_colors' => 'hover'],
),
'pagination_bg_color_hover' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} nav.woocommerce-pagination ul li a:hover' => 'background-color:{{val}}'],
'show' => ['pagination_colors' => 'hover'],
),
'pagination_color_active' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => [ '{{element}} nav.woocommerce-pagination ul li span.current' => 'color:{{val}};' ],
'show' => ['pagination_colors' => 'active'],
),
'pagination_bg_color_active' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} nav.woocommerce-pagination ul li span.current' => 'background-color:{{val}}'],
'show' => ['pagination_colors' => 'active'],
),
),
'no_found_style' => array(
'nf_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .pagelayer-product-no-found' => 'color:{{val}}'],
),
'nf_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} .pagelayer-product-no-found' => '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;'
],
),
),
'styles' =>[
'query' => __pl('query'),
'products_style' => __pl('products_style'),
'box_style' => __pl('box_style'),
'pagination_style' => __pl('pagination_style'),
'sale_flash_style' => __pl('sale_flash_style'),
'no_found_style' => __pl('no_found_style'),
],
)
);
// Product Archives description
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_archives_desc', array(
'name' => __pl('product_archives_desc'),
'group' => 'woocommerce',
'html' => '
'. pagelayer_get_product_archives_desc() .'
',
'params' => array(
'align' => array(
'type' => 'radio',
'label' => __pl('alignment'),
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right'),
),
'css' => ['{{element}} .pagelayer-archives-desc-container' => 'text-align:{{val}}'],
),
'color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .woocommerce-product-details__short-description' => 'color:{{val}}'],
),
'typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} .woocommerce-product-details__short-description' => '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;'
],
),
),
)
);
// Product Additional Information
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_addi_info', array(
'name' => __pl('product_addi_info'),
'group' => 'woocommerce',
'html' => '
{{product_additional_info}}
',
'params' => array(
'color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['.woocommerce {{element}} .shop_attributes' => 'color:{{val}}'],
),
'typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'.woocommerce {{element}} .shop_attributes' => '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;'
],
),
'heading' => array(
'type' => 'checkbox',
'label' => __pl('heading_style'),
'default' => 'true',
'addAttr' => ['{{element}} .pagelayer-addi-info-container' => 'pagelayer-show-heading="{{heading}}"'],
),
'heading_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .pagelayer-addi-info-container h2' => 'color:{{val}}'],
'req' => ['heading' => 'true'],
),
'heading_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} .pagelayer-addi-info-container h2' => '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;'
],
'req' => ['heading' => 'true'],
),
),
)
);
// Product Additional Information
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_product_data_tabs', array(
'name' => __pl('product_data_tabs'),
'group' => 'woocommerce',
'html' => '
{{product_data_tab}}
',
'params' => array(
'tabs_colors' => array(
'type' => 'radio',
'label' => __pl('colors'),
'list' => array(
'normal' => __pl('normal'),
'active' => __pl('active'),
),
),
'tabs_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li:not(.active) a' => 'color:{{val}} !important;'],
'show' => ['tabs_colors' => 'normal'],
),
'tabs_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li:not(.active)' => 'background-color:{{val}} !important;'],
'show' => ['tabs_colors' => 'normal'],
),
'tabs_border_color' => array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => [
'.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li:not(.active)' => 'border-color:{{val}}',
'.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'border-color:{{val}}'
],
'show' => ['tabs_colors' => 'normal'],
),
'tabs_color_active' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li.active a' => 'color:{{val}} !important;'],
'show' => ['tabs_colors' => 'active'],
),
'tabs_bg_color_active' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li.active' => 'background-color:{{val}} !important;'],
'show' => ['tabs_colors' => 'active'],
),
'tabs_border_color_active' => array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => [
'.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'border-color: {{val}}',
'.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li.active' => 'border-color: {{val}} !important;'
],
'show' => ['tabs_colors' => 'active'],
),
'tabs_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'css' => [
'.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li' => 'border-style: {{val}} !important',
],
'list' => [
'' => __pl('default'),
'none' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
'show' => ['tabs_colors' => 'normal'],
),
'tabs_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'css' => [
'.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li' => 'border-width: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important;',
],
'req' => [
'!tabs_border_type' => ['', 'none'],
],
),
'tabs_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li a' => '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;'
],
),
'border_radius' => array(
'type' => 'slider',
'label' => __pl('border_radius'),
'css' => ['.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs li' => 'border-radius: {{val}}px !important;'],
),
),
'panel_style' => array(
'panel_color' => array(
'type' => 'color',
'label' => __pl('desc_color'),
'css' => ['.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'color: {{val}}'],
),
'panel_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => '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;'
],
),
'panel_heading' => array(
'type' => 'heading',
'label' => __pl('heading_style'),
),
'panel_heading_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel h2' => 'color: {{val}}'],
),
'panel_heading_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel h2' => '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;'
],
),
'panel_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'css' => ['.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'border-style: {{val}}'],
'list' => [
'' => __pl('default'),
'none' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
),
'panel_border_color' => array(
'type' => 'color',
'label' => __pl('border_color_label'),
'default' => '#42414f',
'css' => ['.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'border-color: {{val}} !important;'],
'req' => array(
'!panel_border_type' => ['none'],
),
),
'panel_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'css' => ['.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'border-width: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important; margin-top: -{{val[0]}}px !important;'],
'req' => [
'!panel_border_type' => ['none'],
],
),
'panel_border_radius' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'css' => [
'.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => '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;',
'.woocommerce {{element}} .woocommerce-tabs ul.wc-tabs' => 'margin-left: {{val[0]}}px; margin-right: {{val[1]}};'
],
),
'panel_shadow' => array(
'type' => 'box_shadow',
'label' => __pl('box_shadow'),
'css' => ['.woocommerce {{element}} .woocommerce-tabs .woocommerce-Tabs-panel' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}};'],
),
),
'styles' => array(
'panel_style' => __pl('panel_style'),
),
)
);
// WooCommerce Menu cart
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_woo_menu_cart', array(
'name' => __pl('woo_menu_cart'),
'group' => 'woocommerce',
'html' => '',
'params' => array(
'icon_type' => array(
'type' => 'select',
'label' => __pl('icon'),
'default' => 'fa fa-shopping-cart',
'list' => array(
'fa fa-shopping-cart' => __pl('cart'),
'fa fa-shopping-basket' => __pl('basket'),
'fa fa-shopping-bag' => __pl('bag'),
),
),
'items_indicator' => array(
'type' => 'select',
'label' => __pl('items_indicator'),
'default' => 'bubble',
'list' => array(
'' => __pl('none'),
'bubble' => __pl('bubble'),
'plain' => __pl('plain'),
),
'addAttr' => [ '{{element}} .pagelayer-menu-cart-toggle' => 'pagelayer-icon="{{items_indicator}}"'],
),
'empty_indicator' => array(
'type' => 'checkbox',
'label' => __pl('empty_indicator'),
'addAttr' => ['{{element}} .pagelayer-menu-cart-toggle' => 'pagelayer-empty-indicator="{{empty_indicator}}"'],
),
'sub_total' => array(
'type' => 'checkbox',
'label' => __pl('hide_sub_total'),
'css' => ['{{element}} .pagelayer-cart-button-text' => 'display:none;']
),
'cart_align' => array(
'type' => 'radio',
'label' => __pl('alignment'),
'default' => 'left',
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right'),
),
'css' => [
'{{element}} .pagelayer-menu-cart-toggle' => 'text-align:{{val}}'
],
),
),
'mini_cart_style' => array(
'mini_cart_colors' => array(
'type' => 'radio',
'label' => '',
'list' => array(
'normal' => __pl('normal'),
'hover' => __pl('hover'),
),
),
'mini_cart_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .pagelayer-cart-button' => 'color:{{val}}'],
'show' => ['mini_cart_colors' => 'normal'],
),
'cart_icon_color' => array(
'type' => 'color',
'label' => __pl('cart_icon_color'),
'css' => ['{{element}} .pagelayer-cart-button-icon' => 'color:{{val}}'],
'show' => ['mini_cart_colors' => 'normal'],
),
'mini_cart_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} .pagelayer-cart-button' => 'background-color:{{val}}'],
'show' => ['mini_cart_colors' => 'normal'],
),
'mini_cart_border_color' => array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => ['{{element}} .pagelayer-cart-button' => 'border-color:{{val}}'],
'show' => ['mini_cart_colors' => 'normal'],
),
'mini_cart_color_hover' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .pagelayer-cart-button:hover' => 'color:{{val}}'],
'show' => ['mini_cart_colors' => 'hover'],
),
'cart_icon_color_hover' => array(
'type' => 'color',
'label' => __pl('cart_icon_color'),
'css' => ['{{element}} .pagelayer-cart-button-icon:hover' => 'color:{{val}}'],
'show' => ['mini_cart_colors' => 'hover'],
),
'cart_bg_color_hover' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} .pagelayer-cart-button:hover' => 'background-color:{{val}}'],
'show' => ['mini_cart_colors' => 'hover'],
),
'cart_border_color_hover' => array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => ['{{element}} .pagelayer-cart-button:hover' => 'border-color:{{val}}'],
'show' => ['mini_cart_colors' => 'hover'],
),
'cart_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'css' => ['{{element}} .pagelayer-cart-button' => 'border-style: {{val}}'],
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
),
'cart_border_width' => array(
'type' => 'slider',
'label' => __pl('border_width'),
'css' => ['{{element}} .pagelayer-cart-button' => 'border-width:{{val}}px'],
'req' => ['!cart_border_type' => ''],
),
'cart_border_radius' => array(
'type' => 'slider',
'label' => __pl('border_radius'),
'units' => [ 'px', 'em', '%' ],
'css' => ['{{element}} .pagelayer-cart-button' => 'border-radius:{{val}}'],
),
'cart_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} .pagelayer-cart-button' => '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;'
],
),
'mini_cart_padding' => array(
'type' => 'padding',
'label' => __pl('padding'),
'units' => [ 'px', 'em', '%' ],
'css' => ['{{element}} .pagelayer-cart-button' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};'],
),
'mini_cart_icon' => array(
'type' => 'heading',
'label' => __pl('icon'),
),
'mini_icon_size' => array(
'type' => 'slider',
'label' => __pl('size'),
'units' => [ 'px', 'em' ],
'css' => ['{{element}} .pagelayer-cart-button-icon' => 'font-size:{{val}}'],
),
'mini_icon_spacing' => array(
'type' => 'slider',
'label' => __pl('spacing'),
'units' => [ 'px', 'em' ],
'min' => 0,
'max' => 50,
'css' => [
'body:not(.rtl) {{element}} .pagelayer-cart-button-text' => 'margin-right: {{val}}',
'body.rtl {{element}} .pagelayer-cart-button-text' => 'margin-left: {{val}}',
],
),
'mini_bubble_icon' => array(
'type' => 'heading',
'label' => __pl('bubble'),
'req' => ['items_indicator' => 'bubble'],
),
'bubble_colors' => array(
'type' => 'radio',
'label' => '',
'default' => 'normal',
'list' => array(
'normal' => __pl('normal'),
'hover' => __pl('hover'),
),
'req' => ['items_indicator' => 'bubble'],
),
'bubble_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} [pagelayer-icon="bubble"] .pagelayer-cart-button-icon[data-counter]:before' => 'color:{{val}}'],
'show' => ['bubble_colors' => 'normal'],
),
'bubble_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} [pagelayer-icon="bubble"] .pagelayer-cart-button-icon[data-counter]:before' => 'background-color:{{val}}'],
'show' => ['bubble_colors' => 'normal'],
),
'bubble_color_hover' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} [pagelayer-icon="bubble"] .pagelayer-cart-button-icon[data-counter]:hover:before' => 'color:{{val}}'],
'show' => ['bubble_colors' => 'hover'],
),
'bubble_bg_color_hover' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} [pagelayer-icon="bubble"] .pagelayer-cart-button-icon[data-counter]:hover:before' => 'background-color:{{val}}'],
'show' => ['bubble_colors' => 'hover'],
),
),
'container_style' => array(
'container_position' => array(
'type' => 'select',
'label' => __pl('container_position'),
'default' => 'fixed_right',
'list' => array(
'fixed_right' => __pl('fixed_right'),
'fixed_left' => __pl('fixed_left'),
'dropdown' => __pl('dropdown'),
),
'addAttr' => [ '{{element}} .pagelayer-woo-menu-cart-container' => 'pagelayer-container-position="{{container_position}}"'],
),
'container_align' => array(
'type' => 'radio',
'label' => __pl('position'),
'default' => 'left',
'list' => array(
'left' => __pl('left'),
'right' => __pl('right'),
),
'css' => ['{{element}} .pagelayer-menu-cart-container' => '{{val}}:0 !important;'],
'req' => ['container_position' => 'dropdown'],
),
'cart_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .pagelayer-menu-cart-container' => 'color:{{val}}']
),
'cart_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} .pagelayer-menu-cart-container' => 'background-color:{{val}}']
),
'container_close' => array(
'type' => 'slider',
'label' => __pl('container_close_size'),
'css' => ['{{element}} .pagelayer-menu-cart-close' => 'font-size:{{val}}px;']
),
'container_width' => array(
'type' => 'slider',
'label' => __pl('width'),
'screen' => 1,
'units' => ['px', '%'],
'css' => ['{{element}} .pagelayer-menu-cart-container' => 'width:{{val}};']
),
'sub_total_label' => array(
'type' => 'heading',
'label' => __pl('sub_total'),
),
'sub_total_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .woocommerce-mini-cart__total' => 'color: {{val}}'],
),
'sub_total_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} .woocommerce-mini-cart__total' => '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;'
],
),
),
'products_style' => array(
'products_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .woocommerce-mini-cart > .woocommerce-mini-cart-item' => 'color:{{val}}']
),
'products_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} .woocommerce-mini-cart > .woocommerce-mini-cart-item' => 'background-color:{{val}}']
),
'products_list_padding' => array(
'type' => 'padding',
'label' => __pl('padding'),
'units' => [ 'px', 'em'],
'css' => ['{{element}} .woocommerce-mini-cart > .woocommerce-mini-cart-item' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;'],
),
'img_label' => array(
'type' => 'heading',
'label' => __pl('image'),
),
'products_img_width' => array(
'type' => 'slider',
'label' => __pl('width'),
'default' => '50px',
'units' => ['px', 'em', '%'],
'css' => ['{{element}} .woocommerce-mini-cart-item img' => 'width: {{val}}'],
),
'title_label' => array(
'type' => 'heading',
'label' => __pl('product_title'),
),
'products_title_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .woocommerce-mini-cart-item a' => 'color: {{val}}'],
),
'products_title_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} .woocommerce-mini-cart-item a' => '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;'
],
),
'price_label' => array(
'type' => 'heading',
'label' => __pl('product_price'),
),
'products_price_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .woocommerce-mini-cart-item .quantity' => 'color: {{val}}'],
),
'products_price_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} .woocommerce-mini-cart-item .quantity' => '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;'
],
),
'remove_label' => array(
'type' => 'heading',
'label' => __pl('remove_items'),
),
'remove_icon_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .remove_from_cart_button' => 'color: {{val}} !important'],
),
'remove_icon_size' => array(
'type' => 'slider',
'label' => __pl('size'),
'css' => ['{{element}} .remove_from_cart_button' => 'font-size: {{val}}px'],
),
),
'buttons_style' => array(
'button_display' => array(
'type' => 'select',
'label' => __pl('display'),
'default' => 'inline',
'list' => array(
'inline' => __pl('inline'),
'block' => __pl('block'),
),
'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'display: {{val}}'],
'addAttr' => ['{{element}} .woocommerce-mini-cart__buttons' => 'pagelayer-display="{{button_display}}"'],
),
'space_between_btn' => array(
'type' => 'slider',
'label' => __pl('space_between'),
'default' => 5,
'css' => [
'{{element}} .woocommerce-mini-cart__buttons[pagelayer-display="inline"] a' => 'margin-left: {{val}}px',
'{{element}} .woocommerce-mini-cart__buttons[pagelayer-display="block"] a' => 'margin-bottom: {{val}}px'
],
),
'btn_padding' => array(
'type' => 'padding',
'label' => __pl('padding'),
'units' => [ 'px', 'em'],
'default' => '5,5,5,5',
'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}} !important;'],
),
'btn_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => [
'{{element}} .woocommerce-mini-cart__buttons' => '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;'
],
),
'btn_border_radius' => array(
'type' => 'slider',
'label' => __pl('border_radius'),
'units' => [ 'px', 'em'],
'default' => '50',
'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'border-radius: {{val}} !important'],
),
'btn_color' => array(
'type' => 'color',
'label' => __pl('color'),
'default' => '#ffffff',
'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'color: {{val}}'],
),
'btn_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'default' => '#585757',
'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'background-color: {{val}}'],
),
'btn_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'border-style: {{val}} !important'],
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
),
'btn_border_color' => array(
'type' => 'color',
'label' => __pl('border_color_label'),
'default' => '#42414f',
'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'border-color: {{val}} !important'],
'req' => array(
'!btn_border_type' => ''
),
),
'btn_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'screen' => 1,
'css' => ['{{element}} .woocommerce-mini-cart__buttons a' => 'border-width: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px !important'],
'req' => [
'!btn_border_type' => ''
],
),
),
'styles' => array(
'mini_cart_style' => __pl('mini_cart_style'),
'container_style' => __pl('container_style'),
'products_style' => __pl('products_style'),
'buttons_style' => __pl('buttons_style'),
),
)
);
}// class_exists('woocommerce') end
// Popup Settings
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_popup', array(
'name' => __pl('Popup Layout'),
'group' => 'other',
'not_visible' => 1,
'no_gt' => 1,
'icon' => 'fas fa-sort-amount-up-alt',
'overide_css_selector' => '[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content',
'hide_active' => 1,
'skip_props_cat' => ['position_styles', 'animation_styles', 'responsive_styles'],
'skip_props' => ['ele_zindex',
'ele_shadow', 'border_shadow_hover',
'hide_desktop', 'hide_tablet', 'hide_mobile', 'ele_sticky_pos'],
'params' => array(
'post_popup_width' => array(
'type' => 'slider',
'label' => __pl('width'),
'default' => '50',
'screen' => 1,
'units' => ['%', 'px'],
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'width:{{val}}'],
),
'post_popup_height' => array(
'type' => 'slider',
'label' => __pl('height'),
'screen' => 1,
'units' => ['%', 'px', 'vh'],
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'height:{{val}}'],
),
'popup_position' => array(
'type' => 'heading',
'label' => __pl('position'),
),
'popup_hori_position' => array(
'type' => 'radio',
'label' => __pl('horizontal'),
'list' => array(
'flex-start' => __pl('left'),
'center' => __pl('center'),
'flex-end' => __pl('right'),
),
'css' => ['[pagelayer-popup-id="{{ele_id}}"]' => 'justify-content:{{val}}'],
),
'popup_ver_position' => array(
'type' => 'radio',
'label' => __pl('vertical'),
'list' => array(
'flex-start' => __pl('top'),
'center' => __pl('center'),
'flex-end' => __pl('bottom'),
),
'css' => ['[pagelayer-popup-id="{{ele_id}}"]' => 'align-items:{{val}}'],
),
'popup_animation' => array(
'type' => 'select',
'label' => __pl('animation'),
'default' => '',
'addClass' => ['{{val}}',( !pagelayer_is_live() ? 'pagelayer-wow' : '' )],
'addAttr' => 'data-popup_animation="{{popup_animation}}',
'list' => $pagelayer->anim_in_options,
),
'popup_animation_delay' => [
'type' => 'spinner',
'label' => __pl('animation_delay'),
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => '-webkit-animation-delay: {{val}}ms; animation-delay: {{val}}ms;'],
'default' => 600,
'min' => 0,
'max' => 90000,
'step' => 100,
'req' => [
'!popup_animation' => ''
]
],
),
'popup_styles' => array(
'popup_content_back' => array(
'type' => 'radio',
'label' => __pl('bg_color'),
'list' => array(
'color' => __pl('color'),
'gradient' => __pl('gradient'),
),
),
'popup_content_bg' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'background-color:{{val}}'],
'req' => [ 'popup_content_back' => 'color'],
),
'popup_content_bg_gradient' => [
'type' => 'gradient',
'label' => '',
'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
'req' => ['popup_content_back' => 'gradient'],
],
'popup_border_type' => [
'type' => 'select',
'label' => __pl('border_type'),
'screen' => 1,
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'border-style: {{val}}'],
],
'popup_border_width' => [
'type' => 'padding',
'label' => __pl('border_width'),
'default' => '1,1,1,1',
'units' => ['px', 'em'],
'screen' => 1,
'req' => [
'!popup_border_type' => ''
],
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'],
],
'popup_border_color' => [
'type' => 'color',
'label' => __pl('border_color'),
'default' => '#CCC',
'screen' => 1,
'req' => [
'!popup_border_type' => ''
],
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'border-color: {{val}}'],
],
'popup_border_radius' => [
'type' => 'padding',
'label' => __pl('border_radius'),
'units' => ['px', 'em', '%'],
'screen' => 1,
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => '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]}};'],
],
'popup_shadow' => [
'type' => 'box_shadow',
'label' => __pl('shadow'),
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-modal-content' => 'box-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[4]}}px {{val[3]}} {{val[5]}} !important;'],
]
),
'overlay' => array(
'popup_overlay' => array(
'type' => 'checkbox',
'label' => __pl('enable_overlay'),
'default' => true,
'css' => ['[pagelayer-popup-id="{{ele_id}}"]' => 'pointer-events: all'],
),
'popup_overlay_back' => array(
'type' => 'radio',
'label' => __pl('bg_color'),
'default' => 'bg_color',
'list' => array(
'bg_color' => __pl('color'),
'gradient' => __pl('gradient'),
),
'req' => [ 'popup_overlay' => 'true'],
),
'popup_overlay_bg' => array(
'type' => 'color',
'default' => '#000000cc',
'label' => __pl('bg_color'),
'css' => ['[pagelayer-popup-id="{{ele_id}}"]' => 'background-color:{{val}}'],
'req' => [ 'popup_overlay_back' => 'bg_color', 'popup_overlay' => 'true'],
),
'popup_overlay_bg_gradient' => [
'type' => 'gradient',
'label' => '',
'default' => '150,#44d3f6ff,23,#72e584ff,45,#2ca4ebff,100',
'css' => ['[pagelayer-popup-id="{{ele_id}}"]' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
'req' => ['popup_overlay_back' => 'gradient', 'popup_overlay' => 'true'],
],
),
'close_button' => array(
'popup_overlay_close' => array(
'type' => 'checkbox',
'label' => __pl('close_by_overlay'),
'addAttr' => 'data-overlay_close="{{popup_overlay_close}}"',
'css' => ['[pagelayer-popup-id="{{ele_id}}"]' => 'pointer-events: all'],
),
'popup_sel_close' => array(
'type' => 'checkbox',
'label' => __pl('close_by_selector'),
),
'popup_selector_close' => array(
'type' => 'text',
'label' => __pl('ele_selector'),
'addAttr' => 'data-selector_close="{{popup_selector_close}}"',
'req' => [ 'popup_sel_close' => 'true'],
),
'popup_cbtn' => array(
'type' => 'checkbox',
'label' => __pl('close_button'),
'default' => true,
'addAttr' => 'data-popup_cbtn="{{popup_cbtn}}"',
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'display:block'],
),
'popup_cbtn_position' => array(
'type' => 'select',
'label' => __pl('position'),
'default' => 'inside',
'list' => array(
'inside' => __pl('inside'),
'outside' => __pl('outside'),
),
'show' => [ 'popup_cbtn' => 'true'],
'addAttr' => 'data-popup_cbtn_position="{{popup_cbtn_position}}"',
),
'popup_cbtn_v_position' => array(
'type' => 'slider',
'label' => __pl('verticle_postion'),
'screen' => 1,
'units' => ['%', 'px'],
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'top:{{val}}'],
'show' => [ 'popup_cbtn' => 'true'],
),
'popup_cbtn_h_position' => array(
'type' => 'slider',
'label' => __pl('horizontal_pos'),
'screen' => 1,
'units' => ['%', 'px'],
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'left:{{val}}'],
'show' => [ 'popup_cbtn' => 'true'],
),
'popup_cbtn_size' => array(
'type' => 'slider',
'label' => __pl('size'),
'screen' => 1,
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'font-size:{{val}}px'],
'show' => [ 'popup_cbtn' => 'true'],
),
'popup_cbtn_colors' => array(
'type' => 'radio',
'label' => __pl('colors'),
'default' => 'normal',
'list' => array(
'normal' => __pl('normal'),
'hover' => __pl('hover'),
),
'show' => [ 'popup_cbtn' => 'true'],
),
'popup_cbtn_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'color:{{val}}'],
'show' => [ 'popup_cbtn_colors' => 'normal', 'popup_cbtn' => 'true'],
),
'popup_cbtn_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'background-color:{{val}}'],
'show' => [ 'popup_cbtn_colors' => 'normal', 'popup_cbtn' => 'true'],
),
'popup_cbtn_color_hover' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close:hover' => 'color:{{val}}'],
'show' => [ 'popup_cbtn_colors' => 'hover', 'popup_cbtn' => 'true'],
),
'popup_cbtn_bg_color_hover' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close:hover' => 'background-color:{{val}}'],
'show' => [ 'popup_cbtn_colors' => 'hover', 'popup_cbtn' => 'true'],
),
'popup_cbtn_border_type' => [
'type' => 'select',
'label' => __pl('border_type'),
'screen' => 1,
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
'show' => [ 'popup_cbtn' => 'true'],
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'border-style: {{val}}'],
],
'popup_cbtn_border_width' => [
'type' => 'padding',
'label' => __pl('border_width'),
'default' => '1,1,1,1',
'units' => ['px', 'em'],
'screen' => 1,
'show' => [ 'popup_cbtn' => 'true'],
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'],
],
'popup_cbtn_border_color' => [
'type' => 'color',
'label' => __pl('border_color'),
'default' => '#CCC',
'screen' => 1,
'show' => [ 'popup_cbtn' => 'true'],
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'border-color: {{val}}'],
],
'popup_cbtn_border_radius' => [
'type' => 'padding',
'label' => __pl('border_radius'),
'units' => ['px', 'em', '%'],
'screen' => 1,
'show' => [ 'popup_cbtn' => 'true'],
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => '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]}};'],
],
'popup_cbtn_border_padding' => [
'type' => 'padding',
'label' => __pl('padding'),
'units' => ['px', 'em', '%'],
'screen' => 1,
'show' => [ 'popup_cbtn' => 'true'],
'css' => ['[pagelayer-popup-id="{{ele_id}}"] .pagelayer-popup-close' => 'padding: {{val[0]}} {{val[1]}} {{val[2]}} {{val[3]}};'],
],
),
'action_triggers' => array(
'trig_click' => array(
'type' => 'checkbox',
'label' => __pl('trig_onclick'),
'addAttr' => 'data-trig_click="{{trig_click}}"',
),
'trig_click_ele' => array(
'type' => 'text',
'label' => __pl('ele_selector'),
'addAttr' => 'data-trig_click_ele="{{trig_click_ele}}"',
'req' => [ 'trig_click' => 'true'],
),
'trig_load' => array(
'type' => 'checkbox',
'label' => __pl('trig_onload'),
'addAttr' => 'data-trig_load="{{trig_load}}"',
),
'trig_load_sec' => array(
'type' => 'spinner',
'label' => __pl('within_sec'),
'min' => 1,
'step' => 0.1,
'req' => [ 'trig_load' => 'true'],
'addAttr' => 'data-trig_load_sec="{{trig_load_sec}}"',
),
'trig_scroll' => array(
'type' => 'checkbox',
'label' => __pl('trig_onscroll'),
'addAttr' => 'data-trig_scroll="{{trig_scroll}}"',
),
'trig_scroll_dir' => array(
'type' => 'select',
'label' => __pl('scroll_direction'),
'default' => 'down',
'list' => array(
'down' => __pl('down'),
'up' => __pl('up'),
),
'addAttr' => 'data-trig_scroll_dir="{{trig_scroll_dir}}"',
'req' => [ 'trig_scroll' => 'true'],
),
'trig_scroll_per' => array(
'type' => 'spinner',
'label' => __pl('within_per'),
'min' => 1,
'step' => 1,
'max' => 100,
'req' => ['trig_scroll' => 'true', 'trig_scroll_dir' => 'down'],
'addAttr' => 'data-trig_scroll_per="{{trig_scroll_per}}"',
),
'trig_scroll_to_ele' => array(
'type' => 'checkbox',
'label' => __pl('trig_onscroll_to_ele'),
'addAttr' => 'data-trig_scroll_to_ele="{{trig_scroll_to_ele}}"',
),
'trig_scroll_to_ele_sel' => array(
'type' => 'text',
'label' => __pl('ele_selector'),
'req' => [ 'trig_scroll_to_ele' => 'true'],
'addAttr' => 'data-trig_scroll_to_ele_sel="{{trig_scroll_to_ele_sel}}"',
),
'trig_page_exit_intent' => array(
'type' => 'checkbox',
'label' => __pl('trig_onpage_exit_intent'),
'addAttr' => 'data-trig_page_exit_intent="{{trig_page_exit_intent}}"',
),
'trig_before_load' => array(
'type' => 'checkbox',
'label' => __pl('trig_beforeLoad'),
'addAttr' => 'data-trig_before_load="{{trig_before_load}}"',
'desc' => __pl('popup_load_desc')
),
),
'advance_options' => array(
'popup_multi_time' => array(
'type' => 'checkbox',
'label' => __pl('popup_multi_time'),
'addAttr' => 'data-popup_multi_time="{{popup_multi_time}}"',
),
'popup_cookie_session' => array(
'type' => 'checkbox',
'label' => __pl('popup_cookie_session'),
'addAttr' => 'data-popup_cookie_session="{{popup_cookie_session}}"',
),
'popup_cookie_close' => array(
'type' => 'checkbox',
'label' => __pl('popup_cookie_close'),
'addAttr' => 'data-popup_cookie_close="1"',
'req' => ['popup_cookie_session' => 'true']
),
'popup_cookie_selector' => array(
'type' => 'text',
'label' => __pl('popup_cookie_selector'),
'desc' => __pl('popup_cookie_selector_exp'),
'addAttr' => 'data-popup_cookie_selector="{{popup_cookie_selector}}"',
'req' => ['popup_cookie_session' => 'true']
),
'popup_cookie_name' => array(
'type' => 'text',
'label' => __pl('popup_cookie_name'),
'default' => '', // Make it blank to assigned from live.php
'addAttr' => 'data-popup_cookie_name="{{popup_cookie_name}}"',
'req' => ['popup_cookie_session' => 'true']
),
'popup_cookie_exp' => array(
'type' => 'text',
'label' => __pl('popup_cookie_exp'),
'default' => 30,
'addAttr' => 'data-popup_cookie_exp="{{popup_cookie_exp}}"',
'req' => ['popup_cookie_session' => 'true']
),
'popup_auto_close' => array(
'type' => 'spinner',
'label' => __pl('auto_close'),
'addAttr' => 'data-popup_auto_close="{{popup_auto_close}}"',
),
),
'styles' => array(
'popup_styles' => __pl('popup_styles'),
'overlay' => __pl('overlay'),
'close_button' => __pl('close_style'),
'action_triggers' => __pl('action_triggers'),
'advance_options' => __pl('advance_options'),
),
)
);
// Timeline widget
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_timeline', array(
'name' => __pl('timeline'),
'group' => 'other',
'icon' => 'fas fa-stream',
'has_group' => [
'section' => 'params',
'prop' => 'elements'
],
'holder' => '.pagelayer-timeline',
'innerHTML' => 'text',
'html' => '
',
'params' => array(
'elements' => array(
'type' => 'group',
'label' => __pl('timeline_item'),
'sc' => PAGELAYER_SC_PREFIX.'_timeline_item',
'item_label' => array(
'default' => __pl('timeline_item'),
'param' => 'text'
),
'count' => 2,
'text' => __pl('add_timeline_item'),
),
'timeline_centerline_bg_color' => array(
'type' => 'color',
'label' => __pl('seperator_color'),
'default' => 'grey',
'css' => ['{{element}} .pagelayer-timeline::after' => 'background-color: {{val}};'],
),
'vindent' => array(
'type' => 'spinner',
'label' => __pl('space_between_col'),
'min' => 10,
'step' => 1,
'max' => 100,
'default' => 20,
'screen' => 1,
'css' => ['{{element}} .pagelayer-timeline-container' => 'padding-top:{{val}}px; padding-bottom:{{val}}px;'],
)
),
));
// Timeline items
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_timeline_item', array(
'name' => __pl('timeline_item'),
'icon' => 'fas fa-stream',
'not_visible' => 1,
'parent' => [PAGELAYER_SC_PREFIX.'_timeline'],
'html' => '
{{left_heading_text}}
{{left_paragraph_text}}
{{right_heading_text}}
{{right_paragraph_text}}
',
'params' => array(
'text' => array(
'type' => 'text',
'label' => __pl('text'),
'default' => __pl('timeline_item')
),
'side' => array(
'label' => __pl('side'),
'type' => 'radio',
'default' => 'both',
'list' => array(
'left' => __pl('left'),
'right' => __pl('right'),
'both' => __pl('both')
)
),
'hindent' => array(
'type' => 'spinner',
'label' => __pl('icon_spacing'),
'screen' => 1,
'step' => 1,
'min' => 0,
'max' => 40,
'default' => 5,
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'margin-right:{{val}}px;',
'{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'margin-left:{{val}}px;'],
)
),
'timeline_circle' => [
'timeline_pos_y' => array(
'label' => __pl('verticle_postion'),
'type' => 'slider',
'step' => 1,
'min' => 0,
'max' => 80,
'default' => 20,
'screen' => 1,
'units' => ['%'],
'css' => ['{{element}} .pagelayer-timeline-center-circle' => 'top: {{val}};'],
),
'timeline_circle_radius' => array(
'type' => 'slider',
'label' => __pl('radius'),
'screen' => 1,
'step' => 1,
'min' => 20,
'max' => 70,
'default' => 40,
'units' => ['px'],
'css' => ['{{element}} .pagelayer-timeline-center-circle' => 'width:{{val}}; height:{{val}}; left:calc(50% - {{val}}/2);'],
),
'timeline_circle_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} .pagelayer-timeline-center-circle' => 'background-color: {{val}};'],
),
'timeline_circle_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'screen' => 1,
'default' => 'solid',
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
'css' => ['{{element}} .pagelayer-timeline-center-circle'=> 'border-style: {{val}}'],
),
'timeline_circle_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'default' => '4,4,4,4',
'units' => ['px', 'em'],
'screen' => 1,
'req' => [
'!timeline_circle_border_type' => ''
],
'css' =>['{{element}} .pagelayer-timeline-center-circle' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'],
),
'timeline_circle_border_color' => array(
'type' => 'color',
'label' => __pl('border_color'),
'default' => '#000',
'screen' => 1,
'req' => [
'!timeline_circle_border_type' => ''
],
'css' =>['{{element}} .pagelayer-timeline-center-circle' => 'border-color: {{val}}'],
),
'timeline_circle_border_radius' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'units' => ['px', 'em', '%'],
'screen' => 1,
'show' => ['timeline_circle_border_hover' => ''],
'req' => [
'!timeline_circle_border_type' => ''
],
'default' => '50,50,50,50',
'css' =>['{{element}} .pagelayer-timeline-center-circle' => '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]}};'],
),
'timeline_circle_icon' => array(
'type' => 'icon',
'label' => __pl('service_box_font_icon_label'),
'default' => '',
),
'timeline_circle_icon_size' => array(
'label' => __pl('icon_size'),
'type' => 'slider',
'step' => 1,
'min' => 5,
'max' => 40,
'default' => 10,
'screen' => 1,
'units' => ['px'],
'css' => ['{{element}} .pagelayer-timeline-center-circle .pagelayer-timeline-circle-icon' => 'font-size:{{val}}'],
'show' => ['!timeline_circle_icon' => ''],
),
'timeline_circle_icon_color' => array(
'type' => 'color',
'label' => __pl('icon_color'),
'show' => ['!timeline_circle_icon' => ''],
'css' => ['{{element}} .pagelayer-timeline-center-circle .pagelayer-timeline-circle-icon' => 'color: {{val}};'],
),
'timeline_circle_text' => array(
'type' => 'editor',
'label' => __pl('text'),
'default' => '',
'desc' => __pl('Edit the content here or edit directly in the Editor'),
'edit' => '.pagelayer-timeline-circle-text', // Edit the text and also mirror the same
'keep_prop' => 1
)
],
// timeline left part code starts
'left' => [
'left_heading_text' => array(
'type' => 'textarea',
'label' => __pl('heading_name'),
'default' => '
1998
',
'desc' => __pl('Edit the heading here'),
'edit' => '.pagelayer-timeline-container-left .pagelayer-timeline-content .pagelayer-heading-holder', // Edit the text and also mirror the same
'req' => ['side' => ['both','left']],
),
'left_paragraph_text' => array(
'type' => 'editor',
'label' => __pl('text'),
'default' => 'Lorem ipsum dolor sit amet',
'desc' => __pl('Edit the content here or edit directly in the Editor'),
'edit' => '.pagelayer-timeline-container-left .pagelayer-timeline-content .pagelayer-text-holder', // Edit the text and also mirror the same
'req' => ['side' => ['both','left']]
),
'left_align' => array(
'label' => __pl('content_align'),
'type' => 'radio',
'addAttr' => 'align="{{align}}"',
'screen' => 1,
'default' => 'left',
'css' => ['{{element}} .pagelayer-timeline-container-left' => 'text-align: {{val}}'],
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right')
),
'req' => ['side' => ['both','left']]
),
'left_part_width' => array(
'type' => 'spinner',
'label' => __pl('width'),
'screen' => 1,
'step' => 1,
'min' => 0,
'max' => 100,
'default' => 90,
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'width:{{val}}%'],
),
'left_heading_state' => array(
'type' => 'radio',
'label' => __pl('state'),
'default' => 'normal',
'list' => array(
'normal' => __pl('normal'),
'hover' => __pl('hover'),
),
'req' => ['side' => ['both','light']]
),
'left_color' => array(
'type' => 'color',
'label' => __pl('heading_color'),
'default' => '#111111',
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-heading-holder *' => 'color:{{val}}'],
'show' => ['left_heading_state' => 'normal']
),
'left_heading_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['{{element}} .pagelayer-timeline-container-left .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;',
'{{element}} .pagelayer-timeline-container-left .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;'],
'show' => ['left_heading_state' => 'normal']
),
'left_heading_text_shadow' => array(
'type' => 'shadow',
'label' => __pl('text_shadow'),
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-heading-holder' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
'show' => ['left_heading_state' => 'normal']
),
'left_color_hover' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-heading-holder:hover *' => 'color:{{val}}', '{{element}} .pagelayer-timeline-container-left .pagelayer-heading-holder:hover' => 'color:{{val}}'],
'show' => ['left_heading_state' => 'hover']
),
'left_heading_typo_hover' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['{{element}} .pagelayer-timeline-container-left .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;',
'{{element}} .pagelayer-timeline-container-left .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;'],
'show' => ['left_heading_state' => 'hover']
),
'left_heading_text_shadow_hover' => array(
'type' => 'shadow',
'label' => __pl('text_shadow'),
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-heading-holder:hover' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
'show' => ['left_heading_state' => 'hover']
),
'left_bg_hover' => array(
'type' => 'radio',
'label' => __pl('row_bg_styles'),
'default' => '',
'list' => [
'' => __pl('normal'),
'hover' => __pl('hover'),
],
'req' => ['side' => ['both','left']]
),
'left_bg_type' => array(
'type' => 'radio',
'label' => __pl('background_type'),
'default' => '',
'list' => [
'' => __pl('none'),
'color' => __pl('color'),
'gradient' => __pl('gradient'),
'image' => __pl('image'),
],
'show' => ['left_bg_hover' => '']
),
'left_bg_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-color: {{val}};'],
'show' => ['left_bg_hover' => ''],
'req' => ['left_bg_type' => 'color']
),
'left_timeline_gradient' => array(
'type' => 'gradient',
'label' => '',
'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
'show' => ['left_bg_hover' => ''],
'req' => ['left_bg_type' => 'gradient']
),
'left_img_color' => array(
'type' => 'color',
'label' => __pl('color'),
'default' => '',
'desc' => __pl('fallback_color'),
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-color: {{val}};'],
'show' => ['left_bg_hover' => ''],
'req' => ['left_bg_type' => 'image']
),
'left_bg_img' => array(
'type' => 'image',
'label' => __pl('image'),
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-image: url("{{{left_bg_img-url}}}");'],
'show' => ['left_bg_hover' => ''],
'req' => ['left_bg_type' => 'image']
),
'left_bg_attachment' => array(
'type' => 'select',
'label' => __pl('bg_attachment'),
'list' => [
'' => __pl('default'),
'scroll' => __pl('scroll'),
'fixed' => __pl('fixed')
],
'show' => ['left_bg_hover' => ''],
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-attachment: {{val}};'],
'req' => ['left_bg_type' => 'image']
),
'left_bg_posx' => array(
'type' => 'select',
'label' => __pl('bg_posx'),
'list' => [
'' => __pl('default'),
'center' => __pl('center'),
'left' => __pl('left'),
'right' => __pl('right'),
'custom' => __pl('custom')
],
'show' => ['left_bg_hover' => ''],
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-position-x: {{val}};'],
'req' => ['left_bg_type' => 'image']
),
'left_bg_posx_custom' => array(
'label' => __pl('custom_x'),
'type' => 'slider',
'step' => 1,
'min' => -5000,
'max' => 5000,
'screen' => 1,
'units' => ['px', 'em', '%'],
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-position-x: {{val}};'],
'req' => array(
'left_bg_posx' => 'custom'
),
),
'left_bg_posy' => array(
'type' => 'select',
'label' => __pl('bg_posy'),
'list' => [
'' => __pl('default'),
'center' => __pl('center'),
'top' => __pl('top'),
'bottom' => __pl('bottom'),
'custom' => __pl('custom')
],
'show' => ['left_bg_hover' => ''],
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-position-y: {{val}};'],
'req' => ['left_bg_type' => 'image']
),
'left_bg_posy_custom' => array(
'label' => __pl('custom_y'),
'type' => 'slider',
'step' => 1,
'min' => -5000,
'max' => 5000,
'screen' => 1,
'units' => ['px', 'em', '%'],
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-position-y: {{val}};'],
'req' => array(
'left_bg_posy' => 'custom'
),
),
'left_bg_repeat' => array(
'type' => 'select',
'label' => __pl('bg_repeat'),
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-repeat: {{val}};'],
'list' => [
'' => __pl('default'),
'repeat' => __pl('repeat'),
'no-repeat' => __pl('no-repeat'),
'repeat-x' => __pl('repeat-x'),
'repeat-y' => __pl('repeat-y'),
],
'show' => ['left_bg_hover' => ''],
'req' => ['left_bg_type' => 'image']
),
'left_bg_size' => array(
'type' => 'select',
'label' => __pl('bg_size'),
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'background-size: {{val}};'],
'list' => [
'' => __pl('default'),
'cover' => __pl('cover'),
'contain' => __pl('contain')
],
'show' => ['left_bg_hover' => ''],
'req' => ['left_bg_type' => 'image']
),
'left_bg_hover_delay' => array(
'type' => 'spinner',
'label' => __pl('bg_hover_delay'),
'min' => 0,
'step' => 100,
'max' => 5000,
'default' => 400,
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
'show' => ['left_bg_hover' => 'hover']
),
'left_bg_type_hover' => array(
'type' => 'radio',
'label' => __pl('background_type'),
'default' => '',
'list' => [
'' => __pl('none'),
'color' => __pl('color'),
'gradient' => __pl('gradient'),
'image' => __pl('image'),
],
'show' => ['left_bg_hover' => 'hover']
),
'left_bg_color_hover' => array(
'type' => 'color',
'label' => __pl('color_hover'),
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background: {{val}};'],
'show' => ['left_bg_hover' => 'hover'],
'req' => ['left_bg_type_hover' => 'color']
),
'left_bg_gradient_hover' => array(
'type' => 'gradient',
'label' => '',
'default' => '150,#44d3f6,25,#72e584,75,#2ca4eb,100',
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
'show' => ['left_bg_hover' => 'hover'],
'req' => ['left_bg_type_hover' => 'gradient']
),
'left_bg_img_hover' => array(
'type' => 'image',
'label' => __pl('image_hover'),
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background: url("{{{left_bg_img_hover-url}}}");'],
'show' => ['left_bg_hover' => 'hover'],
'req' => ['left_bg_type_hover' => 'image']
),
'left_bg_attachment_hover' => array(
'type' => 'select',
'label' => __pl('background_attachment'),
'list' => [
'' => __pl('default'),
'scroll' => __pl('scroll'),
'fixed' => __pl('fixed')
],
'show' => ['left_bg_hover' => 'hover'],
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background-attachment: {{val}};'],
'req' => ['left_bg_type_hover' => 'image']
),
'left_bg_posx_hover' => array(
'type' => 'select',
'label' => __pl('horizontal_pos'),
'list' => [
'' => __pl('default'),
'center' => __pl('center'),
'left' => __pl('left'),
'right' => __pl('right')
],
'show' => ['left_bg_hover' => 'hover'],
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background-position-x: {{val}};'],
'req' => ['left_bg_type_hover' => 'image']
),
'left_bg_posy_hover' => array(
'type' => 'select',
'label' => __pl('verticle_pos'),
'list' => [
'' => __pl('default'),
'center' => __pl('center'),
'top' => __pl('top'),
'bottom' => __pl('bottom')
],
'show' => ['left_bg_hover' => 'hover'],
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background-position-y: {{val}};'],
'req' => ['left_bg_type_hover' => 'image']
),
'left_bg_repeat_hover' => array(
'type' => 'select',
'label' => __pl('repeat'),
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background-repeat: {{val}};'],
'list' => [
'' => __pl('default'),
'repeat' => __pl('repeat'),
'no-repeat' => __pl('no-repeat'),
'repeat-x' => __pl('repeat-x'),
'repeat-y' => __pl('repeat-y'),
],
'show' => ['left_bg_hover' => 'hover'],
'req' => ['left_bg_type_hover' => 'image']
),
'left_bg_size_hover' => array(
'type' => 'select',
'label' => __pl('size'),
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'background-size: {{val}};'],
'list' => [
'' => __pl('default'),
'cover' => __pl('cover'),
'contain' => __pl('contain')
],
'show' => ['left_bg_hover' => 'hover'],
'req' => ['left_bg_type_hover' => 'image']
),
'left_timeline_border_hover' => array(
'type' => 'radio',
'label' => '',
'default' => '',
'list' => [
'' => __pl('normal'),
'hover' => __pl('hover'),
],
'req' => ['side' => ['both','left']]
),
'left_timeline_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'screen' => 1,
'default' => 'solid',
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
'show' => ['left_timeline_border_hover' => ''],
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content '=> 'border-style: {{val}}'],
),
'left_timeline_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'default' => '1,1,1,1',
'units' => ['px', 'em'],
'screen' => 1,
'show' => [
'left_timeline_border_hover' => ''
],
'req' => [
'!left_timeline_border_type' => ''
],
'css' =>['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'border-top-width: {{val[0]}};
border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'],
),
'left_timeline_border_color' => array(
'type' => 'color',
'label' => __pl('border_color'),
'default' => '#CCC',
'screen' => 1,
'show' => [
'left_timeline_border_hover' => ''
],
'req' => [
'!left_timeline_border_type' => ''
],
'css' =>['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => 'border-color: {{val}}'],
),
'left_timeline_border_radius' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'units' => ['px', 'em'],
'screen' => 1,
'show' => ['left_timeline_border_hover' => ''],
'req' => [
'!left_timeline_border_type' => ''
],
'default' => '6,6,6,6',
'css' =>['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content' => '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]}};'],
),
'left_timeline_border_type_hover' => array(
'type' => 'select',
'label' => __pl('border_type'),
'screen' => 1,
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
'show' => ['left_timeline_border_hover' => 'hover'],
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'border-style: {{val}}'],
),
'left_timeline_border_width_hover' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'units' => ['px', 'em'],
'screen' => 1,
'show' => [
'left_timeline_border_hover' => 'hover'
],
'req' => [
'!left_timeline_border_type_hover' => ''
],
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'],
),
'left_timeline_border_color_hover' => array(
'type' => 'color',
'label' => __pl('border_color'),
'screen' => 1,
'show' => [
'left_timeline_border_hover' => 'hover'
],
'req' => [
'!left_timeline_border_type_hover' => ''
],
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content:hover' => 'border-color: {{val}}'],
),
'left_timeline_border_radius_hover' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'screen' => 1,
'units' => ['px', 'em'],
'show' => [
'left_timeline_border_hover' => 'hover'
],
'req' => [
'!left_timeline_border_type_hover' => ''
],
'css' => ['{{element}} .pagelayer-timeline-container-left .pagelayer-timeline-content: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]}};'],
),
],
// timeline right part code starts
'right' => [
'right_heading_text' => array(
'type' => 'textarea',
'label' => __pl('heading_name'),
'default' => '
1998
',
'desc' => __pl('Edit the heading here'),
'edit' => '.pagelayer-timeline-container-right .pagelayer-timeline-content .pagelayer-heading-holder', // Edit the text and also mirror the same
'req' => ['side' => ['both','right']]
),
'right_paragraph_text' => array(
'type' => 'editor',
'label' => __pl('text'),
'default' => 'Lorem ipsum dolor sit amet',
'desc' => __pl('Edit the content here or edit directly in the Editor'),
'edit' => '.pagelayer-timeline-container-right .pagelayer-timeline-content .pagelayer-text-holder', // Edit the text and also mirror the same
'req' => ['side' => ['both','right']]
),
'right_align' => array(
'label' => __pl('content_align'),
'type' => 'radio',
'addAttr' => 'align="{{align}}"',
'screen' => 1,
'default' => 'left',
'css' => ['{{element}} .pagelayer-timeline-container-right' => 'text-align: {{val}}'],
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right')
),
'req' => ['side' => ['both','right']]
),
'right_part_width' => array(
'type' => 'spinner',
'label' => __pl('width'),
'default' => '400',
'screen' => 1,
'step' => 1,
'min' => 0,
'max' => 100,
'default' => 90,
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'width:{{val}}%'],
),
'right_heading_state' => array(
'type' => 'radio',
'label' => __pl('state'),
'default' => 'normal',
'list' => array(
'normal' => __pl('normal'),
'hover' => __pl('hover'),
),
'req' => ['side' => ['both','right']]
),
'right_color' => array(
'type' => 'color',
'label' => __pl('heading_color'),
'default' => '#111111',
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-heading-holder *' => 'color:{{val}}'],
'show' => ['right_heading_state' => 'normal']
),
'right_heading_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['{{element}} .pagelayer-timeline-container-right .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;',
'{{element}} .pagelayer-timeline-container-right .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;'],
'show' => ['right_heading_state' => 'normal']
),
'right_heading_text_shadow' => array(
'type' => 'shadow',
'label' => __pl('text_shadow'),
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-heading-holder' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
'show' => ['right_heading_state' => 'normal']
),
'right_color_hover' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-heading-holder:hover *' => 'color:{{val}}', '{{element}} .pagelayer-timeline-container-right .pagelayer-heading-holder:hover' => 'color:{{val}}'],
'show' => ['right_heading_state' => 'hover']
),
'right_heading_typo_hover' => array(
'type' => 'typography',
'label' => __pl('typography'),
'css' => ['{{element}} .pagelayer-timeline-container-right .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;',
'{{element}} .pagelayer-timeline-container-right .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;'],
'show' => ['right_heading_state' => 'hover']
),
'right_heading_text_shadow_hover' => array(
'type' => 'shadow',
'label' => __pl('text_shadow'),
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-heading-holder:hover' => 'text-shadow: {{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}} !important;'],
'show' => ['right_heading_state' => 'hover']
),
'right_bg_hover' => array(
'type' => 'radio',
'label' => __pl('row_bg_styles'),
'default' => '',
'list' => [
'' => __pl('normal'),
'hover' => __pl('hover'),
],
'show' => ['side' => ['both','right']]
),
'right_bg_type' => array(
'type' => 'radio',
'label' => __pl('background_type'),
'default' => '',
'list' => [
'' => __pl('none'),
'color' => __pl('color'),
'gradient' => __pl('gradient'),
'image' => __pl('image'),
],
'show' => ['right_bg_hover' => '']
),
'right_bg_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-color: {{val}};'],
'show' => ['right_bg_hover' => ''],
'req' => ['right_bg_type' => 'color']
),
'right_bg_gradient' => array(
'type' => 'gradient',
'label' => '',
'default' => '150,#44d3f6,23,#72e584,45,#2ca4eb,100',
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
'show' => ['right_bg_hover' => ''],
'req' => ['right_bg_type' => 'gradient']
),
'right_img_color' => array(
'type' => 'color',
'label' => __pl('color'),
'default' => '',
'desc' => __pl('fallback_color'),
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-color: {{val}};'],
'show' => ['right_bg_hover' => ''],
'req' => ['right_bg_type' => 'image']
),
'right_bg_img' => array(
'type' => 'image',
'label' => __pl('image'),
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-image: url("{{{right_bg_img-url}}}");'],
'show' => ['right_bg_hover' => ''],
'req' => ['right_bg_type' => 'image']
),
'right_bg_attachment' => array(
'type' => 'select',
'label' => __pl('bg_attachment'),
'list' => [
'' => __pl('default'),
'scroll' => __pl('scroll'),
'fixed' => __pl('fixed')
],
'show' => ['right_bg_hover' => ''],
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-attachment: {{val}};'],
'req' => ['right_bg_type' => 'image']
),
'right_bg_posx' => array(
'type' => 'select',
'label' => __pl('bg_posx'),
'list' => [
'' => __pl('default'),
'center' => __pl('center'),
'left' => __pl('left'),
'right' => __pl('right'),
'custom' => __pl('custom')
],
'show' => ['right_bg_hover' => ''],
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-position-x: {{val}};'],
'req' => ['right_bg_type' => 'image']
),
'right_bg_posx_custom' => array(
'label' => __pl('custom_x'),
'type' => 'slider',
'step' => 1,
'min' => -5000,
'max' => 5000,
'screen' => 1,
'units' => ['px', 'em', '%'],
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-position-x: {{val}};'],
'req' => array(
'right_bg_posx' => 'custom'
),
),
'right_bg_posy' => array(
'type' => 'select',
'label' => __pl('bg_posy'),
'list' => [
'' => __pl('default'),
'center' => __pl('center'),
'top' => __pl('top'),
'bottom' => __pl('bottom'),
'custom' => __pl('custom')
],
'show' => ['right_bg_hover' => ''],
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-position-y: {{val}};'],
'req' => ['right_bg_type' => 'image']
),
'right_bg_posy_custom' => array(
'label' => __pl('custom_y'),
'type' => 'slider',
'step' => 1,
'min' => -5000,
'max' => 5000,
'screen' => 1,
'units' => ['px', 'em', '%'],
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-position-y: {{val}};'],
'req' => array(
'right_bg_posy' => 'custom'
),
),
'right_bg_repeat' => array(
'type' => 'select',
'label' => __pl('bg_repeat'),
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-repeat: {{val}};'],
'list' => [
'' => __pl('default'),
'repeat' => __pl('repeat'),
'no-repeat' => __pl('no-repeat'),
'repeat-x' => __pl('repeat-x'),
'repeat-y' => __pl('repeat-y'),
],
'show' => ['right_bg_hover' => ''],
'req' => ['right_bg_type' => 'image']
),
'right_bg_size' => array(
'type' => 'select',
'label' => __pl('bg_size'),
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'background-size: {{val}};'],
'list' => [
'' => __pl('default'),
'cover' => __pl('cover'),
'contain' => __pl('contain')
],
'show' => ['right_bg_hover' => ''],
'req' => ['right_bg_type' => 'image']
),
'right_bg_hover_delay' => array(
'type' => 'spinner',
'label' => __pl('ele_bg_hover_delay'),
'min' => 0,
'step' => 100,
'max' => 5000,
'default' => 400,
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => '-webkit-transition: all {{val}}ms !important; transition: all {{val}}ms !important;'],
'show' => ['right_bg_hover' => 'hover']
),
'right_bg_type_hover' => array(
'type' => 'radio',
'label' => __pl('background_type'),
'default' => '',
'list' => [
'' => __pl('none'),
'color' => __pl('color'),
'gradient' => __pl('gradient'),
'image' => __pl('image'),
],
'show' => ['right_bg_hover' => 'hover']
),
'right_bg_color_hover' => array(
'type' => 'color',
'label' => __pl('color_hover'),
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background: {{val}};'],
'show' => ['right_bg_hover' => 'hover'],
'req' => ['right_bg_type_hover' => 'color']
),
'right_bg_gradient_hover' => array(
'type' => 'gradient',
'label' => '',
'default' => '150,#44d3f6,25,#72e584,75,#2ca4eb,100',
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background: linear-gradient({{val[0]}}deg, {{val[1]}} {{val[2]}}%, {{val[3]}} {{val[4]}}%, {{val[5]}} {{val[6]}}%);'],
'show' => ['right_bg_hover' => 'hover'],
'req' => ['right_bg_type_hover' => 'gradient']
),
'bg_img_hover' => array(
'type' => 'image',
'label' => __pl('image_hover'),
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background: url("{{{bg_img_hover-url}}}");'],
'show' => ['right_bg_hover' => 'hover'],
'req' => ['right_bg_type_hover' => 'image']
),
'right_bg_attachment_hover' => array(
'type' => 'select',
'label' => __pl('background_attachment'),
'list' => [
'' => __pl('default'),
'scroll' => __pl('scroll'),
'fixed' => __pl('fixed')
],
'show' => ['right_bg_hover' => 'hover'],
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background-attachment: {{val}};'],
'req' => ['right_bg_type_hover' => 'image']
),
'right_bg_posx_hover' => array(
'type' => 'select',
'label' => __pl('horizontal_pos'),
'list' => [
'' => __pl('default'),
'center' => __pl('center'),
'left' => __pl('left'),
'right' => __pl('right')
],
'show' => ['right_bg_hover' => 'hover'],
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background-position-x: {{val}};'],
'req' => ['right_bg_type_hover' => 'image']
),
'right_bg_posy_hover' => array(
'type' => 'select',
'label' => __pl('verticle_pos'),
'list' => [
'' => __pl('default'),
'center' => __pl('center'),
'top' => __pl('top'),
'bottom' => __pl('bottom')
],
'show' => ['right_bg_hover' => 'hover'],
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background-position-y: {{val}};'],
'req' => ['right_bg_type_hover' => 'image']
),
'right_bg_repeat_hover' => array(
'type' => 'select',
'label' => __pl('repeat'),
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background-repeat: {{val}};'],
'list' => [
'' => __pl('default'),
'repeat' => __pl('repeat'),
'no-repeat' => __pl('no-repeat'),
'repeat-x' => __pl('repeat-x'),
'repeat-y' => __pl('repeat-y'),
],
'show' => ['right_bg_hover' => 'hover'],
'req' => ['right_bg_type_hover' => 'image']
),
'right_bg_size_hover' => array(
'type' => 'select',
'label' => __pl('size'),
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'background-size: {{val}};'],
'list' => [
'' => __pl('default'),
'cover' => __pl('cover'),
'contain' => __pl('contain')
],
'show' => ['right_bg_hover' => 'hover'],
'req' => ['right_bg_type_hover' => 'image']
),
'right_timeline_border_hover' => array(
'type' => 'radio',
'label' => '',
'default' => '',
'list' => [
'' => __pl('normal'),
'hover' => __pl('hover'),
],
'req' => ['side' => ['both','right']]
),
'right_timeline_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'screen' => 1,
'default' => 'solid',
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
'show' => ['right_timeline_border_hover' => ''],
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content '=> 'border-style: {{val}}'],
),
'right_timeline_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'default' => '1,1,1,1',
'units' => ['px', 'em'],
'screen' => 1,
'show' => [
'right_timeline_border_hover' => ''
],
'req' => [
'!right_timeline_border_type' => ''
],
'css' =>['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'],
),
'right_timeline_border_color' => array(
'type' => 'color',
'label' => __pl('border_color'),
'default' => '#CCC',
'screen' => 1,
'show' => [
'right_timeline_border_hover' => ''
],
'req' => [
'!right_timeline_border_type' => ''
],
'css' =>['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => 'border-color: {{val}}'],
),
'right_timeline_border_radius' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'units' => ['px', 'em'],
'screen' => 1,
'show' => ['right_timeline_border_hover' => ''],
'req' => [
'!right_timeline_border_type' => ''
],
'default' => '6,6,6,6',
'css' =>['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content' => '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]}};'],
),
'right_timeline_border_type_hover' => array(
'type' => 'select',
'label' => __pl('border_type'),
'screen' => 1,
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
'show' => ['right_timeline_border_hover' => 'hover'],
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'border-style: {{val}}'],
),
'right_timeline_border_width_hover' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'units' => ['px', 'em'],
'screen' => 1,
'show' => [
'right_timeline_border_hover' => 'hover'
],
'req' => [
'!right_timeline_border_type_hover' => ''
],
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'border-top-width: {{val[0]}}; border-right-width: {{val[1]}}; border-bottom-width: {{val[2]}}; border-left-width: {{val[3]}}'],
),
'right_timeline_border_color_hover' => array(
'type' => 'color',
'label' => __pl('border_color'),
'screen' => 1,
'show' => [
'right_timeline_border_hover' => 'hover'
],
'req' => [
'!right_timeline_border_type_hover' => ''
],
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content:hover' => 'border-color: {{val}}'],
),
'right_timeline_border_radius_hover' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'screen' => 1,
'units' => ['px', 'em'],
'show' => ['right_timeline_border_hover' => 'hover'],
'req' => [
'!right_timeline_border_type_hover' => ''
],
'css' => ['{{element}} .pagelayer-timeline-container-right .pagelayer-timeline-content: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]}};'],
),
],
'styles' => [
'timeline_circle' => __pl('timeline_center_circle'),
'left' => __pl('left'),
'right' => __pl('right'),
]
)
);
// Before After Slider
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_before_after', array(
'name' => __pl('before_after_image'),
'group' => 'other',
'html' => '
',
'params' => array(
'before_image' => array(
'type' => 'image',
'label' => __pl('before_image'),
'default' => PAGELAYER_URL.'/images/default-image.png',
'retina' => 1,
),
'after_image' => array(
'type' => 'image',
'label' => __pl('after_image'),
'default' => PAGELAYER_URL.'/images/default-image.png',
'retina' => 1,
),
'before_after_direction' => array(
'type' => 'select',
'label' => __pl('slider_direction'),
'default' => 'horizontal',
'addClass' => ['{{element}} .pagelayer-before-after-slider' => 'pagelayer-before-after-slider-{{val}}'],
'list' => array(
'horizontal' => __pl('horizontal'),
'vertical' => __pl('vertical'),
)
),
'offset_horizontal' => array(
'type' => 'spinner',
'label' => __pl('slider_offset'),
'min' => '1',
'max' => '99.5',
'step' => '1',
'screen' => 1,
'css' => ['{{element}} .pagelayer-after-image' => 'clip-path:polygon({{val}}% 0%, 100% 0%, 100% 100%, {{val}}% 100%);','{{element}} .pagelayer-resizer' => 'left:{{val}}%;'],
'req' => ['before_after_direction' => 'horizontal']
),
'offset_vertical' => array(
'type' => 'spinner',
'label' => __pl('slider_offset'),
'min' => '1',
'max' => '100',
'step' => '1',
'screen' => 1,
'css' => ['{{element}} .pagelayer-before-after-slider-vertical .pagelayer-after-image' => 'clip-path:polygon(0px {{val}}%, 100% {{val}}%, 100% 100%, 0% 100%)','{{element}} .pagelayer-before-after-slider-vertical .pagelayer-resizer' => 'top:{{val}}%;'],
'req' => ['before_after_direction' => 'vertical']
),
'resize_event' => array(
'type' => 'radio',
'label' => __pl('slider_type'),
'default' => 'drag',
'screen' => 1,
'list' => array(
'none' => __pl('none'),
'drag' => __pl('drag'),
'hover' => __pl('hover')
)
),
'custom_height' => array(
'type' => 'checkbox',
'label' => __pl('custom_height'),
),
'height' => array(
'type' => 'spinner',
'label' => __pl('slider_height'),
'min' => '0',
'max' => '1000',
'step' => 1,
'screen' => 1,
'css' => ['{{element}} .pagelayer-before-after-slider' => 'height:{{val}}px;'],
'req' => ["custom_height" => 'true']
),
'delay_control' => array(
'type' => 'slider',
'label' => __pl('time'),
'min' => '0.0',
'max' => '1.0',
'step' => '0.1',
'css' => ['{{element}} .pagelayer-resizer,{{element}} .pagelayer-after-image' => 'transition-duration:{{val}}s;'],
)
),
'icon_style' => [
'icon' => array(
'type' => 'icon',
'label' => __pl('icon'),
'default' => 'fas fa-arrows-alt-h',
'list' => ['arrows-alt-h', 'arrows-alt-v','arrows-alt-h', 'arrow-right', 'arrow-left', 'arrow-circle-right', 'arrow-circle-left', 'arrow-alt-circle-left','arrow-alt-circle-right'],
),
'icon_color' => array(
'type' => 'color',
'label' => __pl('color'),
'css' => ['{{element}} .pagelayer-resizer:before' => 'color:{{val}};'],
),
'bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'default' => '#42414f',
'css' => ['{{element}} .pagelayer-resizer:before' => 'background: {{val}};'],
),
'icon_size' => array(
'type' => 'select',
'label' => __pl('icon_size'),
'default' => 'pagelayer-icon-mini',
'list' => array(
'pagelayer-icon-mini' => __pl('mini'),
'pagelayer-icon-small' => __pl('small'),
'pagelayer-icon-large' => __pl('large'),
'pagelayer-icon-extra-large' => __pl('extra_large'),
'pagelayer-icon-double-large' => __pl('double_large'),
'pagelayer-icon-custom' => __pl('custom'),
),
),
'icon_size_custom' => array(
'type' => 'spinner',
'label' => __pl('icon_size'),
'min' => '1',
'max' => '100',
'screen' => 1,
'css' => ['{{element}} .pagelayer-resizer:before' => 'font-size: {{val}}px'],
'req' => array(
'icon_size' => 'pagelayer-icon-custom'
),
),
'icon_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'css' => ['{{element}} .pagelayer-resizer:before' => 'border-style: {{val}}'],
'list' => [
'' => __pl('default'),
'none' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
),
'icon_border_color' => array(
'type' => 'color',
'label' => __pl('border_color'),
'css' => ['{{element}} .pagelayer-resizer:before' => 'border-color: {{val}};'],
'req' => array(
'!icon_border_type' => ['', 'none'],
),
),
'icon_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'screen' => 1,
'css' => ['{{element}} .pagelayer-resizer: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'],
'req' => [
'!icon_border_type' => ['', 'none'],
],
),
'icon_border_radius' => array(
'type' => 'slider',
'label' => __pl('border_radius'),
'step' => '1',
'screen' => 1,
'css' => ['{{element}} .pagelayer-resizer:before' => 'border-radius: {{val}}%; -webkit-border-radius: {{val}}%;-moz-border-radius: {{val}}%;'],
),
'bg_size' => array(
'type' => 'slider',
'label' => __pl('icon_bg_size'),
'step' => '1',
'screen' => 1,
'css' => ['{{element}} .pagelayer-resizer:before' => 'padding: {{val}}px;'],
),
'bg_positionHorizontalY' => array(
'type' => 'slider',
'label' => __pl('icon_position'),
'max' => '100',
'min' => '0',
'screen' => 1,
'css' => ['{{element}} .pagelayer-before-after-slider-horizontal .pagelayer-resizer:before' => 'top: {{val}}%; transform: TranslateX(-50%) TranslateY(-{{val}}%) '],
'req' => ['before_after_direction' => 'horizontal'],
),
'bg_positionVerticalX' => array(
'type' => 'slider',
'label' => __pl('icon_position'),
'max' => '100',
'min' => '0',
'screen' => 1,
'css' => ['{{element}} .pagelayer-before-after-slider-vertical .pagelayer-resizer:before' => 'left: {{val}}%; transform: TranslateX(-{{val}}%) TranslateY(-50%)'],
'req' => ['before_after_direction' => 'vertical'],
),
],
'resizer_style' => [
'resizer' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'css' => ['{{element}} .pagelayer-resizer' => 'background:{{val}};'],
),
'resizer_width' => array(
'type' => 'slider',
'label' => __pl('width'),
'min' => '0',
'max' => '20',
'screen' => 1,
'css' => ['{{element}} .pagelayer-resizer' => 'width: {{val}}px;'],
'req' => ['before_after_direction' => 'horizontal']
),
'resizer_width_vertical' => array(
'type' => 'slider',
'label' => __pl('height'),
'min' => '0',
'max' => '20',
'screen' => 1,
'css' => ['{{element}} .pagelayer-resizer' => 'height: {{val}}px;'],
'req' => ['before_after_direction' => 'vertical']
),
],
'bf_btn_style' =>[
'bf_button' => array(
'type' => 'checkbox',
'label' => __pl('show_btn')
),
'button_color' => array(
'type' => 'color',
'label' => __pl('color'),
'screen' => 1,
'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-btn' => 'color:{{val}};'],
'req' => array(
'bf_button' => 'true'
),
),
'btn_bg_color' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'screen' => 1,
'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-btn' => 'background-color:{{val}};'],
'req' => array(
'bf_button' => 'true'
),
),
'bf_btn_size' => array(
'type' => 'padding',
'label' => __pl('size'),
'screen' => 1,
'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-btn' => 'padding-top:{{val[0]}}px;padding-right:{{val[1]}}px;padding-bottom:{{val[0]}}px;padding-left:{{val[1]}}px;'],
'req' => [
'bf_button' => 'true',
]
),
'btn_border_type' => array(
'type' => 'select',
'label' => __pl('border_type'),
'css' => [
'{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-btn' => 'border-style: {{val}};',
],
'list' => [
'' => __pl('none'),
'solid' => __pl('solid'),
'double' => __pl('double'),
'dotted' => __pl('dotted'),
'dashed' => __pl('dashed'),
'groove' => __pl('groove'),
],
'req' => array(
'bf_button' => 'true'
),
),
'btn_border_color' => array(
'type' => 'color',
'label' => __pl('border_color_label'),
'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-btn' => 'border-color: {{val}};'],
'req' => array(
'!btn_border_type' => ''
),
),
'btn_border_width' => array(
'type' => 'padding',
'label' => __pl('border_width'),
'screen' => 1,
'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-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'],
'req' => [
'!btn_border_type' => ''
],
),
'btn_border_radius' => array(
'type' => 'padding',
'label' => __pl('border_radius'),
'screen' => 1,
'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-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;'],
'req' => array(
'!btn_border_type' => '',
),
),
'btn_position' => array(
'type' => 'slider',
'label' => __pl('button_position'),
'max' => '100',
'min' => '0',
'screen' => 1,
'css' => ['{{element}} .pagelayer-before-after-slider-horizontal .pagelayer-before-btn, {{element}} .pagelayer-before-after-slider-horizontal .pagelayer-after-btn' => 'top: {{val}}%;transform: translateY(-{{val}}%);','{{element}} .pagelayer-before-after-slider-vertical .pagelayer-before-btn, {{element}} .pagelayer-before-after-slider-vertical .pagelayer-after-btn' => 'left: {{val}}%;transform: translateX(-{{val}}%);'],
'req' => array(
'bf_button' => 'true',
),
),
'before_btn_text' => array(
'type' => 'text',
'label' => __pl('before_text'),
'default' => __pl('Before'),
'req' => array(
'bf_button' => 'true'
),
),
'after_btn_text' => array(
'type' => 'text',
'label' => __pl('after_text'),
'default' => __pl('After'),
'req' => array(
'bf_button' => 'true'
),
),
'btn_typo' => array(
'type' => 'typography',
'label' => __pl('typography'),
'screen' => 1,
'css' => ['{{element}} .pagelayer-before-btn, {{element}} .pagelayer-after-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;'],
'req' => ['bf_button' => 'true']
),
'before_spacing' => array(
'type' => 'padding',
'label' => __pl('before_button_spacing'),
'screen' => 1,
'css' => ['{{element}} .pagelayer-before-btn' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
'req' => ['bf_button' => 'true']
),
'after_spacing' => array(
'type' => 'padding',
'label' => __pl('after_button_spacing'),
'screen' => 1,
'css' => ['{{element}} .pagelayer-after-btn' => 'margin-top:{{val[0]}}px; margin-right:{{val[1]}}px; margin-bottom:{{val[2]}}px; margin-left:{{val[3]}}px;'],
'req' => ['bf_button' => 'true']
)
],
'styles' => [
'icon_style' => __pl('icon_style'),
'resizer_style' => __pl('resizer'),
'bf_btn_style' => __pl('Before After Button'),
]
)
);
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_image_map', array(
'name' => __pl('image_map'),
'group' => 'other',
'html' => '
',
'params' => array(
'map_img-id' => array(
'type' => 'image',
'label' => __pl('Image'),
'desc' => __pl('image_src_desc'),
'default' => PAGELAYER_URL.'/images/default-image.png',
'retina' => 0,
),
'img_map-size' => array(
'label' => __pl('obj_image_size_label'),
'type' => 'select',
'default' => 'full',
'list' => array(
'full' => __pl('full'),
'large' => __pl('large'),
'medium' => __pl('medium'),
'thumbnail' => __pl('thumbnail'),
'custom' => __pl('custom')
)
),
'custom_size' => array(
'label' => __pl('image_custom_size_label'),
'type' => 'text',
'screen' => 1,
'default' => '100x100',
'sep' => 'x',
'css' => ['{{element}} img' => 'width: {{val[0]}}px; height: {{val[1]}}px;'],
'req' => array(
'img_map-size' => 'custom'
),
),
'align' => array(
'label' => __pl('obj_align_label'),
'type' => 'radio',
'default' => 'center',
'screen' => 1,
'css' => ['{{element}} .pagelayer-imgmap-container' => 'text-align: {{val}}'],
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right')
)
),
'max-width' => array(
'label' => __pl('max-width-percent'),
'type' => 'slider',
'min' => 0,
'max' => 100,
'screen' => 1,
'css' => ['{{element}} img' => 'max-width: {{val}}%'],
),
'pagelayer_image_map' => array(
'type' => 'hidden',
'default' => ''
),
),
'area_styles' => [
'show_area' =>array(
'label' => __pl('show_area' ),
'desc' => __pl('show_area_to_live'),
'type' => 'checkbox',
'css' => ['{{element}} .pagelayer-imgmap-item.pagelayer-map-item-active, {{element}} .pagelayer-imgmap-hover-active .pagelayer-imgmap-item:hover' => 'opacity: 1'],
),
'area_bg' => array(
'type' => 'color',
'label' => __pl('bg_color'),
'default' => '#FFABAB',
'css' => ['{{element}} .pagelayer-imgmap-item.pagelayer-map-item-active, {{element}} .pagelayer-map-item-active_is_editable, {{element}} .pagelayer-imgmap-hover-active .pagelayer-imgmap-item:hover' => 'fill: {{val}}'],
'req' => array(
'show_area' => 'true'
)
),
'area_cord_color' => array(
'type' => 'color',
'label' => __pl('cord_color'),
'default' => '#F70E0E',
'css' => ['{{element}} .pagelayer-imgmap-item.pagelayer-map-item-active, {{element}} .pagelayer-map-item-active_is_editable, {{element}} .pagelayer-imgmap-hover-active .pagelayer-imgmap-item:hover' => 'stroke: {{val}}'],
'req' => array(
'show_area' => 'true'
)
)
],
'styles' => [
'area_styles' => __pl('Area Style')
],
)
);