photos_albumview.tpl.php in Album Photos 7.3
Same filename and directory in other branches
Formats album layout.
3 theme calls to photos_albumview.tpl.php
- photos_album_page in inc/
photos.album.inc - Album view.
- photos_page_image in inc/
photos.page.inc - Latest images page.
- photos_sub_album_page in inc/
photos.album.inc - Sub album view.
File
tpl/photos_albumview.tpl.phpView 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');