Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of git://github.com/deizel/infinitas into dev
- Loading branch information
Showing
1 changed file
with
60 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,64 @@ | ||
<?php | ||
/** | ||
* Blog Comments admin dashboard. | ||
* | ||
* this is the page for admin dashboard of the blog plugin. | ||
* | ||
* Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @filesource | ||
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* @link http://www.dogmatic.co.za | ||
* @package blog | ||
* @subpackage blog.views.posts.dashboard | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
*/ | ||
/** | ||
* Blog Comments admin dashboard. | ||
* | ||
* this is the page for admin dashboard of the blog plugin. | ||
* | ||
* Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @filesource | ||
* @copyright Copyright (c) 2009 Carl Sutton ( dogmatic69 ) | ||
* @link http://www.dogmatic.co.za | ||
* @package blog | ||
* @subpackage blog.views.posts.dashboard | ||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License | ||
*/ | ||
?> | ||
<div class="dashboard"> | ||
<h2><?php __( 'Blog Dashboard' ) ?></h2> | ||
<div class="chart"> | ||
<?php | ||
$this->Chart->debug = 1; | ||
echo $this->Chart->display( | ||
'pie3d', | ||
array( | ||
'data' => array( $dashboardPostCount['active'], $dashboardPostCount['pending'] ), | ||
'labels' => array( __( 'Active', true ), __( 'Pending', true ) ), | ||
'size' => array( 250, 100 ), | ||
'title' => array( | ||
'text' => __( 'Active vs Pending', true ) | ||
) | ||
) | ||
); | ||
?> | ||
</div> | ||
<div class="feeds"> | ||
<h2><?php __( 'Blog Feed' ); ?></h2> | ||
<?php | ||
foreach( $blogFeeds as $feed ) | ||
{ | ||
echo '<div style="width:100%; clear:both;"> ', | ||
$this->Time->niceShort( $feed[0]['created'] ), ' ', | ||
$this->Html->link( | ||
$feed[0]['title'], | ||
array( | ||
'plugin' => $feed[0]['plugin'], | ||
'controller' => $feed[0]['controller'], | ||
'action' => $feed[0]['action'], | ||
$feed[0]['id'] | ||
) | ||
), | ||
$feed[0]['intro'], | ||
'</div>'; | ||
} | ||
?> | ||
</div> | ||
<h2><?php __('Blog Dashboard'); ?></h2> | ||
<div class="chart"> | ||
<?php | ||
$this->Chart->debug = 1; | ||
echo $this->Chart->display( | ||
'pie3d', | ||
array( | ||
'data' => array($dashboardPostCount['active'], $dashboardPostCount['pending']), | ||
'labels' => array(__('Active', true), __('Pending', true)), | ||
'size' => array(250, 100), | ||
'title' => array( | ||
'text' => __('Active vs Pending', true) | ||
) | ||
) | ||
); | ||
?> | ||
</div> | ||
<div class="dashboard"> | ||
<h2><?php __('Blog Feed'); ?></h2> | ||
<ul> | ||
<?php foreach($blogFeeds as $feed): ?> | ||
<li> | ||
<div class="item"> | ||
<h3> | ||
<?php | ||
echo $this->Html->link( | ||
$feed[0]['title'], | ||
array( | ||
'plugin' => $feed[0]['plugin'], | ||
'controller' => $feed[0]['controller'], | ||
'action' => $feed[0]['action'], | ||
$feed[0]['id'] | ||
) | ||
); | ||
?> | ||
</h3> | ||
<div class="time"><?php echo $this->Time->niceShort($feed[0]['created']); ?></div> | ||
<div class="preview"><?php echo $feed[0]['intro']; ?></div> | ||
</div> | ||
</li> | ||
<?php endforeach; ?> | ||
</ul> | ||
</div> | ||
</div> |