Skip to content

Commit

Permalink
Merge branch 'dev' of git://github.com/deizel/infinitas into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jan 7, 2010
2 parents c69ff8a + ddfc973 commit 39eeeed
Showing 1 changed file with 60 additions and 55 deletions.
115 changes: 60 additions & 55 deletions infinitas/blog/views/posts/admin_dashboard.ctp
@@ -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>

0 comments on commit 39eeeed

Please sign in to comment.