diff --git a/include/emailinbox.php b/include/emailinbox.php index f81193f..6554808 100644 --- a/include/emailinbox.php +++ b/include/emailinbox.php @@ -63,6 +63,11 @@ class Emailinbox extends Renderer { protected function generateFolders(): void { $folders = $this->mbox->getMailboxes("*"); - var_dump($folders); + $folderItems = []; + foreach ($folders as $folder) { + $folderItems[] = '
  • ' . $folder['shortpath'] . '
  • '; + } + $this->content['folders'] = implode('
  • ', $folderItems); + // var_dump($folders); } } diff --git a/templates/emailinbox.html b/templates/emailinbox.html index 43bcd19..1ac9329 100644 --- a/templates/emailinbox.html +++ b/templates/emailinbox.html @@ -10,6 +10,8 @@

    Ordner:

    +
      {{folders}} +