284 lines
14 KiB
PHP
284 lines
14 KiB
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<!-- Meta, title, CSS, favicons, etc. -->
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title><?= $title; ?> | KingOfDog Admin Panel</title>
|
|
|
|
<?php
|
|
$styles = [
|
|
'lib/bootstrap-3.0.0.min.css',
|
|
'lib/bootstrap-datetimepicker.min.css',
|
|
'lib/jquery.mCustomScrollbar.min.css',
|
|
'lib/prism.min.css',
|
|
'lib/datatables.min.css',
|
|
|
|
'lib/fullcalendar.min.css',
|
|
'lib/flag-icon.min.css'
|
|
];
|
|
if (isset($additionalStyles))
|
|
$styles = array_merge($styles, $additionalStyles);
|
|
$styles[] = 'custom.css';
|
|
$styles[] = 'main.css';
|
|
$styles[] = 'custom-buttons.css';
|
|
$styles[] = 'override-main.css';
|
|
$styleName = base_url('combine.php?type=css&files=' . implode(',', $styles));
|
|
?>
|
|
|
|
<link href="<?= $styleName ?>" rel="stylesheet">
|
|
<link rel="stylesheet" href="<?= base_url('assets/css/lib/fontawesome-all-5.2.0.min.css') ?>">
|
|
|
|
<link href="/assets/images/ico/favicon.ico" rel="icon">
|
|
</head>
|
|
|
|
<body class="nav-md">
|
|
<div class="container body">
|
|
<div class="main_container">
|
|
<div class="col-md-3 left_col menu_fixed mCustomScrollbar _mCS_1 mCS-autoHide" style="overflow: visible;">
|
|
<div id="mCSB_1" class="mCustomScrollBox mCS-minimal mCSB_vertical mCSB_outside" style="max-height: none;"
|
|
tabindex="0">
|
|
<div id="mCSB_1_container" class="mCSB_container" style="position:relative; top:0; left:0;">
|
|
<div class="left_col scroll-view">
|
|
<div class="navbar nav_title" style="border: 0;">
|
|
<a href="<?= base_url() ?>" class="site_title">
|
|
<i class="fa fa-paw"></i>
|
|
<span>KingOfDog</span>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<!-- menu profile quick info -->
|
|
<div class="profile">
|
|
<div class="profile_pic">
|
|
<img src="<?= $_SESSION['user']['profilePic'] ?>" alt="..."
|
|
class="img-circle profile_img mCS_img_loaded">
|
|
</div>
|
|
<div class="profile_info">
|
|
<span>Willkommen,</span>
|
|
<h2><?= $_SESSION['user']['displayname'] ?></h2>
|
|
</div>
|
|
</div>
|
|
<!-- /menu profile quick info -->
|
|
|
|
<br>
|
|
|
|
<!-- sidebar menu -->
|
|
<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
|
|
<div class="menu_section active">
|
|
<h3>Allgemein</h3>
|
|
<ul class="nav side-menu" style="">
|
|
<li>
|
|
<a href="/admin">
|
|
<i class="fa fa-home"></i>
|
|
Home
|
|
</a>
|
|
</li>
|
|
<?php if ($_SESSION['user']['rank'] >= 9): ?>
|
|
<li>
|
|
<a href="/admin/calendar">
|
|
<i class="fa fa-calendar"></i>
|
|
Kalender
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</div>
|
|
<?php if (get_instance()->hasPermission('blog.view')): ?>
|
|
<div class="menu_section">
|
|
<h3>Blog</h3>
|
|
<ul class="nav side-menu">
|
|
<?php if (get_instance()->hasPermission('blog.view')): ?>
|
|
<li>
|
|
<a href="/admin/blog">
|
|
<i class="fa fa-comments"></i>
|
|
Blog-Posts
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php if (get_instance()->hasPermission('blog.view')): ?>
|
|
<li>
|
|
<a href="/admin/blog/trashbin">
|
|
<i class="fa fa-trash"></i>
|
|
Gelöschte Blog-Posts
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php if (get_instance()->hasPermission('blog.create')): ?>
|
|
<li>
|
|
<a href="/admin/blog/edit">
|
|
<i class="fa fa-edit"></i>
|
|
Blog-Post erstellen
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="menu_section">
|
|
<h3>Verwaltung</h3>
|
|
<ul class="nav side-menu">
|
|
<?php if (get_instance()->hasPermission('projects.view')): ?>
|
|
<li>
|
|
<a href="/admin/projects">
|
|
<i class="fa fa-camera"></i>
|
|
Projekte
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php if (get_instance()->hasPermission('projects.create')): ?>
|
|
<li>
|
|
<a href="/admin/projects/edit">
|
|
<i class="fa fa-plus"></i>
|
|
Projekt erstellen
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php if (get_instance()->hasPermission('file.view')): ?>
|
|
<li>
|
|
<a href="/admin/files">
|
|
<i class="fa fa-folder-open"></i>
|
|
Dateien
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php if (get_instance()->hasPermission('redirect.view')): ?>
|
|
<li>
|
|
<a href="/admin/redirects">
|
|
<i class="fa fa-arrow-right"></i>
|
|
Weiterleitungen
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</div>
|
|
<div class="menu_section">
|
|
<h3>Nutzer</h3>
|
|
<ul class="nav side-menu">
|
|
<?php if (get_instance()->hasPermission('user.view')): ?>
|
|
<li>
|
|
<a href="/admin/users">
|
|
<i class="fa fa-users"></i>
|
|
Nutzerverwaltung
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php if (get_instance()->hasPermission('feedback.receive')): ?>
|
|
<li>
|
|
<a href="/admin/feedback">
|
|
<i class="fa fa-comments"></i>
|
|
Feedbacks
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
<?php if (get_instance()->hasPermission('contact.view')): ?>
|
|
<li>
|
|
<a href="/admin/contact">
|
|
<i class="fa fa-envelope"></i>
|
|
Kontakt-Nachrichten
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- /sidebar menu -->
|
|
|
|
<!-- /menu footer buttons -->
|
|
<div class="sidebar-footer hidden-small">
|
|
<a data-toggle="tooltip" data-placement="top" title=""
|
|
data-original-title="Zurück zur Seite" href="<?= base_url() ?>">
|
|
<i class="fa fa-reply"></i>
|
|
</a>
|
|
<a data-toggle="tooltip" data-placement="top" title="" data-original-title="Dashboard"
|
|
href="<?= base_url('admin') ?>">
|
|
<i class="fa fa-tachometer-alt"></i>
|
|
</a>
|
|
<a data-toggle="tooltip" data-placement="top" title="" data-original-title="User-Profil"
|
|
href="<?= base_url('user/' . $_SESSION['user']['username']) ?>">
|
|
<i class="fa fa-user"></i>
|
|
</a>
|
|
<a data-toggle="tooltip" data-placement="top" title="" data-original-title="Logout"
|
|
href="<?= base_url('logout') ?>">
|
|
<i class="fa fa-power-off"></i>
|
|
</a>
|
|
</div>
|
|
<!-- /menu footer buttons -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- top navigation -->
|
|
<div class="top_nav">
|
|
<div class="nav_menu">
|
|
<nav>
|
|
<div class="nav toggle">
|
|
<a id="menu_toggle">
|
|
<i class="fa fa-bars"></i>
|
|
</a>
|
|
</div>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li class="">
|
|
<a href="javascript:" class="user-profile dropdown-toggle" data-toggle="dropdown"
|
|
aria-expanded="false">
|
|
<img src="<?= $_SESSION['user']['profilePic'] ?>"
|
|
alt=""><?= $_SESSION['user']['displayname'] ?>
|
|
<span class=" fa fa-angle-down"></span>
|
|
</a>
|
|
<ul class="dropdown-menu dropdown-usermenu pull-right">
|
|
<li>
|
|
<a href="<?= base_url('user/' . $_SESSION['user']['displayname']) ?>">
|
|
<i class="fa fa-user pull-right"></i>
|
|
Profil
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="<?= base_url('user/' . $_SESSION['user']['displayname'] . '/edit') ?>">
|
|
<i class="fa fa-cog pull-right"></i>
|
|
Einstellungen
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="<?= base_url('login/logout') ?>">
|
|
<i class="fa fa-sign-out-alt pull-right"></i>
|
|
Ausloggen
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li role="presentation" class="dropdown">
|
|
<a href="javascript:" class="dropdown-toggle info-number" data-toggle="dropdown"
|
|
aria-expanded="false">
|
|
<i class="far fa-envelope"></i>
|
|
<span class="badge bg-blue" id="notificationCount"></span>
|
|
</a>
|
|
<ul id="notificationMenu" class="dropdown-menu list-unstyled msg_list" role="menu">
|
|
<li>
|
|
<div class="text-center">
|
|
<a>
|
|
<strong>See All Alerts</strong>
|
|
<i class="fa fa-angle-right"></i>
|
|
</a>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
<!-- /top navigation -->
|
|
|
|
<div class="snackbar-container">
|
|
</div>
|