2015-06-26 01:31:53 -03:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
2015-03-27 01:00:01 +00:00
|
|
|
|
2015-06-26 01:31:53 -03:00
|
|
|
// ============================================================================
|
|
|
|
// Functions
|
|
|
|
// ============================================================================
|
2015-03-27 01:00:01 +00:00
|
|
|
|
2015-08-02 21:49:12 -03:00
|
|
|
// ============================================================================
|
|
|
|
// Main before POST
|
|
|
|
// ============================================================================
|
|
|
|
|
2015-06-26 01:31:53 -03:00
|
|
|
// ============================================================================
|
|
|
|
// POST Method
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ============================================================================
|
2015-08-02 21:49:12 -03:00
|
|
|
// Main after POST
|
2015-06-26 01:31:53 -03:00
|
|
|
// ============================================================================
|
|
|
|
|
2015-07-26 21:29:47 -03:00
|
|
|
$_draftPosts = array();
|
2015-10-22 00:14:22 -03:00
|
|
|
$_scheduledPosts = array();
|
2015-07-26 21:29:47 -03:00
|
|
|
foreach($posts as $Post)
|
|
|
|
{
|
2015-08-26 00:49:15 -03:00
|
|
|
if($Post->draft()) {
|
2015-07-26 21:29:47 -03:00
|
|
|
array_push($_draftPosts, $Post);
|
|
|
|
}
|
2015-10-22 00:14:22 -03:00
|
|
|
elseif($Post->scheduled()) {
|
|
|
|
array_push($_scheduledPosts, $Post);
|
|
|
|
}
|
2015-07-26 21:29:47 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
$_draftPages = array();
|
|
|
|
foreach($pages as $Page)
|
|
|
|
{
|
|
|
|
if(!$Page->published()) {
|
|
|
|
array_push($_draftPages, $Page);
|
|
|
|
}
|
2015-08-29 02:02:09 -03:00
|
|
|
}
|