protected function buildNavBar() { $this->navbar->popEntry(); $title = $this->newsletter->getCampaignTitle(); $link = sprintf('Newsletter/Details?id=%s', $this->newsletter->id); $this->navbar->createEntry($title, $link); $this->navbar->createEntry(Deliverance::_('Cancel Delivery')); }
protected function buildNavBar() { parent::buildNavBar(); if ($this->newsletter->id !== null) { $last = $this->navbar->popEntry(); $title = $this->newsletter->getCampaignTitle(); $link = sprintf('Newsletter/Details?id=%s', $this->newsletter->id); $this->navbar->createEntry($title, $link); $this->navbar->addEntry($last); } }
protected function buildNavBar() { parent::buildNavBar(); $this->navbar->createEntry($this->newsletter->getCampaignTitle()); }