| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?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 BaseNotifications Base classes for Notifications like modules
- * @ingroup DolphinModules
- *
- * @{
- */
- bx_import('BxBaseModGeneralTemplate');
- class BxBaseModNotificationsTemplate extends BxBaseModGeneralTemplate
- {
- function __construct(&$oConfig, &$oDb)
- {
- parent::__construct($oConfig, $oDb);
- }
- public function getCssJs()
- {
- $this->addCss(array(
- 'view.css',
- 'view-media-tablet.css',
- 'view-media-desktop.css',
- ));
- $this->addJs(array(
- 'jquery.anim.js',
- 'main.js',
- 'view.js',
- ));
- }
- public function getJsCode($sType, $aParams = array(), $bWrap = true)
- {
- $oModule = $this->getModule();
- $sBaseUri = $this->_oConfig->getBaseUri();
- $sJsClass = $this->_oConfig->getJsClass($sType);
- $sJsObject = $this->_oConfig->getJsObject($sType);
- $aParams = array_merge(array(
- 'iOwnerId' => $oModule->_iOwnerId,
- 'sAnimationEffect' => $this->_oConfig->getAnimationEffect(),
- 'iAnimationSpeed' => $this->_oConfig->getAnimationSpeed(),
- 'aHtmlIds' => $this->_oConfig->getHtmlIds($sType)
- ), $aParams);
- $this->getCssJs();
- return parent::getJsCode($sType, $aParams, $bWrap);
- }
- protected function getModule()
- {
- $sName = $this->_oConfig->getName();
- return BxDolModule::getInstance($sName);
- }
- }
- /** @} */
|