# templately/3.0.1/views/builder/tabs.php

Templately – Elementor &amp; Gutenberg Template Library: 6500+ Free &amp; Pro Ready Templates And Cloud!, version 3.0.1. 25 lines.

- Page: https://pluginprobe.com/plugins/templately/3.0.1/code/views/builder/tabs.php
- Raw: https://pluginprobe.com/plugins/templately/3.0.1/raw/views/builder/tabs.php
- Modified: 2024-01-24T10:10:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/templately/3.0.1/code/views/builder/tabs.php#L10-L20`.

```php
<div class="templately-builder-nav">
	<ul class="nav-tab-wrapper">
		<?php
			/**
			 * @var array $template_types
			 */
			foreach ( $template_types as $typename => $type ) {
				echo wp_kses( sprintf( '<li class="nav-tab %1$s"><a href="%2$s">%3$s</a></li>', esc_attr( $typename ), esc_url( $type['url'] ), $type['label'] ), 'post' );
			}
		?>
	</ul>

	<ul class="subsubsub">
		<?php
			/**
			 * @var array $tabs
			 */
			if(!empty($tabs)){
				foreach ( $tabs as $class => $tab ) {
					echo sprintf( '<li class="%1$s">%2$s</li>', esc_attr( $class ), wp_kses( $tab, 'post' ) );
				}
			}
		?>
	</ul>
</div>
```
