테마기능 추가
This commit is contained in:
19
theme/basic/skin/popular/basic/popular.skin.php
Normal file
19
theme/basic/skin/popular/basic/popular.skin.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$popular_skin_url.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<!-- 인기검색어 시작 { -->
|
||||
<section id="popular">
|
||||
<div>
|
||||
<h2>인기검색어</h2>
|
||||
<ul>
|
||||
<?php 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 $list[$i]['pp_word'] ?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<!-- } 인기검색어 끝 -->
|
||||
12
theme/basic/skin/popular/basic/style.css
Normal file
12
theme/basic/skin/popular/basic/style.css
Normal file
@ -0,0 +1,12 @@
|
||||
@charset "utf-8";
|
||||
/* SIR 지운아빠 */
|
||||
|
||||
/* 인기검색어 */
|
||||
#popular {border-bottom:1px dotted #dde4e9}
|
||||
#popular div {margin:0 auto;width:970px;zoom:1}
|
||||
#popular div:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#popular h2 {float:left;padding:10px 45px 10px 0}
|
||||
#popular ul {float:left;margin:0;padding:0;list-style:none}
|
||||
#popular li {float:left}
|
||||
#popular a {display:inline-block;padding:10px;text-decoration:none}
|
||||
#popular a:focus, #popular a:hover {}
|
||||
Reference in New Issue
Block a user