PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.18
VikAppointments Services Booking Calendar v1.2.18
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / libraries / html / bootstrap / starttabset.php
vikappointments / libraries / html / bootstrap Last commit date
addtab.php 6 months ago endtab.php 6 months ago endtabset.php 6 months ago starttabset.php 6 months ago
starttabset.php
35 lines
1 <?php
2 /**
3 * @package VikAppointments - Libraries
4 * @subpackage html.bootstrap
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved.
7 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
8 * @link https://vikwp.com
9 */
10
11 // No direct access
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 $selector = empty($displayData['selector']) ? '' : $displayData['selector'];
15
16 ?>
17
18 <script>
19
20 <?php
21 echo
22 <<<JS
23 function {$selector}BootstrapTabSetChanged(id) {
24 jQuery('#{$selector}Content .tab-pane').hide();
25 jQuery('#{$selector}Content #' + id).show().trigger('show');
26 }
27 JS
28 ;
29 ?>
30
31 </script>
32
33 <ul class="nav nav-tabs postbox" id="<?php echo $selector; ?>Tabs"></ul>
34 <div class="tab-content" id="<?php echo $selector; ?>Content">
35