<?php  if(!defined('BASEPATH')) exit('No direct script access allowed'); ?>

<header>
	<div class="top-header d-lg-block d-none">
		<div class="container">
			<div class="social-link justify-content-start">
				<ul>
					<?php if($sosmed[nested_array_search('Facebook',$sosmed)]['enabled'] == 1 && $sosmed[nested_array_search('Facebook', $sosmed)]['link']) : ?>
						<li>
							<a href="<?= $sosmed[nested_array_search('Facebook',$sosmed)]['link'] ?>" target="_blank"><i class="fab fa-facebook"></i></a>
						</li>
					<?php endif ?>
					<?php if($sosmed[nested_array_search('Twitter', $sosmed)]['enabled'] == 1 && $sosmed[nested_array_search('Twitter', $sosmed)]['link']) : ?>
						<li>
							<a href="<?= $sosmed[nested_array_search('Twitter', $sosmed)]['link'] ?>" target="_blank"><i class="fab fa-twitter"></i></a>
						</li>
					<?php endif ?>
					<?php if($sosmed[nested_array_search('Google Plus', $sosmed)]['enabled'] == 1 && $sosmed[nested_array_search('Google Plus', $sosmed)]['link']) : ?>
						<li>
							<a href="<?= $sosmed[nested_array_search('Google Plus', $sosmed)]['link'] ?>" target="_blank"><i class="fab fa-google-plus-g"></i></a>
						</li>
					<?php endif ?>
					<?php if($sosmed[nested_array_search('Instagram', $sosmed)]['enabled'] == 1 && $sosmed[nested_array_search('Instagram', $sosmed)]['link']) : ?>
						<li>
							<a href="<?= $sosmed[nested_array_search('Instagram', $sosmed)]['link'] ?>" target="_blank"><i class="fab fa-instagram"></i></a>
						</li>
					<?php endif ?>
					<?php if($sosmed[nested_array_search('YouTube', $sosmed)]['enabled'] == 1 && $sosmed[nested_array_search('YouTube', $sosmed)]['link']) : ?>
						<li>
							<a href="<?= $sosmed[nested_array_search('YouTube', $sosmed)]['link'] ?>" target="_blank"><i class="fab fa-youtube"></i></a>
						</li>
					<?php endif ?>
					<?php if($sosmed[nested_array_search('WhatsApp', $sosmed)]['enabled'] == 1 && $sosmed[nested_array_search('WhatsApp', $sosmed)]['link']) : ?>
						<li>
							<a href="<?= $sosmed[nested_array_search('WhatsApp', $sosmed)]['link'] ?>" target="_blank"><i class="fab fa-whatsapp"></i></a>
						</li>
					<?php endif ?>
				</ul>
			</div>
			<div class="meta-desa justify-content-end">
				<ul>
					<?php if($desa['alamat_kantor']) : ?>
						<li>
							<span><i class="fa fa-map-marker-alt"></i></span>
							<span><?= $desa['alamat_kantor'] ?></span>
						</li>
					<?php endif ?>
					<?php if($desa['telepon']) : ?>
						<li>
							<span><i class="fa fa-phone"></i></span>
							<span><?= $desa['telepon'] ?></span>
						</li>
					<?php endif ?>
					<?php if($desa['email_desa']) : ?>
						<li>
							<span><i class="fa fa-envelope"></i></span>
							<span><?= $desa['email_desa'] ?></span>
						</li>
					<?php endif ?>
				</ul>
			</div>
		</div>
	</div>
	<?php $this->load->view($folder_themes . '/partials/marquee'); ?>
	<div class="identitas-desa">
		<div class="container">
			<a href="<?= site_url('first'); ?>" class="brand">
				<div class="logo">
						<img src="<?= LogoDesa($desa['logo']) ?>" alt="<?= ucfirst($this->setting->sebutan_desa).' '.ucwords($desa['nama_desa']) ?>" class="img-fluid">
				</div>
				<div class="detail">
					<h1 class="h1">
						<span><?= strtoupper($this->setting->sebutan_desa) ?></span>
						<span><?= strtoupper($desa['nama_desa']); ?></span>
					</h1>
					<div style="margin-top:-18px" class="ket">
						<span>
						<?= ucfirst($this->setting->sebutan_kecamatan) ?> 
						<?= ucwords($desa['nama_kecamatan']) ?>
						<?= ucfirst($this->setting->sebutan_kabupaten) ?>
						<?= ucwords($desa['nama_kabupaten']) ?>
						</span>
						<?php  ?>
					</div>
				</div>
			</a>
		</div>
	</div>
</header>