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

63 lines
1.9 KiB
PHP
Raw Normal View History

<?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>
<div id="dashboard" class="container-fluid">
2018-05-20 21:48:43 +02:00
<div class="row">
<div class="col-lg-7">
<?php execPluginsByHook('dashboard') ?>
2015-06-26 06:31:53 +02:00
</div>
<div class="col-lg-5">
2015-06-26 06:31:53 +02:00
2018-05-20 21:48:43 +02:00
<!-- Notifications -->
<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
$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">';
echo '<div>';
echo $L->g($log['dictionaryKey']);
2018-05-20 21:48:43 +02:00
if (!empty($log['notes'])) {
echo ' « <b>'.$log['notes'].'</b> »';
}
echo '</div>';
echo '<div class="form-text">';
echo Date::format($log['date'], DB_DATE_FORMAT, NOTIFICATIONS_DATE_FORMAT);
2018-08-08 00:16:35 +02:00
echo ' [ '.$log['username'] .' ]';
echo '</div>';
echo '</li>';
}
2018-05-20 21:48:43 +02:00
?>
</ul>
<!-- 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>