| [ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Twenty Twelve functions and definitions Sets up the theme and provides some helper functions. Some helper functions are used in the theme as custom template tags. Others are attached to action and filter hooks in WordPress to change core functionality.
| File Size: | 342 lines (12 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| twentytwelve_setup() X-Ref |
| Sets up theme defaults and registers support for various WordPress features. |
| twentytwelve_header_style() X-Ref |
| Styles the header image and text displayed on the blog get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank'), or any hex value |
| twentytwelve_admin_header_style() X-Ref |
| Styles the header image displayed on the Appearance > Header admin panel. Referenced via add_custom_image_header() in twentytwelve_setup(). |
| twentytwelve_admin_header_image() X-Ref |
| Custom header image markup displayed on the Appearance > Header admin panel. Referenced via add_custom_image_header() in twentytwelve_setup(). |
| twentytwelve_scripts() X-Ref |
| Enqueue script for handling navigation. |
| twentytwelve_page_menu_args( $args ) X-Ref |
| Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. |
| twentytwelve_widgets_init() X-Ref |
| Register our single widget area. |
| twentytwelve_content_nav( $nav_id ) X-Ref |
| Display navigation to next/previous pages when applicable |
| twentytwelve_comment( $comment, $args, $depth ) X-Ref |
| Template for comments and pingbacks. To override this walker in a child theme without modifying the comments template simply create your own twentytwelve_comment(), and that function will be used instead. Used as a callback by wp_list_comments() for displaying the comments. |
| twentytwelve_posted_on() X-Ref |
| Prints HTML with meta information for the current post-date/time and author. Create your own twentytwelve_posted_on() to override in a child theme. |
| twentytwelve_body_class( $classes ) X-Ref |
| Extends the default WordPress body class to denote a full-width layout. Used in two cases: no active widgets in sidebar, and full-width page template. |
| Generated: Tue Mar 20 03:55:56 2012 | Hosted by follow the white rabbit. |