Browse Source

small changes from october

tags/v1.1
parent
commit
604046e0b9
2 changed files with 17 additions and 6 deletions
  1. +7
    -4
      app/modules/filesinfolders.php
  2. +10
    -2
      main.cfg

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

$ls = scandir($this->folder); $ls = scandir($this->folder);
foreach ($ls as $k=>$f) { foreach ($ls as $k=>$f) {
if (!strncmp($f,'.',1)) continue; // ignore hidden files if (!strncmp($f,'.',1)) continue; // ignore hidden files
$ex=explode(".", $f); $ex=explode(".", $f);
$ext=strtolower(end($ex)); $ext=strtolower(end($ex));
if (array_key_exists($ex[0],$this->domains)) { if (array_key_exists($ex[0],$this->domains)) {
$str $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) { foreach($this->structs[$domain_key]['csv'] as $key=>$file) {
$csv = new \Modules\Ography($file,TRUE); $csv = new \Modules\Ography($file,TRUE);

+ 10
- 2
main.cfg View File

content/navi.cfg=false content/navi.cfg=false
content/data.cfg=false content/data.cfg=false


[siteColors]
primary=#f0a

[templateVars]
includeBanner=false


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



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


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


;; HTML Template related: ;; HTML Template related:

Loading…
Cancel
Save