-
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_CTA 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-cta'; } /** * Retrieve the widget title. * * @since 1.0.0 * * @access public * * @return string Widget title. */ public function get_title() { return __( 'CTA', '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'), 'layout-3' => esc_html__('Layout 3', 'tp-core'), 'layout-4' => esc_html__('Layout 4', 'tp-core'), ], 'default' => 'layout-1', ] ); $this->end_controls_section(); // tp_section_title $this->tp_section_title_render_controls('section', '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','layout-4']); $this->tp_button_render('cta', 'Button', ['layout-1', 'layout-2','layout-3','layout-4']); // _tp_image $this->start_controls_section( '_tp_extra_section', [ 'label' => esc_html__('Extra Info', 'tpcore'), 'condition' => [ 'tp_design_style' => ['layout-2'] ] ] ); $this->add_control( 'email_address', [ 'label' => esc_html__( 'Email Address', 'tpcore' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => 'somthing@tp.com', 'condition' => [ 'tp_design_style' => ['layout-4'] ] ] ); //icon image svg $this->add_control( 'tp_box_icon_type', [ 'label' => esc_html__('Select Icon Type', 'tpcore'), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 'svg', 'options' => [ 'image' => esc_html__('Image', 'tpcore'), 'icon' => esc_html__('Icon', 'tpcore'), 'svg' => esc_html__('SVG', 'tpcore'), ], 'condition' => [ 'tp_design_style' => ['layout-2'], ] ] ); $this->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', 'tp_design_style' => ['layout-2'], ] ] ); $this->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', 'tp_design_style' => ['layout-2'], ] ] ); if (tp_is_elementor_version('<', '2.6.0')) { $this->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', 'tp_design_style' => ['layout-2'], ] ] ); } else { $this->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', 'tp_design_style' => ['layout-2'], ] ] ); } //icon image svg 2 $this->add_control( 'phone_number', [ 'label' => esc_html__( 'Phone Number', 'tpcore' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => '0208 446 4695', 'condition' => [ 'tp_design_style' => ['layout-3','layout-4'] ] ] ); $this->add_control( 'tp_box_icon_type_2', [ 'label' => esc_html__('Select Icon Type 2', 'tpcore'), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 'svg', 'options' => [ 'image' => esc_html__('Image', 'tpcore'), 'icon' => esc_html__('Icon', 'tpcore'), 'svg' => esc_html__('SVG', 'tpcore'), ], 'condition' => [ 'tp_design_style' => ['layout-4'], ] ] ); $this->add_control( 'tp_box_icon_svg_2', [ 'show_label' => false, 'type' => Controls_Manager::TEXTAREA, 'label_block' => true, 'placeholder' => esc_html__('SVG Code Here', 'tpcore'), 'condition' => [ 'tp_box_icon_type_2' => 'svg', 'tp_design_style' => ['layout-4'], ] ] ); $this->add_control( 'tp_box_icon_image_2', [ 'label' => esc_html__('Upload Icon Image for 2', 'tpcore'), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'condition' => [ 'tp_box_icon_type_2' => 'image', 'tp_design_style' => ['layout-4'], ] ] ); if (tp_is_elementor_version('<', '2.6.0')) { $this->add_control( 'tp_box_icon_2', [ 'show_label' => false, 'type' => Controls_Manager::ICON, 'label_block' => true, 'default' => 'fa fa-star', 'condition' => [ 'tp_box_icon_type_2' => 'icon', 'tp_design_style' => ['layout-4'], ] ] ); } else { $this->add_control( 'tp_box_selected_icon_2', [ 'show_label' => false, 'type' => Controls_Manager::ICONS, 'fa4compatibility' => 'icon', 'label_block' => true, 'default' => [ 'value' => 'fas fa-star', 'library' => 'solid', ], 'condition' => [ 'tp_box_icon_type_2' => 'icon', 'tp_design_style' => ['layout-4'], ] ] ); $this->add_control( 'cta_contact_us_at_text', [ 'label' => esc_html__( 'Email Extra Text', 'tpcore' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => 'Contact us at ', 'condition' => [ 'tp_design_style' => ['layout-3','layout-4'] ] ] ); $this->add_control( 'cta_phone_extra_text', [ 'label' => esc_html__( 'Phone Extra Text', 'tpcore' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'default' => 'PERFECT SOLUTION From ', 'condition' => [ 'tp_design_style' => ['layout-3','layout-4'] ] ] ); } $this->end_controls_section(); // _tp_image $this->start_controls_section( '_tp_image', [ 'label' => esc_html__('Thumbnail', 'tpcore'), 'condition' => [ 'tp_design_style' => ['layout-1','layout-2','layout-3','layout-4'] ] ] ); $this->add_control( 'tp_image', [ 'label' => esc_html__( 'Choose Image', 'tpcore' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], ] ); $this->add_group_control( Group_Control_Image_Size::get_type(), [ 'name' => 'tp_image_size', 'default' => 'full', 'exclude' => [ 'custom' ] ] ); $this->end_controls_section(); // cta shape $this->start_controls_section( 'tp_cta_shape', [ 'label' => esc_html__( 'Section Shape', 'tpcore' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'condition' => [ 'tp_design_style' => 'layout-5' ] ] ); $this->add_control( 'tp_cta_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_cta_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_cta_shape_switch' => 'yes' ] ] ); $this->add_control( 'tp_shape_image_3', [ 'label' => esc_html__( 'Choose Shape Image 3', 'tp-core' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], 'condition' => [ 'tp_cta_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_cta_shape_switch' => 'yes' ] ] ); $this->end_controls_section(); } // style_tab_content protected function style_tab_content(){ $this->tp_section_style_controls('cta_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-4' ): // thumbnail 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_cta_btn_link_type']) { $this->add_render_attribute('tp-button-arg', 'href', get_permalink($settings['tp_cta_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-black'); } else { if ( ! empty( $settings['tp_cta_btn_link']['url'] ) ) { $this->add_link_attributes( 'tp-button-arg', $settings['tp_cta_btn_link'] ); $this->add_render_attribute('tp-button-arg', 'class', 'tp-btn-black'); } } $this->add_render_attribute('title_args', 'class', 'cta-titile'); ?> <div class="tp-cta-4__area p-relative cta-mlr mb-0" style="background-image: url(<?php echo esc_url($tp_image); ?>)"> <div class="container "> <div class="tp-cta-4__bg "> <div class="row align-items-center"> <div class="col-xl-8"> <?php if ( !empty($settings['tp_section_title' ]) ) : printf( '<%1$s %2$s>%3$s</%1$s>', tag_escape( $settings['tp_section_title_tag'] ), $this->get_render_attribute_string( 'title_args' ), tp_kses( $settings['tp_section_title' ] ) ); endif; ?> </div> <?php if ( !empty($settings['tp_cta_btn_text']) ) : ?> <div class="col-xl-4"> <div class="tp-cta-4__right text-end"> <div class="tp-cta-4__btn pt-10"> <a <?php echo $this->get_render_attribute_string( 'tp-button-arg' ); ?>><?php echo tp_kses($settings['tp_cta_btn_text']); ?></a> </div> </div> </div> <?php endif; ?> </div> </div> </div> </div> <?php elseif ( $settings['tp_design_style'] == 'layout-3' ): // thumbnail 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_cta_btn_link_type']) { $this->add_render_attribute('tp-button-arg', 'href', get_permalink($settings['tp_cta_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-3'); } else { if ( ! empty( $settings['tp_cta_btn_link']['url'] ) ) { $this->add_link_attributes( 'tp-button-arg', $settings['tp_cta_btn_link'] ); $this->add_render_attribute('tp-button-arg', 'class', 'tp-btn-3'); } } $this->add_render_attribute('title_args', 'class', 'tp-cta-title mb-40'); ?> <div class="tp-cta-4 pt-120 fix p-relative pb-120" data-background="<?php echo esc_url($tp_image); ?>"> <div class="tp-cta-4__shap"></div> <div class="tp-cta-shap"> <img src="<?php echo get_template_directory_uri(); ?>/assets/img/cta/shap1.png" alt=""> </div> <div class="container"> <div class="row"> <div class="col-12"> <div class="tp-cta-4__wrap"> <div class="tp-cta-4__wrap text-center"> <?php if ( !empty($settings['tp_section_title' ]) ) : printf( '<%1$s %2$s>%3$s</%1$s>', tag_escape( $settings['tp_section_title_tag'] ), $this->get_render_attribute_string( 'title_args' ), tp_kses( $settings['tp_section_title' ] ) ); endif; ?> <?php if ( !empty($settings['tp_cta_btn_text']) ) : ?> <div class="tp-cta-btn"> <a <?php echo $this->get_render_attribute_string( 'tp-button-arg' ); ?>><?php echo tp_kses($settings['tp_cta_btn_text']); ?></a> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> <?php elseif ( $settings['tp_design_style'] == 'layout-2' ): // thumbnail 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_cta_btn_link_type']) { $this->add_render_attribute('tp-button-arg', 'href', get_permalink($settings['tp_cta_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-black'); } else { if ( ! empty( $settings['tp_cta_btn_link']['url'] ) ) { $this->add_link_attributes( 'tp-button-arg', $settings['tp_cta_btn_link'] ); $this->add_render_attribute('tp-button-arg', 'class', 'tp-btn-black'); } } $this->add_render_attribute('title_args', 'class', 'cta-titile'); ?> <div class="tp-cta-3__area theme-bg fix p-relative pt-60 pb-55"> <div class="tp-cta3-left-bg"> <img class="w-100" src="<?php echo esc_url($tp_image); ?>" alt="<?php echo esc_attr($tp_image_alt); ?>"> </div> <div class="tp-cta-3__shap"> <img src="<?php echo get_template_directory_uri(); ?>/assets/img/cta/shap2.png" alt=""> </div> <div class="tp-cta-3__shap2"> <img src="<?php echo get_template_directory_uri(); ?>/assets/img/cta/shap3.png" alt=""> </div> <div class="container"> <div class="row align-items-center"> <div class="offset-xl-2 col-xl-6 col-lg-8 col-md-8 col-sm-12 col-12"> <div class="tp-cta-3__left"> <div class="tp-cta-3__icon"> <span> <?php if($settings['tp_box_icon_type'] == 'icon') : ?> <?php if (!empty($settings['tp_box_icon']) || !empty($settings['tp_box_selected_icon']['value'])) : ?> <?php tp_render_icon($settings, 'tp_box_icon', 'tp_box_selected_icon'); ?> <?php endif; ?> <?php elseif( $settings['tp_box_icon_type'] == 'image' ) : ?> <?php if (!empty($settings['tp_box_icon_image']['url'])): ?> <img src="<?php echo $settings['tp_box_icon_image']['url']; ?>" alt="<?php echo get_post_meta(attachment_url_to_postid($settings['tp_box_icon_image']['url']), '_wp_attachment_image_alt', true); ?>"> <?php endif; ?> <?php else : ?> <?php if (!empty($settings['tp_box_icon_svg'])): ?> <?php echo $settings['tp_box_icon_svg']; ?> <?php endif; ?> <?php endif; ?> </span> </div> <div class="tp-cta-3__info"> <?php if ( !empty($settings['tp_section_sub_title' ]) ) : ?> <span><?php echo tp_kses( $settings['tp_section_sub_title'] ); ?></span> <?php endif; ?> <?php if ( !empty($settings['tp_section_title' ]) ) : printf( '<%1$s %2$s>%3$s</%1$s>', tag_escape( $settings['tp_section_title_tag'] ), $this->get_render_attribute_string( 'title_args' ), tp_kses( $settings['tp_section_title' ] ) ); endif; ?> </div> </div> </div> <?php if ( !empty($settings['tp_cta_btn_text']) ) : ?> <div class="col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12"> <div class="tp-cta-3__right text-end"> <div class="tp-cta-3__btn"> <a <?php echo $this->get_render_attribute_string( 'tp-button-arg' ); ?>><?php echo tp_kses($settings['tp_cta_btn_text']); ?></a> </div> </div> </div> <?php endif; ?> </div> </div> </div> <?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_cta_btn_link_type']) { $this->add_render_attribute('tp-button-arg', 'href', get_permalink($settings['tp_cta_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-3'); } else { if ( ! empty( $settings['tp_cta_btn_link']['url'] ) ) { $this->add_link_attributes( 'tp-button-arg', $settings['tp_cta_btn_link'] ); $this->add_render_attribute('tp-button-arg', 'class', 'tp-btn-3'); } } $this->add_render_attribute('title_args', 'class', 'tpcta__title'); ?> <div class="cta-area pt-160 pb-110 p-relative fix" data-background="<?php echo esc_url( $tp_image ) ?>"> <div class="tpcta__shap-bg"> <img src="<?php echo get_template_directory_uri(); ?>/assets/img/cta/shap6.png" alt=""> </div> <div class="container"> <div class="row"> <div class="col-xl-6 col-md-8"> <div class="tpcta__wrapper"> <?php if ( !empty($settings['tp_section_title' ]) ) : printf( '<%1$s %2$s>%3$s</%1$s>', tag_escape( $settings['tp_section_title_tag'] ), $this->get_render_attribute_string( 'title_args' ), tp_kses( $settings['tp_section_title' ] ) ); endif; ?> </div> </div> <?php if ( !empty($settings['tp_cta_btn_text']) ) : ?> <div class="col-xl-6 col-md-4"> <div class="tpcta__btn text-md-end pt-30"> <a <?php echo $this->get_render_attribute_string( 'tp-button-arg' ); ?>><?php echo tp_kses($settings['tp_cta_btn_text']); ?></a> </div> </div> <?php endif; ?> </div> </div> </div> <?php endif; } } $widgets_manager->register( new TP_CTA() );
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat