7 $this->is_running("sources/album/view")
8 || $this->is_running("sources/morceau/view")
9 || $this->is_running("sources/piste/view")
11 if($this->is_running("sources/album/view")) $groupes = $this->out["album"]["groupes"];
12 if($this->is_running("sources/morceau/view")) $groupes = $this->out["morceau"]["groupes"];
13 if($this->is_running("sources/piste/view")) $groupes = $this->out["piste"]["groupes"];
14 foreach($groupes as $id_groupe => $groupe){
16 ($groupe["id_groupe_status"] != $data->id_groupe_status_admin())
17 && ($groupe["id_groupe_status"] != $data->id_groupe_status_editeur())
18 ) unset($groupes[$id_groupe]);
21 elseif($this->is_running("sources")){
22 if(isset($this->out["groupe"])) $groupes = array($this->out["groupe"]["id"] => $this->out["groupe"]);
24 foreach($groupes as $groupe) :
25 $source_image_url = false;
26 $source_thumb = false;
29 isset($groupe["image_uri"])
30 && $groupe["image_uri"]
31 && file_exists($groupe["image_uri"])
33 $source_image_url = $groupe["image_uri"];
34 if($data->mw_thumbs_activated()){
35 $source_thumb = $data->img_thumb(
39 $this->path("content")."thumbs",
44 if($img_size = $data->img_size($source_image_url, 200, 130)){
45 $margin_top = floor((130 - $img_size["height"]) / 2);
48 if($source_image_url && !$source_thumb && !$img_size) $source_image_url = false;
50 if($source_image_url) :
54 <div class="logo_groupe">
55 <a href="<?php echo $this->url("sources/groupe/view", array("id" => $groupe["id"])) ?>">
56 <?php if($source_thumb) : ?>
57 <img src="<?php echo $this->path("content")."thumbs/".$source_thumb["thumb_file"] ?>"
58 width="<?php echo $source_thumb["thumb_width"] ?>"
59 height="<?php echo $source_thumb["thumb_height"] ?>"
62 <img src="<?php echo $this->path("web").$source_image_url; ?>"
63 width="<?php echo $img_size["width"] ?>"
64 height="<?php echo $img_size["height"] ?>"
65 style="margin-top:<?php echo $margin_top ?>px"
68 <span><?php echo $groupe["nom"]; ?></span>