Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public function getBreadcrumbs()
 {
     return $this->board->buildBreadcrumbs(array(array('text' => $this->getOption('textBreadcrumbsThreadNew'), 'active' => true)), true);
 }
Esempio n. 4
0
 /**
  * @return array
  */
 public function getBreadcrumbs()
 {
     return $this->board->buildBreadcrumbs();
 }