File: //proc/self/root/proc/self/cwd/wp-content/themes/consultio/elementor/core/register/ct_feature.php
<?php
// Register Feature Widget
ct_add_custom_widget(
array(
'name' => 'ct_feature',
'title' => esc_html__('Case Feature', 'consultio' ),
'icon' => 'eicon-select',
'categories' => array( Case_Theme_Core::CT_CATEGORY_NAME ),
'scripts' => array(
),
'params' => array(
'sections' => array(
array(
'name' => 'section_content',
'label' => esc_html__('Content', 'consultio' ),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'controls' => array(
array(
'name' => 'title_text',
'label' => esc_html__('Title', 'consultio' ),
'type' => \Elementor\Controls_Manager::TEXT,
'placeholder' => esc_html__('Enter your title', 'consultio' ),
'label_block' => true,
),
array(
'name' => 'description_text',
'label' => esc_html__('Description', 'consultio' ),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'placeholder' => esc_html__('Enter your description', 'consultio' ),
'rows' => 10,
'show_label' => false,
),
array(
'name' => 'icon_color',
'label' => esc_html__('Icon Color', 'consultio' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ct-feature-layout1 .item--title i' => 'color: {{VALUE}};',
],
),
array(
'name' => 'title_color',
'label' => esc_html__('Title Color', 'consultio' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ct-feature-layout1 .item--title' => 'color: {{VALUE}};',
],
),
array(
'name' => 'desc_color',
'label' => esc_html__('Description Color', 'consultio' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ct-feature-layout1 .item--desc' => 'color: {{VALUE}};',
],
),
array(
'name' => 'style',
'label' => esc_html__('Style', 'consultio' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => [
'style1' => 'Style 1',
'style2' => 'Style 2',
'style3' => 'Style 3',
],
'default' => 'style1',
),
array(
'name' => 'ct_animate',
'label' => esc_html__('Case Animate', 'consultio' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => consultio_animate(),
'default' => '',
),
),
),
),
),
),
get_template_directory() . '/elementor/core/widgets/'
);