sourceml devient un plugin mtweb
[mw_sourceml] / app / out / default / views / sources / logo_groupe.php
1 <?php
2
3   if(
4        isset($this->out["groupe"])
5     && $this->out["groupe"]
6     && $this->out["groupe"]["image_uri"]
7     && file_exists($this->out["groupe"]["image_uri"])
8     && ($img_size = $data->img_size($this->out["groupe"]["image_uri"], 200, 130)) !== false
9   ) :
10   $margin_top = floor((150 - $img_size["height"]) / 2);
11
12 ?>
13 <div class="logo_groupe">
14   <a href="<?php echo $this->url("sources/groupe/view", array("id" => $this->out["groupe"]["id"])) ?>">
15   <img src="<?php echo $this->path("web").$this->out["groupe"]["image_uri"]; ?>"
16        width="<?php echo $img_size["width"] ?>"
17        height="<?php echo $img_size["height"] ?>"
18        style="margin-top:<?php echo $margin_top ?>px"
19        alt="" />
20   </a>
21 </div>
22 <?php endif; ?>