예제 #1
0
 public function __construct($imgroot, PFUser $user, $request_uri, $selected_top_tab, HTTPRequest $request, $title, $search_form_presenter, $display_new_account, $motd, FlamingParrot_NavBarItemPresentersCollection $navbar_items_collection)
 {
     $this->imgroot = $imgroot;
     $this->user = $user;
     $this->request_uri = $request_uri;
     $this->request = $request;
     $this->selected_top_tab = $selected_top_tab;
     $this->title = $title;
     $this->search_form_presenter = $search_form_presenter;
     $this->display_new_account = $display_new_account;
     $this->motd = $motd;
     $this->has_motd = !empty($motd);
     $this->number_of_page_results = Search_SearchPlugin::RESULTS_PER_QUERY;
     $this->navbar_items = $navbar_items_collection->getItems();
 }
 private function addHelpItem(FlamingParrot_NavBarItemPresentersCollection $collection)
 {
     $item = new FlamingParrot_NavBarItemDropdownPresenter('help', $this->isNavBarItemActive(array('/site/', '/contact.php', '/soap/index.php'), 'site'), $GLOBALS['Language']->getText('include_menu', 'help'));
     $item->addSection(new FlamingParrot_NavBarItemDropdownSectionPresenter(array(new FlamingParrot_NavBarItemLinkPresenter(self::$NO_ID, self::$NOT_ACTIVE, '/site/', $GLOBALS['Language']->getText('include_menu', 'get_help')), new FlamingParrot_NavBarItemLinkPresenter(self::$NO_ID, self::$NOT_ACTIVE, '/soap/index.php/', $GLOBALS['Language']->getText('include_menu', 'soap_api')))));
     $item->addSection(new FlamingParrot_NavBarItemDropdownSectionPresenter(array(new FlamingParrot_NavBarItemLinkPresenter(self::$NO_ID, self::$NOT_ACTIVE, '/contact.php', $GLOBALS['Language']->getText('include_menu', 'contact_us')))));
     $collection->addItem($item);
 }