bludit/bl-kernel/admin/views/dashboard.php

80 lines
2.6 KiB
PHP
Raw Normal View History

<div id="dashboard" class="container">
2018-05-20 21:48:43 +02:00
<div class="row">
<div class="col-md-7 d-none d-sm-block">
2018-06-03 21:51:47 +02:00
<!-- Quick Links -->
<div class="container border-bottom pb-4">
2018-08-08 00:16:35 +02:00
<h4 class="pb-3"><?php $L->p('Quick links') ?></h4>
2018-06-03 21:51:47 +02:00
<div class="row">
<div class="col">
<a class="quick-links text-center" style="color: #4586d4" href="<?php echo HTML_PATH_ADMIN_ROOT.'new-content' ?>">
<div class="oi oi-justify-left quick-links-icons"></div>
2018-08-08 00:16:35 +02:00
<div><?php $L->p('New content') ?></div>
2018-06-03 21:51:47 +02:00
</a>
</div>
<div class="col border-left border-right">
<a class="quick-links text-center" href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>">
<div class="oi oi-tags quick-links-icons"></div>
2018-08-08 00:16:35 +02:00
<div><?php $L->p('Categories') ?></div>
2018-06-03 21:51:47 +02:00
</a>
</div>
<div class="col">
<a class="quick-links text-center" href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>">
<div class="oi oi-people quick-links-icons"></div>
2018-08-08 00:16:35 +02:00
<div><?php $L->p('Users') ?></div>
2018-06-03 21:51:47 +02:00
</a>
</div>
</div>
</div>
<div class="container mt-4">
<div class="row">
<div class="col">
<a class="quick-links text-center" target="_blank" href="https://docs.bludit.com">
<div class="oi oi-compass quick-links-icons"></div>
2018-08-08 00:16:35 +02:00
<div><?php $L->p('Documentation') ?></div>
2018-06-03 21:51:47 +02:00
</a>
</div>
<div class="col border-left border-right">
<a class="quick-links text-center" target="_blank" href="https://forum.bludit.org">
<div class="oi oi-loop-square quick-links-icons"></div>
2018-08-08 00:16:35 +02:00
<div><?php $L->p('Forum support') ?></div>
2018-06-03 21:51:47 +02:00
</a>
</div>
<div class="col">
<a class="quick-links text-center" target="_blank" href="https://gitter.im/bludit/support">
<div class="oi oi-chat quick-links-icons"></div>
2018-08-08 00:16:35 +02:00
<div><?php $L->p('Chat support') ?></div>
2018-06-03 21:51:47 +02:00
</a>
</div>
</div>
</div>
<?php Theme::plugins('dashboard') ?>
2015-06-26 06:31:53 +02:00
</div>
2018-08-01 15:07:37 +02:00
<div class="col-md-5">
2015-06-26 06:31:53 +02:00
2018-05-20 21:48:43 +02:00
<!-- Notifications -->
2018-06-03 21:51:47 +02:00
<ul class="list-group list-group-striped b-0">
2018-08-08 00:16:35 +02:00
<li class="list-group-item pt-0"><h4><?php $L->p('Notifications') ?></h4></li>
2018-05-20 21:48:43 +02:00
<?php
$logs = array_slice($syslog->db, 0, NOTIFICATIONS_AMOUNT);
2018-05-20 21:48:43 +02:00
foreach ($logs as $log) {
$phrase = $L->g($log['dictionaryKey']);
echo '<li class="list-group-item">';
echo $phrase;
if (!empty($log['notes'])) {
echo ' « <b>'.$log['notes'].'</b> »';
}
2018-06-03 21:51:47 +02:00
echo '<br><span class="notification-date"><small>';
echo Date::format($log['date'], DB_DATE_FORMAT, NOTIFICATIONS_DATE_FORMAT);
2018-08-08 00:16:35 +02:00
echo ' [ '.$log['username'] .' ]';
2018-06-03 21:51:47 +02:00
echo '</small></span>';
echo '</li>';
}
2018-05-20 21:48:43 +02:00
?>
</ul>
2017-12-20 20:37:17 +01:00
2015-07-31 02:49:29 +02:00
</div>
2015-10-19 00:45:58 +02:00
</div>
2018-08-01 15:07:37 +02:00
</div>