2015-09-13 03:06:20 +02:00
|
|
|
<!DOCTYPE HTML>
|
2016-05-24 04:32:06 +02:00
|
|
|
<html>
|
2015-03-27 02:00:01 +01:00
|
|
|
<head>
|
2015-08-18 04:02:19 +02:00
|
|
|
<meta charset="<?php echo CHARSET ?>">
|
2015-06-27 00:12:26 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2015-09-13 03:06:20 +02:00
|
|
|
<meta name="robots" content="noindex,nofollow">
|
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-10-19 00:45:58 +02:00
|
|
|
<!-- Favicon -->
|
2017-07-08 16:59:14 +02:00
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="<?php echo HTML_PATH_ADMIN_THEME.'img/favicon.png?version='.BLUDIT_VERSION ?>">
|
2015-09-20 23:46:50 +02:00
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
<!-- CSS -->
|
2016-05-24 04:32:06 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo HTML_PATH_ADMIN_THEME.'css/uikit/uikit.almost-flat.min.css?version='.BLUDIT_VERSION ?>">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo HTML_PATH_ADMIN_THEME.'css/uikit/upload.almost-flat.min.css?version='.BLUDIT_VERSION ?>">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo HTML_PATH_ADMIN_THEME.'css/uikit/form-file.almost-flat.min.css?version='.BLUDIT_VERSION ?>">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo HTML_PATH_ADMIN_THEME.'css/uikit/placeholder.almost-flat.min.css?version='.BLUDIT_VERSION ?>">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo HTML_PATH_ADMIN_THEME.'css/uikit/progress.almost-flat.min.css?version='.BLUDIT_VERSION ?>">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo HTML_PATH_ADMIN_THEME.'css/default.css?version='.BLUDIT_VERSION ?>">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo HTML_PATH_ADMIN_THEME.'css/jquery.datetimepicker.css?version='.BLUDIT_VERSION ?>">
|
2015-03-27 02:00:01 +01:00
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
<!-- Javascript -->
|
2017-07-13 00:44:39 +02:00
|
|
|
<script charset="utf-8" src="<?php echo HTML_PATH_CORE_JS.'jquery.min.js?version='.BLUDIT_VERSION ?>"></script>
|
2016-05-24 04:32:06 +02:00
|
|
|
<script charset="utf-8" src="<?php echo HTML_PATH_ADMIN_THEME.'js/uikit/uikit.min.js?version='.BLUDIT_VERSION ?>"></script>
|
|
|
|
<script charset="utf-8" src="<?php echo HTML_PATH_ADMIN_THEME.'js/uikit/upload.min.js?version='.BLUDIT_VERSION ?>"></script>
|
|
|
|
<script charset="utf-8" src="<?php echo HTML_PATH_ADMIN_THEME.'js/jquery.datetimepicker.js?version='.BLUDIT_VERSION ?>"></script>
|
2015-06-27 00:12:26 +02:00
|
|
|
|
|
|
|
<!-- Plugins -->
|
2015-08-07 04:13:55 +02:00
|
|
|
<?php Theme::plugins('adminHead') ?>
|
2015-03-27 02:00:01 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2015-07-23 03:45:54 +02:00
|
|
|
<!-- Plugins -->
|
2015-08-07 04:13:55 +02:00
|
|
|
<?php Theme::plugins('adminBodyBegin') ?>
|
2015-07-23 03:45:54 +02:00
|
|
|
|
2015-10-22 05:14:22 +02:00
|
|
|
<!-- Alert -->
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
<?php
|
|
|
|
if( Alert::defined() ) {
|
|
|
|
echo '$("#alert").slideDown().delay(3500).slideUp();';
|
|
|
|
}
|
|
|
|
?>
|
2016-05-18 04:36:23 +02:00
|
|
|
$(window).click(function() {
|
|
|
|
$("#alert").hide();
|
2015-10-22 05:14:22 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2015-11-07 01:23:50 +01:00
|
|
|
<div id="alert" class="<?php echo (Alert::status()==ALERT_STATUS_OK)?'alert-ok':'alert-fail'; ?>">
|
2015-10-22 05:14:22 +02:00
|
|
|
<?php Alert::p() ?>
|
|
|
|
</div>
|
|
|
|
|
2015-11-28 15:47:03 +01:00
|
|
|
<!-- Offcanvas for Mobile -->
|
2016-09-14 04:59:12 +02:00
|
|
|
<a href="#offcanvas" class="uk-navbar-toggle uk-hidden-large" data-uk-offcanvas></a>
|
2015-10-19 00:45:58 +02:00
|
|
|
<div id="offcanvas" class="uk-offcanvas">
|
2015-10-24 17:32:26 +02:00
|
|
|
<div class="uk-offcanvas-bar">
|
|
|
|
<ul class="uk-nav uk-nav-offcanvas">
|
|
|
|
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'dashboard' ?>"><?php $L->p('Dashboard') ?></a></li>
|
2017-07-07 23:38:01 +02:00
|
|
|
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'new-page' ?>"><?php $L->p('New content') ?></a></li>
|
|
|
|
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'manage-pages' ?>"><?php $L->p('Manage content') ?></a></li>
|
2015-10-26 02:11:46 +01:00
|
|
|
<?php if($Login->role() == 'admin') { ?>
|
2017-07-07 23:38:01 +02:00
|
|
|
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>"><?php $L->p('Manage categories') ?></a></li>
|
2015-10-24 17:32:26 +02:00
|
|
|
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>"><?php $L->p('Manage users') ?></a></li>
|
|
|
|
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'settings-general' ?>"><?php $L->p('General settings') ?></a></li>
|
|
|
|
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'settings-advanced' ?>"><?php $L->p('Advanced settings') ?></a></li>
|
2017-07-07 23:38:01 +02:00
|
|
|
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'settings-regional' ?>"><?php $L->p('Language') ?></a></li>
|
2015-10-24 17:32:26 +02:00
|
|
|
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'plugins' ?>"><?php $L->p('Plugins') ?></a></li>
|
|
|
|
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'themes' ?>"><?php $L->p('Themes') ?></a></li>
|
|
|
|
<li><a href="<?php echo HTML_PATH_ADMIN_ROOT.'about' ?>"><?php $L->p('About') ?></a></li>
|
2015-10-26 02:11:46 +01:00
|
|
|
<?php } ?>
|
2015-10-24 17:32:26 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2015-03-27 02:00:01 +01:00
|
|
|
</div>
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2016-09-14 05:09:14 +02:00
|
|
|
<div class="bl-navbar-bg">
|
2016-09-07 15:03:53 +02:00
|
|
|
<nav id="bl-navbar">
|
2017-07-08 15:53:47 +02:00
|
|
|
<img id="bludit-logo" class="logo" src="<?php echo HTML_PATH_ADMIN_THEME ?>img/logo.svg" />
|
|
|
|
<span class="bl-brand">BLUDIT</span>
|
2016-09-07 21:16:14 +02:00
|
|
|
|
|
|
|
<div class="bl-navbar-right">
|
2016-09-28 01:49:58 +02:00
|
|
|
<?php $L->p('Welcome') ?> <?php echo $Login->username() ?> -
|
2016-09-07 21:16:14 +02:00
|
|
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'logout' ?>"><?php $L->p('Logout') ?></a>
|
|
|
|
</div>
|
2016-09-07 15:03:53 +02:00
|
|
|
</nav>
|
2016-09-14 05:09:14 +02:00
|
|
|
</div>
|
2016-09-07 15:03:53 +02:00
|
|
|
|
|
|
|
<div id="bl-container">
|
|
|
|
|
|
|
|
<div class="uk-grid uk-grid-small">
|
|
|
|
|
2016-09-14 04:59:12 +02:00
|
|
|
<div id="bl-sidebar" class="uk-width-1-4 uk-visible-large">
|
|
|
|
|
|
|
|
<ul class="uk-nav">
|
|
|
|
|
|
|
|
<li <?php echo ($layout['view']=='dashboard')?'class="uk-active"':'' ?>>
|
|
|
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'dashboard' ?>"><?php $L->p('Dashboard') ?></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a target="_blank" href="<?php echo HTML_PATH_ROOT ?>"><?php $L->p('Website') ?></a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="uk-nav-header"><?php $L->p('Publish') ?></li>
|
|
|
|
<li <?php echo ($layout['view']=='new-page')?'class="uk-active"':'' ?>>
|
2017-06-05 18:52:13 +02:00
|
|
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'new-page' ?>"><?php $L->p('New content') ?></a>
|
2016-09-14 04:59:12 +02:00
|
|
|
</li>
|
|
|
|
|
2016-09-15 10:41:02 +02:00
|
|
|
<li class="uk-nav-header"><?php $L->p('Manage') ?></li>
|
2016-09-14 19:48:56 +02:00
|
|
|
<li <?php echo ($layout['view']=='manage-pages')?'class="uk-active"':'' ?>>
|
2017-06-05 22:36:09 +02:00
|
|
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'pages' ?>"><?php $L->p('Content') ?></a>
|
2016-09-14 04:59:12 +02:00
|
|
|
</li>
|
2017-05-16 00:46:20 +02:00
|
|
|
<li <?php echo ($layout['view']=='categories')?'class="uk-active"':'' ?>>
|
2017-04-17 12:49:03 +02:00
|
|
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>"><?php $L->p('Categories') ?></a>
|
2017-05-16 00:46:20 +02:00
|
|
|
</li>
|
2016-09-14 19:48:56 +02:00
|
|
|
<li <?php echo ($layout['view']=='users')?'class="uk-active"':'' ?>>
|
2016-09-14 04:59:12 +02:00
|
|
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>"><?php $L->p('Users') ?></a>
|
|
|
|
</li>
|
|
|
|
|
2016-09-15 10:41:02 +02:00
|
|
|
<li class="uk-nav-header"><?php $L->p('Settings') ?></li>
|
2016-09-14 19:48:56 +02:00
|
|
|
<li <?php echo ($layout['view']=='settings-general')?'class="uk-active"':'' ?>>
|
2016-09-14 04:59:12 +02:00
|
|
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'settings-general' ?>"><?php $L->p('General') ?></a>
|
|
|
|
</li>
|
2016-09-14 19:48:56 +02:00
|
|
|
<li <?php echo ($layout['view']=='settings-advanced')?'class="uk-active"':'' ?>>
|
2016-09-14 04:59:12 +02:00
|
|
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'settings-advanced' ?>"><?php $L->p('Advanced') ?></a>
|
|
|
|
</li>
|
2016-09-14 19:48:56 +02:00
|
|
|
<li <?php echo ($layout['view']=='settings-regional')?'class="uk-active"':'' ?>>
|
2017-05-16 00:46:20 +02:00
|
|
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'settings-regional' ?>"><?php $L->p('Language') ?></a>
|
2016-09-14 04:59:12 +02:00
|
|
|
</li>
|
2016-09-14 19:48:56 +02:00
|
|
|
<li <?php echo ($layout['view']=='plugins')?'class="uk-active"':'' ?>>
|
2016-09-14 04:59:12 +02:00
|
|
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'plugins' ?>"><?php $L->p('Plugins') ?></a>
|
|
|
|
</li>
|
2016-09-14 19:48:56 +02:00
|
|
|
<li <?php echo ($layout['view']=='themes')?'class="uk-active"':'' ?>>
|
2016-09-14 04:59:12 +02:00
|
|
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'themes' ?>"><?php $L->p('Themes') ?></a>
|
|
|
|
</li>
|
2016-09-14 19:48:56 +02:00
|
|
|
<li <?php echo ($layout['view']=='about')?'class="uk-active"':'' ?>>
|
2016-09-14 04:59:12 +02:00
|
|
|
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'about' ?>"><?php $L->p('About') ?></a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
2016-09-07 15:03:53 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2016-09-14 04:59:12 +02:00
|
|
|
<div id="bl-view" class="uk-width-3-4">
|
2016-09-07 15:03:53 +02:00
|
|
|
<?php
|
|
|
|
if( Sanitize::pathFile(PATH_ADMIN_VIEWS, $layout['view'].'.php') ) {
|
|
|
|
include(PATH_ADMIN_VIEWS.$layout['view'].'.php');
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
</div>
|
|
|
|
|
2017-07-13 22:39:04 +02:00
|
|
|
<script>
|
|
|
|
$( "#bludit-logo" ).dblclick(function() {
|
|
|
|
alert( "Hey! what are you doing ?" );
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
<!-- Javascript -->
|
|
|
|
<?php include(PATH_JS.'functions.php') ?>
|
2015-03-27 02:00:01 +01:00
|
|
|
|
2015-06-27 00:12:26 +02:00
|
|
|
<!-- Plugins -->
|
2015-08-07 04:13:55 +02:00
|
|
|
<?php Theme::plugins('adminBodyEnd') ?>
|
2015-06-27 00:12:26 +02:00
|
|
|
|
2015-03-27 02:00:01 +01:00
|
|
|
</body>
|
2016-02-14 01:15:19 +01:00
|
|
|
</html>
|