문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
wiki:도쿠위키_제작과정 [2022/06/08 23:33] clayeryan@gmail.com [template] |
wiki:도쿠위키_제작과정 [2025/06/27 16:00] (현재) |
||
|---|---|---|---|
| 줄 38: | 줄 38: | ||
| ====도쿠위키 처음 설정==== | ====도쿠위키 처음 설정==== | ||
| ftp의 경우 : 업로드 해주면 된다. 시간이 좀 걸리더라. (다른 일 보고 오기를 추천) / 도메인 경로로 접속하면 된다. 안 되면 install.php 붙여서 접속해보고, | ftp의 경우 : 업로드 해주면 된다. 시간이 좀 걸리더라. (다른 일 보고 오기를 추천) / 도메인 경로로 접속하면 된다. 안 되면 install.php 붙여서 접속해보고, | ||
| + | |||
| + | ==== 환경설정 ==== | ||
| + | |||
| + | 테마 등을 바꾸기 위해서는 '' | ||
| + | |||
| + | | ||
| + | <code java> | ||
| + | /* Basic Settings */ | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | </ | ||
| + | ++++ | ||
| + | |||
| + | 이렇게 수정해주었다. | ||
| + | |||
| + | ==== 메인페이지의 수정 ==== | ||
| + | |||
| + | <hi # | ||
| + | |||
| + | 경로 : '' | ||
| + | |||
| + | ++++main.php 소스| | ||
| + | <file php main.php> | ||
| + | <?php | ||
| + | /** | ||
| + | * DokuWiki NME Template | ||
| + | * | ||
| + | * @link | ||
| + | * @based on white template | ||
| + | * @editor | ||
| + | * @license | ||
| + | */ | ||
| + | |||
| + | if (!defined(' | ||
| + | @require_once(dirname(__FILE__).'/ | ||
| + | header(' | ||
| + | $showSidebar = page_findnearest($conf[' | ||
| + | ?> | ||
| + | < | ||
| + | <html xmlns=" | ||
| + | |||
| + | < | ||
| + | <!-- Google Tag Manager --> | ||
| + | < | ||
| + | (function(w, | ||
| + | w[l] = w[l] || []; | ||
| + | w[l].push({ | ||
| + | ' | ||
| + | event: ' | ||
| + | }); | ||
| + | var f = d.getElementsByTagName(s)[0], | ||
| + | j = d.createElement(s), | ||
| + | dl = l != ' | ||
| + | j.async = true; | ||
| + | j.src = | ||
| + | ' | ||
| + | f.parentNode.insertBefore(j, | ||
| + | })(window, document, ' | ||
| + | </ | ||
| + | <!-- End Google Tag Manager --> | ||
| + | <script type=" | ||
| + | <meta charset=" | ||
| + | <meta name=" | ||
| + | maximum-scale=1.0, | ||
| + | <meta name=" | ||
| + | <meta property=" | ||
| + | <meta property=" | ||
| + | <meta property=" | ||
| + | <meta property=" | ||
| + | <meta property=" | ||
| + | <?php tpl_metaheaders() ?> | ||
| + | <?php tpl_includeFile(' | ||
| + | < | ||
| + | < | ||
| + | (function(H) { | ||
| + | H.className = H.className.replace(/ | ||
| + | })(document.documentElement) | ||
| + | </ | ||
| + | |||
| + | <?php echo tpl_favicon(array(' | ||
| + | < | ||
| + | window.dataLayer = window.dataLayer || []; | ||
| + | |||
| + | function gtag() { | ||
| + | dataLayer.push(arguments); | ||
| + | } | ||
| + | gtag(' | ||
| + | gtag(' | ||
| + | </ | ||
| + | |||
| + | <!--- 구글 애드센스 스크립트 ---> | ||
| + | <script data-ad-client=" | ||
| + | <!--- 구글 애널리틱스 스크립트 ---> | ||
| + | <!-- Global site tag (gtag.js) - Google Analytics --> | ||
| + | <script async src=" | ||
| + | <!--- 우측 광고 정렬 스크립트 ---> | ||
| + | <style type=" | ||
| + | # | ||
| + | position: relative; | ||
| + | z-index: 3; | ||
| + | } | ||
| + | # | ||
| + | position: absolute; | ||
| + | display: none; | ||
| + | z-index: 1; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | <style type=" | ||
| + | #button { | ||
| + | background: #FFF; | ||
| + | } | ||
| + | |||
| + | # | ||
| + | background: #F2F2F2; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | <link rel=" | ||
| + | |||
| + | <script src="// | ||
| + | </ | ||
| + | |||
| + | <body id=" | ||
| + | <div id=" | ||
| + | <?php html_msgarea() ?> | ||
| + | <?php tpl_includeFile(' | ||
| + | <div id=" | ||
| + | <!-- ********** HEADER ********** --> | ||
| + | < | ||
| + | <div class=" | ||
| + | < | ||
| + | <div class=" | ||
| + | <?php if ($showSidebar): | ||
| + | <button class=" | ||
| + | <?php endif; ?> | ||
| + | </ | ||
| + | <div class=" | ||
| + | <button class=" | ||
| + | <button class=" | ||
| + | </ | ||
| + | </ | ||
| + | <div class=" | ||
| + | <?php tpl_searchform(); | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <!-- ********** sidebar ********** --> | ||
| + | <div id=" | ||
| + | <!-- ********** ASIDE ********** --> | ||
| + | <?php if ($showSidebar): | ||
| + | <div id=" | ||
| + | <?php tpl_includeFile(' | ||
| + | <?php tpl_include_page($conf[' | ||
| + | <?php tpl_includeFile(' | ||
| + | |||
| + | <div id=" | ||
| + | <img src=" | ||
| + | </ | ||
| + | |||
| + | <!-- TOC --> | ||
| + | <div id=" | ||
| + | <?php tpl_toc()?> | ||
| + | </ | ||
| + | </ | ||
| + | <?php endif; ?> | ||
| + | |||
| + | <div id=" | ||
| + | <!-- PAGE TOOLS --> | ||
| + | <div id=" | ||
| + | < | ||
| + | <ul> | ||
| + | <?php white_toolsevent(' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | )); ?> | ||
| + | </ul> | ||
| + | </ | ||
| + | |||
| + | <!-- SITE TOOLS --> | ||
| + | <div id=" | ||
| + | < | ||
| + | <ul> | ||
| + | <?php white_toolsevent(' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | )); ?> | ||
| + | </ul> | ||
| + | </ | ||
| + | |||
| + | <!-- USER TOOLS --> | ||
| + | <?php if ($conf[' | ||
| + | <div id=" | ||
| + | < | ||
| + | </h3> | ||
| + | <ul> | ||
| + | <?php white_toolsevent(' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | )); ?> | ||
| + | </ul> | ||
| + | < | ||
| + | <p> | ||
| + | <p> | ||
| + | <a href=" | ||
| + | <p> | ||
| + | <a href=" | ||
| + | </h3> | ||
| + | |||
| + | <!-- Kakaotalk Share --> | ||
| + | |||
| + | <div> | ||
| + | | ||
| + | </ | ||
| + | < | ||
| + | |||
| + | <script type=" | ||
| + | function sendLinkCustom() { | ||
| + | Kakao.init(' | ||
| + | Kakao.Link.sendCustom({ | ||
| + | templateId: 75002 | ||
| + | }); | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | <script type=' | ||
| + | |||
| + | |||
| + | </ | ||
| + | <?php endif ?> | ||
| + | </ | ||
| + | |||
| + | <div id=" | ||
| + | </ | ||
| + | |||
| + | <div id=" | ||
| + | <?php tpl_action(' | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <div class=" | ||
| + | |||
| + | <div style=" | ||
| + | |||
| + | <!-- ********** CONTENT ********** --> | ||
| + | <div id=" | ||
| + | <div class=" | ||
| + | <?php tpl_flush() ?> | ||
| + | <?php tpl_includeFile(' | ||
| + | |||
| + | <!-- BREADCRUMBS --> | ||
| + | <?php if($conf[' | ||
| + | <div class=" | ||
| + | <?php } ?> | ||
| + | <?php if($conf[' | ||
| + | <div class=" | ||
| + | <?php } ?> | ||
| + | |||
| + | <div class=" | ||
| + | <?php if(tpl_getConf(' | ||
| + | <?php if(tpl_getConf(' | ||
| + | "> | ||
| + | <!-- wikipage start --> | ||
| + | < | ||
| + | <?php tpl_content() ?> | ||
| + | |||
| + | <!-- wikipage stop --> | ||
| + | </ | ||
| + | <?php tpl_flush() ?> | ||
| + | <?php tpl_includeFile(' | ||
| + | </ | ||
| + | </ | ||
| + | <a href=" | ||
| + | <!-- ********** FOOTER ********** --> | ||
| + | <div id=" | ||
| + | <?php if($INFO[' | ||
| + | <div class=" | ||
| + | <?php endif ?> | ||
| + | <?php tpl_includeFile(' | ||
| + | <?php tpl_license(' | ||
| + | <div class=" | ||
| + | <?php tpl_include_page(tpl_getConf(' | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <?php tpl_includeFile(' | ||
| + | </ | ||
| + | |||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <div class=" | ||
| + | |||
| + | <!-- Google Tag Manager (noscript) --> | ||
| + | < | ||
| + | <!-- End Google Tag Manager (noscript) --> | ||
| + | | ||
| + | <!-- Naver Analytics --> | ||
| + | <script type=" | ||
| + | <script type=" | ||
| + | if (!wcs_add) var wcs_add = {}; | ||
| + | wcs_add[" | ||
| + | if (window.wcs) { | ||
| + | wcs_do(); | ||
| + | } | ||
| + | </ | ||
| + | <!-- End Naver Analytics --> | ||
| + | |||
| + | </ | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | ++++ | ||
| + | |||
| + | **{{date> | ||
| ====도쿠위키 꾸미기==== | ====도쿠위키 꾸미기==== | ||
별도로 명시하지 않을 경우, 이 위키의 내용은 다음 라이선스에 따라 사용할 수 있습니다: CC Attribution-Share Alike 4.0 International