代码拉取完成,页面将自动刷新
<?php get_head(); ?>
<div class="container note">
<?php get_header(); ?>
<script>
$('header .menu ul li.note').addClass('current-menu-item');
</script>
<main>
<?php get_nav(); ?>
<div class="content">
<article>
<h2>说说 <span>Notes.</span></h2>
<div class="note-page">
<ul>
<?php
$limit = get_option('posts_per_page');$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('post_type=note&post_status=publish&paged=' . $paged);
if (have_posts()) : while (have_posts()) : the_post();
?>
<li>
<div class="top">
<div class="left">
<?php the_avatar_author(); ?>
</div>
<div class="right">
<div class="note-author"><?php echo get_user_role(1)->display_name; ?></div>
<div class="note-date"><?php echo get_the_date(); ?> <?php the_time(); ?></div>
</div>
</div>
<div class="center">
<div class="notes-content">
<?php the_content(); ?>
</div>
</div>
<div class="bottom">
<a href="<?php the_permalink(); ?>"><i class="iconfont icon-message-square"></i>查看原文</a>
</div>
</li>
<?php
endwhile;
endif;
?>
</ul>
</div>
<?php require 'inc/ajax/ajax-note-page.php'; ?>
</article>
<?php get_aside(); ?>
</div>
</main>
</div>
<?php get_foot(); ?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。