bludit/bl-kernel/admin/controllers/content.php

40 lines
1.5 KiB
PHP
Raw Normal View History

2015-11-27 17:03:42 +01:00
<?php defined('BLUDIT') or die('Bludit CMS.');
// ============================================================================
// Check role
// ============================================================================
// ============================================================================
// Functions
// ============================================================================
// ============================================================================
// Main before POST
// ============================================================================
// ============================================================================
// POST Method
// ============================================================================
// ============================================================================
// Main after POST
// ============================================================================
// List of published pages
2018-01-21 23:34:57 +01:00
$onlyPublished = true;
$amountOfItems = ITEMS_PER_PAGE_ADMIN;
$pageNumber = $Url->pageNumber();
$published = $dbPages->getList($pageNumber, $amountOfItems, $onlyPublished);
// Check if out of range the pageNumber
2017-09-23 15:15:29 +02:00
if (empty($published) && $Url->pageNumber()>1) {
2017-10-02 22:42:18 +02:00
Redirect::page('content');
}
2017-12-26 17:45:02 +01:00
$drafts = $dbPages->getDraftDB(true);
$scheduled = $dbPages->getScheduledDB(true);
$static = $dbPages->getStaticDB(true);
2018-03-27 18:40:03 +02:00
$sticky = $dbPages->getStickyDB(true);
// Title of the page
2017-10-02 22:42:18 +02:00
$layout['title'] .= ' - '.$Language->g('Manage content');