If anyone likes a cleaner design like this: Please go to: /html/billing/plugins/announcements/views/default/client_main_view.pdt And replace the code with:
<?php
// Don't show this container when only rendering the widget section
if (!$this->Html->ifSet($render_section)) {
?>
<div class="col-md-12">
<?php
}
echo $this->Html->ifSet($message);
$this->WidgetClient->clear();
$this->WidgetClient->setStyleSheet($this->view_dir . "css/styles.css", array('id' => "announcements_styles"));
$this->WidgetClient->create($this->_("ClientMain.view.boxtitle_announcement", true, $this->Html->ifSet($announcement->title)), array('id'=>"announcements_client_main_article"), $this->Html->ifSet($render_section, null));
$this->WidgetClient->startBody();
?>
<div class="announcement">
<!---
<aside>
<div class="col-md-3 ">
<div class="panel panel-default" id="accordion">
<ul class="list-group">
<li>
<a href="<?php echo $this->Html->safe($this->base_uri . "plugin/announcements/client_main/");?>" >
<?php $this->_("ClientMain.view.root_directory");?>
<span class="pull-right">
<span class="glyphicon glyphicon-home"></span>
</span>
</a>
</li>
<li>
<a href="#" >
<?php $this->_("ClientMain.view.date");?><?php $this->Html->_($announcement->date_added);?>
<span class="pull-right">
<span class="glyphicon glyphicon-time"></span>
</span>
</a>
</li>
</ul>
</div>
</div>
</aside>
-->
<div class="col-md-12 ">
<ol class="breadcrumb">
<li>
<a href="<?php echo $this->Html->safe($this->base_uri . "plugin/announcements/client_main/index/");?>">
<?php $this->_("ClientMain.view.root_directory");?>
</a>
</li>
<li class="active" >
<?php $this->Html->_($announcement->title);?>
</li>
</ol>
<div class="page-header">
<h2><?php $this->Html->_($announcement->title);?></h2>
</div>
<?php
if (!empty($announcement)) {
?>
<div>
<div class="article_view">
<?php echo $this->Html->ifSet($announcement->body);?>
<!--- <?php echo $this->TextParser->encode("markdown", $announcement->body);?> -->
</div>
</div>
<?php
}
else {
?>
<div class="col-md-12">
<h3><?php $this->_("ClientMain.view.announcements");?></h3>
<div class="alert alert-info">
<p><?php $this->_("ClientMain.view.no_announcement");?></p>
</div>
</div>
<?php
}
?>
</div>
</div>
<?php
$this->WidgetClient->endBody();
$this->WidgetClient->end();
// Don't show this container when only rendering the widget section
if (!$this->Html->ifSet($render_section)) {
?>
</div>
<?php
}
?>
Idea mate: Maybe a counter to say how many people have viewed the annoucement?