Selaa lähdekoodia

improve: CEpage: treat lines in bopdy that have one colon inside as key value pairs to define contentkeys for included page

master
Dom SP 3 vuotta sitten
vanhempi
commit
016142d949
1 muutettua tiedostoa jossa 11 lisäystä ja 1 poistoa
  1. +11
    -1
      app/modules/filesinfolders.php

+ 11
- 1
app/modules/filesinfolders.php Näytä tiedosto

@@ -173,7 +173,7 @@ class FilesInFolders {
);
break;
case 2:
$module = new CEimage(['image',$file,'auto','gallery']);
$module = new CEimage(['image',$file,$bulkIncludePic,'gallery']);
$this->content[$domain][$key."10image"] = $module->index();
unset($module);
break;
@@ -772,7 +772,17 @@ class FilesInFolders {
'type'=>'pic']]]
);
$fff->prepare_files();
foreach ($body as $line) {
$ccc = explode(":",$line);
if (count($ccc) == 2) {
if ($ccc[1] == 'false') {
$ccc[1] = false;
}
$fff->config[$ccc[0]] = $ccc[1];
}
}
$fff->fill_content();
//var_dump($fff->config);
$banner = "";
if ($fff->extras['banner']) {
$banner=sprintf("<img class=\"banner\" src=\"%s\" alt=\"section banner\"/>",

Loading…
Peruuta
Tallenna