Mailbox update
This commit is contained in:
@@ -72,7 +72,8 @@ class Emailinbox extends Renderer {
|
|||||||
$folders = $this->mbox->getMailboxes("*");
|
$folders = $this->mbox->getMailboxes("*");
|
||||||
$folderItems = [];
|
$folderItems = [];
|
||||||
foreach ($folders as $folder) {
|
foreach ($folders as $folder) {
|
||||||
$folderItems[] = '<li><a href="/emailinbox?folder=' . urlencode($folder['shortpath']) . '">' . utf8_encode($folder['shortpath']) . '</a></li>';
|
$item = '<li><a href="/emailinbox?folder=' . urlencode($folder['shortpath']) . '"' . ($folder === $this->folder ? ' style="active-folder"' : '') . '>' . utf8_encode($folder['shortpath']) . '</a></li>';
|
||||||
|
$folderItems[] = $item;
|
||||||
}
|
}
|
||||||
$this->content['folders'] = implode('', $folderItems);
|
$this->content['folders'] = implode('', $folderItems);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -213,3 +213,6 @@ footer > a{
|
|||||||
.emailfolders li {
|
.emailfolders li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
.active-folder {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user