BxPostsTemplate.php 779 B

1234567891011121314151617181920212223242526272829303132333435
  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. function __construct(&$oConfig, &$oDb)
  17. {
  18. $this->MODULE = 'bx_posts';
  19. parent::__construct($oConfig, $oDb);
  20. }
  21. /**
  22. * Use Gallery image for both because currently there is no Unit types with small thumbnails.
  23. */
  24. protected function getUnitThumbAndGallery ($aData)
  25. {
  26. list($sPhotoThumb, $sPhotoGallery) = parent::getUnitThumbAndGallery($aData);
  27. return array($sPhotoGallery, $sPhotoGallery);
  28. }
  29. }
  30. /** @} */