Viewing File: /home/maglabs/etascom/wp-content/themes/agenzio/elements/widgets/pxl_showcase.php
<?php
pxl_add_custom_widget(
array(
'name' => 'pxl_showcase',
'title' => esc_html__('Case Showcase', 'agenzio'),
'icon' => 'eicon-posts-ticker',
'categories' => array('pxltheme-core'),
'scripts' => array(
'elementor-waypoints',
'jquery-numerator',
'pxl-progressbar',
'agenzio-progressbar',
),
'params' => array(
'sections' => array(
array(
'name' => 'section_content',
'label' => esc_html__('Content', 'agenzio'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'controls' => array(
array(
'name' => 'style',
'label' => esc_html__('Style', 'agenzio' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => [
'style-1' => 'Style1',
'style-2' => 'Style2',
],
'default' => 'style-1',
),
array(
'name' => 'image',
'label' => esc_html__('Image', 'agenzio' ),
'type' => \Elementor\Controls_Manager::MEDIA,
),
array(
'name' => 'img_size',
'label' => esc_html__('Image Size', 'agenzio' ),
'type' => \Elementor\Controls_Manager::TEXT,
'description' => 'Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Default: 370x300 (Width x Height)).',
),
array(
'name' => 'title',
'label' => esc_html__('Title', 'agenzio'),
'type' => \Elementor\Controls_Manager::TEXT,
'label_block' => true,
),
array(
'name' => 'button_text_lv1',
'label' => esc_html__('Button Text LV1', 'agenzio' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => '',
),
array(
'name' => 'button_link_lv1',
'label' => esc_html__('Button Link LV1', 'agenzio' ),
'type' => \Elementor\Controls_Manager::URL,
),
array(
'name' => 'button_text_lv2',
'label' => esc_html__('Button Text LV2', 'condo' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => '',
),
array(
'name' => 'button_link_lv2',
'label' => esc_html__('Button Link LV2', 'condo' ),
'type' => \Elementor\Controls_Manager::URL,
),
),
),
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-showcase .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-showcase .pxl-item--title',
),
array(
'name' => 'pxl_animate',
'label' => esc_html__('Animate', 'agenzio' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => agenzio_widget_animate(),
'default' => '',
),
array(
'name' => 'pxl_animate_delay',
'label' => esc_html__('Animate Delay', 'agenzio' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => '0',
'description' => 'Enter number. Default 0ms',
),
),
),
),
),
),
agenzio_get_class_widget_path()
);
Back to Directory
File Manager