public function getBreadcrumbs() { $defaults = array(); if (!empty($this->options['showTitleInBreadcrumbs'])) { $defaults[] = array('text' => $this->modx->lexicon('discuss.reply_to_post', array('post' => '<a class="active" href="' . $this->discuss->request->makeUrl('thread', array('thread' => $this->thread->get('id'))) . '">' . $this->post->get('title') . '</a>')), 'active' => true); } return $this->board->buildBreadcrumbs($defaults, true); }
public function getBreadcrumbs() { /* build breadcrumbs */ $trail = ''; if (empty($this->board)) { $this->board = $this->thread->getOne('Board'); } if ($this->board) { $default = array(); if (!empty($this->options['showTitleInBreadcrumbs'])) { $default[] = array('text' => $this->modx->lexicon('discuss.modify_post_header', array('post' => $this->post->get('title'))), 'active' => true); } $this->board->buildBreadcrumbs($default, true); $trail = $this->board->get('trail'); } return $trail; }
public function getBreadcrumbs() { return $this->board->buildBreadcrumbs(array(array('text' => $this->getOption('textBreadcrumbsThreadNew'), 'active' => true)), true); }
/** * @return array */ public function getBreadcrumbs() { return $this->board->buildBreadcrumbs(); }