elements.php
3 months ago
features.php
6 months ago
integration.php
6 months ago
popup-pro.php
6 months ago
sidebar.php
6 months ago
welcome.php
6 months ago
sidebar.php
77 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly |
| 4 | } |
| 5 | |
| 6 | $current_page = isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : 'spider_elements_settings'; |
| 7 | $tab_map = array( |
| 8 | 'spider_elements_settings' => 'welcome', |
| 9 | 'spider_elements_elements' => 'elements', |
| 10 | 'spider_elements_features' => 'features', |
| 11 | 'spider_elements_integration' => 'integration', |
| 12 | ); |
| 13 | $active_tab = $tab_map[ $current_page ] ?? 'welcome'; |
| 14 | ?> |
| 15 | |
| 16 | <div class="sticky_sidebar"> |
| 17 | |
| 18 | <ul class="tab-menu tab_left_content"> |
| 19 | |
| 20 | <li> |
| 21 | <a href="#welcome" class="tab-menu-link <?php echo $active_tab === 'welcome' ? 'active' : ''; ?>" data-content="welcome"> |
| 22 | <div class="tab_menu_contents"> |
| 23 | <div class="icon"> |
| 24 | <i class="icon-dashboard"></i> |
| 25 | </div> |
| 26 | <div class="content"> |
| 27 | <h3><?php esc_html_e('Dashboard', 'spider-elements'); ?></h3> |
| 28 | <p><?php esc_html_e('Find all information', 'spider-elements'); ?></p> |
| 29 | </div> |
| 30 | </div> |
| 31 | </a> |
| 32 | </li> |
| 33 | |
| 34 | <li> |
| 35 | <a href="#elements" class="tab-menu-link <?php echo $active_tab === 'elements' ? 'active' : ''; ?>" data-content="elements"> |
| 36 | <div class="tab_menu_contents"> |
| 37 | <div class="icon"> |
| 38 | <i class="icon-element"></i> |
| 39 | </div> |
| 40 | <div class="content"> |
| 41 | <h3><?php esc_html_e('Elements', 'spider-elements'); ?></h3> |
| 42 | <p><?php esc_html_e('Control All the Widgets', 'spider-elements'); ?></p> |
| 43 | </div> |
| 44 | </div> |
| 45 | </a> |
| 46 | </li> |
| 47 | |
| 48 | <li> |
| 49 | <a href="#features" class="tab-menu-link <?php echo $active_tab === 'features' ? 'active' : ''; ?>" data-content="features"> |
| 50 | <div class="tab_menu_contents"> |
| 51 | <div class="icon"> |
| 52 | <i class="icon-feature_two"></i> |
| 53 | </div> |
| 54 | <div class="content"> |
| 55 | <h3><?php esc_html_e('Features', 'spider-elements'); ?></h3> |
| 56 | <p><?php esc_html_e('Control All Features', 'spider-elements'); ?></p> |
| 57 | </div> |
| 58 | </div> |
| 59 | </a> |
| 60 | </li> |
| 61 | |
| 62 | <li> |
| 63 | <a href="#integration" class="tab-menu-link <?php echo $active_tab === 'integration' ? 'active' : ''; ?>" data-content="integration"> |
| 64 | <div class="tab_menu_contents"> |
| 65 | <div class="icon"> |
| 66 | <i class="icon-setting"></i> |
| 67 | </div> |
| 68 | <div class="content"> |
| 69 | <h3><?php esc_html_e('Power-up Website', 'spider-elements'); ?></h3> |
| 70 | <p><?php esc_html_e('Install Other Plugins', 'spider-elements'); ?></p> |
| 71 | </div> |
| 72 | </div> |
| 73 | </a> |
| 74 | </li> |
| 75 | |
| 76 | </ul> |
| 77 | </div> |