Quellcode durchsuchen

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

master
Dom SP vor 3 Jahren
Ursprung
Commit
016142d949
1 geänderte Dateien mit 11 neuen und 1 gelöschten Zeilen
  1. +11
    -1
      app/modules/filesinfolders.php

+ 11
- 1
app/modules/filesinfolders.php Datei anzeigen

@@ -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\"/>",

Laden…
Abbrechen
Speichern