Elementor\Widget_Icon_List::_register_controls PHP Method

_register_controls() protected method

protected _register_controls ( )
    protected function _register_controls()
    {
        $this->start_controls_section('section_icon', ['label' => __('Icon List', 'elementor')]);
        $this->add_control('icon_list', ['label' => '', 'type' => Controls_Manager::REPEATER, 'default' => [['text' => __('List Item #1', 'elementor'), 'icon' => 'fa fa-check'], ['text' => __('List Item #2', 'elementor'), 'icon' => 'fa fa-times'], ['text' => __('List Item #3', 'elementor'), 'icon' => 'fa fa-dot-circle-o']], 'fields' => [['name' => 'text', 'label' => __('Text', 'elementor'), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'placeholder' => __('List Item', 'elementor'), 'default' => __('List Item', 'elementor')], ['name' => 'icon', 'label' => __('Icon', 'elementor'), 'type' => Controls_Manager::ICON, 'label_block' => true, 'default' => 'fa fa-check'], ['name' => 'link', 'label' => __('Link', 'elementor'), 'type' => Controls_Manager::URL, 'label_block' => true, 'placeholder' => __('http://your-link.com', 'elementor')]], 'title_field' => '<i class="{{ icon }}"></i> {{{ text }}}']);
        $this->add_control('view', ['label' => __('View', 'elementor'), 'type' => Controls_Manager::HIDDEN, 'default' => 'traditional']);
        $this->end_controls_section();
        $this->start_controls_section('section_icon_style', ['label' => __('Icon', 'elementor'), 'tab' => Controls_Manager::TAB_STYLE]);
        $this->add_control('icon_color', ['label' => __('Icon Color', 'elementor'), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => ['{{WRAPPER}} .elementor-icon-list-icon i' => 'color: {{VALUE}};'], 'scheme' => ['type' => Scheme_Color::get_type(), 'value' => Scheme_Color::COLOR_1]]);
        $this->add_control('icon_size', ['label' => __('Icon Size', 'elementor'), 'type' => Controls_Manager::SLIDER, 'default' => ['size' => 14], 'range' => ['px' => ['min' => 6]], 'selectors' => ['{{WRAPPER}} .elementor-icon-list-icon' => 'font-size: {{SIZE}}{{UNIT}};']]);
        $this->add_responsive_control('icon_align', ['label' => __('Alignment', 'elementor'), 'type' => Controls_Manager::CHOOSE, 'options' => ['left' => ['title' => __('Left', 'elementor'), 'icon' => 'align-left'], 'center' => ['title' => __('Center', 'elementor'), 'icon' => 'align-center'], 'right' => ['title' => __('Right', 'elementor'), 'icon' => 'align-right']], 'selectors' => ['{{WRAPPER}} .elementor-icon-list-items' => 'text-align: {{VALUE}};']]);
        $this->end_controls_section();
        $this->start_controls_section('section_text_style', ['label' => __('Text', 'elementor'), 'tab' => Controls_Manager::TAB_STYLE]);
        $this->add_control('text_indent', ['label' => __('Text Indent', 'elementor'), 'type' => Controls_Manager::SLIDER, 'range' => ['px' => ['max' => 50]], 'selectors' => ['{{WRAPPER}} .elementor-icon-list-text' => is_rtl() ? 'padding-right: {{SIZE}}{{UNIT}};' : 'padding-left: {{SIZE}}{{UNIT}};']]);
        $this->add_control('text_color', ['label' => __('Text Color', 'elementor'), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => ['{{WRAPPER}} .elementor-icon-list-text' => 'color: {{VALUE}};'], 'scheme' => ['type' => Scheme_Color::get_type(), 'value' => Scheme_Color::COLOR_2]]);
        $this->add_group_control(Group_Control_Typography::get_type(), ['name' => 'icon_typography', 'label' => __('Typography', 'elementor'), 'selector' => '{{WRAPPER}} .elementor-icon-list-text', 'scheme' => Scheme_Typography::TYPOGRAPHY_3]);
        $this->end_controls_section();
    }