sns 공유하기 팝업으로 코드 수정
This commit is contained in:
@ -228,14 +228,13 @@ else
|
||||
<div id="sit_star_sns">
|
||||
<?php
|
||||
$sns_title = get_text($it['it_name']).' | '.get_text($config['cf_title']);
|
||||
$sns_send = G4_SHOP_URL.'/sns_send.php?url='.urlencode(G4_SHOP_URL.'/item.php?it_id='.$it['it_id']);
|
||||
$sns_send .= '&title='.urlencode(cut_str($sns_title, 100));
|
||||
$sns_url = G4_SHOP_URL.'/item.php?it_id='.$it['it_id'];
|
||||
?>
|
||||
고객선호도 <span>별<?php echo $score?>개</span>
|
||||
<img src="<?php echo G4_URL; ?>/img/shop/s_star<?php echo $score?>.png" alt="" class="sit_star">
|
||||
<a href="<?php echo $sns_send; ?>&sns=facebook" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_fb2.png" alt="페이스북에 공유"></a>
|
||||
<a href="<?php echo $sns_send; ?>&sns=twitter" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_twt2.png" alt="트위터에 공유"></a>
|
||||
<a href="<?php echo $sns_send; ?>&sns=google" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_goo2.png" alt="구글플러스에 공유"></a>
|
||||
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_URL.'/img/shop/sns_fb2.png'); ?>
|
||||
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_URL.'/img/shop/sns_twt2.png'); ?>
|
||||
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_URL.'/img/shop/sns_goo2.png'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<table id="sit_ov_tbl">
|
||||
|
||||
@ -7,8 +7,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
|
||||
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
$sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']);
|
||||
$sns_send = G4_SHOP_URL.'/sns_send.php?url='.urlencode(G4_SHOP_URL.'/item.php?it_id='.$row['it_id']);
|
||||
$sns_send .= '&title='.urlencode(cut_str($sns_title, 100));
|
||||
$sns_url = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
if ($i == 1) echo '<ul class="sct sct_11">';
|
||||
?>
|
||||
@ -30,9 +29,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
|
||||
</span>
|
||||
</a>
|
||||
<div class="sct_sns">
|
||||
<a href="<?php echo $sns_send; ?>&sns=facebook" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_fb.png" alt="페이스북에 공유"></a>
|
||||
<a href="<?php echo $sns_send; ?>&sns=twitter" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_twt.png" alt="트위터에 공유"></a>
|
||||
<a href="<?php echo $sns_send; ?>&sns=google" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_goo.png" alt="구글플러스에 공유"></a>
|
||||
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_URL.'/img/shop/sns_fb.png'); ?>
|
||||
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_URL.'/img/shop/sns_twt.png'); ?>
|
||||
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_URL.'/img/shop/sns_goo.png'); ?>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
|
||||
@ -6,8 +6,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
$sns_title = get_text($row['it_name']).' | '.get_text($config['cf_title']);
|
||||
$sns_send = G4_SHOP_URL.'/sns_send.php?url='.urlencode(G4_SHOP_URL.'/item.php?it_id='.$row['it_id']);
|
||||
$sns_send .= '&title='.urlencode(cut_str($sns_title, 100));
|
||||
$sns_url = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
|
||||
|
||||
if ($i == 1) echo '<ul class="sct sct_10">';
|
||||
?>
|
||||
@ -21,9 +20,9 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
</span>
|
||||
</a>
|
||||
<div class="sct_sns">
|
||||
<a href="<?php echo $sns_send; ?>&sns=facebook" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_fb.png" alt="페이스북에 공유"></a>
|
||||
<a href="<?php echo $sns_send; ?>&sns=twitter" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_twt.png" alt="트위터에 공유"></a>
|
||||
<a href="<?php echo $sns_send; ?>&sns=google" target="_blank"><img src="<?php echo G4_URL; ?>/img/shop/sns_goo.png" alt="구글플러스에 공유"></a>
|
||||
<?php echo get_sns_share_link('facebook', $sns_url, $sns_title, G4_URL.'/img/shop/sns_fb.png'); ?>
|
||||
<?php echo get_sns_share_link('twitter', $sns_url, $sns_title, G4_URL.'/img/shop/sns_twt.png'); ?>
|
||||
<?php echo get_sns_share_link('googleplus', $sns_url, $sns_title, G4_URL.'/img/shop/sns_goo.png'); ?>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
|
||||
@ -47,6 +47,8 @@ $sec = get_microtime() - $begin_time;
|
||||
$file = $_SERVER['PHP_SELF'];
|
||||
?>
|
||||
|
||||
<script src="<?php echo G4_JS_URL; ?>/sns.js"></script>
|
||||
|
||||
<?php
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user