themeshock_add_admin

The Responsive Minimal themeshock add admin function.

Description

themeshock_add_admin(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function themeshock_add_admin() { 
  2. global $themename, $shortname, $wpdb; 
  3. if ( isset($_GET['page']) == basename(__FILE__) ) { 
  4. if ( 'save' == isset($_REQUEST['action']) ) { 
  5. foreach ($_POST as $option_name => $newvalue) { 
  6. switch($option_name) {///parta evitar datos basura del layout generator 
  7. case 'top_1_style': 
  8. case 'top_2_style': 
  9. case 'left_1_style': 
  10. case 'left_2_style':  
  11. case 'right_1_style':  
  12. case 'right_2_style': 
  13. case 'bottom_1_style': 
  14. case 'bottom_2_style': 
  15. case 'slider_blog': 
  16. case 'slider_single': 
  17. case 'slider_search': 
  18. case 'slider_archive': 
  19. case 'slider_category': 
  20. case 'footer_widget_style': 
  21. case 'themeshock_featured': 
  22. case 'ft_size':  
  23. break; 
  24. default: 
  25. update_option( $option_name, $newvalue );  
  26. break; 
  27. add_object_page($themename, $themename, 'administrator', basename(__FILE__), 'themeshock_admin');