photos_imageblock.tpl.php in Album Photos 7.3
Same filename and directory in other branches
Formats album image pager block.
1 theme call to photos_imageblock.tpl.php
- photos_block_view in ./
photos.module - Implements hook_block_view().
File
tpl/photos_imageblock.tpl.phpView 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');
?>"> </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;
?>"> </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
}
}