<?php get_header(); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); if (has_post_thumbnail()) { $image_id = get_post_thumbnail_id($page->ID); $image_high = wp_get_attachment_image_src($image_id, 'full', false); $image_high = fix_internal_url($image_high[0]); ?> <div style="background-image: url(<?php echo $image_high; ?> );" class="jumbotron main will-banner"> <?php } else { ?> <div class="jumbotron main will-banner"> <?php } ?>
?> <div class="col starts-at-full ends-at-full boc margin-none clr"> <?php $lead_author = get_post_meta($post->ID, 'authors_section_lead-author', true); $args = array('post_type' => 'page', 'posts_per_page' => -1, 'post_parent' => $post->ID, 'order' => 'ASC', 'orderby' => 'meta_value', 'meta_key' => 'authors_section_lead-author'); $child = new WP_Query($args); ?> <?php if ($child->have_posts()) { while ($child->have_posts()) { $child->the_post(); ?> <div class="breather"> <div> <a href="<?php echo fix_internal_url(get_permalink()); ?> " title="<?php the_title(); ?> "> <h3 class="margin-bottom-small"><?php the_title(); ?> </h3> </a> <div class="clearfix"></div> <span class="entry-meta"> <?php $other_authors = get_post_meta($post->ID, 'authors_section_other-authors', true); if (empty($other_authors)) {
if ($Dcount >= 1) { ?> <div class="document-slides"> <h2>Explore Shakespeare's will</h2> <div class="clearfix-padding"></div> <span id="slider-prev"></span> <span id="slider-next"></span> <div class="bxslider"> <!-- thumbs go here --> <?php while ($Dquery->have_posts()) { $Dquery->the_post(); $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id, 'medium', false); $image_src = fix_internal_url($image_url[0]); ?> <a href="<?php echo get_page_link($Dquery->ID); ?> " title="View <?php echo get_the_title($Dquery->ID); ?> "> <div class="document-slide-thumb" <?php printf('style="background-image: url(%s)"', $image_src); ?> > <div class="slide-title dark-grey-bg"><p><?php echo get_the_title($Dquery->ID); ?>
//Header for the cateogry ?> <div class=" padding-left-extra-big"> <?php echo "<h2>" . $cat->name . "</h2>"; ?> </div> <div class="clearfix"></div> <?php query_posts("cat={$cat_id}&post_per_page=12"); if (have_posts()) { while (have_posts()) { the_post(); $thumb_id = get_post_thumbnail_id($page->ID); $thumb_url = wp_get_attachment_image_src($thumb_id, 'large', false); $thumb_url = fix_internal_url($thumb_url[0]); ?> <div class="float-left half padding-left-extra-big"> <h3> <a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "><?php the_title(); ?> </a></h3>