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

<div class="slick_slider" style="margin-bottom:5px;">
<?php $active = true; ?>
<?php foreach ($slider_gambar['gambar'] as $gambar) : ?>
	<?php $file_gambar = $slider_gambar['lokasi'] . 'sedang_' . $gambar['gambar']; ?>
	<?php if(is_file($file_gambar)) : ?>
		<div class="single_iteam <?= ($active == true)?"active":"" ?>" data-artikel="<?= $gambar['id']?>" <?php if ($slider_gambar['sumber'] != 3): ?> onclick="location.href='<?='artikel/'.buat_slug($gambar); ?>'" <?php endif; ?>>
			<img class="tlClogo" src="<?= base_url("{$slider_gambar['lokasi']}sedang_{$gambar['gambar']}") ?>">
			<div class="<?php if ($gambar['judul']): ?>textgambar <?php endif; ?>hidden-xs"><?= $gambar['judul'] ?></div>
		</div>
	<?php $active = false; ?>
	<?php endif; ?>
<?php endforeach; ?>
</div>
<script>
	$('.tlClogo').bind('contextmenu', function(e) {
		return false;
	});
</script>