示例#1
0
// Now deal with the front end display helper class related stuff.
$frontendDisplayHelperClass = new frontendDisplayHelper();
$frontendDisplayHelperClass->setController($controller);
$frontendDisplayHelperClass->setPageBase($page_base);
$frontendDisplayHelperClass->setPageBaseSuffix($page_query_string_append);
$frontendDisplayHelperClass->setCount(array_key_exists('count', $params) ? $params['count'] : 1);
$frontendDisplayHelperClass->initContent($DEBUG_MODE);
$VIEW_MODE = $frontendDisplayHelperClass->getViewMode();
// $page_title = $frontendDisplayHelperClass->getPageTitle();
// $url_parts = $frontendDisplayHelperClass->getURLParts();
$html_content = $frontendDisplayHelperClass->getHTMLContent();
$json_content = $frontendDisplayHelperClass->getJSONContent();
//**************************************************************************************//
// Init the front end display class and set other things.
$frontendDisplayClass = new frontendDisplay();
$frontendDisplayClass->setPageJSONContent($json_content);
$frontendDisplayClass->setJSONMode($JSON_MODE);
$frontendDisplayClass->setDebugMode($DEBUG_MODE);
$frontendDisplayClass->setContentType($JSON_MODE ? 'application/json' : 'text/html');
$frontendDisplayClass->setCharset('utf-8');
$frontendDisplayClass->setViewMode($VIEW_MODE, TRUE);
$frontendDisplayClass->setPageTitle($SITE_TITLE);
$frontendDisplayClass->setPageURL($SITE_URL);
$frontendDisplayClass->setPageCopyright($SITE_COPYRIGHT);
$frontendDisplayClass->setPageLicense($SITE_LICENSE);
$frontendDisplayClass->setPageDescription($SITE_DESCRIPTION);
$frontendDisplayClass->setPageContent($html_content);
$frontendDisplayClass->setPageDivs($PAGE_DIVS_ARRAY);
$frontendDisplayClass->setPageDivWrapper($PAGE_DIV_WRAPPER);
$frontendDisplayClass->setPageViewport($SITE_VIEWPORT);
$frontendDisplayClass->setPageRobots($SITE_ROBOTS);