<div id="bgblogpage">
	<div id="boblogpage" class="clearfix">
		<div id="bgbreadcumb">
			<div id="bobreadcumb">
				<div class="bobreadcumbtit">
					<a href="./">Beranda</a> &nbsp;&#10095;&nbsp; Blogs
				</div>
			</div>
		</div>
		
		<?php
			include '../libs/functiondb.php';
			$badb = mysqli_query($koneksi, "SELECT * FROM cmas_banner WHERE banner_id='107'");
			$badt = mysqli_fetch_array($badb);
		?>
		<div id="blogpagebox" class="clearfix">
			<div id="blogpagetop">
				<div class="blogpagetoptit">
					<?php echo $badt['banner_judul']; ?>
				</div>
				<div class="blogpagetopdes">
					<?php echo $badt['banner_deskripsi']; ?>
				</div>
			</div>
			
			<div id="blogpagebot">
				<?php 
					$bandb = mysqli_query($koneksi, "SELECT * FROM cmas_konten WHERE kontenkat_id='2' AND konten_status='Aktif' ORDER BY konten_id DESC");
					while($bandt = mysqli_fetch_array($bandb)) {
					
					if ($bandt['konten_imageid'] == 0) { 
						$konten_image = "<img src='assets/images/noimage.jpg' alt='$bandt[konten_judul]' title='$bandt[konten_judul]'>";
					} else {
						$konten_image = "<img src='assets/images/konten/$bandt[konten_image]' alt='$bandt[konten_judul]' title='$bandt[konten_judul]'>";
					}
				?>
					<div id="blogpagebotbox">
						<div id="blogpagebothed">
							<div class="blogpagebotimg">
								<a href="2<?php echo $bandt['konten_id']; ?>-<?php echo $bandt['konten_seo']; ?>">
									<?php echo $konten_image; ?>
								</a>
							</div>
						</div>
						<div id="blogpagebotfot">
							<div class="blogpagebottit">
								<a href="2<?php echo $bandt['konten_id']; ?>-<?php echo $bandt['konten_seo']; ?>">
									<?php echo $bandt['konten_judul']; ?>
								</a>
							</div>
							<div class="blogpagebotdes">
								<?php echo substr($bandt['konten_sdesc'],0,80); ?>...
							</div>
							<div class="blogpagebotdet">
								<?php echo tanggal_indo(date('Y-m-d', strtotime($bandt['konten_date'])), true); ?> &bull; <?php echo $bandt['konten_author']; ?>
							</div>
						</div>
					</div>
				<?php } ?>
			</div>
		</div>
	</div>
</div>