bludit/admin/themes/default/index.php

102 lines
3.2 KiB
PHP
Raw Normal View History

2015-03-27 02:00:01 +01:00
<!doctype html>
<html>
<head>
<base href="<?php echo HTML_PATH_ADMIN_THEME ?>">
2015-06-27 00:12:26 +02:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2015-03-27 02:00:01 +01:00
2015-07-07 00:22:03 +02:00
<title><?php echo $layout['title'] ?></title>
2015-03-27 02:00:01 +01:00
2015-07-28 03:01:52 +02:00
<link rel="stylesheet" href="./css/kube.min.css?version=<?php echo BLUDIT_VERSION ?>">
<link rel="stylesheet" href="./css/default.css?version=<?php echo BLUDIT_VERSION ?>">
<link rel="stylesheet" href="./css/css/font-awesome.css?version=<?php echo BLUDIT_VERSION ?>">
2015-03-27 02:00:01 +01:00
2015-06-27 00:12:26 +02:00
<script src="./js/jquery.min.js"></script>
<script src="./js/kube.min.js"></script>
<!-- Plugins -->
2015-07-23 03:45:54 +02:00
<?php Theme::plugins('onAdminHead') ?>
2015-03-27 02:00:01 +01:00
</head>
<body>
2015-07-23 03:45:54 +02:00
<!-- Plugins -->
<?php Theme::plugins('onAdminBodyBegin') ?>
2015-05-05 03:00:01 +02:00
<!-- ALERT -->
<script>
$(document).ready(function() {
<?php
2015-05-15 00:07:45 +02:00
if( Alert::defined() ) {
2015-05-05 03:00:01 +02:00
echo '$("#alert").message();';
}
?>
});
</script>
<div id="alert" class="tools-message tools-message-blue">
<?php echo Alert::get() ?>
</div>
<!-- HEAD -->
2015-03-27 02:00:01 +01:00
<div id="head">
<nav class="navbar nav-fullwidth">
<h1>Bludit</h1>
<ul>
2015-07-04 01:28:54 +02:00
<li><?php $Language->p('Welcome back') ?>, <?php echo '<a href="'.HTML_PATH_ADMIN_ROOT.'edit-user/'.$Login->username().'">'.$Login->username().'</a>' ?></li>
2015-07-04 00:56:24 +02:00
<li><a target="_blank" href="<?php echo HTML_PATH_ROOT ?>"><?php $Language->p('Website') ?></a></li>
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>logout"><?php $Language->p('Logout') ?></a></li>
2015-03-27 02:00:01 +01:00
</ul>
</nav>
</div>
<div class="units-row">
2015-05-05 03:00:01 +02:00
2015-03-27 02:00:01 +01:00
<!-- SIDEBAR -->
<div class="unit-20">
<div id="sidebar" class="nav">
<ul>
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>dashboard"><i class="fa fa-sun-o"></i><?php $Language->p('Dashboard') ?></a></li>
2015-07-04 00:56:24 +02:00
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>new-post"><i class="fa fa-pencil-square-o"></i><?php $Language->p('New post') ?></a></li>
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>new-page"><i class="fa fa-pencil"></i><?php $Language->p('New page') ?></a></li>
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>manage-posts"><i class="fa fa-file-text-o"></i><?php $Language->p('Manage') ?></a></li>
2015-05-05 03:00:01 +02:00
<?php if($Login->role()==='admin') { ?>
2015-07-04 00:56:24 +02:00
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>settings"><i class="fa fa-cogs"></i><?php $Language->p('Settings') ?></a></li>
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>users"><i class="fa fa-users"></i><?php $Language->p('Users') ?></a></li>
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>themes"><i class="fa fa-adjust"></i><?php $Language->p('Themes') ?></a></li>
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>plugins"><i class="fa fa-rocket"></i><?php $Language->p('Plugins') ?></a></li>
2015-05-05 03:00:01 +02:00
<?php } else { ?>
2015-07-04 00:56:24 +02:00
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>edit-user/<?php echo $Login->username() ?>"><i class="fa fa-file-text-o"></i><?php $Language->p('Profile') ?></a></li>
2015-05-05 03:00:01 +02:00
<?php } ?>
2015-03-27 02:00:01 +01:00
</ul>
</div>
</div>
2015-05-05 03:00:01 +02:00
2015-03-27 02:00:01 +01:00
<!-- CONTENT -->
<div class="unit-80">
<div id="content">
<?php
// Load view
if( Sanitize::pathFile(PATH_ADMIN_VIEWS, $layout['view'].'.php') )
include(PATH_ADMIN_VIEWS.$layout['view'].'.php');
?>
</div>
</div>
</div>
2015-05-05 03:00:01 +02:00
<?php
include(PATH_JS.'functions.php');
?>
2015-03-27 02:00:01 +01:00
2015-06-27 00:12:26 +02:00
<!-- Plugins -->
2015-07-23 03:45:54 +02:00
<?php Theme::plugins('onAdminBodyEnd') ?>
2015-06-27 00:12:26 +02:00
2015-05-05 03:00:01 +02:00
<?php
echo "DEBUG: Load time: ".(microtime(true) - $loadTime).'<br>';
?>
2015-03-27 02:00:01 +01:00
</body>
2015-06-27 00:12:26 +02:00
</html>