Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
- $section = (!empty( $_GET['section'])) ? $_GET['section'] : 'general';
- $links = array(
- 'general' => 'General',
- 'elements' => 'Elements',
- 'tools' => 'Tools',
- 'go-premium' => 'Go Premium',
- );
- ?>
- <div class="tb-general tb-general-wrap">
- <!-- <h1>Dragfy Addons for Elementor</h1>
- <div class="tb-logo">
- <div class="tb-text">ThemeBubble</div>
- <div class="tb-text tb-version">v1.0</div>
- </div> -->
- <h2 class="nav-tab-wrapper wp-clearfix">
- <?php
- foreach($links as $key => $link) {
- $activate = ($section === $key) ? ' nav-tab-active' : '';
- echo '<a href="'. add_query_arg( array( 'page' => Admin::$page_slug, 'section' => $key ), admin_url('admin.php')) .'" class="nav-tab'. $activate .'">'. $link .'</a>';
- }
- ?>
- </h2>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement