<?php get_header(); ?> <?php if (have_posts()) { the_post(); ?> <?php jeo_map(); ?> <article id="content" class="single-post"> <header class="single-post-header" class="clearfix"> <div class="container"> <div class="eight columns"> <?php the_category(); ?> <h1><?php the_title(); ?> </h1> </div> <div class="three columns offset-by-one"> <div class="post-meta"> <p class="author"><span class="lsf"></span> <?php _e('by', 'jeo'); ?>
<?php query_posts(array('jeo_featured' => 1, 'posts_per_page' => 4)); ?> <?php if (have_posts() && get_post_type(jeo_get_the_ID()) == 'map') { ?> <section id="featured-content" class="posts-section featured"> <?php $map_id = jeo_map(null, false, true); ?> <div class="container"> <div class="eleven columns"> <h2><?php _e('Featured', 'jeo'); ?> </h2> </div> <div class="four columns"> <div class="featured-content"> <ul class="featured-list"> <?php $class = 'slider-item'; ?> <?php $i = 0; while (have_posts()) { the_post(); ?> <?php $geometry = jeo_get_element_geometry_data();
function featured_media($post_id) { global $post; $post_id = $post_id ? $post_id : $post->ID; $type = get_post_meta($post_id, 'newsroom_featured_media_type', true); $type = $type ? $type : 'image'; switch ($type) { case 'image': the_post_thumbnail('kicker'); break; case 'gallery': echo do_shortcode('[photoswipe]'); break; case 'map': jeo_map(); break; case 'post_media': echo get_post_meta($post_id, '_newsroom_first_media', true); break; } }
function featured_media($post_id) { global $post; $post_id = $post_id ? $post_id : $post->ID; $type = get_post_meta($post_id, 'newsroom_featured_media_type', true); $type = $type ? $type : 'image'; switch ($type) { case 'image': $src = wp_get_attachment_image_src(get_post_thumbnail_id(), 'kicker'); echo '<div class="kicker-image-container" style="width:' . $src[1] . 'px;">'; the_post_thumbnail('kicker'); echo '<div class="image-caption">' . apply_filters('the_content', get_post(get_post_thumbnail_id())->post_excerpt) . '</div>'; echo '</div>'; break; case 'gallery': echo do_shortcode('[photoswipe]'); break; case 'map': jeo_map(); break; case 'post_media': echo get_post_meta($post_id, '_newsroom_first_media', true); break; } }