</p> </div></a> </div> <div class='spacer'></div> <?php } ?> <?php foreach (get_stories_with_pillar($pillar) as $post) { setup_postdata($post); ?> <div class='story-tile'> <div class='tile-background' style='background-image:url("<?php echo get_story_featured_image_url($post->ID, true); ?> ");' ></div> <div class='tile-bottom'></div> <div class='tile-title-holder'> <p><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></p> </div> </div> <?php
$slugs = wp_get_post_tags($post->ID, array('fields' => 'slugs')); foreach ($slugs as $slug) { $tags = $tags . $slug . " "; } $pillars = wp_get_post_terms($post->ID, 'pillar', array('fields' => 'slugs')); foreach ($pillars as $pillar) { $tags = $tags . $pillar . " "; } ?> <div class="boundless-tile grid-item element-item <?php echo $tags; ?> " > <div class='boundless-image' style='background-image:url("<?php echo get_story_featured_image_url($post->ID, false, array(350, 350)); ?> ");' ></div> <div class="boundless-text"> <h3 class="searchtag"><a href='<?php the_permalink(); ?> '><?php the_title(); ?> </a></h3> <p class="searchtag"><?php echo get_abstract_text($post->ID); ?> </p> <div class="searchbody" style="display:none"><?php
function get_the_featured_image_section($post_id) { $post = get_post($post_id); $url = get_story_featured_image_url($post_id, false, array(1200, 700)); $html = "<div class=\"promoted-story-tile\">\n <img src=\"{$url}\" />\n </div>"; return !empty($url) ? story_section($html) : ''; }