<div id="bgbloghome">
	<div id="bobloghome" class="clearfix">
		<?php
			include '../libs/functiondb.php';
			$badb = mysqli_query($koneksi, "SELECT * FROM cmas_banner WHERE banner_id='107'");
			$badt = mysqli_fetch_array($badb);
		?>
		<div id="bloghomebox" class="clearfix">
			<div id="bloghometop">
				<div class="bloghometoptit">
					<?php echo $badt['banner_judul']; ?>
				</div>
				<div class="bloghometopdes">
					<?php echo $badt['banner_deskripsi']; ?>
				</div>
			</div>
			
			<div id="bloghomebot">
				<?php 
					$bandb = mysqli_query($koneksi, "SELECT * FROM cmas_konten WHERE kontenkat_id='2' AND konten_status='Aktif' ORDER BY konten_id DESC LIMIT 4");
					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="bloghomebotbox">
						<div id="bloghomebothed">
							<div class="bloghomebotimg">
								<a href="2<?php echo $bandt['konten_id']; ?>-<?php echo $bandt['konten_seo']; ?>">
									<?php echo $konten_image; ?>
								</a>
							</div>
						</div>
						<div id="bloghomebotfot">
							<div class="bloghomebottit">
								<a href="2<?php echo $bandt['konten_id']; ?>-<?php echo $bandt['konten_seo']; ?>">
									<?php echo $bandt['konten_judul']; ?>
								</a>
							</div>
							<div class="bloghomebotdes">
								<?php echo substr($bandt['konten_sdesc'],0,80); ?>...
							</div>
							<div class="bloghomebotdet">
								 <?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>