bludit/admin/views/dashboard.php

79 lines
3.0 KiB
PHP
Raw Normal View History

2015-07-03 17:44:26 -03:00
<h2 class="title"><?php $Language->p('Dashboard') ?> </h2>
2015-06-26 01:31:53 -03:00
<div class="units-row">
2015-07-30 21:49:29 -03:00
<div class="unit-50">
2015-06-26 01:31:53 -03:00
<div class="dashboardBox">
2015-08-02 01:40:24 -03:00
<h2><?php $Language->p('Start here') ?></h2>
2015-07-30 21:49:29 -03:00
<div class="content">
<ul class="menu">
2015-08-01 23:47:45 -03:00
<li class="title"><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>new-post"><?php $Language->p('New post') ?></a></li>
<li class="description"><?php $Language->p('Create a new article for your blog') ?></li>
<li class="title"><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>new-page"><?php $Language->p('New page') ?></a></li>
<li class="description"><?php $Language->p('Create a new page for your website') ?></li>
<li class="title"><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>add-user"><?php $Language->p('Add a new user') ?></a></li>
<li class="description"><?php $Language->p('Invite a friend to collaborate on your website') ?></li>
<li class="title"><a href="<?php echo HTML_PATH_ADMIN_ROOT ?>settings#regional"><?php $Language->p('Language and timezone') ?></a></li>
<li class="description"><?php $Language->p('Change your language and region settings') ?></li>
2015-07-30 21:49:29 -03:00
</ul>
2015-06-26 01:31:53 -03:00
</div>
</div>
</div>
2015-07-30 21:49:29 -03:00
<div class="unit-50">
2015-06-26 01:31:53 -03:00
<?php if($_newPosts || $_newPages) { ?>
<div class="dashboardBox">
<div class="content contentGreen">
2015-07-03 19:36:37 -03: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 01:31:53 -03:00
<i class="iconContent fa fa-pie-chart"></i>
</div>
</div>
<?php } ?>
2015-08-01 23:47:45 -03:00
2015-07-30 21:49:29 -03: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 01:31:53 -03:00
<div class="dashboardBox">
2015-08-16 23:33:49 -03:00
<h2><?php $Language->p('Drafts') ?></h2>
2015-06-26 01:31:53 -03:00
<div class="content">
<nav class="nav">
<ul>
2015-07-26 21:29:47 -03:00
<?php
if( empty($_draftPosts) && empty($_draftPages) )
{
echo '<li>'.$Language->g('There are no drafts').'</li>';
}
else
{
foreach($_draftPosts as $Post)
{
2015-08-13 18:41:16 -03:00
echo '<li><span class="label label-outline label-blue smaller">'.$Language->g('Post').'</span><a href="'.HTML_PATH_ADMIN_ROOT.'edit-post/'.$Post->key().'">'.($Post->title()?$Post->title():'['.$Language->g('Empty title').'] ').'</a></li>';
2015-07-26 21:29:47 -03:00
}
foreach($_draftPages as $Page)
{
2015-08-13 18:41:16 -03:00
echo '<li><span class="label label-outline label-green smaller">'.$Language->g('Page').'</span><a href="'.HTML_PATH_ADMIN_ROOT.'edit-page/'.$Page->key().'">'.($Page->title()?$Page->title():'['.$Language->g('Empty title').'] ').'</a></li>';
2015-07-26 21:29:47 -03:00
}
}
?>
2015-06-26 01:31:53 -03:00
</ul>
</nav>
</div>
</div>
</div>
2015-07-03 19:36:37 -03:00
</div>