start_controls_section( 'sub_title_section', [ 'label' => esc_html__( 'Sub Title', 'absolute-addons' ), 'tab' => Controls_Manager::TAB_STYLE, 'conditions' => [ 'relation' => 'and', 'terms' => [ [ 'name' => 'absolute_call_to_action', 'operator' => '!==', 'value' => 'five', ], ], ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'sub_title_typography', 'label' => esc_html__( 'Sub Title Typography', 'absolute-addons' ), 'selector' => '{{WRAPPER}} .absp-wrapper .absp-call-to-action-item .c2a-box .c2a-box-content .c2a-box-sub-title', ] ); $this->add_control( 'sub_title_color', [ 'label' => esc_html__( 'Sub Title Color', 'absolute-addons' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .absp-wrapper .absp-call-to-action-item .c2a-box .c2a-box-content .c2a-box-sub-title' => 'color: {{VALUE}};', '{{WRAPPER}} .absp-wrapper .absp-call-to-action-item .c2a-box .c2a-box-content .c2a-box-sub-title:before' => 'background-color: {{VALUE}};', '{{WRAPPER}} .absp-wrapper .absp-call-to-action-item .c2a-box .c2a-box-content .c2a-box-sub-title:after' => 'background-color: {{VALUE}};', ], ] ); $this->add_responsive_control( 'sub_title_padding', [ 'label' => esc_html__( 'Padding', 'absolute-addons' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .absp-wrapper .absp-call-to-action-item .c2a-box .c2a-box-content .c2a-box-sub-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'sub_title_margin', [ 'label' => esc_html__( 'Margin', 'absolute-addons' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .absp-wrapper .absp-call-to-action-item .c2a-box .c2a-box-content .c2a-box-sub-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section();