19 lines
630 B
PHP
19 lines
630 B
PHP
<div class="slickit" style="margin:71px 0 10px 0; background: #1BA964;">
|
|
<?php
|
|
$data=$db->query("SELECT * FROM info where st_aktif = 1");
|
|
foreach($data->fetchAll() as $row){
|
|
$bg_info = ($row['info_class'] != '') ? $row['info_class'] : '';
|
|
echo '<div style="padding: .5rem 1rem !important;margin-bottom:.25rem !important;color:#fff;" class="'.$bg_info.'"><i class="fa fa-chevron-right"></i> '.$row['isi_info'].'</div>';
|
|
}
|
|
?>
|
|
</div>
|
|
<script type="text/javascript">
|
|
jQuery(document).ready(function(){
|
|
jQuery(".slickit").slick({
|
|
"autoplay" : true,
|
|
"autoplaySpeed" : 5000,
|
|
"arrows" : false,
|
|
"dots" : false
|
|
});
|
|
});
|
|
</script>
|