For site-map and members only pages need default page for the blocks.
using page 41 (about us)
if ( defined("GLM_BLOCKS")
&& GLM_BLOCKS
- && !filter_var($_REQUEST[ 'sitemap'], FILTER_VALIDATE_INT)
- && !isset($_REQUEST['query'])
) {
$this->_getBlocks($this->topParentId);
}
*/
private function _getBlocks($parentId)
{
- if ($this->_catid == HOME_ID) {
+ if ($this->_catid == HOME_ID && $this->isHomePage) {
$parentId = HOME_ID;
+ } else if (!$this->isHomePage
+ && in_array($this->_catid, array(HOME_ID, MEMBERS_CATEGORY))
+ ) {
+ $parentId = DEFAULT_PAGE_BLOCK;
}
$cache = new Cache_Lite($GLOBALS['cacheOptions']);
if ($blockContent = $cache->get($parentId, 'Block')) {
{
$GLOBALS['styleSheets'][] = MEDIA_BASE_URL . 'css/siteMap.css';
$navArray = $this->getNavArray(0);
- $tPage = new stdClass();
+ $tPage = new stdClass();
$tpl = new HTML_Template_Flexy(
$GLOBALS['flexyOptions']
);
$tPage->nav = $navArray;
-// echo '<pre>'.print_r($tPage, true).'</pre>';exit;
-// $tpl->compile('siteMap.html');
+ //echo '<pre>'.print_r($tPage, true).'</pre>';exit;
+ //$tpl->compile('siteMap.html');
return $tPage;
-// return $tpl->bufferedOutputObject($page);
}
// }}}
}
$securePagesArray = array();
define('SECURE_PAGES', serialize($securePagesArray));
+define('DEFAULT_PAGE_BLOCK', 41);
$mainNavigationUl = array(
'activities' => 2,
'attractions' => 7,