Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
public_html
/
wp-content
/
plugins
/
profundcore
/
addons
/
widgets
/
Editing: testimonial.php
<?php namespace Elementor; if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly class profund_Testimonial_Widget extends Widget_Base { public function get_name() { return 'profund-testimonial-addons'; } public function get_title() { return __( 'Testimonial', 'profundcore' ); } public function get_icon() { return 'eicon-testimonial-carousel'; } public function get_categories() { return [ 'profund-addons' ]; } public function get_script_depends() { return [ 'slick', 'lity', 'el-widget-active', ]; } public function get_style_depends() { return [ 'lity' ]; } protected function register_controls() { $this->start_controls_section( 'profund_testimonial_content_section', [ 'label' => __( 'Testimonial', 'profundcore' ), ] ); $this->add_control( 'slider_on', [ 'label' => esc_html__( 'Slider', 'profundcore' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'yes', 'separator'=>'before', ] ); $this->add_control( 'quote_on', [ 'label' => esc_html__( 'Show Quote?', 'profundcore' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'no', 'separator'=>'before', ] ); $this->add_control( 'quote_icon', [ 'label' =>esc_html__('Quote Icon','profundcore'), 'type'=>Controls_Manager::ICON, 'default' => 'fa-quote-right', 'condition' => [ 'quote_on' => 'yes', ], 'separator'=>'after', ] ); $repeater = new Repeater(); $repeater->add_control( 'client_poster', [ 'label' => __( 'Poster', 'profundcore' ), 'type' => Controls_Manager::MEDIA, ] ); $repeater->add_group_control( Group_Control_Image_Size::get_type(), [ 'name' => 'client_poster_imgsize', 'default' => 'large', 'separator' => 'none', ] ); $repeater->add_control( 'video_url', [ 'label' => __( 'Video Link', 'profundcore' ), 'type' => Controls_Manager::TEXT, 'placeholder' => __( 'https://www.youtube.com/watch?v=bfAzi6D5FpM', 'profundcore' ), ] ); $repeater->add_control( 'client_say', [ 'label' => __( 'Client Say', 'profundcore' ), 'type' => Controls_Manager::WYSIWYG, 'default' => __('Lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore et dolore Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.','profundcore'), ] ); $repeater->add_control( 'client_name', [ 'label' => __( 'Name', 'profundcore' ), 'type' => Controls_Manager::TEXT, 'default' => __('Carolina Monntoya','profundcore'), ] ); $repeater->add_control( 'client_designation', [ 'label' => __( 'Designation', 'profundcore' ), 'type' => Controls_Manager::TEXT, 'default' => __('Managing Director','profundcore'), ] ); $repeater->add_control( 'client_image', [ 'label' => __( 'Image', 'profundcore' ), 'type' => Controls_Manager::MEDIA, ] ); $repeater->add_group_control( Group_Control_Image_Size::get_type(), [ 'name' => 'client_imagesize', 'default' => 'large', 'separator' => 'none', ] ); $this->add_control( 'profund_testimonial_list', [ 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'client_name' => __('Carolina Monntoya','profundcore'), 'client_designation' => __( 'founder, uithemes','profundcore' ), 'client_say' => __( 'Lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore et dolore Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'profundcore' ), ], [ 'client_name' => __('Peter Rose','profundcore'), 'client_designation' => __( 'Manager','profundcore' ), 'client_say' => __( 'Lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore et dolore Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'profundcore' ), ], [ 'client_name' => __('Gerald Gilbert','profundcore'), 'client_designation' => __( 'Developer','profundcore' ), 'client_say' => __( 'Lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore et dolore Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'profundcore' ), ], ], 'title_field' => '{{{ client_name }}}', ] ); $this->end_controls_section(); // Slider setting $this->start_controls_section( 'testimonial-slider-option', [ 'label' => esc_html__( 'Slider Option', 'profundcore' ), 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'slitems', [ 'label' => esc_html__( 'Slider Items', 'profundcore' ), 'type' => Controls_Manager::NUMBER, 'min' => 1, 'max' => 10, 'step' => 1, 'default' => 1, 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'slarrows', [ 'label' => esc_html__( 'Slider Arrow', 'profundcore' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'yes', 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'slprevicon', [ 'label' => __( 'Previous icon', 'profundcore' ), 'type' => Controls_Manager::ICON, 'default' => 'fa fa-angle-left', 'condition' => [ 'slider_on' => 'yes', 'slarrows' => 'yes', ] ] ); $this->add_control( 'slnexticon', [ 'label' => __( 'Next icon', 'profundcore' ), 'type' => Controls_Manager::ICON, 'default' => 'fa fa-angle-right', 'condition' => [ 'slider_on' => 'yes', 'slarrows' => 'yes', ] ] ); $this->add_control( 'sldots', [ 'label' => esc_html__( 'Slider dots', 'profundcore' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'no', 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'slpause_on_hover', [ 'type' => Controls_Manager::SWITCHER, 'label_off' => __('No', 'profundcore'), 'label_on' => __('Yes', 'profundcore'), 'return_value' => 'yes', 'default' => 'yes', 'label' => __('Pause on Hover?', 'profundcore'), 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'slcentermode', [ 'label' => esc_html__( 'Center Mode', 'profundcore' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'no', 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'slcenterpadding', [ 'label' => esc_html__( 'Center padding', 'profundcore' ), 'type' => Controls_Manager::NUMBER, 'min' => 0, 'max' => 500, 'step' => 1, 'default' => 50, 'condition' => [ 'slider_on' => 'yes', 'slcentermode' => 'yes', ] ] ); $this->add_control( 'slautolay', [ 'label' => esc_html__( 'Slider auto play', 'profundcore' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'separator' => 'before', 'default' => 'no', 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'slautoplay_speed', [ 'label' => __('Autoplay speed', 'profundcore'), 'type' => Controls_Manager::NUMBER, 'default' => 3000, 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'slanimation_speed', [ 'label' => __('Autoplay animation speed', 'profundcore'), 'type' => Controls_Manager::NUMBER, 'default' => 300, 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'slscroll_columns', [ 'label' => __('Slider item to scroll', 'profundcore'), 'type' => Controls_Manager::NUMBER, 'min' => 1, 'max' => 10, 'step' => 1, 'default' => 1, 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'heading_tablet', [ 'label' => __( 'Tablet', 'profundcore' ), 'type' => Controls_Manager::HEADING, 'separator' => 'after', 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'sltablet_display_columns', [ 'label' => __('Slider Items', 'profundcore'), 'type' => Controls_Manager::NUMBER, 'min' => 1, 'max' => 8, 'step' => 1, 'default' => 1, 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'sltablet_scroll_columns', [ 'label' => __('Slider item to scroll', 'profundcore'), 'type' => Controls_Manager::NUMBER, 'min' => 1, 'max' => 8, 'step' => 1, 'default' => 1, 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'sltablet_width', [ 'label' => __('Tablet Resolution', 'profundcore'), 'description' => __('The resolution to tablet.', 'profundcore'), 'type' => Controls_Manager::NUMBER, 'default' => 750, 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'heading_mobile', [ 'label' => __( 'Mobile Phone', 'profundcore' ), 'type' => Controls_Manager::HEADING, 'separator' => 'after', 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'slmobile_display_columns', [ 'label' => __('Slider Items', 'profundcore'), 'type' => Controls_Manager::NUMBER, 'min' => 1, 'max' => 4, 'step' => 1, 'default' => 1, 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'slmobile_scroll_columns', [ 'label' => __('Slider item to scroll', 'profundcore'), 'type' => Controls_Manager::NUMBER, 'min' => 1, 'max' => 4, 'step' => 1, 'default' => 1, 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->add_control( 'slmobile_width', [ 'label' => __('Mobile Resolution', 'profundcore'), 'description' => __('The resolution to mobile.', 'profundcore'), 'type' => Controls_Manager::NUMBER, 'default' => 480, 'condition' => [ 'slider_on' => 'yes', ] ] ); $this->end_controls_section(); // Slider Option end // Style Testimonial area tab section $this->start_controls_section( 'profund_testimonial_style_area', [ 'label' => __( 'Area Style', 'profundcore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'profund_testimonial_section_margin', [ 'label' => __( 'Margin', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial-area' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->add_responsive_control( 'profund_testimonial_section_padding', [ 'label' => __( 'Padding', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial-area' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'profund_testimonial_section_bg', 'label' => __( 'Background', 'profundcore' ), 'default' => '#ffffff', 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .profund-testimonial-area', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'profund_testimonial_section_border', 'label' => __( 'Border', 'profundcore' ), 'selector' => '{{WRAPPER}} .profund-testimonial-area', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'profund_testimonial_section_shadow', 'label' => __( 'Box Shadow', 'profundcore' ), 'selector' => '{{WRAPPER}} .profund-testimonial-area', ] ); $this->add_control( 'profund_testimonial_section_width', [ 'label' => __( 'Width', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 9999, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial-area' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'profund_testimonial_section_height', [ 'label' => __( 'Height', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 9999, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial-area' => 'height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'profund_testimonial_section_border_radius', [ 'label' => esc_html__( 'Border Radius', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .profund-testimonial-area' => 'border-radius: {{TOP}}px {{RIGHT}}px {{BOTTOM}}px {{LEFT}}px;', ], ] ); $this->end_controls_section(); // Service Style tab section $this->start_controls_section( 'testimonial_column_style_section', [ 'label' => __( 'Column Style', 'profundcore' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'slider_on!' => 'yes', ] ] ); $this->add_responsive_control( 'testimonial_column_margin', [ 'label' => __( 'Margin', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial-area.testimonial-grid .testimonial-column' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->add_responsive_control( 'testimonial_column_padding', [ 'label' => __( 'Padding', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial-area.testimonial-grid .testimonial-column' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->add_responsive_control( 'testimonial_column_width', [ 'label' => __( 'Width', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 1000, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ] ], 'default' => [ 'unit' => '%', 'size' => 50, ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial-area.testimonial-grid .testimonial-column' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->end_controls_section(); // Style Testimonial area tab section $this->start_controls_section( 'profund_testimonial_box_area', [ 'label' => __( 'Box Style', 'profundcore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'profund_testimonial_box_alignment', [ 'label' => __( 'Alignment', 'profundcore' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'profundcore' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => __( 'Center', 'profundcore' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => __( 'Right', 'profundcore' ), 'icon' => 'fa fa-align-right', ], 'justify' => [ 'title' => __( 'Justified', 'profundcore' ), 'icon' => 'fa fa-align-justify', ], ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial' => 'text-align: {{VALUE}};' ], 'default' => 'left', 'separator' =>'before', ] ); $this->add_responsive_control( 'profund_testimonial_box_margin', [ 'label' => __( 'Margin', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->add_responsive_control( 'profund_testimonial_box_padding', [ 'label' => __( 'Padding', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'profund_testimonial_box_bg', 'label' => __( 'Background', 'profundcore' ), 'default' => '#ffffff', 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .profund-testimonial', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'profund_testimonial_box_border', 'label' => __( 'Border', 'profundcore' ), 'selector' => '{{WRAPPER}} .profund-testimonial', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'profund_testimonial_box_shadow', 'label' => __( 'Box Shadow', 'profundcore' ), 'selector' => '{{WRAPPER}} .profund-testimonial', ] ); $this->add_responsive_control( 'profund_testimonial_box_border_radius', [ 'label' => esc_html__( 'Border Radius', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .profund-testimonial' => 'border-radius: {{TOP}}px {{RIGHT}}px {{BOTTOM}}px {{LEFT}}px;', ], ] ); $this->end_controls_section(); // Style Testimonial area tab section $this->start_controls_section( 'test_content_area', [ 'label' => __( 'Content Area', 'profundcore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'tst_content_area_width', [ 'label' => __( 'Width', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 200, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .main-content' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'tst_content_area_height', [ 'label' => __( 'Height', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 200, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .main-content' => 'height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'tst_content_area_margin', [ 'label' => __( 'Margin', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .main-content' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->add_responsive_control( 'tst_content_area_padding', [ 'label' => __( 'Padding', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .main-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->end_controls_section(); $this->start_controls_section( 'profund_testimonial_quote_style', [ 'label' => __( 'Quote', 'profundcore' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' =>[ 'quote_on' => 'yes' ], ] ); $this->add_responsive_control( 'profund_testimonial_quote_margin', [ 'label' => __( 'Margin', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .quote-icon' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '30', 'left' => '0', 'isLinked' => false ], 'separator' =>'before', ] ); $this->add_responsive_control( 'profund_testimonial_quote_padding', [ 'label' => __( 'Padding', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .quote-icon' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->add_control( 'profund_testimonial_quote_size', [ 'label' => __( 'Icon Size', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, ], ], 'default' => [ 'size' => 14, ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .quote-icon' => 'font-size: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'profund_testimonial_quote_color', [ 'label' => __( 'Color', 'profundcore' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .profund-testimonial .quote-icon' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'profund_testimonial_quote_bg', 'label' => __( 'Background', 'profundcore' ), 'default' => '#55C882', 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .profund-testimonial .quote-icon', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'profund_testimonial_quote_shadow', 'label' => __( 'Box Shadow', 'profundcore' ), 'selector' => '{{WRAPPER}} .profund-testimonial .quote-icon', ] ); $this->add_control( 'profund_testimonial_quote_width', [ 'label' => __( 'Width', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 200, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'default' => [ 'unit' => 'px', 'size' => 56, ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .quote-icon' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'profund_testimonial_quote_height', [ 'label' => __( 'Height', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 9999, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'default' => [ 'unit' => 'px', 'size' => 56, ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .quote-icon' => 'height: {{SIZE}}{{UNIT}};', '{{WRAPPER}} .profund-testimonial .quote-icon' => 'line-height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'profund_testimonial_quote_border', 'label' => __( 'Border', 'profundcore' ), 'selector' => '{{WRAPPER}} .profund-testimonial .quote-icon', ] ); $this->add_responsive_control( 'profund_testimonial_quote_border_radius', [ 'label' => esc_html__( 'Border Radius', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'default' => [ 'top' => '100', 'right' => '100', 'bottom' => '100', 'left' => '100', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .quote-icon' => 'border-radius: {{TOP}}px {{RIGHT}}px {{BOTTOM}}px {{LEFT}}px;', ], ] ); $this->end_controls_section(); // Style Testimonial image style end // Style Testimonial image style start $this->start_controls_section( 'profund_testimonial_poster_style', [ 'label' => __( 'Poster', 'profundcore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'poster_floting', [ 'label' => __( 'Float Poster', 'profundcore' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'profundcore' ), 'icon' => 'fa fa-align-left', ], 'none' => [ 'title' => __( 'None', 'profundcore' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => __( 'Right', 'profundcore' ), 'icon' => 'fa fa-align-right', ], ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .client_poster' => 'float: {{VALUE}};', ], 'default' => 'left', 'separator' =>'before', ] ); $this->add_responsive_control( 'profund_testimonial_poster_margin', [ 'label' => __( 'Margin', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '15', 'bottom' => '0', 'left' => '0', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .client_poster' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->add_responsive_control( 'profund_testimonial_poster_padding', [ 'label' => __( 'Padding', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .client_poster' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'profund_testimonial_poster_shadow', 'label' => __( 'Box Shadow', 'profundcore' ), 'selector' => '{{WRAPPER}} .profund-testimonial .client_poster', ] ); $this->add_responsive_control( 'profund_testimonial_poster_width', [ 'label' => __( 'Width', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'default' => [ 'unit' => '%', 'size' => 40, ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .client_poster' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'profund_testimonial_poster_height', [ 'label' => __( 'Height', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .client_poster' => 'height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'profund_testimonial_poster_border', 'label' => __( 'Border', 'profundcore' ), 'selector' => '{{WRAPPER}} .profund-testimonial .client_poster', ] ); $this->add_responsive_control( 'profund_testimonial_poster_border_radius', [ 'label' => esc_html__( 'Border Radius', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .profund-testimonial .client_poster' => 'border-radius: {{TOP}}px {{RIGHT}}px {{BOTTOM}}px {{LEFT}}px; overflow: hidden;', ], 'default' => [ 'top' => '3', 'right' => '3', 'bottom' => '3', 'left' => '3', 'isLinked' => false, 'unit' => '%', ], ] ); $this->end_controls_section(); // Style Testimonial image style end $this->start_controls_section( 'video_button_style_section', [ 'label' => __( 'Play Button', 'profundcore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->start_controls_tabs( 'tabs_video_button_style' ); $this->start_controls_tab( 'tab_button_normal', [ 'label' => __( 'Normal', 'profundcore' ), ] ); $this->add_control( 'button_text_color', [ 'label' => __( 'Text Color', 'profundcore' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .profund-testimonial .client_poster .video-button' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'background_color', 'label' => __( 'Background', 'profundcore' ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .profund-testimonial .client_poster .video-button', ] ); $this->add_responsive_control( 'button_padding', [ 'label' => __( 'Padding', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0', 'isLinked' => false ], 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .client_poster .video-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->add_responsive_control( 'button_width', [ 'label' => __( 'Width', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}}, {{WRAPPER}} .profund-testimonial .client_poster .video-button' => 'width: {{SIZE}}{{UNIT}};' ], ] ); $this->add_responsive_control( 'button_height', [ 'label' => __( 'Height', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .client_poster .video-button' => 'height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'button_border', 'selector' => '{{WRAPPER}} .profund-testimonial .client_poster .video-button', ] ); $this->add_control( 'button_radius', [ 'label' => __( 'Border Radius', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%' ], 'default' => [ 'top' => '100', 'right' => '100', 'bottom' => '100', 'left' => '100', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .client_poster .video-button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'button_box_shadow', 'selector' => '{{WRAPPER}} .profund-testimonial .client_poster .video-button', ] ); $this->end_controls_tab(); $this->start_controls_tab( 'tab_button_hover', [ 'label' => __( 'Hover', 'profundcore' ), ] ); $this->add_control( 'button_hover_color', [ 'label' => __( 'Color', 'profundcore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .profund-testimonial .client_poster .video-button:hover' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'hover_background', 'label' => __( 'Hover Background', 'profundcore' ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .profund-testimonial .client_poster .video-button:hover', ] ); $this->add_control( 'button_hover_border_color', [ 'label' => __( 'Border Color', 'profundcore' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .profund-testimonial .client_poster .video-button:hover' => 'border-color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'button_hover_box_shadow', 'selector' => '{{WRAPPER}} .profund-testimonial .client_poster .video-button:hover', ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'waves_background_color', 'label' => __( 'Wave Color', 'profundcore' ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .waves-block .waves', ] ); $this->end_controls_section(); // Style Testimonial designation style start $this->start_controls_section( 'profund_testimonial_clientsay_style', [ 'label' => __( 'Client say', 'profundcore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'profund_testimonial_clientsay_color', [ 'label' => __( 'Color', 'profundcore' ), 'type' => Controls_Manager::COLOR, 'default' => '#151D41', 'selectors' => [ '{{WRAPPER}} .profund-testimonial .content' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'profund_testimonial_clientsay_typography', 'selector' => '{{WRAPPER}} .profund-testimonial .content', ] ); $this->add_responsive_control( 'profund_testimonial_clientsay_margin', [ 'label' => __( 'Margin', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .content' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '30', 'left' => '0', 'isLinked' => false ], 'separator' =>'before', ] ); $this->add_responsive_control( 'profund_testimonial_clientsay_padding', [ 'label' => __( 'Padding', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], 'separator' =>'before', ] ); $this->end_controls_section(); // Style Testimonial designation style end // Style Testimonial name style start $this->start_controls_section( 'profund_testimonial_name_style', [ 'label' => __( 'Name', 'profundcore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'profund_testimonial_name_color', [ 'label' => __( 'Color', 'profundcore' ), 'type' => Controls_Manager::COLOR, 'default' => '#151D41', 'selectors' => [ '{{WRAPPER}} .profund-testimonial .header .name' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'profund_testimonial_name_typography', 'selector' => '{{WRAPPER}} .profund-testimonial .header .name', ] ); $this->add_responsive_control( 'profund_testimonial_name_margin', [ 'label' => __( 'Margin', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '5', 'left' => '0', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .header .name' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], 'separator' =>'before', ] ); $this->add_responsive_control( 'profund_testimonial_name_padding', [ 'label' => __( 'Padding', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .header .name' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->end_controls_section(); // Style Testimonial name style end // Style Testimonial name style start $this->start_controls_section( 'profund_testimonial_designation_style', [ 'label' => __( 'Designation', 'profundcore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'profund_testimonial_designation_color', [ 'label' => __( 'Color', 'profundcore' ), 'type' => Controls_Manager::COLOR, 'default' => 'rgba(21,29,65,0.6)', 'selectors' => [ '{{WRAPPER}} .profund-testimonial .header .designation' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'profund_testimonial_designation_typography', 'selector' => '{{WRAPPER}} .profund-testimonial .header .designation', ] ); $this->add_responsive_control( 'profund_testimonial_designation_margin', [ 'label' => __( 'Margin', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .header .designation' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ], 'separator' =>'before', ] ); $this->add_responsive_control( 'profund_testimonial_designation_padding', [ 'label' => __( 'Padding', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .header .designation' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->end_controls_section(); // Style Testimonial name style end // Style Testimonial image style start $this->start_controls_section( 'profund_testimonial_image_style', [ 'label' => __( 'Image', 'profundcore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'image_floting', [ 'label' => __( 'Float Icon', 'profundcore' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'profundcore' ), 'icon' => 'fa fa-align-left', ], 'none' => [ 'title' => __( 'None', 'profundcore' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => __( 'Right', 'profundcore' ), 'icon' => 'fa fa-align-right', ], ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .header .photo' => 'float: {{VALUE}};', ], 'default' => 'left', 'separator' =>'before', ] ); $this->add_responsive_control( 'profund_testimonial_image_margin', [ 'label' => __( 'Margin', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '15', 'bottom' => '0', 'left' => '0', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .header .photo' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->add_responsive_control( 'profund_testimonial_image_padding', [ 'label' => __( 'Padding', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .header .photo' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'profund_testimonial_image_bg', 'label' => __( 'Background', 'profundcore' ), 'default' => '#ffffff', 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .profund-testimonial .header .photo', ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'profund_testimonial_image_shadow', 'label' => __( 'Box Shadow', 'profundcore' ), 'selector' => '{{WRAPPER}} .profund-testimonial .header .photo', ] ); $this->add_control( 'profund_testimonial_image_width', [ 'label' => __( 'Width', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'default' => [ 'unit' => 'px', 'size' => 48, ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .header .photo' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'profund_testimonial_image_height', [ 'label' => __( 'Height', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'default' => [ 'unit' => 'px', 'size' => 48, ], 'selectors' => [ '{{WRAPPER}} .profund-testimonial .header .photo' => 'height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'profund_testimonial_image_border', 'label' => __( 'Border', 'profundcore' ), 'selector' => '{{WRAPPER}} .profund-testimonial .header .photo', ] ); $this->add_responsive_control( 'profund_testimonial_image_border_radius', [ 'label' => esc_html__( 'Border Radius', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .profund-testimonial .header .photo' => 'border-radius: {{TOP}}px {{RIGHT}}px {{BOTTOM}}px {{LEFT}}px;', ], 'default' => [ 'top' => '100', 'right' => '100', 'bottom' => '100', 'left' => '100', 'isLinked' => false, 'unit' => '%', ], ] ); $this->end_controls_section(); // Style Testimonial image style end // Style Slider arrow style start $this->start_controls_section( 'slider_arrow_style', [ 'label' => __( 'Arrow', 'profundcore' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' =>[ 'slider_on' => 'yes', 'slarrows' => 'yes', ], ] ); $this->start_controls_tabs( 'slider_arrow_style_tabs' ); // Normal tab Start $this->start_controls_tab( 'slider_arrow_style_normal_tab', [ 'label' => __( 'Normal', 'profundcore' ), ] ); $this->add_control( 'slider_arrow_color', [ 'label' => __( 'Color', 'profundcore' ), 'type' => Controls_Manager::COLOR, 'default' => '#0a0c19', 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow' => 'color: {{VALUE}};', ], ] ); $this->add_responsive_control( 'slider_arrow_gap', [ 'label' => __( 'Arrow Gap', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => -100, 'max' => 100, 'step' => 1, ] ], 'default' => [ 'unit' => 'px', 'size' => 30, ], 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow.slick-prev' => 'left: {{SIZE}}{{UNIT}};', '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow.slick-next' => 'right: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'slider_arrow_fontsize', [ 'label' => __( 'Font Size', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'default' => [ 'unit' => 'px', 'size' => 16, ], 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow' => 'font-size: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'slider_arrow_background', 'label' => __( 'Background', 'profundcore' ), 'default' => '#ffffff', 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'slider_arrow_border', 'label' => __( 'Border', 'profundcore' ), 'selector' => '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow', ] ); $this->add_responsive_control( 'slider_border_radius', [ 'label' => esc_html__( 'Border Radius', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow' => 'border-radius: {{TOP}}px {{RIGHT}}px {{BOTTOM}}px {{LEFT}}px;', ], ] ); $this->add_responsive_control( 'slider_arrow_height', [ 'label' => __( 'Height', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 1000, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'default' => [ 'unit' => 'px', 'size' => 70, ], 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow' => 'height: {{SIZE}}{{UNIT}}; line-height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'slider_arrow_width', [ 'label' => __( 'Width', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 1000, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'default' => [ 'unit' => 'px', 'size' => 70, ], 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'slider_arrow_padding', [ 'label' => __( 'Padding', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' =>'before', ] ); $this->end_controls_tab(); // Normal tab end // Hover tab Start $this->start_controls_tab( 'slider_arrow_style_hover_tab', [ 'label' => __( 'Hover', 'profundcore' ), ] ); $this->add_control( 'slider_arrow_hover_color', [ 'label' => __( 'Color', 'profundcore' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow:hover' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'slider_arrow_hover_background', 'label' => __( 'Background', 'profundcore' ), 'types' => [ 'classic', 'gradient' ], 'default' => '#ff3d46', 'selector' => '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow:hover', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'slider_arrow_hover_border', 'label' => __( 'Border', 'profundcore' ), 'selector' => '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow:hover', ] ); $this->add_responsive_control( 'slider_arrow_hover_border_radius', [ 'label' => esc_html__( 'Border Radius', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-arrow:hover' => 'border-radius: {{TOP}}px {{RIGHT}}px {{BOTTOM}}px {{LEFT}}px;', ], ] ); $this->end_controls_tab(); // Hover tab end $this->end_controls_tabs(); $this->end_controls_section(); // Style Slider arrow style end // Style Pagination button tab section $this->start_controls_section( 'post_slider_pagination_style_section', [ 'label' => __( 'Pagination', 'profundcore' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition'=>[ 'slider_on' => 'yes', 'sldots'=>'yes', ] ] ); $this->start_controls_tabs('pagination_style_tabs'); $this->add_responsive_control( 'pagination_alignment', [ 'label' => __( 'Alignment', 'profundcore' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'profundcore' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => __( 'Center', 'profundcore' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => __( 'Right', 'profundcore' ), 'icon' => 'fa fa-align-right', ], ], 'selectors' => [ '{{WRAPPER}} .slick-dots' => 'text-align: {{VALUE}};' ], 'default' => 'center', 'separator' =>'before', ] ); $this->start_controls_tab( 'pagination_style_normal_tab', [ 'label' => __( 'Normal', 'profundcore' ), ] ); $this->add_responsive_control( 'slider_pagination_height', [ 'label' => __( 'Height', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 1000, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'default' => [ 'unit' => 'px', 'size' => 15, ], 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-dots li button' => 'height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'slider_pagination_width', [ 'label' => __( 'Width', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 1000, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'default' => [ 'unit' => 'px', 'size' => 15, ], 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-dots li button' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'pagination_background', 'label' => __( 'Background', 'profundcore' ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .profundcore-carousel-activation .slick-dots li button', ] ); $this->add_responsive_control( 'pagination_margin', [ 'label' => __( 'Margin', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-dots li' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'pagination_border', 'label' => __( 'Border', 'profundcore' ), 'selector' => '{{WRAPPER}} .profundcore-carousel-activation .slick-dots li button', ] ); $this->add_responsive_control( 'pagination_border_radius', [ 'label' => esc_html__( 'Border Radius', 'profundcore' ), 'type' => Controls_Manager::DIMENSIONS, 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-dots li button' => 'border-radius: {{TOP}}px {{RIGHT}}px {{BOTTOM}}px {{LEFT}}px;', ], ] ); $this->add_responsive_control( 'pagination_opacity', [ 'label' => __( 'Opacity (%)', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 1, ], 'range' => [ 'px' => [ 'max' => 1, 'step' => 0.01, ], ], 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-dots li button' => 'opacity: {{SIZE}}', ], ] ); $this->end_controls_tab(); // Normal Tab end $this->start_controls_tab( 'pagination_style_active_tab', [ 'label' => __( 'Active', 'profundcore' ), ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'pagination_hover_background', 'label' => __( 'Background', 'profundcore' ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .profundcore-carousel-activation .slick-dots li button:hover, {{WRAPPER}} .profundcore-carousel-activation .slick-dots li.slick-active button', ] ); $this->add_responsive_control( 'slider_pagination_active_width', [ 'label' => __( 'Width', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 1000, 'step' => 1, ], '%' => [ 'min' => 0, 'max' => 100, ], ], 'default' => [ 'unit' => 'px', 'size' => 15, ], 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-dots li.slick-active button' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pagination_active_opacity', [ 'label' => __( 'Opacity (%)', 'profundcore' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 1, ], 'range' => [ 'px' => [ 'max' => 1, 'step' => 0.01, ], ], 'selectors' => [ '{{WRAPPER}} .profundcore-carousel-activation .slick-dots li.slick-active button' => 'opacity: {{SIZE}}', ], ] ); $this->end_controls_tab(); // Hover Tab end $this->end_controls_tabs(); $this->end_controls_section(); } protected function render( $instance = [] ) { $settings = $this->get_settings_for_display(); $this->add_render_attribute( 'testimonial_area_attr', 'class', 'profund-testimonial-area' ); if( $settings['slider_on'] == 'yes'){ $slider_settings = [ 'arrows' => ('yes' === $settings['slarrows']), 'arrow_prev_txt' => $settings['slprevicon'], 'arrow_next_txt' => $settings['slnexticon'], 'dots' => ('yes' === $settings['sldots']), 'autoplay' => ('yes' === $settings['slautolay']), 'autoplay_speed' => absint($settings['slautoplay_speed']), 'animation_speed' => absint($settings['slanimation_speed']), 'pause_on_hover' => ('yes' === $settings['slpause_on_hover']), 'center_mode' => ( 'yes' === $settings['slcentermode']), 'center_padding' => absint($settings['slcenterpadding']), ]; $slider_responsive_settings = [ 'display_columns' => $settings['slitems'], 'scroll_columns' => $settings['slscroll_columns'], 'tablet_width' => $settings['sltablet_width'], 'tablet_display_columns' => $settings['sltablet_display_columns'], 'tablet_scroll_columns' => $settings['sltablet_scroll_columns'], 'mobile_width' => $settings['slmobile_width'], 'mobile_display_columns' => $settings['slmobile_display_columns'], 'mobile_scroll_columns' => $settings['slmobile_scroll_columns'], ]; $slider_settings = array_merge( $slider_settings, $slider_responsive_settings ); $this->add_render_attribute( 'testimonial_area_attr', 'class', 'profundcore-carousel-activation' ); $this->add_render_attribute( 'testimonial_area_attr', 'data-settings', wp_json_encode( $slider_settings ) ); }else { $this->add_render_attribute( 'testimonial_area_attr', 'class', 'testimonial-grid' ); } if( $settings['profund_testimonial_list'] ): ?> <div <?php echo $this->get_render_attribute_string( 'testimonial_area_attr' ); ?> > <?php foreach( $settings['profund_testimonial_list'] as $items ): $client_poster = Group_Control_Image_Size::get_attachment_image_html( $items, 'client_poster_imgsize', 'client_poster' ); $client_image = Group_Control_Image_Size::get_attachment_image_html( $items, 'client_imagesize', 'client_image' ); ?> <div class="testimonial-column"> <div class="profund-testimonial"> <?php if( !empty($client_poster) ): ?> <div class="client_poster"> <?php if(!empty($items['video_url'])): ?> <a href="<?php echo esc_url($items['video_url']); ?>" class="video-button" data-lity><i class="flaticon-play"></i></a> <div class="waves-block"> <div class="waves wave-1"></div> <div class="waves wave-2"></div> <div class="waves wave-3"></div> </div> <?php endif; ?> <?php echo $client_poster; ?> </div> <?php endif; ?> <div class="main-content" > <?php if( $settings['quote_on'] == 'yes' and !empty($settings['quote_icon']) ): ?> <div class="quote-icon"> <i class="<?php echo esc_attr($settings['quote_icon']); ?>"></i> </div> <?php endif; ?> <div class="header"> <?php if( !empty($client_image) ): ?> <div class="photo"> <?php echo $client_image; ?> </div> <?php endif; ?> <div class="ft-content"> <?php if( !empty($items['client_name']) ): ?> <h4 class="name"><?php echo esc_html($items['client_name']); ?></h4> <?php endif; ?> <?php if( !empty($items['client_designation']) ): ?> <div class="designation"><?php echo esc_html($items['client_designation']); ?></div> <?php endif; ?> </div> </div> <?php if( !empty($items['client_say']) ): ?> <div class="content"> <?php echo wp_kses_post($items['client_say']); ?> </div> <?php endif; ?> </div> </div> </div> <?php endforeach; ?> </div> <?php endif; } } Plugin::instance()->widgets_manager->register_widget_type( new profund_Testimonial_Widget );
Save
Cancel