Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 KB | None | 0 0
  1. <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
  2.  
  3.   $section = (!empty( $_GET['section'])) ? $_GET['section'] : 'general';
  4.   $links   = array(
  5.     'general'    => 'General',
  6.     'elements'   => 'Elements',
  7.     'tools'      => 'Tools',
  8.     'go-premium' => 'Go Premium',
  9.   );
  10.  
  11. ?>
  12. <div class="tb-general tb-general-wrap">
  13.  
  14. <!--   <h1>Dragfy Addons for Elementor</h1>
  15.  
  16.   <div class="tb-logo">
  17.  
  18.     <div class="tb-text">ThemeBubble</div>
  19.     <div class="tb-text tb-version">v1.0</div>
  20.   </div> -->
  21.  
  22.   <h2 class="nav-tab-wrapper wp-clearfix">
  23.     <?php
  24.       foreach($links as $key => $link) {
  25.         $activate = ($section === $key) ? ' nav-tab-active' : '';
  26.         echo '<a href="'. add_query_arg( array( 'page' => Admin::$page_slug, 'section' => $key ), admin_url('admin.php')) .'" class="nav-tab'. $activate .'">'. $link .'</a>';
  27.       }
  28.     ?>
  29.   </h2>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement