Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
23b1b2bae4
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
18 lines (17 sloc) 667 Bytes
<article id="post-<?php the_ID(); ?>" <?php post_class('presspage-article presspage-headline-only'); ?>>
<?php $presslink = press_link(get_the_ID());?>
<header class="entry-header">
<h4 class="entry-title">
<?php
$external_link = get_post_meta(get_the_ID(),'external_link');
if(strlen(get_the_content()) > 0 || !empty($external_link)) {
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>
</article>