瀏覽代碼

small changes from october

tags/v1.1
父節點
當前提交
604046e0b9
共有 2 個文件被更改,包括 17 次插入6 次删除
  1. +7
    -4
      app/modules/filesinfolders.php
  2. +10
    -2
      main.cfg

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

@@ -70,6 +70,7 @@ class FilesInFolders {
$ls = scandir($this->folder);
foreach ($ls as $k=>$f) {
if (!strncmp($f,'.',1)) continue; // ignore hidden files
$ex=explode(".", $f);
$ext=strtolower(end($ex));
if (array_key_exists($ex[0],$this->domains)) {
@@ -137,10 +138,12 @@ class FilesInFolders {
$str
);
}
foreach($this->structs[$domain_key]['pic'] as $key=>$file) {
$this->content[$domain][$key] = sprintf(
"<img class=\"direct\" src=\"/$file\" />"
);
if (false) { // TODO: make this configurable in main.cfg
foreach($this->structs[$domain_key]['pic'] as $key=>$file) {
$this->content[$domain][$key] = sprintf(
"<img class=\"direct\" src=\"/$file\" />"
);
}
}
foreach($this->structs[$domain_key]['csv'] as $key=>$file) {
$csv = new \Modules\Ography($file,TRUE);

+ 10
- 2
main.cfg 查看文件

@@ -15,8 +15,16 @@ GET /@level1/@level2/@level3/@level4 = Controller\Page->fourthLevel
content/navi.cfg=false
content/data.cfg=false

[siteColors]
primary=#f0a

[templateVars]
includeBanner=false


[globals]
title=A paid service
title=Title of new Page


;; (multilingual) content configuration
;; ------------------------------------
@@ -33,7 +41,7 @@ content.no=content/NO/

; include a link to the Homepage above the menu
; [dev: translates to menuAddHome in Template (index.php)]
nav.main.config.addHome=true
nav.main.config.addHome=false
nav.footer.config.addHome=false

;; HTML Template related:

Loading…
取消
儲存