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) :
26 isset($groupe["image_uri"])
27 && $groupe["image_uri"]
28 && file_exists($groupe["image_uri"])
29 && ($img_size = $data->img_size($groupe["image_uri"], 200, 130)) !== false
31 $margin_top = floor((150 - $img_size["height"]) / 2);
34 <div class="logo_groupe">
35 <a href="<?php echo $this->url("sources/groupe/view", array("id" => $groupe["id"])) ?>">
36 <img src="<?php echo $this->path("web").$groupe["image_uri"]; ?>"
37 width="<?php echo $img_size["width"] ?>"
38 height="<?php echo $img_size["height"] ?>"
39 style="margin-top:<?php echo $margin_top ?>px"
41 <span><?php echo $groupe["nom"]; ?></span>