Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////
- /// Style Normal & Hover Option Making
- //////////////////////////////////////
- $this->start_controls_section(
- 'style_section',
- [
- 'label' => __('Style', 'textdomain'),
- 'tab' => \Elementor\Controls_Manager::TAB_STYLE,
- ]
- );
- $this->start_controls_tabs(
- 'style_tabs'
- );
- $this->start_controls_tab(
- 'normal_color',
- [
- 'label' => __( 'Normal', 'textdomain' ),
- ]
- );
- $this->add_control(
- 'tab_color',
- [
- 'label' => __('Color','textdomain'),
- 'type' => \Elementor\Controls_Manager::COLOR,
- 'scheme' => [
- 'type' => \Elementor\Scheme_Color::get_type(),
- 'value' => \Elementor\Scheme_Color::COLOR_1,
- ],
- 'default' => '#FF3A46',
- 'selectors' => [
- '{{WRAPPER}} ' => 'color: {{VALUE}}',
- ],
- ]
- );
- $this->end_controls_tab();
- $this->start_controls_tab(
- 'hover_color',
- [
- 'label' => __( 'Hover', 'textdomain' ),
- ]
- );
- $this->add_control(
- 'filter_tab_active_color',
- [
- 'label' => __('HoverColor','textdomain'),
- 'type' => \Elementor\Controls_Manager::COLOR,
- 'scheme' => [
- 'type' => \Elementor\Scheme_Color::get_type(),
- 'value' => \Elementor\Scheme_Color::COLOR_1,
- ],
- 'default' => '#fff',
- 'selectors' => [
- '{{WRAPPER}}' => 'color: {{VALUE}}',
- ],
- ]
- );
- $this->end_controls_tab();
- $this->end_controls_tab();
- $this->end_controls_section();
- ///////////////////////////
- //// Elementor TEXT Control
- ///////////////////////////
- $this->add_control(
- 'widget_title',
- [
- 'label' => __( 'Title', 'textdomain' ),
- 'type' => \Elementor\Controls_Manager::TEXT,
- 'default' => __( 'Default title', 'textdomain' ),
- 'placeholder' => __( 'Type your title here', 'textdomain' ),
- ]
- );
- ///////////////////////////
- //// Elementor NUMBER Control
- ///////////////////////////
- $this->add_control(
- 'price',
- [
- 'label' => __( 'Price', 'textdomain' ),
- 'type' => \Elementor\Controls_Manager::NUMBER,
- 'min' => 5,
- 'max' => 100,
- 'step' => 5,
- 'default' => 10,
- ]
- );
- ///////////////////////////
- //// Elementor TEXTAREA Control
- ///////////////////////////
- $this->add_control(
- 'item_description',
- [
- 'label' => __( 'Description', 'textdomain' ),
- 'type' => \Elementor\Controls_Manager::TEXTAREA,
- 'rows' => 10,
- 'default' => __( 'Default description', 'textdomain' ),
- 'placeholder' => __( 'Type your description here', 'textdomain' ),
- ]
- );
- ///////////////////////////
- //// Elementor WYSIWYG Control
- ///////////////////////////
- $this->add_control(
- 'item_description',
- [
- 'label' => __( 'Description', 'textdomain' ),
- 'type' => \Elementor\Controls_Manager::WYSIWYG,
- 'default' => __( 'Default description', 'textdomain' ),
- 'placeholder' => __( 'Type your description here', 'textdomain' ),
- ]
- );
- ///////////////////////////
- //// Elementor Switcher Control
- ///////////////////////////
- $this->add_control(
- 'show_title',
- [
- 'label' => __( 'Show Title', 'textdomain' ),
- 'type' => \Elementor\Controls_Manager::SWITCHER,
- 'label_on' => __( 'Show', 'textdomain' ),
- 'label_off' => __( 'Hide', 'textdomain' ),
- 'return_value' => 'yes',
- 'default' => 'yes',
- ]
- );
- ///////////////////////////
- //// Elementor SELECT2 Control
- ///////////////////////////
- $this->add_control(
- 'show_elements',
- [
- 'label' => __( 'Show Elements', 'textdomain' ),
- 'type' => \Elementor\Controls_Manager::SELECT2,
- 'multiple' => true,
- 'options' => [
- 'title' => __( 'Title', 'textdomain' ),
- 'description' => __( 'Description', 'textdomain' ),
- 'button' => __( 'Button', 'textdomain' ),
- ],
- 'default' => [ 'title', 'description' ],
- ]
- );
- ///////////////////////////
- //// Elementor Choose Control
- ///////////////////////////
- $this->add_control(
- 'text_align',
- [
- 'label' => __( 'Alignment', 'textdomain' ),
- 'type' => \Elementor\Controls_Manager::CHOOSE,
- 'options' => [
- 'left' => [
- 'title' => __( 'Left', 'textdomain' ),
- 'icon' => 'fa fa-align-left',
- ],
- 'center' => [
- 'title' => __( 'Center', 'textdomain' ),
- 'icon' => 'fa fa-align-center',
- ],
- 'right' => [
- 'title' => __( 'Right', 'textdomain' ),
- 'icon' => 'fa fa-align-right',
- ],
- ],
- 'default' => 'center',
- 'toggle' => true,
- ]
- );
- ///////////////////////////
- //// Elementor COLOR Control
- ///////////////////////////
- $this->add_control(
- 'title_color',
- [
- 'label' => __( 'Title Color', 'textdomain' ),
- 'type' => \Elementor\Controls_Manager::COLOR,
- 'scheme' => [
- 'type' => \Elementor\Scheme_Color::get_type(),
- 'value' => \Elementor\Scheme_Color::COLOR_1,
- ],
- 'selectors' => [
- '{{WRAPPER}} .title' => 'color: {{VALUE}}',
- ],
- ]
- );
- ///////////////////////////
- //// Elementor Typography Control
- ///////////////////////////
- $this->add_group_control(
- \Elementor\Group_Control_Typography::get_type(),
- [
- 'name' => 'author_typography',
- 'label' => __( 'Typography', 'textdomain' ),
- 'scheme' => \Elementor\Scheme_Typography::TYPOGRAPHY_1,
- 'selector' => '{{WRAPPER}} .text',
- ]
- );
- ///////////////////////////
- //// Elementor TEXT Control
- ///////////////////////////
- ///////////////////////////
- //// Elementor TEXT Control
- ///////////////////////////
- ///////////////////////////
- //// Elementor TEXT Control
- ///////////////////////////
- ///////////////////////////
- //// Elementor TEXT Control
- ///////////////////////////
- ///////////////////////////
- //// Elementor TEXT Control
- ///////////////////////////
- ///////////////////////////
- //// Elementor TEXT Control
- ///////////////////////////
- ///////////////////////////
- //// Elementor TEXT Control
- ///////////////////////////
- ///////////////////////////
- //// Elementor TEXT Control
- ///////////////////////////
- ///////////////////////////
- //// Elementor TEXT Control
- ///////////////////////////
- ///////////////////////////
- //// Elementor TEXT Control
- ///////////////////////////
- ///////////////////////////
- //// Elementor TEXT Control
- ///////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement