bludit/admin/controllers/dashboard.php

34 lines
880 B
PHP
Raw Normal View History

2015-06-26 06:31:53 +02:00
<?php defined('BLUDIT') or die('Bludit CMS.');
2015-03-27 02:00:01 +01:00
2015-06-26 06:31:53 +02:00
// ============================================================================
// Functions
// ============================================================================
2015-03-27 02:00:01 +01:00
2015-06-26 06:31:53 +02:00
// ============================================================================
// POST Method
// ============================================================================
// ============================================================================
// Main
// ============================================================================
$_newPosts = $dbPosts->regenerate();
$_newPages = $dbPages->regenerate();
2015-07-27 02:29:47 +02:00
$_draftPosts = array();
foreach($posts as $Post)
{
if(!$Post->published()) {
array_push($_draftPosts, $Post);
}
}
$_draftPages = array();
foreach($pages as $Page)
{
if(!$Page->published()) {
array_push($_draftPages, $Page);
}
}