query_controls(); //styling tab $this->start_controls_section( 'section_general_style', [ 'label' => esc_html__( 'General Styles', 'accesspress-parallax' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); //element title $this->add_control( 'testimonial_title_color', [ 'label' => esc_html__( 'Content Title Color', 'accesspress-parallax' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} h4.testimonial-post-title' => 'color: {{VALUE}};', ], ] ); //element title $this->add_control( 'testimonial_description_color', [ 'label' => esc_html__( 'Content Description Color', 'accesspress-parallax' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .testimonial-content' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'testimonial_title_typography', 'label' => esc_html__( 'Content Title Typography', 'accesspress-parallax' ), 'scheme' => Scheme_Typography::TYPOGRAPHY_4, 'selector' => '{{WRAPPER}} h4.testimonial-post-title', ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'testimonial_content_typography', 'label' => esc_html__( 'Content Description Typography', 'accesspress-parallax' ), 'scheme' => Scheme_Typography::TYPOGRAPHY_4, 'selector' => '{{WRAPPER}} .testimonial-content', ] ); $this->end_controls_section();//end for styling tab } /** * Render Accesspress_Parallax_Testimonial_Slider widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @access protected */ protected function render() { $settings = $this->get_settings(); $this->add_render_attribute( 'ap-testimonial-slider', 'class', 'ap-testimonial-slider-section ' ); $showposts = isset( $settings[ 'showposts' ] )? $settings[ 'showposts' ] : ''; $block_args = accesspress_parallax_query($settings,$first_id='', $showposts ); $query = new \WP_Query( $block_args ); ?>