Exemple #1
0
    ?>
		
			<a href="<?php 
    the_permalink();
    ?>
" rel="bookmark"><?php 
    the_post_thumbnail('post-thumbnail', array('alt' => the_title_attribute('echo=0')));
    ?>
</a>
			
		<?php 
}
?>
	
		<?php 
the_title(sprintf('<h2 class="entry-title entry-title-italic"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '' . seventeen_exhibition_dates() . '</a></h2>');
?>
		
		<?php 
if (!has_post_thumbnail()) {
    ?>
		
			<?php 
    the_excerpt();
    ?>
		
		<?php 
}
?>
		
	</div>
the_ID();
?>
" <?php 
post_class();
?>
>
	<header class="entry-header">
	
		<?php 
the_title(sprintf('<h2 class="entry-title entry-title-italic"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>');
?>
	
	</header>
	<div class="entry-summary">
	
		<?php 
the_excerpt();
?>
	
		<?php 
echo seventeen_exhibition_dates();
?>
		
	</div>

    <?php 
edit_post_link('edit', '<footer class="entry-footer">', '</footer>');
?>

</article>
        $previous_exhibtions->the_post();
        $meta_enddate = get_post_meta($post->ID, '_seventeen_enddate', true);
        // get the end date from the post meta
        $year = date("Y", $meta_enddate);
        // chose the year and format it nicely
        if ($current_year !== $year) {
            if (!empty($current_year)) {
                $clean .= '</ul>';
                $clean .= '</div>';
            }
            $current_year = $year;
            $clean .= '<div class="year-group">';
            $clean .= '<h2 class="exhibition-year label label-year col-sm-12">' . $year . '</h2>';
            $clean .= '<ul class="list-unstyled exhibition-year-list">';
        }
        $clean .= '<li class="exhibition-details col-sm-4 col-md-3 col-lg-2"><h2 class="entry-title entry-title-italic"><a href="' . esc_url(get_permalink()) . '" title="' . the_title_attribute('echo=0') . '" rel="bookmark">' . get_the_title() . seventeen_exhibition_dates() . '</a></h2></li>';
    }
    $clean .= '</ul>';
    $clean .= '</div>';
}
?>
			
			<?php 
echo $clean;
?>
        
        </section>
    </main>

<?php 
get_footer();