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'])}