2016-08-31 03:44:58 +02:00
|
|
|
<div class="uk-block dashboard-links">
|
2015-10-19 00:45:58 +02:00
|
|
|
<div class="uk-grid uk-grid-match" data-uk-grid-margin="{target:'.uk-panel'}">
|
|
|
|
|
|
|
|
<div class="uk-width-medium-1-3">
|
|
|
|
|
|
|
|
<div class="uk-panel">
|
2017-10-02 22:42:18 +02:00
|
|
|
<h4><a href="<?php echo HTML_PATH_ADMIN_ROOT.'new-content' ?>"><i class="uk-icon-pencil"></i> <?php $L->p('New content') ?></a></h4>
|
|
|
|
<p><?php $L->p('Create new content for your site') ?></p>
|
2015-10-19 00:45:58 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="uk-panel">
|
2017-10-02 22:42:18 +02:00
|
|
|
<h4><a href="<?php echo HTML_PATH_ADMIN_ROOT.'content' ?>"><i class="uk-icon-folder-o"></i> <?php $L->p('Manage content') ?></a></h4>
|
|
|
|
<p><?php $L->p('Edit or delete content from your site') ?></p>
|
2015-10-19 00:45:58 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2015-10-22 05:14:22 +02:00
|
|
|
<div class="uk-width-medium-1-3" style="border-right: 1px solid #E6E6E6; border-left: 1px solid #E6E6E6">
|
2015-10-19 00:45:58 +02:00
|
|
|
|
|
|
|
<div class="uk-panel">
|
2017-06-09 20:30:13 +02:00
|
|
|
<h4><a href="<?php echo HTML_PATH_ADMIN_ROOT.'new-category' ?>"><i class="uk-icon-file-text-o"></i> <?php $L->p('New category') ?></a></h4>
|
2017-10-02 22:42:18 +02:00
|
|
|
<p><?php $L->p('Create a new category to organize your content') ?></p>
|
2015-10-19 00:45:58 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="uk-panel">
|
2017-06-09 20:30:13 +02:00
|
|
|
<h4><a href="<?php echo HTML_PATH_ADMIN_ROOT.'categories' ?>"><i class="uk-icon-folder-o"></i> <?php $L->p('Manage categories') ?></a></h4>
|
|
|
|
<p><?php $L->p('Edit or delete your categories') ?></p>
|
2015-06-26 06:31:53 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
<div class="uk-width-medium-1-3">
|
|
|
|
|
2015-10-26 02:11:46 +01:00
|
|
|
<?php if($Login->role() == 'admin') { ?>
|
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
<div class="uk-panel">
|
2015-10-24 17:32:26 +02:00
|
|
|
<h4><a href="<?php echo HTML_PATH_ADMIN_ROOT.'add-user' ?>"><i class="uk-icon-user-plus"></i> <?php $L->p('Add a new user') ?></a></h4>
|
2017-06-09 20:30:13 +02:00
|
|
|
<p><?php $L->p('Invite a friend to collaborate on your site') ?></p>
|
2015-10-19 00:45:58 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="uk-panel">
|
2015-10-24 17:32:26 +02:00
|
|
|
<h4><a href="<?php echo HTML_PATH_ADMIN_ROOT.'settings-regional' ?>"><i class="uk-icon-globe"></i> <?php $L->p('Language and timezone') ?></a></h4>
|
2015-10-19 00:45:58 +02:00
|
|
|
<p><?php $L->p('Change your language and region settings') ?></p>
|
2015-06-26 06:31:53 +02:00
|
|
|
</div>
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2015-10-26 02:11:46 +01:00
|
|
|
<?php } else { ?>
|
|
|
|
|
|
|
|
<div class="uk-panel">
|
|
|
|
<h4><a href="<?php echo HTML_PATH_ADMIN_ROOT.'edit-user/'.$Login->username() ?>"><i class="uk-icon-user"></i> <?php $L->p('Profile') ?></a></h4>
|
|
|
|
<p><?php $L->p('View and edit your profile') ?></p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-09-14 04:59:12 +02:00
|
|
|
<div id="dashboard-panel" class="uk-grid uk-grid-small">
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2016-08-31 02:57:24 +02:00
|
|
|
<div class="uk-width-1-3">
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2017-06-09 20:30:13 +02:00
|
|
|
<div class="uk-panel">
|
|
|
|
<h4 class="panel-title"><?php $L->p('Notifications') ?></h4>
|
|
|
|
<ul class="uk-list uk-list-line">
|
|
|
|
<?php
|
2017-09-03 23:29:09 +02:00
|
|
|
// Print New version if the plugin Version is installed
|
|
|
|
if (pluginEnabled('Version')) {
|
|
|
|
if ($plugins['all']['pluginVersion']->newVersion()) {
|
|
|
|
echo '<li>';
|
|
|
|
echo '<b>'.$L->g('New version available').'</b>';
|
|
|
|
echo '<br><a href="https://www.bludit.com" target="_black">Bludit.com</a>';
|
|
|
|
echo '</li>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Print Notifications
|
2017-06-09 20:30:13 +02:00
|
|
|
$logs = array_slice($Syslog->db, 0, NOTIFICATIONS_AMOUNT);
|
|
|
|
foreach($logs as $log) {
|
|
|
|
$dict = $L->g($log['dictionaryKey']);
|
|
|
|
echo '<li>';
|
|
|
|
echo $dict;
|
|
|
|
if( !empty($log['notes'])) {
|
2017-09-08 00:43:53 +02:00
|
|
|
echo ' « <b>'.$log['notes'].'</b> »';
|
2017-06-09 20:30:13 +02:00
|
|
|
}
|
|
|
|
echo '<br><span class="notification-date">';
|
|
|
|
echo Date::format($log['date'], DB_DATE_FORMAT, NOTIFICATIONS_DATE_FORMAT);
|
|
|
|
echo ' - by '.$log['username'];
|
|
|
|
echo '</span>';
|
|
|
|
echo '</li>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="uk-width-1-3">
|
|
|
|
|
2017-12-20 20:37:17 +01:00
|
|
|
<?php if (pluginEnabled('SimpleStats')) {
|
|
|
|
$SimpleStats = getPlugin('SimpleStats');
|
|
|
|
echo '<div class="uk-panel">';
|
|
|
|
echo '<h4 class="panel-title">'.$SimpleStats->getValue('label').'</h4>';
|
|
|
|
echo $SimpleStats->dashboard();
|
|
|
|
echo '</div>';
|
|
|
|
}
|
2017-06-09 20:30:13 +02:00
|
|
|
?>
|
2017-12-20 20:37:17 +01:00
|
|
|
|
2017-06-09 20:30:13 +02:00
|
|
|
|
2016-08-31 02:57:24 +02:00
|
|
|
<div class="uk-panel">
|
|
|
|
<h4 class="panel-title"><?php $L->p('Statistics') ?></h4>
|
2016-02-18 01:15:19 +01:00
|
|
|
<table class="uk-table statistics">
|
2015-10-19 00:45:58 +02:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
2017-10-07 02:49:47 +02:00
|
|
|
<td><?php $Language->p('Published') ?></td>
|
|
|
|
<td><?php echo count($dbPages->getPublishedDB()) ?></td>
|
2015-10-19 00:45:58 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2017-10-07 02:49:47 +02:00
|
|
|
<td><?php $Language->p('Static') ?></td>
|
|
|
|
<td><?php echo count($dbPages->getStaticDB()) ?></td>
|
|
|
|
</tr>
|
2015-10-19 00:45:58 +02:00
|
|
|
<td><?php $Language->p('Users') ?></td>
|
|
|
|
<td><?php echo $dbUsers->count() ?></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-07-31 02:49:29 +02:00
|
|
|
</div>
|
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
</div>
|
|
|
|
|
2016-08-31 02:57:24 +02:00
|
|
|
<div class="uk-width-1-3">
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2017-12-20 20:37:17 +01:00
|
|
|
<div class="uk-panel">
|
|
|
|
<h4 class="panel-title"><?php $L->p('Scheduled content') ?></h4>
|
|
|
|
<ul class="uk-list">
|
|
|
|
<?php
|
|
|
|
$scheduledPages = $dbPages->getScheduledDB();
|
|
|
|
if( empty($scheduledPages) ) {
|
|
|
|
echo '<li>'.$Language->g('There are no scheduled content').'</li>';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$keys = array_keys($scheduledPages);
|
|
|
|
foreach($keys as $key) {
|
|
|
|
$page = buildPage($key);
|
|
|
|
echo '<li><span class="label-time">'.$page->dateRaw(SCHEDULED_DATE_FORMAT).'</span><a href="'.HTML_PATH_ADMIN_ROOT.'edit-content/'.$page->key().'">'.($page->title()?$page->title():'['.$Language->g('Empty title').'] ').'</a></li>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2016-08-31 02:57:24 +02:00
|
|
|
<div class="uk-panel">
|
2017-10-02 22:42:18 +02:00
|
|
|
<h4 class="panel-title"><?php $L->p('Draft content') ?></h4>
|
2015-10-19 00:45:58 +02:00
|
|
|
<ul class="uk-list">
|
|
|
|
<?php
|
2017-06-25 22:54:59 +02:00
|
|
|
$draftPages = $dbPages->getDraftDB();
|
|
|
|
if( empty($draftPages) ) {
|
2017-10-02 22:42:18 +02:00
|
|
|
echo '<li>'.$Language->g('There are no draft content').'</li>';
|
2015-10-19 00:45:58 +02:00
|
|
|
}
|
|
|
|
else {
|
2017-09-24 01:17:37 +02:00
|
|
|
$keys = array_keys($draftPages);
|
2017-06-25 22:54:59 +02:00
|
|
|
foreach($keys as $key) {
|
|
|
|
$page = buildPage($key);
|
2017-10-02 22:42:18 +02:00
|
|
|
echo '<li><a href="'.HTML_PATH_ADMIN_ROOT.'edit-content/'.$page->key().'">'.($page->title()?$page->title():'['.$Language->g('Empty title').'] ').'</a></li>';
|
2015-10-19 00:45:58 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
2015-07-31 02:49:29 +02:00
|
|
|
</div>
|
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
</div>
|
|
|
|
|
2016-02-18 01:15:19 +01:00
|
|
|
</div>
|