help-tab
5 years ago
page
5 years ago
edit-actions.php
5 years ago
edit-addon.php
5 years ago
edit-column.php
5 years ago
edit-columns.php
5 years ago
edit-menu.php
5 years ago
edit-submenu.php
5 years ago
edit-tabmenu.php
5 years ago
loading-message.php
5 years ago
menu.php
5 years ago
mini-tooltip.php
5 years ago
modal-pro.php
5 years ago
side-banner.php
5 years ago
side-feedback.php
5 years ago
side-support.php
5 years ago
table.php
5 years ago
tooltip-body.php
5 years ago
tooltip-label.php
5 years ago
wrap.php
5 years ago
edit-tabmenu.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | /** |
| 8 | * @global \AC\Admin\MenuItem[] $items |
| 9 | * @global string $current |
| 10 | */ |
| 11 | |
| 12 | $items = $this->items; |
| 13 | $current = $this->current; |
| 14 | |
| 15 | ?> |
| 16 | |
| 17 | <h1 class="nav-tab-wrapper cpac-nav-tab-wrapper"> |
| 18 | <?php foreach ( $items as $item ) { |
| 19 | echo sprintf( '<a href="%s" class="nav-tab %s">%s</a>', $item->get_url(), $current === $item->get_slug() ? 'nav-tab-active' : '', $item->get_label() ); |
| 20 | } |
| 21 | ?> |
| 22 | </h1> |