[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Additional features to allow styling of the templates.

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

Defines 3 functions

  twentyseventeen_body_classes()
  twentyseventeen_panel_count()
  twentyseventeen_is_frontpage()

Functions
Functions that are not part of a class:

twentyseventeen_body_classes( $classes )   X-Ref
Adds custom classes to the array of body classes.

return: array
param: array $classes Classes for the body element.

twentyseventeen_panel_count()   X-Ref
Counts the number of our active panels.

Primarily used to see if we have any panels active.

return: int The number of active panels.

twentyseventeen_is_frontpage()   X-Ref
Checks to see if we are on the front page or not.

return: bool Whether we are on the front page or not.



Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref