모바일: 갤러리스킨 넓이 조정
This commit is contained in:
@ -424,7 +424,7 @@ input.required:focus {border:0;background:#21272e !important;color:#fff;line-hei
|
||||
#bo_img h2 {margin:0;padding:0;width:0;height:0;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_img_list {margin:1em 0 0;padding:0 1em;list-style:none;zoom:1}
|
||||
#bo_img_list:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_img_list_li {float:left;margin:0 0 2em;width:25%}
|
||||
.bo_img_list_li {float:left;margin:0 0 2em}
|
||||
|
||||
.bo_img_con {margin:0;padding:0;list-style:none}
|
||||
.bo_img_con li {margin:0 0 0.3em}
|
||||
|
||||
@ -67,8 +67,9 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
if ($i == 0) $k = 0;
|
||||
$k += 1;
|
||||
if ($k % $board['bo_mobile_gallery_cols'] == 0) $style .= "margin:0 !important;";
|
||||
$li_width = 100 / $board['bo_mobile_gallery_cols']; // 100% 를 모바일 이미지 수로 나누어 li 넓이값에 적용 - 지운아빠 2013-03-07
|
||||
?>
|
||||
<li class="bo_img_list_li <? if ($wr_id == $list[$i]['wr_id']) { ?>bo_img_now<? } ?>" style="<?=$style?>">
|
||||
<li class="bo_img_list_li <? if ($wr_id == $list[$i]['wr_id']) { ?>bo_img_now<? } ?>" style="<?=$style?>width:<?=round($li_width)?>%">
|
||||
<? if ($is_checkbox) { ?><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i]['wr_id']?>" title="<?=$list[$i]['subject']?> 선택"><? } ?>
|
||||
<span class="sound_only">
|
||||
<?
|
||||
@ -89,13 +90,13 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
$filepath = G4_DATA_PATH.'/file/'.$bo_table;
|
||||
if(preg_match("/\.({$config['cf_image_extension']})$/i", $file['bf_file']) && is_file($filepath.'/'.$file['bf_file'])) {
|
||||
$thumb = get_list_thumbnail($file['bf_file'], $filepath, $board['bo_9'], $board['bo_10']);
|
||||
$thumb = get_list_thumbnail($file['bf_file'], $filepath, $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height']);
|
||||
$imgsrc = G4_DATA_URL.'/file/'.$bo_table.'/'.$thumb;
|
||||
} else {
|
||||
$imgsrc = $board_skin_url.'/img/noimg.jpg';
|
||||
}
|
||||
?>
|
||||
<img src="<?=$imgsrc?>" alt="<?=get_text($file['bf_content'])?>" width="<?=$board['bo_9']?>" height="<?=$board['bo_10']?>">
|
||||
<img src="<?=$imgsrc?>" alt="<?=get_text($file['bf_content'])?>" width="<?=$board['bo_gallery_width']?>" height="<?=$board['bo_gallery_height']?>">
|
||||
<? } ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user