Skip to content
Permalink
5236571aeb
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
30 lines (29 sloc) 942 Bytes
<article id="post-<?php the_ID(); ?>" <?php post_class('presspage-article presspage-small-image'); ?>>
<?php $presslink = press_link(get_the_ID());?>
<div class="row">
<div class="col-sm-5">
<?php
if(strlen(get_the_content()) > 0 && has_post_thumbnail()) {
echo'<a href="'.$presslink.'">'.get_the_post_thumbnail().'</a>';
} elseif(has_post_thumbnail()) {
the_post_thumbnail();
}
?>
</div>
<div class="col-sm-7">
<header class="entry-header">
<h4 class="entry-title">
<?php
if(strlen(get_the_content()) > 0) {
echo'<a href="'.$presslink.'">'.get_the_title().'</a>';
} else {
the_title();
}
?>
</h4>
<?php press_source(get_the_ID());?>
<p class="text-muted"><?php the_time('F j, Y'); ?></p>
</header>
</div>
</div>
</article>