gl_plugin_options_tabs

Renders our tabs in the Plugin Options page.

Description

gl_plugin_options_tabs(); 

Usage

  1. if ( !function_exists( 'gl_plugin_options_tabs' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-locker-for-wordpress/admin/pages.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gl_plugin_options_tabs(); 
  7.  

Defined (1)

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

/admin/pages.php  
  1. function gl_plugin_options_tabs( ) { 
  2. $current_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : gl_get_general_settings_key(); 
  3.  
  4. screen_icon(); 
  5. echo '<h2 class="nav-tab-wrapper">'; 
  6.  
  7. $plugin_settings_tabs = gl_get_plugin_settings_tabs(); 
  8. foreach ( $plugin_settings_tabs as $tab_key => $tab_caption ) { 
  9. $active = $current_tab == $tab_key ? 'nav-tab-active' : ''; 
  10. echo '<a class="nav-tab ' . $active . '" href="?page=' . gl_get_plugin_options_key() . '&tab=' . $tab_key . '">' . $tab_caption . '</a>'; 
  11. echo '</h2>';