Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
lynchestinegroup.com
/
wp-content
/
plugins
/
koncrete-core_2
/
elementor
/
team-gallery
/
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; if ( ! defined( 'ABSPATH' ) ) exit; class Team_Gallery extends Custom_Widget_Base { public function __construct( $data = array(), $args = null ){ $this->rt_name = esc_html__( 'Team Gallery', 'koncrete-core' ); $this->rt_base = 'rt-team-gallery'; $this->rt_translate = array( 'cols' => array( // here its bootstrap class '12' => esc_html__( '1 Col', 'koncrete-core' ), '6' => esc_html__( '2 Col', 'koncrete-core' ), '4' => esc_html__( '3 Col', 'koncrete-core' ), '3' => esc_html__( '4 Col', 'koncrete-core' ), '2' => esc_html__( '6 Col', 'koncrete-core' ), ), '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_cat_dropdown() { $prefix = Constants::$theme_prefix; $terms = get_terms( array( 'taxonomy' => "{$prefix}_team_category", 'hide_empty' => true, ) ); $category_dropdown = array(); foreach ( $terms as $category ) { $category_dropdown[$category->term_id] = $category->name; } return $category_dropdown; } 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' ), 'style4' => esc_html__( 'style 4 (Slider)', 'koncrete-core' ), 'style5' => esc_html__( 'style 5', 'koncrete-core' ), 'style6' => esc_html__( 'style 6', 'koncrete-core' ), ), 'default' => 'style1', ), /** * have to make it backward compatible */ array( 'type' => Controls_Manager::SELECT2, 'id' => 'multiple_category', 'label' => __( 'Categories', 'koncrete-core' ), 'options' => $this->rt_cat_dropdown(), 'multiple' => true, 'description' => esc_html__( 'All categories is selected by default', 'koncrete-core' ), ), array( 'type' => Controls_Manager::NUMBER, 'id' => 'posts_per_page', 'label' => esc_html__( 'No of team post', 'koncrete-core' ), 'default' => '4', ), array( 'type' => Controls_Manager::SWITCHER, 'id' => 'pagination_display', 'label_on' => esc_html__( 'Show', 'koncrete-core' ), 'label_off' => esc_html__( 'Hide', 'koncrete-core' ), 'label' => esc_html__( 'Show Pagination', 'koncrete-core' ), 'default' => "no", 'condition' => array( 'style' => array( 'style1', 'style2', 'style3', 'style5', 'style6' ) ), ), array( 'type' => Controls_Manager::NUMBER, 'id' => 'no_of_excerpt_words', 'label' => esc_html__( 'Number Of words for excerpt', 'koncrete-core' ), 'default' => '14', 'condition' => array( 'style' => array( 'style3', 'style4', 'style6', ) ), ), 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__( 'Title', 'koncrete-core' ), 'menu_order' => esc_html__( 'Custom Order (Available via Order field inside Page Attributes box)', 'koncrete-core' ), ), 'default' => 'date', ), array( 'mode' => 'section_end', ), // Responsive Columns for general array( 'mode' => 'section_start', 'condition' => array( 'style' => array( 'style1', 'style2', 'style3', 'style5', 'style6' ) ), 'id' => 'sec_responsive_general', 'label' => esc_html__( 'Number of Responsive Columns', 'koncrete-core' ), ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'col_lg', 'label' => esc_html__( 'Desktops: > 1199px', 'koncrete-core' ), 'options' => $this->rt_translate['cols'], 'default' => '3', ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'col_md', 'label' => esc_html__( 'Desktops: > 991px', 'koncrete-core' ), 'options' => $this->rt_translate['cols'], 'default' => '3', ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'col_sm', 'label' => esc_html__( 'Tablets: > 767px', 'koncrete-core' ), 'options' => $this->rt_translate['cols'], 'default' => '6', ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'col_xs', 'label' => esc_html__( 'Phones: < 768px', 'koncrete-core' ), 'options' => $this->rt_translate['cols'], 'default' => '12', ), array( 'mode' => 'section_end', ), // Responsive Columns for slider array( 'mode' => 'section_start', 'id' => 'sec_responsive', 'condition' => array( 'style' => array( 'style4' ) ), 'label' => esc_html__( 'Number of Responsive Columns for slider', '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' => '4', ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'col_md_slider', 'label' => esc_html__( 'Desktops: > 991px', 'koncrete-core' ), 'options' => $this->rt_translate['cols_slider'], 'default' => '3', ), array( 'type' => Controls_Manager::SELECT2, 'id' => 'col_sm_slider', 'label' => esc_html__( 'Tablets: > 767px', 'koncrete-core' ), 'options' => $this->rt_translate['cols_slider'], 'default' => '2', ), 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', ), // Slider options array( 'mode' => 'section_start', 'id' => 'sec_slider', 'condition' => array( 'style' => array( 'style4' ) ), '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', ), // title Style array( 'mode' => 'section_start', 'id' => 'title_style', 'label' => esc_html__( 'Title Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, ), array( 'mode' => 'group', 'type' => Group_Control_Typography::get_type(), 'name' => 'title_typo', 'label' => esc_html__( 'Title Typography', 'koncrete-core' ), 'selector' => ' {{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .front-inner-content .item-title, {{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content .item-title, {{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-title, {{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team .item-title, {{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team h3, {{WRAPPER}} .team-box-layout-h1 .item-content .item-title, {{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .front-inner-content .item-title, {{WRAPPER}} .team-box-layout-h2 .item-content .item-heading .item-title, {{WRAPPER}} noselector, {{WRAPPER}} noselector ', ), array( 'type' => Controls_Manager::COLOR, 'id' => 'title_color', 'label' => esc_html__( 'Title Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .front-inner-content .item-title a' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-title a' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team .item-title a' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team h3 a' => 'color: {{VALUE}}', '{{WRAPPER}} .team-box-layout-h1 .item-content .item-title a' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .front-inner-content .item-title a' => 'color: {{VALUE}}', '{{WRAPPER}} .team-box-layout-h2 .item-content .item-heading .item-title a' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'title_hover_color', 'label' => esc_html__( 'Title Hover Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content .item-title a' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-title a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team .item-title a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team h3 a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} .team-box-layout-h1 .item-content .item-title a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content .item-title a' => 'color: {{VALUE}}', '{{WRAPPER}} .team-box-layout-h2 .item-content .item-heading .item-title a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%', 'em' ), 'id' => 'title_content_margin', 'label' => __( 'title Margin', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .front-inner-content .item-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content .item-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team .item-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team h3' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .team-box-layout-h1 .item-content .item-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .front-inner-content .item-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content .item-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .team-box-layout-h2 .item-content .item-heading .item-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', ), // subtitle Style array( 'mode' => 'section_start', 'id' => 'subtitle_style', 'label' => esc_html__( 'Subtitle Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, ), array( 'mode' => 'group', 'type' => Group_Control_Typography::get_type(), 'name' => 'subtitle_typo', 'label' => esc_html__( 'Subtitle Typography', 'koncrete-core' ), 'selector' => ' {{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .front-inner-content .item-subtitle, {{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content .item-subtitle, {{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-subtitle, {{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team .item-subtitle, {{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team .subtitle, {{WRAPPER}} .team-box-layout-h1 .item-content .item-subtitle, {{WRAPPER}} .team-box-layout-h2 .item-content .item-heading .item-subtitle, {{WRAPPER}} noselector, {{WRAPPER}} noselector, {{WRAPPER}} noselector ', ), array( 'type' => Controls_Manager::COLOR, 'id' => 'subtitle_color', 'label' => esc_html__( 'Subtitle Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .front-inner-content .item-subtitle' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-subtitle' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team .item-subtitle' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team .subtitle' => 'color: {{VALUE}}', '{{WRAPPER}} .team-box-layout-h1 .item-content .item-subtitle' => 'color: {{VALUE}}', '{{WRAPPER}} .team-box-layout-h2 .item-content .item-heading .item-subtitle' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'subtitle_hover_color', 'label' => esc_html__( 'Subtitle Hover Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content .item-subtitle' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', ), 'condition' => array( 'style' => array( 'style1', 'style2none', 'style3none', 'style4none', 'style5none', 'style6none', ) ), ), array( 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%', 'em' ), 'id' => 'subtitle_content_margin', 'label' => __( 'subtitle Margin', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .front-inner-content .item-subtitle' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content .item-subtitle' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-subtitle' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team .item-subtitle' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team .subtitle' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .team-box-layout-h1 .item-content .item-subtitle' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} noselector' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} noselector' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} noselector' => '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', ), // text Style array( 'mode' => 'section_start', 'id' => 'text_style', 'label' => esc_html__( 'Text Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => array( 'style' => array( 'style1', 'style3', 'style4', 'style6', ) ), ), array( 'mode' => 'group', 'type' => Group_Control_Typography::get_type(), 'name' => 'text_typo', 'label' => esc_html__( 'Text Typography', 'koncrete-core' ), 'selector' => ' {{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content p, {{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team p, {{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team p, {{WRAPPER}} .team-box-layout-h2 .item-content p, {{WRAPPER}} noselector, {{WRAPPER}} noselector, {{WRAPPER}} noselector, {{WRAPPER}} noselector, {{WRAPPER}} noselector, {{WRAPPER}} noselector ', 'condition' => array( 'style' => array( 'style1', 'style2none', 'style3', 'style4', 'style5none', 'style6', ) ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'text_color', 'label' => esc_html__( 'Text Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content p' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team p' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team p' => 'color: {{VALUE}}', '{{WRAPPER}} .team-box-layout-h2 .item-content p' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', ), 'condition' => array( 'style' => array( 'style1', 'style2none', 'style3', 'style4', 'style5none', 'style6', ) ), ), array( 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%', 'em' ), 'id' => 'text_content_margin', 'label' => __( 'text Margin', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content p' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team p' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team p' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team p' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', '{{WRAPPER}} .team-box-layout-h2 .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;', '{{WRAPPER}} noselector' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ), 'separator' => 'before', 'condition' => array( 'style' => array( 'style1none', 'style2none', 'style3', 'style4', 'style5none', 'style6', ) ), ), array( 'mode' => 'section_end', ), // social profile style array( 'mode' => 'section_start', 'id' => 'social_profile_style', 'label' => esc_html__( 'Social Profile Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => array( 'style' => array( 'style1', 'style2', 'style3', 'style4', 'style5', 'style6', ) ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'social_profile_color', 'label' => esc_html__( 'Social Profile Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content .item-social li a' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-social li a' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team .item-social li a' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team .item-social li a' => 'color: {{VALUE}}', '{{WRAPPER}} .team-box-layout-h1 .item-content .item-social li a' => 'color: {{VALUE}}', '{{WRAPPER}} .team-box-layout-h2 .item-content .item-social li a' => 'color: {{VALUE}}', ), 'condition' => array( 'style' => array( 'style1', 'style2', 'style3', 'style4', 'style5', 'style6', ) ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'social_profile_hover_color', 'label' => esc_html__( 'Social Profile Hover Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content .item-social li a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-social li a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team .item-social li a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team .item-social li a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} .team-box-layout-h1 .item-content .item-social li a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} .team-box-layout-h2 .item-content .item-social li a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', 'condition' => array( 'style' => array( 'style1', 'style2', 'style3', 'style4', 'style5', 'style6', ) ), ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'social_profile_background_color', 'label' => esc_html__( 'Social profile background Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team .item-social li a' => 'background-color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team .item-social li a' => 'background-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'background-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'background-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'background-color: {{VALUE}}', ), 'condition' => array( 'style' => array( 'style1none', 'style2none', 'style3', 'style4', 'style5none', 'style6', ) ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'social_hover_profile_background_color', 'label' => esc_html__( 'Social profile Hover background Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team .item-social li a:hover' => 'background-color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team .item-social li a:hover' => 'background-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'background-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'background-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'background-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'background-color: {{VALUE}}', ), 'condition' => array( 'style' => array( 'style1none', 'style2none', 'style3', 'style4', 'style5none', 'style6none', ) ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'social_profile_border_color', 'label' => esc_html__( 'Social Profile Border Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team .item-social li a' => 'border-color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team .item-social li a' => 'border-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'border-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'border-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'border-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'border-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'border-color: {{VALUE}}', ), 'condition' => array( 'style' => array( 'style1none', 'style2none', 'style3', 'style4', 'style6none', ) ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'social_profile_hover_border_color', 'label' => esc_html__( 'Social profile hover border Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-content-team .item-social li a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-content-team .item-social li a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', '{{WRAPPER}} noselector' => 'color: {{VALUE}}', ), 'condition' => array( 'style' => array( 'style1none', 'style2none', 'style3', 'style4', 'style6none', ) ), ), array( 'mode' => 'section_end', ), array( 'mode' => 'section_start', 'id' => 'button_style', 'label' => esc_html__( 'Button Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => array( 'style' => array('style2', ) ), ), array( 'mode' => 'group', 'type' => Group_Control_Typography::get_type(), 'name' => 'button_typo', 'label' => esc_html__( 'Button Typography', 'koncrete-core' ), 'selector' => ' {{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-btn ', ), array( 'type' => Controls_Manager::COLOR, 'id' => 'button_text_color', 'label' => esc_html__( 'Button Text Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-btn ' => 'color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'button_hover_text_color', 'label' => esc_html__( 'Button Hover Text Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-btn:hover' => 'color: {{VALUE}}', ), ), array( 'mode' => 'group', 'separator' => 'before', 'label_block' => true, 'type' => Group_Control_Background::get_type(), 'name' => 'button_background', 'types' => array( 'classic', 'gradient', ), 'fields_options' => array( 'background' => array( 'label' => esc_html__( 'Button Background', 'koncrete-core' ), ), ), 'selector' => ' {{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-btn ', ), array( 'mode' => 'group', 'separator' => 'before', 'label_block' => true, 'type' => Group_Control_Background::get_type(), 'name' => 'button_hover_background', 'types' => array( 'classic', 'gradient', ), 'fields_options' => array( 'background' => array( 'label' => esc_html__( 'Button Hover Background', 'koncrete-core' ), ), ), 'selector' => ' {{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-btn:hover ', ), array( 'mode' => 'section_end', ), array( 'mode' => 'section_start', 'id' => 'others_style', 'label' => esc_html__( 'Other Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => array( 'style' => array( 'style1', 'style2none', 'style3', 'style4', 'style5', 'style6', ) ), ), array( 'mode' => 'group', 'separator' => 'before', 'label_block' => true, 'type' => Group_Control_Background::get_type(), 'name' => 'other_background_1', 'types' => array( 'classic', 'gradient', ), 'fields_options' => array( 'background' => array( 'label' => esc_html__( ' Other Background 1', 'koncrete-core' ), ), ), 'selector' => ' {{WRAPPER}} .rtel-team-gallery2 .rtin-team-layout2 .item-content-team .item-btn, {{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content, {{WRAPPER}} .rtel-team-gallery3 .rtin-team-layout3 .item-img:before, {{WRAPPER}} .rtel-team-gallery4 .rtin-team-layout4 .item-img:after, {{WRAPPER}} .team-box-layout-h1 .item-content, {{WRAPPER}} .team-box-layout-h2 .item-content .item-heading:after, {{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .front-inner-content, {{WRAPPER}} noselector, {{WRAPPER}} noselector ', ), array( 'mode' => 'group', 'separator' => 'before', 'label_block' => true, 'type' => Group_Control_Background::get_type(), 'name' => 'other_background_2', 'types' => array( 'classic', 'gradient', ), 'fields_options' => array( 'background' => array( 'label' => esc_html__( 'Other Background 2', 'koncrete-core' ), ), ), 'selector' => ' {{WRAPPER}} .team-box-layout-h1:hover .item-content , {{WRAPPER}} .rtel-team-gallery1 .rtin-team-layout1 .item-img .back-inner-content , {{WRAPPER}} noselector ', 'condition' => array( 'style' => array( 'style1', 'style5', ) ), ), array( 'mode' => 'section_end', ), array( 'mode' => 'section_start', 'id' => 'pagination_style', 'label' => esc_html__( 'Pagination Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => array( 'pagination_display' => 'yes' ), ), array( 'mode' => 'group', 'type' => Group_Control_Typography::get_type(), 'name' => 'pagination_typo', 'label' => esc_html__( 'Pagination Typography', 'koncrete-core' ), 'selector' => ' {{WRAPPER}} .pagination-layout1 ul li span, {{WRAPPER}} .pagination-layout1 ul li a ', ), array( 'type' => Controls_Manager::COLOR, 'id' => 'pagination_bg_color', 'label' => esc_html__( 'Pagination Background Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .pagination-layout1 ul li a' => 'background-color: {{VALUE}}', '{{WRAPPER}} .pagination-layout1 ul li span' => 'background-color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'pagination_hover_bg_color', 'label' => esc_html__( 'Pagination Hover / Active Background Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .pagination-layout1 ul li.active span' => 'background: {{VALUE}}', '{{WRAPPER}} .pagination-layout1 ul li a:hover' => 'background: {{VALUE}}', '{{WRAPPER}} noselector' => 'background-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'background-color: {{VALUE}}', '{{WRAPPER}} noselector' => 'background-color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'pagination_text_color', 'label' => esc_html__( 'Pagination Text Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .pagination-layout1 ul li a' => 'color: {{VALUE}}', '{{WRAPPER}} .pagination-layout1 ul li span' => 'color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'pagination_text_accent_color', 'label' => esc_html__( 'Pagination Text accent Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .pagination-layout1 ul li a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} .pagination-layout1 ul li.active span' => 'color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::COLOR, 'id' => 'disable_pagination_color', 'label' => esc_html__( 'Disable pagination Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .pagination-layout1 .pagi-next.disabled span' => 'color: {{VALUE}}', '{{WRAPPER}} .pagination-layout1 .pagi-previous.disabled span' => 'color: {{VALUE}}', ), 'default' => '#999', ), array( 'type' => Controls_Manager::COLOR, 'id' => 'disable_pagination_background_color', 'label' => esc_html__( 'Disable pagination Background Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .pagination-layout1 .pagi-next.disabled span' => 'background-color: {{VALUE}}', '{{WRAPPER}} .pagination-layout1 .pagi-previous.disabled span' => 'background-color: {{VALUE}}', ), 'default' => '#fff', ), 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>'), '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, 'smartSpeed' => 1200, 'responsive' => array( '0' => array( 'items' => $data['col_mobile_slider'], 'nav' => false, 'dots' => false, ), '480' => array( 'items' => $data['col_xs_slider'], 'nav' => false, '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, ), ) ); if ( is_rtl () ) { $owl_data['rtl'] = true; } $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; case 'style4': $template = 'view-4'; break; case 'style5': $template = 'view-5'; break; case 'style6': $template = 'view-6'; break; default: $template = 'view-1'; break; } return $this->rt_template( $template, $data ); } }
Save
Cancel