$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); $frontendDisplayClass->setJavaScriptItems($JAVASCRIPTS_ITEMS); $frontendDisplayClass->setLinkItems($LINK_ITEMS); $frontendDisplayClass->setFaviconItems($FAVICONS); $frontendDisplayClass->setPageBase($page_base . $page_query_string_append); $frontendDisplayClass->setPageURLParts($params); $frontendDisplayClass->setSocialMediaInfo($SOCIAL_MEDIA_INFO);
$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->setJSONMode($JSON_MODE); $frontendDisplayClass->setDebugMode($DEBUG_MODE); $frontendDisplayClass->setContentType($JSON_MODE ? 'application/json' : 'text/html'); $frontendDisplayClass->setCharset('utf-8'); $frontendDisplayClass->setViewMode($VIEW_MODE); $frontendDisplayClass->setPageTitle($page_title); $frontendDisplayClass->setPageURL($SITE_URL . implode('/', $url_parts)); $frontendDisplayClass->setPageCopyright($SITE_COPYRIGHT); $frontendDisplayClass->setPageLicense($SITE_LICENSE); $frontendDisplayClass->setPageDescription($SITE_DESCRIPTION); $frontendDisplayClass->setPageKeyword($SITE_KEYWORD); $frontendDisplayClass->setPageImage($SITE_URL . $SITE_IMAGE); $frontendDisplayClass->setPageFBAdmins($SITE_FB_ADMINS); $frontendDisplayClass->setPageContentMarkdown($markdown_file); $frontendDisplayClass->setPageDivs($PAGE_DIVS_ARRAY); $frontendDisplayClass->setPageDivWrapper(); $frontendDisplayClass->setPageViewport($SITE_VIEWPORT); $frontendDisplayClass->setPageRobots($SITE_ROBOTS); $frontendDisplayClass->setJavaScriptItems($JAVASCRIPTS_ITEMS); $frontendDisplayClass->setLinkItems($LINK_ITEMS); $frontendDisplayClass->setFaviconItems($FAVICONS);