49073924f62007f9f6a5e1b6043368deb809d7c1
[mw_sourceml] / app / out / default / views / sources / source / header.php
1 <?php
2
3   $groupes = $data->get_editor_groupes($source["reference"] ? $source["reference"]["groupes"] : $source["groupes"]);
4   foreach($groupes as $k => $groupe) $groupes[$k]["url"] = $this->url("sources/groupe/view", array("id" => $groupe["id"]));
5
6 ?>
7 <header>
8
9   <?php if($groupes) : ?>
10   <ul class="authors">
11     <?php foreach($groupes as $groupe) : ?>
12     <li><a class="auteur" href="<?php echo $groupe["url"] ?>"><?php echo $groupe["nom"] ?></a></li>
13     <?php endforeach; ?>
14   </ul>
15   <?php endif; ?>
16   <?php if(!isset($display_name) || $display_name) : ?>
17   <?php
18   
19     $HAS_IMAGE = false;
20     if
21     (    $source["image_uri"]
22       && file_exists($source["image_uri"])
23       && ($img_size = $data->img_size($source["image_uri"], 100, 100)) !== false
24     ) :
25     $source_image_uri = $this->path("web").$source["image_uri"];
26     $HAS_IMAGE = true;
27
28   ?>
29   <p class="logo_source">
30     <a href="<?php echo $source["reference"] ? $source["reference"]["from"] : $source["url"] ?>">
31       <img src="<?php echo $source_image_uri ?>"
32            width="<?php echo $img_size["width"] ?>"
33            height="<?php echo $img_size["height"] ?>"
34            alt="" />
35     </a>
36   </p>
37   <?php endif; ?>
38   <h1<?php if($HAS_IMAGE): ?> class="with_image"<?php endif; ?>>
39     <?php if($source["reference"]) : ?>
40     <span>r&eacute;f&eacute;rence &raquo; <a href="<?php echo $source["reference"]["from"] ?>"><strong><?php echo $source["reference"]["titre"] ?></strong></a></span>
41     <?php else : ?>
42     <a href="<?php echo $source["url"] ?>"><?php echo $source["titre"] ?></a>
43     <?php endif; ?>
44     <?php if($source["derivations"]) : ?>
45     <br />
46     <span class="small">
47       d&eacute;rive de &raquo;
48       <?php $n = 0; foreach($source["derivations"] as $derivation) : ?>
49       <?php echo $n ? ", " : "" ?><a href="<?php echo $derivation["from"] ?>"><strong><?php echo $derivation["titre"] ?> (<?php echo $derivation["auteur"] ?>)</strong></a>
50       <?php $n++; endforeach; ?>
51     </span>
52     <?php endif; ?>
53   </h1>
54   <?php endif; ?>
55
56   <br class="clear" />
57
58 </header>
59
60 <div class="player_progress">
61   <div class="loaded"><!-- --></div>
62   <div class="position"><!-- --></div>
63 </div>