diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 2a0544b..11044fb 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -44,7 +44,7 @@ final class BackendController extends Controller public function viewMessageInbox(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface { $view = new View($this->app->l11nManager, $request, $response); - $view->setTemplate('/Modules/Messages/Theme/Backend/dashboard'); + $view->setTemplate('/Modules/Messages/Theme/Backend/mail-dashboard'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1001201001, $request, $response)); return $view; diff --git a/Theme/Backend/dashboard.tpl.php b/Theme/Backend/mail-dashboard.tpl.php similarity index 62% rename from Theme/Backend/dashboard.tpl.php rename to Theme/Backend/mail-dashboard.tpl.php index 37766f1..c7fe501 100755 --- a/Theme/Backend/dashboard.tpl.php +++ b/Theme/Backend/mail-dashboard.tpl.php @@ -21,6 +21,7 @@ $unseen = $mail->getInboxUnseen(); $seen = $mail->getInboxSeen(); $quota = $mail->getQuota(); */ + $messages = $this->getData('messages') ?? []; $previous = empty($messages) ? '{/prefix}messages/dashboard' : '{/prefix}messages/dashboard?{?}&id=' . \reset($messages)->getId() . '&ptype=p'; @@ -29,14 +30,7 @@ $next = empty($messages) ? '{/prefix}messages/dashboard' : '{/prefix}message echo $this->getData('nav')->render(); ?>
-
- getHtml('Create', '0', '0'); ?> - getHtml('Delete'); ?> -
-
- -
-
+
getHtml('Messages'); ?>
@@ -48,26 +42,17 @@ echo $this->getData('nav')->render(); ?> - $value) : ++$count; - $url = UriFactory::build('{/prefix}messages/mail/single?{?}&id=' . $value->uid); ?> + $value) : ++$count; + $url = UriFactory::build('{/prefix}messages/mail/single?{?}&id=' . $value->uid); ?> -
getHtml('From'); ?> getHtml('Date'); ?>
printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>> printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>>printHtml(\str_replace('_',' ', \mb_decode_mimeheader($value->subject))); ?> printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>>printHtml($value->from); ?> printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>>printHtml((new \DateTime($value->date))->format('Y-m-d H:i:s')); ?> - - - $value) : ++$count; - $url = UriFactory::build('{/prefix}messages/mail/single?{?}&id=' . $value->uid); ?> -
- printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>> - printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>>printHtml(\str_replace('_',' ', \mb_decode_mimeheader($value->subject))); ?> - printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>>printHtml($value->from); ?> - printHtml($value->seen == 0 ? ' class="unseen"' : ''); ?>>printHtml((new \DateTime($value->date))->format('Y-m-d H:i:s')); ?> - - + +
getHtml('Empty', '0', '0'); ?> @@ -78,4 +63,31 @@ echo $this->getData('nav')->render(); ?> + +
+ + +
+
getHtml('Channels'); ?>
+
+ asdf +
+
+ +
+
getHtml('Email'); ?>
+
+ asdf +
+
+ +
+
getHtml('Chat'); ?>
+
+ asdf +
+
+