Rework the admin panel #34

Merged
kazhnuz merged 39 commits from feat/new-admin into koblog 2025-01-19 00:29:43 +01:00
Showing only changes of commit 64623418b0 - Show all commits

View file

@ -15,7 +15,7 @@
$name = $user->firstName(); $name = $user->firstName();
} }
?> ?>
<span class="fa fa-hand-spock-o"></span><span><?php echo $L->g('welcome') ?></span> <span class="fa fa-hand-spock"></span><span><?php echo $L->g('welcome') ?></span>
</h2> </h2>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
@ -23,13 +23,13 @@
var date = new Date() var date = new Date()
var hours = date.getHours() var hours = date.getHours()
if (hours >= 6 && hours < 12) { if (hours >= 6 && hours < 12) {
$(this).html('<span class="fa fa-sun-o"></span><?php echo $L->g('good-morning') . ', ' . $name ?>'); $(this).html('<span class="fa fa-sun"></span><?php echo $L->g('good-morning') . ', ' . $name ?>');
} else if (hours >= 12 && hours < 18) { } else if (hours >= 12 && hours < 18) {
$(this).html('<span class="fa fa-sun-o"></span><?php echo $L->g('good-afternoon') . ', ' . $name ?>'); $(this).html('<span class="fa fa-sun"></span><?php echo $L->g('good-afternoon') . ', ' . $name ?>');
} else if (hours >= 18 && hours < 22) { } else if (hours >= 18 && hours < 22) {
$(this).html('<span class="fa fa-moon-o"></span><?php echo $L->g('good-evening') . ', ' . $name ?>'); $(this).html('<span class="fa fa-moon"></span><?php echo $L->g('good-evening') . ', ' . $name ?>');
} else { } else {
$(this).html('<span class="fa fa-moon-o"></span><span><?php echo $L->g('good-night') . ', ' . $name ?></span>'); $(this).html('<span class="fa fa-moon"></span><span><?php echo $L->g('good-night') . ', ' . $name ?></span>');
} }
}).fadeIn(1000); }).fadeIn(1000);
}); });