代码拉取完成,页面将自动刷新
同步操作将从 iowen/WebStack 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php
/*
* @Theme Name:WebStack
* @Theme URI:https://www.iotheme.cn/
* @Author: iowen
* @Author URI: https://www.iowen.cn/
* @Date: 2020-02-22 21:26:05
* @LastEditors: iowen
* @LastEditTime: 2024-07-30 18:25:17
* @FilePath: /WebStack/archive.php
* @Description:
*/
if ( ! defined( 'ABSPATH' ) ) { exit; }
get_header(); ?>
<?php
include( 'templates/header-nav.php' );
?>
<div class="main-content">
<?php include( 'templates/header-banner.php' ); ?>
<div class="container">
<div class="row mt-5 mt-sm-0">
<div class="col-12 mx-auto">
<h1 class="text-gray"><i class="icon-io-tag" style="margin-right: 27px;" id="<?php single_cat_title() ?>"></i><?php single_cat_title() ?></h1>
<div class="panel panel-default">
<div class="cat_list">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post();?>
<div class="list-content my-3 pb-4">
<h2 class="post-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="list-title text-lg overflowClip_2"><?php the_title(); ?></a>
</h2>
<div class="post-meta d-flex align-items-center text-muted text-xs">
<?php
$category = get_the_category();
if($category[0]){ ?>
<span><i class="fa fa-folder mr-1"></i>
<a href="<?php echo get_category_link($category[0]->term_id ) ?>"><?php echo $category[0]->cat_name ?></a>
</span>
<?php } ?>
<span class="ml-auto"><i class="fa fa-calendar mr-1"></i>
<time class="mx-1"><?php echo get_the_time('Y-m-d G:i') ?></time>
</span>
</div>
<div class="list-desc text-sm text-secondary my-4">
<div class="overflowClip_2 "><?php echo io_get_excerpt(150) ?></div>
</div>
</div>
<?php endwhile; endif;?>
</div>
<div class="posts-nav">
<?php echo paginate_links(array(
'prev_next' => 0,
'before_page_number' => '',
'mid_size' => 2,
));?>
</div>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。