plusieurs auteurs pour les sources
[mw_sourceml] / app / out / default / views / sources / piste / view.php
1 <h2>
2 <?php $ariane_params = array("piste" => $this->out["piste"]["id"]); ?>
3 <?php if(isset($this->out["album"]) && $this->out["album"]) : $ariane_params["album"] = $this->out["album"]["id"]; ?>
4 <a href="<?php echo $this->url("sources/album/view", $ariane_params) ?>">
5 <?php echo $this->out["album"]["titre"] ?>
6 </a>
7 &raquo;
8 <?php endif; ?>
9
10 <?php if(isset($this->out["morceau"]) && $this->out["morceau"]) : $ariane_params["morceau"] = $this->out["morceau"]["id"]; ?>
11 <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"] ?>
13 </a>
14 &raquo;
15 <?php endif; ?>
16
17
18 <?php if($this->out["piste"]["reference"]) : ?>
19 <span>r&eacute;f&eacute;rence </span>&raquo; <a href="<?php echo $this->out["piste"]["reference"]["from"] ?>"><strong><?php echo $this->out["piste"]["reference"]["titre"] ?> (<?php echo $this->out["piste"]["reference"]["auteur"] ?>)</strong></a>
20 <?php else : ?>
21 <a href="<?php echo $this->url("sources/piste/view", $ariane_params) ?>"><?php echo $this->out["piste"]["titre"] ?></a>
22
23 <?php if($this->out["piste"]["derivations"]) : ?>
24       <br />
25       <span class="small">
26         d&eacute;rive de &raquo;
27 <?php $n = 0; foreach($this->out["piste"]["derivations"] as $derivation) : ?>
28         <?php echo $n ? ", " : "" ?><a href="<?php echo $derivation["from"] ?>"><?php echo $derivation["titre"] ?> (<?php echo $derivation["auteur"] ?>)</a>
29 <?php $n++; endforeach; ?>
30       </span>
31 <?php endif; ?>
32
33 <?php endif; ?>
34
35 </h2>
36
37 <div class="source_arbo">
38
39 <?php
40
41   $piste = $this->out["piste"];
42   $display_name = false;
43   $url_params = array("piste" => $piste["id"]);
44
45 ?>
46
47 <ul class="sources">
48 <?php
49
50   $source = $piste;
51   $source["url"] = $this->url("sources/piste/view", $url_params);
52   require $this->out_file("views/sources/source.php");
53
54 ?>
55 </ul>
56
57 <?php if(!$display_name) : ?>
58 <div class="description">
59   <?php echo $piste["description"] ?>
60 </div>
61 <?php endif; ?>
62 <div class="clear"><!-- --></div>
63
64 </div>