37 lines
1.2 KiB
PHP
37 lines
1.2 KiB
PHP
<?php
|
|
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
|
|
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
|
add_stylesheet('<link rel="stylesheet" href="'.$popular_skin_url.'/style.css">', 0);
|
|
add_javascript('<script src="'.G5_JS_URL.'/jquery.bxslider.js"></script>', 10);
|
|
?>
|
|
|
|
<!-- 인기검색어 시작 { -->
|
|
<section id="popular">
|
|
<h2>인기검색어</h2>
|
|
<div class="popular_inner">
|
|
<ul>
|
|
<?php
|
|
if( isset($list) && is_array($list) ){
|
|
for ($i=0; $i<count($list); $i++) {
|
|
?>
|
|
<li><a href="<?php echo G5_BBS_URL ?>/search.php?sfl=wr_subject&sop=and&stx=<?php echo urlencode($list[$i]['pp_word']) ?>"><?php echo get_text($list[$i]['pp_word']); ?></a></li>
|
|
<?php
|
|
} //end for
|
|
} //end if
|
|
?>
|
|
</ul>
|
|
</div>
|
|
</section>
|
|
|
|
<?php if (count($list)) { //게시물이 있다면 ?>
|
|
<script>
|
|
$('.popular_inner ul').bxSlider({
|
|
hideControlOnEnd: true,
|
|
pager:false,
|
|
nextText: '<i class="fa fa-angle-right" aria-hidden="true"></i>',
|
|
prevText: '<i class="fa fa-angle-left" aria-hidden="true"></i>'
|
|
});
|
|
</script>
|
|
<?php } ?>
|
|
<!-- } 인기검색어 끝 -->
|