| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup BaseTemplate Base classes for template modules
- * @ingroup UnaModules
- *
- * @{
- */
- bx_import('BxBaseModGeneralConfig');
- class BxBaseModTemplateConfig extends BxBaseModGeneralConfig
- {
- protected $_oDb;
- protected $_iLogo;
- protected $_sLogoAlt;
- protected $_iLogoWidth;
- protected $_iLogoHeight;
- function __construct($aModule)
- {
- parent::__construct($aModule);
- }
- public function init(&$oDb)
- {
- $this->_oDb = &$oDb;
- $sOptionPrefix = $this->getPrefix('option');
- $this->_iLogo = (int)$this->_oDb->getParam($sOptionPrefix . 'site_logo');
- $this->_sLogoAlt = $this->_oDb->getParam($sOptionPrefix . 'site_logo_alt');
- $this->_iLogoWidth = (int)$this->_oDb->getParam($sOptionPrefix . 'site_logo_width');
- $this->_iLogoHeight = (int)$this->_oDb->getParam($sOptionPrefix . 'site_logo_height');
- }
- public function getLogoParams()
- {
- $sPrefix = $this->getPrefix('option');
- return array(
- $sPrefix . 'site_logo',
- $sPrefix . 'site_logo_alt',
- $sPrefix . 'site_logo_width',
- $sPrefix . 'site_logo_height'
- );
- }
- public function getLogo()
- {
- return $this->_iLogo;
- }
- public function getLogoAlt()
- {
- return $this->_sLogoAlt;
- }
- public function getLogoWidth()
- {
- return $this->_iLogoWidth;
- }
- public function getLogoHeight()
- {
- return $this->_iLogoHeight;
- }
- }
- /** @} */
|