| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
- * CC-BY License - http://creativecommons.org/licenses/by/3.0/
- *
- * @defgroup TridentCore Trident Core
- * @{
- */
- /**
- * Homepage.
- */
- class BxBasePageHome extends BxTemplPage
- {
- protected $_sTourTheme = 'default';
- public function __construct($aObject, $oTemplate)
- {
- parent::__construct($aObject, $oTemplate);
- $this->addMarkers(array('site_title' => getParam('site_title')));
- }
- public function getCode ()
- {
- $s = parent::getCode ();
- if (isAdmin())
- $s .= $this->_oTemplate->parseHtmlByName('homepage_tour.html', array('tour_theme' => $this->_sTourTheme));
- return $s;
- }
- protected function _addJsCss()
- {
- parent::_addJsCss();
- if (isAdmin()) {
- $this->_oTemplate->addJs('shepherd/shepherd.min.js');
- $this->_oTemplate->addCss(BX_DIRECTORY_PATH_PLUGINS_PUBLIC . 'shepherd/css/|shepherd-theme-' . $this->_sTourTheme . '.css');
- }
- }
- }
- /** @} */
|