diff --git a/lib/shop.lib.php b/lib/shop.lib.php index d2f904887..0142d99a7 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -1422,7 +1422,7 @@ function get_sns_share_link($sns, $url, $title, $img) $str = '구글플러스에 공유'; break; case 'kakaotalk': - $str = ''; + $str = '카카오톡링크 보내기'; break; } diff --git a/mobile/shop/kakaolinkform.php b/mobile/shop/kakaolinkform.php new file mode 100644 index 000000000..999c00020 --- /dev/null +++ b/mobile/shop/kakaolinkform.php @@ -0,0 +1,15 @@ +'.str_replace(G5_PATH.'/', '', $skin).' 파일이 존재하지 않습니다.

'; + +include_once(G5_PATH.'/tail.sub.php'); +?> \ No newline at end of file diff --git a/mobile/skin/shop/basic/item.form.skin.php b/mobile/skin/shop/basic/item.form.skin.php index a2b6b4e37..6794afda5 100644 --- a/mobile/skin/shop/basic/item.form.skin.php +++ b/mobile/skin/shop/basic/item.form.skin.php @@ -6,8 +6,7 @@ add_stylesheet('', ?> - - + @@ -458,51 +457,4 @@ function fitem_submit(f) return true; } - -// 카카오톡 링크 보내기 메세지 입력 -function kakaolink_message() -{ - var popup = "
"; - popup += "
"; - popup += ""; - popup += ""; - popup += ""; - popup += ""; - popup += "
"; - popup += "
"; - - $("form[name=fitem]").before(popup); -} - -function send_cancel() -{ - $("#kakao_message").remove(); -} - -// 카카오톡 링크 보내기 -function kakaolink_send(f) -{ - var msg = f.message.value; - if(!msg) { - alert("메세지를 입력해 주세요"); - return false; - } - - /* - msg, url, appid, appname은 실제 서비스에서 사용하는 정보로 업데이트되어야 합니다. - */ - kakao.link("talk").send({ - msg : msg, - url : "", - appid : "", - appver : "2.0", - appname : "", - type : "link" - }); - - $("#kakao_message").remove(); - - return false; - -} \ No newline at end of file diff --git a/mobile/skin/shop/basic/iteminfo.relation.skin.php b/mobile/skin/shop/basic/iteminfo.relation.skin.php index 51405b182..7ae3118fe 100644 --- a/mobile/skin/shop/basic/iteminfo.relation.skin.php +++ b/mobile/skin/shop/basic/iteminfo.relation.skin.php @@ -11,9 +11,10 @@ add_stylesheet('', set_mobile(true); $list->set_query($sql); + $list->set_view('sns', true); echo $list->run(); ?> diff --git a/mobile/skin/shop/basic/kakaolinkform.skin.php b/mobile/skin/shop/basic/kakaolinkform.skin.php new file mode 100644 index 000000000..fab9e85ab --- /dev/null +++ b/mobile/skin/shop/basic/kakaolinkform.skin.php @@ -0,0 +1,45 @@ +', 0); +?> + + + +
+

+
+ + + + +
+
+ + \ No newline at end of file diff --git a/mobile/skin/shop/basic/item.relation.skin.php b/mobile/skin/shop/basic/relation.10.skin.php similarity index 95% rename from mobile/skin/shop/basic/item.relation.skin.php rename to mobile/skin/shop/basic/relation.10.skin.php index e88af5e23..7807b304b 100644 --- a/mobile/skin/shop/basic/item.relation.skin.php +++ b/mobile/skin/shop/basic/relation.10.skin.php @@ -79,6 +79,8 @@ for ($i=1; $row=sql_fetch_array($result); $i++) { } if ($this->view_sns) { + $sns_url = G5_SHOP_URL.'/item.php?it_id='.$row['it_id']; + $sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']); echo "
"; echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_fb.png'); echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_twt.png'); diff --git a/mobile/skin/shop/basic/relation.skin.php b/mobile/skin/shop/basic/relation.skin.php deleted file mode 100644 index a3be0b7d7..000000000 --- a/mobile/skin/shop/basic/relation.skin.php +++ /dev/null @@ -1,101 +0,0 @@ -', 0); -?> - - - - -css) { - echo "