You are here

photos_imageblock.tpl.php in Album Photos 7.3

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

Formats album image pager block.

File

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

/**
 * @file
 * Formats album image pager block.
 */
print t('Uploaded on !time by !name', array(
  '!name' => $image->name,
  '!time' => format_date($image->timestamp, 'small'),
));
?>
<table cellspacing="0" cellpadding="0" border="0" class="photos_block_pager">
  <tr>
    <td colspan="3">
      <div class="photos_block_pager_title">
        <?php

if (isset($image->slide_url)) {
  ?>
          <a href="<?php

  print $image->slide_url;
  ?>" class="photos_block_pager_flash" title="<?php

  print t('View as slideshow');
  ?>">&nbsp;</a>
        <?php

}
?>
        <h3 class="photos_block_pager_name"><?php

print l(t('@name\'s images', array(
  '@name' => $image->name,
)), 'photos/user/' . $image->uid . '/image');
?></h3>
      </div>
    </td>
  </tr>
  <tr class="photos_prev">
    <td valign="top" class="photos_block_pager_left">
      <?php

if (isset($image->pager['prev_view'])) {
  ?>
        <div><a href="<?php

  print $image->pager['prev_url'];
  ?>#image-load"><?php

  print $image->pager['prev_view'];
  ?></a></div>
        <div style="width:100%;"><a href="<?php

  print $image->pager['prev_url'];
  ?>#image-load"><?php

  print t('previous');
  ?></a></div>
      <?php

}
?>
    </td>
    <td valign="top" class="photos_block_pager_center">
      <?php

if (isset($image->pager['current_view'])) {
  ?>
        <?php

  print $image->pager['current_view'];
  ?>
        <div>▲</div>
      <?php

}
?>
    </td>
    <td valign="top" class="photos_block_pager_right">
      <?php

if (isset($image->pager['next_view'])) {
  ?>
        <a href="<?php

  print $image->pager['next_url'];
  ?>#image-load"><?php

  print $image->pager['next_view'];
  ?></a>
        <div><a href="<?php

  print $image->pager['next_url'];
  ?>#image-load"><?php

  print t('next');
  ?></a></div>
      <?php

}
?>
    </td>
  </tr>
  <tr class="photos-block-link">
    <td colspan="3">
      <?php

print t('In !album', array(
  '!album' => l($image->title, 'photos/album/' . $image->nid),
));
?>
    </td>
  </tr>
</table>
<?php

print $image->links;
if (isset($image->sub_album)) {
  ?>
<p class="photos_block_info">
  <?php

  print t('This photo also belongs to:');
  ?>
</p>
  <?php

  foreach ($image->sub_album as $nid => $sub_album) {
    ?>
    <div class="photos_block_sub">
      <div class="photos_block_sub_title">
        <div class="photos_block_sub_open" alt="<?php

    print $sub_album->geturl;
    ?>">&nbsp;</div>
        <div class="photos_block_sub_name">
          <a href="<?php

    print $sub_album->url;
    ?>" title="<?php

    print $sub_album->info;
    ?>"><?php

    print $sub_album->title;
    ?></a>
        </div>
      </div>
      <div class="photos_block_sub_body photos_block_sub_body_load">
      </div>
    </div>
  <?php

  }
}