{php} $groupList = [ 'config'=>'system_user_id,sitename,sitelogo,title,keywords,description,theme,qrcode,wxapp,donateimage,userpage,contactqq,searchtype,autopinyin,baidupush,usersidenav,loadmode,pagemode,cachelifetime,urlsuffix', 'thumb'=>'default_archives_img,default_channel_img,default_block_img,default_page_img,default_special_img', 'wxapp'=>'wxappid,wxappsecret', 'rewrite'=>'domain,rewrite,urlsuffix,moduleurlsuffix', 'audit'=>'isarchivesaudit,iscommentaudit,audittype,nlptype,aip_appid,aip_apikey,aip_secretkey', 'dict'=>'downloadtype,flagtype,autolinks', 'other'=>'archivesratio,score,limitscore,ispaylogin,paytypelist,apikey,archiveseditmode,auditnotice,noticetemplateid,channelallocate,archivesdatalimit,specialdatalimit,pagedatalimit,diyformdatalimit', ]; $group = []; foreach($groupList as $k=>$v){ $item = explode(',', $v); $item = array_flip($item); $group = array_merge($group, array_map(function($value) use($k){return $k;}, $item)); } {/php}
温馨提示
1.如果需要将CMS绑定到首页,请移除伪静态中的cms/
2.默认CMS不包含富文本编辑器插件,请在插件市场按需要安装
3.如果需要启用付费阅读或付费下载,请务必安装微信支付宝整合插件
4.如需启用审核通知,请在插件市场安装钉钉微信通知插件
CMS首页 会员中心
{foreach $addon.config as $item} {/foreach}
{$item.title}
{switch $item.type} {case string} {/case} {case text} {/case} {case array}
{:__('Array key')} {:__('Array value')}
{:__('Append')}
{/case} {case date} {/case} {case time} {/case} {case datetime} {/case} {case number} {/case} {case checkbox} {foreach name="item.content" item="vo"} {/foreach} {/case} {case radio} {foreach name="item.content" item="vo"} {/foreach} {/case} {case value="select" break="0"}{/case} {case value="selects"} {/case} {case value="image" break="0"}{/case} {case value="images"}
    {/case} {case value="file" break="0"}{/case} {case value="files"}
    {/case} {case bool} {/case} {default /}{$item.value} {/switch}