D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
realadss
/
thathagroup.com
/
wp-content
/
themes
/
prooty
/
elementor
/
widgets
/
Filename :
testimonial.php
back
Copy
<?php use Elementor\Widget_Base; use Elementor\Controls_Manager; use Elementor\Group_Control_Typography; use Elementor\Utils; if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly class Prooty_Elementor_Testimonial extends Widget_Base { public function get_name() { return 'prooty_elementor_testimonial'; } public function get_title() { return esc_html__( 'Ova Testimonial', 'prooty' ); } public function get_icon() { return 'eicon-testimonial'; } public function get_categories() { return [ 'prooty' ]; } public function get_script_depends() { wp_enqueue_style( 'prooty-owl-testimonial', get_template_directory_uri().'/assets/libs/carousel/assets/owl.carousel.min.css' ); wp_enqueue_script( 'prooty-owl-tesimonial', get_template_directory_uri().'/assets/libs/carousel/owl.carousel.min.js', array('jquery'), false, true ); return [ 'prooty-elementor-testimonial' ]; } protected function register_controls() { $this->start_controls_section( 'section_content', [ 'label' => esc_html__( 'Content', 'prooty' ), ] ); $repeater = new \Elementor\Repeater(); $repeater->add_control( 'name_author', [ 'label' => esc_html__( 'Author Name', 'prooty' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__('Kevin martin', 'prooty'), ] ); $repeater->add_control( 'job', [ 'label' => esc_html__( 'Job', 'prooty' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__('Our customer', 'prooty'), ] ); $repeater->add_control( 'rating', [ 'label' => esc_html__( 'Rating', 'prooty' ), 'type' => Controls_Manager::NUMBER, 'min' => 0, 'max' => 10, 'step' => 0.1, 'default' => 5, 'dynamic' => [ 'active' => true, ], ] ); $repeater->add_control( 'star_style', [ 'label' => esc_html__( 'Icon', 'prooty' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'star_fontawesome' => 'Font Awesome', 'star_unicode' => 'Unicode', ], 'default' => 'star_fontawesome', 'render_type' => 'template', 'prefix_class' => 'elementor--star-style-', 'separator' => 'before', ] ); $repeater->add_control( 'unmarked_star_style', [ 'label' => esc_html__( 'Unmarked Style', 'prooty' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'solid' => [ 'title' => esc_html__( 'Solid', 'prooty' ), 'icon' => 'eicon-star', ], 'outline' => [ 'title' => esc_html__( 'Outline', 'prooty' ), 'icon' => 'eicon-star-o', ], ], 'default' => 'solid', ] ); $repeater->add_control( 'image_author', [ 'label' => esc_html__( 'Author Image', 'prooty' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], ] ); $repeater->add_control( 'testimonial', [ 'label' => esc_html__( 'Testimonial ', 'prooty' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'default' => esc_html__( 'Through a unique combination of engineering, construction design disciplines and expertise, Concor delivers world class infrastructure solutions.', 'prooty' ), ] ); $this->add_control( 'tab_item', [ 'label' => esc_html__( 'Items Testimonial', 'prooty' ), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'name_author' => esc_html__('Kevin martin', 'prooty'), ], [ 'name_author' => esc_html__('Jessica brown ', 'prooty'), ], [ 'name_author' => esc_html__('Mike hardson', 'prooty'), ], [ 'name_author' => esc_html__('Melias Lucci', 'prooty'), ], ], 'title_field' => '{{{ name_author }}}', ] ); $this->end_controls_section(); /***************************************************************** START SECTION ADDITIONAL ******************************************************************/ $this->start_controls_section( 'section_additional_options', [ 'label' => esc_html__( 'Additional Options', 'prooty' ), ] ); /*************************** VERSION 1 ***********************/ $this->add_control( 'margin_items', [ 'label' => esc_html__( 'Margin Right Items', 'prooty' ), 'type' => Controls_Manager::NUMBER, 'default' => 30, ] ); $this->add_control( 'item_number', [ 'label' => esc_html__( 'Item Number', 'prooty' ), 'type' => Controls_Manager::NUMBER, 'description' => esc_html__( 'Number Item', 'prooty' ), 'default' => 3, ] ); $this->add_control( 'slides_to_scroll', [ 'label' => esc_html__( 'Slides to Scroll', 'prooty' ), 'type' => Controls_Manager::NUMBER, 'description' => esc_html__( 'Set how many slides are scrolled per swipe.', 'prooty' ), 'default' => 1, ] ); $this->add_control( 'pause_on_hover', [ 'label' => esc_html__( 'Pause on Hover', 'prooty' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', 'options' => [ 'yes' => esc_html__( 'Yes', 'prooty' ), 'no' => esc_html__( 'No', 'prooty' ), ], 'frontend_available' => true, ] ); $this->add_control( 'infinite', [ 'label' => esc_html__( 'Infinite Loop', 'prooty' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', 'options' => [ 'yes' => esc_html__( 'Yes', 'prooty' ), 'no' => esc_html__( 'No', 'prooty' ), ], 'frontend_available' => true, ] ); $this->add_control( 'center_mode', [ 'label' => esc_html__( 'Center Mode', 'prooty' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'no', 'options' => [ 'yes' => esc_html__( 'Yes', 'prooty' ), 'no' => esc_html__( 'No', 'prooty' ), ], 'frontend_available' => true, ] ); $this->add_control( 'autoplay', [ 'label' => esc_html__( 'Autoplay', 'prooty' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', 'options' => [ 'yes' => esc_html__( 'Yes', 'prooty' ), 'no' => esc_html__( 'No', 'prooty' ), ], 'frontend_available' => true, ] ); $this->add_control( 'autoplay_speed', [ 'label' => esc_html__( 'Autoplay Speed', 'prooty' ), 'type' => Controls_Manager::NUMBER, 'default' => 3000, 'step' => 500, 'condition' => [ 'autoplay' => 'yes', ], 'frontend_available' => true, ] ); $this->add_control( 'smartspeed', [ 'label' => esc_html__( 'Smart Speed', 'prooty' ), 'type' => Controls_Manager::NUMBER, 'default' => 500, ] ); $this->add_control( 'dot_control', [ 'label' => esc_html__( 'Show Dots', 'prooty' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'no', 'options' => [ 'yes' => esc_html__( 'Yes', 'prooty' ), 'no' => esc_html__( 'No', 'prooty' ), ], 'frontend_available' => true, ] ); $this->end_controls_section(); /************* SECTION NAME JOB. *******************/ $this->start_controls_section( 'section_general', [ 'label' => esc_html__( 'General', 'prooty' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'background_item_color', [ 'label' => esc_html__( 'Background Item', 'prooty' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info' => 'background : {{VALUE}};', ], ] ); $this->add_responsive_control( 'background_item_padding', [ 'label' => esc_html__( 'Padding', 'prooty' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'background_item_margin', [ 'label' => esc_html__( 'Margin', 'prooty' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( \Elementor\Group_Control_Box_Shadow::get_type(), [ 'name' => 'box_shadow_content', 'label' => __( 'Box Shadow', 'prooty' ), 'selector' => '{{WRAPPER}} .ova-testimonial .slide-testimonials .owl-item .client_info ', ] ); $this->add_control( 'line_bottom_heading', [ 'label' => esc_html__( 'Line Bottom', 'prooty' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before' ] ); $this->add_control( 'line_bottom_color', [ 'label' => esc_html__( 'Color', 'prooty' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .line-bottom' => 'background-color: {{VALUE}};', ], ] ); $this->add_control( 'line_bottom_active_color', [ 'label' => esc_html__( 'Color Active', 'prooty' ), 'type' => Controls_Manager::COLOR, 'description' => esc_html__( ' ( Center mode option is active )', 'prooty' ), 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .owl-item.active.center .line-bottom' => 'background-color: {{VALUE}};', ], ] ); $this->end_controls_section(); /************* SECTION avatar. *******************/ $this->start_controls_section( 'section_avatar', [ 'label' => esc_html__( 'Avatar', 'prooty' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( \Elementor\Group_Control_Border::get_type(), [ 'name' => 'border_avatar', 'label' => esc_html__( 'Border Avatar', 'prooty' ), 'selector' => '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .info .client img', ] ); $this->add_responsive_control( 'border_radius_avatar', [ 'label' => esc_html__( 'Border Radius', 'prooty' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%' ), 'selectors' => array( '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .info .client img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ), ] ); $this->add_responsive_control( 'avatar_margin', [ 'label' => esc_html__( 'Margin', 'prooty' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .info .client' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'avatar_size', [ 'label' => esc_html__( 'Size', 'prooty' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 30, 'max' => 120, 'step' => 1, ] ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .info .client img' => 'width: {{SIZE}}{{UNIT}};height: {{SIZE}}{{UNIT}}', ], ] ); $this->end_controls_section(); /************* SECTION NAME AUTHOR. *******************/ $this->start_controls_section( 'section_author_name', [ 'label' => esc_html__( 'Author Name', 'prooty' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'author_name_typography', 'selector' => '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .info .name-job .name', ] ); $this->add_control( 'author_name_color', [ 'label' => esc_html__( 'Color', 'prooty' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ ' {{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .info .name-job .name' => 'color : {{VALUE}};', ], ] ); $this->add_responsive_control( 'author_name_margin', [ 'label' => esc_html__( 'Margin', 'prooty' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .info .name-job .name' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'author_name_padding', [ 'label' => esc_html__( 'Padding', 'prooty' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .info .name-job .name' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); ############### end section author ############### /************* SECTION NAME JOB. *******************/ $this->start_controls_section( 'section_job', [ 'label' => esc_html__( 'Job', 'prooty' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'job_typography', 'selector' => '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .info .name-job .job', ] ); $this->add_control( 'job_color', [ 'label' => esc_html__( 'Color', 'prooty' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ ' {{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .info .name-job .job' => 'color : {{VALUE}};', ], ] ); $this->add_responsive_control( 'job_margin', [ 'label' => esc_html__( 'Margin', 'prooty' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .info .name-job .job' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'job_padding', [ 'label' => esc_html__( 'Padding', 'prooty' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .info .name-job .job' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); ############### end section job ############### /************* SECTION content testimonial *******************/ $this->start_controls_section( 'section_content_testimonial', [ 'label' => esc_html__( 'Content', 'prooty' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'content_testimonial_typography', 'selector' => '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info p.evaluate', ] ); $this->add_control( 'content_color', [ 'label' => esc_html__( 'Color', 'prooty' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info p.evaluate' => 'color : {{VALUE}};', ], ] ); $this->add_responsive_control( 'content_margin', [ 'label' => esc_html__( 'Margin', 'prooty' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info p.evaluate' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'content_padding', [ 'label' => esc_html__( 'Padding', 'prooty' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info p.evaluate' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); ############### stars style section ############### $this->start_controls_section( 'section_stars_style', [ 'label' => esc_html__( 'Rating Stars', 'prooty' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'icon_space', [ 'label' => esc_html__( 'Spacing', 'prooty' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 50, ], ], 'selectors' => [ 'body:not(.rtl) {{WRAPPER}} .elementor-star-rating i:not(:last-of-type)' => 'margin-right: {{SIZE}}{{UNIT}}', 'body.rtl {{WRAPPER}} .elementor-star-rating i:not(:last-of-type)' => 'margin-left: {{SIZE}}{{UNIT}}', ], ] ); $this->add_control( 'stars_color', [ 'label' => esc_html__( 'Color', 'prooty' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .owl-item .item .client_info .ova-rating .elementor-star-rating i::before' => 'color: {{VALUE}}', ], ] ); $this->add_control( 'stars_unmarked_color', [ 'label' => esc_html__( 'Unmarked Color', 'prooty' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .elementor-star-rating i' => 'color: {{VALUE}}', ], ] ); $this->end_controls_section(); // STYLE QUOTE dot $this->start_controls_section( 'section_dot_control', [ 'label' => esc_html__( 'Dot Control', 'prooty' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'dot_control' => 'yes', ], ] ); $this->add_control( 'dot_color', [ 'label' => esc_html__( 'Color', 'prooty' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .owl-dots .owl-dot span' => 'background-color : {{VALUE}};', ], ] ); $this->add_control( 'dot_color_active', [ 'label' => esc_html__( 'Color Active', 'prooty' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .owl-dots .owl-dot.active span' => 'background-color : {{VALUE}};', ], ] ); $this->add_responsive_control( 'dot_control_size', [ 'label' => esc_html__( 'Size', 'prooty' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .owl-dots .owl-dot span' => 'width: {{SIZE}}{{UNIT}}; height:{{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'dot_control_active_size', [ 'label' => esc_html__( 'Active Size', 'prooty' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 1, 'max' => 300, 'step' => 1, ] ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .owl-dots .owl-dot.active span' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->end_controls_section(); } protected function get_rating($rating) { $settings = $this->get_settings(); $rating_scale = 5; return [ $rating, $rating_scale ]; } protected function render_stars( $icon, $rating ) { $rating_data = $this->get_rating($rating); $rating = (float) $rating_data[0]; $floored_rating = floor( $rating ); $stars_html = ''; for ( $stars = 1.0; $stars <= $rating_data[1]; $stars++ ) { if ( $stars <= $floored_rating ) { $stars_html .= '<i class="elementor-star-full">' . $icon . '</i>'; } elseif ( $floored_rating + 1 === $stars && $rating !== $floored_rating ) { $stars_html .= '<i class="elementor-star-' . ( $rating - $floored_rating ) * 10 . '">' . $icon . '</i>'; } else { $stars_html .= '<i class="elementor-star-empty">' . $icon . '</i>'; } } return $stars_html; } protected function render() { $settings = $this->get_settings(); $tab_item = $settings['tab_item']; $data_options['items'] = $settings['item_number']; $data_options['slideBy'] = $settings['slides_to_scroll']; $data_options['margin'] = $settings['margin_items']; $data_options['autoplayHoverPause'] = $settings['pause_on_hover'] === 'yes' ? true : false; $data_options['loop'] = $settings['infinite'] === 'yes' ? true : false; $data_options['autoplay'] = $settings['autoplay'] === 'yes' ? true : false; $data_options['autoplayTimeout'] = $settings['autoplay_speed']; $data_options['smartSpeed'] = $settings['smartspeed']; $data_options['dots'] = $settings['dot_control'] === 'yes' ? true : false; $data_options['center'] = $settings['center_mode'] === 'yes' ? true : false; $data_options['rtl'] = is_rtl() ? true: false; ?> <section class="ova-testimonial"> <div class="slide-testimonials owl-carousel owl-theme " data-options="<?php echo esc_attr(json_encode($data_options)); ?>"> <?php if( !empty($tab_item) ) : foreach ($tab_item as $item) : ?> <div class="item"> <div class="line-bottom"></div> <div class="client_info"> <div class="info"> <div class="client"> <?php if( $item['image_author'] != '' ) { ?> <?php $alt = isset($item['name_author']) && $item['name_author'] ? $item['name_author'] : esc_html__( 'testimonial','prooty' ); ?> <img src="<?php echo esc_attr($item['image_author']['url']); ?>" alt="<?php echo esc_attr( $alt ); ?>" > <?php } ?> </div> <div class="name-job"> <!-- rating --> <?php $icon = ''; $rating_data = $this->get_rating($item['rating']); $textual_rating = $rating_data[0] . '/' . $rating_data[1]; $rating = (float) $item['rating']; $unmarked_star_style = $item['unmarked_star_style']; $star_style = $item['star_style']; if ( 'star_fontawesome' === $star_style ) { if ( 'outline' === $unmarked_star_style ) { $icon = ''; } } elseif ( 'star_unicode' === $star_style ) { $icon = '★'; if ( 'outline' === $unmarked_star_style ) { $icon = '☆'; } } $stars_element = '<div class="elementor-star-rating" title="'.$textual_rating.'">' . $this->render_stars( $icon, $item['rating'] ) . ' </div>'; if($rating != 0) : ?> <div class="ova-rating <?php echo esc_html( $star_style ); ?>"> <?php print_r ( $stars_element ); ?> </div> <?php endif; ?> <!-- end rating --> <?php if( $item['name_author'] != '' ) { ?> <h4 class="name second_font"> <?php echo esc_html($item['name_author']) ?> </h4> <?php } ?> <?php if( $item['job'] != '' ) { ?> <p class="job"> <?php echo esc_html($item['job']) ?> </p> <?php } ?> </div> </div> <?php if( $item['testimonial'] != '' ) : ?> <p class="evaluate"> <?php echo esc_html($item['testimonial']); ?> </p> <?php endif; ?> </div> </div> <?php endforeach; endif; ?> </div> </section> <?php } } $widgets_manager->register( new Prooty_Elementor_Testimonial() );