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