';
}
}
?>
addTile(new \OC\Pictures\TileStack($second_level_images, $prev_dir_arr[0]));
$second_level_images = array();
}
if (count($dir_arr) == 2) { // These are the pics in that subdir
$second_level_images[] = $root.$images[$i];
}
// have us a little something to compare against
$previous_element = $images[$i];
}
}
// if last element in the directory was a directory we don't want to miss it :)
if(count($second_level_images)>0) {
$tl->addTile(new \OC\Pictures\TileStack($second_level_images, $prev_dir_arr[0]));
}
// and finally our images actually stored in the root folder
for($i = 0; $iaddTile(new \OC\Pictures\TileSingle($root_images[$i]));
}
echo $tl->get();
?>