<section>
	<div class="gap black-layer opc9">
		<div class="fixed-bg2" style="background-image: url(<?=base_url();?>agung/assets/images/pg-tp-bg.jpg);"></div>
		<div class="container">
			<div class="pg-tp-wrp text-center">
				<div class="pg-tp-inr">
				<h1 itemprop="headline">Berita</h1>
					<ol class="breadcrumb">
					<li class="breadcrumb-item"><a href="<?=base_url();?>" title="" itemprop="url">Home</a></li>
					<li class="breadcrumb-item"><a href="#" title="" itemprop="url">Berita</a></li>
					</ol>
				</div>
			</div>
		</div>
</div>
</section>





<section>
<div class="gap">
<div class="container">
<div class="blog-detail-wrp">
<div class="row">
<?php $ko=0; foreach($blog as $b): $ko++; 
if($this->session->userdata('language')=="en"){
	$b_judul=$b->judul_ing;
	$b_isi=strip_tags(substr($b->isi_ing, 0 , 200));
	$b_tgl=$b->tanggal;
}
if($this->session->userdata('language')==""){
	$b_judul=$b->judul_ind;
	$b_isi=strip_tags(substr($b->isi_ind, 0 , 100));
	$b_tgl=tgl_indo($b->tanggal);
}
$url=alamat($b_judul);
?>
			<div class="col-md-4 col-sm-6 col-lg-4">
			<div class="post-bx brd-rd5 blog-grid-cont">
			<div class="post-thmb"><a href="<?php echo base_url(); ?>index.php/news/detail/<?php echo $b->id."/".$url ; ?>" title="<?php echo $b_judul ; ?>" itemprop="url"><img src="<?php echo base_url(); ?>agung/berita/<?php echo $b->foto ; ?>" alt="<?php echo $b_judul ; ?>" itemprop="image"></a></div>
			<div class="post-inf">
			<h5 itemprop="headline"><a href="<?php echo base_url(); ?>index.php/news/detail/<?php echo $b->id."/".$url ; ?>" title="" itemprop="url"><?php echo $b_judul ; ?></a></h5>
			<ul class="pst-mta">
			<li><i class="far fa-calendar-alt theme-clr"></i> <?php echo $b_tgl ; ?></li>
			<li><i class="far fa-user theme-clr"></i> By <a href="#" title="" itemprop="url"><?php echo $b->oleh; ?></a></li>
			</ul>
			<p itemprop="description"><?php echo $b_isi ; ?></p>
			<a href="<?php echo base_url(); ?>index.php/news/detail/<?php echo $b->id."/".$url ; ?>" title="" itemprop="url">View Details</a>
			</div>
			</div>
			</div>	
				

<?php endforeach;?>



</div>
</div>
</div>
</div>
</section>