| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup UnaBaseView UNA Base Representation Classes
- * @{
- */
- /**
- * Menu representation.
- * @see BxDolMenu
- */
- class BxBaseMenuAccount extends BxTemplMenu
- {
- public function __construct ($aObject, $oTemplate)
- {
- parent::__construct ($aObject, $oTemplate);
- $this->addMarkers(array(
- 'studio_url' => BX_DOL_URL_STUDIO
- ));
- }
- /**
- * Check if menu items are visible with extended checking
- * @param $a menu item array
- * @return boolean
- */
- protected function _isVisible ($a)
- {
- if($a['name'] == 'studio' && !isAdmin())
- return false;
- return parent::_isVisible($a);
- }
- }
- /** @} */
|