1
0

BxForumStudioPage.php 985 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 Forum Forum
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxForumStudioPage extends BxTemplStudioModule
  12. {
  13. protected $_sModule;
  14. protected $_oModule;
  15. function __construct($sModule, $mixedPageName, $sPage = "")
  16. {
  17. $this->_sModule = 'bx_forum';
  18. $this->_oModule = BxDolModule::getInstance($this->_sModule);
  19. parent::__construct($sModule, $mixedPageName, $sPage);
  20. $this->aMenuItems['categories'] = array('name' => 'categories', 'icon' => 'bars', 'title' => '_bx_forum_lmi_cpt_categories');
  21. }
  22. protected function getCategories()
  23. {
  24. $oGrid = BxDolGrid::getObjectInstance($this->_oModule->_oConfig->CNF['OBJECT_GRID_CATEGORIES'], BxDolStudioTemplate::getInstance());
  25. if(!$oGrid)
  26. return '';
  27. return $oGrid->getCode();
  28. }
  29. }
  30. /** @} */