Line | |
---|
1 | <?php if($env->out["news"]["list"]) : ?> |
---|
2 | <div id="news_box"> |
---|
3 | |
---|
4 | <ul class="last_news"> |
---|
5 | <?php foreach($env->out["news"]["list"] as $id_news => $news) : ?> |
---|
6 | <?php if(!isset($env->out["last_news_id"]) || $env->out["last_news_id"] != $id_news) : ?> |
---|
7 | <li><a href="<?= $env->url(array("e" => "content", "id" => $id_news)) ?>"><?= $news["titre"] ?></a></li> |
---|
8 | <?php endif; ?> |
---|
9 | <?php endforeach; ?> |
---|
10 | </ul> |
---|
11 | |
---|
12 | <?php if($env->out["categories"]["list"]) : ?> |
---|
13 | <div class="news_actegories_menu"> |
---|
14 | <h3>+ de news</h3> |
---|
15 | <div> |
---|
16 | <ul> |
---|
17 | <li><a href="<?= $env->url(array("e" => "news")) ?>">Toutes les catégories</a></li> |
---|
18 | <li><a href="<?= $env->url(array("e" => "news", "categorie" => "")) ?>">Sans catégorie</a></li> |
---|
19 | <?php foreach($env->out["categories"]["list"] as $id_categorie => $categorie) : ?> |
---|
20 | <li><a href="<?= $env->url(array("e" => "news", "categorie" => $id_categorie)) ?>"><?= $categorie["titre"] ?></a></li> |
---|
21 | <?php endforeach; ?> |
---|
22 | </ul> |
---|
23 | </div> |
---|
24 | </div> |
---|
25 | <div class="clear"><!-- --></div> |
---|
26 | <?php endif; ?> |
---|
27 | |
---|
28 | </div> |
---|
29 | <div class="clear"><!-- --></div> |
---|
30 | <?php endif; ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.