+ <?php
+
+ $source_image_url = false;
+ if($source["reference"]){
+ if(
+ isset($source["reference"]["image"])
+ && $source["reference"]["image"]
+ ){
+ $source_image_url = $source["reference"]["image"];
+ }
+ }
+ else{
+ if
+ ( isset($source["image_uri"])
+ && $source["image_uri"]
+ && file_exists($source["image_uri"])
+ ){
+ $source_image_url = $source["image_uri"];
+ }
+ }
+ if($source_image_url){
+ $source_thumb = false;
+ if($data->mw_thumbs_activated()){
+ $source_thumb = $data->img_thumb(
+ $source_image_url,
+ 100,
+ 100,
+ $this->path("content")."thumbs",
+ array(255, 255, 255),
+ true
+ );
+ }
+ }
+
+ ?>
+ <?php if($source_image_url) : ?>
+ <p class="logo_source">
+ <a href="<?php echo $source["reference"] ? $source["reference"]["from"] : $source["url"] ?>">
+ <?php if($source_thumb) : ?>
+ <img src="<?php echo $this->path("content")."thumbs/".$source_thumb["thumb_file"] ?>"
+ width="<?php echo $source_thumb["thumb_width"] ?>"
+ height="<?php echo $source_thumb["thumb_height"] ?>"
+ alt="" />
+ <?php else : ?>
+ <img src="<?php echo $source_image_url ?>" style="width: 100px; height: auto" alt="" />
+ <?php endif; ?>
+ </a>
+ </p>
+ <?php endif; ?>
+ <h1<?php if($source_image_url): ?> class="with_image"<?php endif; ?>>