inkthemes_optionsframework_add_admin

The Black Rider Lite Responsive Theme inkthemes optionsframework add admin function.

Description

inkthemes_optionsframework_add_admin(); 

Usage

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

Defined (1)

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

/functions/admin-interface.php  
  1. function inkthemes_optionsframework_add_admin() { 
  2. global $query_string; 
  3.  
  4. $themename = inkthemes_get_option('of_themename'); 
  5. $shortname = inkthemes_get_option('of_shortname'); 
  6.  
  7. if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'optionsframework') { 
  8. if (isset($_REQUEST['of_save']) && 'reset' == $_REQUEST['of_save']) { 
  9. $options = inkthemes_get_option('of_template'); 
  10. inkthemes_reset_options($options, 'optionsframework'); 
  11. header("Location: admin.php?page=optionsframework&reset=true"); 
  12. die; 
  13.  
  14.  
  15. $of_page = add_theme_page($themename, 'Theme Options', 'edit_theme_options', 'optionsframework', 'inkthemes_optionsframework_options_page', 'div'); 
  16.  
  17. // Add framework functionaily to the head individually 
  18. add_action("admin_print_scripts-$of_page", 'inkthemes_load_only');