-
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_Background; use \Elementor\Group_Control_Image_Size; use \Elementor\Repeater; use \Elementor\Utils; use \Elementor\Control_Media; use TPCore\Elementor\Controls\Group_Control_TPBGGradient; if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly /** * Tp Core * * Elementor widget for hello world. * * @since 1.0.0 */ class TP_Browser_Link 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-browser-link'; } /** * Retrieve the widget title. * * @since 1.0.0 * * @access public * * @return string Widget title. */ public function get_title() { return __( 'Browser Link', 'tpcore' ); } /** * 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 [ 'tpcore' ]; } /** * 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(); } // controls file protected function register_controls_section(){ // layout Panel $this->start_controls_section( 'tp_layout', [ 'label' => esc_html__('Design Layout', 'tp-core'), ] ); $this->add_control( 'tp_design_style', [ 'label' => esc_html__('Select Layout', 'tp-core'), 'type' => Controls_Manager::SELECT, 'options' => [ 'layout-1' => esc_html__('Layout 1', 'tp-core'), 'layout-2' => esc_html__('Layout 2', 'tp-core'), ], 'default' => 'layout-1', ] ); $this->end_controls_section(); // tp_section_title $this->start_controls_section( 'tp_section_title', [ 'label' => esc_html__('Title & Content', 'tpcore'), ] ); $this->add_control( 'tp_sub_title', [ 'label' => esc_html__('Sub Title', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'intermediate' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__('TP Sub Title Here', 'tpcore'), 'placeholder' => esc_html__('Type Sub Heading Text', 'tpcore'), 'label_block' => true, 'condition' => [ 'tp_design_style' => 'layout-2' ] ] ); $this->add_control( 'tp_title', [ 'label' => esc_html__('Title', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'intermediate' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__('TP Title Here', 'tpcore'), 'placeholder' => esc_html__('Type Heading Text', 'tpcore'), 'label_block' => true, ] ); $this->add_control( 'tp_title_tag', [ 'label' => esc_html__('Title HTML Tag', 'tp-core'), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'h1' => [ 'title' => esc_html__('H1', 'tp-core'), 'icon' => 'eicon-editor-h1' ], 'h2' => [ 'title' => esc_html__('H2', 'tp-core'), 'icon' => 'eicon-editor-h2' ], 'h3' => [ 'title' => esc_html__('H3', 'tp-core'), 'icon' => 'eicon-editor-h3' ], 'h4' => [ 'title' => esc_html__('H4', 'tp-core'), 'icon' => 'eicon-editor-h4' ], 'h5' => [ 'title' => esc_html__('H5', 'tp-core'), 'icon' => 'eicon-editor-h5' ], 'h6' => [ 'title' => esc_html__('H6', 'tp-core'), 'icon' => 'eicon-editor-h6' ] ], 'default' => 'h2', 'toggle' => false, ] ); $this->add_control( 'tp_des', [ 'label' => esc_html__('Description', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'intermediate' ), 'type' => Controls_Manager::TEXTAREA, 'default' => esc_html__('TP Description Here.', 'tpcore'), 'placeholder' => esc_html__('write description', 'tpcore'), 'label_block' => true, ] ); $this->add_responsive_control( 'tp_align', [ 'label' => esc_html__('Alignment', 'tpcore'), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'text-left' => [ 'title' => esc_html__('Left', 'tpcore'), 'icon' => 'eicon-text-align-left', ], 'text-center' => [ 'title' => esc_html__('Center', 'tpcore'), 'icon' => 'eicon-text-align-center', ], 'text-right' => [ 'title' => esc_html__('Right', 'tpcore'), 'icon' => 'eicon-text-align-right', ], ], 'default' => 'left', 'toggle' => false, ] ); $this->end_controls_section(); $this->tp_button_render('browser', 'Button', ['layout-1', 'layout-2']); // social links $this->start_controls_section( '_section_social', [ 'label' => esc_html__('Social Profiles', 'tpcore'), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $repeater = new Repeater(); $repeater->add_control( 'tp_social_icon_type', [ 'label' => esc_html__('Select Icon Type', 'tpcore'), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 'icon', 'options' => [ 'image' => esc_html__('Image', 'tpcore'), 'icon' => esc_html__('Icon', 'tpcore'), 'svg' => esc_html__('SVG', 'tpcore'), ], ] ); $repeater->add_control( 'tp_social_image', [ 'label' => esc_html__('Upload Icon Image', 'tpcore'), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'condition' => [ 'tp_social_icon_type' => 'image', ] ] ); $repeater->add_control( 'tp_social_icon_svg', [ 'show_label' => false, 'type' => Controls_Manager::TEXTAREA, 'label_block' => true, 'placeholder' => esc_html__('SVG Code Here', 'tpcore'), 'condition' => [ 'tp_social_icon_type' => 'svg' ] ] ); if (tp_is_elementor_version('<', '2.6.0')) { $repeater->add_control( 'tp_social_icon', [ 'show_label' => false, 'type' => Controls_Manager::ICON, 'label_block' => true, 'default' => 'fas fa-facebook-f', 'condition' => [ 'tp_social_icon_type' => 'icon' ] ] ); } else { $repeater->add_control( 'tp_social_selected_icon', [ 'show_label' => false, 'type' => Controls_Manager::ICONS, 'fa4compatibility' => 'icon', 'label_block' => true, 'default' => [ 'value' => 'fab fa-facebook-f', 'library' => 'solid', ], 'condition' => [ 'tp_social_icon_type' => 'icon' ] ] ); } $repeater->add_control( 'tp_social_link', [ 'label' => esc_html__( 'Social Profile Link', 'textdomain' ), 'type' => \Elementor\Controls_Manager::URL, 'placeholder' => esc_html__( 'https://your-link.com', 'textdomain' ), 'options' => [ 'url', 'is_external', 'nofollow' ], 'default' => [ 'url' => '#', 'is_external' => true, 'nofollow' => true, ], 'label_block' => true, ] ); $repeater->add_control( 'tp_social_title', [ 'label' => esc_html__('Social Profile Title', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'basic' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__('TP Profile Title', 'tpcore'), 'placeholder' => esc_html__('Type Heading Text', 'tpcore'), 'label_block' => true, ] ); $this->add_control( 'profiles', [ 'show_label' => false, 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'title_field' => '{{{ tp_social_title }}}', 'default' => [ [ 'tp_social_link' => ['url' => 'https://facebook.com/'], 'tp_social_title' => 'facebook', 'tp_social_selected_icon' => ['value' => 'fab fa-facebook-f'] ], [ 'tp_social_link' => ['url' => 'https://linkedin.com/'], 'tp_social_title' => 'linkedin', 'tp_social_selected_icon' => ['value' => 'fab fa-linkedin-in'] ], [ 'tp_social_link' => ['url' => 'https://twitter.com/'], 'tp_social_title' => 'twitter', 'tp_social_selected_icon' => ['value' => 'fab fa-twitter'] ] ], ] ); $this->end_controls_section(); } // style_tab_content protected function style_tab_content(){ $this->tp_section_style_controls('browser_section', 'Section Style', '.ele-section'); } /** * 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-2' ): $this->add_render_attribute('title_args', 'class', 'tp-section-title-lg text-white'); if ( !empty($settings['tp_image']['url']) ) { $tp_image = !empty($settings['tp_image']['id']) ? wp_get_attachment_image_url( $settings['tp_image']['id'], $settings['tp_image_size_size']) : $settings['tp_image']['url']; $tp_image_alt = get_post_meta($settings["tp_image"]["id"], "_wp_attachment_image_alt", true); } // Link if ('2' == $settings['tp_browser_btn_link_type']) { $this->add_render_attribute('tp-button-arg', 'href', get_permalink($settings['tp_browser_btn_page_link'])); $this->add_render_attribute('tp-button-arg', 'target', '_self'); $this->add_render_attribute('tp-button-arg', 'rel', 'nofollow'); $this->add_render_attribute('tp-button-arg', 'class', 'tp-btn-green'); } else { if ( ! empty( $settings['tp_browser_btn_link']['url'] ) ) { $this->add_link_attributes( 'tp-button-arg', $settings['tp_browser_btn_link'] ); $this->add_render_attribute('tp-button-arg', 'class', 'tp-btn-green'); } } ?> <?php else: if ( !empty($settings['tp_image']['url']) ) { $tp_image = !empty($settings['tp_image']['id']) ? wp_get_attachment_image_url( $settings['tp_image']['id'], $settings['tp_image_size_size']) : $settings['tp_image']['url']; $tp_image_alt = get_post_meta($settings["tp_image"]["id"], "_wp_attachment_image_alt", true); } // Link if ('2' == $settings['tp_browser_btn_link_type']) { $this->add_render_attribute('tp-button-arg', 'href', get_permalink($settings['tp_browser_btn_page_link'])); $this->add_render_attribute('tp-button-arg', 'target', '_self'); $this->add_render_attribute('tp-button-arg', 'rel', 'nofollow'); $this->add_render_attribute('tp-button-arg', 'class', 'tp-btn-blue-lg tp-btn-hover'); } else { if ( ! empty( $settings['tp_browser_btn_link']['url'] ) ) { $this->add_link_attributes( 'tp-button-arg', $settings['tp_browser_btn_link'] ); $this->add_render_attribute('tp-button-arg', 'class', 'tp-btn-blue-lg tp-btn-hover'); } } $this->add_render_attribute('title_args', 'class', 'tp-section-title-3'); ?> <div class="tp-browser-details-area pt-10 pb-10 p-relative"> <div class="container"> <div class="row align-items-center"> <div class="col-xl-9 col-lg-9"> <div class="tp-browser-section-box d-flex justify-content-between align-items-center mb-30"> <?php if ( !empty($settings['tp_title']) ) : printf( '<%1$s %2$s>%3$s</%1$s>', tag_escape( $settings['tp_title_tag'] ), $this->get_render_attribute_string( 'title_args' ), tp_kses( $settings['tp_title'] ) ); endif; ?> </div> <?php if(!empty($settings['tp_des'])) : ?> <p><?php echo tp_kses($settings['tp_des']); ?></p> <?php endif; ?> </div> <div class="col-xl-3 col-lg-3"> <div class="tp-browser-btn text-lg-end text-start mb-40"> <?php if ( !empty($settings['tp_browser_btn_text']) ) : ?> <a <?php echo $this->get_render_attribute_string( 'tp-button-arg' ); ?>> <span><?php echo tp_kses($settings['tp_browser_btn_text']); ?></span> <b></b> </a> <?php endif; ?> </div> </div> </div> <div class="row"> <div class="col-12"> <div class="tp-hero-browser-wrapper footer-browser-item d-flex align-items-center"> <?php foreach ($settings['profiles'] as $key => $item) : ?> <div class="tp-hero-browser-item"> <?php if(!empty($item['tp_social_link']['url'])) : ?> <a href="<?php echo esc_url($item['tp_social_link']['url']); ?>"> <?php if($item['tp_social_icon_type'] == 'icon') : ?> <?php if (!empty($item['tp_social_icon']) || !empty($item['tp_social_selected_icon']['value'])) : ?> <?php tp_render_icon($item, 'tp_social_icon', 'tp_social_selected_icon'); ?> <?php endif; ?> <?php elseif( $item['tp_social_icon_type'] == 'image' ) : ?> <?php if (!empty($item['tp_social_image']['url'])): ?> <img src="<?php echo $item['tp_social_image']['url']; ?>" alt="<?php echo get_post_meta(attachment_url_to_postid($item['tp_social_image']['url']), '_wp_attachment_image_alt', true); ?>"> <?php endif; ?> <?php else : ?> <?php if (!empty($item['tp_social_icon_svg'])): ?> <?php echo $item['tp_social_icon_svg']; ?> <?php endif; ?> <?php endif; ?> </a> <?php else : ?> <?php if($item['tp_social_icon_type'] == 'icon') : ?> <?php if (!empty($item['tp_social_icon']) || !empty($item['tp_social_selected_icon']['value'])) : ?> <?php tp_render_icon($item, 'tp_social_icon', 'tp_social_selected_icon'); ?> <?php endif; ?> <?php elseif( $item['tp_social_icon_type'] == 'image' ) : ?> <?php if (!empty($item['tp_social_image']['url'])): ?> <img src="<?php echo $item['tp_social_image']['url']; ?>" alt="<?php echo get_post_meta(attachment_url_to_postid($item['tp_social_image']['url']), '_wp_attachment_image_alt', true); ?>"> <?php endif; ?> <?php else : ?> <?php if (!empty($item['tp_social_icon_svg'])): ?> <?php echo $item['tp_social_icon_svg']; ?> <?php endif; ?> <?php endif; ?> <?php endif; ?> <?php if(!empty($item['tp_social_title'])) : ?> <p><?php echo tp_kses($item['tp_social_title']); ?></p> <?php endif; ?> </div> <?php endforeach; ?> </div> </div> </div> </div> </div> <?php endif; } } $widgets_manager->register( new TP_Browser_Link() );
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat