e272710afef7af3e3d24f545f32292a527589142
[mw_sourceml] / app / out / default / views / sources / groupe / view.php
1 <article class="groupe">
2   <header>
3     <h1><?php echo $this->out["groupe"]["nom"]; ?></h1>
4   </header>
5
6   <?php if($this->out["groupe"]["description"]) : ?>
7   <div class="description">
8   <?php echo $this->out["groupe"]["description"] ?>
9   </div>
10   <?php endif; ?>
11   <ul class="groupes_sources">
12     <li><a href="<?php echo $this->url("sources/morceau", array("groupe" => $this->out["groupe"]["id"])); ?>">Morceaux</a></li>
13     <li><a href="<?php echo $this->url("sources/piste", array("groupe" => $this->out["groupe"]["id"])); ?>">Sources</a></li>
14   </ul>
15
16 <?php
17
18   if
19   ( $this->out_config("groupe_view_albums")
20     && $this->out["albums"]["list"]
21   ) :
22
23 ?>
24 <h2 class="menu_albums">Albums</h2>
25 <ul class="menu_albums">
26 <?php foreach($this->out["albums"]["list"] as $id_album => $album) : ?>
27   <li><a href="<?php echo $this->url("sources/album/view", array("album" => $id_album)) ?>" title="<?php echo str_replace("\"", "&quot;", $album["titre"]) ?>">
28
29   <?php
30
31     if
32     (    $album["image_uri"]
33       && file_exists($album["image_uri"])
34       && ($img_size = $data->img_size($album["image_uri"], 90, 90)) !== false
35     ) :
36     $margin_top = floor((90 - $img_size["height"]) / 2);
37
38   ?>
39     <img src="<?php echo $this->path("web").$album["image_uri"]; ?>"
40          width="<?php echo $img_size["width"] ?>"
41          height="<?php echo $img_size["height"] ?>"
42          style="margin-top:<?php echo $margin_top ?>px"
43          alt="" />
44   <?php endif; ?>
45   <span><?php echo $album["titre"] ?></span>
46   </a></li>
47 <?php endforeach; ?>
48 </ul>
49 <div class="clear"><!-- --></div>
50 <?php endif; ?>
51
52 <?php if(isset($this->out["groupe"]["contact_form"]) && $this->out["groupe"]["contact_form"]) : ?>
53 <h2>Contact</h2>
54 <p>
55   <a href="<?php echo $this->url("forms/sourceml/contact_author", array("id" => $this->out["groupe"]["id"])) ?>">Envoyer un message à <?php echo $this->out["groupe"]["nom"]; ?></a>.
56 </p>
57 <?php endif; ?>
58 </article>