ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
javascript:; {$data.title|_substr=30,'...'} {$data.title_en|_substr=30,'...'} {$data.href} {$data.title|_substr=18} {$data.desc|_substr=30,'...'} {$data.create_time|date='Y-m-d',###} {$info.title} {$info.create_time|date='Y-m-d',###} {$info.content} {:get_em($info['model_id'],'style',$info['style'])} {$category.title} {$category.content} {$category.banner} {$topCategory.title} {$topCategory.content} ## 其他常用 | 方法 | 介绍 | | -- | -- | |{:get_logo()}| 获取网站logo图片 | |{:get_pc_logo()}| 获取网站logo图片 | |{:get_m_logo()}|获取手机端LOGO图片| |{:get_ico()}|favicon.ico图标 代码| |{:get_erweima()}|获得在线客服二维码| |{:get_img()}|获取配置图片| |get_table($tablename,$listRows=8)|| |html2text($content = '',$sublength=0,$dot='...')|| |{:get_home_url}|获取首页的url地址.是为兼容欢迎页面,后台需要配置 IS_WELCOME| <include file="Public/nexter"/> <include file="Public/pager"/> <eq name="key%4" value="3" >last</eq> ## hook {:hook('pageHeader')} {:hook('pageFooter', 'widget')} ##banner ~~~ <cms:banner result="data" where=" type = 0"> {$data.url} {$data.url|default='javascript:;'} {$data.img} {$data.title} </cms:banner> ~~~ #自定义标签 ~~~ 'TAGLIB_BUILD_IN' => 'Cx,Common\Tag\Xiaobing', // 加载自定义标签 ~~~ ###技术支持 ~~~ <xiaobing color="#fff" /> ~~~ ###CuPlayer调用代码 ~~~ <?php $CuPlayerFile = get_file_path($info['wenjian']); ?> <cuplayer cuplayerfile="/zhenyi.mp4" cuplayerimage="/zhenyi.jpg" cuplayerwidth="640" cuplayerheight="360" cuplayerautoplay="no"> </cuplayer> ~~~ ###webuploader 前台上传控件 ~~~ <webuploader name="huxingtu"></webuploader> ~~~ ###百度地图 ~~~ <baidumap id="baidumap" lng="104.06175" lat="30.593813" title="成都龙兵科技" content="地址:成都市府城大道西段399号 (天府新谷2号楼五楼移动互联网创业苗圃)" width="100%" height="300px" /> ~~~ ###下载文件 获得下载文件地址{:get_file_url($info['file_id'])} U('File/download_by_file_id?id=' . $fileid); 获取下载文件名称{:get_file_name($info['file_id'])} 获取下载文件格式{:get_file_ext($info['file_id'])}