随笔分类 -  finecms

摘要:1、image($thumb):返回完整的图片地址 2、thumb($thumb,宽,高):如果存在缩略图,优先调用缩略图 3、strcut($string, 长度, 截取后替代字符):字符截取 4、clearhtml($text):清除HTML格式 5、catpos(栏目ID, 间隔符):栏目面包 阅读全文
posted @ 2018-12-30 12:13 hm21 阅读(305) 评论(0) 推荐(0)
摘要:<script type="application/javascript"> $(function(){ var MobileUA = (function() { var ua = navigator.userAgent.toLowerCase(); var mua = { IOS: /ipod|i 阅读全文
posted @ 2018-12-30 12:12 hm21 阅读(246) 评论(0) 推荐(0)
摘要:使用finecms 的过程中,如果一个分类有多个分类,那么如何在用户点击大栏目时,自动导航到他的第一个子栏目中呢,在官方提供的demo中没有找到答案就自己写一下吧 在controllers/contentController.php中找到listaction()这个函数进行如下改造,找了子分类,并使 阅读全文
posted @ 2018-12-30 12:12 hm21 阅读(226) 评论(0) 推荐(0)
摘要:finecms ngix 伪静态设置 location / { if (!-e $request_filename) { rewrite ^/index.php(.*)$ /index.php?s=$1 last; rewrite ^(.*)$ /index.php?s=$1 last; break 阅读全文
posted @ 2018-12-30 12:11 hm21 阅读(364) 评论(0) 推荐(0)
摘要:首页获取单网页内容 {$cats[栏目id][content]} {strcut($cats[ID]['content'],字数,'...')}{strcut(,350)} //htmlspecialchars_decode:把一些预定义的 HTML 实体转换为字符 strip_tags:去除htm 阅读全文
posted @ 2018-12-30 12:09 hm21 阅读(305) 评论(0) 推荐(0)
摘要:格式: {list 参数1=值1 参数2=值2 ... 参数N=值N} ... 循环体 ... {/list} 注意:参数和值不能出现引号 一、参数介绍1、action模式选择参数,支持"推荐位(position)"、"搜索关键字(keywords)"、"相关文章(relation)"、"自定义字段 阅读全文
posted @ 2018-12-30 12:08 hm21 阅读(908) 评论(0) 推荐(0)
摘要:全局基础标签 网站标题:{$meta_title} 网站关键字:{$meta_keywords} 网站描述:{$meta_description} 网站seo标题:{$SITE_TITLE} 统计代码(后台网站设置添加):{$SITE_JS} ICP号(后台网站设置添加):{$SITE_ICP} 网 阅读全文
posted @ 2018-12-30 12:07 hm21 阅读(1780) 评论(0) 推荐(0)