Ejemplo n.º 1
0
 /**
  * @param rex_article         $art
  * @param rex_yrewrite_domain $domain
  *
  * @return string|false
  */
 public function getCustomUrl(rex_article $art, rex_yrewrite_domain $domain)
 {
     if ($domain->getStartId() == $art->getId()) {
         if ($domain->getStartClang() == $art->getClang()) {
             return '/';
         }
         return $this->getClang($art->getClang(), $domain) . '/';
     }
     if ($url = $art->getValue('yrewrite_url')) {
         return $url;
     }
     return false;
 }
Ejemplo n.º 2
0
 protected function listItem(rex_article $article, $category_id)
 {
     $liAttr = ' class="list-group-item"';
     $url = 'javascript:insertLink(\'redaxo://' . $article->getId() . '\',\'' . addslashes(htmlspecialchars($article->getName())) . '\');';
     return rex_linkmap_tree_renderer::formatLi($article, $category_id, $this->context, $liAttr, ' href="' . $url . '"') . '</li>' . "\n";
 }