Created
March 27, 2009 16:31
-
-
Save mrkurt/86769 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<? | |
$cat_type = $GLOBALS['resource']->is_parent_of($entry) ? 'primary' : 'secondary'; | |
$page_count = count($entry->pages); | |
$multipage = ($page_count > 1); | |
$has_extended_body = ($page_count > 0); | |
?> | |
<div class="journal-item <?= $cat_type ?> opened"> | |
<h3 class="journal-title"> | |
<? if($cat_type == 'secondary'){ ?><a href="#" class="disclosure collapse"> </a><? } ?> | |
<a href="<?= $entry->url ?>" name="<?= $entry->id ?>" class="<?= $multipage ? "multipage" : "onepage" ?> article-headline"><?= $entry->title ?> | |
</a></h3> | |
<div class="journal-not-title"> | |
<div class="journal-byline"> | |
<? if($cat_type == 'primary'){ ?> | |
By <?= implode(', ', $entry->authors) ?> | Last updated <?= timestamp($entry->date) ?> | |
<? }else{ ?> | |
Cross linked from: <?= primary_category_link($entry) ?> | <a href="#" class="collapse">Collapse excerpt</a> | |
<? } ?> | |
</div> | |
<? $render->resource($entry->listing_image, 'listing'); ?> | |
<div class="journal-content"> | |
<?= strlen($entry->body) > 0 ? $entry->body : $entry->excerpt ?> | |
</div> | |
<? if(strlen($entry->discussion_url) > 0) { ?> | |
<div class="journal-comment-button"><a href="<?= $entry->discussion_url ?>">Comment</a></div> | |
<? } ?> | |
<? if(count($entry->pages) > 0) { ?> | |
<div class="journal-read-more"><a href="<?= $entry->url ?>"><?= more_text($entry) ?></a></div> | |
<? } ?> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment