īƮ5 īīũ ۽  ǰ̹, ǰ,ؽ ۹Դϴ.

 
1. /mobile/skin/shop/basic/item.form.skin.php Ͽ  ڵ 
 
		///// ̹  ߰2015/09/16 
		if(empty($kakao_img_name)){
			$img_tag = htmlspecialchars($thumb);
			preg_match('/http:(.+)/i', $img_tag,$out);
			$outs=preg_replace('/width(.+)/is',"",$out[0]);//img tag ̹ θ ´.
			$kakao_img_name = substr(trim($outs),0,-6);
			
		}
		///// ̹  ߰2015/09/16 
            
            get_sns_share_link('kakaotalk' ̺κ    
 
 		<?php 
				$site_domain="http://".$_SERVER['HTTP_HOST'];
				echo get_sns_share_link('kakaotalk', $sns_url, $sns_title, G5_MSHOP_SKIN_URL.'/img/sns_kakao.png',$kakao_img_name,get_text($it['it_name']),$site_domain); ?>
 
 
 
2. /lib/shop.lib.php Ͽ  get_sns_share_link Լ
 
function get_sns_share_link($sns, $url, $title, $img,$send_img="",$item_name="",$site_url="")
{
    global $config;
 
    if(!$sns)
        return '';
 
    switch($sns) {
        case 'facebook':
            $str = '<a href="https://www.facebook.com/sharer/sharer.php?u='.urlencode($url).'&amp;p='.urlencode($title).'" class="share-facebook" target="_blank"><img src="'.$img.'" alt="̽Ͽ "></a>';
            break;
        case 'twitter':
            $str = '<a href="https://twitter.com/share?url='.urlencode($url).'&amp;text='.urlencode($title).'" class="share-twitter" target="_blank"><img src="'.$img.'" alt="ƮͿ "></a>';
            break;
        case 'googleplus':
            $str = '<a href="https://plus.google.com/share?url='.urlencode($url).'" class="share-googleplus" target="_blank"><img src="'.$img.'" alt="÷ "></a>';
            break;
        case 'kakaotalk':
			//////20150916Ϻ $send_img߰,$item_name ߰//////
			if($config['cf_kakao_js_apikey']){
                $str = '<a href="javascript:kakaolink_send(\''.str_replace('+', ' ', urlencode($title)).'\', \''.urlencode($url).'\',\''.urlencode($send_img).'\',\''.urlencode($item_name).'\',\''.urlencode($site_url).'\');" class="share-kakaotalk"><img src="'.$img.'" alt="īī ũ"></a>';
			}
			//////20150916Ϻ //////
            break;
    }
 
    return $str;
}
 
3. /js/kakaolink.js  
function kakaolink_send(text, url,img_url,item_name,site_url){
	  Kakao.Link.sendTalkLink({
	  label: String(text),
	  image: {
		src:img_url,
		width: '300',
		height: '200'
	  },
	  webButton: {
		text: String(text),
		url: site_url //    ÷   URL̾ մϴ.
	  },
	  webLink : {
		text: String(item_name),
		url: url //    ÷   URL̾ մϴ.
	  }
	});
} 