Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
lynchestinegroup.com
/
wp-content
/
plugins
/
koncrete-core_2
/
elementor
/
radius-testimonial
/
Editing: class.php
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 */ namespace radiustheme\Koncrete_Core; use Elementor\Controls_Manager; use Elementor\Group_Control_Background; use Elementor\Group_Control_Typography; use Elementor\Scheme_Typography; if ( ! defined( 'ABSPATH' ) ) exit; class Radius_Testimonial extends Custom_Widget_Base { public function __construct( $data = array(), $args = null ){ $this->rt_name = esc_html__( 'Testimonial', 'koncrete-core' ); $this->rt_base = 'rt-radius-testimonial'; $this->rt_translate = array( 'cols_slider' => array( '1' => esc_html__( '1 Col', 'koncrete-core' ), '2' => esc_html__( '2 Col', 'koncrete-core' ), '3' => esc_html__( '3 Col', 'koncrete-core' ), '4' => esc_html__( '4 Col', 'koncrete-core' ), '5' => esc_html__( '5 Col', 'koncrete-core' ), '6' => esc_html__( '6 Col', 'koncrete-core' ), ), ); parent::__construct( $data, $args ); } private function rt_load_scripts(){ wp_enqueue_style( 'owl-carousel' ); wp_enqueue_style( 'owl-theme-default' ); wp_enqueue_script( 'owl-carousel' ); } public function rt_fields(){ $fields = array( array( 'mode' => 'section_start', 'id' => 'sec_general', 'label' => esc_html__( 'General', 'koncrete-core' ), ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'style', 'label' => esc_html__( 'Layout Style', 'koncrete-core' ), 'options' => array( 'style1' => esc_html__( 'style 1', 'koncrete-core' ), 'style2' => esc_html__( 'style 2', 'koncrete-core' ), 'style3' => esc_html__( 'style 3', 'koncrete-core' ), ), 'default' => 'style1', ), array( 'type' => Controls_Manager::TEXTAREA, 'id' => 'title', 'label' => esc_html__( 'Title', 'koncrete-core' ), 'default' => "Customers Talk About Us", 'condition' => array( 'style' => array('style2',) ), ), array( 'type' => Controls_Manager::TEXTAREA, 'id' => 'subtitle', 'label' => esc_html__( 'Sub Text', 'koncrete-core' ), 'condition' => array( 'style' => array( 'style2' ) ), 'default' => "Proin sagittis feugiat elit finibus pretium torpurus vulputate tinci dunt Craserty congueis simply dummy text of the prin and typesetting industry.", ), array( 'type' => Controls_Manager::NUMBER, 'id' => 'posts_per_page', 'label' => esc_html__( 'No of testimonials', 'koncrete-core' ), 'default' => '3', ), array( 'type' => Controls_Manager::NUMBER, 'id' => 'number_of_words_for_testimonial', 'label' => esc_html__( 'No of words for testimonials', 'koncrete-core' ), 'default' => '14', ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'orderby', 'label' => esc_html__( 'Order By', 'koncrete-core' ), 'options' => array( 'date' => esc_html__( 'Date (Recents comes first)', 'koncrete-core' ), 'title' => esc_html__( 'Testimonial Title(name)', 'koncrete-core' ), 'menu_order' => esc_html__( 'Custom Order (Available via Order field inside Page Attributes box)', 'koncrete-core' ), ), 'default' => 'date', ), array( 'type' => Controls_Manager::SWITCHER, 'id' => 'star', 'label_on' => esc_html__( 'Show', 'koncrete-core' ), 'label_off' => esc_html__( 'Hide', 'koncrete-core' ), 'label' => esc_html__( 'Show Star', 'koncrete-core' ), 'default' => "yes", ), array( 'type' => Controls_Manager::SWITCHER, 'id' => 'designation', 'label_on' => esc_html__( 'Show', 'koncrete-core' ), 'label_off' => esc_html__( 'Hide', 'koncrete-core' ), 'label' => esc_html__( 'Show Designation', 'koncrete-core' ), 'default' => "yes", ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'theme', 'label' => esc_html__( 'Theme (while not using style tab)', 'koncrete-core' ), 'options' => array( 'light' => esc_html__( 'Light Background', 'koncrete-core' ), 'dark' => esc_html__( 'Dark Background', 'koncrete-core' ), ), 'default' => 'light', 'condition' => array( 'style' => array( 'style3' ) ), ), array( 'type' => Controls_Manager::SWITCHER, 'id' => 'has_image_border', 'label_on' => esc_html__( 'Show', 'koncrete-core' ), 'label_off' => esc_html__( 'Hide', 'koncrete-core' ), 'label' => esc_html__( 'Has Image Border', 'koncrete-core' ), 'default' => "No", 'condition' => array( 'style' => array( 'style1', ) ), ), array( 'mode' => 'section_end', ), // Slider options array( 'mode' => 'section_start', 'id' => 'sec_slider', 'label' => esc_html__( 'Slider Options', 'koncrete-core' ), ), array( 'type' => Controls_Manager::SWITCHER, 'id' => 'slider_autoplay', 'label' => esc_html__( 'Autoplay', 'koncrete-core' ), 'label_on' => esc_html__( 'On', 'koncrete-core' ), 'label_off' => esc_html__( 'Off', 'koncrete-core' ), 'default' => 'yes', 'description' => esc_html__( 'Enable or disable autoplay. Default: On', 'koncrete-core' ), ), array( 'type' => Controls_Manager::SWITCHER, 'id' => 'slider_stop_on_hover', 'label' => esc_html__( 'Stop on Hover', 'koncrete-core' ), 'label_on' => esc_html__( 'On', 'koncrete-core' ), 'label_off' => esc_html__( 'Off', 'koncrete-core' ), 'default' => 'yes', 'description' => esc_html__( 'Stop autoplay on mouse hover. Default: On', 'koncrete-core' ), 'condition' => array( 'slider_autoplay' => 'yes' ), ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'slider_interval', 'label' => esc_html__( 'Autoplay Interval', 'koncrete-core' ), 'options' => array( '5000' => esc_html__( '5 Seconds', 'koncrete-core' ), '4000' => esc_html__( '4 Seconds', 'koncrete-core' ), '3000' => esc_html__( '3 Seconds', 'koncrete-core' ), '2000' => esc_html__( '2 Seconds', 'koncrete-core' ), '1000' => esc_html__( '1 Second', 'koncrete-core' ), ), 'default' => '5000', 'description' => esc_html__( 'Set any value for example 5 seconds to play it in every 5 seconds. Default: 5 Seconds', 'koncrete-core' ), 'condition' => array( 'slider_autoplay' => 'yes' ), ), array( 'type' => Controls_Manager::NUMBER, 'id' => 'slider_autoplay_speed', 'label' => esc_html__( 'Autoplay Slide Speed', 'koncrete-core' ), 'default' => 200, 'description' => esc_html__( 'Slide speed in milliseconds. Default: 200', 'koncrete-core' ), 'condition' => array( 'slider_autoplay' => 'yes' ), ), array( 'type' => Controls_Manager::SWITCHER, 'id' => 'slider_loop', 'label' => esc_html__( 'Loop', 'koncrete-core' ), 'label_on' => esc_html__( 'On', 'koncrete-core' ), 'label_off' => esc_html__( 'Off', 'koncrete-core' ), 'default' => 'yes', 'description' => esc_html__( 'Loop to first item. Default: On', 'koncrete-core' ), ), array( 'mode' => 'section_end', ), // Responsive Columns for slider array( 'mode' => 'section_start', 'condition' => array( 'style' => array( 'style2' ) ), 'id' => 'sec_responsive_slider', 'label' => esc_html__( 'Number of Responsive Columns', 'koncrete-core' ), ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'col_lg_slider', 'label' => esc_html__( 'Desktops: > 1199px', 'koncrete-core' ), 'options' => $this->rt_translate['cols_slider'], 'default' => '2', ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'col_md_slider', 'label' => esc_html__( 'Desktops: > 991px', 'koncrete-core' ), 'options' => $this->rt_translate['cols_slider'], 'default' => '2', ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'col_sm_slider', 'label' => esc_html__( 'Tablets: > 767px', 'koncrete-core' ), 'options' => $this->rt_translate['cols_slider'], 'default' => '1', ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'col_xs_slider', 'label' => esc_html__( 'Phones: < 768px', 'koncrete-core' ), 'options' => $this->rt_translate['cols_slider'], 'default' => '1', ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'col_mobile_slider', 'label' => esc_html__( 'Small Phones: < 480px', 'koncrete-core' ), 'options' => $this->rt_translate['cols_slider'], 'default' => '1', ), array( 'mode' => 'section_end', ), array( 'mode' => 'section_start', 'tab' => Controls_Manager::TAB_STYLE, 'id' => 'sec_colors', 'label' => esc_html__( 'Section Title Colors', 'koncrete-core' ), 'condition' => array( 'style' => array( 'style2' ) ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'title_color', 'label' => esc_html__( 'Section Title Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtin-title' => 'color: {{VALUE}}' ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'subtitle_color', 'label' => esc_html__( 'Section Subtitle Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtin-subtitle' => 'color: {{VALUE}}' ), ), array( 'mode' => 'section_end', ), array( 'mode' => 'section_start', 'tab' => Controls_Manager::TAB_STYLE, 'id' => 'section_typography', 'label' => esc_html__( 'Section Typography', 'koncrete-core' ), 'condition' => array( 'style' => array( 'style2' ) ), ), array( 'type' => Group_Control_Typography::get_type(), 'name' => 'content_typography_title', 'mode' => 'group', 'id' => 'title_typography', 'label' => esc_html__( 'Section Title Typography', 'koncrete-core' ), 'scheme' => Scheme_Typography::TYPOGRAPHY_1, 'selector' => '{{WRAPPER}} .rtin-title', ), array( 'type' => Group_Control_Typography::get_type(), 'name' => 'content_typography_subtitle', 'mode' => 'group', 'id' => 'subtitle_typography', 'label' => esc_html__( 'Section Subtitle Typography', 'koncrete-core' ), 'scheme' => Scheme_Typography::TYPOGRAPHY_1, 'selector' => '{{WRAPPER}} .rtin-subtitle', ), array( 'mode' => 'section_end', ), // testimonial_title Style array( 'mode' => 'section_start', 'id' => 'testimonial_title_style', 'label' => esc_html__( 'Testimonial Title Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, ), array( 'mode' => 'group', 'type' => Group_Control_Typography::get_type(), 'name' => 'testimonial_title_typo', 'label' => esc_html__( 'Testimonial Title Typography', 'koncrete-core' ), 'selector' => ' {{WRAPPER}} .rtel-testimonial1 .rtin-testimonial-layout1 .rtin-testimonial-layout1-content .media-body .title, {{WRAPPER}} .rtel-testimonial2 .rtin-testimonial-layout2 .rtin-testimonial-layout2-content .item-title, {{WRAPPER}} .rtel-testimonial3 .rtin-testimonial-layout3-content .rtin-item-content .title, {{WRAPPER}} noselector ', ), array( 'type' => Controls_Manager::COLOR, 'id' => 'testimonial_title_color', 'label' => esc_html__( 'Testimonial Title Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-testimonial1 .rtin-testimonial-layout1 .rtin-testimonial-layout1-content .media-body .title' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial2 .rtin-testimonial-layout2 .rtin-testimonial-layout2-content .item-title' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial3 .rtin-testimonial-layout3-content .rtin-item-content .title' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%', 'em' ), 'id' => 'testimonial_title_content_margin', 'label' => __( 'Testimonial Title Margin', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-testimonial1 .rtin-testimonial-layout1 .rtin-testimonial-layout1-content .media-body .title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-testimonial2 .rtin-testimonial-layout2 .rtin-testimonial-layout2-content .item-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-testimonial3 .rtin-testimonial-layout3-content .rtin-item-content .title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} noselector' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ), 'separator' => 'before', ), array( 'mode' => 'section_end', ), // testimonial_subtitle Style array( 'mode' => 'section_start', 'id' => 'testimonial_subtitle_style', 'label' => esc_html__( 'Testimonial Subtitle Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, ), array( 'mode' => 'group', 'type' => Group_Control_Typography::get_type(), 'name' => 'testimonial_subtitle_typo', 'label' => esc_html__( 'Testimonial Subtitle Typography', 'koncrete-core' ), 'selector' => ' {{WRAPPER}} .rtel-testimonial1 .rtin-testimonial-layout1 .rtin-testimonial-layout1-content .media-body .subtitle, {{WRAPPER}} .rtel-testimonial2 .rtin-testimonial-layout2 .rtin-testimonial-layout2-content .item-subtitle, {{WRAPPER}} .rtel-testimonial3 .rtin-testimonial-layout3-content .rtin-item-content .subtitle, {{WRAPPER}} noselector ', ), array( 'type' => Controls_Manager::COLOR, 'id' => 'testimonial_subtitle_color', 'label' => esc_html__( 'Testimonial Subtitle Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-testimonial1 .rtin-testimonial-layout1 .rtin-testimonial-layout1-content .media-body .subtitle' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial2 .rtin-testimonial-layout2 .rtin-testimonial-layout2-content .item-subtitle' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial3 .rtin-testimonial-layout3-content .rtin-item-content .subtitle' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%', 'em' ), 'id' => 'testimonial_subtitle_content_margin', 'label' => __( 'Testimonial Subtitle Margin', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-testimonial1 .rtin-testimonial-layout1 .rtin-testimonial-layout1-content .media-body .subtitle' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-testimonial2 .rtin-testimonial-layout2 .rtin-testimonial-layout2-content .item-subtitle' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-testimonial3 .rtin-testimonial-layout3-content .rtin-item-content .subtitle' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} noselector' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ), 'separator' => 'before', ), array( 'mode' => 'section_end', ), // testimonial_text Style array( 'mode' => 'section_start', 'id' => 'testimonial_text_style', 'label' => esc_html__( 'Testimonial Text Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, ), array( 'mode' => 'group', 'type' => Group_Control_Typography::get_type(), 'name' => 'testimonial_text_typo', 'label' => esc_html__( 'Testimonial Text Typography', 'koncrete-core' ), 'selector' => ' {{WRAPPER}} .rtel-testimonial1 .rtin-testimonial-layout1 .rtin-testimonial-layout1-content .media-body p, {{WRAPPER}} .rtel-testimonial2 .rtin-testimonial-layout2 .rtin-testimonial-layout2-content p, {{WRAPPER}} .rtel-testimonial3 .rtin-testimonial-layout3-content .rtin-item-content p, {{WRAPPER}} noselector ', ), array( 'type' => Controls_Manager::COLOR, 'id' => 'testimonial_text_color', 'label' => esc_html__( 'Testimonial Text Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-testimonial1 .rtin-testimonial-layout1 .rtin-testimonial-layout1-content .media-body p' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial2 .rtin-testimonial-layout2 .rtin-testimonial-layout2-content p' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial3 .rtin-testimonial-layout3-content .rtin-item-content p' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%', 'em' ), 'id' => 'testimonial_text_content_margin', 'label' => __( 'Testimonial Text Margin', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-testimonial1 .rtin-testimonial-layout1 .rtin-testimonial-layout1-content .media-body p' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-testimonial2 .rtin-testimonial-layout2 .rtin-testimonial-layout2-content p' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-testimonial3 .rtin-testimonial-layout3-content .rtin-item-content p' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} noselector' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ), 'separator' => 'before', ), array( 'mode' => 'section_end', ), // other style array( 'mode' => 'section_start', 'id' => 'others_style', 'label' => esc_html__( 'Others Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, ), array( 'type' => Controls_Manager::COLOR, 'id' => 'others_color_1', 'label' => esc_html__( 'Others Color 1 (like rating)', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-testimonial1 .rtin-testimonial-layout1 .rtin-testimonial-layout1-content .media-body ul li.has-rating' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial1 .rtin-testimonial-layout1 .rtin-testimonial-layout1-content .media-body p:after' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial2 .rtin-testimonial-layout2 .rtin-testimonial-layout2-content .item-rating li.has-rating' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial3 .rtin-testimonial-layout3-content .rtin-item-content ul li.has-rating' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial3 .rtin-testimonial-layout3-content .rtin-item-content p:before' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial3 .dot-control-layout4 .owl-controls .owl-dots .active span' => 'background-color: {{VALUE}}; border-color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial3 .rtin-testimonial-layout3-content .rtin-item-content p:after' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', ), 'condition' => array( 'style' => array( 'style1', 'style2', 'style3', ) ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'others_color_2', 'label' => esc_html__( 'Others Color 2 (like non rating)', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-testimonial1 .rtin-testimonial-layout1 .rtin-testimonial-layout1-content .media-body ul li.nonrating' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial2 .rtin-testimonial-layout2 .rtin-testimonial-layout2-content .item-rating li.nonrating' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial3 .rtin-testimonial-layout3-content .rtin-item-content ul li.nonrating' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'others_color_3', 'label' => esc_html__( 'Others Color 3', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-testimonial .nav-control-layout5 .owl-controls .owl-nav > div' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial .rtin-smart-nav-layout1 div i:before, .rtel-testimonial .rtin-smart-nav-layout1 span i:before' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'others_color_4', 'label' => esc_html__( 'Others Color 4', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-testimonial .nav-control-layout5 .owl-controls .owl-prev:hover i' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial .nav-control-layout5 .owl-controls .owl-next:hover i' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial .rtin-smart-nav-layout1 span:hover i:before' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-testimonial .rtin-smart-nav-layout1 div:hover i:before' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', ), ), array( 'mode' => 'group', 'separator' => 'before', 'label_block' => true, 'type' => Group_Control_Background::get_type(), 'name' => 'others_background_1', 'types' => array( 'classic', 'gradient', ), 'fields_options' => array( 'background' => array( 'label' => esc_html__( 'Others Background 1', 'koncrete-core' ), ), ), 'selector' => ' {{WRAPPER}} .rtel-testimonial .nav-control-layout5 .owl-controls .owl-nav > div, {{WRAPPER}} .rtel-testimonial .rtin-smart-nav-layout1 span, {{WRAPPER}} .rtel-testimonial .rtin-smart-nav-layout1 div, {{WRAPPER}} noselector, {{WRAPPER}} noselector, {{WRAPPER}} noselector, {{WRAPPER}} noselector ', ), array( 'mode' => 'group', 'separator' => 'before', 'label_block' => true, 'type' => Group_Control_Background::get_type(), 'name' => 'others_background_2', 'types' => array( 'classic', 'gradient', ), 'fields_options' => array( 'background' => array( 'label' => esc_html__( 'Others Background 2', 'koncrete-core' ), ), ), 'selector' => ' {{WRAPPER}} .rtel-testimonial .nav-control-layout5 .owl-controls .owl-prev:hover , {{WRAPPER}} .rtel-testimonial .nav-control-layout5 .owl-controls .owl-next:hover , {{WRAPPER}} .rtel-testimonial .rtin-smart-nav-layout1 span:hover, {{WRAPPER}} .rtel-testimonial .rtin-smart-nav-layout1 div:hover, {{WRAPPER}} noselector, {{WRAPPER}} noselector, {{WRAPPER}} noselector ', ), array( 'mode' => 'section_end', ), ); return $fields; } protected function render() { $data = $this->get_settings(); $owl_data = array( 'nav' => true, 'navText' => array('<i class="fa fa-angle-left" aria-hidden="true"></i>', '<i class="fa fa-angle-right" aria-hidden="true"></i>'), 'smartSpeed' => 2000, 'dots' => false, 'autoplay' => $data['slider_autoplay'] == 'yes' ? true : false, 'autoplayTimeout' => $data['slider_interval'], 'autoplaySpeed' => $data['slider_autoplay_speed'], 'autoplayHoverPause' => $data['slider_stop_on_hover'] == 'yes' ? true : false, 'loop' => $data['slider_loop'] == 'yes' ? true : false, 'margin' => 10, ); if ( is_rtl () ) { $owl_data['rtl'] = true; } $uniqueid = uniqid(); $data['uniqueid'] = $uniqueid; if($data['style'] == 'style2') { $owl_data['navContainer'] = '#'.$uniqueid; $owl_data['navText'] = array('<i class="flaticon-left-arrow" aria-hidden="true"></i>', '<i class="flaticon-right-arrow" aria-hidden="true"></i>') ; $owl_data['responsive'] = array( '0' => array( 'items' => $data['col_mobile_slider'], 'nav' => true, 'dots' => false, ), '480' => array( 'items' => $data['col_xs_slider'], 'nav' => true, 'dots' => false, ), '768' => array( 'items' => $data['col_sm_slider'], 'nav' => true, 'dots' => false, ), '992' => array( 'items' => $data['col_md_slider'], 'nav' => true, 'dots' => false, ), '1200' => array( 'items' => $data['col_lg_slider'], 'nav' => true, 'dots' => false, ), ); } elseif ($data['style'] == 'style3') { $owl_data['nav'] = false; $owl_data['dots'] = true; $owl_data['items'] = 1; } else { $owl_data['items'] = 1; } $data['owl_data'] = json_encode( $owl_data ); $this->rt_load_scripts(); switch ( $data['style'] ) { case 'style1': $template = 'view-1'; break; case 'style2': $template = 'view-2'; break; case 'style3': $template = 'view-3'; break; default: $template = 'view-1'; break; } return $this->rt_template( $template, $data ); } }
Save
Cancel