little changes to the view for the content

This commit is contained in:
SimonGschnell
2024-09-20 14:20:44 +02:00
parent 9343d1ee0c
commit 98c85f1241
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ class Cms extends FHC_Controller
$content = current($content);
$this->load->view('CisVue/Cms/Content', ['content_id' => $content_id, 'template_kurzbz'=>$content->template_kurzbz , 'version' => $version, 'sprache' => $sprache, 'sichtbar' => $sichtbar]);
$this->load->view('CisHtml/Cms/Content', ['content_id' => $content_id, 'template_kurzbz'=>$content->template_kurzbz , 'version' => $version, 'sprache' => $sprache, 'sichtbar' => $sichtbar]);
}
/**
+6 -2
View File
@@ -19,8 +19,12 @@ if(isset($template_kurzbz)){
$this->load->view('templates/CISVUE-Header', $includesArray);
?>
<h2><?php echo isset($content_id)? "Content" : "News" ?></h2>
<hr/>
<?php if(!isset($content_id)) {
echo "
<h2>News</h2>
<hr/>";
}?>
<div id="cms">
<?php echo (isset($content_id) ? '<cms-content :content_id="'.$content_id.'" :version="'.$version.'" :sprache="'.$sprache.'" :sichtbar="'.$sichtbar.'" />' : '<cms-news/>'); ?>