📄 single.php
字号:
<?php get_header(); ?>
<div id="primary" class="single-post">
<div class="inside">
<div class="utom">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="primary">
<h1><?php the_title(); ?></h1>
<?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
</div>
<hr class="hide" />
<div class="secondary">
<h2>About this entry</h2>
<div class="featured">
<p>You’re currently reading “<?php the_title(); ?>,” an entry on <?php bloginfo('name'); ?></p>
<dl>
<dt>Published:</dt>
<dd><?php the_time( $hemingway->date_format() . '.y' ) ?> / <?php the_time('ga') ?></dd>
</dl>
<dl>
<dt>Category:</dt>
<dd><?php the_category(', ') ?></dd>
</dl>
<?php if ( (function_exists('UTW_ShowTagsForCurrentPost')) ) { ?><dl>
<dt>Tags:</dt>
<dd><?php UTW_ShowTagsForCurrentPost("commalist") ?></dd>
</dl>
<?php }?>
<?php edit_post_link('Edit this entry.', '<dl><dt>Edit:</dt><dd> ', '</dd></dl>'); ?>
</div>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<!-- [END] #primary -->
<hr class="hide" />
<div id="hidecomments" style="display:none;">
<div id="secondary">
<a href="#" class="close_c oc" onclick="Effect.toggle('hidecomments','slide'); return false;"><span>Open Comments</span></a>
<div class="inside">
<?php if ('open' == $post-> comment_status) {
// Comments are open ?>
<div class="comment-head">
<h2><?php comments_number('No comments','1 Comment','% Comments'); ?></h2>
<span class="details"><a href="#comment-form">Jump to comment form</a> | <?php comments_rss_link('comments rss'); ?> <a href="#what-is-comment-rss" class="help">[?]</a> <?php if ('open' == $post->ping_status): ?>| <a href="<?php trackback_url(true); ?>">trackback uri</a> <a href="#what-is-trackback" class="help">[?]</a><?php endif; ?></span>
</div>
<?php } elseif ('open' != $post-> comment_status) {
// Neither Comments, nor Pings are open ?>
<div class="comment-head">
<h2>Comments are closed</h2>
<span class="details">Comments are currently closed on this entry.</span>
</div>
<?php } ?>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
</div>
</div>
<a href="#" class="open_c oc" onclick="Effect.toggle('hidecomments','slide'); return false;"><span>Open Comments</span></a>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -