if:!empty($_V['error'])-}
	<li>
		<div class="alert alert-warning">
		{-if:401==$_V['error']-}
			{-:@GUESTBOOK_INEXISTENCE_TIP-}
		{-elseif:402==$_V['error']-}
			{-:@GUESTBOOK_PENDING_TIP-}
		{-:/if-}
		</div>
	</li>
{-elseif:empty($_L)-}
	<li>
		<div class="placeholder placeholder-lg text-center">{-:@LIST_EMPTY-}</div>
	</li>
{-else:-}
	{-foreach:$_L,$g-}
		<li class="media">
			{-if:!empty($g['g_no'])-}<div><i class="text-muted">{-:@NUMBERING-}: {-:$g['g_no']-}</i></div>{-:/if-}
			<div class="media-left">
				<a href="#">
					<img alt="{-:$g['g_author']-}" class="media-object" src="{-:*__APP__-}u/misc/avatar.png">
				</a>
			</div>
			<div class="media-body">
				<h4 class="media-heading">{-:$g['g_author']-}</h4>
				<p class="media-meta"><span class="attr">{-:$g['g_add_time']|get_dateStr~@me-}</span></p>
				<p class="media-content">{-:$g['g_content']-}</p>
				{-if:$g['g_reply']-}<div class="alert">
					<p>{-:$g['g_reply']-}</p>
					<p class="text-right"><span class="text-muted">{-:@REPLY_TIME-}: {-:$g['g_reply_time']|date~C('APP.TIME_FORMAT'),@me-}</span></p>
				</div><!--/.guestbook_reply-->{-:/if-}
			</div>
		</li>
	{-:/foreach-}
{-:/if-}

<!--next page-->
<script>
{-if:!empty($_PG['nextPage']['url'])-}
$('#viewMore').attr('nextpage', '{-:$_PG['nextPage']['url']-}');
{-else:-}
$('#viewMore').remove();
{-:/if-}
</script>