菜单
控制台
概要
个人设置
插件
外观
编辑文件 post.php
备份
撰写
撰写文章
创建页面
管理
文章
独立页面
评论
分类
标签
文件
用户
友情链接
设置
基本
评论
阅读
永久链接
测试管理员
登出
网站
编辑文件 post.php
可以使用的外观
编辑
Massive
外观
设置外观
编辑源码
<?php /** * The template for displaying all single posts and attachments * * @package Vtrois * @version 2.3 */ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> <?php $this->need('header.php'); ?> <!-- single --> <!--page title start--> <section class="page-title"> <div class="container"> <div class="row"> <div class="col-md-7"> <h4 class="text-uppercase"><?php $this->options->zdgg() ?></h4> </div> <div class="col-md-5"> <ol class="breadcrumb text-uppercase"> <li><a href="<?php $this->options->siteUrl(); ?>">HOME</a></li> <?php if ($this->is('index')): ?><!-- 页面为首页时 --> <?php elseif ($this->is('post')): ?><!-- 页面为文章单页时 --> <li><?php $this->category(); ?></li> <li><?php $this->title() ?></li> <?php else: ?><!-- 页面为其他页时 --> <li><?php $this->archiveTitle('','',''); ?></li> <?php endif; ?> </ol> </div> </div> </div> </section> <!--page title end--> <!--body content start--> <section class="body-content "> <div class="page-content"> <div class="container"> <div class="row"> <div class="col-md-8"> <!--classic image post--> <div class="blog-classic"> <div class="blog-post"> <div class="full-width" style="display:none;"> </div> <h4 class="text-uppercase"><a itemtype="url" href="<?php $this->permalink() ?>"><?php $this->title(); ?></a></h4> <ul class="post-meta"> <li><i class="fa fa-user"></i>posted by <a itemprop="name" href="<?php $this->author->permalink(); ?>" rel="author"><?php $this->author(); ?></a> </li> <li><i class="fa fa-folder-open"></i> <?php $this->category(','); ?> </li> <li><i class="fa fa-comments"></i> <a href="#form"><?php $this->commentsNum('0', '1', '%d'); ?> comments</a> </li> <li><i class="fa fa-eye"></i><?php get_post_view($this); ?> </li> <?php $currGroup = get_object_vars($this->user) ['row']['group']; if ($currGroup == "administrator"): ?> <li><a href="<?php echo str_replace('login.php','',$this->options->loginUrl); ?>write-post.php?cid=<?php echo $this->cid; ?>"><?php _e('编辑'); ?></a></li> <?php endif; ?> </ul> <?php $this->content(); ?> <div class="inline-block"> <div class="widget-tags"> <h6 class="text-uppercase">Tags </h6> <?php $this->tags(' ', true, '<a>没有标签</a>'); ?> </div> </div> <div class="clearfix inline-block"> <div class="widget-postad"> <h6 class="text-uppercase">AD</h6> <?php _e($this->options->postad); ?> </div> </div> <div class="pagination-row"> <div class="pagination-post"> <div class="prev-post"> <?php $this->thePrev(' %s ','<a><div class="arrow"><i class="fa fa-angle-double-left"></i></div><div class="pagination-txt"><span>First Post</span></div></a>',array('title' => '<div class="arrow"><i class="fa fa-angle-double-left"></i></div><div class="pagination-txt"><span>Previous Post</span></div>')); ?> </div> <div class="post-list-link"> <a href="<?php $this->options->siteUrl(); ?>"> <i class="fa fa-home"></i> </a> </div> <div class="next-post"> <?php $this->theNext(' %s ','<a><div class="arrow"><i class="fa fa-angle-double-right"></i></div><div class="pagination-txt"><span>Last Post</span></div></a>',array('title' => '<div class="arrow"><i class="fa fa-angle-double-right"></i></div><div class="pagination-txt"><span>Next Post</span></div>')); ?> </div> </div> </div> <?php $this->need('comments.php'); ?> </div> </div> <!--classic image post--> </div> <?php $this->need('sidebar.php'); ?> </div> </div> </div> </section> <!--body content end--> <?php $this->need('footer.php'); ?>
保存文件
模板文件
404.php
archive.php
comments.php
footer.php
functions.php
header.php
index.php
page.php
page_no_sidebar.php
post.php
sidebar.php
Typecho
由
Typecho
强力驱动, 版本 1.2.1
帮助文档
•
支持论坛
•
报告错误
•
资源下载