1 <article class="piste">
3 <?php $ariane_params = array("piste" => $this->out["piste"]["id"]); ?>
4 <?php if(isset($this->out["album"]) && $this->out["album"]) : $ariane_params["album"] = $this->out["album"]["id"]; ?>
5 <li><a href="<?php echo $this->url("sources/album/view", $ariane_params) ?>">
6 <?php echo $this->out["album"]["titre"] ?>
10 <?php if(isset($this->out["morceau"]) && $this->out["morceau"]) : $ariane_params["morceau"] = $this->out["morceau"]["id"]; ?>
11 <li><a href="<?php echo $this->url("sources/morceau/view", $ariane_params) ?>">
12 <?php echo $this->out["morceau"]["reference"] ? $this->out["morceau"]["reference"]["titre"] : $this->out["morceau"]["titre"] ?>
16 <?php if($this->out["piste"]["reference"]) : ?>
17 <li><span>référence »</span> <a href="<?php echo $this->out["piste"]["reference"]["from"] ?>"><?php echo $this->out["piste"]["reference"]["titre"] ?></a></li>
19 <li><a href="<?php echo $this->url("sources/piste/view", $ariane_params) ?>"><?php echo $this->out["piste"]["titre"] ?></a></li>
22 <div class="clear"><!-- --></div>
25 <?php if($this->out["piste"]["reference"]) : ?>
26 <span>référence »</span><?php echo $this->out["piste"]["reference"]["titre"] ?>
28 <?php echo $this->out["piste"]["titre"] ?>
31 <?php if($this->out["piste"]["derivations"]) : ?>
32 <span class="derivation">
33 <span>dérive de »</span>
34 <?php $n = 0; foreach($this->out["piste"]["derivations"] as $derivation) : ?>
35 <?php echo $n ? ", " : "" ?><a href="<?php echo $derivation["from"] ?>"><?php echo $derivation["titre"] ?></a>
36 <?php $n++; endforeach; ?>
44 ( $this->out["piste"]["image_uri"]
45 && file_exists($this->out["piste"]["image_uri"])
46 && ($img_size = $data->img_size($this->out["piste"]["image_uri"], 450, 450)) !== false
48 // $margin_top = floor((450 - $img_size["height"]) / 2);
50 $piste_image_uri = $this->path("web").$this->out["piste"]["image_uri"];
52 <p class="logo_source">
53 <img src="<?php echo $piste_image_uri ?>"
54 width="<?php echo $img_size["width"] ?>"
55 height="<?php echo $img_size["height"] ?>"
56 style="margin-top:<?php echo $margin_top ?>px"
61 <div class="source_arbo">
65 $piste = $this->out["piste"];
66 $display_name = false;
67 $url_params = array("piste" => $piste["id"]);
75 $source["url"] = $this->url("sources/piste/view", $url_params);
76 require $this->out_file("views/sources/source.php");
81 <?php if($this->action_allowed("users/pistes/add")) : ?>
82 <form action="<?php echo $this->url("users/pistes/add"); ?>" method="post">
83 <input type="hidden" name="button_derive" value="<?php echo $piste["id"];?>" />
84 <ul class="button_derive">
85 <li><input type="submit" value="Publier une dérivation" /></li>
90 <?php if(isset($piste["description"]) && !$display_name) : ?>
91 <div class="description">
92 <?php echo $piste["description"] ?>
95 <div class="clear"><!-- --></div>