PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 2.8.23.5
Pods – Custom Content Types and Fields v2.8.23.5
2.7.31.4 2.8.23.5 2.9.19.5 3.0.10.5 3.1.4.3 3.2.8.4 3.3.9.2 2.8.23.4 2.9.19.4 3.0.10.4 3.1.4.2 3.2.8.3 3.3.9.1 trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / tribe-common / src / admin-views / tabbed-view / tabbed-view.php
pods / tribe-common / src / admin-views / tabbed-view Last commit date
tab.php 6 days ago tabbed-view.php 6 days ago
tabbed-view.php
42 lines
1 <?php
2 /**
3 * The default template for a Tabbed View.
4 *
5 * @var Tribe__Tabbed_View $view
6 */
7
8 /** @var Tribe__Tabbed_View__Tab[] $tabs */
9 $tabs = $view->get_visibles();
10 ?>
11
12 <?php if ( count( $tabs ) > 1 ) : ?>
13 <div class="tabbed-view-wrap wrap">
14 <?php if ( $view->get_label() ) : ?>
15 <h1>
16 <?php echo esc_html( $view->get_label() ); ?>
17 <?php
18 /**
19 * Add an action to render content after text label.
20 *
21 * @since 4.12.17
22 *
23 * @param Tribe__Tabbed_View $view Tabbed View Object.
24 */
25 do_action( 'tribe_tabbed_view_heading_after_text_label', $view );
26 ?>
27 </h1>
28 <?php endif; ?>
29
30 <h2 class="nav-tab-wrapper">
31 <?php foreach ( $tabs as $tab ): ?>
32 <a id="<?php echo esc_attr( $tab->get_slug() ); ?>"
33 class="nav-tab<?php echo( $tab->is_active() ? ' nav-tab-active' : '' ); ?>"
34 href="<?php echo esc_url( $tab->get_url() ); ?>"><?php echo esc_html( $tab->get_label() ); ?>
35 </a>
36 <?php endforeach; ?>
37 </h2>
38 </div>
39 <?php else: ?>
40 <h1><?php esc_html_e( reset( $tabs )->get_label() ); ?></h1>
41 <?php endif; ?>
42