EyouCms 是一個自由和開放源碼的內(nèi)容管理系統(tǒng),它是一個可以獨立使用的內(nèi)容發(fā)布系統(tǒng)(CMS)。以模板多、易優(yōu)化、開源而聞名,是國內(nèi)新銳的 PHP 開源網(wǎng)站管理系統(tǒng),也是比較受用戶好評的 PHP 類 CMS 系統(tǒng)。
網(wǎng)站名稱
{eyou:global name='web_name' /}
域名鏈接
{eyou:global name='web_basehost' /}
網(wǎng)站版權(quán)
{eyou:global name='web_copyright' /}
網(wǎng)站備案
{eyou:global name='web_recordnum' /}
友情鏈接
{eyou:flink titlelen='45' type='text'} <a href="{$field.url}" {$field.target}>{$field.title}</a> {/eyou:flink}
搜索框
{eyou:searchform type='default' typeid='' channelid='' } <form method="get" action="{$field.action}"> {$field.hidden} <input type="text" class="text" value="請輸入搜索關(guān)鍵詞!" name="keywords" id="keywords" onFocus="this.value=''" onBlur="if(!value){value=defaultValue}" > <input type="submit" class="submit" value="搜索"> </form> {/eyou:searchform}
搜索結(jié)果
搜索結(jié)果:{$eyou.field.keywords}
熱門搜索
{eyou:hotwords num='6' subday='365' maxlength='20' id='field'} <a href='{$field.url}' target="_blank">{$field.word}</a> {/eyou:hotwords}
指定單頁
{eyou:type typeid='1' addtable='single_content'}{$field.content|html_msubstr=###,0,155} {/eyou:type}
單條文檔圖集
{eyou:arcview aid='106'} {eyou:arcview id='field2'} {eyou:volist name="$field2.image_list" id='field3'} <img src="{$field3.image_url}" alt="{$field3.intro}"> {/eyou:volist} {/eyou:arcview} {/eyou:arcview}
指定單條文檔
{eyou:arcview aid='' addfields='content'}{$field.content}{/eyou:arcview}
文章ID
{$field.aid} {$eyou.field.id}
時間拆分
{$field.add_time|MyDate='d',###}天 {$field.add_time|MyDate='Y-m',###}年-月
留言表單
{eyou:guestbookform type='default'} <form method="POST" action="{$field.action}" {$field.formhidden} onsubmit="{$field.submit}" > <input id="attr_1" type="text" value="" name="{$field.attr_1}" placeholder="{$field.itemname_1}"> <input id="attr_2" type="text" value="" name="{$field.attr_2}" placeholder="{$field.itemname_2}"> <textarea id="attr_3" cols="40" rows="3" name="{$field.attr_3}" placeholder="{$field.itemname_3}"> </textarea> <input type="submit" value="提交"> {$field.hidden} </form> {/eyou:guestbookform}
自增循環(huán)+1
{eyou:list pagesize ='10' } {$i}-{$key} {/eyou:list}
面包屑
{eyou:position/}
指定單條欄目名稱和連接
{eyou:type typeid='115'} <a href="{$field.typeurl}">{$field.typename}</a> {/eyou:type}
搜索獲取欄目模型ID
{$field.channeltype}
tag統(tǒng)計標(biāo)簽
{eyou:tag getall='1'} <a href='{$field.link}'>{$field.tag}({$field.total})</a> {/eyou:tag}