BxBaseStudioMenuAccountPopup.php 879 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 UnaView UNA Studio Representation classes
  7. * @ingroup UnaStudio
  8. * @{
  9. */
  10. class BxBaseStudioMenuAccountPopup extends BxDolStudioMenuAccountPopup
  11. {
  12. public function __construct ($aObject, $oTemplate)
  13. {
  14. parent::__construct ($aObject, $oTemplate);
  15. $this->addMarkers(array(
  16. 'js_object' => BxTemplStudioMenuTop::getInstance()->getJsObject(),
  17. 'url_root' => BX_DOL_URL_ROOT,
  18. 'url_studio' => BX_DOL_URL_STUDIO
  19. ));
  20. }
  21. protected function _getMenuItem ($a)
  22. {
  23. if($a['name'] == 'featured')
  24. $a['selected'] = BxTemplStudioLauncher::getInstance()->isFeatured();
  25. return parent::_getMenuItem($a);
  26. }
  27. }
  28. /** @} */