feat: Argon WordPress主题完整版本
- 基于Argon主题的WordPress博客主题 - 支持响应式设计和暗色模式 - 包含完整的文章管理和评论系统 - 集成友情链接管理功能 - 支持多种自定义设置选项 - 优化的用户界面和交互体验
This commit is contained in:
47
shuoshuo.php
Normal file
47
shuoshuo.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/*
|
||||
Template Name: 说说
|
||||
*/
|
||||
query_posts("post_type=shuoshuo&post_status=publish&posts_per_page=-1");
|
||||
?>
|
||||
|
||||
<?php get_header(); ?>
|
||||
|
||||
<div class="page-information-card-container">
|
||||
<div class="page-information-card card bg-gradient-secondary shadow-lg border-0">
|
||||
<div class="card-body">
|
||||
<h3 class="text-black"><?php _e('说说', 'argon');?></h3>
|
||||
<?php if (the_archive_description() != ''){ ?>
|
||||
<p class="text-black mt-3">
|
||||
<?php the_archive_description(); ?>
|
||||
</p>
|
||||
<?php } ?>
|
||||
<p class="text-black mt-3 mb-0 opacity-8">
|
||||
<i class="fa fa-quote-left mr-1"></i>
|
||||
<?php echo wp_count_posts('shuoshuo','') -> publish; ?> <?php _e('条说说', 'argon');?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php get_sidebar(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
get_template_part( 'template-parts/content', 'shuoshuo' );
|
||||
endwhile;
|
||||
?>
|
||||
<?php
|
||||
echo get_argon_formatted_paginate_links_for_all_platforms();
|
||||
?>
|
||||
<?php
|
||||
else :
|
||||
get_template_part( 'template-parts/content', 'none-tag' );
|
||||
endif;
|
||||
?>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
Reference in New Issue
Block a user