-
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
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; 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_About 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-about'; } /** * Retrieve the widget title. * * @since 1.0.0 * * @access public * * @return string Widget title. */ public function get_title() { return __( 'About', '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 [ '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(); } 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'), 'layout-3' => esc_html__('Layout 3', 'tp-core'), ], 'default' => 'layout-1', ] ); $this->end_controls_section(); $this->tp_section_title_render_controls('about', 'Section Title', 'Sub Title', 'your title here', $default_description = 'Hic nesciunt galisum aut dolorem aperiam eum soluta quod ea cupiditate.',['layout-1', 'layout-2', 'layout-3']); // Features group $this->start_controls_section( 'tp_features', [ 'label' => esc_html__('Features List', 'tpcore'), 'description' => esc_html__( 'Control all the style settings from Style tab', 'tpcore' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'condition' => [ 'tp_design_style' => ['layout-1', 'layout-2'] ] ] ); $repeater = new \Elementor\Repeater(); $repeater->add_control( 'repeater_condition', [ 'label' => __( 'Field condition', 'tpcore' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'style_1' => __( 'Style 1', 'tpcore' ), 'style_2' => __( 'Style 2', 'tpcore' ), 'style_3' => __( 'Style 3', 'tpcore' ), ], 'default' => 'style_1', 'frontend_available' => true, 'style_transfer' => true, ] ); $repeater->add_control( 'tp_features_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_features_image', [ 'label' => esc_html__('Upload Icon Image', 'tpcore'), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'condition' => [ 'tp_features_icon_type' => 'image', ] ] ); $repeater->add_control( 'tp_features_icon_svg', [ 'show_label' => false, 'type' => Controls_Manager::TEXTAREA, 'label_block' => true, 'placeholder' => esc_html__('SVG Code Here', 'tpcore'), 'condition' => [ 'tp_features_icon_type' => 'svg' ] ] ); if (tp_is_elementor_version('<', '2.6.0')) { $repeater->add_control( 'tp_features_icon', [ 'show_label' => false, 'type' => Controls_Manager::ICON, 'label_block' => true, 'default' => 'fa fa-star', 'condition' => [ 'tp_features_icon_type' => 'icon' ] ] ); } else { $repeater->add_control( 'tp_features_selected_icon', [ 'show_label' => false, 'type' => Controls_Manager::ICONS, 'fa4compatibility' => 'icon', 'label_block' => true, 'default' => [ 'value' => 'fas fa-star', 'library' => 'solid', ], 'condition' => [ 'tp_features_icon_type' => 'icon' ] ] ); } $repeater->add_control( 'tp_features_title', [ 'label' => esc_html__('Title', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'basic' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__('Service Title', 'tpcore'), 'label_block' => true, ] ); $repeater->add_control( 'tp_features_description', [ 'label' => esc_html__('Description', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'intermediate' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'default' => 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered.', 'label_block' => true, ] ); $this->add_control( 'tp_features_list', [ 'label' => esc_html__('Services - List', 'tpcore'), 'type' => \Elementor\Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'tp_features_title' => esc_html__('Discover', 'tpcore'), ], [ 'tp_features_title' => esc_html__('Define', 'tpcore') ], ], 'title_field' => '{{{ tp_features_title }}}', ] ); $this->end_controls_section(); $this->start_controls_section( 'tp_list_sec', [ 'label' => esc_html__( 'Info List', 'tpcore' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'condition' => [ 'tp_design_style' => ['layout-2', 'layout-3'] ] ] ); $repeater = new \Elementor\Repeater(); $repeater->add_control( 'tp_text_list_title', [ 'label' => esc_html__( 'Title', 'tpcore' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__( 'Default-value', 'tpcore' ), 'label_block' => true, ] ); $this->add_control( 'tp_text_list_list', [ 'label' => esc_html__( 'Features List', 'tpcore' ), 'type' => \Elementor\Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'tp_text_list_title' => esc_html__( 'Neque sodales', 'tpcore' ), ], [ 'tp_text_list_title' => esc_html__( 'Adipiscing elit', 'tpcore' ), ], [ 'tp_text_list_title' => esc_html__( 'Mauris commodo', 'tpcore' ), ], ], 'title_field' => '{{{ tp_text_list_title }}}', ] ); $this->end_controls_section(); // button $this->tp_button_render('about', 'Button', ['layout-1', 'layout-2', 'layout-3']); // badge $this->start_controls_section( '_tp_badge', [ 'label' => esc_html__('Badge', 'tp-core'), 'condition' => [ 'tp_design_style' => ['layout-1', 'layout-3'] ] ] ); $this->add_control( 'tp_badge_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'), ], ] ); $this->add_control( 'tp_badge_image', [ 'label' => esc_html__('Upload Icon Image', 'tpcore'), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'condition' => [ 'tp_badge_icon_type' => 'image', ] ] ); $this->add_control( 'tp_badge_icon_svg', [ 'show_label' => false, 'type' => Controls_Manager::TEXTAREA, 'label_block' => true, 'placeholder' => esc_html__('SVG Code Here', 'tpcore'), 'condition' => [ 'tp_badge_icon_type' => 'svg' ] ] ); if (tp_is_elementor_version('<', '2.6.0')) { $this->add_control( 'tp_badge_icon', [ 'show_label' => false, 'type' => Controls_Manager::ICON, 'label_block' => true, 'default' => 'fa fa-star', 'condition' => [ 'tp_badge_icon_type' => 'icon' ] ] ); } else { $this->add_control( 'tp_badge_selected_icon', [ 'show_label' => false, 'type' => Controls_Manager::ICONS, 'fa4compatibility' => 'icon', 'label_block' => true, 'default' => [ 'value' => 'fas fa-star', 'library' => 'solid', ], 'condition' => [ 'tp_badge_icon_type' => 'icon' ] ] ); } $this->add_control( 'tp_badge_title', [ 'label' => esc_html__('Title', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'basic' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__('Badge Title', 'tpcore'), 'label_block' => true, ] ); $this->end_controls_section(); // client area $this->start_controls_section( '_tp_client', [ 'label' => esc_html__('Client Area', 'tp-core'), 'condition' => [ 'tp_design_style' => 'layout-1' ] ] ); $this->add_control( 'tp_client_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'), ], ] ); $this->add_control( 'tp_client_image', [ 'label' => esc_html__('Upload Icon Image', 'tpcore'), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'condition' => [ 'tp_client_icon_type' => 'image', ] ] ); $this->add_control( 'tp_client_icon_svg', [ 'show_label' => false, 'type' => Controls_Manager::TEXTAREA, 'label_block' => true, 'placeholder' => esc_html__('SVG Code Here', 'tpcore'), 'condition' => [ 'tp_client_icon_type' => 'svg' ] ] ); if (tp_is_elementor_version('<', '2.6.0')) { $this->add_control( 'tp_client_icon', [ 'show_label' => false, 'type' => Controls_Manager::ICON, 'label_block' => true, 'default' => 'fa fa-star', 'condition' => [ 'tp_client_icon_type' => 'icon' ] ] ); } else { $this->add_control( 'tp_client_selected_icon', [ 'show_label' => false, 'type' => Controls_Manager::ICONS, 'fa4compatibility' => 'icon', 'label_block' => true, 'default' => [ 'value' => 'fas fa-star', 'library' => 'solid', ], 'condition' => [ 'tp_client_icon_type' => 'icon' ] ] ); } $this->add_control( 'tp_client_title', [ 'label' => esc_html__('Title', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'basic' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__('Jone Linkon', 'tpcore'), 'label_block' => true, ] ); $this->add_control( 'tp_client_desi', [ 'label' => esc_html__('Designation', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'basic' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'default' => esc_html__('Founder Of Themepure', 'tpcore'), 'label_block' => true, ] ); $this->end_controls_section(); // _tp_image $this->start_controls_section( '_tp_image', [ 'label' => esc_html__('Thumbnail', 'tp-core'), 'condition' => [ 'tp_design_style' => ['layout-1', 'layout-2', 'layout-3'] ] ] ); $this->add_control( 'tp_image', [ 'label' => esc_html__( 'Choose Image', 'tp-core' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], ] ); $this->add_control( 'tp_image_2', [ 'label' => esc_html__( 'Choose Image 2', 'tp-core' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], ] ); $this->add_control( 'tp_image_3', [ 'label' => esc_html__( 'Choose Image 3', 'tp-core' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], 'condition' => [ 'tp_design_style' => 'layout-3' ] ] ); $this->add_group_control( Group_Control_Image_Size::get_type(), [ 'name' => 'tp_image_size', 'default' => 'full', 'exclude' => [ 'custom' ] ] ); $this->end_controls_section(); // fact area $this->start_controls_section( '_tp_fact', [ 'label' => esc_html__('Fun Fact', 'tp-core'), 'condition' => [ 'tp_design_style' => ['layout-1', 'layout-2', 'layout-3'] ] ] ); $this->add_control( 'tp_fact_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'), ], 'condition' => [ 'tp_design_style' => 'layout-1' ] ] ); $this->add_control( 'tp_fact_image', [ 'label' => esc_html__('Upload Icon Image', 'tpcore'), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'condition' => [ 'tp_fact_icon_type' => 'image', 'tp_design_style' => 'layout-1' ] ] ); $this->add_control( 'tp_fact_icon_svg', [ 'show_label' => false, 'type' => Controls_Manager::TEXTAREA, 'label_block' => true, 'placeholder' => esc_html__('SVG Code Here', 'tpcore'), 'condition' => [ 'tp_fact_icon_type' => 'svg', 'tp_design_style' => 'layout-1' ] ] ); if (tp_is_elementor_version('<', '2.6.0')) { $this->add_control( 'tp_fact_icon', [ 'show_label' => false, 'type' => Controls_Manager::ICON, 'label_block' => true, 'default' => 'fa fa-star', 'condition' => [ 'tp_fact_icon_type' => 'icon', 'tp_design_style' => 'layout-1' ] ] ); } else { $this->add_control( 'tp_fact_selected_icon', [ 'show_label' => false, 'type' => Controls_Manager::ICONS, 'fa4compatibility' => 'icon', 'label_block' => true, 'default' => [ 'value' => 'fas fa-star', 'library' => 'solid', ], 'condition' => [ 'tp_fact_icon_type' => 'icon', 'tp_design_style' => 'layout-1' ] ] ); } $this->add_control( 'tp_fact_number', [ 'label' => esc_html__('Number', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'basic' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__('889', 'tpcore'), 'label_block' => true, ] ); $this->add_control( 'tp_fact_after', [ 'label' => esc_html__('After Content', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'basic' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__('+', 'tpcore'), 'label_block' => true, 'condition' => [ 'tp_design_style' => 'layout-1' ] ] ); $this->add_control( 'tp_fact_des', [ 'label' => esc_html__('Description', 'tpcore'), 'description' => tp_get_allowed_html_desc( 'basic' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__('Satisfied Customer', 'tpcore'), 'label_block' => true, ] ); $this->end_controls_section(); // shape section $this->start_controls_section( 'tp_shape', [ 'label' => esc_html__( 'Section Shape', 'tpcore' ), 'condition' => [ 'tp_design_style' => 'layout-2' ] ] ); $this->add_control( 'tp_shape_switch', [ 'label' => esc_html__( 'Shape On/Off', 'tpcore' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Show', 'tpcore' ), 'label_off' => esc_html__( 'Hide', 'tpcore' ), 'return_value' => 'yes', 'default' => '0', ] ); $this->add_control( 'tp_shape_image_1', [ 'label' => esc_html__( 'Choose Shape Image 1', 'tp-core' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], 'condition' => [ 'tp_shape_switch' => 'yes' ] ] ); $this->add_control( 'tp_shape_image_2', [ 'label' => esc_html__( 'Choose Shape Image 2', 'tp-core' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], 'condition' => [ 'tp_shape_switch' => 'yes' ] ] ); $this->add_group_control( Group_Control_Image_Size::get_type(), [ 'name' => 'shape_image_size', // // Usage: `{name}_size` and `{name}_custom_dimension`, in this case `thumbnail_size` and `thumbnail_custom_dimension`. 'exclude' => ['custom'], 'condition' => [ 'tp_shape_switch' => 'yes' ], 'default' => 'full' ] ); $this->end_controls_section(); } // style_tab_content protected function style_tab_content(){ $this->tp_section_style_controls('about_section', 'Section - Style', '.tp-el-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' ) : // thumbnail image 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); } if ( !empty($settings['tp_image_2']['url']) ) { $tp_image_2 = !empty($settings['tp_image_2']['id']) ? wp_get_attachment_image_url( $settings['tp_image_2']['id'], $settings['tp_image_size_size']) : $settings['tp_image_2']['url']; $tp_image_alt_2 = get_post_meta($settings['tp_image_2']["id"], "_wp_attachment_image_alt", true); } // shape image if ( !empty($settings['tp_shape_image_1']['url']) ) { $tp_shape_image = !empty($settings['tp_shape_image_1']['id']) ? wp_get_attachment_image_url( $settings['tp_shape_image_1']['id'], $settings['shape_image_size_size']) : $settings['tp_shape_image_1']['url']; $tp_shape_image_alt = get_post_meta($settings["tp_shape_image_1"]["id"], "_wp_attachment_image_alt", true); } if ( !empty($settings['tp_shape_image_2']['url']) ) { $tp_shape_image_2 = !empty($settings['tp_shape_image_2']['id']) ? wp_get_attachment_image_url( $settings['tp_shape_image_2']['id'], $settings['shape_image_size_size']) : $settings['tp_shape_image_2']['url']; $tp_shape_image_alt_2 = get_post_meta($settings["tp_shape_image_2"]["id"], "_wp_attachment_image_alt", true); } // Link if ('2' == $settings['tp_about_btn_link_type']) { $this->add_render_attribute('tp-button-arg', 'href', get_permalink($settings['tp_about_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'); } else { if ( ! empty( $settings['tp_about_btn_link']['url'] ) ) { $this->add_link_attributes( 'tp-button-arg', $settings['tp_about_btn_link'] ); $this->add_render_attribute('tp-button-arg', 'class', 'tp-btn'); } } $this->add_render_attribute('title_args', 'class', 'tp-section-title mb-10'); ?> <div class="tp-about-area-2 p-relative fix"> <?php if(!empty($tp_shape_image)) : ?> <div class="tp-about-bg"> <img src="<?php echo esc_url($tp_shape_image); ?>" alt="<?php echo esc_attr($tp_shape_image_alt); ?>"> </div> <?php endif; ?> <?php if(!empty($tp_shape_image_2)) : ?> <div class="tp-about-man-img"> <img src="<?php echo esc_url($tp_shape_image_2); ?>" alt="<?php echo esc_attr($tp_shape_image_alt_2); ?>"> </div> <?php endif; ?> <div class="container"> <div class="row"> <div class="col-xl-5 col-lg-5 col-md-12"> <div class="tp-about-2__wapper text-lg-end text-center mb-30 p-relative"> <?php if(!empty($settings['tp_fact_number'])) : ?> <div class="counter__item"> <div class="counter__content experience"> <h2 class="counter__title "><span class="counter"><?php echo tp_kses($settings['tp_fact_number']); ?></span></h2> <?php if(!empty($settings['tp_fact_des'])) : ?> <p><?php echo tp_kses($settings['tp_fact_des']); ?></p> <?php endif; ?> </div> </div> <?php endif; ?> <?php if(!empty($tp_image)) : ?> <div class="tp-about-2__ab-sec-img mr-35"> <img src="<?php echo esc_url($tp_image); ?>" alt="<?php echo esc_attr($tp_image_alt); ?>"> </div> <?php endif; ?> <?php if(!empty($tp_image_2)) : ?> <div class="tp-about-2__ab-third-img"> <img src="<?php echo esc_url($tp_image_2); ?>" alt="<?php echo esc_attr($tp_image_alt_2); ?>"> </div> <?php endif; ?> </div> </div> <div class="col-xl-7 col-lg-7 col-md-12"> <div class="tp-about-wrap ml-70"> <?php if ( !empty($settings['tp_about_section_title_show']) ) : ?> <div class="tp-section-box text-start mb-30"> <?php if ( !empty($settings['tp_about_sub_title']) ) : ?> <div class="tp-section-subtitle subtitle-before mb-10"><?php echo tp_kses( $settings['tp_about_sub_title'] ); ?></div> <?php endif; ?> <?php if ( !empty($settings['tp_about_title' ]) ) : printf( '<%1$s %2$s>%3$s</%1$s>', tag_escape( $settings['tp_about_title_tag'] ), $this->get_render_attribute_string( 'title_args' ), tp_kses( $settings['tp_about_title' ] ) ); endif; ?> <?php if ( !empty($settings['tp_about_description']) ) : ?> <p class="tp-about-pre"><?php echo tp_kses( $settings['tp_about_description'] ); ?></p> <?php endif; ?> </div> <?php endif; ?> <?php foreach($settings['tp_features_list'] as $key => $item) : ?> <div class="d-flex align-items-center contact_header_one pb-30"> <?php if($item['tp_features_icon_type'] == 'icon') : ?> <?php if (!empty($item['tp_features_icon']) || !empty($item['tp_features_selected_icon']['value'])) : ?> <div class="tp-about-2__icon_s"><?php tp_render_icon($item, 'tp_features_icon', 'tp_features_selected_icon'); ?></div> <?php endif; ?> <?php elseif( $item['tp_features_icon_type'] == 'image' ) : ?> <?php if (!empty($item['tp_features_image']['url'])): ?> <div class="tp-about-2__icon_s"><img src="<?php echo $item['tp_features_image']['url']; ?>" alt="<?php echo get_post_meta(attachment_url_to_postid($item['tp_features_image']['url']), '_wp_attachment_image_alt', true); ?>"></div> <?php endif; ?> <?php else : ?> <?php if (!empty($item['tp_features_icon_svg'])): ?> <div class="tp-about-2__icon_s"><?php echo $item['tp_features_icon_svg']; ?></div> <?php endif; ?> <?php endif; ?> <div class="tp-about-2__content"> <?php if(!empty($item['tp_features_title'])) : ?> <h6 class="tite"><?php echo tp_kses($item['tp_features_title']); ?></h6> <?php endif; ?> <?php if(!empty($item['tp_features_description'])) : ?> <div class="title_20"><?php echo tp_kses($item['tp_features_description']); ?></div> <?php endif; ?> </div> </div> <?php endforeach; ?> <div class="help-list"> <ul> <?php foreach ($settings['tp_text_list_list'] as $key => $item) :?> <li><i class="fa-solid fa-badge-check"></i><span><?php echo tp_kses($item['tp_text_list_title']); ?></span></li> <?php endforeach; ?> </ul> </div> <?php if ( !empty($settings['tp_about_btn_text']) ) : ?> <div class="tp-about-2__btn-box pt-20"> <a <?php echo $this->get_render_attribute_string( 'tp-button-arg' ); ?> ><?php echo tp_kses($settings['tp_about_btn_text']); ?></a> </div> <?php endif; ?> </div> </div> </div> </div> </div> <?php elseif ( $settings['tp_design_style'] == 'layout-3' ) : // thumbnail image 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); } if ( !empty($settings['tp_image_2']['url']) ) { $tp_image_2 = !empty($settings['tp_image_2']['id']) ? wp_get_attachment_image_url( $settings['tp_image_2']['id'], $settings['tp_image_size_size']) : $settings['tp_image_2']['url']; $tp_image_alt_2 = get_post_meta($settings['tp_image_2']["id"], "_wp_attachment_image_alt", true); } if ( !empty($settings['tp_image_3']['url']) ) { $tp_image_3 = !empty($settings['tp_image_3']['id']) ? wp_get_attachment_image_url( $settings['tp_image_3']['id'], $settings['tp_image_size_size']) : $settings['tp_image_3']['url']; $tp_image_alt_3 = get_post_meta($settings['tp_image_3']["id"], "_wp_attachment_image_alt", true); } // Link if ('2' == $settings['tp_about_btn_link_type']) { $this->add_render_attribute('tp-button-arg', 'href', get_permalink($settings['tp_about_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'); } else { if ( ! empty( $settings['tp_about_btn_link']['url'] ) ) { $this->add_link_attributes( 'tp-button-arg', $settings['tp_about_btn_link'] ); $this->add_render_attribute('tp-button-arg', 'class', 'tp-btn'); } } $this->add_render_attribute('title_args', 'class', 'tp-section-title mb-20'); ?> <div class="tp-about-3__area pt-120 pb-90"> <div class="container"> <div class="row g-0"> <div class="col-xl-5 col-lg-6 col-md-12"> <div class="tp-about-3__wrapper p-relative mr-20 mt-40 mb-70"> <div class="tp-about-3__box"> <?php if(!empty($tp_image)) : ?> <div class="ms-img"> <img src="<?php echo esc_url($tp_image); ?>" alt="<?php echo esc_attr($tp_image_alt); ?>"> </div> <?php endif; ?> <?php if(!empty($tp_image_2)) : ?> <div class="lg-img"> <img src="<?php echo esc_url($tp_image_2); ?>" alt="<?php echo esc_attr($tp_image_alt_2); ?>"> </div> <?php endif; ?> <?php if(!empty($tp_image_3)) : ?> <div class="md-img"> <img src="<?php echo esc_url($tp_image_3); ?>" alt="<?php echo esc_attr($tp_image_alt_3); ?>"> </div> <?php endif; ?> <div class="tp-about-3__counter p-relative ml-60"> <div class="shap"> <img src="<?php echo get_template_directory_uri(); ?>/assets/img/project/shap3.png" alt=""> </div> <?php if(!empty($settings['tp_fact_number'])) : ?> <h2 class="tp-about-3__title "><span class="counter"><?php echo tp_kses($settings['tp_fact_number']); ?></span></h2> <?php endif; ?> <?php if(!empty($settings['tp_fact_des'])) : ?> <p><?php echo tp_kses($settings['tp_fact_des']); ?></p> <?php endif; ?> </div> </div> </div> </div> <div class="col-xl-7 col-lg-6 col-md-12"> <div class="wrapper-box"> <?php if ( !empty($settings['tp_about_section_title_show']) ) : ?> <div class="tp-section-box text-start mb-30"> <?php if ( !empty($settings['tp_about_sub_title']) ) : ?> <div class="tp-section-subtitle mb-10"><?php echo tp_kses( $settings['tp_about_sub_title'] ); ?></div> <?php endif; ?> <?php if ( !empty($settings['tp_about_title' ]) ) : printf( '<%1$s %2$s>%3$s</%1$s>', tag_escape( $settings['tp_about_title_tag'] ), $this->get_render_attribute_string( 'title_args' ), tp_kses( $settings['tp_about_title' ] ) ); endif; ?> <?php if ( !empty($settings['tp_about_description']) ) : ?> <p class="tp-section-pre mb-30"><?php echo tp_kses( $settings['tp_about_description'] ); ?></p> <?php endif; ?> </div> <?php endif; ?> <div class="tp-about-3__content"> <div class="row"> <div class="col-xl-8"> <div class="tp-about-3__wrap"> <div class="help-list"> <ul> <?php foreach ($settings['tp_text_list_list'] as $key => $item) :?> <li><i class="fa-solid fa-badge-check"></i><span><?php echo tp_kses($item['tp_text_list_title']); ?></span></li> <?php endforeach; ?> </ul> </div> <?php if ( !empty($settings['tp_about_btn_text']) ) : ?> <div class="tp-about-3__btn-box pt-20"> <a <?php echo $this->get_render_attribute_string( 'tp-button-arg' ); ?> ><?php echo tp_kses($settings['tp_about_btn_text']); ?></a> </div> <?php endif; ?> </div> </div> <div class="col-xl-4"> <?php if(!empty($settings['tp_badge_title'])) : ?> <div class="tp-about-3__trusted-by text-center mt-70"> <div class="tp-about-3__trusted-content"> <?php if($settings['tp_badge_icon_type'] == 'icon') : ?> <?php if (!empty($settings['tp_badge_icon']) || !empty($settings['tp_badge_selected_icon']['value'])) : ?> <div class="tp-about-3__trusted-by-icon"> <span> <?php tp_render_icon($settings, 'tp_badge_icon', 'tp_badge_selected_icon'); ?> </span> </div> <?php endif; ?> <?php elseif( $settings['tp_badge_icon_type'] == 'image' ) : ?> <?php if (!empty($settings['tp_badge_image']['url'])): ?> <div class="tp-about-3__trusted-by-icon"> <span> <img src="<?php echo $settings['tp_badge_image']['url']; ?>" alt="<?php echo get_post_meta(attachment_url_to_postid($settings['tp_badge_image']['url']), '_wp_attachment_image_alt', true); ?>"> </span> </div> <?php endif; ?> <?php else : ?> <?php if (!empty($settings['tp_badge_icon_svg'])): ?> <div class="tp-about-3__trusted-by-icon"> <span> <?php echo $settings['tp_badge_icon_svg']; ?> </span> </div> <?php endif; ?> <?php endif; ?> <?php if(!empty($settings['tp_badge_title'])) : ?> <b><?php echo tp_kses($settings['tp_badge_title']); ?></b> <?php endif; ?> </div> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> </div> </div> <?php else: // thumbnail image 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); } if ( !empty($settings['tp_image_2']['url']) ) { $tp_image_2 = !empty($settings['tp_image_2']['id']) ? wp_get_attachment_image_url( $settings['tp_image_2']['id'], $settings['tp_image_size_size']) : $settings['tp_image_2']['url']; $tp_image_alt_2 = get_post_meta($settings['tp_image_2']["id"], "_wp_attachment_image_alt", true); } // Link if ('2' == $settings['tp_about_btn_link_type']) { $this->add_render_attribute('tp-button-arg', 'href', get_permalink($settings['tp_about_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'); } else { if ( ! empty( $settings['tp_about_btn_link']['url'] ) ) { $this->add_link_attributes( 'tp-button-arg', $settings['tp_about_btn_link'] ); $this->add_render_attribute('tp-button-arg', 'class', 'tp-btn'); } } $this->add_render_attribute('title_args', 'class', 'tp-section-title mb-20'); ?> <div class="tp-about-area pt-120 pb-90"> <div class="container"> <div class="row"> <div class="col-xl-5 col-lg-6 col-md-10"> <div class="tp-about__wapper mb-30 p-relative"> <?php if(!empty($tp_image)) : ?> <div class="tp-about__main-img"> <img class="ab-1st-img" src="<?php echo esc_url($tp_image); ?>" alt="<?php echo esc_attr($tp_image_alt); ?>"> </div> <?php endif; ?> <?php if(!empty($tp_image_2)) : ?> <div class="tp-about__sec-img"> <img src="<?php echo esc_url($tp_image_2); ?>" alt="<?php echo esc_attr($tp_image_alt_2); ?>"> </div> <?php endif; ?> <div class="tp-about-counter"> <?php if($settings['tp_fact_icon_type'] == 'icon') : ?> <?php if (!empty($settings['tp_fact_icon']) || !empty($settings['tp_fact_selected_icon']['value'])) : ?> <div class="tp-about-counter-icon mt-5"> <span> <?php tp_render_icon($settings, 'tp_fact_icon', 'tp_fact_selected_icon'); ?> </span> </div> <?php endif; ?> <?php elseif( $settings['tp_fact_icon_type'] == 'image' ) : ?> <?php if (!empty($settings['tp_fact_image']['url'])): ?> <div class="tp-about-counter-icon mt-5"> <span> <img src="<?php echo $settings['tp_fact_image']['url']; ?>" alt="<?php echo get_post_meta(attachment_url_to_postid($settings['tp_fact_image']['url']), '_wp_attachment_image_alt', true); ?>"> </span> </div> <?php endif; ?> <?php else : ?> <?php if (!empty($settings['tp_fact_icon_svg'])): ?> <div class="tp-about-counter-icon mt-5"> <span> <?php echo $settings['tp_fact_icon_svg']; ?> </span> </div> <?php endif; ?> <?php endif; ?> <div class="counter__item"> <div class="counter__content"> <?php if(!empty($settings['tp_fact_number'])) : ?> <h3 class="counter__title"><span class="counter"><?php echo tp_kses($settings['tp_fact_number']); ?></span><?php echo $settings['tp_fact_after'] ? $settings['tp_fact_after'] : NULL; ?></h3> <?php endif; ?> <?php if(!empty($settings['tp_fact_des'])) : ?> <p><?php echo tp_kses($settings['tp_fact_des']); ?></p> <?php endif; ?> </div> </div> </div> </div> </div> <div class="col-xl-7 col-lg-6 col-md-12 "> <div class="tp-about__wrap ml-85"> <?php if ( !empty($settings['tp_about_section_title_show']) ) : ?> <div class="tp-about__title-box"> <?php if ( !empty($settings['tp_about_sub_title']) ) : ?> <div class="tp-section-subtitle mb-10"><?php echo tp_kses( $settings['tp_about_sub_title'] ); ?></div> <?php endif; ?> <?php if ( !empty($settings['tp_about_title' ]) ) : printf( '<%1$s %2$s>%3$s</%1$s>', tag_escape( $settings['tp_about_title_tag'] ), $this->get_render_attribute_string( 'title_args' ), tp_kses( $settings['tp_about_title' ] ) ); endif; ?> <?php if ( !empty($settings['tp_about_description']) ) : ?> <p class="tp-section-pre mb-30"><?php echo tp_kses( $settings['tp_about_description'] ); ?></p> <?php endif; ?> </div> <?php endif; ?> <div class="tp-about__content"> <div class="row"> <div class="col-xl-8"> <?php foreach($settings['tp_features_list'] as $key => $item) : $itemCount = count($settings['tp_features_list']) - 1; $marginClas = $key < $itemCount ? 'mb-20' : NULL; ?> <div class="tp-about__save-money <?php echo esc_attr($marginClas); ?>"> <?php if($item['tp_features_icon_type'] == 'icon') : ?> <?php if (!empty($item['tp_features_icon']) || !empty($item['tp_features_selected_icon']['value'])) : ?> <span><?php tp_render_icon($item, 'tp_features_icon', 'tp_features_selected_icon'); ?></span> <?php endif; ?> <?php elseif( $item['tp_features_icon_type'] == 'image' ) : ?> <?php if (!empty($item['tp_features_image']['url'])): ?> <span><img src="<?php echo $item['tp_features_image']['url']; ?>" alt="<?php echo get_post_meta(attachment_url_to_postid($item['tp_features_image']['url']), '_wp_attachment_image_alt', true); ?>"></span> <?php endif; ?> <?php else : ?> <?php if (!empty($item['tp_features_icon_svg'])): ?> <span><?php echo $item['tp_features_icon_svg']; ?></span> <?php endif; ?> <?php endif; ?> <div class="tp-about__save-money-content"> <?php if(!empty($item['tp_features_title'])) : ?> <h4><?php echo tp_kses($item['tp_features_title']); ?></h4> <?php endif; ?> <?php if(!empty($item['tp_features_description'])) : ?> <p><?php echo tp_kses($item['tp_features_description']); ?></p> <?php endif; ?> </div> </div> <?php endforeach; ?> </div> <div class="col-xl-4"> <?php if(!empty($settings['tp_badge_title'])) : ?> <div class="tp-about__trusted-by text-center p-relative"> <?php if($settings['tp_badge_icon_type'] == 'icon') : ?> <?php if (!empty($settings['tp_badge_icon']) || !empty($settings['tp_badge_selected_icon']['value'])) : ?> <div class="tp-about__trusted-by-icon"> <span> <?php tp_render_icon($settings, 'tp_badge_icon', 'tp_badge_selected_icon'); ?> </span> </div> <?php endif; ?> <?php elseif( $settings['tp_badge_icon_type'] == 'image' ) : ?> <?php if (!empty($settings['tp_badge_image']['url'])): ?> <div class="tp-about__trusted-by-icon"> <span> <img src="<?php echo $settings['tp_badge_image']['url']; ?>" alt="<?php echo get_post_meta(attachment_url_to_postid($settings['tp_badge_image']['url']), '_wp_attachment_image_alt', true); ?>"> </span> </div> <?php endif; ?> <?php else : ?> <?php if (!empty($settings['tp_badge_icon_svg'])): ?> <div class="tp-about__trusted-by-icon"> <span> <?php echo $settings['tp_badge_icon_svg']; ?> </span> </div> <?php endif; ?> <?php endif; ?> <?php if(!empty($settings['tp_badge_title'])) : ?> <b><?php echo tp_kses($settings['tp_badge_title']); ?></b> <?php endif; ?> </div> <?php endif; ?> </div> </div> </div> <div class="tp-about__btn-box"> <div class="tp-about__author mt-40 "> <?php if ( !empty($settings['tp_about_btn_text']) ) : ?> <div class="about-btn mr-30 mb-25"> <a <?php echo $this->get_render_attribute_string( 'tp-button-arg' ); ?> ><?php echo tp_kses($settings['tp_about_btn_text']); ?></a> </div> <?php endif; ?> <div class="tp-about__author-inner mb-25"> <?php if($settings['tp_client_icon_type'] == 'icon') : ?> <?php if (!empty($settings['tp_client_icon']) || !empty($settings['tp_client_selected_icon']['value'])) : ?> <div class="tp-about__author-thumb"> <?php tp_render_icon($settings, 'tp_client_icon', 'tp_client_selected_icon'); ?> </div> <?php endif; ?> <?php elseif( $settings['tp_client_icon_type'] == 'image' ) : ?> <?php if (!empty($settings['tp_client_image']['url'])): ?> <div class="tp-about__author-thumb"> <img src="<?php echo $settings['tp_client_image']['url']; ?>" alt="<?php echo get_post_meta(attachment_url_to_postid($settings['tp_client_image']['url']), '_wp_attachment_image_alt', true); ?>"> </div> <?php endif; ?> <?php else : ?> <?php if (!empty($settings['tp_client_icon_svg'])): ?> <div class="tp-about__author-thumb"> <?php echo $settings['tp_client_icon_svg']; ?> </div> <?php endif; ?> <?php endif; ?> <div class="tp-about__author-content"> <?php if(!empty($settings['tp_client_title'])) : ?> <h4 class="tp-about__author-title"><?php echo tp_kses($settings['tp_client_title']); ?></h4> <?php endif; ?> <?php if(!empty($settings['tp_client_desi'])) : ?> <span><?php echo tp_kses($settings['tp_client_desi']); ?></span> <?php endif; ?> </div> </div> </div> </div> </div> </div> </div> </div> </div> <?php endif; } } $widgets_manager->register( new TP_About() );
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat