BxOrgsTemplate.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 Organizations Organizations
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /*
  12. * Organizations module representation.
  13. */
  14. class BxOrgsTemplate extends BxBaseModGroupsTemplate
  15. {
  16. function __construct(&$oConfig, &$oDb)
  17. {
  18. $this->MODULE = 'bx_organizations';
  19. parent::__construct($oConfig, $oDb);
  20. $this->_bLetterAvatar = true;
  21. $this->_sUnitClass = 'bx-base-pofile-unit';
  22. $this->_sUnitClassWoCover = $this->_sUnitClass;
  23. $this->_sUnitClassWithCover = 'bx-base-pofile-unit-with-cover';
  24. $this->_sUnitClassWoInfo = 'bx-base-pofile-unit-wo-info';
  25. $this->_sUnitClassWoInfoShowCase = 'bx-base-pofile-unit-wo-info bx-base-unit-showcase bx-base-pofile-unit-wo-info-showcase';
  26. $this->_sUnitClassShowCase = 'bx-base-pofile-unit-with-cover bx-base-unit-showcase bx-base-pofile-unit-showcase';
  27. }
  28. protected function _getUnitClass($aData, $sTemplateName = 'unit.html')
  29. {
  30. return BxBaseModProfileTemplate::_getUnitClass($aData, $sTemplateName);
  31. }
  32. protected function _getUnitSize($aData, $sTemplateName = 'unit.html')
  33. {
  34. return BxBaseModProfileTemplate::_getUnitSize($aData, $sTemplateName);
  35. }
  36. }
  37. /** @} */