<?php /* Template Name: Categorical */ ?> <?php get_header(); ?> <?php foreach (get_the_category() as $category) { $categories[] = $category->slug; } $page_categories = implode(", ", $categories); $page_slug = $post->post_name; $page_section = wsunews_get_section(); ?> <main class="categorical"> <div class="main-body"> <?php include locate_template('/sections/sections.php'); ?> </div> </main> <?php
<?php $news_section = wsunews_get_section(); $news_section_link = '<a href="/' . $news_section . '/">View all stories in ' . ucfirst($news_section) . '</a>'; $exclude_photos = defined('WSU_LOCAL_CONFIG') && true === WSU_LOCAL_CONFIG ? "499" : "13026"; //if ( !is_single() ) { $story = "articles/story-before"; } else { $story = "articles/story"; } if (!is_single()) { $layout = "margin-right"; } else { $layout = "single"; } function section_link($section) { if ($section == "") { $section = "cover"; } echo '<a href="/' . $section . '/" class="section-link">Go to ' . ucfirst($section) . ' Section</a>'; } ?> <div class="sections row <?php echo $layout; ?> "> <div class="column one fluid equalize"> <section id="crimson" class="section crimson featured news-section nested <?php echo $news_section == "cover" ? "opened current" : "not-current"; ?> " data-sec="1">