diff --git a/bbs/qaview.php b/bbs/qaview.php index 1b5c38227..1bdbd48f3 100644 --- a/bbs/qaview.php +++ b/bbs/qaview.php @@ -155,7 +155,8 @@ if(is_file($skin_file)) { for ($i=1; $i<=2; $i++) { if(preg_match("/\.({$config['cf_image_extension']})$/i", $view['qa_file'.$i])) { - $view['img_file'][] = ''; + $attr_href = run_replace('thumb_view_image_href', G5_BBS_URL.'/view_image.php?fn='.urlencode('/'.G5_DATA_DIR.'/qa/'.$view['qa_file'.$i]), '/'.G5_DATA_DIR.'/qa/'.$view['qa_file'.$i], '', '', '', ''); + $view['img_file'][] = ''; $view['img_count']++; continue; } diff --git a/lib/common.lib.php b/lib/common.lib.php index 363da162c..5ea5bfa80 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1403,7 +1403,8 @@ function view_file_link($file, $width, $height, $content='') $attr = ''; if (preg_match("/\.({$config['cf_image_extension']})$/i", $file)) { - $img = ''; + $attr_href = run_replace('thumb_view_image_href', G5_BBS_URL.'/view_image.php?bo_table='.$board['bo_table'].'&fn='.urlencode($file), $file, $board['bo_table'], $width, $height, $content); + $img = ''; $img .= ''.$content.''; $img .= ''; diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index d534edef1..5d190f507 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -198,11 +198,12 @@ function get_view_thumbnail($contents, $thumb_width=0) } else { $thumb_tag = ''.$alt.''; } - + // $img_tag에 editor 경로가 있으면 원본보기 링크 추가 if(strpos($img_tag, G5_DATA_DIR.'/'.G5_EDITOR_DIR) && preg_match("/\.({$config['cf_image_extension']})$/i", $filename)) { $imgurl = str_replace(G5_URL, "", $src); - $thumb_tag = ''.$thumb_tag.''; + $attr_href = run_replace('thumb_view_image_href', G5_BBS_URL.'/view_image.php?fn='.urlencode($imgurl), $filename, '', $width, $height, $alt); + $thumb_tag = ''.$thumb_tag.''; } $contents = str_replace($img_tag, $thumb_tag, $contents); diff --git a/mobile/skin/board/gallery/list.skin.php b/mobile/skin/board/gallery/list.skin.php index 843aa83c8..2a7ffb6fd 100644 --- a/mobile/skin/board/gallery/list.skin.php +++ b/mobile/skin/board/gallery/list.skin.php @@ -99,7 +99,7 @@ add_stylesheet('', 0 $img_content = ''; } - echo $img_content; + echo run_replace('thumb_image_tag', $img_content, $thumb); } ?> diff --git a/mobile/skin/board/gallery/style.css b/mobile/skin/board/gallery/style.css index 3b4ed8f56..a1a7762b2 100644 --- a/mobile/skin/board/gallery/style.css +++ b/mobile/skin/board/gallery/style.css @@ -158,7 +158,7 @@ #bo_gall .gall_li_wr {position:relative;} #bo_gall .gall_li_chk {display:inline-block;position:absolute;top:10px;left:10px} #bo_gall .gall_li:nth-child(2n+1) {clear:both} -#bo_gall .gall_li .gall_img img{width:100%;height:auto} +#bo_gall .gall_li .gall_img img, #bo_gall .gall_li .gall_img video{width:100%;height:auto} #bo_gall .gall_li .gall_img .no_img, #bo_gall .gall_li .gall_notice {display:block;background:#eaeaea;color:#d0d0d0;font-size:3em;text-align:center;padding:25% 0} diff --git a/mobile/skin/latest/basic/latest.skin.php b/mobile/skin/latest/basic/latest.skin.php index 591befd3b..434bbc945 100644 --- a/mobile/skin/latest/basic/latest.skin.php +++ b/mobile/skin/latest/basic/latest.skin.php @@ -38,7 +38,7 @@ $is_show_next_prev = ($list_count > 4) ? 1 : 0; //echo $list[$i]['icon_reply']." "; if( $img_content ){ - echo "".$img_content." "; + echo "".run_replace('thumb_image_tag', $img_content, $thumb)." "; } echo ""; diff --git a/mobile/skin/latest/basic/style.css b/mobile/skin/latest/basic/style.css index 0762c0372..b5730bdb2 100644 --- a/mobile/skin/latest/basic/style.css +++ b/mobile/skin/latest/basic/style.css @@ -9,7 +9,7 @@ .lt ul li:after {display:block;visibility:hidden;clear:both;content:""} .lt ul li:hover a.lt_tit {color:#3a8afd} .lt .lt_thumb {display:inline-block;float:left;margin-right:10px} -.lt .lt_thumb img {width:138px;height:auto;overflow:hidden} +.lt .lt_thumb img, .lt .lt_thumb video{width:138px;height:auto;overflow:hidden} .lt .lt_tit {display:block;font-size:1.2em;font-weight:bold;max-height:60px;overflow:hidden;padding-bottom:10px} .lt .lt_info {display:inline-block;position:relative;line-height:20px;color:#828282;font-size:0.925em;vertical-align:top} .lt .lt_date {color:#828282} diff --git a/skin/board/gallery/list.skin.php b/skin/board/gallery/list.skin.php index 8a50868fa..a7dea635f 100644 --- a/skin/board/gallery/list.skin.php +++ b/skin/board/gallery/list.skin.php @@ -120,7 +120,7 @@ add_stylesheet('', 0 $img_content = 'no image'; } - echo $img_content; + echo run_replace('thumb_image_tag', $img_content, $thumb); } ?> diff --git a/skin/board/gallery/style.css b/skin/board/gallery/style.css index c58c86801..e41dc44d1 100644 --- a/skin/board/gallery/style.css +++ b/skin/board/gallery/style.css @@ -126,7 +126,7 @@ box-shadow:inset 0 2px 5px rgb(33, 135, 202)} #bo_gall .gall_href a:link, #bo_gall .gall_href a:focus, #bo_gall .gall_href a:hover {text-decoration:none} #bo_gall .gall_img {border-bottom:1px solid #eee;text-align:center;height:200px;max-height:200px;overflow:hidden} #bo_gall .gall_img a,#bo_gall .gall_img .no_image,#bo_gall .gall_img .is_notice {display:block} -#bo_gall .gall_img img {max-width:100%;height:auto !important} +#bo_gall .gall_img img, #bo_gall .gall_img video {max-width:100%;height:auto !important} #bo_gall .gall_img span {display:inline-block;background:#eaeaea;text-align:center;line-height:200px;text-transform:uppercase;font-weight:bold;font-size:1.25em;color:#777} #bo_gall .gall_text_href {margin:10px 0} diff --git a/skin/latest/pic_block/latest.skin.php b/skin/latest/pic_block/latest.skin.php index dcd824410..58b7f4519 100644 --- a/skin/latest/pic_block/latest.skin.php +++ b/skin/latest/pic_block/latest.skin.php @@ -25,7 +25,7 @@ $list_count = (is_array($list) && $list) ? count($list) : 0; $img_content = ''.$thumb['alt'].''; ?>
  • diff --git a/skin/latest/pic_list/style.css b/skin/latest/pic_list/style.css index 9c8db93f2..b263aa2f0 100644 --- a/skin/latest/pic_list/style.css +++ b/skin/latest/pic_list/style.css @@ -12,7 +12,7 @@ .pic_li_lt li {border-bottom:1px solid #e5ecee;margin-bottom:10px} .pic_li_lt li .lt_img {display:none} .pic_li_lt li:first-child .lt_img {display:block;margin:0 0 10px;display:block} -.pic_li_lt li:first-child .lt_img img {width:100%;height:auto} +.pic_li_lt li:first-child .lt_img img, .pic_li_lt li .lt_img video {width:100%;height:auto} .pic_li_lt li .pic_li_tit {font-weight:bold;font-size:1.2em;line-height:20px;vertical-align:middle} .pic_li_lt li .fa-heart {color:#ff0000} diff --git a/theme/basic/mobile/skin/board/gallery/list.skin.php b/theme/basic/mobile/skin/board/gallery/list.skin.php index 843aa83c8..2a7ffb6fd 100644 --- a/theme/basic/mobile/skin/board/gallery/list.skin.php +++ b/theme/basic/mobile/skin/board/gallery/list.skin.php @@ -99,7 +99,7 @@ add_stylesheet('', 0 $img_content = ''; } - echo $img_content; + echo run_replace('thumb_image_tag', $img_content, $thumb); } ?> diff --git a/theme/basic/mobile/skin/board/gallery/style.css b/theme/basic/mobile/skin/board/gallery/style.css index 3b4ed8f56..a1a7762b2 100644 --- a/theme/basic/mobile/skin/board/gallery/style.css +++ b/theme/basic/mobile/skin/board/gallery/style.css @@ -158,7 +158,7 @@ #bo_gall .gall_li_wr {position:relative;} #bo_gall .gall_li_chk {display:inline-block;position:absolute;top:10px;left:10px} #bo_gall .gall_li:nth-child(2n+1) {clear:both} -#bo_gall .gall_li .gall_img img{width:100%;height:auto} +#bo_gall .gall_li .gall_img img, #bo_gall .gall_li .gall_img video{width:100%;height:auto} #bo_gall .gall_li .gall_img .no_img, #bo_gall .gall_li .gall_notice {display:block;background:#eaeaea;color:#d0d0d0;font-size:3em;text-align:center;padding:25% 0} diff --git a/theme/basic/mobile/skin/latest/basic/latest.skin.php b/theme/basic/mobile/skin/latest/basic/latest.skin.php index 591befd3b..434bbc945 100644 --- a/theme/basic/mobile/skin/latest/basic/latest.skin.php +++ b/theme/basic/mobile/skin/latest/basic/latest.skin.php @@ -38,7 +38,7 @@ $is_show_next_prev = ($list_count > 4) ? 1 : 0; //echo $list[$i]['icon_reply']." "; if( $img_content ){ - echo "".$img_content." "; + echo "".run_replace('thumb_image_tag', $img_content, $thumb)." "; } echo ""; diff --git a/theme/basic/mobile/skin/latest/basic/style.css b/theme/basic/mobile/skin/latest/basic/style.css index 0762c0372..57c7e62f6 100644 --- a/theme/basic/mobile/skin/latest/basic/style.css +++ b/theme/basic/mobile/skin/latest/basic/style.css @@ -9,7 +9,7 @@ .lt ul li:after {display:block;visibility:hidden;clear:both;content:""} .lt ul li:hover a.lt_tit {color:#3a8afd} .lt .lt_thumb {display:inline-block;float:left;margin-right:10px} -.lt .lt_thumb img {width:138px;height:auto;overflow:hidden} +.lt .lt_thumb img, .lt .lt_thumb video {width:138px !important;height:auto;overflow:hidden} .lt .lt_tit {display:block;font-size:1.2em;font-weight:bold;max-height:60px;overflow:hidden;padding-bottom:10px} .lt .lt_info {display:inline-block;position:relative;line-height:20px;color:#828282;font-size:0.925em;vertical-align:top} .lt .lt_date {color:#828282} diff --git a/theme/basic/skin/board/gallery/list.skin.php b/theme/basic/skin/board/gallery/list.skin.php index 8a50868fa..a7dea635f 100644 --- a/theme/basic/skin/board/gallery/list.skin.php +++ b/theme/basic/skin/board/gallery/list.skin.php @@ -120,7 +120,7 @@ add_stylesheet('', 0 $img_content = 'no image'; } - echo $img_content; + echo run_replace('thumb_image_tag', $img_content, $thumb); } ?> diff --git a/theme/basic/skin/board/gallery/style.css b/theme/basic/skin/board/gallery/style.css index c58c86801..e41dc44d1 100644 --- a/theme/basic/skin/board/gallery/style.css +++ b/theme/basic/skin/board/gallery/style.css @@ -126,7 +126,7 @@ box-shadow:inset 0 2px 5px rgb(33, 135, 202)} #bo_gall .gall_href a:link, #bo_gall .gall_href a:focus, #bo_gall .gall_href a:hover {text-decoration:none} #bo_gall .gall_img {border-bottom:1px solid #eee;text-align:center;height:200px;max-height:200px;overflow:hidden} #bo_gall .gall_img a,#bo_gall .gall_img .no_image,#bo_gall .gall_img .is_notice {display:block} -#bo_gall .gall_img img {max-width:100%;height:auto !important} +#bo_gall .gall_img img, #bo_gall .gall_img video {max-width:100%;height:auto !important} #bo_gall .gall_img span {display:inline-block;background:#eaeaea;text-align:center;line-height:200px;text-transform:uppercase;font-weight:bold;font-size:1.25em;color:#777} #bo_gall .gall_text_href {margin:10px 0} diff --git a/theme/basic/skin/latest/pic_block/latest.skin.php b/theme/basic/skin/latest/pic_block/latest.skin.php index 791e2b48b..2682480e0 100644 --- a/theme/basic/skin/latest/pic_block/latest.skin.php +++ b/theme/basic/skin/latest/pic_block/latest.skin.php @@ -25,7 +25,7 @@ $list_count = (is_array($list) && $list) ? count($list) : 0; $img_content = ''.$thumb['alt'].''; ?>
  • - + 비밀글 "; diff --git a/theme/basic/skin/latest/pic_block/style.css b/theme/basic/skin/latest/pic_block/style.css index 6b5dbb8af..fe377172b 100644 --- a/theme/basic/skin/latest/pic_block/style.css +++ b/theme/basic/skin/latest/pic_block/style.css @@ -12,7 +12,7 @@ .pic_lt li {float:left;width:25%;padding:0 10px} .pic_lt li.galley_li:nth-child(4n+1) {clear: both!important} .pic_lt li .lt_img {margin:5px 0;display:block} -.pic_lt li .lt_img img {width:100%;height:auto} +.pic_lt li .lt_img img, .pic_lt li .lt_img video{width:100%;height:auto} .pic_lt li a:hover {color:#a22121} .pic_lt li .fa-heart {color:#ff0000} .pic_lt li .fa-lock {display:inline-block;line-height:14px;width:16px;font-size:0.833em;color:#4f818c;background:#cbe3e8;text-align:center;border-radius:2px;font-size:12px;border:1px solid #cbe3e8;vertical-align:middle} diff --git a/theme/basic/skin/latest/pic_list/latest.skin.php b/theme/basic/skin/latest/pic_list/latest.skin.php index 1a8a08ed4..50ad31951 100644 --- a/theme/basic/skin/latest/pic_list/latest.skin.php +++ b/theme/basic/skin/latest/pic_list/latest.skin.php @@ -27,7 +27,7 @@ $list_count = (is_array($list) && $list) ? count($list) : 0; $thumb['alt'] = '이미지가 없습니다.'; } $img_content = ''.$thumb['alt'].''; - $img_link_html = ''.$img_content.''; + $img_link_html = ''.run_replace('thumb_image_tag', $img_content, $thumb).''; } ?>
  • diff --git a/theme/basic/skin/latest/pic_list/style.css b/theme/basic/skin/latest/pic_list/style.css index 9c8db93f2..b263aa2f0 100644 --- a/theme/basic/skin/latest/pic_list/style.css +++ b/theme/basic/skin/latest/pic_list/style.css @@ -12,7 +12,7 @@ .pic_li_lt li {border-bottom:1px solid #e5ecee;margin-bottom:10px} .pic_li_lt li .lt_img {display:none} .pic_li_lt li:first-child .lt_img {display:block;margin:0 0 10px;display:block} -.pic_li_lt li:first-child .lt_img img {width:100%;height:auto} +.pic_li_lt li:first-child .lt_img img, .pic_li_lt li .lt_img video {width:100%;height:auto} .pic_li_lt li .pic_li_tit {font-weight:bold;font-size:1.2em;line-height:20px;vertical-align:middle} .pic_li_lt li .fa-heart {color:#ff0000}