You are here

photos_albumview.tpl.php in Album Photos 7.3

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

Formats album layout.

File

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

/**
 * @file
 * Formats album layout.
 */
if (isset($album['album_url']) || isset($album['node_edit_url'])) {
  ?>
<div class="photos_album_menu">
  <?php

  if (isset($album['access']['edit']) && !empty($album['access']['edit'])) {
    ?>
    <?php

    print $album['node_edit_url'];
    ?>
    <?php

    print $album['image_management_url'];
    ?>
  <?php

  }
  ?>
</div>
<?php

}
if (isset($node->type) && $node->type == 'photos') {
  ?>
  <div class="photos_album_header">
    <?php

  if (isset($node->album['cover']['url'])) {
    ?>
      <div class="photos_album_cover">
        <?php

    print $album['cover'];
    ?>
      </div>
    <?php

  }
  ?>
    <h2><?php

  print check_plain($node->title);
  ?></h2>
    <?php

  if (isset($node->teaser)) {
    ?>
      <?php

    print $node->teaser;
    ?>
    <?php

  }
  ?>
    <div class="photos_album_right">
      <?php

  print t('!cou images', array(
    '!cou' => $node->album['count'],
  ));
  ?>
      <div class="submitted">
        <?php

  print t('Submitted by !name on !date', array(
    '!name' => $node->name,
    '!date' => format_date($node->created),
  ));
  ?>
      </div>
    </div>
  </div>
<?php

}
?>

<?php

print $album['links'];
print theme('pager');
foreach ($album['view'] as $view) {
  print $view;
}
print theme('pager');