浏览代码

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 年前
父节点
当前提交
016142d949
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. +11
    -1
      app/modules/filesinfolders.php

+ 11
- 1
app/modules/filesinfolders.php 查看文件

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

正在加载...
取消
保存