optionsframework_options_page

The ColorWay Theme optionsframework options page function.

Description

optionsframework_options_page(); 

Usage

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

Defined (1)

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

/functions/admin-interface.php  
  1. function optionsframework_options_page() { 
  2. $options = get_option('of_template');  
  3. $themename = get_option('of_themename'); 
  4. ?> 
  5.  
  6. <div class="wrap" id="of_container"> 
  7. <div id="of-popup-save" class="of-save-popup"> 
  8. <div class="of-save-save">Options Updated</div> 
  9. </div> 
  10. <div id="of-popup-reset" class="of-save-popup"> 
  11. <div class="of-save-reset">Options Reset</div> 
  12. </div> 
  13. <form action="" enctype="multipart/form-data" id="ofform"> 
  14. <div id="header"> 
  15. <div class="logo"> 
  16. <h2><?php echo $themename; ?> Options</h2> 
  17. </div> 
  18. <a href="http://www.inkthemes.com" target="_new"><div class="icon-option"> </div></a> 
  19. <div class="clear"></div> 
  20. </div> 
  21. <?php  
  22. // Rev up the Options Machine 
  23. $return = optionsframework_machine($options); 
  24. ?> 
  25. <div id="main"> 
  26. <div id="of-nav"> 
  27. <ul> 
  28. <?php echo $return[1] ?> 
  29. </ul> 
  30. </div> 
  31. <div id="content"> <?php echo $return[0]; /** Settings */ ?> </div> 
  32. <div class="clear"></div> 
  33. </div> 
  34. <div class="save_bar_top"> 
  35. <img style="display:none" src="<?php echo bloginfo('stylesheet_directory'); ?>/functions/images/loading-bottom.gif" class="ajax-loading-img ajax-loading-img-bottom" alt="Working..." /> 
  36. <input type="submit" value="Save All Changes" class="button-primary" /> 
  37. </form> 
  38. <form action="<?php echo esc_attr( $_SERVER['REQUEST_URI'] ) ?>" method="post" style="display:inline" id="ofform-reset"> 
  39. <span class="submit-footer-reset"> 
  40. <input name="reset" type="submit" value="Reset Options" class="button submit-button reset-button" onclick="return confirm('Click OK to reset. Any settings will be lost!');" /> 
  41. <input type="hidden" name="of_save" value="reset" /> 
  42. </span> 
  43. </form> 
  44. </div> 
  45. <?php if (!empty($update_message)) echo $update_message; ?> 
  46. <div style="clear:both;"></div> 
  47. </div> 
  48. <!--wrap--> 
  49. <?php