Move templates into sub-dir "notifications"

This commit is contained in:
nupplaPhil 2020-01-23 00:16:34 +01:00
parent 512b00550e
commit 5c4eb2b2c9
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
34 changed files with 31 additions and 31 deletions

View file

@ -80,15 +80,15 @@ class Notifications extends BaseNotifications
// notification and apply the correct template according to the notificationtype (label).
foreach ($notifs['notifications'] as $notif) {
$notification_templates = [
'like' => 'notifications_likes_item.tpl',
'dislike' => 'notifications_dislikes_item.tpl',
'attend' => 'notifications_attend_item.tpl',
'attendno' => 'notifications_attend_item.tpl',
'attendmaybe' => 'notifications_attend_item.tpl',
'friend' => 'notifications_friends_item.tpl',
'comment' => 'notifications_comments_item.tpl',
'post' => 'notifications_posts_item.tpl',
'notify' => 'notify.tpl',
'like' => 'notifications/likes_item.tpl',
'dislike' => 'notifications/dislikes_item.tpl',
'attend' => 'notifications/attend_item.tpl',
'attendno' => 'notifications/attend_item.tpl',
'attendmaybe' => 'notifications/attend_item.tpl',
'friend' => 'notifications/friends_item.tpl',
'comment' => 'notifications/comments_item.tpl',
'post' => 'notifications/posts_item.tpl',
'notify' => 'notifications/notify.tpl',
];
$tpl_notif = Renderer::getMarkupTemplate($notification_templates[$notif['label']]);