Ejemplo n.º 1
0
 $ctype = rex_request('ctype', 'int', 1);
 if (!array_key_exists($ctype, $ctypes)) {
     $ctype = 1;
 }
 // default = 1
 // ----- Artikel wurde gefunden - Kategorie holen
 $OOArt = rex_article::get($article_id, $clang);
 $category_id = $OOArt->getCategoryId();
 // ----- Request Parameter
 $subpage = rex_be_controller::getCurrentPagePart(2);
 $function = rex_request('function', 'string');
 $warning = htmlspecialchars(rex_request('warning', 'string'));
 $info = htmlspecialchars(rex_request('info', 'string'));
 $context = new rex_context(['page' => rex_be_controller::getCurrentPage(), 'article_id' => $article_id, 'clang' => $clang, 'ctype' => $ctype]);
 // ----- Languages
 echo rex_view::clangSwitch($context);
 // ----- Titel anzeigen
 echo rex_view::title(rex_i18n::msg('content'), '');
 // ----- category pfad und rechte
 require rex_path::addon('structure', 'functions/function_rex_category.php');
 if (rex_be_controller::getCurrentPagePart(1) == 'content' && $article_id > 0) {
     $term = $article->getValue('startarticle') == 1 ? rex_i18n::msg('start_article') : rex_i18n::msg('article');
     $catname = str_replace(' ', ' ', htmlspecialchars($article->getValue('name')));
     // TODO: if admin or recht advanced -> $KATout .= " [$article_id]";
     $navigation = [];
     $navigation[] = ['href' => $context->getUrl(), 'title' => $catname];
     $fragment = new rex_fragment();
     $fragment->setVar('title', $term);
     $fragment->setVar('items', $navigation, false);
     echo $fragment->parse('core/navigations/breadcrumb.php');
     unset($fragment);