Files
2024-11-04 20:48:19 +01:00

733 lines
29 KiB
PHP

<?php namespace Elementor;
class restly_testimonial_Widget extends Widget_Base {
public function get_name() {
return 'restly_testimonial';
}
public function get_title() {
return esc_html__( 'Restly Testimonial V1', 'restlycore' );
}
public function get_icon() {
return 'eicon-testimonial';
}
public function get_categories() {
return ['restly'];
}
protected function register_controls() {
//Content tab start
$this->start_controls_section(
'restly_testimonial_options',
[
'label' => esc_html__( 'Restly Testimonial', 'restlycore' ),
'tab' => Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'restly_testimonial_quote',
[
'label' => esc_html__( 'Quote Icon', 'restlycore' ),
'type' => \Elementor\Controls_Manager::ICONS,
]
);
$this->add_control(
'restly_testimonial_title_tag',
[
'label' => esc_html__( 'HTML Title Tag', 'restlycore' ),
'description' => esc_html__( 'Add HTML Tag For Title', 'restlycore' ),
'type' => \Elementor\Controls_Manager::SELECT,
'default' => 'h3',
'options' => [
'h1' => esc_html__( 'H1', 'restlycore' ),
'h2' => esc_html__( 'H2', 'restlycore' ),
'h3' => esc_html__( 'H3', 'restlycore' ),
'h4' => esc_html__( 'H4', 'restlycore' ),
'h5' => esc_html__( 'H5', 'restlycore' ),
'h6' => esc_html__( 'H6', 'restlycore' ),
'p' => esc_html__( 'P', 'restlycore' ),
'span' => esc_html__( 'span', 'restlycore' ),
'div' => esc_html__( 'Div', 'restlycore' ),
],
]
);
$this->add_control(
'restly_testimonial_stitle_tag',
[
'label' => esc_html__( 'Small Title Tag', 'restlycore' ),
'description' => esc_html__( 'Add HTML Tag For Title', 'restlycore' ),
'type' => \Elementor\Controls_Manager::SELECT,
'default' => 'h6',
'options' => [
'h1' => esc_html__( 'H1', 'restlycore' ),
'h2' => esc_html__( 'H2', 'restlycore' ),
'h3' => esc_html__( 'H3', 'restlycore' ),
'h4' => esc_html__( 'H4', 'restlycore' ),
'h5' => esc_html__( 'H5', 'restlycore' ),
'h6' => esc_html__( 'H6', 'restlycore' ),
'p' => esc_html__( 'P', 'restlycore' ),
'span' => esc_html__( 'span', 'restlycore' ),
'div' => esc_html__( 'Div', 'restlycore' ),
],
]
);
$repeater = new \Elementor\Repeater();
$repeater->add_control(
'restly_testimonial_img',
[
'label' => __( 'Choose Image', 'restlycore' ),
'type' => \Elementor\Controls_Manager::MEDIA,
'default' => [
'url' => \Elementor\Utils::get_placeholder_image_src(),
],
]
);
$repeater->add_control(
'restly_testimonial_title',
[
'label' => esc_html__( 'Title', 'restlycore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( 'Rodney J. Sabo', 'restlycore' ),
'placeholder' => esc_html__( 'Type your title here', 'restlycore' ),
]
);
$repeater->add_control(
'restly_testimonial_stitle',
[
'label' => esc_html__( 'Title', 'restlycore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( 'Design Lead', 'restlycore' ),
'placeholder' => esc_html__( 'Type your title here', 'restlycore' ),
]
);
$repeater->add_control(
'restly_testimonial_description',
[
'label' => esc_html__( 'Description', 'restlycore' ),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation','restlycore')
]
);
$this->add_control(
'restly_testimonials',
[
'label' => esc_html__( 'Testimonial Lists', 'restlycore' ),
'type' => \Elementor\Controls_Manager::REPEATER,
'fields' => $repeater->get_controls(),
'default' => [
[
'restly_testimonial_title' => __('Rodney J. Sabo','restlycore'),
'restly_testimonial_stitle' => __('Design Lead','restlycore'),
'restly_testimonial_description' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation','restlycore')
],
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'restly_testimonial_slide_options',
[
'label' => esc_html__( 'Testimonial Slide Options', 'restlycore' ),
'tab' => Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'restly_testimonial_slide_enable',
[
'label' => esc_html__( 'Enable Slide', 'restlycore' ),
'type' => \Elementor\Controls_Manager::SWITCHER,
'label_on' => esc_html__( 'Show', 'restlycore' ),
'label_off' => esc_html__( 'Hide', 'restlycore' ),
'return_value' => 'yes',
'default' => 'no',
]
);
$this->add_control(
'restly_testimonial_loop',
[
'label' => esc_html__( 'Enable Loop ', 'restlycore' ),
'type' => Controls_Manager::SWITCHER,
'label_on' => esc_html__( 'On', 'restlycore' ),
'label_off' => esc_html__( 'Off', 'restlycore' ),
'return_value' => 'yes',
'default' => 'no',
'condition' => [
'restly_testimonial_slide_enable' => 'yes',
],
]
);
$this->add_control(
'restly_testimonial_speed',
[
'label' => esc_html__( 'Slide Speed', 'restlycore' ),
'type' => Controls_Manager::NUMBER,
'min' => 500,
'max' => 8000,
'step' => 10,
'default' => 4000,
'condition' => array(
'restly_testimonial_slide_enable' => 'yes',
'restly_testimonial_loop' => 'yes',
),
]
);
$this->add_control(
'restly_testimonial_aloop',
[
'label' => esc_html__( 'Enable Auto Loop ', 'restlycore' ),
'type' => Controls_Manager::SWITCHER,
'label_on' => esc_html__( 'On', 'restlycore' ),
'label_off' => esc_html__( 'Off', 'restlycore' ),
'return_value' => 'yes',
'default' => 'no',
'condition' => [
'restly_testimonial_slide_enable' => 'yes',
'restly_testimonial_loop' => 'yes',
],
]
);
$this->add_control(
'restly_testimonial_aspeed',
[
'label' => esc_html__( 'Slide auto Speed', 'restlycore' ),
'type' => Controls_Manager::NUMBER,
'min' => 500,
'max' => 8000,
'step' => 50,
'default' => 3000,
'condition' => array(
'restly_testimonial_aloop' => 'yes',
'restly_testimonial_loop' => 'yes',
'restly_testimonial_slide_enable' => 'yes',
),
]
);
$this->add_control(
'restly_testimonial_dot',
[
'label' => esc_html__( 'Enable Dots ', 'restlycore' ),
'type' => Controls_Manager::SWITCHER,
'label_on' => esc_html__( 'On', 'restlycore' ),
'label_off' => esc_html__( 'Off', 'restlycore' ),
'return_value' => 'yes',
'default' => 'no',
'condition' => [
'restly_testimonial_slide_enable' => 'yes',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'restly_testimonial_box_CSS_options',
[
'label' => esc_html__( ' Box', 'restlycore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_control(
'restly_testimonial_box_CSS__align',
[
'label' => __( 'Alignment', 'restlycore' ),
'type' => \Elementor\Controls_Manager::CHOOSE,
'options' => [
'left' => [
'title' => __( 'Left', 'restlycore' ),
'icon' => 'eicon-text-align-left',
],
'center' => [
'title' => __( 'Center', 'restlycore' ),
'icon' => 'eicon-text-align-center',
],
'justify' => [
'title' => __( 'Center', 'restlycore' ),
'icon' => 'eicon-text-align-center',
],
'right' => [
'title' => __( 'Right', 'restlycore' ),
'icon' => 'eicon-text-align-right',
],
],
'default' => 'left',
'toggle' => true,
'selectors' => [
'{{WRAPPER}} .restly-testimonial-item' => 'text-align: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Background::get_type(),
[
'name' => 'restly_testimonial_box_CSS_bg',
'label' => esc_html__( 'Background', 'restlycore' ),
'types' => [ 'classic', 'gradient', 'video' ],
'selector' => '{{WRAPPER}} .restly-testimonial-item',
]
);
$this->add_group_control(
\Elementor\Group_Control_Box_Shadow::get_type(),
[
'name' => 'restly_testimonial_box_CSS_shadwo',
'label' => esc_html__( 'Box Shadow', 'restlycore' ),
'selector' => '{{WRAPPER}} .restly-testimonial-item',
]
);
$this->add_group_control(
\Elementor\Group_Control_Border::get_type(),
[
'name' => 'restly_testimonial_box_CSS_border',
'label' => esc_html__( 'Border', 'restlycore' ),
'selector' => '{{WRAPPER}} .restly-testimonial-item',
]
);
$this->add_responsive_control(
'restly_testimonial_box_CSS_radius',
[
'label' => esc_html__( 'Border Radius', 'restlycore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px', '%' ],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
'%' => [
'min' => 0,
'max' => 100,
],
],
'default' => [
'unit' => 'px',
'size' => 5,
],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-item' => 'border-radius: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_testimonial_box_CSS_margin',
[
'label' => esc_html__( 'Margin', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-item' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_testimonial_box_CSS_padding',
[
'label' => esc_html__( 'Padding', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-item' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'restly_testimonial_image_CSS_options',
[
'label' => esc_html__( 'Image', 'restlycore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_group_control(
\Elementor\Group_Control_Box_Shadow::get_type(),
[
'name' => 'restly_testimonial_image_CSS_shadow',
'label' => esc_html__( 'Box Shadow', 'restlycore' ),
'selector' => '{{WRAPPER}} .restly-testimonial-img img',
]
);
$this->add_responsive_control(
'restly_testimonial_image_CSS_radius',
[
'label' => esc_html__( 'Border Radius', 'restlycore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px', '%' ],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
'%' => [
'min' => 0,
'max' => 100,
],
],
'default' => [
'unit' => '%',
'size' => 100,
],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-img img' => 'border-radius: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_testimonial_image_CSS_margin',
[
'label' => esc_html__( 'Margin', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-img' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_testimonial_image_CSS_padding',
[
'label' => esc_html__( 'Padding', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-img' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'restly_testimonial_content_CSS_options',
[
'label' => esc_html__( 'Content', 'restlycore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->start_controls_tabs(
'restly_testimonial_content_tabs'
);
$this->start_controls_tab(
'restly_testimonial_content_tabs_title',
[
'label' => __( 'Title', 'restlycore' ),
]
);
$this->add_responsive_control(
'restly_testimonial_content_title_color',
[
'label' => esc_html__( 'Color', 'restlycore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .restly-testimonial-title-subtitle .testimonial-title' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'restly_testimonial_content_title_typo',
'label' => esc_html__( 'Typography', 'restlycore' ),
'selector' => '{{WRAPPER}} .restly-testimonial-title-subtitle .testimonial-title',
]
);
$this->add_responsive_control(
'restly_testimonial_content_title_margin',
[
'label' => esc_html__( 'Margin', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-title-subtitle .testimonial-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_testimonial_content_title_padding',
[
'label' => esc_html__( 'Padding', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-title-subtitle .testimonial-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_tab();
$this->start_controls_tab(
'restly_testimonial_content_tabs_subtitle',
[
'label' => __( 'Sub Title', 'restlycore' ),
]
);
$this->add_responsive_control(
'restly_testimonial_content_stitle_color',
[
'label' => esc_html__( 'Color', 'restlycore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .restly-testimonial-title-subtitle .testimonial-stitle' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'restly_testimonial_content_stitle_typo',
'label' => esc_html__( 'Typography', 'restlycore' ),
'selector' => '{{WRAPPER}} .restly-testimonial-title-subtitle .testimonial-stitle',
]
);
$this->add_responsive_control(
'restly_testimonial_content_stitle_margin',
[
'label' => esc_html__( 'Margin', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-title-subtitle .testimonial-stitle' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_testimonial_content_stitle_padding',
[
'label' => esc_html__( 'Padding', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-title-subtitle .testimonial-stitle' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_tab();
$this->start_controls_tab(
'restly_testimonial_content_tabs_dec',
[
'label' => __( 'Description', 'restlycore' ),
]
);
$this->add_responsive_control(
'restly_testimonial_content_dec_color',
[
'label' => esc_html__( 'Color', 'restlycore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .restly-testimonial-dec P' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'restly_testimonial_content_dec_typo',
'label' => esc_html__( 'Typography', 'restlycore' ),
'selector' => '{{WRAPPER}} .restly-testimonial-dec P',
]
);
$this->add_responsive_control(
'restly_testimonial_content_dec_margin',
[
'label' => esc_html__( 'Margin', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-dec P' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_testimonial_content_dec_padding',
[
'label' => esc_html__( 'Padding', 'restlycore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-dec P' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_tab();
$this->end_controls_tabs();
$this->end_controls_section();
$this->start_controls_section(
'restly_testimonial_quote_CSS_options',
[
'label' => esc_html__( 'Icon', 'restlycore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'restly_testimonial_quote_CSS_color',
[
'label' => esc_html__( 'Color', 'restlycore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .restly-testimonial-quote i' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'restly_testimonial_quote_CSS_typo',
'label' => esc_html__( 'Typography', 'restlycore' ),
'selector' => '{{WRAPPER}} .restly-testimonial-quote i',
]
);
$this->add_responsive_control(
'restly_testimonial_quote_CSS_top',
[
'label' => esc_html__( 'Top To Bottom', 'restlycore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px' ],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-quote' => 'top: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'restly_testimonial_quote_CSS_left',
[
'label' => esc_html__( 'Right To Left', 'restlycore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px' ],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'step' => 1,
]
],
'selectors' => [
'{{WRAPPER}} .restly-testimonial-quote' => 'right: {{SIZE}}{{UNIT}};',
],
]
);
$this->end_controls_section();
}
//Render
protected function render() {
$settings = $this->get_settings_for_display();
$dynamic_id = rand(1241, 3256);
if($settings['restly_testimonial_slide_enable'] == 'yes'){
$restly_rowClass = 'testi-slide-row';
$restly_tClass = 'restly-single-testimonial';
if($settings['restly_testimonial_dot'] == 'yes' ){
$dots = 'true';
}else{
$dots = 'false';
}
if($settings['restly_testimonial_aloop'] == 'yes' ){
$aloop = 'true';
}else{
$aloop = 'false';
}
if($settings['restly_testimonial_loop'] == 'yes' ){
$loop = 'true';
}else{
$loop = 'false';
}
if(is_rtl()){
$rtl = 'true';
}else{
$rtl = 'false';
}
echo '
<script>
jQuery(document).ready(function($) {
"use strict";
$("#testimonial-slide-'.esc_attr($dynamic_id).'").slick({
slidesToShow: 2,
slidesToScroll: 1,
arrows: false,
rtl: '.esc_attr($rtl).',
dots: '.esc_attr($dots).',
infinite: '.esc_attr($loop).',
autoplay: '.esc_attr($aloop).',';
if($aloop == 'true'){
echo 'speed: '.esc_attr($settings['restly_testimonial_speed']).',';
}
if($aloop == 'true'){
echo 'autoplaySpeed: '.esc_attr($settings['restly_testimonial_aspeed']).',';
}
echo '
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 2,
slidesToScroll: 3,
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
]
});
});
</script>';
}else{
$restly_rowClass = 'row';
$restly_tClass = 'col-12 col-sm-6 col-md-6 col-md-6 signle-item';
}
ob_start();
?>
<div class="restly-testimonial-wrapper">
<div class="restly-testimonial-inner">
<div class="restly-testimonial-items <?php echo esc_attr($restly_rowClass); ?>" id="testimonial-slide-<?php echo esc_attr($dynamic_id); ?>">
<?php foreach($settings['restly_testimonials'] as $restly_testi ) : ?>
<div class="<?php echo esc_attr($restly_tClass); ?>">
<div class="restly-testimonial-item">
<div class="restly-testimonial-top">
<div class="restly-testimonial-left">
<div class="restly-testimonial-img">
<?php echo wp_get_attachment_image( $restly_testi['restly_testimonial_img']['id'], 'thumbnail' ); ?>
</div>
<div class="restly-testimonial-title-subtitle">
<<?php echo esc_attr($settings['restly_testimonial_title_tag']); ?> class="testimonial-title"><?php echo wp_kses($restly_testi['restly_testimonial_title'],'restly_allowed_html'); ?></<?php echo esc_attr($settings['restly_testimonial_title_tag']); ?>>
<<?php echo esc_attr($settings['restly_testimonial_stitle_tag']); ?> class="testimonial-stitle"><?php echo wp_kses($restly_testi['restly_testimonial_stitle'],'restly_allowed_html'); ?></<?php echo esc_attr($settings['restly_testimonial_stitle_tag']); ?>>
</div>
</div>
<div class="restly-testimonial-quote">
<i class="<?php echo esc_attr($settings['restly_testimonial_quote']['value']); ?>"></i>
</div>
</div>
<div class="restly-testimonial-dec">
<p><?php echo wp_kses($restly_testi['restly_testimonial_description'],'restly_allowed_html'); ?></p>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
<?php
echo ob_get_clean();
}
}
Plugin::instance()->widgets_manager->register( new restly_testimonial_Widget );