|
@@ -12,10 +12,11 @@
|
|
|
*/
|
|
*/
|
|
|
class BxBasePageHome extends BxTemplPage
|
|
class BxBasePageHome extends BxTemplPage
|
|
|
{
|
|
{
|
|
|
|
|
+ protected $_sCanonicalUrl;
|
|
|
|
|
+
|
|
|
public function __construct($aObject, $oTemplate)
|
|
public function __construct($aObject, $oTemplate)
|
|
|
{
|
|
{
|
|
|
parent::__construct($aObject, $oTemplate);
|
|
parent::__construct($aObject, $oTemplate);
|
|
|
-
|
|
|
|
|
|
|
|
|
|
$aCover = $this->getPageCoverImage();
|
|
$aCover = $this->getPageCoverImage();
|
|
|
|
|
|
|
@@ -34,11 +35,14 @@ class BxBasePageHome extends BxTemplPage
|
|
|
'content' => $aTmplVarsCover,
|
|
'content' => $aTmplVarsCover,
|
|
|
),
|
|
),
|
|
|
), 'cover_home.html');
|
|
), 'cover_home.html');
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$sSelName = 'home';
|
|
$sSelName = 'home';
|
|
|
if(bx_get('i') !== false)
|
|
if(bx_get('i') !== false)
|
|
|
$sSelName = bx_process_input(bx_get('i'));
|
|
$sSelName = bx_process_input(bx_get('i'));
|
|
|
|
|
|
|
|
|
|
+ if($sSelName == 'home')
|
|
|
|
|
+ $this->_sCanonicalUrl = BX_DOL_URL_ROOT;
|
|
|
|
|
+
|
|
|
BxDolMenu::setSelectedGlobal('system', $sSelName);
|
|
BxDolMenu::setSelectedGlobal('system', $sSelName);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -48,6 +52,9 @@ class BxBasePageHome extends BxTemplPage
|
|
|
if (isAdmin() && getParam('site_tour_home') == 'on')
|
|
if (isAdmin() && getParam('site_tour_home') == 'on')
|
|
|
$s .= $this->_oTemplate->parseHtmlByName('homepage_tour.html', array());
|
|
$s .= $this->_oTemplate->parseHtmlByName('homepage_tour.html', array());
|
|
|
|
|
|
|
|
|
|
+ if($this->_sCanonicalUrl)
|
|
|
|
|
+ BxDolTemplate::getInstance()->setPageUrl($this->_sCanonicalUrl);
|
|
|
|
|
+
|
|
|
return $s;
|
|
return $s;
|
|
|
}
|
|
}
|
|
|
|
|
|