Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding new post loop template
New post loop template with just an image and linked title
  • Loading branch information
bcd04001 committed Apr 16, 2018
1 parent c856c9a commit b0aef2a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
23 changes: 23 additions & 0 deletions content-large-image-and-title-only.php
@@ -0,0 +1,23 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('presspage-article presspage-large-image'); ?>>
<header class="entry-header">
<?php $presslink = press_link(get_the_ID());?>
<?php
$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 || !empty($external_link)) {
echo'<a href="'.$presslink.'">'.get_the_title().'</a>';
} else {
the_title();
}
?>
</h4>

</header>
</article>
11 changes: 11 additions & 0 deletions prepros.cfg
Expand Up @@ -591,6 +591,17 @@
"optimized": false,
"height": 0,
"width": 0
},
"673aa02e": {
"id": "673aa02e",
"path": "content-large-image-and-title-only.php",
"output": "content-large-image-and-title-only.php",
"name": "content-large-image-and-title-only.php",
"category": "JUST_WATCH",
"customOutput": false,
"imported": false,
"parents": [],
"type": "php"
}
},
"deploymentHistory": {},
Expand Down

0 comments on commit b0aef2a

Please sign in to comment.