BxOceanAlertsResponse.php 733 B

123456789101112131415161718192021222324252627282930313233
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup Ocean Ocean Template
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxOceanAlertsResponse extends BxBaseModTemplateAlertsResponse
  12. {
  13. function __construct()
  14. {
  15. $this->_sModule = 'bx_ocean';
  16. parent::__construct();
  17. }
  18. protected function _processSystemChangeLogo($oAlert)
  19. {
  20. $sPrefix = $this->_oModule->_oConfig->getPrefix('option');
  21. if(!in_array($oAlert->aExtras['option'], ['sys_site_logo', $sPrefix . 'site_logo']))
  22. return;
  23. setParam($sPrefix . 'site_logo_aspect_ratio', '');
  24. }
  25. }
  26. /** @} */