Explorar el Código

small changes from october

tags/v1.1
padre
commit
604046e0b9
Se han modificado 2 ficheros con 17 adiciones y 6 borrados
  1. +7
    -4
      app/modules/filesinfolders.php
  2. +10
    -2
      main.cfg

+ 7
- 4
app/modules/filesinfolders.php Ver fichero

@@ -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 Ver fichero

@@ -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:

Cargando…
Cancelar
Guardar