sync, implemented sort, viewing user pages & articles written, updating db
This commit is contained in:
+5
-4
@@ -4,17 +4,18 @@
|
||||
<head>
|
||||
<link href="css/base.css" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="https://nerdfonts.com/assets/css/webfont.css">
|
||||
<link rel="icon" type="image/x-icon" href="data/vintagecoding-favicon.png">
|
||||
<?php
|
||||
if ($_SESSION['theme'] == 'dark') {
|
||||
if ($_SESSION['theme'] == 'dark') {
|
||||
echo '
|
||||
<link href="css/dark.css" rel="stylesheet" type="text/css">
|
||||
';
|
||||
} elseif ($_SESSION['theme'] == 'light') {
|
||||
} elseif ($_SESSION['theme'] == 'light') {
|
||||
echo '
|
||||
<link href="css/light.css" rel="stylesheet" type="text/css">
|
||||
';
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ $nav = '
|
||||
<div class="site_navigation">
|
||||
<ul>
|
||||
<li><a href="/index.php"' . ($current_page == '/index.php' ? ' class="underline"' : '') . '>Home</a></li>
|
||||
<li><a href="/articles.php"' . ($current_page == '/articles.php' ? ' class="underline"' : '') . '>Articles</a></li>
|
||||
<li><a href="/articles.php?sort=newest"' . ($current_page == '/articles.php' ? ' class="underline"' : '') . '>Articles</a></li>
|
||||
';
|
||||
|
||||
if (isset($_COOKIE['role_id']) && $_COOKIE['role_id'] <= 2) {
|
||||
|
||||
Reference in New Issue
Block a user