쇼핑몰: #107 최신글 스킨 작업 시작
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
include_once(G4_LIB_PATH.'/latest.lib.php');
|
include_once(G4_LIB_PATH.'/latest.lib.php');
|
||||||
|
include_once(G4_LIB_PATH.'/poll.lib.php');
|
||||||
|
|
||||||
define("_INDEX_", TRUE);
|
define("_INDEX_", TRUE);
|
||||||
|
|
||||||
@ -89,10 +90,10 @@ include_once(G4_SHOP_PATH.'/shop.head.php');
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<?php echo latest('basic', 'qa', 5, 30); ?>
|
<?php echo latest('shop_basic', 'qa', 5, 30); ?>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<?php echo latest('basic', 'free', 5, 30); ?>
|
<?php echo latest('shop_basic', 'free', 5, 30); ?>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<!-- 공지사항 -->
|
<!-- 공지사항 -->
|
||||||
|
|||||||
41
skin/latest/shop_basic/latest.skin.php
Normal file
41
skin/latest/shop_basic/latest.skin.php
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<?php
|
||||||
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
|
?>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="<?php echo $latest_skin_url ?>/style.css">
|
||||||
|
|
||||||
|
<div class="lt">
|
||||||
|
<strong class="lt_title"><a href="<?php echo G4_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject ?></a></strong>
|
||||||
|
<ul>
|
||||||
|
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||||
|
<li>
|
||||||
|
<?php
|
||||||
|
//echo $list[$i]['icon_reply']." ";
|
||||||
|
echo "<a href=\"".$list[$i]['href']."\">";
|
||||||
|
if ($list[$i]['is_notice'])
|
||||||
|
echo "<strong>".$list[$i]['subject']."</strong>";
|
||||||
|
else
|
||||||
|
echo $list[$i]['subject'];
|
||||||
|
|
||||||
|
if ($list[$i]['comment_cnt'])
|
||||||
|
echo $list[$i]['comment_cnt'];
|
||||||
|
|
||||||
|
echo "</a>";
|
||||||
|
|
||||||
|
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
|
||||||
|
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
|
||||||
|
|
||||||
|
if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];
|
||||||
|
if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot'];
|
||||||
|
if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
|
||||||
|
if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
|
||||||
|
if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];
|
||||||
|
?>
|
||||||
|
</li>
|
||||||
|
<?php } ?>
|
||||||
|
<?php if (count($list) == 0) { //게시물이 없을 때 ?>
|
||||||
|
<li>게시물이 없습니다.</li>
|
||||||
|
<?php } ?>
|
||||||
|
</ul>
|
||||||
|
<div class="lt_more"><a href="<?php echo G4_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><span class="sound_only"><?php echo $bo_subject ?></span>더보기</a></div>
|
||||||
|
</div>
|
||||||
7
skin/latest/shop_basic/style.css
Normal file
7
skin/latest/shop_basic/style.css
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/* 새글 스킨 (latest) */
|
||||||
|
.lt_pc {float:left;margin-left:20px}
|
||||||
|
.lt {position:relative;float:left;margin-bottom:20px;padding-bottom:10px;width:354px;height:150px;border-bottom:1px solid #ddd}
|
||||||
|
.lt ul {margin:0 0 10px;padding:0;list-style:none}
|
||||||
|
.lt li {padding:3px 0}
|
||||||
|
.lt_title {display:block;padding:10px 0 8px}
|
||||||
|
.lt_more {position:absolute;top:10px;right:0}
|
||||||
@ -1,20 +0,0 @@
|
|||||||
<?
|
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
|
||||||
?>
|
|
||||||
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
||||||
<? for ($i=0; $i<count($list); $i++) { ?>
|
|
||||||
<tr><td height=22><nobr style='display:block; overflow:hidden; width:160;'>
|
|
||||||
|
|
||||||
<img src='<?=$latest_skin_path?>/img/blot.gif' align=absmiddle width=2 height=4>
|
|
||||||
<a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a>
|
|
||||||
<span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'><?=$list[$i][comment_cnt]?></span></a></td>
|
|
||||||
</nobr>
|
|
||||||
</tr>
|
|
||||||
<? if ($i < $rows-1) { echo "<tr><td align=center><img src='$latest_skin_path/img/dot_line.gif'></td></tr>"; } ?>
|
|
||||||
<? } ?>
|
|
||||||
|
|
||||||
<? if (count($list) == 0) { ?>
|
|
||||||
<tr><td align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif">게시물이 없습니다.</td></tr>
|
|
||||||
<? } ?>
|
|
||||||
</table>
|
|
||||||
Reference in New Issue
Block a user