dialogs
5 years ago
elements
4 years ago
tab-appearance
4 years ago
tab-behaviour
4 years ago
tab-content
4 years ago
tab-display-options
5 years ago
tab-emails
4 years ago
tab-visibility
4 years ago
templates
4 years ago
navigation.php
4 years ago
status-bar.php
5 years ago
wizard.php
4 years ago
navigation.php
79 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Wizard lateral navigation. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.0 |
| 7 | */ |
| 8 | |
| 9 | ?> |
| 10 | <div class="sui-sidenav"> |
| 11 | |
| 12 | <div class="sui-sidenav-sticky sui-sidenav-hide-md"> |
| 13 | |
| 14 | <ul class="sui-vertical-tabs sui-alt-design"> |
| 15 | |
| 16 | <?php |
| 17 | foreach ( $wizard_tabs as $key => $option ) { |
| 18 | |
| 19 | $tab_name = $key; |
| 20 | |
| 21 | if ( isset( $option['name'] ) && '' !== $option['name'] ) { |
| 22 | $tab_name = $option['name']; |
| 23 | } |
| 24 | |
| 25 | if ( isset( $option['is_optin'] ) ) { |
| 26 | |
| 27 | if ( $is_optin ) : |
| 28 | ?> |
| 29 | |
| 30 | <li class="sui-vertical-tab"> |
| 31 | <a href="#" data-tab="<?php echo esc_html( $key ); ?>" class="<?php echo $key === $section ? 'current' : ''; ?>"> |
| 32 | <?php echo esc_html( $tab_name ); ?> |
| 33 | </a> |
| 34 | </li> |
| 35 | |
| 36 | <?php |
| 37 | endif; |
| 38 | |
| 39 | } else { |
| 40 | ?> |
| 41 | |
| 42 | <li class="sui-vertical-tab"> |
| 43 | <a href="#" data-tab="<?php echo esc_html( $key ); ?>" class="<?php echo $key === $section ? 'current' : ''; ?>"> |
| 44 | <?php echo esc_html( $tab_name ); ?> |
| 45 | </a> |
| 46 | </li> |
| 47 | |
| 48 | <?php |
| 49 | } |
| 50 | } |
| 51 | ?> |
| 52 | |
| 53 | </ul> |
| 54 | |
| 55 | </div> |
| 56 | |
| 57 | <div class="sui-sidenav-hide-lg"> |
| 58 | |
| 59 | <label class="sui-label"><?php esc_html_e( 'Navigate', 'hustle' ); ?></label> |
| 60 | |
| 61 | <select class="sui-mobile-nav" style="margin-bottom: 20px;"> |
| 62 | <?php |
| 63 | foreach ( $wizard_tabs as $key => $data ) { |
| 64 | |
| 65 | printf( |
| 66 | '<option value="%1$s" %2$s>%3$s</option>', |
| 67 | esc_attr( $key ), |
| 68 | selected( $section, $key, false ), |
| 69 | esc_html( $data['name'] ) |
| 70 | ); |
| 71 | |
| 72 | } |
| 73 | ?> |
| 74 | </select> |
| 75 | |
| 76 | </div> |
| 77 | |
| 78 | </div> |
| 79 |