first
This commit is contained in:
7
widgets/_default/attach-rc/admin.php
Normal file
7
widgets/_default/attach-rc/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>
|
||||
16
widgets/_default/attach-rc/main.php
Normal file
16
widgets/_default/attach-rc/main.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
// 위젯 설정값 세팅
|
||||
$parent_module=$wdgvar['parent_module']; // 첨부파일 사용하는 모듈
|
||||
$parent_data=$wdgvar['parent_data']; // 해당 포스트 데이타 (수정시 필요)
|
||||
$attach_module_theme=$wdgvar['theme']; // 첨부파일 테마
|
||||
$attach_mod=$wdgvar['attach_mod']; // main, list...
|
||||
$attach_handler_file=$wdgvar['attach_handler_file']; //파일첨부 실행 엘리먼트 button or 기타 엘리먼트 data-role="" 형태로 하는 것을 권고
|
||||
$attach_handler_photo=$wdgvar['attach_handler_photo']; // 사진첨부 실행 엘리먼트 button or 기타 엘리먼트 data-role="" 형태로 하는 것을 권고
|
||||
$attach_handler_getModalList=$wdgvar['attach_handler_getModalList']; // 첨부파일 리스트 호출 handler
|
||||
$attach_object_type=$wdgvar['attach_object_type'];//첨부 대상에 따른 분류 : photo, file, link, video....
|
||||
$attach_tmpcode=$wdgvar['attach_tmpcode'];//첨부 대상에 따른 분류 : photo, file, link, video....
|
||||
$attach_featuredImg_form_name=$wdgvar['featuredImg_form_name'];//첨부 대상에 따른 분류 : photo, file, link, video....
|
||||
|
||||
// 함수 인클루드
|
||||
include $g['path_module'].'mediaset/attach.php';
|
||||
?>
|
||||
1
widgets/_default/attach-rc/name.txt
Normal file
1
widgets/_default/attach-rc/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
파일첨부-모바일
|
||||
BIN
widgets/_default/attach-rc/thumb.png
Normal file
BIN
widgets/_default/attach-rc/thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 107 KiB |
7
widgets/_default/attach/admin.php
Normal file
7
widgets/_default/attach/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>
|
||||
21
widgets/_default/attach/main.php
Normal file
21
widgets/_default/attach/main.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
// 위젯 설정값 세팅
|
||||
$parent_module=$wdgvar['parent_module']; // 첨부파일 사용하는 모듈
|
||||
$parent_table=$wdgvar['parent_table'];
|
||||
$parent_uid=$wdgvar['parent_uid'];
|
||||
$parent_field=$wdgvar['parent_field'];
|
||||
$parent_data=$wdgvar['parent_data']; // 해당 포스트 데이타 (수정시 필요)
|
||||
$attach_module_theme=$wdgvar['theme']; // 첨부파일 테마
|
||||
$attach_mod=$wdgvar['attach_mod']; // main, list...
|
||||
$attach_handler_file=$wdgvar['attach_handler_file']; //파일첨부 실행 엘리먼트 button or 기타 엘리먼트 data-role="" 형태로 하는 것을 권고
|
||||
$attach_handler_photo=$wdgvar['attach_handler_photo']; // 사진첨부 실행 엘리먼트 button or 기타 엘리먼트 data-role="" 형태로 하는 것을 권고
|
||||
$attach_handler_getModalList=$wdgvar['attach_handler_getModalList']; // 첨부파일 리스트 호출 handler
|
||||
$attach_object_type=$wdgvar['attach_object_type'];//첨부 대상에 따른 분류 : photo, file, link, video....
|
||||
$attach_tmpcode=$wdgvar['attach_tmpcode'];//첨부 대상에 따른 분류 : photo, file, link, video....
|
||||
$attach_featuredImg_form_name=$wdgvar['featuredImg_form_name'];//첨부 대상에 따른 분류 : photo, file, link, video....
|
||||
$attach_wdgvar_id=$wdgvar['widget_uid'];
|
||||
$editor_type=$wdgvar['editor_type']; // 에디터 타입 : html,markdown
|
||||
|
||||
// 함수 인클루드
|
||||
include $g['path_module'].'mediaset/attach.php';
|
||||
?>
|
||||
1
widgets/_default/attach/name.txt
Normal file
1
widgets/_default/attach/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
파일첨부-데스크탑
|
||||
BIN
widgets/_default/attach/thumb.png
Normal file
BIN
widgets/_default/attach/thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
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 |
7
widgets/_default/comment-rc-modal/admin.php
Normal file
7
widgets/_default/comment-rc-modal/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>
|
||||
36
widgets/_default/comment-rc-modal/main.php
Normal file
36
widgets/_default/comment-rc-modal/main.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<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>
|
||||
|
||||
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: 5, // 출력갯수
|
||||
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);
|
||||
|
||||
|
||||
</script>
|
||||
1
widgets/_default/comment-rc-modal/name.txt
Normal file
1
widgets/_default/comment-rc-modal/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
댓글-모바일(모달형)
|
||||
BIN
widgets/_default/comment-rc-modal/thumb.png
Normal file
BIN
widgets/_default/comment-rc-modal/thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 147 KiB |
7
widgets/_default/comment-rc/admin.php
Normal file
7
widgets/_default/comment-rc/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>
|
||||
36
widgets/_default/comment-rc/main.php
Normal file
36
widgets/_default/comment-rc/main.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<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>
|
||||
|
||||
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: 5, // 출력갯수
|
||||
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);
|
||||
|
||||
|
||||
</script>
|
||||
1
widgets/_default/comment-rc/name.txt
Normal file
1
widgets/_default/comment-rc/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
댓글-모바일
|
||||
BIN
widgets/_default/comment-rc/thumb.png
Normal file
BIN
widgets/_default/comment-rc/thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
1
widgets/_default/name.txt
Normal file
1
widgets/_default/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
시스템 전용
|
||||
Reference in New Issue
Block a user