You are here

photos_imagehtml.tpl.php in Album Photos 7.3

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

Formats single image.

File

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

/**
 * @file
 * Formats single image.
 */
if (!isset($image->href)) {
  ?>
  <?php

  print $image->view;
}
else {
  ?>
  <div class="photos_imagehtml">
    <?php

  print l($image->view, $image->href, array(
    'html' => true,
  ));
  ?>
    <?php

  if (isset($image->colorbox)) {
    ?>
      <a class="photos_imagehtml_colorbox colorbox" rel="colorbox_<?php

    print $image->pid;
    ?>" href="<?php

    print _photos_l($image->uri, 'origianl');
    ?>" title="<?php

    print $title;
    ?>">view original</a>
    <?php

  }
  ?>
  </div>
<?php

}