ZBlog single.php

摘要:zblog single.php

{* Template Name:默认内容页 * Template Type:single|article|page *}
{php}
//封面图片
$titlepic = $article->Metas->titlepic ? $article->Metas->titlepic : $article->AllImages[0];
{/php}
<!DOCTYPE html>
<html>
<head>
    {template:seo}
    <link rel="stylesheet" href="{$host}zb_users/theme/{$theme}/style/{$style}.css?v={$themeinfo['modified']}">
</head>
<body>

<!--头部-->
{template:header}

<!--内容-->
<div class="container single">

    <!--面包屑导航-->
    <div class="crumbs">当前位置:{template:crumbs}</div>
    
    <!--内容详情-->
    <div class="detail">
        文章标题:{$article.Title}
        文章链接:{$article.Url}
        文章摘要:{$article.Intro}
        文章正文:{$article.Content}
        文章图片:{$titlepic}
        文章浏览数:{$article.ViewNums}
        文章更新时间:{$article.Time("UpdateTime","Y-m-d H:i:s")}
        分类名称:{$article.Category.Name}
        分类链接:{$article.Category.Url}
        文章标签数组:{$article.Tags}
        上一篇标题:{$article.Prev.Title}
        上一篇URL:{$article.Prev.Url}
        下一篇标题:{$article.Next.Title}
        下一篇URL:{$article.Next.Url}
    </div>

</div>

<!--底部-->
{template:footer}

</body>
</html>