<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>{$username|upper}'S BLOG</h2></div>
            <div class="blinkp">
                <div class="blinkcl">&nbsp;Showing <span>{$start_num}</span> to <span>{$end_num}</span> of <span>{$blogs_total}</span> blogs.</div>
                {if isset($smarty.session.uid) && $smarty.session.uid == $user.UID}
                <div class="blinkcr"><a href="{$relative}/blog/add">New Entry</a></div>
                {/if}
                <div class="clear"></div>
            </div>
            {section name=i loop=$blogs}
            <div class="blog_header">
                <h5><a href="{$relative}/blog/{$blogs[i].BID}/{$blogs[i].title|clean}">{$blogs[i].title|escape:'html'}</a></h5>
                {insert name=time_range assign=addtime time=$blogs[i].addtime}
                <span class="smallest grey">Views: {$blogs[i].total_views} <strong>&middot;</strong> Posted: {$addtime}</span>
            </div>
            <div class="blog_content">
                {$blogs[i].content|nl2br}
            </div>
            <div class="blog_links_user">
                <div class="blog_links_l">
                    <a href="{$relative}/blog/{$blogs[i].BID}/{$blogs[i].title|clean}">{$blogs[i].total_comments} comments</a> <strong>&middot;</strong>
                    <a href="{$relative}/blog/{$blogs[i].BID}/{$blogs[i].title|clean}">Post Comment</a>
                </div>
                {if isset($smarty.session.uid) && $smarty.session.uid == $user.UID}
                <div class="blog_links_r">
                    <a href="{$relative}/blog/edit/{$blogs[i].BID}/{$blogs[i].title|clean}">Edit</a> <strong>&middot;</strong>
                    <a href="{$relative}/blog/delete/{$blogs[i].BID}/{$blogs[i].title|clean}">Delete</a>
                </div>
                {/if}
                <div class="clear"></div>
            </div>            
            {/section}
        </div>
    </div>
    <div class="clear"></div>
</div>
