Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update to external urls and blank pages
  • Loading branch information
jmr06005 committed Mar 11, 2016
1 parent 7b066fb commit b485784
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion content-presspage-headline-only.php
Expand Up @@ -3,7 +3,8 @@
<header class="entry-header">
<h4 class="entry-title">
<?php
if(strlen(get_the_content()) > 0) {
$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();
Expand Down
5 changes: 3 additions & 2 deletions content-presspage-large-image-and-headline.php
Expand Up @@ -2,15 +2,16 @@
<header class="entry-header">
<?php $presslink = press_link(get_the_ID());?>
<?php
if(strlen(get_the_content()) > 0 && has_post_thumbnail()) {
$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();
}
?>
<h4 class="entry-title">
<?php
if(strlen(get_the_content()) > 0) {
if(strlen(get_the_content()) > 0 || !empty($external_link)) {
echo'<a href="'.$presslink.'">'.get_the_title().'</a>';
} else {
the_title();
Expand Down
5 changes: 3 additions & 2 deletions content-presspage-small-image-and-headline.php
Expand Up @@ -3,7 +3,8 @@
<div class="row">
<div class="col-sm-5">
<?php
if(strlen(get_the_content()) > 0 && has_post_thumbnail()) {
$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();
Expand All @@ -14,7 +15,7 @@
<header class="entry-header">
<h4 class="entry-title">
<?php
if(strlen(get_the_content()) > 0) {
if(strlen(get_the_content()) > 0 || !empty($external_link)) {
echo'<a href="'.$presslink.'">'.get_the_title().'</a>';
} else {
the_title();
Expand Down
5 changes: 3 additions & 2 deletions content-presspage-top.php
Expand Up @@ -3,7 +3,8 @@
<div class="row">
<div class="col-sm-6">
<?php
if(strlen(get_the_content()) > 0 && has_post_thumbnail()) {
$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="'.get_the_permalink().'">'.get_the_post_thumbnail().'</a>';
} elseif(has_post_thumbnail()) {
the_post_thumbnail();
Expand All @@ -16,7 +17,7 @@
<header class="entry-header">
<h4 class="entry-title">
<?php
if(strlen(get_the_content()) > 0) {
if(strlen(get_the_content()) > 0 || !empty($external_link)) {
echo'<a href="'.get_the_permalink().'">'.get_the_title().'</a>';
} else {
the_title();
Expand Down

0 comments on commit b485784

Please sign in to comment.