PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.4.3
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.4.3
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 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.1.10 All 111 releases
templately / views / builder / tabs.php

tabs.php in Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! 3.4.3, at views/builder/tabs.php

28 lines 753 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="templately-builder-nav">
2 <ul class="nav-tab-wrapper">
3 <?php
4 /**
5 * @var array $template_types
6 */
7 $__type = isset($_GET['type']) ? $_GET['type'] : 'all';
8 foreach ( $template_types as $typename => $type ) {
9 $classes = esc_attr( $typename );
10 $classes .= $__type === $typename ? ' active' : '';
11 echo wp_kses( sprintf( '<li class="nav-tab %1$s"><a href="%2$s">%3$s</a></li>', $classes, esc_url( $type['url'] ), $type['label'] ), 'post' );
12 }
13 ?>
14 </ul>
15 <ul class="subsubsub">
16 <?php
17 /**
18 * @var array $tabs
19 */
20 if(!empty($tabs)){
21 foreach ( $tabs as $class => $tab ) {
22 echo sprintf( '<li class="%1$s">%2$s</li>', esc_attr( $class ), wp_kses( $tab, 'post' ) );
23 }
24 }
25 ?>
26 </ul>
27 </div>
28