detail.html 1.99 KB
<!doctype html>
<html class="no-js">
    <head>
        {template 'common/kp_header'}
    </head>
    <body>
        
        <ol class="am-breadcrumb kp-breadcrumb">
            {if isset($_W['styles']['index_url'])}
            <li>
                <a href="{if empty($_W['styles']['index_url'])||$_W['styles']['index_url']=='/'}{php echo url('home/home')}{else}{$_W['styles']['index_url']}{/if}">
                    首页
                </a>
            </li>
            {/if}
            <li>
                {if  $detail[ccate] == 0}
                <a href="{php echo url('site/site/list',array('cid' => $detail[pcate]))}" class="new_color" style="color: #428bca">
                    {php echo pdo_fetchcolumn("SELECT `name` FROM ".tablename('site_category')." WHERE id=".$detail[pcate])}
                </a>
                {else}
                <a href="{php echo url('site/site/list',array('cid' => $detail[ccate], 'pcid' => $detail[pcate]))}" class="new_color"  style="color: #428bca">
                    {php echo pdo_fetchcolumn("SELECT `name` FROM ".tablename('site_category')." WHERE id=".$detail[ccate])}
                </a>
                {/if}
            </li>
            <li class="am-active">正文</li>
        </ol>
        
        <article class="am-article kp-article">
            <div class="am-article-hd">
                <h1 class="am-article-title">{$detail['title']}</h1>
                <span id="post-date">
			<span>{php echo date('Y-m-d',$detail['createtime'])}</span>
			<span>{$detail['author']}</span>
			{if !empty($detail['source'])}<a href="{$detail['source']}">文章来源</a>{/if}
			{if !empty($subscribeurl)}<a href="{$subscribeurl}">{$_W['account']['name']}</a>{/if}
			<span>阅读:{$detail['click']}次</span>
		</span>
            </div>
            <hr data-am-widget="divider" style="" class="am-divider am-divider-default" />
            <div class="am-article-bd">{$detail['content']}</div>
        </article>
        {template 'common/kp_footer'}
    </body>
</html>