source: branches/rsr.v5.1.dev/web/app/out/dist/boxes/last_news.php @ 1

Last change on this file since 1 was 1, checked in by dj3c1t, 8 years ago

import initial

File size: 428 bytes
Line 
1<?php
2
3  if($env->out["news"]["list"]) :
4  $id_news = array_rand($env->out["news"]["list"]);
5  $news = $env->out["news"]["list"][$id_news];
6  $env->out["last_news_id"] = $id_news;
7
8?>
9
10<h3><?= $news["titre"] ?></h3>
11<p class="by">
12  par <?= $news["auteur"] ?> - <?= $news["date_creation"] ?>
13</p>
14<?= $env->data->html($news["contenu"]) ?>
15<div class="clear"><!-- --></div>
16<?php
17
18  reset($env->out["news"]["list"]);
19  endif;
20
21?>
Note: See TracBrowser for help on using the repository browser.