Browse Source

make template includion optional

master
Dom SP 3 years ago
parent
commit
8df24c298f
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      app/modules/filesinfolders.php
  2. +1
    -0
      main.cfg.sample

+ 4
- 0
app/modules/filesinfolders.php View File

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

+ 1
- 0
main.cfg.sample View File

hideFromSearchEngines=true hideFromSearchEngines=true
bulkIncludePic=false bulkIncludePic=false
bulkIncludeAudio=false bulkIncludeAudio=false
includeTemplates=true


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

Loading…
Cancel
Save