Viewing File: /home/maglabs/etascom/wp-content/themes/agenzio/elements/widgets/pxl_meta.php
<?php
pxl_add_custom_widget(
array(
'name' => 'pxl_meta',
'title' => esc_html__('Case Meta', 'agenzio'),
'icon' => 'eicon-button',
'categories' => array('pxltheme-core'),
'scripts' => array(
'elementor-waypoints',
'jquery-numerator',
'pxl-counter',
'agenzio-counter',
),
'params' => array(
'sections' => array(
array(
'name' => 'section_content',
'label' => esc_html__('Content', 'agenzio'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'controls' => array(
array(
'name' => 'title',
'label' => esc_html__('Title', 'agenzio'),
'type' => \Elementor\Controls_Manager::TEXT,
'label_block' => true,
),
array(
'name' => 'desc',
'label' => esc_html__('Description', 'agenzio' ),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'rows' => 10,
'show_label' => false,
),
array(
'name' => 'title_btn',
'label' => esc_html__('Title Btn', 'agenzio' ),
'type' => \Elementor\Controls_Manager::TEXT,
'label_block' => true,
),
array(
'name' => 'button_link',
'label' => esc_html__('Link', 'agenzio' ),
'type' => \Elementor\Controls_Manager::URL,
),
array(
'name' => 'max_width_title',
'label' => esc_html__('Max Width Title', 'agenzio' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'control_type' => 'responsive',
'size_units' => [ 'px', '%' ],
'range' => [
'px' => [
'min' => 0,
'max' => 3000,
],
],
'selectors' => [
'{{WRAPPER}} .pxl-meta .pxl-item-title' => 'max-width: {{SIZE}}{{UNIT}};',
],
),
array(
'name' => 'max_width_desc',
'label' => esc_html__('Max Width Desc', 'agenzio' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'control_type' => 'responsive',
'size_units' => [ 'px', '%' ],
'range' => [
'px' => [
'min' => 0,
'max' => 3000,
],
],
'selectors' => [
'{{WRAPPER}} .pxl-meta .pxl-item-desc' => 'max-width: {{SIZE}}{{UNIT}};',
],
),
),
),
array(
'name' => 'section_style',
'label' => esc_html__('Style', 'agenzio' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
'controls' => array(
array(
'name' => 'title_color',
'label' => esc_html__('Title Color', 'agenzio' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .pxl-meta .pxl-item-title' => 'color: {{VALUE}} !important;',
],
),
array(
'name' => 'title_typography',
'label' => esc_html__('Title Typography', 'agenzio' ),
'type' => \Elementor\Group_Control_Typography::get_type(),
'control_type' => 'group',
'selector' => '{{WRAPPER}} .pxl-meta .pxl-item-title',
),
array(
'name' => 'padding',
'label' => esc_html__('Padding', 'agenzio' ),
'type' => \Elementor\Controls_Manager::DIMENSIONS,
'size_units' => [ 'px' ],
'selectors' => [
'{{WRAPPER}} .pxl-meta' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
'control_type' => 'responsive',
),
array(
'name' => 'pxl_animate1',
'label' => esc_html__('Animate', 'agenzio' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => agenzio_widget_animate(),
'default' => '',
),
array(
'name' => 'pxl_animate_delay1',
'label' => esc_html__('Animate Delay', 'agenzio' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => '0',
'description' => 'Enter number. Default 0ms',
),
array(
'name' => 'pxl_animate2',
'label' => esc_html__('Animate2', 'agenzio' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => agenzio_widget_animate(),
'default' => '',
),
array(
'name' => 'pxl_animate_delay2',
'label' => esc_html__('Animate Delay2', 'agenzio' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => '0',
'description' => 'Enter number. Default 0ms',
),
),
),
),
),
),
agenzio_get_class_widget_path()
);
Back to Directory
File Manager