emlog-主题模板添加仿joe留言板

来自于typecho主题joe的留言板样式,joe主题有很多地方可以学习,由于习惯了emlog的主题使用,又不太直接换typecho动手就借鉴到emlog的主题留言板里。

emlog-主题模板添加仿joe留言板插图

实现步骤

以下需要通过修改主题文件来实现,操作前有需要的自行备份,不多介绍别的了,直接goto。

所需要的附件都打包在附件下载了

将以下代码,新建文件,上传到自己的主题文件夹/page里,以下只是给出一个例子,具体还需根据所在主题样式的更改page_guestbook.php

<?php 
/* 
Custom:page_gusetbook
Description:留言板
*/
if(!defined(\'EMLOG_ROOT\')) {exit(\'error!\');} 
?>
<div class=\"container container-page\">
    <?php include View::getView(\'page/page_side\');?>
    <div class=\"content\">
        <header class=\"article-header\">
        <h1 class=\"article-title\"><?php echo $log_title; ?></h1>
        <style>
.guestbook_detail__leaving{padding-top:15px;}.guestbook_detail__leaving-none{padding:15px 0;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:#fff;}.guestbook_detail__leaving-list{position:relative;height:320px}.guestbook_detail__leaving-list .item{display:none;position:absolute;width:200px;overflow:hidden;box-shadow:0 2px 10px 1px rgba(0,0,0,0.2);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0.88;height:210px;}.guestbook_detail__leaving-list .item .user{display:flex;align-items:center;padding:0 10px;color:#fff;border-bottom:1px dashed rgba(255,255,255,0.85);height:40px;cursor:move}.guestbook_detail__leaving-list .item .user .avatar{width:20px;height:20px;border-radius:50%}.guestbook_detail__leaving-list .item .user .nickname{min-width:0;flex:1;margin:0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.guestbook_detail__leaving-list .item .user .nickname a{color:#fff}.guestbook_detail__leaving-list .item .user .date{margin-left:auto}.guestbook_detail__leaving-list .item .wrapper{padding:10px}.guestbook_detail__leaving-list .item .wrapper .content{height:140px;overflow-y:auto;word-break:break-word;line-height:24px;}.guestbook_detail__leaving-list .item .wrapper .guestbook_content .draw_image{max-width:100%}.guestbook_detail__leaving-list .item .wrapper .guestbook-content .owo_image{max-height:24px}
        </style>
        </header>
          <script src=\"域名/book.js\"></script>
<div class=\"guestbook_container\">
            <div class=\"guestbook_main\">
                <div class=\"guestbook_detail\">

                </div>
            </div>
            <?php guestbook($comments); ?>

      <!-- 评论开始 -->
        <?php if($allow_remark == \'y\'): ?>
            <?php blog_comments_post($logid,$ckname,$ckmail,$ckurl,$verifyCode,$allow_remark); ?>
            <div id=\"postcomments\" class=\" <?php echo $Tconfig[\"wow\"];?>\">
                <ol class=\"commentlist\">
                <?php blog_comments($comments); ?>  
                </ol>
            </div>  
        <?php endif;?>
        <!-- 评论结束 -->
    </div>

</div>
<?php include View::getView(\'footer\');?>

guestbook.js,上传到主题所引用的js文件夹里,也可以用上述代码自带的外部js,需要给所在主题的添加代码module.php。

进入emlog后台,来到页面,链接别名:页面模板:按照下图来设置,并且需要开启允许评论guestbookpage/page_guestbook最后可以进入页面看看效果了。

emlog-主题模板添加仿joe留言板插图1

下载地址:

https://xiaogao.lanzoum.com/iCNun08rpywh
https://pan.baidu.com/s/1hgc3iM69vfw_EJ0tmZc4Zw?pwd=9gkq
https://cloud.189.cn/t/7bmAvmzYbUF3
https://pan.quark.cn/s/075f78ee0a05

上一篇 emlog模板:eMedia媒体范儿[小梦尊享版] v2.7
下一篇 emlog Pro动态百分比顶部滚动条插件

探索站点内容

搜索文章、标签、分类

MediaClaw 社媒虾
MediaClaw 社媒虾
关注公众号
领美团外卖神券
领美团外卖神券
最新评论
15579854855
15579854855
9月15日
安装流程都没有,下载也用不了,浪费时间
小高网
小高网
9月15日
这个还是少用好
06285142
06285142
9月14日
怎么现在都没出绿色版的绿泡泡了。等了一年了呢
小高网
小高网
9月9日
那就找个完整版的安装覆盖上去吧
白添霸霸
白添霸霸
9月9日
精简版安装后在控制面板不显示
小高网
小高网
9月8日
控制面板卸载不了吗
白添霸霸
白添霸霸
9月8日
大佬,安装以后有些软件打不开了,例如CCleaner 7,提示WebView2 Runtime 初始化失败(错误:0x80070002),重装完整版提示安装时出
1
1
8月31日
就是不能处理已安装软件
小高网

小高网管理员

小高网www.xx8g.com

本月创作热力图