protected function getSearchAttributes() { $searchAttributes = parent::getSearchAttributes(); $searchAttributes['class'] = MobileUI::semanticClass('mw-ui-input', '', 'search'); return $searchAttributes; }
/** @inheritdoc */ protected function getSecondaryActions() { $result = parent::getSecondaryActions(); $result += $this->getNearbyButton(); return $result; }
/** * In addition to the main menu, this function renders the search form on top of the menu * @inheritdoc */ protected function getMainMenuHtml($data) { $templateParser = new TemplateParser(__DIR__); $args = array('searchForm' => $this->getSearchForm($data)); return $templateParser->processTemplate('searchForm', $args) . parent::getMainMenuHtml($data); }