Browse Source

when bulkIncluding pictures, create CEimages wraped together in a gallery

master
Dom SP 3 years ago
parent
commit
6ddb575412
1 changed files with 19 additions and 4 deletions
  1. +19
    -4
      app/modules/filesinfolders.php

+ 19
- 4
app/modules/filesinfolders.php View File

? $this->config['bulkIncludePic'] ? $this->config['bulkIncludePic']
: $f3->get('bulkIncludePic') ? : FALSE : $f3->get('bulkIncludePic') ? : FALSE
; ;
if ($bulkIncludePic) {
if ($bulkIncludePic) {
foreach($this->structs[$domain_key]['pic'] as $key=>$file) { 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) $bulkIncludeAudio = array_key_exists('bulkIncludeAudio',$this->config)
? $this->config['bulkIncludeAudio'] ? $this->config['bulkIncludeAudio']

Loading…
Cancel
Save