Permalink
Browse files

기타 자잘한 것들 정리

  • Loading branch information...
dryoo committed Jun 23, 2016
1 parent 415f384 commit 751dc6087541e4a9ecc5b5c0cc96047f20788eeb
Showing with 127 additions and 86 deletions.
  1. +0 −14 css/_media_popup.css
  2. +59 −7 css/andybs.css
  3. +16 −0 lang/ko/settings.php
  4. +30 −59 main.php
  5. +16 −2 script.js
  6. +6 −4 tpl_footer.php
View
@@ -265,18 +265,4 @@ html.popup {
clear: right;
margin: .2em 25% 0 0;
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background-color: #eaeaea;
border-left: 1px solid #ccc;
}
::-webkit-scrollbar-thumb {
background-color: #ccc;
border-radius:6px;
}
::-webkit-scrollbar-thumb:hover {
background-color: #aaa;
}
View
@@ -259,6 +259,23 @@ border:1px solid rgb(99, 150, 150,0.3)}
.qq-upload-success .qq-upload-size {display:none!important;}
}
#mediamgr__aside::-webkit-scrollbar {
width: 12px;
}
#mediamgr__aside::-webkit-scrollbar-track {
background-color: #eaeaea;
border-left: 1px solid #ccc;
}
#mediamgr__aside::-webkit-scrollbar-thumb {
background-color: #ccc;
border-radius:6px;
}
#mediamgr__aside::-webkit-scrollbar-thumb:hover {
background-color: #aaa;
}
#dokuwiki__footer {
img { vertical-align:baseline; }
}
@@ -450,34 +467,41 @@ form.plugin_move_form {padding: 0 40px;}
#dokuwiki__nav, #dokuwiki__aside {
width:__sidebar_width__;
position:fixed;
top:0;bottom:0;
background-color: #35373c;
box-shadow: 0 0 10px rgba(34, 34, 34, 0.5) inset;
overflow-x:hidden;
-ms-overflow-style: none;
}
#dokuwiki__nav::-webkit-scrollbar, #dokuwiki__aside::-webkit-scrollbar {
display: none;
}
#dokuwiki__nav {
z-index:15;
Z-index:15;
left:0;
display:none;
padding:5px;
}
/* column control */
#dokuwiki__aside {
z-index:13;
bottom:0; top:0;
/*overflow-y:hidden;*/ overflow-x:hidden;
}
.lsb::-webkit-scrollbar, .rsb::-webkit-scrollbar {
display: none;
width:__sidebar_width__;
}
#dokuwiki__aside {
color:#aaa;
right:0;
h1,h2,h3,h4,h5 {color:#00b8be;}
a {transition: color .2s linear; }
/* a {transition: color .2s linear; */
li {position: relative;}
div.li:hover a:after {
content: '';
@@ -574,3 +598,31 @@ form.plugin_move_form {padding: 0 40px;}
/* Styles */
}
/* http://blog.readiz.com/134 간단한 Back to top 버튼 넣기 */
#toTop {
z-index:1030;
width: 84px;
border: 2px solid #f7f7f7;
background: #f7f7f7;
text-align: center;
position: fixed;
bottom: 10px;
right: 10px;
cursor: pointer;
display: none;
color: #333;
opacity: 0.6;
filter: alpha(opacity=60);
border-radius: 50%;
-webkit-transition: all .25s linear;
-moz-transition: all .25s linear;
-o-transition: all .25s linear;
transition: all .25s linear;
padding: 5px;
}
#toTop:hover
{
background: #b3b3b3;
border: 2px solid #b3b3b3;
}
View
@@ -0,0 +1,16 @@
<?php
/**
* Korean language file for config
*
*/
$lang['google_analytics'] = '<a href="https://www.google.com/analytics/">구글웹분석코드</a>';
$lang['google_adsense'] = '<a href="https://www.google.com/adsense/">구글애드센스코드 (반응형)</a>';
$lang['whosamungus'] = '<a href="http://whos.amung.us/showcase/">whos.amung.us code (SMALL)</a>';
$lang['spot-im'] = '<a href="https://www.spot.im/spots/">Spot-im code</a>';
$lang['nsheader'] = 'Header pagename';
$lang['help'] = '도움말페이지이름 (사이드바 버튼 누르면 팝업됨)';
$lang['lsb'] = 'Bottom Sidebar';
$lang['debug'] = '디버깅(<a href="http://openwiki.kr/tech/kajukkk/">지원</a>)';
View
@@ -58,21 +58,8 @@
<script>
function tpl_toggleLight() {
if (DokuCookie.getValue('dark')==1)
{
DokuCookie.setValue('dark','0');
jQuery('body').toggleClass('dark');
return false;
}
else
{
DokuCookie.setValue('dark','1');
jQuery('body').toggleClass('dark');
return false;
}
}
<script>
</script>
<?php if (tpl_getConf('debug')): ?>
<!-- Piwik -->
@@ -90,7 +77,7 @@ function tpl_toggleLight() {
</script>
<noscript><p><img src="//io.vaslor.net/analytics/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
<script src="<?php echo tpl_getMediaFile(array("js/sendsns.js")); ?>" type="text/javascript"></script>
<script src="<?php echo tpl_getMediaFile(array("js/sendsns.js")); ?>" type="text/javascript"></script>
<?php endif;?>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- <script src="<?php echo tpl_getMediaFile(array("js/respond.min.js")); ?>" type="text/javascript"></script>-->
@@ -109,21 +96,21 @@ function tpl_toggleLight() {
<div id="dokuwiki__nav">
<?php //if (tpl_getConf('debug')) @include('shortcut.php') /* Shortcut */ ?>
<?php tpl_include_page(":nav", 1, 1) ?>
</div>
</div>
<div id="dokuwiki__top" class="mode_<?php echo $ACT ?> <?php echo ($showSidebar) ? 'showSidebar' : '';
?> <?php echo ($hasSidebar) ? 'hasSidebar' : ''; ?>" >
<?php tpl_flush(); ?>
<div class="clearfix" style="z-index:3;box-shadow: 0 2px 2px -2px rgba(0, 0, 0, .82);top:0;position:fixed;width:100%;background-color:#333">
<div class="btn_left" style=""><i class="fa fa-opera "></i></div>
<a class="btn_left" href="#dokuwiki__top"><i class="fa fa-bars"></i></a>
<?php if (!plugin_isdisabled('searchformgoto')) {
$searchformgoto = &plugin_load('helper','searchformgoto');
$searchformgoto->gotoform();
} else { tpl_searchform(); }
?>
<div class="btn_right" style=""><i class="fa fa-pause"></i></div>
<a class="btn_right" href="#dokuwiki__top" style=""><i class="fa fa-pause"></i></a>
</div>
<div class="core clearfix" style="margin-top:44px;">
<?php ds_html_msgarea(); /* occasional error and info messages */ ?>
@@ -132,7 +119,6 @@ function tpl_toggleLight() {
<div id="dokuwiki__content">
<?php tpl_bs_breadcrumbs() ?>
<?php if ($ACT=="show" ||$ACT=="edit"): ?>
<h1>
<?php echo p_get_first_heading($ID) ?>
<?php /* Short URL*/
@@ -143,7 +129,7 @@ function tpl_toggleLight() {
<small>
<a href="<?php echo $sURL ?>" style="font-size:16px;color:rgba(111,111,111,0.5)"><?php echo $sURL ?></a>
</small>
<?php endif ?>
<?php endif /* Short URL*/?>
</h1>
<?php endif?>
<?php if ($ACT=="show") tpl_include_page(tpl_getConf('nsheader'),true,true); /* page header */ ?>
@@ -159,8 +145,9 @@ function tpl_toggleLight() {
<!-- wikipage start -->
<?php if ($ACT=="search"&&tpl_getConf('debug') ) {?>
<h1><?php echo $ID; ?> 에 대한 검색 결과</h1>
<?php // 구글 CSE
if ($ACT=="search"&&tpl_getConf('debug') ) {?>
<h1>"<?php echo noNS($ID); ?>"에 대한 검색 결과</h1>
<script>
(function() {
var cx = '015553187907637026800:6qohwwzkdqo';
@@ -173,10 +160,12 @@ function tpl_toggleLight() {
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:searchresults-only></gcse:searchresults-only>
<gcse:searchresults-only></gcse:searchresults-only>
<?php }
else tpl_content(true); ?>
else
tpl_content(true); ?>
<!-- wikipage stop -->
<div class="clearer"></div>
<!-- Usage as a class -->
@@ -236,7 +225,8 @@ function tpl_toggleLight() {
if($disqus) echo "<center>".$disqus->_disqus()."</center>";
}
?>
<?php tpl_license('badge', false, false, true); // license button, no wrapper ?>
<div class="docInfo"><?php tpl_pageinfo() ?>
@@ -315,7 +305,7 @@ function tpl_toggleLight() {
<?php tpl_includeFile('sidebarfooter.html') ?>
</div>
</div><!-- /aside --> </asdie>
<?php tpl_button_a('top','eject','','btn-primary btn-circle slideTextUp noprint');?> </div>
</div>
</div></div><!-- /.dokuwiki -->
<asdie>
@@ -340,36 +330,6 @@ function tpl_toggleLight() {
</div>
</div>
<!-- Modal -->
<div class="modal fade noprint" id="searchModal" tabindex="-1" role="dialog" aria-labelledby="searchModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="searchModalLabel"><?php echo tpl_getLang('help')?></h4>
</div>
<div class="modal-body">
<script>
(function() {
var cx = '015553187907637026800:6qohwwzkdqo';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:searchresults-only></gcse:searchresults-only>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $lang['js']['mediaclose'] ?></button>
</div>
</div>
</div>
</div>
@@ -433,7 +393,6 @@ function tpl_toggleLight() {
</div>
</div>
</div> <!--NEW page Modal -->
</asdie>
<script>
@@ -453,15 +412,27 @@ function tpl_toggleLight() {
/* jQuery(this).scroll(function () {
jQuery(".lsb").scrollTop(jQuery(this).scrollTop());
}); */
/* [CSS+Javascript] 간단한 Back to top 버튼 넣기 */
jQuery('body').append('<div id="toTop"><i class="fa fa-angle-double-up fa-5x"></i></div>');
jQuery("#toTop").bind("click", function () {jQuery("body").animate({ scrollTop: 0 }, 200);});
jQuery(window).scroll(function () {
if (jQuery(this).scrollTop() > 100) {
jQuery('#toTop').fadeIn();
} else {
jQuery('#toTop').fadeOut();
}
}); /* http://blog.readiz.com/134 */
});
</script>
<div id="spot-im-root"></div>
<?php /* spot-im community widget */ //echo tpl_getConf('spot-im')?>
<?php /* server processing time */ ?>
<?php printf("<center class='small text-muted noprint'>%.3f seconds in processing this page.</center>",(microtime(get_as_float)-$pagestart));?>
<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
<div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?>
<?php printf("<center class='small text-muted noprint'>%.3f seconds in processing this page on this powerful server.</center>",(microtime(get_as_float)-$pagestart));?>
</body>
</html>
View
@@ -1,8 +1,22 @@
/* day/night toggle */
function tpl_toggleLight() {
if (DokuCookie.getValue('dark')==1)
{
DokuCookie.setValue('dark','0');
jQuery('body').toggleClass('dark');
return false;
}
else
{
DokuCookie.setValue('dark','1');
jQuery('body').toggleClass('dark');
return false;
}
}
(function($) {
var fadeOption = {duration: 150};
var fadeOption = {duration: 0};
var device_class = ''; // not yet known
var device_classes = 'mobile wide desktop tablet phone';
var resizeTimer;
View
@@ -8,8 +8,11 @@
?>
<!-- ********** FOOTER ********** -->
<div id="dokuwiki__footer"><div class="pad">
<?php if (tpl_getConf('debug')):?>
<?php // tpl_license(); // license text ?>
<div class="buttons text-center">
<a href="https://www.dokuwiki.org" title="Driven by DokuWiki" <?php echo $target?>><img
src="<?php echo tpl_basedir(); ?>images/button-dokuwiki.png" width="80" height="15" alt="Driven by DokuWiki" /></a>
<a href="http://openwiki.kr/" target="openwiki" title="(C)OPENWIKI.KR All rights reserved"><img src="<?php echo tpl_basedir(); ?>images/button-openwiki.png" height="15" width="80" alt="Openwiki.kr"></a>
<a href="http://openwiki.kr/tech/kajukkk" target="kajukkk" title="DOKUWIKI TEMPLATE KAJUKKK"><img src="<?php echo tpl_basedir(); ?>images/button-kajukkk.png" height="15" width="80" alt="Kajukkk template"></a>
<!-- <a href="http://kr.dnsever.com" target="dnsever"><img src="<?php echo tpl_basedir(); ?>images/button-dnsever.png" height="15" width="80" alt="DNS Powered by DNSEver.com"></a> -->
@@ -25,13 +28,12 @@
src="<?php echo tpl_basedir(); ?>images/button-html5.png" width="80" height="15" alt="Valid HTML5" /></a>
<!--<a href="http://jigsaw.w3.org/css-validator/check/referer?profile=css3" title="Valid CSS" <?php echo $target?>><img
src="<?php echo tpl_basedir(); ?>images/button-css.png" width="80" height="15" alt="Valid CSS" /></a>-->
<a href="http://openwiki.kr/tech/dokuwiki" title="Driven by DokuWiki" <?php echo $target?>><img
src="<?php echo tpl_basedir(); ?>images/button-dokuwiki.png" width="80" height="15" alt="Driven by DokuWiki" /></a>
<a href="http://openwiki.kr/tech/nginx" title="Powered by Nginx" <?php echo $target?>><img
src="<?php echo tpl_basedir(); ?>images/button-nginx.png" width="80" height="15" alt="Powered by NginX" /></a>
<span ><?php // echo tpl_getConf('whosamungus')?></span>
<span ><?php echo tpl_getConf('whosamungus')?></span>
</div>
<?php endif;?>
</div></div><!-- /footer -->
<?php tpl_includeFile('footer.html') ?>

0 comments on commit 751dc60

Please sign in to comment.