PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.6
ShopBuilder – WooCommerce Builder For Elementor v3.2.6
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / templates / elementor / general / shopbuilder-faq / layout2.php

layout2.php in ShopBuilder – WooCommerce Builder For Elementor 3.2.6, at templates/elementor/general/shopbuilder-faq/layout2.php

81 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template: ShopBuilder Faq
4 *
5 * @package RadiusTheme\SB
6 */
7
8 /**
9 * Template variables:
10 *
11 * @var $display_tab_icon bool
12 * @var $accordion_type string
13 * @var $title_html_tag string
14 * @var $tab_icon array
15 * @var $expanded_icon array
16 * @var $faq_items array
17 * @var $tab_icon_position string
18 */
19
20 // Do not allow directly accessing this file.
21 use RadiusTheme\SB\Elementor\Widgets\General\ShopBuilderAccordion\Render;
22 use RadiusTheme\SB\Helpers\Fns;
23
24 if ( ! defined( 'ABSPATH' ) ) {
25 exit( 'This script cannot be accessed directly.' );
26 }
27 ?>
28 <div class="rtsb-faq-wrapper rtsb-sb-accordion-wrapper">
29 <?php
30 if ( ! empty( $faq_items ) ) {
31 ?>
32 <div class="rtsb-accordion-list <?php echo esc_attr( $accordion_type ); ?>" data-accordionType="<?php echo esc_attr( $accordion_type ); ?>">
33 <?php
34 $i = 1;
35 foreach ( $faq_items as $key => $item ) {
36 $exp_tab = 1 == $i && 'sb-accordion' === $accordion_type ? 'rtsb-expand-tab' : '';
37 ?>
38 <div class="rtsb-accordion-item <?php echo esc_attr( $exp_tab ); ?> rtsb-faq-item">
39 <div class="rtsb-accordion-header <?php echo esc_attr( $tab_icon_position ); ?>">
40 <div class="rtsb-accordion-title-wrap">
41 <?php if ( ! empty( $item['sb_faq_title'] ) ) { ?>
42 <<?php Fns::print_validated_html_tag( $title_html_tag ); ?> class="rtsb-accordion-title rtsb-faq-title">
43 <?php Fns::print_html( $item['sb_faq_title'] ); ?>
44 </<?php Fns::print_validated_html_tag( $title_html_tag ); ?>>
45 <?php } ?>
46 </div>
47 <?php if ( $display_tab_icon && ( ! empty( $tab_icon['value'] ) || ! empty( $expanded_icon['value'] ) ) ) : ?>
48 <div class="rtsb-accordion-icon-wrap">
49 <?php if ( ! empty( $tab_icon['value'] ) ) { ?>
50 <span class="rtsb-accordion-icon rtsb-expand-icon">
51 <?php Fns::print_html( Fns::icons_manager( $tab_icon ) ); ?>
52 </span>
53 <?php } ?>
54 <?php if ( ! empty( $expanded_icon['value'] ) ) { ?>
55 <span class="rtsb-accordion-icon rtsb-tab-icon">
56 <?php Fns::print_html( Fns::icons_manager( $expanded_icon ) ); ?>
57 </span>
58 <?php } ?>
59 </div>
60 <?php endif; ?>
61 </div>
62 <?php if ( ! empty( $item['sb_faq_content'] ) ) : ?>
63 <div class="rtsb-accordion-content">
64 <div class="rtsb-widget">
65 <div class="rtsb-content ">
66 <?php Fns::print_html( $item['sb_faq_content'] ); ?>
67 </div>
68 </div>
69 </div>
70 <?php endif; ?>
71 </div>
72 <?php
73 $i++;
74 }
75 ?>
76 </div>
77 <?php
78 }
79 ?>
80 </div>
81