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