This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
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?
business/content-presspage-top.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
37 lines (35 sloc)
1.04 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="presstop"> | |
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
<div class="row"> | |
<div class="col-md-6"> | |
<?php | |
$presslink = press_link(get_the_ID()); | |
$external_link = get_post_meta(get_the_ID(),'external_link'); | |
if((strlen(get_the_content()) > 0 || !empty($external_link)) && has_post_thumbnail()) { | |
echo'<a href="'.$presslink.'">'.get_the_post_thumbnail().'</a>'; | |
} elseif(has_post_thumbnail()) { | |
the_post_thumbnail(); | |
} else { | |
echo '<p>Missing Featured Image for this post.</p>'; | |
} | |
?> | |
</div> | |
<div class="col-md-6"> | |
<header class="entry-header"> | |
<h4 class="entry-title"> | |
<?php | |
if(strlen(get_the_content()) > 0 || !empty($external_link)) { | |
echo'<a href="'.$presslink.'">'.get_the_title().'</a>'; | |
} else { | |
the_title(); | |
} | |
?> | |
</h4> | |
</header> | |
<div class="entry-content clearfix"> | |
<?php the_content(); ?> | |
</div> | |
</div> | |
</div> | |
</article> | |
</div> |