Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions www/templates/html/ENews/Story.tpl.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
<?php
UNL_ENews_PostRunFilter::setReplacementData('pagetitle', $context->title);
?>

<?php if (
strtotime($context->request_publish_end) < strtotime('-1 year') ||
strtotime($context->date_modified) < strtotime('-3 year') ||
strtotime($context->date_submitted) < strtotime('-3 year')
): ?>
<div class="dcf-clear-both unl-bg-scarlet unl-cream dcf-rounded dcf-p-3 dcf-mb-3">
<strong>Archived Story:</strong> This article is part of our newsletter archives. It has
been preserved for reference, but the information may no longer be current.
</div>
<?php endif; ?>

<?php
foreach ($context->getFiles() as $file) {
if (preg_match('/^image/', $file->type) && $file->use_for == 'originalimage') {
Expand All @@ -21,17 +33,6 @@
}
?>

<?php if (
strtotime($context->request_publish_end) < strtotime('-1 year') ||
strtotime($context->date_modified) < strtotime('-3 year') ||
strtotime($context->date_submitted) < strtotime('-3 year')
): ?>
<div class="unl-bg-scarlet unl-cream dcf-rounded dcf-p-3 dcf-mb-3">
<strong>Archived Story:</strong> This article is part of our newsletter archives. It has
been preserved for reference, but the information may no longer be current.
</div>
<?php endif ?>

<?php $full = trim($context->full_article); ?>
<?php if (!empty($full)) : ?>
<p>
Expand Down