Pārlūkot izejas kodu

when bulkIncluding pictures, create CEimages wraped together in a gallery

master
Dom SP pirms 3 gadiem
vecāks
revīzija
6ddb575412
1 mainītis faili ar 19 papildinājumiem un 4 dzēšanām
  1. +19
    -4
      app/modules/filesinfolders.php

+ 19
- 4
app/modules/filesinfolders.php Parādīt failu

@@ -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']

Notiek ielāde…
Atcelt
Saglabāt