1 Star 4 Fork 1

gallanthunter/wp-theme-beginner

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
archive.php 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
gallanthunter 提交于 2023-02-08 21:35 . 更新tag,归档显示样式
<?php
/*
* @Filename : archive.php
* @Description :
* @Author : Zhang Zhijun <gallanthunter@163.com>
* @Copyright : Copyright (c) 2023 by chahuawu.com, All Rights Reserved.
* @License : Mulan PubL v2
* @Link : https://chahuawu.com
* @CreateTime : 2022-12-17 20:51:49
* @LastModifyTime: 2023-01-11 21:16:12
*/
get_header();
?>
<div class="bgn-container bgn-m-auto bgn-max-w-screen-xl bgn-flex bgn-flex-col md:bgn-flex-row bgn-leading-relaxed">
<div class="bgn-w-full md:bgn-w-9/12 bgn-mr-2">
<header class="">
<h1><?php
if (is_day()) echo the_time('Y年m月j日');
elseif (is_month()) echo the_time('Y年m月');
elseif (is_year()) echo the_time('Y年');
?>的文章</h1>
</header>
<?php while (have_posts()) {
the_post();
get_template_part('template-parts/article/article', 'list');
};
wp_reset_query();
paginate_posts();
?>
</div>
<aside class="bgn-sidebar bgn-w-full md:bgn-w-3/12">
<?php get_sidebar(); ?>
</aside>
</div>
<!-- footer -->
<?php get_footer(); ?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/gallanthunter/wp-theme-beginner.git
git@gitee.com:gallanthunter/wp-theme-beginner.git
gallanthunter
wp-theme-beginner
wp-theme-beginner
master

搜索帮助