BxPostsTemplate.php 813 B

12345678910111213141516171819202122232425262728293031323334353637
  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 Posts Posts
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /*
  12. * Module representation.
  13. */
  14. class BxPostsTemplate extends BxBaseModTextTemplate
  15. {
  16. /**
  17. * Constructor
  18. */
  19. function __construct(&$oConfig, &$oDb)
  20. {
  21. $this->MODULE = 'bx_posts';
  22. parent::__construct($oConfig, $oDb);
  23. }
  24. /**
  25. * Use Gallery image for both because currently there is no Unit types with small thumbnails.
  26. */
  27. protected function getUnitThumbAndGallery ($aData)
  28. {
  29. list($sPhotoThumb, $sPhotoGallery) = parent::getUnitThumbAndGallery($aData);
  30. return array($sPhotoGallery, $sPhotoGallery);
  31. }
  32. }
  33. /** @} */