{php} $groupList = [ 'config'=>'system_user_id,sitename,sitelogo,title,keywords,description,indexpagesize,theme,qrcode,wxapp,donateimage,userpage,openedsite,searchtype,autopinyin,baidupush,usersidenav,loadmode,pagemode,indexloadmode,indexpagemode,cachelifetime,urlsuffix', 'thumb'=>'default_archives_img,default_channel_img,default_block_img,default_page_img,default_special_img', 'rewrite'=>'domain,rewrite,urlsuffix,moduleurlsuffix', 'audit'=>'isarchivesaudit,iscommentaudit,audittype,nlptype,aip_appid,aip_apikey,aip_secretkey', 'dict'=>'downloadtype,spiders,flagtype,autolinks', 'uniapp'=>'autoredirectmobile,mobileurl,wxapp,wxappid,wxappsecret,official_appid,official_app_secret,app_id,app_secret,porfilePrompt,logintypelist,wechatautocreate', '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)); } function getArrayTitle($name){ $titleArr = [ 'rewrite'=>['控制器/方法', 'URL'], 'moduleurlsuffix'=>['模块', '后缀'], 'downloadtype'=>['标识', '名称'], 'spiders'=>['标识', '名称'], 'autolinks'=>['关键字', 'URL'], 'flagtype'=>['标识', '名称'], 'score'=>['模块', '积分'], 'limitscore'=>['模块', '积分'], ]; return $titleArr[$name]??['键名', '键值']; } {/php}
CMS首页 会员中心
Sitemap
清除CMS缓存

{foreach $addon.config as $item}

{$item.title} {if $item.type=='array' && $item.tip} {/if}

{switch $item.type} {case string} {/case} {case password} {/case} {case text} {$item.value|htmlentities} {/case} {case array}

  {php}list($arrayKeyTitle, $arrayValueTitle) = getArrayTitle($item['name']);{/php} {$arrayKeyTitle} {$arrayValueTitle}
  {:__('Append')} {if $item.name=='moduleurlsuffix'} 一键移除后缀中的html {/if} {if $item.name=='rewrite'} 一键移除URL中的/cms {/if}
{$item.value|json_encode|htmlentities}

{/case} {case date} {/case} {case time} {/case} {case datetime} {/case} {case number} {/case} {case checkbox} {foreach name="item.content" item="vo"} {$vo} {/foreach} {/case} {case radio} {foreach name="item.content" item="vo"} {$vo} {/foreach} {/case} {case value="select" break="0"}{/case} {case value="selects"} {if $item.name==='spiderfollow'} {php}$item['content'] = get_addon_config('cms')['spiders']??[];{/php} {/if}
{/case} {case value="image" break="0"}{/case} {case value="images"}

{/case} {case value="file" break="0"}{/case} {case value="files"}
{/case} {case bool} {:__('Yes')} {:__('No')} {/case} {default /}{$item.value} {/switch}

{/foreach}