File: //proc/self/root/proc/self/cwd/wp-content/themes/consultio/elementor/core/register/ct_text_box.php
<?php
// Register Text Box Widget
ct_add_custom_widget(
array(
'name' => 'ct_text_box',
'title' => esc_html__('Case Text Box', 'consultio' ),
'icon' => 'eicon-icon-box',
'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' => 'sub_title',
'label' => esc_html__('Sub Title', 'consultio' ),
'type' => \Elementor\Controls_Manager::TEXT,
),
array(
'name' => 'title',
'label' => esc_html__('Title', 'consultio' ),
'type' => \Elementor\Controls_Manager::TEXT,
'label_block' => true,
),
array(
'name' => 'description',
'label' => esc_html__('Description', 'consultio' ),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'rows' => 10,
'show_label' => false,
),
array(
'name' => 'btn_text',
'label' => esc_html__('Button Text', 'consultio' ),
'type' => \Elementor\Controls_Manager::TEXT,
),
array(
'name' => 'btn_link',
'label' => esc_html__('Button Link', 'consultio' ),
'type' => \Elementor\Controls_Manager::URL,
'default' => [
'url' => '#',
],
),
array(
'name' => 'ct_animate',
'label' => esc_html__('Case Animate', 'consultio' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => consultio_animate(),
'default' => '',
),
),
),
array(
'name' => 'section_style',
'label' => esc_html__('Style', 'consultio'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'controls' => array(
array(
'name' => 'sub_title_color',
'label' => esc_html__('Sub Title Color', 'consultio' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ct-text-box .item--sub-title' => 'color: {{VALUE}};',
],
),
array(
'name' => 'title_color',
'label' => esc_html__('Title Color', 'consultio' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ct-text-box .item--title' => 'color: {{VALUE}};',
],
),
array(
'name' => 'title_typography',
'label' => esc_html__('Title Typography', 'consultio' ),
'type' => \Elementor\Group_Control_Typography::get_type(),
'control_type' => 'group',
'selector' => '{{WRAPPER}} .ct-text-box .item--title',
),
array(
'name' => 'desc_color',
'label' => esc_html__('Description Color', 'consultio' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ct-text-box .item--description' => 'color: {{VALUE}};',
],
),
array(
'name' => 'box_bg_color',
'label' => esc_html__('Box Background Color', 'consultio' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .ct-text-box .ct-text-box-inner' => 'background-color: {{VALUE}};',
],
),
),
),
),
),
),
get_template_directory() . '/elementor/core/widgets/'
);