made compose button when on articles view.

This commit is contained in:
2025-04-13 17:34:18 -06:00
parent 666ebeafd3
commit 47b5940167
4 changed files with 68 additions and 1 deletions
+8
View File
@@ -67,4 +67,12 @@ if (isset($_POST['form_id'])) {
}
}
if (($view == 'list' || $view == 'sort') && (isset($_COOKIE['role_id']) && $_COOKIE['role_id'] <= 3)) {
echo '
<div id="floating_compose">
<a href="articles.php?view=compose"><i class="nf nf-md-note_plus"></i></a>
</div>
';
}
include_once 'components/foot.php';