Rev | Line | |
---|
[6] | 1 | <?php if($env->out["news"]["list"]) : ?> |
---|
| 2 | <?php foreach($env->out["news"]["list"] as $id_news => $news) : ?> |
---|
| 3 | <div class="news"> |
---|
| 4 | <h3><a href="<?= |
---|
| 5 | $env->url |
---|
| 6 | ( array |
---|
| 7 | ( "e" => "artistes", |
---|
| 8 | "artiste" => $env->out["artiste"]["id"], |
---|
| 9 | "page" => "news", |
---|
| 10 | "id" => $id_news |
---|
| 11 | ) |
---|
| 12 | ) |
---|
| 13 | ?>"><?= $news["titre"]; ?></a></h3> |
---|
| 14 | <p class="by">Par <?= $news["auteur"]; ?> - <?= $news["date_publication"] ?></p> |
---|
| 15 | <?= $env->data->html($news["contenu"]); ?> |
---|
| 16 | </div> |
---|
| 17 | <br /> |
---|
| 18 | <?php endforeach; ?> |
---|
| 19 | <div class="navig"> |
---|
| 20 | <?php |
---|
| 21 | |
---|
| 22 | echo navig |
---|
| 23 | ( $env->start, |
---|
| 24 | $env->out["news"]["total"], |
---|
| 25 | $env->config("max_list"), |
---|
| 26 | $_SERVER["REQUEST_URI"], |
---|
| 27 | $env->param("start"), |
---|
| 28 | " news" |
---|
| 29 | ); |
---|
| 30 | |
---|
| 31 | ?> |
---|
| 32 | </div> |
---|
| 33 | <?php else : ?> |
---|
| 34 | <p>Aucune news pour le moment</p> |
---|
| 35 | <?php endif; ?> |
---|
| 36 | <?php if(!isset($_GET[$env->param("id")])) : ?> |
---|
| 37 | <ul class="list"> |
---|
| 38 | <li> |
---|
| 39 | <a href="<?= |
---|
| 40 | $env->url |
---|
| 41 | ( array |
---|
| 42 | ( "e" => "last_artiste_news", |
---|
| 43 | "artiste" => $env->out["artiste"]["id"], |
---|
| 44 | "format" => "atom" |
---|
| 45 | ), |
---|
| 46 | "backend.php" |
---|
| 47 | ) |
---|
| 48 | ?>"> |
---|
| 49 | <img src="<?= $env->out_file("icons/rss.png") ?>" alt="fil atom : news artiste" /> |
---|
| 50 | fil d'infos de <?= $env->out["artiste"]["nom"] ?> |
---|
| 51 | </a> |
---|
| 52 | </li> |
---|
| 53 | </ul> |
---|
| 54 | <?php endif; ?> |
---|
| 55 | <div style="clear: both"> </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.