eewee_options_page

The Eewee responsive design eewee options page function.

Description

eewee_options_page(); 

Usage

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

Defined (1)

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

/includes/admin/theme-admin.php  
  1. function eewee_options_page() {  
  2. $options = get_option('eewee_options'); 
  3. $theme_data = wp_get_theme(); ?> 
  4.  
  5. <div class="wrap zee_admin_wrap">  
  6.  
  7. <div id="zee_admin_head"> 
  8. <div id="zee_options_logo"> 
  9. <a href="http://themeeewee.com/" target="_blank"> 
  10. <img src="<?php echo get_template_directory_uri(); ?>/includes/admin/images/eewee_logo.png" alt="Logo" /> 
  11. </a> 
  12. </div> 
  13. </div> 
  14. <div class="clear"></div> 
  15.  
  16. <div id="zee_admin_heading"> 
  17. <div class="icon32" id="icon-themes"></div> 
  18. <h2><?php echo $theme_data->Name; ?> <?php _e('Theme Options', 'eewee'); ?></h2> 
  19. </div> 
  20. <?php if ( isset( $_GET['settings-updated'] ) ) : ?> 
  21. <div class="updated"><p><?php _e('Theme settings updated successfully.', 'eewee'); ?></p></div> 
  22. <?php endif; ?> 
  23. <div class="clear"></div> 
  24.  
  25. <?php  
  26. // tabs (menu) 
  27.  
  28. // default tab 
  29. if ( isset ( $_GET['tab'] ) ) : $tab = $_GET['tab']; else: $tab = 'welcome'; endif; 
  30.  
  31. // tab welcome 
  32. if ( $tab == 'welcome' ) : 
  33. elseif( $tab == 'manual' ) : 
  34. // other tab 
  35. else: ?> 
  36. <form class="zee_form" action="options.php" method="post"> 
  37.  
  38. <div class="zee_settings"> 
  39. <?php settings_fields('eewee_options'); ?> 
  40. <?php do_settings_sections('themeeewee'); ?> 
  41. </div> 
  42.  
  43. <input name="eewee_options[validation-submit]" type="hidden" value="<?php echo $tab ?>" /> 
  44.  
  45. <p><input name="Submit" class="button-primary" type="submit" value="<?php esc_attr_e('Save Changes', 'eewee'); ?>" /></p> 
  46. </form> 
  47. <?php endif; ?> 
  48.  
  49. <?php  
  50. // right bar, welcome tab 
  51. </div> 
  52.  
  53. <?php