[ Index ]

PHP Cross Reference of WordPress

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: 219 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 us 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
Display a front page section.

param: WP_Customize_Partial $partial Partial associated with a selective refresh request.
param: integer              $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
Flush out the transients used in twentyseventeen_categorized_blog.


wp_body_open()   X-Ref
Fire the wp_body_open action.

Added for backwards compatibility to support pre 5.2.0 WordPress versions.

since: Twenty Seventeen 2.2



Generated: Mon Sep 23 01:00:03 2019 Cross-referenced by PHPXref 0.7.1