From: Anthony Talarico Date: Thu, 27 Jul 2017 18:45:56 +0000 (-0400) Subject: adding check for the page slug to choose the event category X-Git-Tag: v1.0.0^2~106 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=5fdde0e755cbc6cb69f8f3d7c44e7c76ba2a30c7;p=WP-Themes%2Fbaragacounty.git adding check for the page slug to choose the event category event categories are added to the events shortcode in the sidebar based on the page slug --- diff --git a/index.php b/index.php index 0400b7c..7173c91 100644 --- a/index.php +++ b/index.php @@ -42,6 +42,7 @@ } else { // If not, and I am clearly not frontpage (checked above), I must be an entity landing page include __DIR__.'/sections/entity-landing.php'; + } } } diff --git a/parts/event-feed.php b/parts/event-feed.php index f5ada0e..a82de4e 100644 --- a/parts/event-feed.php +++ b/parts/event-feed.php @@ -1,7 +1,25 @@ + - + diff --git a/sections/entity-landing.php b/sections/entity-landing.php index 0c62fc0..3371843 100644 --- a/sections/entity-landing.php +++ b/sections/entity-landing.php @@ -13,7 +13,8 @@ echo ""; } get_template_part('parts/main-content'); - get_template_part('parts/glm-blocks'); +// echo bloginfo('template_directory').'/parts/glm-blocks.php'; + include __DIR__.'/../parts/glm-blocks.php'; echo ""; } ?>