optionsframework_tabs

Generates the tabs that are used in the options menu.

Description

optionsframework_tabs(); 

Usage

  1. if ( !function_exists( 'optionsframework_tabs' ) ) { 
  2. require_once '/admin/options-framework/options-interface.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = optionsframework_tabs(); 
  7.  

Defined (1)

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

/admin/options-framework/options-interface.php  
  1. function optionsframework_tabs() { 
  2.  
  3. $optionsframework_settings = get_option('optionsframework'); 
  4. $options = optionsframework_options(); 
  5. $menu = ''; 
  6.  
  7. foreach ($options as $value) { 
  8. // Heading for Navigation 
  9. if ($value['type'] == "heading") { 
  10. $jquery_click_hook = preg_replace('/[^a-zA-Z0-9._\-]/', '', strtolower($value['name']) ); 
  11. $jquery_click_hook = "of-option-" . $jquery_click_hook; 
  12. $menu .= '<a id="'. esc_attr( $jquery_click_hook ) . '-tab" class="nav-tab" title="' . esc_attr( $value['name'] ) . '" href="' . esc_attr( '#'. $jquery_click_hook ) . '">' . esc_html( $value['name'] ) . '</a>'; 
  13.  
  14. return $menu;