(一)海洋cms的模板内的if判断兼容一些PHP函数,假如你熟悉一些php编程技术,可以实现一些更为强大和灵活的功能。比如:
比如判断当天是星期几:{if:date('N'】==2}周二{else}不是周二{end if}
此处就是使用了php时间函数 date('xxxxxx'】的功能,其它选项请查阅php有关函数;
(二)评分 评论 顶踩 留言 幻灯片 ,定时任务等功能依赖系统js文件,模板务必引入下述js文件:
<script>var sitePath= '{seacms:sitepath}';</script>
<script src= "/{seacms:sitepath}js/common.js"></script>
<script src= "/{seacms:sitepath}js/function.js"></script>prepreprepreprepreprepreprepreprepreprepre(三)播放器调取务必引入play.js,播放页模板play.html的上面加入:
<script src="/{seacms:sitepath}js/play.js"></script>prepreprepreprepreprepreprepreprepreprepre(四)关于点击数,信息页和播放页假如没有{playpage:hit} 点击数标签,则点击数不能增加
(五)收藏影片标签代码;当开启会员中心并已加载系统js的情形下,收藏代码见下:
<a href="javascript:AddFav('影片id','')">收藏</a> (影片id请对应各个页面的id标签)prepreprepreprepreprepreprepreprepreprepre(六)关于搜索的重点:
视频搜索对应文件:根文件夹/search.phpinput的name值:searchword。action=search.php
文章搜索对应文件:根文件夹/so.phpinput的name值:searchword。action=so.php
(七)关于自定义页面:自定义页面要在后台生成才可以浏览,用self_开头,用#表示存放的文件夹,预设根文件夹。
比如:self_new.html表示根文件夹下,self_top#new.html表示top文件夹下。
(八)高亮当前播放集数的实现方法:
在css文件里加入 .playon{} 就能。
(九)高亮VIP集数的实现方法:
在css文件里加入 .playvip{} 就能。
(十)对应的预设模板文件名字:
主页index.html
频道栏目页channel.html
搜索栏目页search.html
筛选页cascade.html
自定义页self_xxxx.html
文章主页newsindex.html
文章栏目页newspage.html
文章搜索页newssearch.html
专题列表topicindex.html
专题页topic.html
信息页content.html
播放页play.html
弹出播放页openplay.html
文章信息页news.html
留言板gbook.html
tags页tag.html
视频地图页map.html
文章地图页newsmap.html
视频js调取js.html
文章js调取newsjs.html
头部页面head.html
底部页面foot.html
用户申请reg.html
用户登录login.html