37 lines
No EOL
2.3 KiB
PHP
37 lines
No EOL
2.3 KiB
PHP
<?php
|
|
if (!defined('SVRJS_MOD_DIRECTORY')) die;
|
|
if (!defined('SVRJS_MOD_DIRECTORY_MODERATION')) die;
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en-US">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<!--[if lt IE 9]><script src="<?php echo htmlspecialchars(APP_ROOT . 'js/html5shiv.js'); ?>"></script><![endif]-->
|
|
<script src="<?php echo htmlspecialchars(APP_ROOT . 'js/analytics.js'); ?>"></script>
|
|
<link rel="stylesheet" href="<?php echo htmlspecialchars(APP_ROOT); ?>css/font.css">
|
|
<link rel="stylesheet" href="<?php echo htmlspecialchars(APP_ROOT); ?>css/moderation.css">
|
|
<title><?php echo htmlentities(isset($pageTitle) && $pageTitle ? "$pageTitle - Moderation - SVR.JS Mods" : "Moderation - SVR.JS Mods"); ?></title>
|
|
</head>
|
|
|
|
<body>
|
|
<header>
|
|
<div class="header-title">
|
|
<span>Moderation</span>
|
|
</div>
|
|
<?php if (!isset($moderationNotAllowed) || !$moderationNotAllowed) { ?>
|
|
<nav>
|
|
<ul>
|
|
<li><a href="<?php echo htmlspecialchars(APP_ROOT); ?>">Return</a></li>
|
|
<li><a href="<?php echo htmlspecialchars(APP_MODERATION_ROOT . 'index.php'); ?>" <?php if (APP_MODERATION_FILENAME == "index.php") echo 'class="nav-active"'; ?>>Home</a></li>
|
|
<li><a href="<?php echo htmlspecialchars(APP_MODERATION_ROOT . 'pending.php'); ?>" <?php if (APP_MODERATION_FILENAME == "pending.php") echo 'class="nav-active"'; ?>>Pending mods</a></li>
|
|
<li><a href="<?php echo htmlspecialchars(APP_MODERATION_ROOT . 'mods.php'); ?>" <?php if (APP_MODERATION_FILENAME == "mods.php") echo 'class="nav-active"'; ?>>Mods</a></li>
|
|
<li><a href="<?php echo htmlspecialchars(APP_MODERATION_ROOT . 'users.php'); ?>" <?php if (APP_MODERATION_FILENAME == "users.php" || APP_MODERATION_FILENAME == "user.php") echo 'class="nav-active"'; ?>>Users</a></li>
|
|
<li><a href="<?php echo htmlspecialchars(APP_MODERATION_ROOT . 'reviews.php'); ?>" <?php if (APP_MODERATION_FILENAME == "reviews.php") echo 'class="nav-active"'; ?>>Reviews</a></li>
|
|
<li><a href="<?php echo htmlspecialchars(APP_MODERATION_ROOT . 'categories.php'); ?>" <?php if (APP_MODERATION_FILENAME == "categories.php") echo 'class="nav-active"'; ?>>Categories</a></li>
|
|
</ul>
|
|
</nav>
|
|
<?php } ?>
|
|
</header>
|
|
<main>
|