twentyeleven_theme_options_render_page

Render the theme options page for Twenty Eleven.

Description

twentyeleven_theme_options_render_page(); 

Usage

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

Defined (1)

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

/inc/theme-options.php  
  1. function twentyeleven_theme_options_render_page() { 
  2. ?> 
  3. <div class="wrap"> 
  4. <?php screen_icon(); ?> 
  5. <?php $theme_name = function_exists( 'wp_get_theme' ) ? wp_get_theme() : get_current_theme(); ?> 
  6. <h2><?php printf( __( '%s Theme Options', 'twentyeleven' ), $theme_name ); ?></h2> 
  7. <?php settings_errors(); ?> 
  8.  
  9. <form method="post" action="options.php"> 
  10. <?php 
  11. settings_fields( 'twentyeleven_options' ); 
  12. do_settings_sections( 'theme_options' ); 
  13. submit_button(); 
  14. ?> 
  15. </form> 
  16. </div> 
  17. <?php