Skip to content

Commit

Permalink
Article's creator conditioned
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed Jan 5, 2017
1 parent b8765fe commit 06d53f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion article_content.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="article__content--rss js-article__content--rss">
<header class="article__content__infos">
<h1><a href="{$value->getLink()}">{$value->getTitle()}</a></h1>
<div><span class="article-author">{$value->getCreator()}</span> - <span class="article-pubdate">{function="date('H:i Y-m-d', $value->getPubdate())"}</span></div>
<div>{if="$creator"}<span class="article-author">{$creator}</span> - {/if}<span class="article-pubdate">{function="date('H:i Y-m-d', $value->getPubdate())"}</span></div>
</header>
{$value->getContent()}
</div>
1 change: 1 addition & 0 deletions article_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
raintpl::configure("tpl_dir", __DIR__ . '/');
raintpl::configure( 'cache_dir', '../../cache/' );
$tpl->assign('value',$value[0]);
$tpl->assign('creator',$value[0]->getCreator());
$tpl->draw( $view );
}

Expand Down

0 comments on commit 06d53f3

Please sign in to comment.