[ Index ] |
WordPress Cross Reference |
[Source view] [Print] [Project Stats]
Twenty Twelve functions and definitions Sets up the theme and provides some helper functions, which 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: | 510 lines (18 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
twentytwelve_setup() X-Ref |
Twenty Twelve setup. Sets up theme defaults and registers the various WordPress features that Twenty Twelve supports. |
twentytwelve_get_font_url() X-Ref |
Return the Google font stylesheet URL if available. The use of Open Sans by default is localized. For languages that use characters not supported by the font, the font can be disabled. return: string Font stylesheet or empty string if disabled. |
twentytwelve_scripts_styles() X-Ref |
Enqueue scripts and styles for front-end. return: void |
twentytwelve_mce_css( $mce_css ) X-Ref |
Filter TinyMCE CSS path to include Google Fonts. Adds additional stylesheets to the TinyMCE editor if needed. param: string $mce_css CSS path to load in TinyMCE. return: string Filtered CSS path. |
twentytwelve_wp_title( $title, $sep ) X-Ref |
Filter the page title. Creates a nicely formatted and more specific title element text for output in head of document, based on current view. param: string $title Default title text for current view. param: string $sep Optional separator. return: string Filtered title. |
twentytwelve_page_menu_args( $args ) X-Ref |
Filter the page menu arguments. Makes our wp_nav_menu() fallback -- wp_page_menu() -- show a home link. |
twentytwelve_widgets_init() X-Ref |
Register sidebars. Registers our main widget area and the front page widget areas. |
twentytwelve_content_nav( $html_id ) X-Ref |
Displays 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. return: void |
twentytwelve_entry_meta() X-Ref |
Set up post entry meta. Prints HTML with meta information for current post: categories, tags, permalink, author, and date. Create your own twentytwelve_entry_meta() to override in a child theme. return: void |
twentytwelve_body_class( $classes ) X-Ref |
Extend the default WordPress body classes. Extends the default WordPress body class to denote: 1. Using a full-width layout, when no active widgets in the sidebar or full-width template. 2. Front Page template: thumbnail in use and number of sidebars for widget areas. 3. White or empty background color to change the layout and spacing. 4. Custom fonts enabled. 5. Single or multiple authors. param: array $classes Existing class values. return: array Filtered class values. |
twentytwelve_content_width() X-Ref |
Adjust content width in certain contexts. Adjusts content_width value for full-width and single image attachment templates, and when there are no active widgets in the sidebar. return: void |
twentytwelve_customize_register( $wp_customize ) X-Ref |
Register postMessage support. Add postMessage support for site title and description for the Customizer. param: WP_Customize_Manager $wp_customize Customizer object. return: void |
twentytwelve_customize_preview_js() X-Ref |
Enqueue Javascript postMessage handlers for the Customizer. Binds JS handlers to make the Customizer preview reload changes asynchronously. return: void |
Generated: Tue Mar 25 01:41:18 2014 | WordPress honlapkészítés: online1.hu |