Update single.php 删除了上一篇,下一篇,感觉没啥用,精简。

This commit is contained in:
laoyang
2022-07-21 11:09:54 +08:00
parent 48cbed483d
commit 80ebf82fc8
-11
View File
@@ -133,17 +133,6 @@ $select_col = $col_array[kratos_option('g_article_widgets', 'two_side')];
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php require get_template_directory() . '/pages/page-toolbar.php'; ?> <?php require get_template_directory() . '/pages/page-toolbar.php'; ?>
<nav class="navigation post-navigation clearfix" role="navigation">
<?php
$prev_post = get_previous_post(TRUE);
if(!empty($prev_post)){
echo '<div class="nav-previous clearfix"><a title="'.$prev_post->post_title .'" href="'.get_permalink($prev_post->ID).'">'. __('< 上一篇','kratos') .'</a></div>';
}
$next_post = get_next_post(TRUE);
if(!empty($next_post)){
echo '<div class="nav-next"><a title="'. $next_post->post_title .'" href="'. get_permalink($next_post->ID) .'">'. __('下一篇 >','kratos') .'</a></div>';
}?>
</nav>
<?php comments_template(); ?> <?php comments_template(); ?>
</div> </div>
<?php if (kratos_option('g_article_widgets', 'two_side') == 'two_side'){ ?> <?php if (kratos_option('g_article_widgets', 'two_side') == 'two_side'){ ?>