<div id="content">
    <div class="left span-300">
        {include file='user_info.tpl'}
    </div>
    <div class="right span-650">
        <div class="box">
            
            <div class="btitle"><h2>{$album.name|upper}</h2></div>
            <div class="blink">
                <div class="blinkl">
                     Showing <strong>{$start_num}</strong> to <strong>{$end_num}</strong> of <strong>{$photos_total}</strong> photos.
                </div>
                <div class="blinkr">
                      <a href="{$relative}/album/slideshow/{$album.AID}">Slideshow</a>
                      {if isset($smarty.session.uid) && $smarty.session.uid == $album.UID}
                      <strong>&middot;</strong>
                      <a href="{$relative}/album/edit/{$album.AID}">Edit</a> <strong>&middot;</strong>
                      <a href="{$relative}/album/addphotos/{$album.AID}">Add More Photos</a> <strong>&middot;</strong>
                      <a href="{$relative}/album/delete/{$album.AID}">Delete</a>
                      {/if}
                </div>
                <div class="clear"></div>
            </div>
            {if !$is_friend}
            <div class="private">This is a private album. You must be friends with <a href="{$relative}/user/{$username}">{$username}</a> to view it.</div>
            {else}
            {if $photos}
            {if $delete_photos == '1' && $smarty.session.uid == $album.UID}
            <div id="delete_photo_message" class="posting" style="display:none"></div>
            {/if}
            {section name=i loop=$photos}
            {if $smarty.section.i.index == '0'}
            <div class="photo_row">
            {/if}
            <div id="album_photo_{$photos[i].PID}" class="photo_box">
                <a href="{$relative}/photo/{$photos[i].PID}/"><img src="{$relative}/media/photos/tmb/{$photos[i].PID}.jpg" alt="{$photos[i].caption|escape:html}" width="150" id="album_photo_{$photos[i].PID}" /></a>
                {if $delete_photos == '1' && $smarty.session.uid == $album.UID}
                <div class="photo_remove">
                    <a href="#delete_photo" id="delete_photo_{$photos[i].PID}" class="remove">Remove</a>
                </div>
                {/if}
            </div>
            {if $smarty.section.i.index gt '0' && $smarty.section.i.index mod 4 == '3' && $smarty.section.i.index != $smarty.section.i.total-1}
            <div class="clear_left"></div>
            </div>
            <div class="photo_row">
            {/if}
            {if $smarty.section.i.index == $smarty.section.i.total-1}
                <div class="clear_left"></div>
                </div>
            {/if}
            {/section}
            <div class="pagination"><ul>{$page_link}</ul></div><br />
            {else}
                <br />&nbsp;THIS ALBUM CONTAINS NO PHOTOS!<br /><br />
            {/if}
            {/if}
        </div>
    </div>
    <div class="clear"></div>
</div>
