43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
PHP
<div class="main_box1 pull-left">
|
|
<div class="table-box">
|
|
<!-- Default panel contents -->
|
|
<div class="table-heading">
|
|
<?php echo html_escape(element('board_name', element('board', $view))); ?>
|
|
<div class="view-all pull-right">
|
|
<a href="<?php echo board_url(element('brd_key', element('board', $view))); ?>" title="<?php echo html_escape(element('board_name', element('board', $view))); ?>">더보기 <i class="fa fa-angle-right"></i></a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Table -->
|
|
<table class="table-body">
|
|
<tbody>
|
|
<?php
|
|
$i = 0;
|
|
if (element('latest', $view)) {
|
|
foreach (element('latest', $view) as $key => $value) {
|
|
?>
|
|
<tr>
|
|
<td><a href="<?php echo element('url', $value); ?>" title="<?php echo html_escape(element('title', $value)); ?>"><?php echo html_escape(element('title', $value)); ?></a>
|
|
<?php if (element('post_comment_count', $value)) { ?> <span class="latest_comment_count"> +<?php echo element('post_comment_count', $value); ?></span><?php } ?>
|
|
</td>
|
|
<td class="px80"><?php echo element('display_datetime', $value); ?></td>
|
|
</tr>
|
|
<?php
|
|
$i++;
|
|
}
|
|
}
|
|
while ($i < element('latest_limit', $view)) {
|
|
?>
|
|
<tr>
|
|
<td>게시물이 없습니다</td>
|
|
<td class="px80"></td>
|
|
</tr>
|
|
<?php
|
|
$i++;
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|