<{if $mod_config.show_breadcrumbs}>
TOP <{foreach from=$xoops_breadcrumbs key="i" item="item"}> <{* if $i!=0 *}>  >  <{if $item.url}> <{$item.name}> <{else}> <{$item.name}> <{/if}> <{* /if *}> <{/foreach}>
<{/if}>
<{if $yd_layout=="left"}>
<{elseif $yd_layout=="right"}>
<{else}>
<{/if}>

<{if $mod_config.use_name==1 && $yd_name}><{$yd_name}> <{else}><{$yd_uname}> <{/if}><{$smarty.const._MD_DIARY_PERSON}>

<{if $yd_day>0}>[<{$yd_year}>-<{$yd_month}>-<{$yd_day}>]  <{elseif $yd_month>0}>[<{$yd_year}>-<{$yd_month}>] <{/if}> <{if $yd_param.mode=="category"}><{$smarty.const._MD_CATEGORY}> [<{$yd_param.cname}>] <{/if}> <{if $yd_param.tag}><{$smarty.const._MD_TAG}> [<{$yd_param.tag}>] <{/if}>
 
<{$yd_data.year}><{* $smarty.const._MD_DATE_YEAR *}>
<{$yd_data.b_month}><{ *$smarty.const._MD_DATE_MONTH *}> <{$yd_data.day}><{* $smarty.const._MD_DATE_DAY *}>
(<{$yd_data.week}>)
<{* div class="itemFoot"><{$yd_data.time}><{* /span>
<{$yd_data.title|escape}>
<{if $yd_before.bid >0}> <{$smarty.const._MD_DIARY_LAST}> <{/if}> <{if $yd_after.bid >0}> <{$smarty.const._MD_DIARY_NEXT}> <{/if}> <{$smarty.const._MD_CATEGORY}>  <{$yd_data.cname}> <{if $mod_config.use_tag>0}>
<{$smarty.const._MD_TAG}>  <{foreach from=$bTagArr item=tags}> <{$tags.tag}> <{/foreach}> <{/if}>
<{$smarty.const._MD_DIARY_TEXT}>
<{$yd_data.diary}> <{if $yd_photo.0.pid|count_characters>0}>
<{foreach from=$yd_photo key="num" item="photo" name="list"}> <{if $photo.body_in != true}> <{if $yd_photo|@count==1}>
<{elseif ($yd_photo|@count==2)&&$num==1}>
<{else}>
<{/if}> <{*

<{$smarty.const._MD_PHOTO}><{$num+1}>

*}> <{if $mod_config.photo_useinfo==1 && $photo.info}>

<{$photo.info}>

<{/if}>
<{* <{if $num==2 || $num==5 }>
<{/if}> *}> <{* <{if $num==1 || $num==3 || $num==5 || $num==7 }>
<{/if}> *}> <{/if}> <{/foreach}>
<{/if}>
<{* <{attachfile_attach_download dirname=attachfile target_id=$yd_data.bid}> |  *}> <{if $yd_editperm==1}> <{$smarty.const._MD_T_EDIT}> |  <{/if}> <{$smarty.const._MD_T_VIEW}>(<{$yd_data.view}>)
<{if $yd_data.can_disp!=true}> <{$smarty.const._MD_DIARY_NOPERMBODY}> <{/if}>
<{if $yd_data.can_disp==true || $yd_data.can_disp_com==true }>
<{if $mod_config.comment_dirname}> <{d3comment mydirname=$mydirname id=$yd_data.bid subject=$yd_data.title class="d3diaryD3commentContent" posts_num=$mod_config.comment_posts_num}> <{else}> <{if $mod_config.use_simplecomment == 0}> <{$commentsnav}>
<{$lang_notice}>
<{if $comment_mode == "flat"}> <{include file="db:system_comments_flat.html"}> <{elseif $comment_mode == "thread"}> <{include file="db:system_comments_thread.html"}> <{elseif $comment_mode == "nest"}> <{include file="db:system_comments_nest.html"}> <{/if}> <{else}> <{if $comments.0.id >0}>
<{$smarty.const._MD_CATEGORY}>
<{include file="db:system_comments_flat.html"}>

<{/if}>
<{$smarty.const._MD_COM_WRITE}>
<{if $xoops_isuser==1}> <{$yr_comment_form}> <{else}> <{$smarty.const._MD_COM_HOWTOWRITE1}><{$smarty.const._MD_COM_HOWTOWRITE2}><{$smarty.const._MD_COM_HOWTOWRITE3}>
<{/if}>
<{/if}> <{/if}>
<{/if}>
<{if $yd_layout=="left"}>
<{include file="db:`$mydirname`_rightarea.html"}>
<{elseif $yd_layout=="right"}>
<{include file="db:`$mydirname`_rightarea.html"}>
<{/if}>
<{include file='db:system_notification_select.html'}> <{if $debug_time}> <{foreach from=$debug_time item="debug"}> <{$debug.time}>:<{$debug.caller}>
<{/foreach}> <{/if}>