| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?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')));
- $oCover = BxDolCover::getInstance();
- $oCover->set(array(
- 'class' => 'bx-cover-homepage',
- 'title' => _t('_sys_txt_homepage_cover'),
- 'actions' => '',
- 'bx_if:image' => array (
- 'condition' => false,
- 'content' => array(),
- ),
- 'bx_if:icon' => array (
- 'condition' => false,
- 'content' => array(),
- ),
- 'bx_if:bg' => array (
- 'condition' => false,
- 'content' => array(),
- ),
- ));
- }
- 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(array(
- 'shepherd/js/tether.min.js',
- 'shepherd/js/shepherd.min.js',
- ));
- $this->_oTemplate->addCss(array(
- 'homepage.css',
- BX_DIRECTORY_PATH_PLUGINS_PUBLIC . 'shepherd/css/|shepherd-theme-' . $this->_sTourTheme . '.css'
- ));
- }
- }
- }
- /** @} */
|