sourceml devient un plugin mtweb
[mw_sourceml] / app / out / default / views / sources / menu_albums.php
1 <?php
2
3   if(
4        isset($this->out["groupe"])
5     && $this->out["groupe"]
6     && $this->out["albums"]["list"]
7   ) :
8
9 ?>
10 <ul id="album_links">
11   <li><a href="<?php echo $this->url("sources/album", array("groupe" => $this->out["groupe"]["id"])) ?>">albums</a></li>
12 </ul>
13 <ul class="menu_albums">
14 <?php foreach($this->out["albums"]["list"] as $id_album => $album) : ?>
15   <li><a href="<?php echo $this->url("sources/album/view", array("album" => $id_album)) ?>" title="<?php echo str_replace("\"", "&quot;", $album["titre"]) ?>">
16
17   <?php
18
19     if
20     (    $album["image_uri"]
21       && file_exists($album["image_uri"])
22       && ($img_size = $data->img_size($album["image_uri"], 90, 90)) !== false
23     ) :
24     $margin_top = floor((90 - $img_size["height"]) / 2);
25
26   ?>
27     <img src="<?php echo $this->path("web").$album["image_uri"]; ?>"
28          width="<?php echo $img_size["width"] ?>"
29          height="<?php echo $img_size["height"] ?>"
30          style="margin-top:<?php echo $margin_top ?>px" />
31   <?php endif; ?>
32   <span><?php echo $album["titre"] ?></span>
33   </a></li>
34 <?php endforeach; ?>
35 </ul>
36 <div class="clear"><!-- --></div>
37 <?php endif; ?>