first
This commit is contained in:
7
widgets/_default/comment-bs4/admin.php
Normal file
7
widgets/_default/comment-bs4/admin.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<div id="mjointbox">
|
||||
<h5>
|
||||
<i class="fa fa-info-circle"></i>
|
||||
<?php echo getFolderName($g['path_widget'].$swidget)?>
|
||||
</h5>
|
||||
|
||||
</div>
|
||||
69
widgets/_default/comment-bs4/main.php
Normal file
69
widgets/_default/comment-bs4/main.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<div id="commentting-container">
|
||||
<!-- 댓글 출력 -->
|
||||
</div>
|
||||
|
||||
<!-- theme css : 삭제금지, 불필요한 경우 해당 파일 내용을 비움. -->
|
||||
|
||||
<link href="<?php echo $g['url_root']?>/modules/comment/themes/<?php echo $wdgvar['theme']?>/css/style.css" rel="stylesheet">
|
||||
<script src="<?php echo $g['url_root']?>/modules/comment/lib/Rb.comment.js"></script>
|
||||
|
||||
<script src="<?php echo $g['s']?>/_core/js/jquery.autolink.js"></script>
|
||||
<?php getImport('autosize','autosize.min','3.0.14','js')?>
|
||||
|
||||
<script>
|
||||
|
||||
var get_Rb_Comment = function(p_module,p_table,p_uid,theme){
|
||||
$('#commentting-container').Rb_comment({
|
||||
moduleName : 'comment', // 댓글 모듈명 지정 (수정금지)
|
||||
parent : p_module+'-'+p_uid, // rb_s_comment parent 필드에 저장되는 형태가 p_modulep_uid 형태임 참조.(- 는 저장시 제거됨)
|
||||
parent_table : p_table, // 부모 uid 가 저장된 테이블 (게시판인 경우 rb_bbs_data : 댓글, 한줄의견 추가/삭제시 전체 합계 업데이트용)
|
||||
theme_name : theme, // 댓글 테마
|
||||
containerClass :'rb-commentting', // 본 엘리먼트(#commentting-container)에 추가되는 class
|
||||
recnum: 15, // 출력갯수
|
||||
commentPlaceHolder : '댓글을 입력해 주세요..',
|
||||
noMoreCommentMsg : '댓글 없음 ',
|
||||
commentLength : 500, // 댓글 입력 글자 수 제한
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// 댓글 출력 함수 실행
|
||||
var p_module = '<?php echo $wdgvar['module']?>';
|
||||
var p_table = '<?php echo $wdgvar['parent_table']?>';
|
||||
var p_uid = '<?php echo $wdgvar['parent_uid']?>';//9294053;
|
||||
var theme = '<?php echo $wdgvar['theme']?>';
|
||||
|
||||
get_Rb_Comment(p_module,p_table,p_uid,theme);
|
||||
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
|
||||
// 댓글이 등록된 후에
|
||||
$('#commentting-container').on('saved.rb.comment',function(){
|
||||
// $.notify({message:'댓글이 등록 되었습니다.'});
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
$('[data-role="comment-item"] article').autolink();
|
||||
|
||||
$(document).on('click','.add-comment',function(){
|
||||
var uid = $(this).data('parent')
|
||||
var textarea = $('[data-role="oneline-input-'+uid+'"]')
|
||||
setTimeout(function(){ textarea.focus(); }, 200); // 한줄의견 추가시에 textarea focus 처리하기
|
||||
});
|
||||
|
||||
})
|
||||
// 댓글이 수정된 후에
|
||||
$('#commentting-container').on('edited.rb.comment',function(){
|
||||
$.notify({message: '댓글이 수정 되었습니다.'},{type: 'default'});
|
||||
})
|
||||
|
||||
// 한줄의견이 등록된 후에
|
||||
$('#commentting-container').on('saved.rb.oneline',function(){
|
||||
$('[data-toggle="tooltip"]').tooltip()
|
||||
$('[data-role="oneline-item"] article').autolink();
|
||||
})
|
||||
$('#commentting-container').on('edited.rb.oneline',function(){
|
||||
$.notify({message: '의견이 수정 되었습니다.'},{type: 'default'});
|
||||
})
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
1
widgets/_default/comment-bs4/name.txt
Normal file
1
widgets/_default/comment-bs4/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
댓글-데스크탑
|
||||
BIN
widgets/_default/comment-bs4/thumb.png
Normal file
BIN
widgets/_default/comment-bs4/thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Reference in New Issue
Block a user