[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentyseventeen/inc/ -> template-tags.php (summary)

Custom template tags for this theme. Eventually, some of the functionality here could be replaced by core features.

File Size: 236 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  twentyseventeen_posted_on()
  twentyseventeen_time_link()
  twentyseventeen_entry_footer()
  twentyseventeen_edit_link()
  twentyseventeen_front_page_section()
  twentyseventeen_categorized_blog()
  twentyseventeen_category_transient_flusher()
  wp_body_open()

Functions
Functions that are not part of a class:

twentyseventeen_posted_on()   X-Ref
Prints HTML with meta information for the current post-date/time and author.


twentyseventeen_time_link()   X-Ref
Gets a nicely formatted string for the published date.


twentyseventeen_entry_footer()   X-Ref
Prints HTML with meta information for the categories, tags and comments.


twentyseventeen_edit_link()   X-Ref
Returns an accessibility-friendly link to edit a post or page.

This also gives a little context about what exactly we're editing
(post or page?) so that users understand a bit more where they are in terms
of the template hierarchy and their content. Helpful when/if the single-page
layout with multiple posts/pages shown gets confusing.

twentyseventeen_front_page_section( $partial = null, $id = 0 )   X-Ref
Displays a front page section.

param: WP_Customize_Partial $partial Partial associated with a selective refresh request.
param: int                  $id      Front page section to display.

twentyseventeen_categorized_blog()   X-Ref
Returns true if a blog has more than 1 category.

return: bool

twentyseventeen_category_transient_flusher()   X-Ref
Flushes out the transients used in twentyseventeen_categorized_blog.


wp_body_open()   X-Ref
Fires the wp_body_open action.

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




Generated : Tue Mar 19 08:20:01 2024 Cross-referenced by PHPXref