You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

204 lines
9.8 KiB

7 years ago
  1. <div class="page-header">
  2. <h1 class="page-title">사이트 기본 설정</h1>
  3. </div>
  4. <?=form_open_multipart("admin/setting/update", array('class'=>"form-flex"))?>
  5. <input type="hidden" name="reurl" value="<?=base_url('admin/setting/basic')?>">
  6. <div class="panel panel-dark">
  7. <div class="panel-heading">
  8. <h4 class="panel-title">정보 설정</h4>
  9. </div>
  10. <div class="panel-body">
  11. <div class="form-group">
  12. <label class="control-label">사이트 이름</label>
  13. <div class="controls">
  14. <input class="form-control" name="setting[site_title]" value="<?=$this->site->config('site_title')?>">
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label class="control-label">사이트 부제</label>
  19. <div class="controls">
  20. <input class="form-control" name="setting[site_subtitle]" value="<?=$this->site->config('site_subtitle')?>">
  21. <p class="help-block">페이지 제목이 설정되어 있지 않으면 부제가 붙습니다.</p>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label">사이트 키워드</label>
  26. <div class="controls">
  27. <input class="form-control" name="setting[site_meta_keywords]" value="<?=$this->site->config('site_meta_keywords')?>">
  28. <p class="help-block">10~20 고유한 단어나 문구로 유지하세요. 단어나 구문을 반복하지 마세요. 목록의 처음에 가장 중요한 단어나 구문을 넣으세요.</p>
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label class="control-label">사이트 요약</label>
  33. <div class="controls">
  34. <textarea class="form-control" name="setting[site_meta_description]" rows="4"><?=$this->site->config('site_meta_description')?></textarea>
  35. <p class="help-block">주요 키워드를 사용한 알아보기 쉽고, 설득력있는 내용을 입력하세요. 키워드로 채우는것은 피하세요.</p>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label">사이트 대표 이미지</label>
  40. <div class="controls">
  41. <?php if($this->site->config('site_meta_image')) : ?>
  42. <img src="<?=base_url($this->site->config('site_meta_image'))?>" class="img-responsive">
  43. <div class="H10"></div>
  44. <label class="checkbox-inline"><input type="checkbox" value="Y" name="remove_site_meta_image"> 현재 이미지 삭제</label>
  45. <div class="H20"></div>
  46. <?php endif;?>
  47. <input type="file" name="site_meta_image" class="form-control">
  48. <p class="help-block">1200x600의 이미지를 사용하세요.</p>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="panel-footer">
  53. <button class="btn btn-primary">저장하기</button>
  54. </div>
  55. </div>
  56. <div class="H10"></div>
  57. <div class="panel panel-dark">
  58. <div class="panel-heading">
  59. <h4 class="panel-title">관리자 설정</h4>
  60. </div>
  61. <div class="panel-body">
  62. <div class="form-group">
  63. <label class="control-label">관리자 이메일</label>
  64. <div class="controls">
  65. <input class="form-control" name="setting[email_send_address]" value="<?=$this->site->config('email_send_address')?>">
  66. <p class="help-block">메일을 발송할때 사용할 이메일주소, 문의를 받을 이메일 주소입니다.</p>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="panel-footer">
  71. <button class="btn btn-primary">저장하기</button>
  72. </div>
  73. </div>
  74. <div class="H10"></div>
  75. <div class="panel panel-dark">
  76. <div class="panel-heading">
  77. <h4 class="panel-title">보안 설정</h4>
  78. </div>
  79. <div class="panel-body">
  80. <div class="form-group">
  81. <label class="control-label">허용 호스트</label>
  82. <div class="controls">
  83. <textarea class="form-control" name="setting[allow_host]" rows="10"><?=$this->site->config('allow_host')?></textarea>
  84. <p class="help-block">iframe으로 담을수 있는 허용 호스트 입니다. 한줄에 하나씩 입력하세요</p>
  85. </div>
  86. </div>
  87. <div class="form-group">
  88. <label class="control-label">접근금지 IP</label>
  89. <div class="controls">
  90. <textarea class="form-control" name="setting[deny_ip]" rows="5"><?=$this->site->config('deny_ip')?></textarea>
  91. <ul class="help-block">
  92. <li>접근 금지시킬 IP를 설정합니다.한줄에 하나씩 입력합니다.</li>
  93. <li>192.168.2.10 : 4자리의 정확한 ip주소</li>
  94. <li>192.168.*.* : 와일드카드(*) 사용된 4자리의 ip주소, a클래스에는 와일드카드 사용불가,</li>
  95. <li>192.168.1.1-192.168.1.10 : 하이픈(-)으로 구분된 정확한 4자리의 ip주소 2</li>
  96. </ul>
  97. </div>
  98. </div>
  99. <div class="form-group">
  100. <label class="control-label">사용금지 ID</label>
  101. <div class="controls">
  102. <textarea class="form-control" name="setting[deny_id]" rows="4"><?=$this->site->config('deny_id')?></textarea>
  103. <p class="help-block">가입시 금지시킬 단어를 설정합니다.공백없이 콤마(,) 구분하여 입력합니다.</p>
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label class="control-label">금지 닉네임</label>
  108. <div class="controls">
  109. <textarea class="form-control" name="setting[deny_nickname]" data-role="tagsinput" rows="4"><?=$this->site->config('deny_nickname')?></textarea>
  110. <p class="help-block">가입시 금지시킬 단어를 설정합니다.공백없이 콤마(,) 구분하여 입력합니다.</p>
  111. </div>
  112. </div>
  113. <div class="form-group">
  114. <label class="control-label">금지 단어</label>
  115. <div class="controls">
  116. <textarea class="form-control" name="setting[deny_word]" data-role="tagsinput" rows="4"><?=$this->site->config('deny_word')?></textarea>
  117. <p class="help-block">사용 금지시킬 단어를 설정합니다.공백없이 콤마(,) 구분하여 입력합니다.</p>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="panel-footer">
  122. <button class="btn btn-primary">저장하기</button>
  123. </div>
  124. </div>
  125. <div class="H10"></div>
  126. <div class="panel panel-dark">
  127. <div class="panel-heading">
  128. <h4 class="panel-title">기타 설정</h4>
  129. </div>
  130. <div class="panel-body">
  131. <div class="form-group">
  132. <label class="control-label">구글 소유확인 코드</label>
  133. <div class="controls">
  134. <input class="form-control" name="setting[verification_google]" value="<?=htmlspecialchars($this->site->config('verification_google'))?>">
  135. <div class="H10"></div>
  136. <button type="button" class="btn btn-default" data-toggle="popup" data-url="/admin/help/document/google_ownership"><i class="far fal fas fa-question-circle"></i> 도움말</button>
  137. </div>
  138. </div>
  139. <div class="form-group">
  140. <label class="control-label">네이버 소유확인 코드</label>
  141. <div class="controls">
  142. <input class="form-control" name="setting[verification_naver]" value="<?=htmlspecialchars($this->site->config('verification_naver'))?>">
  143. <div class="H10"></div>
  144. <button type="button" class="btn btn-default" data-toggle="popup" data-url="/admin/help/document/naver_ownership"><i class="far fal fas fa-question-circle"></i> 도움말</button>
  145. </div>
  146. </div>
  147. <div class="form-group">
  148. <label class="control-label">구글 애널리틱스 코드</label>
  149. <div class="controls">
  150. <textarea class="form-control" name="setting[analytics_google]" rows="5"><?=htmlspecialchars($this->site->config('analytics_google'))?></textarea>
  151. <div class="H10"></div>
  152. <button type="button" class="btn btn-default" data-toggle="popup" data-url="/admin/help/document/google_analytics"><i class="far fal fas fa-question-circle"></i> 도움말</button>
  153. </div>
  154. </div>
  155. <div class="form-group">
  156. <label class="control-label">네이버 애널리틱스 코드</label>
  157. <div class="controls">
  158. <textarea class="form-control" name="setting[analytics_naver]" rows="5"><?=htmlspecialchars($this->site->config('analytics_naver'))?></textarea>
  159. <div class="H10"></div>
  160. <button type="button" class="btn btn-default" data-toggle="popup" data-url="/admin/help/document/naver_analytics"><i class="far fal fas fa-question-circle"></i> 도움말</button>
  161. </div>
  162. </div>
  163. <div class="form-group">
  164. <label class="control-label">기타 추가 스크립트</label>
  165. <div class="controls">
  166. <textarea class="form-control" name="setting[analytics_etc]" rows="5"><?=htmlspecialchars($this->site->config('analytics_etc'))?></textarea>
  167. <p class="help-block">다른 추가 스크립트를 입력합니다.</p>
  168. </div>
  169. </div>
  170. </div>
  171. <div class="panel-footer">
  172. <button class="btn btn-primary">저장하기</button>
  173. </div>
  174. </div>
  175. <?=form_close()?>
  176. <script>
  177. $(function(){
  178. $('[data-toggle="popup"]').click(function(){
  179. APP.POPUP({
  180. url : $(this).data('url'),
  181. width:800,
  182. height:600
  183. });
  184. });
  185. });
  186. </script>