<?php /** * Template Name: Library Journal * * * @package knight_wallace */ get_header(); //grab our junk include_once 'helpers.php'; $libs = get_posts(array('post_type' => 'library', 'posts_per_page' => -1)); $sorted_libs = sort_library_items_sub_cat($libs, "Journal"); ?> <?php $parent_id = get_post_ancestors($post->ID); $parent = !empty($parent_id) ? get_post($parent_id[0]) : false; if (!empty($parent)) { ?> <section class="breadcrumb"> <div class="row"> <div class="small-6 columns"> <a href="<?php echo !empty($parent->guid) ? $parent->guid : ''; ?> " class="breadcrumb-link"> <?php echo !empty($parent->post_title) ? $parent->post_title : ''; ?> </a>
<?php /** * Template Name: Library Articles * * * @package knight_wallace */ get_header(); //grab our junk include_once 'helpers.php'; $libs = get_posts(array('post_type' => 'library', 'posts_per_page' => -1)); $sorted_libs = sort_library_items_sub_cat($libs, "Article"); $parent_id = get_post_ancestors($post->ID); $parent = !empty($parent_id) ? get_post($parent_id[0]) : false; if (!empty($parent)) { ?> <section class="breadcrumb"> <div class="row"> <div class="small-6 columns"> <a href="<?php echo !empty($parent->guid) ? $parent->guid : ''; ?> " class="breadcrumb-link"> <?php echo !empty($parent->post_title) ? $parent->post_title : ''; ?> </a> </div> </div> </section>
<?php /** * Template Name: Library Videos * * * @package knight_wallace */ get_header(); //grab our junk include_once 'helpers.php'; $libs = get_posts(array('post_type' => 'library', 'posts_per_page' => -1)); $sorted_libs = sort_library_items_sub_cat($libs, "Video"); ?> <?php $parent_id = get_post_ancestors($post->ID); $parent = !empty($parent_id) ? get_post($parent_id[0]) : false; if (!empty($parent)) { ?> <section class="breadcrumb"> <div class="row"> <div class="small-6 columns"> <a href="<?php echo !empty($parent->guid) ? $parent->guid : ''; ?> " class="breadcrumb-link"> <?php echo !empty($parent->post_title) ? $parent->post_title : ''; ?> </a>
<?php /** * Template Name: Library Photojournalism * * * @package knight_wallace */ get_header(); //grab our junk include_once 'helpers.php'; $libs = get_posts(array('post_type' => 'library', 'posts_per_page' => -1)); $sorted_libs = sort_library_items_sub_cat($libs, "Photojournalism"); ?> <?php $parent_id = get_post_ancestors($post->ID); $parent = !empty($parent_id) ? get_post($parent_id[0]) : false; if (!empty($parent)) { ?> <section class="breadcrumb"> <div class="row"> <div class="small-6 columns"> <a href="<?php echo !empty($parent->guid) ? $parent->guid : ''; ?> " class="breadcrumb-link"> <?php echo !empty($parent->post_title) ? $parent->post_title : ''; ?> </a>
<?php /** * Template Name: Library Books * * * @package knight_wallace */ get_header(); //grab our junk include_once 'helpers.php'; $libs = get_posts(array('post_type' => 'library', 'posts_per_page' => -1)); $sorted_libs = sort_library_items_sub_cat($libs, "Book"); ?> <?php $parent_id = get_post_ancestors($post->ID); $parent = !empty($parent_id) ? get_post($parent_id[0]) : false; if (!empty($parent)) { ?> <section class="breadcrumb"> <div class="row"> <div class="small-6 columns"> <a href="<?php echo !empty($parent->guid) ? $parent->guid : ''; ?> " class="breadcrumb-link"> <?php echo !empty($parent->post_title) ? $parent->post_title : ''; ?> </a>