);
$this->end_controls_section();
-
-
- $this->start_controls_section(
- 'section_formatting',
- [
- 'label' => __( 'Colours & Formatting', 'cube' ),
- ]
- );
-
-
- $this->add_control(
- 'title_color',
- [
- 'label' => __( 'Title Colour', 'cube' ),
- 'type' => Controls_Manager::COLOR,
- 'default' => '',
- 'selectors' => [
- '{{WRAPPER}} .text-block-title' => 'color: {{VALUE}};',
- ],
- ]
- );
-
-
- $this->add_control(
- 'subtitle_color',
- [
- 'label' => __( 'Subtitle Colour', 'cube' ),
- 'type' => Controls_Manager::COLOR,
- 'default' => '',
- 'selectors' => [
- '{{WRAPPER}} .text-block-subtitle' => 'color: {{VALUE}};',
- ],
- ]
- );
-
-
- $this->add_control(
- 'body_color',
- [
- 'label' => __( 'Body Colour', 'cube' ),
- 'type' => Controls_Manager::COLOR,
- 'default' => '',
- 'selectors' => [
- '{{WRAPPER}} .text-block-body' => 'color: {{VALUE}};',
- ],
- ]
- );
-
-
- $this->add_control(
- 'cta_color',
- [
- 'label' => __( 'Call to Action Colour', 'cube' ),
- 'type' => Controls_Manager::COLOR,
- 'default' => '',
- 'selectors' => [
- '{{WRAPPER}} .text-block-cta' => 'color: {{VALUE}};',
- ],
- ]
- );
-
-
- $this->add_responsive_control(
- 'align',
- [
- 'label' => __( 'Alignment', 'elementor' ),
- 'type' => Controls_Manager::CHOOSE,
- 'options' => [
- 'left' => [
- 'title' => __( 'Left', 'elementor' ),
- 'icon' => 'fa fa-align-left',
- ],
- 'center' => [
- 'title' => __( 'Center', 'elementor' ),
- 'icon' => 'fa fa-align-center',
- ],
- 'right' => [
- 'title' => __( 'Right', 'elementor' ),
- 'icon' => 'fa fa-align-right',
- ],
- 'justify' => [
- 'title' => __( 'Justified', 'elementor' ),
- 'icon' => 'fa fa-align-justify',
- ],
- ],
- 'default' => '',
- 'selectors' => [
- '{{WRAPPER}}' => 'text-align: {{VALUE}}; margin: 0 auto;',
- ],
- ]
- );
-
- $this->add_control(
- 'max-width',
- [
- 'label' => __( 'Maximum Width', 'cube' ),
- 'type' => Controls_Manager::SLIDER,
- // 'default' => [
- // 'size' => 400,
- // ],
- 'range' => [
- 'px' => [
- 'min' => 400,
- 'max' => 1600,
- 'step' => 10,
- ],
- '%' => [
- 'min' => 0,
- 'max' => 100,
- ],
- ],
- 'selectors' => [
- '{{WRAPPER}} .text-block' => 'max-width: {{SIZE}}{{UNIT}};',
- ],
- ]
- );
-
- $this->end_controls_section();
}
/**
* Render the widget output on the frontend.