| [ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Twenty Eleven Theme Options
| File Size: | 444 lines (16 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| 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. |
| 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 our 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 |
| Returns an array of color schemes registered for Twenty Eleven. |
| twentyeleven_layouts() X-Ref |
| Returns an array of layout options registered for Twenty Eleven. |
| twentyeleven_get_default_theme_options() X-Ref |
| Returns the default options for Twenty Eleven. |
| twentyeleven_get_default_link_color( $color_scheme = null ) X-Ref |
| Returns the default link color for Twenty Eleven, based on color scheme. param: $string $color_scheme Color scheme. Defaults to the active color scheme. return: $string Color. |
| twentyeleven_get_theme_options() X-Ref |
| Returns the options array for Twenty Eleven. |
| twentyeleven_settings_field_color_scheme() X-Ref |
| Renders the Color Scheme setting field. |
| twentyeleven_settings_field_link_color() X-Ref |
| Renders the Link Color setting field. |
| twentyeleven_settings_field_layout() X-Ref |
| Renders the Layout setting field. |
| twentyeleven_theme_options_render_page() X-Ref |
| Returns the options array for Twenty Eleven. |
| twentyeleven_theme_options_validate( $input ) X-Ref |
| Sanitize and validate form input. Accepts an array, return a sanitized array. |
| 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 |
| Adds Twenty Eleven layout classes to the array of body classes. |
| Generated: Fri May 25 03:56:23 2012 | Hosted by follow the white rabbit. |