mobile-template.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @see views/navigation/web-template.php |
| 5 | * @var string $licenseMessage |
| 6 | * @var array $menu |
| 7 | * @var string $wpstgAdminUrl |
| 8 | */ |
| 9 | ?> |
| 10 | |
| 11 | <div class="wpstg-navbar-wrapper wpstg-navigation-menu-mobile"> |
| 12 | <button class="wpstg-navbar-toggler wpstg-mr-10px" type="button" data-wpstg-action="toggle" data-wpstg-target="#wpstg-navbar-menu"> |
| 13 | <span class="wpstg-hamburger-icon"></span> |
| 14 | </button> |
| 15 | <div id="wpstg-navbar-menu" class="wpstg-navbar-menu hidden"> |
| 16 | <?php foreach ($menu as $tabKey => $tab) :?> |
| 17 | <div> |
| 18 | <a href="javascript:void(0)" data-target-url="<?php echo esc_url($wpstgAdminUrl . $tab['page']); ?>" class="wpstg-button <?php echo ($tab['isActive']) ? 'wpstg--tab--active' : '' ?>" data-target-id="<?php esc_attr_e($tab['id'], 'wp-staging') ?>"> |
| 19 | <?php |
| 20 | if ($tabKey !== 'tab-license') { |
| 21 | echo esc_html($tab['tab']); |
| 22 | } |
| 23 | |
| 24 | if ($tabKey === 'tab-license' && defined('WPSTGPRO_VERSION')) : |
| 25 | echo esc_html($tab['tab']); |
| 26 | ?> |
| 27 | <span class="wpstg--red-warning"><?php echo esc_html($licenseMessage); ?></span> |
| 28 | <?php endif; |
| 29 | |
| 30 | if ($tabKey === 'tab-license' && !defined('WPSTGPRO_VERSION')) : ?> |
| 31 | <span class="wpstg--red-warning"><?php echo esc_html($tab['tab']); ?> </span> |
| 32 | <?php endif; ?> |
| 33 | </a> |
| 34 | </div> |
| 35 | <?php endforeach; ?> |
| 36 | </div> |
| 37 | </div> |
| 38 |