Abstract_Naguro_WordPress_Settings_Page

The WooCommerce Naguro Connect Abstract Naguro WordPress Settings Page class.

Defined (1)

The class is defined in the following location(s).

/includes/wordpress/abstracts/abstract-wordpress-settings-page.php  
  1. abstract class Abstract_Naguro_WordPress_Settings_Page { 
  2. protected function output_tabs( $active_tab = 'dashboard' ) { 
  3. do_action( 'naguro_before_output_tabs' ); 
  4.  
  5. ?> 
  6. <div class="icon32 icon32-woocommerce-naguro-settings" id="icon-woocommerce-naguro"><br /></div> 
  7. <h2 class="nav-tab-wrapper"> 
  8.  
  9. <?php 
  10. $base_classes = 'nav-tab'; 
  11. $admin_url = admin_url( 'admin.php?page=woocommerce-naguro' ); 
  12.  
  13. $tabs = array( 
  14. 'dashboard' => array( 
  15. 'url' => $admin_url . '&tab=dashboard',  
  16. 'label' => 'Dashboard',  
  17. 'classes' => $base_classes,  
  18. ),  
  19. 'modules' => array( 
  20. 'url' => $admin_url . '&tab=modules',  
  21. 'label' => 'Modules',  
  22. 'classes' => $base_classes,  
  23. ),  
  24. 'settings' => array( 
  25. 'url' => $admin_url . '&tab=settings',  
  26. 'label' => 'Settings',  
  27. 'classes' => $base_classes,  
  28. ),  
  29. ); 
  30.  
  31. foreach ( $tabs as $key => $tab ) { 
  32. $tab['classes'] = ( $key === $active_tab ) ? $tab['classes'] . ' nav-tab-active' : $tab['classes']; 
  33. echo '<a href="'.$tab['url'].'" class="'.$tab['classes'].'">'.$tab['label'].'</a>'; 
  34. ?> 
  35. </h2> 
  36. <?php 
  37.  
  38. do_action( 'naguro_after_output_tabs' );