테마기능 추가

This commit is contained in:
chicpro
2015-08-31 14:22:30 +09:00
parent bc74dad81b
commit a2f2e19c95
542 changed files with 54577 additions and 779 deletions

View File

@ -0,0 +1,10 @@
/* 방문자 집계 */
#visit {margin:0 0 20px;padding:0 15px;background:#444;zoom:1}
#visit:after {display:block;visibility:hidden;clear:both;content:''}
#visit h2 {float:left;padding:10px 45px 10px 0;color:#fff}
#visit dl {float:left;margin:0 0 0 10px;padding:0}
#visit dt {float:left;margin:0;padding:10px 0 10px;color:#fff}
#visit dd {float:left;margin:0 30px 0 0;padding:10px;color:#fff}
#visit a {display:inline-block;padding:10px;color:#fff;text-decoration:none}
#visit a:focus,
#visit a:hover {background:#333;color:#fff}

View File

@ -0,0 +1,26 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
global $is_admin;
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$visit_skin_url.'/style.css">', 0);
?>
<section id="visit">
<div>
<h2>접속자집계</h2>
<dl>
<dt>오늘</dt>
<dd><?php echo number_format($visit[1]) ?></dd>
<dt>어제</dt>
<dd><?php echo number_format($visit[2]) ?></dd>
<dt>최대</dt>
<dd><?php echo number_format($visit[3]) ?></dd>
<dt>전체</dt>
<dd><?php echo number_format($visit[4]) ?></dd>
</dl>
<?php if ($is_admin == "super") { ?><a href="<?php echo G5_ADMIN_URL ?>/visit_list.php">상세보기</a><?php } ?>
</div>
</section>
<!-- } 접속자집계 끝 -->