{strip} {assign var=is_friend value=$this->isfriend($user.id)}
{$this->lang['Photo_albums']}
{if !$is_friend && $user['private'] === 'yes' && $user['id'] !== $this->USER['id']} {include file=$this->private_profile_tpl} {else} {if isset($this->USER['id']) && $this->USER['id'] === $user['id']} {include file={$_addPhoto}} {/if} {if isset($this->USER['id']) && $this->USER['id'] === $user['id']}
{$this->lang['new_album']}
{/if} {if $is_photos}
{$this->lang['Photo_albums']} {$this->getUserAlbumsCount($user['id'])}
{else} {if isset($this->USER['id']) && $this->USER['id'] !== $user['id']}

###
{$this->info_msg($this->lang['friend_no_albums'])}

{/if} {/if}
{if $countPhotosP}
{$countPhotosP}
{$this->lang['p_photos']}
{/if} {assign var=c_deleted_photos value=$this->checkForTrashAlbum()} {if $c_deleted_photos && $user.id == $this->USER['id']}
{$c_deleted_photos}
{$this->lang['deleted_photos']}
{$existDeletedAlbum = 1} {/if} {assign var="getTaggedAlbum" value=$this->buildTaggedAlbum($user['id'])} {assign var="existTaggedAlbum" value='0'} {foreach $getTaggedAlbum[0] as $tagged_result}
{$getTaggedAlbum[1]}
{$this->lang['tagged_album']}
{$existTaggedAlbum = 1} {/foreach} {if $countPhotosA } {foreach $query as $res} {if $this->albumVisibleTo($res.visible_to,$user.id)}
{if $res.cover > 0}
{else if $res.video === 'yes'}
{else}
{/if}
{if $res.video === 'yes'}{$this->getAlbumVideosCount($res.id,$user.id)}{else}{$this->getAlbumPhotoCount($res['id'])}{/if}
{$this->getAlbumName($res.name)}
{/if} {/foreach} {/if}
{if $is_photos}
{$this->lang['All_photos']} {intval($countPhotosA + $countPhotosP)}
{assign var="recentPadded" value=date('Y')} {foreach $all_photos_q as $res} {assign var="padded" value=$this->getPhotoAddedYear($res.added)} {if isset($res.vid)}
{$res.dur} {if !empty($res.external)} {$res.external} {/if}
{$res.vtitle}
{else} {assign var=is_gif value=$this->is_gif($res.id)} {if $is_gif} GIF{/if} {assign var="rates" value=$this->pwGetPhotoStars($res.id)} {if $rates}
{/if} {/if} {$recentPadded = $padded} {/foreach}
{$this->lang['View_more_photos']}
{/if} {/if}
{/strip}