sns 사용 때 게시글 보기 로딩 속도 개선

This commit is contained in:
chicpro
2014-06-10 16:10:17 +09:00
parent cd50ef5d48
commit c8a69b054e
8 changed files with 166 additions and 108 deletions

View File

@ -117,7 +117,14 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
</tr>
<?php } ?>
<?php
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
if($board['bo_use_sns'] && ($config['cf_facebook_appid'] || $config['cf_twitter_key'])) {
?>
<tr>
<th scope="row">SNS 동시등록</th>
<td id="bo_vc_send_sns"></td>
</tr>
<?php
}
?>
<tr>
<th scope="row">내용</th>
@ -298,5 +305,12 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
}
comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)
<?php if($board['bo_use_sns'] && ($config['cf_facebook_appid'] || $config['cf_twitter_key'])) { ?>
// sns 등록
$(function() {
$("#bo_vc_send_sns").load( "<?php echo G5_SNS_URL; ?>/view_comment_write.sns.skin.php?bo_table=<?php echo $bo_table; ?>" );
});
<?php } ?>
</script>
<?php } ?>

View File

@ -117,7 +117,14 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
</tr>
<?php } ?>
<?php
include(G5_SNS_PATH."/view_comment_write.sns.skin.php");
if($board['bo_use_sns'] && ($config['cf_facebook_appid'] || $config['cf_twitter_key'])) {
?>
<tr>
<th scope="row">SNS 동시등록</th>
<td id="bo_vc_send_sns"></td>
</tr>
<?php
}
?>
<tr>
<th scope="row">내용</th>
@ -298,5 +305,12 @@ var char_max = parseInt(<?php echo $comment_max ?>); // 최대
}
comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)
<?php if($board['bo_use_sns'] && ($config['cf_facebook_appid'] || $config['cf_twitter_key'])) { ?>
// sns 등록
$(function() {
$("#bo_vc_send_sns").load( "<?php echo G5_SNS_URL; ?>/view_comment_write.sns.skin.php?bo_table=<?php echo $bo_table; ?>" );
});
<?php } ?>
</script>
<?php } ?>