Viewing File: /home/maglabs/etascom/wp-content/themes/agenzio/elements/widgets/pxl_banner.php
<?php
pxl_add_custom_widget(
array(
'name' => 'pxl_banner',
'title' => esc_html__('Case Banner', 'agenzio'),
'icon' => 'eicon-posts-ticker',
'categories' => array('pxltheme-core'),
'scripts' => array(
'elementor-waypoints',
'jquery-numerator',
'pxl-counter',
'agenzio-counter',
'gsap',
'pxl-scroll-trigger',
'pxl-splitText',
),
'params' => array(
'sections' => array(
array(
'name' => 'section_content',
'label' => esc_html__('Content', 'agenzio'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'controls' => array(
array(
'name' => 'banner_image',
'label' => esc_html__('Primary Image', 'agenzio' ),
'type' => \Elementor\Controls_Manager::MEDIA,
),
array(
'name' => 'image_min_height',
'label' => esc_html__('Image Min Height', 'agenzio' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'description' => esc_html__('Enter number.', 'agenzio' ),
'range' => [
'px' => [
'min' => 0,
'max' => 3000,
],
],
'control_type' => 'responsive',
'selectors' => [
'{{WRAPPER}} .pxl-banner .pxl-box-inner' => 'min-height: {{SIZE}}{{UNIT}};',
],
),
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' => 'section_style',
'label' => esc_html__('Style', 'agenzio' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
'controls' => array(
array(
'name' => 'style',
'label' => esc_html__('Style', 'agenzio' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => [
'style1' => 'Style1',
'style2' => 'Style2',
'style3' => 'Style3',
'style4' => 'Style4',
'style5' => 'Style5',
],
'default' => 'style1',
),
array(
'name' => 'bg_color',
'label' => esc_html__('Background Color', 'agenzio' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .pxl-banner .pxl-box-inner .pxl-item--imgprimary' => 'background-color: {{VALUE}};',
],
'condition' => [
'style' => ['style5'],
],
),
array(
'name' => 'opacity',
'label' => esc_html__('Opacity', 'agenzio' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'control_type' => 'responsive',
'selectors' => [
'{{WRAPPER}} .pxl-banner' => 'opacity: {{SIZE}};',
],
),
array(
'name' => 'pxl_animate_img1',
'label' => esc_html__('Animate - Primary Image', 'agenzio' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => agenzio_widget_animate(),
'default' => '',
),
array(
'name' => 'pxl_animate_delay_img1',
'label' => esc_html__('Animate Delay - Primary Image', 'agenzio' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => '0',
'description' => 'Enter number. Default 0ms',
),
),
),
),
),
),
agenzio_get_class_widget_path()
);
Back to Directory
File Manager