首页
新随笔
日记
教程
网络杂篇
我的图集
站点导航
个人视频
影视
更多
留言板块
精选壁纸
站点统计
友情链接
工具
私人网盘
搜索
1
10年免费VPSserv00&ct8百分百免费注册成功 ProxySite-免费网络代理
115 阅读
2
基于cloudflare pages搭建免费VLESS节点
92 阅读
3
github批量上传文件PHP
82 阅读
4
写了一个Joe主题全站友情链接
63 阅读
5
欢迎使用 Typecho
59 阅读
搜索
标签搜索
Docker
Linux
PHP
centos
ubuntu
服务器
教程
nps
npc
内网穿透
一键脚本
webdav
宝塔
Joe主题
友情链接
github
icon
图标
苹果cms
mysql
小小
累计撰写
22
篇文章
累计收到
5
条评论
首页
分类
新随笔
日记
教程
网络杂篇
页面
我的图集
站点导航
个人视频
影视
留言板块
精选壁纸
站点统计
友情链接
工具
私人网盘
用户登录
登录
注册
搜索到与
1
篇与
的结果
2023-12-25
写了一个Joe主题全站友情链接
这个友情链接是使用主题内置的友情链接,不是插件<!-- 友情链接 --> <?php $friends = []; $friends_text = $this->options->JFriends; if ($friends_text) { $friends_arr = array_map('trim', explode("\r\n", $friends_text)); foreach ($friends_arr as $friend) { list($name, $url, $avatar, $desc) = array_map('trim', explode("||", $friend)); $friends[] = compact('name', 'url', 'avatar', 'desc'); } } ?> <style>*{margin:0;padding:0;box-sizing:border-box;}.footer{padding:20px 0;}.footer-links{text-align:center;}.footer-links a{color:#6c757d;text-decoration:none;margin-right:10px;}.h4,h4{font-size:calc(1.275rem + .3vw);}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:0.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color);}</style> <div class="joe_container"> <div class="joe_main"> <div class="joe_index joe_archive joe_detail"> <!-- 局部 --> <?php if (sizeof($friends) > 0) : ?> <footer class="footer"> <div class="container"> <div class="row"> <div class="col-lg-12 text-center"> <h4 class="item">友情链接</h4> <div class="footer-links"> <?php foreach ($friends as $item) : ?> <a href="<?php echo $item['url']; ?>" target="_blank" rel="noopener noreferrer"><?php echo $item['name']; ?></a> <?php endforeach; ?> </div> </div> </div> </div> </footer> <?php endif; ?> <!-- 局部 --> </div> </div> </div> <!-- 友情链接结束 -->代码添加在模板的这个位置 <footer class="joe_footer"> 上方最终样式看我主页
2023年12月25日
63 阅读
2 评论
1 点赞