Overhauled the way the entity template retrieval
authorLaury GvR <laury@gaslightmedia.com>
Wed, 9 Aug 2017 17:23:49 +0000 (13:23 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 9 Aug 2017 17:23:49 +0000 (13:23 -0400)
commit1fee8b800f666bbb7a167d2709af8f78aa961edf
treece8c7e7690601df43cbec974cafb493a191de2a6
parentcc54a52f08ffd9e13cb328d610fc4b6a065febc3
Overhauled the way the entity template retrieval

- The way of retrieving the right entity template is significantly
simplified (and vastly improved) and now get_entity_template() is
used as well as is_entity_landing_page(). As a result straggler
pages (without a designated entity parent) are easily given the
'default' template.
- The sidebar has been fixed and should show up (or not) as
expected, on no-sidebar templates and GLM Associate required pages
alike.
- The navigation lib file has been fixed, allowing for proper
sidemenu items even on pages without an entity parent.
12 files changed:
css/app.css.map
functions.php
glm-members-only-template.php [new file with mode: 0644]
index.php
lib/header.php
lib/misc.php
lib/navigation.php
parts/glm-blocks.php
scss/_blog.scss
scss/_body.scss
sections/entity-interior.php
sections/entity-landing.php