多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 获取语言列表标签 用于获取前台支持的多语言列表 ## 格式 ~~~ {hkcms:language currentstyle="active"} <a href="{$item.url}" class="{$currentstyle}">{$item.value},语言标识:{$key}新版可以使用:{$item.key}</a> {/hkcms:language} ~~~ ## 参数 | 参数名称 | 可选值 | 默认值 | 是否必填 | 说明 | | --- | --- | --- | --- | --- | | id | - | $item | - | 指定循环里的变量名,例如id='obj',模板调用如:{$item.title} 变成 {$obj.title} | | currentstyle | - | active | - | 指定选中的class样式 | <blockquote class="danger"><p>v2.3.0.230709 版本字段说明</p></blockquote> ~~~ {hkcms:language currentstyle="active"} {// target_html表示是否新窗口打开} <li class="{$currentstyle}"><a href="{$item.url}" {$item.target_html} title="{$item.key}">{$item.value}</a></li> {/hkcms:language} ~~~ | 字段名 | 说明 | 调用方式 | | --- | --- | --- | |mark | 标志 | {$item.key} 或者 {$item.mark} | |title | 标题 | {$item.value} 或者 {$item.title} | |subtitle | 别名 | {$item.subtitle} | |image | 图片 | {$item.image} | |icon | 图标 | {$item.icon} |