前言
最近在handsome正版用户交流社区看到了一个
路迅先生写的教程里面是在底栏加入
但是我觉得不够醒目所以我在侧栏加入了
觉得可以写一篇文章
正文
0x01左侧边栏
找到usr/themes/handsome/component/aside.php
文件
找到
<?php $mypattern1 = "<li data-original-title=\"{title}\" data-toggle=\"tooltip\"
data-placement=\"top\"><a href=\"{url}\" target=\"_blank\"><span>{name}</span></a></li>";
Handsome_Plugin::output($mypattern1, 0, "ten");?>
</ul>
</li>
<?php endif; ?>
</ul>
</nav>
<!-- nav -->
在下面加入
<div align="center">
<a href="https://travellings.now.sh/" target="blank" title="开往-友链接力"><img src="https://travellings.now.sh/assets/logo.gif" alt="开往-友链接力" width="150"></a>
</div>
0x02右侧边栏
找到usr/themes/handsome/component/sidebar.php
文件
<p style="color:#D3D3D3">此侧修改根据公众号入口修改而来</p>
找到
<?php if ($this->options->adContentSidebar != ""): ?>
<!--广告位置-->
<section id="a_d_sidebar" class="widget widget_categories wrapper-md clear">
<h5 class="widget-title m-t-none text-md"><?php _me("广告") ?></h5>
<?php $this->options->adContentSidebar(); ?>
</section>
上方加入
<section id="a_d_sidebar" class="widget widget_categories wrapper-md clear">
<h5 class="widget-title m-t-none text-md"><?php _me("开往-友链接力") ?></h5>
<a href="https://travellings.now.sh/" target="blank" title="开往-友链接力"><img src="https://travellings.now.sh/assets/logo.gif" alt="开往-友链接力" width="150"></a>
</section>
后记
好啦,在喜欢的位置加入吧