85bb7cca0c258ea7c57ada9972c47ddad51275b8
[mw_sourceml] / app / out / default / views / sources / groupe / list.php
1 <?php if($this->out["groupes"]["list"]) : ?>
2
3 <?php $items = "groupes"; $legend = "groupes"; require $this->out_file("views/navig.php"); ?>
4
5 <ul class="groupes">
6   
7 <?php foreach($this->out["groupes"]["list"] as $id_groupe => $groupe) : ?>
8   <li>
9     <h4>
10       <a href="<?php echo $this->url("sources/groupe/view", array("id" => $id_groupe)) ?>">
11         <?php
12
13           $data = $this->data();
14           if
15           (    $groupe["image_uri"]
16             && file_exists($groupe["image_uri"])
17             && ($img_size = $data->img_size($groupe["image_uri"], 120, 100)) !== false
18           ) :
19           $margin_top = floor((100 - $img_size["height"]) / 2);
20
21         ?>
22         <img src="<?php echo $this->path("web").$groupe["image_uri"]; ?>"
23              width="<?php echo $img_size["width"] ?>"
24              height="<?php echo $img_size["height"] ?>"
25              style="margin-top:<?php echo $margin_top ?>px"
26              alt="" />
27         <?php endif; ?>
28         <span><?php echo $groupe["nom"] ?></span>
29         <br class="clear" />
30       </a>
31     </h4>
32   </li>
33 <?php endforeach; ?>
34 </ul>
35
36 <?php $items = "groupes"; $legend = "groupes"; require $this->out_file("views/navig.php"); ?>
37
38 <?php endif; ?>