사용자: 갤러리스킨 스타일 중
This commit is contained in:
@ -481,9 +481,14 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#333;color:#fff;
|
|||||||
#bo_img h2 {margin:0;padding:0;font-size:0;line-height:0;overflow:hidden}
|
#bo_img h2 {margin:0;padding:0;font-size:0;line-height:0;overflow:hidden}
|
||||||
#bo_img_list {margin:0;padding:0;list-style:none;zoom:1}
|
#bo_img_list {margin:0;padding:0;list-style:none;zoom:1}
|
||||||
#bo_img_list:after {display:block;visibility:hidden;clear:both;content:""}
|
#bo_img_list:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
.bo_img_list_li {float:left;margin-bottom:20px}
|
.bo_img_list_li {float:left;margin:0 10px 20px 0}
|
||||||
|
|
||||||
.bo_img_con {margin:0;padding:0;list-style:none}
|
.bo_img_con {margin:0;padding:0;list-style:none}
|
||||||
.bo_img_con li {}
|
.bo_img_con li {}
|
||||||
|
.bo_img_con li strong {display:block;width:174px;height:124px;background:#f7f7f7;text-align:center;line-height:10em}
|
||||||
|
.bo_img_href,
|
||||||
|
.bo_img_href:focus,
|
||||||
|
.bo_img_href:hover {text-decoration:none}
|
||||||
|
|
||||||
/* 목록 공통 */
|
/* 목록 공통 */
|
||||||
.bo_fx {margin-bottom:5px;zoom:1}
|
.bo_fx {margin-bottom:5px;zoom:1}
|
||||||
|
|||||||
@ -47,11 +47,14 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
|||||||
<ul id="bo_img_list">
|
<ul id="bo_img_list">
|
||||||
<? for ($i=0; $i<count($list); $i++) {
|
<? for ($i=0; $i<count($list); $i++) {
|
||||||
if($i>0 && ($i % $board['bo_gallery_cols'] == 0))
|
if($i>0 && ($i % $board['bo_gallery_cols'] == 0))
|
||||||
$style = 'style="clear:both;"';
|
$style = 'clear:both;';
|
||||||
else
|
else
|
||||||
$style = '';
|
$style = '';
|
||||||
|
if ($i == 0) $k = 0;
|
||||||
|
$k += 1;
|
||||||
|
if ($k % $board['bo_gallery_cols'] == 0) $style .= "margin:0 !important;";
|
||||||
?>
|
?>
|
||||||
<li class="bo_img_list_li <? // 현재 읽고 있는 글이면, ?>bo_img_now" <?=$style?>>
|
<li class="bo_img_list_li <? // 현재 읽고 있는 글이면, ?>bo_img_now" style="<?=$style?>">
|
||||||
<? if ($is_checkbox) { ?><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i]['wr_id']?>" title="<?=$list[$i]['subject']?> 선택"><? } ?>
|
<? if ($is_checkbox) { ?><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i]['wr_id']?>" title="<?=$list[$i]['subject']?> 선택"><? } ?>
|
||||||
<span class="sound_only">
|
<span class="sound_only">
|
||||||
<?
|
<?
|
||||||
@ -63,11 +66,10 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
|||||||
</span>
|
</span>
|
||||||
<ul class="bo_img_con">
|
<ul class="bo_img_con">
|
||||||
<li>
|
<li>
|
||||||
|
<a href="<?=$list[$i]['href']?>" class="bo_img_href">
|
||||||
<? if ($list[$i]['is_notice']) { // 공지사항 ?><strong>공지</strong>
|
<? if ($list[$i]['is_notice']) { // 공지사항 ?><strong>공지</strong>
|
||||||
<? } else { ?>
|
<? } else { ?>
|
||||||
<?
|
<?
|
||||||
// 파일 설명이 있을 경우 alt까지 출력해주세요.
|
|
||||||
// 이미지 사이즈는 어떻게 정해야 할까요?
|
|
||||||
$file = get_list_file($bo_table, $list[$i]['wr_id']);
|
$file = get_list_file($bo_table, $list[$i]['wr_id']);
|
||||||
|
|
||||||
$filepath = G4_DATA_PATH.'/file/'.$bo_table;
|
$filepath = G4_DATA_PATH.'/file/'.$bo_table;
|
||||||
@ -77,12 +79,11 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
|||||||
} else {
|
} else {
|
||||||
$imgsrc = $board_skin_url.'/img/noimg.jpg';
|
$imgsrc = $board_skin_url.'/img/noimg.jpg';
|
||||||
}
|
}
|
||||||
$imgalt = $file['bf_content'] ? get_text($file['bf_content']) : $list[$i]['subject'];
|
$imgalt = $file['bf_content'] ? get_text($file['bf_content']) : "";
|
||||||
?>
|
?>
|
||||||
<a href="<?=$list[$i]['href']?>">
|
|
||||||
<img src="<?=$imgsrc?>" alt="<?=$imgalt?>" width="<?=$board['bo_9']?>" height="<?=$board['bo_10']?>">
|
<img src="<?=$imgsrc?>" alt="<?=$imgalt?>" width="<?=$board['bo_9']?>" height="<?=$board['bo_10']?>">
|
||||||
</a>
|
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<?
|
<?
|
||||||
|
|||||||
Reference in New Issue
Block a user