Browse Source

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 years ago
parent
commit
016142d949
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      app/modules/filesinfolders.php

+ 11
- 1
app/modules/filesinfolders.php View File

); );
break; break;
case 2: case 2:
$module = new CEimage(['image',$file,'auto','gallery']);
$module = new CEimage(['image',$file,$bulkIncludePic,'gallery']);
$this->content[$domain][$key."10image"] = $module->index(); $this->content[$domain][$key."10image"] = $module->index();
unset($module); unset($module);
break; break;
'type'=>'pic']]] 'type'=>'pic']]]
); );
$fff->prepare_files(); $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(); $fff->fill_content();
//var_dump($fff->config);
$banner = ""; $banner = "";
if ($fff->extras['banner']) { if ($fff->extras['banner']) {
$banner=sprintf("<img class=\"banner\" src=\"%s\" alt=\"section banner\"/>", $banner=sprintf("<img class=\"banner\" src=\"%s\" alt=\"section banner\"/>",

Loading…
Cancel
Save