-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboard_sns.php
59 lines (50 loc) · 1.88 KB
/
board_sns.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<div class="sns_wrap">
<?
$appid = $_SERVER['HTTP_HOST'];
$appname = $_data->shopname;
if(empty($appname)) $appname = $_data->companyname;
$mobilesns_sql = "SELECT use_mobile_sns FROM tblmobileconfig";
$mobilesns_result = mysql_query($mobilesns_sql,get_db_conn());
$mobilesns_row = mysql_fetch_object($mobilesns_result);
$sns_set = explode('|',$mobilesns_row->use_mobile_sns);
$set_kakaotalk = $sns_set[0];
$set_kakaostory = $sns_set[1];
$set_facebook = $sns_set[2];
$set_twitter = $sns_set[3];
$set_pinterest = $sns_set[4];
$set_googleplus = $sns_set[5];
$set_naverblog = $sns_set[6];
$imgurl = "";//'http://'.$_SERVER['HTTP_HOST']."/data/shopimages/product/".$_pdata->minimage;
$sns_content = trim(strip_tags($view_content));
$kakaoinfoSQL = "SELECT state, secret FROM tblshopsnsinfo WHERE type ='k' ";
$kakaousestate = $kakaousekey = "";
if(false !== $kakaoinfoRes = mysql_query($kakaoinfoSQL,get_db_conn())){
$kakaoinfocount = mysql_num_rows($kakaoinfoRes);
if($kakaoinfocount>0){
$kakaousestate = trim(mysql_result($kakaoinfoRes,0,0));
$kakaousekey = trim(mysql_result($kakaoinfoRes,0,1));
}
}
?>
<?if($set_kakaotalk == 'Y'){?>
<div id="kakao-link-btn" class="snskakaotalk" onclick="snsSendProc('KT');" /></div>
<?}?>
<?if($set_kakaostory == 'Y'){?>
<div class="snskakaostory" onclick="snsSendProc('KS');" /></div>
<?}?>
<?if($set_pinterest == 'Y'){?>
<div class="snspinterest" onclick="snsSendProc('PI');" ></div>
<?}?>
<?if($set_googleplus == 'Y'){?>
<div class="snsgoogleplus" onclick="snsSendProc('GO');" ></div>
<?}?>
<?if($set_twitter == 'Y'){?>
<div class="snstwitter" onclick="snsSendProc('TW');" ></div>
<?}?>
<?if($set_facebook == 'Y'){?>
<div class="snsfacebook" onclick="snsSendProc('FB');" ></div>
<?}?>
<?if($set_naverblog == 'Y'){?>
<div class="snsnaverblog" onclick="snsSendProc('NB');"></div>
<?}?>
</div>