[ Index ]

WordPress Cross Reference

title

Body

[close]

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

Twenty Fourteen functions and definitions Set 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: 524 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 13 functions

  twentyfourteen_setup()
  twentyfourteen_content_width()
  twentyfourteen_get_featured_posts()
  twentyfourteen_has_featured_posts()
  twentyfourteen_widgets_init()
  twentyfourteen_font_url()
  twentyfourteen_scripts()
  twentyfourteen_admin_fonts()
  twentyfourteen_the_attached_image()
  twentyfourteen_list_authors()
  twentyfourteen_body_classes()
  twentyfourteen_post_classes()
  twentyfourteen_wp_title()

Functions
Functions that are not part of a class:

twentyfourteen_setup()   X-Ref
Twenty Fourteen setup.

Set up theme defaults and registers support for various WordPress features.

Note that this function is hooked into the after_setup_theme hook, which
runs before the init hook. The init hook is too late for some features, such
as indicating support post thumbnails.


twentyfourteen_content_width()   X-Ref
Adjust content_width value for image attachment template.

return: void

twentyfourteen_get_featured_posts()   X-Ref
Getter function for Featured Content Plugin.

return: array An array of WP_Post objects.

twentyfourteen_has_featured_posts()   X-Ref
A helper conditional function that returns a boolean value.

return: bool Whether there are featured posts.

twentyfourteen_widgets_init()   X-Ref
Register three Twenty Fourteen widget areas.

return: void

twentyfourteen_font_url()   X-Ref
Register Lato Google font for Twenty Fourteen.

return: string

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

return: void

twentyfourteen_admin_fonts()   X-Ref
Enqueue Google fonts style to admin screen for custom header display.

return: void

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

return: void

twentyfourteen_list_authors()   X-Ref
Print a list of all site contributors who published at least one post.

return: void

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

Adds body classes to denote:
1. Single or multiple authors.
2. Presence of header image.
3. Index views.
4. Full-width content layout.
5. Presence of footer widgets.
6. Single views.
7. Featured content layout.

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

twentyfourteen_post_classes( $classes )   X-Ref
Extend the default WordPress post classes.

Adds a post class to denote:
Non-password protected page with a post thumbnail.

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

twentyfourteen_wp_title( $title, $sep )   X-Ref
Create 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.



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