/home/vianto5/ceibaresidencial.mx/wp-content/themes/moore_old/elementor/widgets
NameSizeModeActions
apartments-masonry.php128150644editdlrm
apartments-slider.php158910644editdlrm
blog.php133660644editdlrm
box-feature.php120100644editdlrm
box-feature2.php99410644editdlrm
box-info.php84540644editdlrm
button-scrolldown.php32440644editdlrm
choice-language.php145290644editdlrm
contact-info.php122000644editdlrm
direction-slider.php100090644editdlrm
gallery-category.php110870644editdlrm
gallery-simple.php69540644editdlrm
gallery.php115840644editdlrm
header-banner.php89300644editdlrm
header-left.php64060644editdlrm
heading.php46930644editdlrm
instagram.php145030644editdlrm
logo.php81870644editdlrm
menu-canvas.php49230644editdlrm
menu-footer.php61570644editdlrm
menu-nav.php51730644editdlrm
package.php113700644editdlrm
progress.php113140644editdlrm
project-declaration.php134470644editdlrm
room-list.php188410644editdlrm
rooms-filter.php234750644editdlrm
team.php63090644editdlrm
testimonial.php177270644editdlrm
text-list.php59650644editdlrm
Edit: /home/vianto5/ceibaresidencial.mx/wp-content/themes/moore_old/elementor/widgets/testimonial.php (17727B)
start_controls_section( 'section_content', [ 'label' => esc_html__( 'Content', 'moore' ), ] ); $repeater = new \Elementor\Repeater(); $repeater->add_control( 'name_author', [ 'label' => esc_html__( 'Author Name', 'moore' ), 'type' => \Elementor\Controls_Manager::TEXT, ] ); $repeater->add_control( 'job', [ 'label' => esc_html__( 'Job', 'moore' ), 'type' => \Elementor\Controls_Manager::TEXT, ] ); $repeater->add_control( 'testimonial', [ 'label' => esc_html__( 'Testimonial ', 'moore' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'default' => esc_html__( 'Moore raises Malta’s skyline up to 33 floors in a feat of engineering direct from the imagination of Zaha Hadid Architects.', 'moore' ), ] ); $repeater->add_control( 'testimonial_description', [ 'label' => esc_html__( 'Testimonial Description', 'moore' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'default' => esc_html__( 'Eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. excepteur sint occaecat cupidatat non proident', 'moore' ), ] ); $this->add_control( 'tab_item', [ 'label' => esc_html__( 'Items Testimonial', 'moore' ), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'name_author' => esc_html__('Zaha Hadid ', 'moore'), 'job' => esc_html__('Words of architect', 'moore'), 'testimonial' => esc_html__('Moore raises Malta’s skyline up to 33 floors in a feat of engineering direct from the imagination of Zaha Hadid Architects.', 'moore'), 'testimonial_description' => esc_html__('Eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. excepteur sint occaecat cupidatat non proident', 'moore'), ], [ 'name_author' => esc_html__('Zaha Hadid ', 'moore'), 'job' => esc_html__('Words of architect', 'moore'), 'testimonial' => esc_html__('Moore raises Malta’s skyline up to 33 floors in a feat of engineering direct from the imagination of Zaha Hadid Architects.', 'moore'), 'testimonial_description' => esc_html__('Eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. excepteur sint occaecat cupidatat non proident', 'moore'), ], ], 'title_field' => '{{{ name_author }}}', ] ); $this->end_controls_section(); /***************** END SECTION CONTENT ******************/ /***************************************************************** START SECTION ADDITIONAL ******************************************************************/ $this->start_controls_section( 'section_additional_options', [ 'label' => esc_html__( 'Additional Options', 'moore' ), ] ); /*************************** VERSION 1 ***********************/ $this->add_control( 'margin_items', [ 'label' => esc_html__( 'Margin Right Items', 'moore' ), 'type' => Controls_Manager::NUMBER, 'default' => 30, ] ); $this->add_control( 'item_number', [ 'label' => esc_html__( 'Item Number', 'moore' ), 'type' => Controls_Manager::NUMBER, 'description' => esc_html__( 'Number Item', 'moore' ), 'default' => 1, ] ); $this->add_control( 'slides_to_scroll', [ 'label' => esc_html__( 'Slides to Scroll', 'moore' ), 'type' => Controls_Manager::NUMBER, 'description' => esc_html__( 'Set how many slides are scrolled per swipe.', 'moore' ), 'default' => 1, ] ); $this->add_control( 'pause_on_hover', [ 'label' => esc_html__( 'Pause on Hover', 'moore' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', 'options' => [ 'yes' => esc_html__( 'Yes', 'moore' ), 'no' => esc_html__( 'No', 'moore' ), ], 'frontend_available' => true, ] ); $this->add_control( 'infinite', [ 'label' => esc_html__( 'Infinite Loop', 'moore' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', 'options' => [ 'yes' => esc_html__( 'Yes', 'moore' ), 'no' => esc_html__( 'No', 'moore' ), ], 'frontend_available' => true, ] ); $this->add_control( 'autoplay', [ 'label' => esc_html__( 'Autoplay', 'moore' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', 'options' => [ 'yes' => esc_html__( 'Yes', 'moore' ), 'no' => esc_html__( 'No', 'moore' ), ], 'frontend_available' => true, ] ); $this->add_control( 'autoplay_speed', [ 'label' => esc_html__( 'Autoplay Speed', 'moore' ), 'type' => Controls_Manager::NUMBER, 'default' => 3000, 'step' => 500, 'condition' => [ 'autoplay' => 'yes', ], 'frontend_available' => true, ] ); $this->add_control( 'smartspeed', [ 'label' => esc_html__( 'Smart Speed', 'moore' ), 'type' => Controls_Manager::NUMBER, 'default' => 500, ] ); $this->add_control( 'dot_control', [ 'label' => esc_html__( 'Show Dots', 'moore' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'no', 'options' => [ 'yes' => esc_html__( 'Yes', 'moore' ), 'no' => esc_html__( 'No', 'moore' ), ], 'frontend_available' => true, ] ); $this->end_controls_section(); /**************************** END SECTION ADDITIONAL *********************/ /************* SECTION NAME JOB. *******************/ $this->start_controls_section( 'section_general', [ 'label' => esc_html__( 'General', 'moore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'quote_color', [ 'label' => esc_html__( 'Quote Job', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .icon-quote i:before' => 'color : {{VALUE}};', ], ] ); $this->add_control( 'dot_color', [ 'label' => esc_html__( 'Dot Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .owl-dots .owl-dot span' => 'background-color : {{VALUE}};', ], 'condition' => [ 'dot_control' => 'yes', ], ] ); $this->add_control( 'dot_active_color', [ 'label' => esc_html__( 'Dot Active Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .owl-dots .owl-dot.active span' => 'background-color : {{VALUE}};', ], 'condition' => [ 'dot_control' => 'yes', ], ] ); $this->end_controls_section(); ############### end section job ############### /************* SECTION content testimonial *******************/ $this->start_controls_section( 'section_content_testimonial', [ 'label' => esc_html__( 'Content Testimonial', 'moore' ), '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 .evaluate', ] ); $this->add_control( 'content_color', [ 'label' => esc_html__( 'Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .evaluate' => 'color : {{VALUE}};', ], ] ); $this->add_responsive_control( 'content_margin', [ 'label' => esc_html__( 'Margin', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .evaluate' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'content_padding', [ 'label' => esc_html__( 'Padding', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .evaluate' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); ############### end section content testimonial ############### /************* SECTION content testimonial description *******************/ $this->start_controls_section( 'section_content_testimonial_description', [ 'label' => esc_html__( 'Content Testimonial Description', 'moore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'content_testimonial_description_typography', 'selector' => '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .evaluate_description', ] ); $this->add_control( 'content_description_color', [ 'label' => esc_html__( 'Color', 'moore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .evaluate_description' => 'color : {{VALUE}};', ], ] ); $this->add_responsive_control( 'content_description_margin', [ 'label' => esc_html__( 'Margin', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .evaluate_description' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'content_description_padding', [ 'label' => esc_html__( 'Padding', 'moore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .ova-testimonial .slide-testimonials .client_info .evaluate_description' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); ############### end section content testimonial description ############### /************* SECTION NAME AUTHOR. *******************/ $this->start_controls_section( 'section_author_name', [ 'label' => esc_html__( 'Author Name', 'moore' ), '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 Author', 'moore' ), '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', 'moore' ), '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', 'moore' ), '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', 'moore' ), '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 Job', 'moore' ), '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', 'moore' ), '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', 'moore' ), '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 ############### } 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['rtl'] = is_rtl() ? true: false; ?>
register( new Moore_Elementor_Testimonial() );