/** * Function displays the preiview of the landing content for a category * at the admin side * * @return array */ function showPreview() { include_once 'classes/Core/Category/CCategory.php'; include "classes/Core/Settings/CCategoryManagement.php"; include_once 'classes/Display/DCategoryManagement.php'; $content = new Core_Settings_CCategoryManagement(); $cat = new Core_Category_CCategory(); include 'classes/Core/CRoleChecking.php'; $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { $content = new Core_Settings_CCategoryManagement(); $output['htmlcontent'] = $content->showPreview(); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }