1 Star 1 Fork 33

owoi/WordPress简约博客主题Qzdy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
search.php 3.83 KB
一键复制 编辑 原始数据 按行查看 历史
秋天不回来 提交于 2022-02-28 22:31 . v4.7更新
<!--搜索theme-->
<?php get_header();?>
<div class="layui-content">
<div class="layui-container">
<div class="layui-row layui-col-space15 main">
<?php
if(_qzdy('opt-index-sidebar-position') == 'opt-sidebar-left'){
?>
<?php get_sidebar();?>
<?php } ?>
<div class="layui-col-md9 layui-col-lg9">
<div class="map">
<?php if ( function_exists('ah_breadcrumb') ) ah_breadcrumb(); ?>
</div>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="title-article list-card item-box">
<div class="index-post-img-small"><a href="<?php the_permalink() ?>">
<div title="<?php the_title(); ?>" class="item-thumb-small lazy commodity-img" data-original="<?php $gettesheimg = wp_get_attachment_image_src( get_post_thumbnail_id());if(!empty($gettesheimg)){echo $gettesheimg[0];}else{echo catch_first_image(); }?>" style="background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"><span class="layui-badge layui-bg-cyan x"><?php the_time('Y/n/j'); ?></span>
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M903.93 107.306H115.787c-51.213 0-93.204 42.505-93.204 93.72V825.29c0 51.724 41.99 93.717 93.717 93.717h788.144c51.72 0 93.717-41.993 93.717-93.717V201.025c-.512-51.214-43.017-93.719-94.23-93.719zm-788.144 64.527h788.657c16.385 0 29.704 13.316 29.704 29.704v390.229L760.54 402.285c-12.805-13.828-30.217-21.508-48.14-19.971-17.924 1.02-34.821 10.754-46.602 26.114l-172.582 239.16-87.06-85.52c-12.29-11.783-27.654-17.924-44.039-17.924-16.39.508-31.755 7.676-43.53 20.48L86.595 821.705V202.05c-1.025-17.416 12.804-30.73 29.191-30.217zm788.145 683.674H141.906l222.255-245.82 87.06 86.037c12.8 12.807 30.212 18.95 47.115 17.417 17.41-1.538 33.797-11.266 45.063-26.118l172.584-238.647 216.111 236.088 2.051-1.54V825.8c.509 16.39-13.315 29.706-30.214 29.706zm0 0"></path><path d="M318.072 509.827c79.89 0 144.417-65.037 144.417-144.416 0-79.378-64.527-144.925-144.417-144.925-79.891 0-144.416 64.527-144.416 144.412 0 79.892 64.525 144.93 144.416 144.93zm0-225.327c44.553 0 80.912 36.362 80.912 80.91 0 44.557-35.847 81.43-80.912 81.43-45.068 0-80.916-36.36-80.916-80.915 0-44.556 36.872-81.425 80.916-81.425zm0 0"></path></svg>
</div>
</a></div>
<div class="index-post-text-small"><h2 title="<?php the_title(); ?>" class="m-t-none text-ellipsis index-post-title text-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<p class="summary l-h-2x text-muted"><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 96,'…'); ?></p>
<div class="line line-lg b-b b-light"></div>
<div class="text-muted post-item-foot-icon text-ellipsis list-inline"><li class="viewfloat">
<i class="layui-icon layui-icon-slider"></i><a href="<?php $category = get_the_category();if($category[0]){echo ''.get_category_link($category[0]->term_id ).'';}?>"><?php foreach((get_the_category()) as $category){echo $category->cat_name;} ?> </a> </li><li><i class="layui-icon layui-icon-log"></i><?php the_time('Y/n/j '); ?></li><li><i class="layui-icon layui-icon-user"></i><a href=""><?php the_author(); ?></a></li><li><span class="view"><i class="layui-icon layui-icon-fire"></i><?php post_views('',''); ?></span></li></div></div></div>
<?php endwhile; else: ?>
<div class="qzdy_ssnrts"> <p>宝贝暂时没有相关的文章哦</p></div>
<?php endif; ?>
<div class="pagination" id="pagenavi">
<p> <?php lingfeng_pagenavi();?></p>
</div>
</div>
<?php
if(_qzdy('opt-index-sidebar-position') == 'opt-sidebar-right'){
?>
<?php get_sidebar();?>
<?php } ?>
</div>
</div>
</div>
</div>
<!--底部版权-->
<?php get_footer();?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/samegis/qzdy.git
git@gitee.com:samegis/qzdy.git
samegis
qzdy
WordPress简约博客主题Qzdy
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385