-
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 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_Testimonial 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-testimonial'; } /** * Retrieve the widget title. * * @since 1.0.0 * * @access public * * @return string Widget title. */ public function get_title() { return __( 'Testimonial', '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(); } 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'), 'layout-4' => esc_html__('Layout 4', 'tpcore') ], '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']); // button $this->tp_button_render('testi', 'Button', ['layout-2']); // testi shape $this->start_controls_section( 'tp_testi_shape', [ 'label' => esc_html__( 'Testimonial Info', 'tpcore' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'condition' => [ 'tp_design_style' => ['layout-1','layout-2'] ] ] ); $this->add_control( 'testimonial_info_condition', [ 'label' => __( 'Testimonial Info 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, ] ); $this->add_control( 'tp_testmonial_bg', [ 'label' => esc_html__( 'Choose Background Image', 'tp-core' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], 'condition' => [ 'testimonial_info_condition' => ['style_1'], ] ] ); $this->add_control( 'tp_testi_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' => '1', 'condition' => [ 'testimonial_info_condition' => ['style_2'], ] ] ); $this->add_control( 'tp_testmonial_shape_img', [ 'label' => esc_html__( 'Choose Shape Image ', 'tp-core' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], 'condition' => [ 'tp_testi_shape_switch' => 'yes', 'testimonial_info_condition' => ['style_2'], ] ] ); $this->add_group_control( Group_Control_Image_Size::get_type(), [ 'name' => 'tp_testmonial_bg_size', 'exclude' => ['custom'], 'condition' => [ 'tp_testi_shape_switch' => 'yes' ], 'condition' => [ 'repeater_condition' => ['style_1'], ] ] ); $this->end_controls_section(); // Review group $this->start_controls_section( 'review_list', [ 'label' => esc_html__( 'Review List', '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' ), 'style_2' => __( 'Style 2', 'tpcore' ), 'style_3' => __( 'Style 3', 'tpcore' ), ], 'default' => 'style_1', 'frontend_available' => true, 'style_transfer' => true, ] ); //icon image svg $repeater->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' => [ 'repeater_condition' => ['style_2'], ] ] ); $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_2'], ] ] ); $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_2'], ] ] ); 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_2'], ] ] ); } 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_2'], ] ] ); } $repeater->add_control( 'client_image', [ 'label' => esc_html__('Client Image', 'tpcore'), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'condition' => [ 'repeater_condition' => ['style_1', 'style_2'], ] ] ); $repeater->add_control( 'review_content', [ 'label' => esc_html__( 'Review Content', 'tpcore' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'rows' => 10, 'default' => 'Aklima The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections Bonorum et Malorum original.', 'placeholder' => esc_html__( 'Type your review content here', 'tpcore' ), ] ); $repeater->add_control( 'reviewer_name', [ 'label' => esc_html__( 'Reviewer Name', 'tpcore' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__( 'Rasalina William' , 'tpcore' ), 'label_block' => true, 'condition' => [ 'repeater_condition' => ['style_1', 'style_2'] ] ] ); $repeater->add_control( 'reviewer_title', [ 'label' => esc_html__( 'Reviewer Title', 'tpcore' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__( '- CEO at YES Germany' , 'tpcore' ), 'label_block' => true, 'condition' => [ 'repeater_condition' => ['style_1', 'style_2'] ] ] ); // rating $repeater->add_control( 'tp_testi_rating', [ 'label' => esc_html__('Select Rating Count', 'tpcore'), 'type' => Controls_Manager::SELECT, 'options' => [ '1' => esc_html__('Single Star', 'tpcore'), '2' => esc_html__('2 Star', 'tpcore'), '3' => esc_html__('3 Star', 'tpcore'), '4' => esc_html__('4 Star', 'tpcore'), '5' => esc_html__('5 Star', 'tpcore'), ], 'default' => '5', 'condition' => [ 'repeater_condition' => ['style_1','style_2', 'style_3', 'style_4'] ] ] ); $repeater->add_control( 'tp_testmonial_shape_img', [ 'label' => esc_html__( 'Choose Shape Image ', 'tp-core' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], 'condition' => [ 'repeater_condition' => ['style_2'], ] ] ); $this->add_control( 'reviews_list', [ 'label' => esc_html__( 'Review List', 'tpcore' ), 'type' => \Elementor\Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'reviewer_name' => esc_html__( 'Rasalina William', 'tpcore' ), 'reviewer_title' => esc_html__( 'CEO at YES Germany', 'tpcore' ), 'review_content' => esc_html__( 'Construction can be defined as the art of building something. These construction quotes will put into perspective the fact that construction can be', 'tpcore' ), ], [ 'reviewer_name' => esc_html__( 'Rasalina William 2', 'tpcore' ), 'reviewer_title' => esc_html__( 'CEO at YES Germany', 'tpcore' ), 'review_content' => esc_html__( 'Construction can be defined as the art of building something. These construction quotes will put into perspective the fact that construction can be', 'tpcore' ), ], [ 'reviewer_name' => esc_html__( 'Rasalina William 3', 'tpcore' ), 'reviewer_title' => esc_html__( 'CEO at YES Germany', 'tpcore' ), 'review_content' => esc_html__( 'Construction can be defined as the art of building something. These construction quotes will put into perspective the fact that construction can be', 'tpcore' ), ], ], 'title_field' => '{{{ reviewer_name }}}', ] ); $this->add_group_control( Group_Control_Image_Size::get_type(), [ 'name' => 'thumbnail_size', 'default' => 'thumbnail', 'exclude' => ['custom'], 'separator' => 'none', ] ); $this->end_controls_section(); $this->start_controls_section( 'tp_clints_image', [ 'label' => esc_html__( 'Clints Image', 'tpcore' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, 'condition' => [ 'tp_design_style' => ['layout-3'] ] ] ); $this->end_controls_section(); } // style_tab_content protected function style_tab_content(){ $this->tp_section_style_controls('testimonial_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(); ?> <!-- testimonial style 4 --> <?php if ( $settings['tp_design_style'] == 'layout-4' ): $this->add_render_attribute('title_args', 'class', 'tp-section-title mb-40'); 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_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); } if ('2' == $settings['tp_testi_btn_link_type']) { $this->add_render_attribute('tp-button-arg', 'href', get_permalink($settings['tp_testi_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_testi_btn_link']['url'] ) ) { $this->add_link_attributes( 'tp-button-arg', $settings['tp_testi_btn_link'] ); $this->add_render_attribute('tp-button-arg', 'class', 'tp-btn'); } } ?> <div class="tp-testimonial-area pt-120 pb-90"> <div class="container"> <div class="row"> <?php foreach ($settings['reviews_list'] as $index => $item) : if ( !empty($item['client_image']['url']) ) { $tp_client_image = !empty($item['client_image']['id']) ? wp_get_attachment_image_url( $item['client_image']['id'], $settings['thumbnail_size_size']) : $item['client_image']['url']; $tp_client_image_alt = get_post_meta($item["client_image"]["id"], "_wp_attachment_image_alt", true); } ?> <div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12"> <div class="tp-testimonial mb-30 wow fadeInUp" data-wow-duration="1.5s" data-wow-delay="300ms"> <div class="swiper-slide "> <div class="tp-testimonial-2__item p-relative"> <div class="tp-testimonial-2__right-img"> <img src="<?php echo get_template_directory_uri(); ?>/assets/img/testimonial/testimonial-shap.png" alt=""> </div> <div class="tp-testimonial-2__content pb-20"> <?php if(!empty($item['reviewer_name']) ) : ?> <h2><?php echo tp_kses($item['reviewer_name']); ?></h2> <?php endif; ?> <?php if(!empty($item['review_content'])) : ?> <p><?php echo tp_kses($item['review_content']); ?></p> <?php endif; ?> </div> <div class="tp-testimonial-2__avata"> <div class="tp-testimonial-2__avata-img p-relative"> <?php if(!empty($tp_client_image)) : ?> <img src="<?php echo esc_url($tp_client_image); ?>" alt="<?php echo esc_attr($tp_client_image_alt); ?>"> <?php endif; ?> <div class="icon"> <?php if($item['tp_box_icon_type'] == 'icon') : ?> <?php if (!empty($item['tp_box_icon']) || !empty($item['tp_box_selected_icon']['value'])) : ?> <?php tp_render_icon($item, 'tp_box_icon', 'tp_box_selected_icon'); ?> <?php endif; ?> <?php elseif( $item['tp_box_icon_type'] == 'image' ) : ?> <?php if (!empty($item['tp_box_icon_image']['url'])): ?> <img src="<?php echo $item['tp_box_icon_image']['url']; ?>" alt="<?php echo get_post_meta(attachment_url_to_postid($item['tp_box_icon_image']['url']), '_wp_attachment_image_alt', true); ?>"> <?php endif; ?> <?php else : ?> <?php if (!empty($item['tp_box_icon_svg'])): ?> <?php echo $item['tp_box_icon_svg']; ?> <?php endif; ?> <?php endif; ?> </div> </div> <div class="tp-testimonial-2__avada-info"> <div class="tp-testimonial-2__ster-icon pb-70"> <?php $tp_rating = $item['tp_testi_rating']; for($i=1; $i<=$tp_rating; $i++) : ?> <span> <i class="fa-solid fa-star"></i> </span> <?php endfor; ?> </div> <div class="tp-testimonial-2__text"> <span><?php echo tp_kses($item['reviewer_title']); ?></span> </div> </div> </div> </div> <div class="tp-testimonial-2__bottom-color"></div> </div> </div> </div> <?php endforeach; ?> </div> </div> </div> <!-- testimonial style 3 --> <?php elseif ( $settings['tp_design_style'] == 'layout-3' ): $this->add_render_attribute('title_args', 'class', 'tp-section-title mb-20'); if ( !empty($settings['brand_logo_02']['url']) ) { $brand_logo_02 = !empty($settings['brand_logo_02']['id']) ? wp_get_attachment_image_url( $settings['brand_logo_02']['id']) : $settings['brand_logo_02']['url']; $brand_logo_02_alt = get_post_meta($settings["brand_logo_02"]["id"], "_wp_attachment_image_alt", true); } if ( !empty($settings['brand_logo_03']['url']) ) { $brand_logo_03 = !empty($settings['brand_logo_03']['id']) ? wp_get_attachment_image_url( $settings['brand_logo_03']['id']) : $settings['brand_logo_03']['url']; $brand_logo_03_alt = get_post_meta($settings["brand_logo_03"]["id"], "_wp_attachment_image_alt", true); } ?> <div class="tp-testimonial-3__area fix p-relative pt-120 pb-120" data-background="<?php echo get_template_directory_uri(); ?>/assets/img/testimonial/bg-img-3.jpg"> <div class="tp-testimonial-3__shap-bg float-bob-y"> <img src="<?php echo get_template_directory_uri(); ?>/assets/img/testimonial/testimonial-bg-shap.png" alt=""> </div> <div class="container"> <div class="row"> <div class="col-xxl-12"> <?php if ( !empty($settings['tp_section_section_title_show']) ) : ?> <div class="tp-section-box text-center mb-30"> <?php if ( !empty($settings['tp_section_sub_title']) ) : ?> <div class="tp-section-subtitle mb-15"><?php echo tp_kses( $settings['tp_section_sub_title'] ); ?></div> <?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> <?php endif; ?> </div> </div> <div class="row"> <div class="col-xl-12"> <div class="tp-testimonial-3"> <div class="testimonials-3-active swiper-container"> <div class="swiper-wrapper"> <?php foreach ($settings['reviews_list'] as $index => $item) : if ( !empty($item['client_image']['url']) ) { $tp_client_image = !empty($item['client_image']['id']) ? wp_get_attachment_image_url( $item['client_image']['id'], $settings['thumbnail_size_size']) : $item['client_image']['url']; $tp_client_image_alt = get_post_meta($item["client_image"]["id"], "_wp_attachment_image_alt", true); } if ( !empty($item['tp_testmonial_shape_img']['url']) ) { $tp_tp_testmonial_shape_img = !empty($item['tp_testmonial_shape_img']['id']) ? wp_get_attachment_image_url( $item['tp_testmonial_shape_img']['id'], $settings['thumbnail_size_size']) : $item['tp_testmonial_shape_img']['url']; $tp_tp_testmonial_shape_img_alt = get_post_meta($item["tp_testmonial_shape_img"]["id"], "_wp_attachment_image_alt", true); } ?> <div class="swiper-slide"> <div class="tp-testimonial-3__item p-relative"> <div class="tp-testimonial-3__icon"> <?php if($item['tp_box_icon_type'] == 'icon') : ?> <?php if (!empty($item['tp_box_icon']) || !empty($item['tp_box_selected_icon']['value'])) : ?> <?php tp_render_icon($item, 'tp_box_icon', 'tp_box_selected_icon'); ?> <?php endif; ?> <?php elseif( $item['tp_box_icon_type'] == 'image' ) : ?> <?php if (!empty($item['tp_box_icon_image']['url'])): ?> <img src="<?php echo $item['tp_box_icon_image']['url']; ?>" alt="<?php echo get_post_meta(attachment_url_to_postid($item['tp_box_icon_image']['url']), '_wp_attachment_image_alt', true); ?>"> <?php endif; ?> <?php else : ?> <?php if (!empty($item['tp_box_icon_svg'])): ?> <?php echo $item['tp_box_icon_svg']; ?> <?php endif; ?> <?php endif; ?> </div> <div class="tp-testimonial-3__content"> <?php if(!empty($item['review_content'])) : ?> <p><?php echo tp_kses($item['review_content']); ?></p> <?php endif; ?> </div> <div class="tp-testimonial-3__avater-info"> <div class="tp-testimonial-3__avater"> <div class="avater-img mr-30"> <?php if(!empty($tp_client_image)) : ?> <img src="<?php echo esc_url($tp_client_image); ?>" alt="<?php echo esc_attr($tp_client_image_alt); ?>"> <?php endif; ?> </div> <div class="avater-designation"> <?php if(!empty($item['reviewer_name']) ) : ?> <h2 class="avater-title"><?php echo tp_kses($item['reviewer_name']); ?></h2> <?php endif; ?> <?php if(!empty($item['reviewer_title'])) : ?> <div class="tp-testimonial-2__text"> <span><?php echo tp_kses($item['reviewer_title']); ?></span> </div> <?php endif; ?> </div> </div> <div class="tp-testimonial-3__star p-relative"> <?php $tp_rating = $item['tp_testi_rating']; for($i=1; $i<=$tp_rating; $i++) : ?> <span> <i class="fa-solid fa-star"></i> </span> <?php endfor; ?> </div> </div> </div> </div> <?php endforeach; ?> </div> </div> </div> </div> </div> </div> </div> <!-- testimonial style 2 --> <?php elseif ( $settings['tp_design_style'] == 'layout-2' ): $this->add_render_attribute('title_args', 'class', 'tp-section-title mb-40'); 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_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); } if ('2' == $settings['tp_testi_btn_link_type']) { $this->add_render_attribute('tp-button-arg', 'href', get_permalink($settings['tp_testi_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_testi_btn_link']['url'] ) ) { $this->add_link_attributes( 'tp-button-arg', $settings['tp_testi_btn_link'] ); $this->add_render_attribute('tp-button-arg', 'class', 'tp-btn'); } } ?> <div class="tp-testimonials-area pt-120 pb-20 fix"> <div class="container"> <div class="row"> <?php if ( !empty($settings['tp_section_section_title_show']) ) : ?> <div class="col-xl-5 col-lg-5 col-md-12"> <div class="tp-section-box text-start mb-30"> <?php if ( !empty($settings['tp_section_sub_title']) ) : ?> <div class="tp-section-subtitle subtitle-before mb-10"><?php echo tp_kses( $settings['tp_section_sub_title'] ); ?></div> <?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; ?> <?php if ( !empty($settings['tp_section_description']) ) : ?> <p class="tp-section-pre mb-40"> <?php echo tp_kses( $settings['tp_section_description'] ); ?> </p> <?php endif; ?> <?php if ( !empty($settings['tp_testi_btn_text']) ) : ?> <div class="tp-about-2__btn-box"> <a <?php echo $this->get_render_attribute_string( 'tp-button-arg' ); ?>><?php echo tp_kses($settings['tp_testi_btn_text']); ?></a> </div> <?php endif; ?> </div> </div> <?php endif; ?> <div class="col-xl-7 col-lg-7 col-md-12"> <div class="testimonials-2-wrapper"> <div class="testimonials-2-active swiper-container"> <div class="swiper-wrapper"> <?php foreach ($settings['reviews_list'] as $index => $item) : if ( !empty($item['client_image']['url']) ) { $tp_client_image = !empty($item['client_image']['id']) ? wp_get_attachment_image_url( $item['client_image']['id'], $settings['thumbnail_size_size']) : $item['client_image']['url']; $tp_client_image_alt = get_post_meta($item["client_image"]["id"], "_wp_attachment_image_alt", true); } ?> <div class="swiper-slide "> <div class="tp-testimonial-2__item p-relative"> <div class="tp-testimonial-2__right-img"> <img src="<?php echo get_template_directory_uri(); ?>/assets/img/testimonial/testimonial-shap.png" alt=""> </div> <div class="tp-testimonial-2__content pb-20"> <?php if(!empty($item['reviewer_name']) ) : ?> <h2><?php echo tp_kses($item['reviewer_name']); ?></h2> <?php endif; ?> <?php if(!empty($item['review_content'])) : ?> <p><?php echo tp_kses($item['review_content']); ?></p> <?php endif; ?> </div> <div class="tp-testimonial-2__avata"> <div class="tp-testimonial-2__avata-img p-relative"> <?php if(!empty($tp_client_image)) : ?> <img src="<?php echo esc_url($tp_client_image); ?>" alt="<?php echo esc_attr($tp_client_image_alt); ?>"> <?php endif; ?> <div class="icon"> <?php if($item['tp_box_icon_type'] == 'icon') : ?> <?php if (!empty($item['tp_box_icon']) || !empty($item['tp_box_selected_icon']['value'])) : ?> <?php tp_render_icon($item, 'tp_box_icon', 'tp_box_selected_icon'); ?> <?php endif; ?> <?php elseif( $item['tp_box_icon_type'] == 'image' ) : ?> <?php if (!empty($item['tp_box_icon_image']['url'])): ?> <img src="<?php echo $item['tp_box_icon_image']['url']; ?>" alt="<?php echo get_post_meta(attachment_url_to_postid($item['tp_box_icon_image']['url']), '_wp_attachment_image_alt', true); ?>"> <?php endif; ?> <?php else : ?> <?php if (!empty($item['tp_box_icon_svg'])): ?> <?php echo $item['tp_box_icon_svg']; ?> <?php endif; ?> <?php endif; ?> </div> </div> <div class="tp-testimonial-2__avada-info"> <div class="tp-testimonial-2__ster-icon pb-70"> <?php $tp_rating = $item['tp_testi_rating']; for($i=1; $i<=$tp_rating; $i++) : ?> <span> <i class="fa-solid fa-star"></i> </span> <?php endfor; ?> </div> <?php if(!empty($item['reviewer_title'])) : ?> <div class="tp-testimonial-2__text"> <span><?php echo tp_kses($item['reviewer_title']); ?></span> </div> <?php endif; ?> </div> </div> </div> <div class="tp-testimonial-2__bottom-color"></div> </div> <?php endforeach; ?> </div> <div class="testimonial-2-slider-dots text-center mt-45"></div> </div> </div> </div> </div> </div> </div> <!-- default style --> <?php else: $this->add_render_attribute('title_args', 'class', 'tp-section-title mb-20'); 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_testmonial_bg']['url']) ) { $tp_testmonial_bg = !empty($settings['tp_testmonial_bg']['id']) ? wp_get_attachment_image_url( $settings['tp_testmonial_bg']['id'], $settings['tp_testmonial_bg_size_size']) : $settings['tp_testmonial_bg']['url']; $tp_testmonial_bg_alt = get_post_meta($settings["tp_testmonial_bg"]["id"], "_wp_attachment_image_alt", true); } ?> <div class="testimonials-area pt-120 pb-200" data-background="<?php echo esc_url($tp_testmonial_bg); ?>"> <div class="container"> <div class="row"> <?php if ( !empty($settings['tp_section_section_title_show']) ) : ?> <div class="col-xxl-8 offset-xxl-2 col-xl-8 offset-xl-2 col-lg-10 offset-lg-1 pb-35"> <div class="tptestimonials-section-title tp-section-white text-center tp-testimonial-titile z-index position-relative"> <?php if ( !empty($settings['tp_section_sub_title']) ) : ?> <div class="tp-section-subtitle mb-15"><?php echo tp_kses( $settings['tp_section_sub_title'] ); ?></div> <?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> <?php endif; ?> </div> <div class="row"> <div class="col-xl-12"> <div class="tptestimonial-wrapper mb-20"> <div class="testimonials-active swiper-container"> <div class="swiper-wrapper"> <?php foreach ($settings['reviews_list'] as $index => $item) : if ( !empty($item['client_image']['url']) ) { $tp_client_image = !empty($item['client_image']['id']) ? wp_get_attachment_image_url( $item['client_image']['id'], $settings['thumbnail_size_size']) : $item['client_image']['url']; $tp_client_image_alt = get_post_meta($item["client_image"]["id"], "_wp_attachment_image_alt", true); } ?> <div class="swiper-slide"> <div class="tptestimonial"> <div class="tptestimonial__avatar"> <div> <?php if(!empty($tp_client_image)) : ?> <div class="tptestimonial__thumb"> <img src="<?php echo esc_url($tp_client_image); ?>" alt="<?php echo esc_attr($tp_client_image_alt); ?>"> </div> <?php endif; ?> <div class="tptestimonial__designation"> <div class="tptestimonial__meta"> <?php if(!empty($item['reviewer_name']) ) : ?> <h5 class="reviewer-name"><?php echo tp_kses($item['reviewer_name']); ?></h5> <?php endif; ?> <?php if(!empty($item['reviewer_title'])) : ?> <span class="reviewer-position"><?php echo tp_kses($item['reviewer_title']); ?></span> <?php endif; ?> </div> </div> </div> </div> <div class="tptestimonial__info"> <?php if(!empty($item['review_content'])) : ?> <p><?php echo tp_kses($item['review_content']); ?></p> <?php endif; ?> <div class="star mt-25"> <?php $tp_rating = $item['tp_testi_rating']; for($i=1; $i<=$tp_rating; $i++) : ?> <span> <i class="fa-solid fa-star"></i> </span> <?php endfor; ?> </div> </div> </div> </div> <?php endforeach; ?> </div> <div class="testimonial-slider-dots text-center mt-50"></div> </div> </div> </div> </div> </div> </div> <?php endif; } } $widgets_manager->register( new TP_Testimonial() );
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat