source: trunk/web/app/out/dist/content/artistes/presentation.php @ 1

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

import initial

File size: 1.5 KB
Line 
1    <?php if($env->out["presentation"]) : ?>
2      <?php echo $env->data->html($env->out["presentation"]); ?>
3    <?php endif; ?>
4
5<br /><br />
6
7
8<?php if($env->out["artiste_news"]["total"]) : ?>
9    <div class="bloc">
10      <h2><a href="<?= $env->url(array("e" => "artistes", "artiste" => $env->out["artiste"]["id"], "page" => "news")) ?>">Les news</a></h2>
11      <div class="bloc_content">
12
13<?php
14
15  foreach($env->out["artiste_news"]["list"] as $id_news => $news) :
16  $date_creation = $env->data->unix_time($news["date_creation"]);
17
18?>
19<div class="message_forum">
20  [ <?= date("H\hi d M Y ", $date_creation) ?> ]
21  <a href="<?=
22       $env->url
23       ( array
24         ( "e" => "artistes",
25           "artiste" => $env->out["artiste"]["id"],
26           "page" => "news",
27           "id" => $id_news
28         )
29       )
30     ?>"><?= $news["titre"] ?></a>
31</div>
32<?php endforeach; ?>
33
34      </div>
35    </div>
36
37<?php endif; ?>
38
39
40
41
42    <?php if($env->out["artiste"]["pun_forum"] && $env->out["artiste_messages_forum"]) : ?>
43    <div class="bloc">
44      <h2><a href="<?php echo PUN_ROOT; ?>viewforum.php?id=<?= $env->out["artiste"]["pun_forum"] ?>">Forum</a> : derniers messages</h2>
45      <div class="bloc_content">
46
47<?php foreach($env->out["artiste_messages_forum"] as $id_message => $message) : ?>
48<div class="message_forum">
49  [ <?= date("H\hi d M Y ", $message["posted"]) ?> ]
50  dans <a href="<?= $env->path("punbb")."viewtopic.php?pid=".$id_message."#p".$id_message ?>"><?= $message["subject"] ?></a>
51</div>
52<?php endforeach; ?>
53
54
55      </div>
56    </div>
57    <?php endif; ?>
Note: See TracBrowser for help on using the repository browser.