mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
쓸모없어진 chak 기능제거
This commit is contained in:
parent
9a1874f504
commit
234afdb8e3
47 changed files with 23 additions and 183 deletions
|
|
@ -63,3 +63,4 @@
|
|||
<p class="more"><a href="{getUrl('', 'module', 'admin', 'act', 'dispCommentAdminList')}"><i>›</i> {$lang->more}</a></p>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=2, user-scalable=yes" />
|
||||
<load target="../../../common/xeicon/xeicon.min.css" />
|
||||
|
||||
<div class="x">
|
||||
<p class="skipNav"><a href="#content">{$lang->skip_to_content}</a></p>
|
||||
<header class="header">
|
||||
|
|
|
|||
|
|
@ -114,5 +114,3 @@
|
|||
.adminMap .parent>.side{right:30px}
|
||||
.adminMap .placeholder{background:#000;border-radius:5px}
|
||||
</style>
|
||||
|
||||
<div class="admin-forum-container" data-chak-categories="XE설정:관리자 설정"></div>
|
||||
|
|
|
|||
|
|
@ -124,5 +124,3 @@ jQuery(function($){
|
|||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="admin-forum-container" data-chak-categories="XE설정:FTP 설정"></div>
|
||||
|
|
|
|||
|
|
@ -323,4 +323,3 @@ function doSubmitConfig()
|
|||
|
||||
</script>
|
||||
|
||||
<div class="admin-forum-container" data-chak-categories="XE설정:XE 일반 설정"></div>
|
||||
|
|
|
|||
|
|
@ -908,9 +908,6 @@ margin-bottom: 10px;
|
|||
text-decoration: none;
|
||||
color: #666;
|
||||
}
|
||||
.x>.header>.account>ul>li.forum-chak>a {
|
||||
color: #FFF;
|
||||
}
|
||||
.x>.header>.account>ul>li>a:hover,
|
||||
.x>.header>.account>ul>li>a:focus {
|
||||
text-decoration: underline;
|
||||
|
|
@ -2390,33 +2387,3 @@ html[lang="mn"] .x .g11n.active>[disabled],
|
|||
height: 1px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
.admin-forum-container {
|
||||
clear: both;
|
||||
margin: 10px 5px;
|
||||
border: 0 solid #ddd;
|
||||
}
|
||||
.admin-forum-container.activated-forum {
|
||||
margin-top: 30px;
|
||||
padding: 15px;
|
||||
background-color: #fbfbfb;
|
||||
border-width: 3px 0;
|
||||
}
|
||||
.admin-forum-container .open-forum {
|
||||
display: inline-block;
|
||||
padding: 15px;
|
||||
padding-left: 60px;
|
||||
color: #0088cc;
|
||||
font-size: 14px;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
text-decoration: none;
|
||||
background-image: url('../img/chak_c.png');
|
||||
background-repeat: no-repeat;
|
||||
background-position: center left;
|
||||
}
|
||||
.admin-forum-container .open-forum:hover,
|
||||
.admin-forum-container .open-forum:active {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 5.1 KiB |
|
|
@ -2471,67 +2471,3 @@ jQuery(function($){
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
// Forum Chak
|
||||
(function($){
|
||||
var chak = {
|
||||
elClass: 'chak-comment',
|
||||
group_id: 'xe1_official',
|
||||
apikey: 'xe17935b49af5435d37f1cde130363db-forum'
|
||||
};
|
||||
|
||||
$(function(){
|
||||
var $chakContainer = $('.admin-forum-container');
|
||||
|
||||
if($chakContainer.length) {
|
||||
var $forumOpen = $('<a href="#' + chak.elClass + '" class="open-forum">이 페이지에 대한 포럼 보기</a>');
|
||||
var $headerButton = $('<li class="forum-chak"><a href="#" class="x_btn x_btn-primary">Forum</a></li>');
|
||||
var $headerMenu = $('header.header .account ul');
|
||||
|
||||
(function(){var s=document.createElement('script');s.type='text/javascript';s.src='//chak.it/static/service.js';s.async=true;(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(s);})();
|
||||
|
||||
$chakContainer.each(function(idx){
|
||||
var $el = $(this);
|
||||
var elData = $el.data();
|
||||
elData.count = 0;
|
||||
var $opener = $forumOpen.clone();
|
||||
var $button = $headerButton.clone();
|
||||
var forumId = 'inline-forum-' + idx;
|
||||
|
||||
$el.append($opener);
|
||||
|
||||
$button.find('a')
|
||||
.attr('href', '#' + forumId)
|
||||
.on('click', function(){
|
||||
var $target = $($.attr(this, 'href'));
|
||||
$('html, body').animate({
|
||||
scrollTop: $target.offset().top - 20
|
||||
}, 500);
|
||||
return false;
|
||||
})
|
||||
.one('click', function() {
|
||||
var $target = $($.attr(this, 'href'));
|
||||
$target.find('a').click();
|
||||
});
|
||||
|
||||
$headerMenu.append($button);
|
||||
$el.attr('id', forumId);
|
||||
|
||||
$el.find('a').on('click', function(){
|
||||
var div = document.createElement("div");
|
||||
div.setAttribute("data-chak-apikey", chak.apikey);
|
||||
div.setAttribute("data-chak-categories", elData.chakCategories);
|
||||
|
||||
$opener.after(div);
|
||||
$chakContainer.addClass('activated-forum');
|
||||
|
||||
manuallySetChakService(div);
|
||||
|
||||
$opener.remove();
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue