浏览代码

make template includion optional

master
Dom SP 3 年前
父节点
当前提交
8df24c298f
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. +4
    -0
      app/modules/filesinfolders.php
  2. +1
    -0
      main.cfg.sample

+ 4
- 0
app/modules/filesinfolders.php 查看文件

@@ -141,6 +141,10 @@ class FilesInFolders {
$str
);
}
$includeTemplates = array_key_exists('includeTemplates', $this->config)
? $this->config['includeTemplates']
: $f3->get('includeTemplates') ? : FALSE
;
foreach($this->structs[$domain_key]['tpl'] as $key=>$file) {
$str = \Template::instance()->render(substr($file,7));
$str = self::linkify($str);

+ 1
- 0
main.cfg.sample 查看文件

@@ -24,6 +24,7 @@ title=Title of new Page
hideFromSearchEngines=true
bulkIncludePic=false
bulkIncludeAudio=false
includeTemplates=true

;; (multilingual) content configuration
;; ------------------------------------

正在加载...
取消
保存