Преглед изворни кода

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…
Откажи
Сачувај