[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentyeleven/inc/ -> theme-options.php (summary)

Twenty Eleven Theme Options

File Size: 678 lines (23 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 22 functions

  twentyeleven_admin_enqueue_scripts()
  twentyeleven_theme_options_init()
  twentyeleven_option_page_capability()
  twentyeleven_theme_options_add_page()
  twentyeleven_theme_options_help()
  twentyeleven_color_schemes()
  twentyeleven_layouts()
  twentyeleven_get_default_theme_options()
  twentyeleven_get_default_link_color()
  twentyeleven_get_theme_options()
  twentyeleven_settings_field_color_scheme()
  twentyeleven_settings_field_link_color()
  twentyeleven_settings_field_layout()
  twentyeleven_theme_options_render_page()
  twentyeleven_theme_options_validate()
  twentyeleven_enqueue_color_scheme()
  twentyeleven_print_link_color_style()
  twentyeleven_layout_classes()
  twentyeleven_customize_register()
  twentyeleven_customize_partial_blogname()
  twentyeleven_customize_partial_blogdescription()
  twentyeleven_customize_preview_js()

Functions
Functions that are not part of a class:

twentyeleven_admin_enqueue_scripts( $hook_suffix )   X-Ref
Properly enqueue styles and scripts for our theme options page.

This function is attached to the admin_enqueue_scripts action hook.

param: string $hook_suffix An admin page's hook suffix.

twentyeleven_theme_options_init()   X-Ref
Register the form setting for our twentyeleven_options array.

This function is attached to the admin_init action hook.

This call to register_setting() registers a validation callback, twentyeleven_theme_options_validate(),
which is used when the option is saved, to ensure that our option values are complete, properly
formatted, and safe.


twentyeleven_option_page_capability( $capability )   X-Ref
Change the capability required to save the 'twentyeleven_options' options group.

param: string $capability The capability used for the page, which is manage_options by default.
return: string The capability to actually use.

twentyeleven_theme_options_add_page()   X-Ref
Add a theme options page to the admin menu, including some help documentation.

This function is attached to the admin_menu action hook.


twentyeleven_theme_options_help()   X-Ref
No description

twentyeleven_color_schemes()   X-Ref
Return an array of color schemes registered for Twenty Eleven.


twentyeleven_layouts()   X-Ref
Return an array of layout options registered for Twenty Eleven.


twentyeleven_get_default_theme_options()   X-Ref
Return the default options for Twenty Eleven.

return: array An array of default theme options.

twentyeleven_get_default_link_color( $color_scheme = null )   X-Ref
Return the default link color for Twenty Eleven, based on color scheme.

param: string $color_scheme Optional. Color scheme.
return: string The default link color.

twentyeleven_get_theme_options()   X-Ref
Return the options array for Twenty Eleven.


twentyeleven_settings_field_color_scheme()   X-Ref
Render the Color Scheme setting field.


twentyeleven_settings_field_link_color()   X-Ref
Render the Link Color setting field.


twentyeleven_settings_field_layout()   X-Ref
Render the Layout setting field.


twentyeleven_theme_options_render_page()   X-Ref
Render the theme options page for Twenty Eleven.


twentyeleven_theme_options_validate( $input )   X-Ref
Sanitize and validate form input.

Accepts an array, return a sanitized array.

param: array $input An array of form input.

twentyeleven_enqueue_color_scheme()   X-Ref
Enqueue the styles for the current color scheme.


twentyeleven_print_link_color_style()   X-Ref
Add a style block to the theme for the current link color.

This function is attached to the wp_head action hook.


twentyeleven_layout_classes( $existing_classes )   X-Ref
Add Twenty Eleven layout classes to the array of body classes.

param: array $existing_classes An array of existing body classes.

twentyeleven_customize_register( $wp_customize )   X-Ref
Implements Twenty Eleven theme options into Customizer

param: WP_Customize_Manager $wp_customize Customizer object.

twentyeleven_customize_partial_blogname()   X-Ref
Render the site title for the selective refresh partial.

return: void

twentyeleven_customize_partial_blogdescription()   X-Ref
Render the site tagline for the selective refresh partial.

return: void

twentyeleven_customize_preview_js()   X-Ref
Bind JS handlers to make Customizer preview reload changes asynchronously.

Used with blogname and blogdescription.




Generated : Tue Mar 19 08:20:01 2024 Cross-referenced by PHPXref