washingtonstateuniversity/WSUWP-spine-parent-theme — pull request #83 by jeremyfelt (2014-07-31 20:57:52+00:00)
Title: [PR] Adjustments to Main Header sup and sub

Adds to previous commits from @natejacobson to identify proper behavior for the main header `sup` and `sub` elements.

For `sup`:
1. By default, the WordPress Site Name setting is `sup`
1. If a Global Sup Header is set in customizer, this overrides the site name as `sup`.
1. If a single post or page has `sup` meta, this overrides the global header for that page view.
1. If a child theme uses the `spine_sup_header_default` filter, that overrides.
1. If a child theme uses the `spine_main_header_elements` filter to filter all pieces, that overrides.

`sub` starts off blank, but is guaranteed to be filled in:
1. If archive, use the archive title.
1. If single, use either the post type label or the page for posts title.
1. If a page, use the section title if a sub page, the site's tagline if a top level parent page.
1. If the front page, use the site's tagline.
1. If home, and not the page for posts, use the site's tagline.
1. If home, and the page for posts, use the page for posts title.
1. If search, use "Search Results".
1. If a 404, use "Page Not Found".
1. If a Global Sub Header is set in customizer, this overrides any previous setting for `sub`.
1. If a single post or page has `sub` meta, this overrides the global header for that page view.
1. If a child theme uses the `spine_sub_header_default` filter, that overrides.
1. If a child theme uses the `spine_main_header_elements` filter to filter all pieces, that overrides.