?>
<header>
+ <?php if($groupes) : ?>
+ <ul class="authors">
+ <?php foreach($groupes as $groupe) : ?>
+ <li><a class="auteur" href="<?php echo $groupe["url"] ?>"><?php echo $groupe["nom"] ?></a></li>
+ <?php endforeach; ?>
+ </ul>
+ <?php endif; ?>
<?php if(!isset($display_name) || $display_name) : ?>
- <h1>
+ <?php
+
+ $HAS_IMAGE = false;
+ if
+ ( $source["image_uri"]
+ && file_exists($source["image_uri"])
+ && ($img_size = $data->img_size($source["image_uri"], 100, 100)) !== false
+ ) :
+ $source_image_uri = $this->path("web").$source["image_uri"];
+ $HAS_IMAGE = true;
+
+ ?>
+ <p class="logo_source">
+ <a href="<?php echo $source["reference"] ? $source["reference"]["from"] : $source["url"] ?>">
+ <img src="<?php echo $source_image_uri ?>"
+ width="<?php echo $img_size["width"] ?>"
+ height="<?php echo $img_size["height"] ?>"
+ alt="" />
+ </a>
+ </p>
+ <?php endif; ?>
+ <h1<?php if($HAS_IMAGE): ?> class="with_image"<?php endif; ?>>
<?php if($source["reference"]) : ?>
<span>référence » <a href="<?php echo $source["reference"]["from"] ?>"><strong><?php echo $source["reference"]["titre"] ?></strong></a></span>
<?php else : ?>
<span class="small">
dérive de »
<?php $n = 0; foreach($source["derivations"] as $derivation) : ?>
- <?php echo $n ? ", " : "" ?><a href="<?php echo $derivation["from"] ?>"><strong><?php echo $derivation["titre"] ?> (<?php echo $derivation["auteur"] ?>)</strong></a>
+ <?php echo $n ? ", " : "" ?><a href="<?php echo $derivation["from"] ?>"><strong><?php echo $derivation["titre"] ?></strong></a>
<?php $n++; endforeach; ?>
</span>
<?php endif; ?>
</h1>
<?php endif; ?>
- <?php if($groupes) : ?>
- <ul class="authors">
- <?php foreach($groupes as $groupe) : ?>
- <li><a class="auteur" href="<?php echo $groupe["url"] ?>"><?php echo $groupe["nom"] ?></a></li>
- <?php endforeach; ?>
- </ul>
- <?php endif; ?>
<br class="clear" />