bludit/admin/views/dashboard.php

81 lines
2.3 KiB
PHP
Raw Normal View History

2015-07-03 22:44:26 +02:00
<h2 class="title"><?php $Language->p('Dashboard') ?> </h2>
2015-06-26 06:31:53 +02:00
<div class="units-row">
2015-07-31 02:49:29 +02:00
<div class="unit-50">
2015-06-26 06:31:53 +02:00
<div class="dashboardBox">
2015-07-31 02:49:29 +02:00
<h2>Start here!</h2>
<div class="content">
<ul class="menu">
<li class="title"><a href="">New post</a></li>
<li class="description">Create a new article for your blog</li>
<li class="title"><a href="">New page</a></li>
<li class="description">Create a new page for your site</li>
<li class="title"><a href="">Language and timezone</a></li>
<li class="description">Select your language and locale for a correct display of dates</li>
</ul>
2015-06-26 06:31:53 +02:00
</div>
</div>
2015-07-31 02:49:29 +02:00
2015-06-26 06:31:53 +02:00
</div>
2015-07-31 02:49:29 +02:00
<div class="unit-50">
2015-06-26 06:31:53 +02:00
<?php if($_newPosts || $_newPages) { ?>
<div class="dashboardBox">
<div class="content contentGreen">
2015-07-04 00:36:37 +02:00
<div class="bigContent"><?php $Language->p('database-regenerated') ?></div>
<div class="littleContent"><?php $Language->p('new-posts-and-pages-synchronized') ?></div>
2015-06-26 06:31:53 +02:00
<i class="iconContent fa fa-pie-chart"></i>
</div>
</div>
<?php } ?>
2015-07-31 02:49:29 +02:00
<div class="dashboardBox">
<div class="content contentBlue">
<div class="bigContent"><?php echo $dbPosts->count() ?></div>
<div class="littleContent"><?php $Language->p('Posts') ?></div>
<i class="iconContent fa fa-pie-chart"></i>
</div>
</div>
<div class="dashboardBox">
<div class="content contentGreen">
<div class="bigContent"><?php echo $dbUsers->count() ?></div>
<div class="littleContent"><?php $Language->p('Users') ?></div>
<i class="iconContent fa fa-user"></i>
</div>
</div>
2015-06-26 06:31:53 +02:00
<div class="dashboardBox">
2015-07-27 02:29:47 +02:00
<h2>Drafts</h2>
2015-06-26 06:31:53 +02:00
<div class="content">
<nav class="nav">
<ul>
2015-07-27 02:29:47 +02:00
<?php
if( empty($_draftPosts) && empty($_draftPages) )
{
echo '<li>'.$Language->g('There are no drafts').'</li>';
}
else
{
foreach($_draftPosts as $Post)
{
echo '<li>('.$Language->g('Post').') <a href="'.HTML_PATH_ADMIN_ROOT.'edit-post/'.$Post->key().'">'.($Post->title()?$Post->title():'['.$Language->g('Empty title').'] ').'</a></li>';
}
foreach($_draftPages as $Page)
{
echo '<li>('.$Language->g('Page').') <a href="'.HTML_PATH_ADMIN_ROOT.'edit-page/'.$Page->key().'">'.($Page->title()?$Page->title():'['.$Language->g('Empty title').'] ').'</a></li>';
}
}
?>
2015-06-26 06:31:53 +02:00
</ul>
</nav>
</div>
</div>
</div>
2015-07-04 00:36:37 +02:00
</div>