You are here

photos_imagehtml.tpl.php in Album Photos 6.2

Same filename and directory in other branches
  1. 7.3 tpl/photos_imagehtml.tpl.php

File

tpl/photos_imagehtml.tpl.php
View source
<?php

$filename = strip_tags($image['filename']);
$alt = $image['alt'] ? strip_tags($image['alt']) : $filename;
if (!$image['href']) {
  ?>
<img src="<?php

  print _photos_l($imagepath);
  ?>" alt="<?php

  print $alt;
  ?>" title="<?php

  print $filename;
  ?>"/>
<?php

}
else {
  ?>
  <?php

  if ($image['thickbox']) {
    ?>
    <div class="photos_imagehtml">
  <?php

  }
  ?>
    <a href="<?php

  print url($image['href']);
  ?>"><img src="<?php

  print _photos_l($imagepath);
  ?>" alt="<?php

  print $alt;
  ?>" title="<?php

  print $filename;
  ?>"/></a>
  <?php

  if ($image['thickbox']) {
    ?>
      <a class="photos_imagehtml_thickbox thickbox" rel="thickbox_<?php

    print $image['pid'];
    ?>" href="<?php

    print _photos_l($image['thickbox']);
    ?>" title="<?php

    print $filename;
    ?>"></a>
    </div>
  <?php

  }
}