37 lines
1.3 KiB
PHP
Executable File
37 lines
1.3 KiB
PHP
Executable File
<?php echo $header; ?>
|
|
|
|
<!-- CONTENT
|
|
=================================-->
|
|
<?php $totSegments = $this->uri->total_segments();
|
|
if(!is_numeric($this->uri->segment($totSegments))){
|
|
$offset = 0;
|
|
} else if(is_numeric($this->uri->segment($totSegments))){
|
|
$offset = $this->uri->segment($totSegments);
|
|
}
|
|
$limit = 10;
|
|
?>
|
|
<div class="container content-padding">
|
|
<div class="row">
|
|
<div class="col-md-3"><div class="row">
|
|
<div class="col-md-12"><h3>Latest Articles:</h3><?php getLatestNewsSidebar(); ?></div>
|
|
<div class="col-md-12"><h3>Categories:</h3><?php getCategories(); ?></div></div>
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="row">
|
|
<div class="col-md-12"><?php getCategoryNews($page['categoryID'],$limit,$offset); ?></div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<?php getPrevBtnCategory($page['categoryID'],$limit,$offset); ?>
|
|
<?php getNextBtnCategory($page['categoryID'],$limit,$offset); ?>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12 text-center"><p class="meta"><?php countCategoryPosts($page['categoryID'],$limit,$offset); ?></p></div>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
</div>
|
|
<!-- /CONTENT ============-->
|
|
|
|
<?php echo $footer; ?>
|