first commit

This commit is contained in:
pakerpale
2020-06-10 06:21:34 +09:00
commit 20c9739ba9
1913 changed files with 266257 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?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; ?>