1 Star 0 Fork 32

飞扬2016/WordPress简约博客主题Qzdy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
link.php 3.23 KB
一键复制 编辑 原始数据 按行查看 历史
秋天不回来 提交于 2022-12-10 21:15 . qzdy v5.1
<?php
/* template name: 页面模板--友情链接展示
*/
?>
<?php get_header();?>
<!--上面是头部-->
<div class="layui-content">
<div class="layui-container">
<div class="layui-row layui-col-space15 flex main <?php qzdy_sidebar_fangxiang();?>">
<div class="layui-col-md9 layui-col-lg9">
<!--内容开始-->
<div class="title-article">
<h1><?php the_title(); ?></h1>
<div class="title-msg">
<?php if(!empty($article_author = _qzdy('zero-footer-article-author'))){?>
<span><i class="layui-icon layui-icon-username"></i><?php echo get_the_author_meta( 'nickname', $post->post_author ) ?></span><?php } ?>
<span><i class="layui-icon layui-icon-time"></i><?php the_time(' Y/n/j'); ?></span>
<span><i class="fa fa-eye" aria-hidden="true"></i><?php post_views(' ',''); ?></span>
<span><?php edit_post_link('[编辑]'); ?></span>
</div>
</div>
<div class="text" itemprop="articleBody">
<div id="md_content_2" class="md_content markdown-body editormd-html-preview" style="min-height: 50px;">
<?php the_content(); ?>
<div class="linkpage">
<?php $friendimg=''; if(!empty(_qzdy('zero-footer-youqinglink-ico'))){ echo '<img src="'.$friendimg.'">';} ?>
<ul><?php
if(_qzdy('zero-footer-youqinglink-auto') == '01'){$orderby='name';}else if (_qzdy('zero-footer-youqinglink-auto') == '02') { $orderby='rating';}else{$orderby='rand';}
$bookmarks = get_bookmarks(array('orderby'=>$orderby));
if(!empty($bookmarks)){
foreach($bookmarks as $bookmark){
$friendimg = $bookmark->link_image;
echo '<li><a href="'.$bookmark->link_url.'" target="_blank">'.link_ico($friendimg).'<h4>'.$bookmark->link_name.'</h4><p>'.$bookmark->link_description.'</p></a></li>';
}
} ?>
</ul>
</div>
</div>
<!--底部完毕-->
<div class="the-end">- THE END -</div>
<!--修改日期-->
<div class="time-text">
<i class="layui-icon iconfont iconshijian"></i> 最后修改:<?php the_modified_time('Y年n月j日'); ?></div>
<!--申明-->
<div class="copy-text">
<div>
<p><?php echo _wenzhangbanquan();?></p>
<p class="hidden-xs">如若转载,请注明出处:<a><?php echo get_permalink(); ?></a> </p>
</div>
</div>
</div>
<?php
$zero_footer_plk = _qzdy('zero-footer-plk');
if(!empty($zero_footer_plk)){?>
<?php if (comments_open() ) { ?>
<div class="page-comt<?php echo qzdy_prevent_theme(); ?>">
<?php $file=""; $separate_comments="";?>
<?php comments_template( $file, $separate_comments ); ?>
</div>
<?php } } ?>
</div>
<?php get_sidebar();?>
</div>
</div>
</div>
</div>
<!--底部版权-->
<?php get_footer();?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/mpxq22/qzdy.git
git@gitee.com:mpxq22/qzdy.git
mpxq22
qzdy
WordPress简约博客主题Qzdy
master

搜索帮助