);"> <div class="hero__fill" style="background-color: <?php echo scotch_get_mask_color($cat_id); ?> ;"></div> <div class="row small-collapse medium-uncollapse"> <div class="columns large-12 large-centered"> <header class="page__header <?php echo scotch_get_hero_text_color($cat_id); ?> "> <!-- Add inverse class --> <?php echo scotch_get_the_archive_title(); ?> <div class="page__line" style="background-color: <?php echo scotch_get_category_color($cat_id); ?> ;"></div> <?php the_archive_description('<div class="page__description">', '</div>'); ?> </header><!-- .page-header --> <?php global $burocrate; ?> <!-- Feaured slider --> <?php if ($burocrate['categories-featured-slider']) { ?>
/** * Category link */ function scotch_entry_category($cat_count = NULL, $color = true) { if ('post' == get_post_type()) { $category = get_the_category(); $result = $cat_count == NULL ? count($category) : $cat_count; $category = array_slice($category, 0, $result); //Item count to view $result = count($category); $i = 1; foreach ($category as $catname) { echo "<div class='category_link' style='border-bottom: 2px solid; border-color: " . ($color == true ? scotch_get_category_color($catname->cat_ID) : 'transparent') . "; display: inline-block;'><a href='" . get_category_link($catname->cat_ID) . "'>" . $catname->cat_name . "</a></div>"; if ($i < $result) { echo ", "; } $i++; } } }