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

<div class="single_bottom_rightbar">
	<h2><i class="fa fa-comments"></i>&ensp;<?= $judul_widget ?></h2>
	<div id="mostPopular2" class="tab-pane fade in active" role="tabpanel">
		<ul id="ul-menu">
			<div class="box-body">
				<marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="3" direction="up" width="100%" height="280" align="center" behavior=”alternate”>
					<ul class="sidebar-latest" id="li-komentar">
						<?php foreach($komen As $data): ?>
							<li>
								<table class="table table-bordered table-striped dataTable table-hover">
									<thead class="bg-gray disabled color-palette">
										<tr>
											<th><i class="fa fa-comment"></i> <?= $data['owner']?></th>
										</tr>
									</thead>
									<tbody>
										<tr>
											<td>
												<font color='green'><small><?= tgl_indo2($data['tgl_upload'])?></small></font><br/><?= potong_teks($data['komentar'], 50); ?>...<a href="<?= site_url('artikel/' . buat_slug($data)); ?>">selengkapnya</a>
											</td>
										</tr>
									</tbody>
								</table>
							</li>
						<?php endforeach; ?>
					</ul>
				</marquee>
			</div>
		</ul>
	</div>
</div>
