瀏覽代碼

when bulkIncluding pictures, create CEimages wraped together in a gallery

master
Dom SP 3 年之前
父節點
當前提交
6ddb575412
共有 1 個檔案被更改,包括 19 行新增4 行删除
  1. +19
    -4
      app/modules/filesinfolders.php

+ 19
- 4
app/modules/filesinfolders.php 查看文件

@@ -162,12 +162,27 @@ class FilesInFolders {
? $this->config['bulkIncludePic']
: $f3->get('bulkIncludePic') ? : FALSE
;
if ($bulkIncludePic) {
if ($bulkIncludePic) {
foreach($this->structs[$domain_key]['pic'] as $key=>$file) {
$this->content[$domain][$key."10image"] = sprintf(
"<img class=\"bulkImportedImage $bulkIncludePic\" src=\"/$file\" />"
);
$image_include_version = 2;
switch ($image_include_version) {
case 1:
$this->content[$domain][$key."10image"] = sprintf(
"<img class=\"bulkImportedImage $bulkIncludePic\" src=\"/$file\" />"
);
break;
case 2:
$module = new CEimage(['image',$file,'','gallery']);
$this->content[$domain][$key."10image"] = $module->index();
unset($module);
break;
case 3:
//$this->content[$domain][] = "asdasd";
break;
}
}
}
$bulkIncludeAudio = array_key_exists('bulkIncludeAudio',$this->config)
? $this->config['bulkIncludeAudio']

Loading…
取消
儲存