{include file='header.tpl'} {* $Id: user_blog.tpl 241 2009-11-14 02:48:21Z phil $ *}
{* SHOW BUTTONS *}
{if $user->level_info.level_blog_create}
Compose Blog
{/if}
My Blog Entries
{if $user->level_info.level_blog_view}
{lang_print id=1500047}
{lang_print id=1500001}
{/if} {if $user->level_info.level_blog_create}
Search Published Blogs
{/if}

{* SEARCH FIELD *} {* JAVASCRIPT *} {lang_javascript ids=861,1500122,1500123} {if $user->level_info.level_blog_create} {* DISPLAY MESSAGE IF NO BLOG ENTRIES *} {if !$total_blogentries}
{if !empty($search)} {lang_print id=1500050} {else} You do not have any blog drafts. {/if}
{* DISPLAY ENTRIES *} {else}
{* DISPLAY PAGINATION MENU IF APPLICABLE *} {if $maxpage > 1}
{if $p != 1} « {lang_print id=182} {else} « {lang_print id=182} {/if} {if $p_start == $p_end}  |  {lang_sprintf id=184 1=$p_start 2=$total_blogentries}  |  {else}  |  {lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_blogentries}  |  {/if} {if $p != $maxpage} {lang_print id=183} » {else} {lang_print id=183} » {/if}
{/if} {* LIST BLOG ENTRIES *}
{section name=blogentry_loop loop=$blogentries}
{lang_sprintf id=1500127 1=$datetime->cdate("`$setting.setting_dateformat`", $datetime->timezone($blogentries[blogentry_loop].blogentry_date, $global_timezone))} - {lang_sprintf id=1500042 1=$blogentries[blogentry_loop].blogentry_totalcomments}
{if !empty($blogentries[blogentry_loop].blogentry_body)}
{$blogentries[blogentry_loop].blogentry_body|strip_tags|truncate:200}
{/if}
{lang_print id=187} | {lang_print id=155}
{/section}



{* HIDDEN DIV TO DISPLAY DELETE CONFIRMATION MESSAGE *} {/if} {/if} {include file='footer.tpl'}