3 <?php if($this->out["groupes"]["list"]) : ?>
5 <?php $items = "groupes"; $legend = "groupes"; require $this->out_file("views/navig.php"); ?>
9 <?php foreach($this->out["groupes"]["list"] as $id_groupe => $groupe) : ?>
12 <a href="<?php echo $this->url("sources/groupe/view", array("id" => $id_groupe)) ?>">
15 $source_image_url = false;
16 $source_thumb = false;
19 isset($groupe["image_uri"])
20 && $groupe["image_uri"]
21 && file_exists($groupe["image_uri"])
23 $source_image_url = $groupe["image_uri"];
24 if($data->mw_thumbs_activated()){
25 $source_thumb = $data->img_thumb(
29 $this->path("content")."thumbs",
34 if($img_size = $data->img_size($source_image_url, 120, 100)){
35 $margin_top = floor((100 - $img_size["height"]) / 2);
38 if($source_image_url && !$source_thumb && !$img_size) $source_image_url = false;
40 if($source_image_url) :
44 <?php if($source_thumb) : ?>
45 <img src="<?php echo $this->path("content")."thumbs/".$source_thumb["thumb_file"] ?>"
46 width="<?php echo $source_thumb["thumb_width"] ?>"
47 height="<?php echo $source_thumb["thumb_height"] ?>"
50 <img src="<?php echo $this->path("web").$source_image_url; ?>"
51 width="<?php echo $img_size["width"] ?>"
52 height="<?php echo $img_size["height"] ?>"
53 style="margin-top:<?php echo $margin_top ?>px"
58 <span><?php echo $groupe["nom"] ?></span>
65 <div class="clear"><!-- --></div>
66 <?php $items = "groupes"; $legend = "groupes"; require $this->out_file("views/navig.php"); ?>