ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
### 模板变量说 #### 静态变量 ```html __LYUI__: LYUI前端框架目录 __PUBLIC__:公共插件资源目录 未启用主题: __HOME_CSS__: /Application/Home/View/Public/css __HOME_JS__: /Application/Home/View/Public/js __HOME_IMG__: /Application/Home/View/Public/img __HOME_LIBS__: /Application/Home/View/Public/libs 未启用主题(WAP手机访问时): __HOME_CSS__: /Application/Home/View/Wap/Public/css __HOME_JS__: /Application/Home/View/Wap/Public/js __HOME_IMG__: /Application/Home/View/Wap/Public/img __HOME_LIBS__: /Application/Home/View/Wap/Public/libs 启用多主题: __HOME_CSS__: /Theme/主题/Home/Public/css __HOME_JS__: /Theme/主题/Home/Public/js __HOME_IMG__: /Theme/主题/Home/Public/img __HOME_LIBS__: /Theme/主题/Home/Public/libs 启用多主题(WAP手机访问时): __HOME_CSS__: /Theme/主题/Home/Wap/Public/css __HOME_JS__: /Theme/主题/Home/Wap/Public/js __HOME_IMG__: /Theme/主题/Home/Wap/Public/img __HOME_LIBS__: /Theme/主题/Home/Wap/Public/libs ``` #### $_home_public_layout 1. 未启用主题:$_home_public_layout = ./Application/Home/View/Public/layout.html 2. 启用多主题:如果./Theme/主题名/Home/Public文件夹存在,那么$_home_public_layout = ./Theme/主题名/Home/Public/layout.html 3. 启用多主题Wap主题:如果./Theme/主题名/Home/Wap/Public文件夹存在,那么$_home_public_layout = ./Theme/主题名/Home/Wap/Public/layout.html > 这个layout是网站前台最基本的结构页面,里面包含了head等基本标签,其他页面如无特殊全部继承此基本模板,并且采用TP的模板替换机制(Block替换)。