2021-02-07 18:22:20 +01:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.'); ?>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
// ============================================================================
|
|
|
|
// Variables for the view
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Functions for the view
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Events for the view
|
|
|
|
// ============================================================================
|
|
|
|
$(document).ready(function() {
|
|
|
|
// No events for the view yet
|
|
|
|
});
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Initialization for the view
|
|
|
|
// ============================================================================
|
|
|
|
$(document).ready(function() {
|
|
|
|
// No initialization for the view yet
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2021-03-04 16:00:54 +01:00
|
|
|
<div id="dashboard" class="container-fluid">
|
2018-05-20 21:48:43 +02:00
|
|
|
<div class="row">
|
2021-10-16 16:17:00 +02:00
|
|
|
<div class="col-lg-7">
|
2021-03-19 19:54:09 +01:00
|
|
|
<?php execPluginsByHook('dashboard') ?>
|
2015-06-26 06:31:53 +02:00
|
|
|
</div>
|
2021-03-04 16:00:54 +01:00
|
|
|
|
2021-10-16 16:17:00 +02:00
|
|
|
<div class="col-lg-5">
|
2015-06-26 06:31:53 +02:00
|
|
|
|
2018-05-20 21:48:43 +02:00
|
|
|
<!-- Notifications -->
|
2021-03-04 16:00:54 +01:00
|
|
|
<ul class="list-group">
|
|
|
|
<li class="list-group-item">
|
|
|
|
<h4 class="m-0 p-0"><i class="bi bi-bell"></i><?php $L->p('Notifications') ?></h4>
|
|
|
|
</li>
|
2018-05-20 21:48:43 +02:00
|
|
|
<?php
|
2018-06-10 13:54:55 +02:00
|
|
|
$logs = array_slice($syslog->db, 0, NOTIFICATIONS_AMOUNT);
|
2018-05-20 21:48:43 +02:00
|
|
|
foreach ($logs as $log) {
|
|
|
|
echo '<li class="list-group-item">';
|
2021-03-04 16:00:54 +01:00
|
|
|
echo '<div>';
|
|
|
|
echo $L->g($log['dictionaryKey']);
|
2018-05-20 21:48:43 +02:00
|
|
|
if (!empty($log['notes'])) {
|
2017-09-08 00:43:53 +02:00
|
|
|
echo ' « <b>'.$log['notes'].'</b> »';
|
2017-06-09 20:30:13 +02:00
|
|
|
}
|
2021-03-04 16:00:54 +01:00
|
|
|
echo '</div>';
|
|
|
|
echo '<div class="form-text">';
|
2017-06-09 20:30:13 +02:00
|
|
|
echo Date::format($log['date'], DB_DATE_FORMAT, NOTIFICATIONS_DATE_FORMAT);
|
2018-08-08 00:16:35 +02:00
|
|
|
echo ' [ '.$log['username'] .' ]';
|
2021-03-04 16:00:54 +01:00
|
|
|
echo '</div>';
|
2017-06-09 20:30:13 +02:00
|
|
|
echo '</li>';
|
|
|
|
}
|
2018-05-20 21:48:43 +02:00
|
|
|
?>
|
|
|
|
</ul>
|
2021-03-04 16:00:54 +01:00
|
|
|
<!-- End Notifications -->
|
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>
|