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