EMLOG利用表格实现个性化的文章版权信息
随着国家对于版权保护方面的工作不断深入,人们对于版权保护的意识已越来越强,而站长们也在版权保护的道路上不断学习,现在就来为大家分享一个EMLOG用表格实现个性化的文章版权信息的方法。
一、操作步骤
1、打开模板文件echo_log.php,将下面的代码粘贴到合适的位置
<table width="770px" cellspacing="0" cellpadding="0" table-layout: fixed border-style:dashed; border-width:1px; border-color:#EEEEEE;> <tr> <th width="75" align="left" bgcolor="#F9F9F9" scope="row">本文标签:</th> <td width="420" align="left" bgcolor="#F9F9F9" white-space: nowrap; overflow: hidden; text-overflow: ellipsis;><?php blog_tag($logid);?></td> <td width="105" rowspan="4" align="center" background="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=<?php echo URL::log($logid);?>">"></td> </tr> <tr> <th width="75" align="left" bgcolor="#F9F9F9" scope="row">本文标题:</th> <td width="420" align="left" bgcolor="#F9F9F9" white-space: nowrap; overflow: hidden; text-overflow: ellipsis;><a href="<?php echo $logurl;?>"><?php echo $log_title; ?></a></td> </tr> <tr> <th width="75" align="left" bgcolor="#F9F9F9" scope="row">本文地址:</th> <td width="420" align="left" bgcolor="#F9F9F9" white-space: nowrap; overflow: hidden; text-overflow: ellipsis;><a href="<?php echo $logurl;?>"><?php echo $logurl;?></a>(扫二维码进入博客触屏版哦)</td> </tr> <tr> <th colspan="2" align="left" bgcolor="#F9F9F9" scope="row" white-space: nowrap; overflow: hidden; text-overflow: ellipsis;>除非注明,文章均为 《<a style="color:red;"<?php blog_author($author); ?>》>></a><a href="<?php echo BLOG_URL;?>">原创</a> ,欢迎转载!转载请注明本文地址,谢谢!</th> </tr> </table>
2、打开网站随意文章页,点击查看效果
二、原理解析
通过表格的形式编写一个简单的版权信息,其中包含文章链接、文章名称、文章标签、版权声明和版权二维码等诸多功能
三、注意事项
1、本教程中版权二维码可以根据需求更换AP,更多免费二维码的API请点击这里