[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)




/wp-content/themes/twentythirteen/ -> functions.php (summary)

Twenty Thirteen 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: 827 lines (25 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 23 functions


Functions that are not part of a class:

twentythirteen_setup()   X-Ref
Twenty Thirteen setup.

Sets up theme defaults and registers the various WordPress features that
Twenty Thirteen supports.

twentythirteen_fonts_url()   X-Ref
Return the Google font stylesheet URL, if available.

The use of Source Sans Pro and Bitter 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.

twentythirteen_scripts_styles()   X-Ref
Enqueue scripts and styles for the front end.

twentythirteen_resource_hints( $urls, $relation_type )   X-Ref
Add preconnect for Google Fonts.

param: array   $urls          URLs to print for resource hints.
param: string  $relation_type The relation type the URLs are printed.
return: array URLs to print for resource hints.

twentythirteen_block_editor_styles()   X-Ref
Enqueue styles for the block-based editor.

twentythirteen_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 The filtered title.

twentythirteen_widgets_init()   X-Ref
Register two widget areas.

twentythirteen_paging_nav()   X-Ref
Display navigation to next/previous set of posts when applicable.

twentythirteen_post_nav()   X-Ref
Display navigation to next/previous post when applicable.

twentythirteen_entry_meta()   X-Ref
Print HTML with meta information for current post: categories, tags, permalink, author, and date.

Create your own twentythirteen_entry_meta() to override in a child theme.

twentythirteen_entry_date( $echo = true )   X-Ref
Print HTML with date information for current post.

Create your own twentythirteen_entry_date() to override in a child theme.

param: boolean $echo (optional) Whether to echo the date. Default true.
return: string The HTML-formatted post date.

twentythirteen_the_attached_image()   X-Ref
Print the attached image with a link to the next attached image.

twentythirteen_get_link_url()   X-Ref
Return the post URL.

return: string The Link format URL.

twentythirteen_excerpt_more( $more )   X-Ref
Replaces "[...]" (appended to automatically generated excerpts) with ...
and a Continue reading link.

param: string $more Default Read More excerpt link.
return: string Filtered Read More excerpt link.

twentythirteen_body_class( $classes )   X-Ref
Extend the default WordPress body classes.

Adds body classes to denote:
1. Single or multiple authors.
2. Active widgets in the sidebar to change the layout and spacing.
3. When avatars are disabled in discussion settings.

param: array $classes A list of existing body class values.
return: array The filtered body class list.

twentythirteen_content_width()   X-Ref
Adjust content_width value for video post formats and attachment templates.

twentythirteen_customize_register( $wp_customize )   X-Ref
Add postMessage support for site title and description for the Customizer.

param: WP_Customize_Manager $wp_customize Customizer object.

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

return: void

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

return: void

twentythirteen_customize_preview_js()   X-Ref
Enqueue Javascript postMessage handlers for the Customizer.

Binds JavaScript handlers to make the Customizer preview
reload changes asynchronously.

twentythirteen_widget_tag_cloud_args( $args )   X-Ref
Modifies tag cloud widget arguments to display all tags in the same font size
and use list format for better accessibility.

param: array $args Arguments for tag cloud widget.
return: array The filtered arguments for tag cloud widget.

twentythirteen_author_bio_template( $template )   X-Ref
Prevents `author-bio.php` partial template from interfering with rendering
an author archive of a user with the `bio` username.

param: string $template Template file.
return: string Replacement template file.

wp_body_open()   X-Ref
Fire the wp_body_open action.

Added for backwards compatibility to support pre 5.2.0 WordPress versions.

Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7