PluginProbe ʕ •ᴥ•ʔ
YITH WooCommerce Wishlist / 3.18.0
YITH WooCommerce Wishlist v3.18.0
4.16.0 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.10 2.2.11 2.2.12 2.2.13 2.2.14 2.2.15 2.2.16 2.2.17 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.15 3.0.16 3.0.17 3.0.18 3.0.19 3.0.2 3.0.20 3.0.21 3.0.22 3.0.23 3.0.25 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.10.0 3.11.0 3.12.0 3.13.0 3.14.0 3.15.0 3.16.0 3.17.0 3.18.0 3.19.0 3.2.0 3.20.0 3.21.0 3.22.0 3.23.0 3.24.0 3.25.0 3.26.0 3.27.0 3.28.0 3.29.0 3.3.0 3.30.0 3.31.0 3.32.0 3.33.0 3.34.0 3.35.0 3.36.0 3.37.0 3.38.0 3.4.0 3.5.0 3.6.0 3.7.0 3.8.0 3.9.0 4.0.0 4.0.1 4.1.0 4.10.0 4.10.1 4.10.2 4.11.0 4.12.0 4.13.0 4.14.0 4.15.0 4.2.0 4.3.0 4.4.0 4.5.0 4.6.0 4.7.0 4.8.0 4.9.0
yith-woocommerce-wishlist / plugin-fw / templates / bh-onboarding / onboarding-tabs.php
yith-woocommerce-wishlist / plugin-fw / templates / bh-onboarding Last commit date
onboarding-tabs.php 3 years ago
onboarding-tabs.php
76 lines
1 <?php
2 /**
3 * The Template for displaying the BH Onboarding tabs.
4 *
5 * @var array $options The premium tab options array.
6 *
7 * @package YITH\PluginFramework\Templates
8 * @author Emanuela Castorina <emanuela.castorina@yithemes.com>
9 * @since 3.9.11
10 */
11
12 defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
13 $tabs = $options['tabs'];
14 ?>
15 <div class="woocommerce yith-plugin-fw-panel" id="yith-bh-onboarding" style="display: none">
16 <header>
17 <div class="yith-bh-onboarding-logo">
18 <?php if ( isset( $options['logo'] ) ) : ?>
19 <div class="logo">
20 <img src="<?php echo esc_url( $options['logo'] ); ?>" width="150"/>
21 </div>
22 <?php endif; ?>
23 <?php if ( isset( $options['claim'] ) ) : ?>
24 <div class="claim"><?php echo esc_html( $options['claim'] ); ?></div>
25 <?php endif; ?>
26 </div>
27 <div class="yith-bh-onboarding-plugin-description">
28 <?php if ( isset( $options['plugin-description'] ) ) : ?>
29 <div class="plugin-description"><?php echo wp_kses_post( $options['plugin-description'] ); ?></div>
30 <?php endif; ?>
31 </div>
32 </header>
33 <div class="yith-bh-onboarding-tabs yith-plugin-ui">
34 <ul class="yith-bh-onboarding-tabs__nav">
35 <?php
36 $c = 0;
37 foreach ( $tabs as $key => $tab ) :
38 ?>
39 <li class="yith-bh-onboarding-tabs__nav__link <?php echo ! ( $c ++ ) ? 'selected' : ''; ?>" data-tab="<?php esc_attr_e( $key ); ?>"><?php echo esc_html( $tab['title'] ); ?></li>
40 <?php
41 endforeach;
42 ?>
43 </ul>
44 <div class="yith-bh-onboarding-tabs__content yith-plugin-fw yit-admin-panel-container">
45 <?php foreach ( $tabs as $key => $tab ) : ?>
46 <?php if ( isset( $tab['options'] ) ) : ?>
47 <div class="yith-bh-onboarding-tabs__tab" id="<?php echo esc_attr( $key ); ?>">
48 <p class="yith-bh-onboarding-tab-description"><?php echo wp_kses_post( $tab['description'] ); ?></p>
49 <form class="yith-bh-onboarding-tabs__form" id="plugin-fw-wc">
50 <table class="form-table">
51 <?php
52 foreach ( $tab['options'] as $name => $option ) {
53 YIT_Plugin_Panel_WooCommerce::add_yith_field( $option );
54 }
55 ?>
56 </table>
57 <?php if ( isset( $tab['show_save_button'] ) && $tab['show_save_button'] ) : ?>
58 <input type="hidden" name="yith-plugin" value="<?php echo esc_attr( $options['slug'] ); ?>">
59 <input type="hidden" name="action" value="yith_bh_onboarding">
60 <input type="hidden" name="tab" value="<?php echo esc_attr( $key ); ?>">
61 <?php wp_nonce_field( 'yith-bh-onboarding-save-options' ); ?>
62 <div class="submit-area">
63 <button id="yith-bh-save-button" class="button button-primary"><?php echo esc_html__( 'Save', 'yith-plugin-fw' ); ?></button>
64 </div>
65 <?php endif; ?>
66 </form>
67 </div>
68 <?php
69 endif;
70 endforeach;
71
72 ?>
73 </div>
74
75 </div>
76