Skip to content

Commit

Permalink
Added information to allow CSS positioning of the thumbnail. Added S_…
Browse files Browse the repository at this point in the history
…NO_PICS flag for easier template adjustments.
  • Loading branch information
John leach committed Apr 12, 2012
1 parent f0d773c commit 63f2596
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/album_mod/album_personal.php
Expand Up @@ -298,11 +298,14 @@
if (($album_config['personal_show_recent_instead_of_nopics'] == 1) && ($total_pics > 0))
{
album_build_recent_pics($allowed_cat);
$template->assign_vars(array('S_NO_PICS' => '1'));
}
else
{
$total_pics = 0;
$template->assign_block_vars('index_pics_block', array());
$template->assign_block_vars('index_pics_block.no_pics', array());
$template->assign_vars(array('S_NO_PICS' => '1'));
}

if (($is_root_cat) && (!$has_sub_cats))
Expand Down Expand Up @@ -456,6 +459,7 @@

'S_COLS' => $album_config['cols_per_page'],
'S_COL_WIDTH' => (100 / $album_config['cols_per_page']) . '%',
'S_THUMBNAIL_SIZE' => $album_config['thumbnail_size'],

'L_VIEW' => $lang['View'],
'L_PIC_CAT' => $lang['Pic_Cat'],
Expand Down Expand Up @@ -495,4 +499,4 @@
)
);

?>
?>

0 comments on commit 63f2596

Please sign in to comment.