From 6766ef2e1f7789daeb35f76f718a0b688595f506 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 31 Dec 2018 19:30:49 +0900 Subject: [PATCH] =?UTF-8?q?5.4=20=EB=B2=84=EC=A0=84=20=ED=85=8C=EB=A7=88?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../skin/board/basic/view_comment.skin.php | 2 +- .../skin/board/gallery/view_comment.skin.php | 2 +- .../skin/latest/basic/latest.carousel.js | 54 +++++++++++++ .../mobile/skin/latest/basic/latest.skin.php | 75 ++----------------- theme/54/mobile/skin/latest/basic/style.css | 2 +- 5 files changed, 65 insertions(+), 70 deletions(-) create mode 100644 theme/54/mobile/skin/latest/basic/latest.carousel.js diff --git a/theme/54/mobile/skin/board/basic/view_comment.skin.php b/theme/54/mobile/skin/board/basic/view_comment.skin.php index b9cf28d6b..ca76679a0 100644 --- a/theme/54/mobile/skin/board/basic/view_comment.skin.php +++ b/theme/54/mobile/skin/board/basic/view_comment.skin.php @@ -10,7 +10,7 @@ var char_max = parseInt(); // 최대
-

댓글목록 100

+

댓글목록

); // 최대
-

댓글목록 100

+

댓글목록

"+index+"/"+count; + + $(event.target).next(".lt_page").find(".page_print").html(str); + } + } + + $(".lt.owl-carousel-wrap").each(function(index, value) { + + var $this = $(this), + item_loop_c = ($this.children('.latest-sel').find(".item").length > 1) ? 1 : 0 ; + + carousels['sel' + index] = $this.children('.latest-sel').addClass("owl-carousel").owlCarousel({ + items:1, + loop: is_loop && item_loop_c, + center:true, + autoHeight:true, + dots:false, + onChanged:function(event){ + owl_show_page(event); + }, + }); + + $this.on("click", ".lt_page_next", function(e) { + e.preventDefault(); + carousels['sel' + index].trigger('next.owl.carousel'); + }); + + $this.on("click", ".lt_page_prev", function(e) { + e.preventDefault(); + carousels['sel' + index].trigger('prev.owl.carousel'); + }); + + }); // each + }); +}); \ No newline at end of file diff --git a/theme/54/mobile/skin/latest/basic/latest.skin.php b/theme/54/mobile/skin/latest/basic/latest.skin.php index d5498d158..5d3d5bb07 100644 --- a/theme/54/mobile/skin/latest/basic/latest.skin.php +++ b/theme/54/mobile/skin/latest/basic/latest.skin.php @@ -3,6 +3,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 include_once(G5_LIB_PATH.'/thumbnail.lib.php'); add_javascript('', 10); +add_javascript('', 11); add_stylesheet('', 10); // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 @@ -11,11 +12,13 @@ $thumb_width = 138; $thumb_height = 80; $list_count = count($list); $divisor_count = 4; +$start_page_num = $list_count ? '1' : '0'; +$is_show_next_prev = ($list_count > 4) ? 1 : 0; ?> \ No newline at end of file diff --git a/theme/54/mobile/skin/latest/basic/style.css b/theme/54/mobile/skin/latest/basic/style.css index 1f94b205e..9f7247806 100644 --- a/theme/54/mobile/skin/latest/basic/style.css +++ b/theme/54/mobile/skin/latest/basic/style.css @@ -13,7 +13,7 @@ .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} -.lt .owl-carousel{margin-top:1px} +.lt .latest-sel{margin-top:1px} .lt .lt_more {position:absolute;top:15px;right:15px;color:#3a8afd;background:#fff;border:1px solid #d1d7e5;font-size:0.925em;border-radius:3px;padding:4px 5px} .lt .lt_cmt {background:#e9eff5;color:#3a8afd;font-size:11px;height:16px;line-height:16px;padding:0 5px;border-radius:3px;vertical-align:middle}