[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/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: 943 lines (29 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 26 functions

  twentythirteen_register_block_patterns()
  twentythirteen_setup()
  twentythirteen_fonts_url()
  twentythirteen_scripts_styles()
  twentythirteen_resource_hints()
  twentythirteen_block_editor_styles()
  twentythirteen_wp_title()
  twentythirteen_widgets_init()
  wp_get_list_item_separator()
  twentythirteen_paging_nav()
  twentythirteen_post_nav()
  twentythirteen_entry_meta()
  twentythirteen_entry_date()
  twentythirteen_the_attached_image()
  twentythirteen_get_link_url()
  twentythirteen_excerpt_more()
  twentythirteen_body_class()
  twentythirteen_content_width()
  twentythirteen_customize_register()
  twentythirteen_customize_partial_blogname()
  twentythirteen_customize_partial_blogdescription()
  twentythirteen_customize_preview_js()
  twentythirteen_widget_tag_cloud_args()
  twentythirteen_author_bio_template()
  wp_body_open()
  twentythirteen_register_block_styles()

Functions
Functions that are not part of a class:

twentythirteen_register_block_patterns()   X-Ref
Register block patterns and pattern categories.


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 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.

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

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.

return: string The filtered title.
param: string $title Default title text for current view.
param: string $sep   Optional separator.

twentythirteen_widgets_init()   X-Ref
Register two widget areas.


wp_get_list_item_separator()   X-Ref
Retrieves the list item separator based on the locale.

Added for backward compatibility to support pre-6.0.0 WordPress versions.


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( $display = true )   X-Ref
Print HTML with date information for current post.

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

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

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.

return: string Filtered Read More excerpt link.
param: string $more Default 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.

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

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.

return: array The filtered arguments for tag cloud widget.
param: array $args 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.

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

wp_body_open()   X-Ref
Fire the wp_body_open action.

Added for backward compatibility to support pre-5.2.0 WordPress versions.


twentythirteen_register_block_styles()   X-Ref
Register Custom Block Styles




Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref