[ Index ]

WordPress Cross Reference

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

Defines 15 functions

  twentythirteen_setup()
  twentythirteen_fonts_url()
  twentythirteen_scripts_styles()
  twentythirteen_wp_title()
  twentythirteen_widgets_init()
  twentythirteen_paging_nav()
  twentythirteen_post_nav()
  twentythirteen_entry_meta()
  twentythirteen_entry_date()
  twentythirteen_the_attached_image()
  twentythirteen_get_link_url()
  twentythirteen_body_class()
  twentythirteen_content_width()
  twentythirteen_customize_register()
  twentythirteen_customize_preview_js()

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.

return: void

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.

return: void

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.

return: void

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

return: void

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

return: void

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.

return: void

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.

return: void

twentythirteen_get_link_url()   X-Ref
Return the post URL.

return: string The Link format URL.

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.

return: void

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

return: void



Generated: Tue Mar 25 01:41:18 2014 WordPress honlapkészítés: online1.hu