Skip to content

Commit

Permalink
feat: adding the news page
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcoo authored and Eywek committed Jul 2, 2018
1 parent a7ac2df commit 3de35a0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions app/View/News/blog.ctp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<div class="container">
<div class="row">
<div class="col-md-6">
<h1>News</h1>
</div>
</div>
</div>
<div class="container">
<div class="row">
<?php foreach ($search_news as $news) {?>
<div class="well">
<a href="<?= $this->Html->url(array('controller' => 'blog', 'action' => $news['News']['slug'])) ?>"><h3><b><?= $news['News']['title'] ?></b></h3></a>
<p><b><?= $Lang->get('GLOBAL__UPDATED') ?> : </b><?= $Lang->date($news['News']['updated']) ?></p>
<p><b><?= $Lang->get('NEWS__COMMENTS_NBR') ?> : </b><?= $news['News']['count_comments'] ?></p>
<p><b><?= $Lang->get('NEWS__LIKES_NBR') ?> : </b><?= $news['News']['count_likes'] ?></p>
<hr>
<p><?php $nmsg = substr($news['News']['content'], 0, 500); echo $nmsg; ?> ...</p>
</div>
<? } ?>
</div>
</div>

0 comments on commit 3de35a0

Please sign in to comment.