1 <article class="morceau">
3 <?php $ariane_params = array("morceau" => $this->out["morceau"]["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"] ?>
9 <?php if($this->out["morceau"]["reference"]) : ?>
10 <li><span>référence »</span> <a href="<?php echo $this->out["morceau"]["reference"]["from"] ?>"><?php echo $this->out["morceau"]["reference"]["titre"] ?></a></li>
12 <li><a href="<?php echo $this->url("sources/morceau/view", $ariane_params) ?>"><?php echo $this->out["morceau"]["titre"] ?></a></li>
15 <div class="clear"><!-- --></div>
18 <?php if($this->out["morceau"]["reference"]) : ?>
19 <span>référence »</span> <?php echo $this->out["morceau"]["reference"]["titre"] ?>
21 <?php echo $this->out["morceau"]["titre"] ?>
24 <?php if($this->out["morceau"]["derivations"]) : ?>
25 <span class="derivation">
26 <span>dérive de »</span>
27 <?php $n = 0; foreach($this->out["morceau"]["derivations"] as $derivation) : ?>
28 <?php echo $n ? ", " : "" ?><a href="<?php echo $derivation["from"] ?>"><?php echo $derivation["titre"] ?></a>
29 <?php $n++; endforeach; ?>
37 ( $this->out["morceau"]["image_uri"]
38 && file_exists($this->out["morceau"]["image_uri"])
39 && ($img_size = $data->img_size($this->out["morceau"]["image_uri"], 450, 450)) !== false
41 // $margin_top = floor((450 - $img_size["height"]) / 2);
43 $morceau_image_uri = $this->path("web").$this->out["morceau"]["image_uri"];
45 <p class="logo_source">
46 <img src="<?php echo $morceau_image_uri ?>"
47 width="<?php echo $img_size["width"] ?>"
48 height="<?php echo $img_size["height"] ?>"
49 style="margin-top:<?php echo $margin_top ?>px"
54 <div class="source_arbo">
58 $morceau = $this->out["morceau"];
59 $display_name = false;
60 $url_params = array("morceau" => $morceau["id"]);
68 $source["url"] = $this->url("sources/morceau/view", $url_params);
69 require $this->out_file("views/sources/source.php");
74 <?php if($this->action_allowed("users/morceaux/add")) : ?>
75 <form action="<?php echo $this->url("users/morceaux/add"); ?>" method="post">
76 <input type="hidden" name="button_derive" value="<?php echo $morceau["id"];?>" />
77 <ul class="button_derive">
78 <li><input type="submit" value="Publier une dérivation" /></li>
83 <?php if(isset($morceau["description"]) && !$display_name) : ?>
84 <div class="description">
85 <?php echo $morceau["description"] ?>
88 <div class="clear"><!-- --></div>