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.

314 lines
14 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
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/apis')?>">
  6. <div class="panel panel-dark">
  7. <div class="panel-heading">
  8. <h4 class="panel-title pull-left">페이스북 로그인 설정</h4>
  9. <button type="button" class="btn btn-default pull-right" data-toggle="popup" data-url="/admin/help/document/facebook_login"><i class="far fa-question-circle"></i> 등록방법 자세히보기</button>
  10. <div class="clearfix"></div>
  11. </div>
  12. <div class="panel-body">
  13. <div class="form-group">
  14. <label class="control-label">페북 로그인 사용</label>
  15. <div class="controls">
  16. <select class="form-control form-control-inline" name="setting[social_facebook_use]">
  17. <option value="Y" <?=$this->site->config('social_facebook_use')=='Y'?'selected':''?>>사용</option>
  18. <option value="N" <?=$this->site->config('social_facebook_use')=='N'?'selected':''?>>미사용</option>
  19. </select>
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="control-label">페이스북 APP ID</label>
  24. <div class="controls">
  25. <input class="form-control" name="setting[social_facebook_appid]" value="<?=$this->site->config('social_facebook_appid')?>">
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="control-label">페이스북 APP Secret</label>
  30. <div class="controls">
  31. <input class="form-control" name="setting[social_facebook_appsecret]" value="<?=$this->site->config('social_facebook_appsecret')?>">
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="H10"></div>
  37. <div class="panel panel-dark">
  38. <div class="panel-heading">
  39. <h4 class="panel-title pull-left">구글 로그인 설정</h4>
  40. <button type="button" class="btn btn-default pull-right" data-toggle="popup" data-url="/admin/help/document/google_login"><i class="far fa-question-circle"></i> 등록방법 자세히보기</button>
  41. <div class="clearfix"></div>
  42. </div>
  43. <div class="panel-body">
  44. <div class="form-group">
  45. <label class="control-label">구글 로그인 사용</label>
  46. <div class="controls">
  47. <select class="form-control form-control-inline" name="setting[social_google_use]">
  48. <option value="Y" <?=$this->site->config('social_google_use')=='Y'?'selected':''?>>사용</option>
  49. <option value="N" <?=$this->site->config('social_google_use')=='N'?'selected':''?>>미사용</option>
  50. </select>
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="control-label">클라이언트 ID</label>
  55. <div class="controls">
  56. <input class="form-control" name="setting[social_google_clientid]" value="<?=$this->site->config('social_google_clientid')?>">
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <label class="control-label">클라이언트 보안 비밀</label>
  61. <div class="controls">
  62. <input class="form-control" name="setting[social_google_clientsecret]" value="<?=$this->site->config('social_google_clientsecret')?>">
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="H10"></div>
  68. <div class="panel panel-dark">
  69. <div class="panel-heading">
  70. <h4 class="panel-title pull-left">네이버 로그인 설정</h4>
  71. <button type="button" class="btn btn-default pull-right" data-toggle="popup" data-url="/admin/help/document/naver_login"><i class="far fa-question-circle"></i> 등록방법 자세히보기</button>
  72. <div class="clearfix"></div>
  73. </div>
  74. <div class="panel-body">
  75. <div class="form-group">
  76. <label class="control-label">네이버 로그인 사용</label>
  77. <div class="controls">
  78. <select class="form-control form-control-inline" name="setting[social_naver_use]">
  79. <option value="Y" <?=$this->site->config('social_naver_use')=='Y'?'selected':''?>>사용</option>
  80. <option value="N" <?=$this->site->config('social_naver_use')=='N'?'selected':''?>>미사용</option>
  81. </select>
  82. </div>
  83. </div>
  84. <div class="form-group">
  85. <label class="control-label">Clinet ID</label>
  86. <div class="controls">
  87. <input class="form-control" name="setting[social_naver_clientid]" value="<?=$this->site->config('social_naver_clientid')?>">
  88. </div>
  89. </div>
  90. <div class="form-group">
  91. <label class="control-label">Clinet Secret</label>
  92. <div class="controls">
  93. <input class="form-control" name="setting[social_naver_clientsecret]" value="<?=$this->site->config('social_naver_clientsecret')?>">
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="H10"></div>
  99. <div class="panel panel-dark">
  100. <div class="panel-heading">
  101. <h4 class="panel-title pull-left">카카오 로그인 설정</h4>
  102. <button type="button" class="btn btn-default pull-right" data-toggle="popup" data-url="/admin/help/document/kakao_login"><i class="far fa-question-circle"></i> 등록방법 자세히보기</button>
  103. <div class="clearfix"></div>
  104. </div>
  105. <div class="panel-body">
  106. <div class="form-group">
  107. <label class="control-label">카카오 로그인 사용</label>
  108. <div class="controls">
  109. <select class="form-control form-control-inline" name="setting[social_kakao_use]">
  110. <option value="Y" <?=$this->site->config('social_kakao_use')=='Y'?'selected':''?>>사용</option>
  111. <option value="N" <?=$this->site->config('social_kakao_use')=='N'?'selected':''?>>미사용</option>
  112. </select>
  113. </div>
  114. </div>
  115. <div class="form-group">
  116. <label class="control-label">REST API </label>
  117. <div class="controls">
  118. <input class="form-control" name="setting[social_kakao_clientid]" value="<?=$this->site->config('social_kakao_clientid')?>">
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. <div class="H10"></div>
  124. <div class="panel panel-dark">
  125. <div class="panel-heading">
  126. <h4 class="panel-title pull-left">네이버 신디케이션 API KEY</h4>
  127. <button type="button" class="btn btn-default pull-right" data-toggle="popup" data-url="/admin/help/document/naver_syndi"><i class="far fa-question-circle"></i> 등록방법 자세히보기</button>
  128. <div class="clearfix"></div>
  129. </div>
  130. <div class="panel-body">
  131. <div class="form-group">
  132. <label class="control-label">네이버 신디케이션 API KEY</label>
  133. <div class="controls">
  134. <input class="form-control" name="setting[naver_syndication_key]" value="<?=$this->site->config('naver_syndication_key')?>">
  135. <p class="help-block">네이버 신디케이션 API KEY를 입력하시면 비밀글이 아니고, 내용보기 레벨이 비회원으로 되어있을경우 자동으로 주소를 네이버 검색노출에 등록시킵니다.</p>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="H10"></div>
  141. <div class="panel panel-dark">
  142. <div class="panel-heading">
  143. <h4 class="panel-title pull-left">구글 reCaptcha KEY</h4>
  144. <button type="button" class="btn btn-default pull-right" data-toggle="popup" data-url="/admin/help/document/recaptcha"><i class="far fa-question-circle"></i> 등록방법 자세히보기</button>
  145. <div class="clearfix"></div>
  146. </div>
  147. <div class="panel-body">
  148. <p class="alert alert-info"><i class="far fa-info-circle"></i> 구글 reCaptcha는 구글에서 제공하는 스팸방지 기능입니다.<br><i class="far fa-info-circle"></i> 회원 글쓰기시 적용되며, 등록을 추천합니다.</p>
  149. <div class="form-group">
  150. <label class="control-label">Site KEY</label>
  151. <div class="controls">
  152. <input class="form-control" name="setting[google_recaptcha_site_key]" value="<?=$this->site->config('google_recaptcha_site_key')?>">
  153. </div>
  154. </div>
  155. <div class="form-group">
  156. <label class="control-label">Secret KEY</label>
  157. <div class="controls">
  158. <input class="form-control" name="setting[google_recaptcha_secret_key]" value="<?=$this->site->config('google_recaptcha_secret_key')?>">
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. <div class="H10"></div>
  164. <div class="panel panel-dark">
  165. <div class="panel-heading">
  166. <h4 class="panel-title">사이트 채널 연동</h4>
  167. </div>
  168. <div class="panel-body">
  169. <div class="form-group">
  170. <label class="control-label">사이트 채널</label>
  171. <div class="controls">
  172. <select class="form-control form-control-inline" name="setting[channel_type]">
  173. <option value="Person" <?=$this->site->config('channel_type')=='Person'?'selected':''?>>개인</option>
  174. <option value="Organization" <?=$this->site->config('channel_type')=='Organization'?'selected':''?>>조직/회사</option>
  175. </select>
  176. </div>
  177. </div>
  178. <div class="form-group">
  179. <label class="control-label">네이버 블로그</label>
  180. <div class="controls">
  181. <input class="form-control" name="setting[channel_naver_blog]" value="<?=$this->site->config('channel_naver_blog')?>">
  182. </div>
  183. </div>
  184. <div class="form-group">
  185. <label class="control-label">네이버 카페</label>
  186. <div class="controls">
  187. <input class="form-control" name="setting[channel_naver_cafe]" value="<?=$this->site->config('channel_naver_cafe')?>">
  188. </div>
  189. </div>
  190. <div class="form-group">
  191. <label class="control-label">네이버 폴라</label>
  192. <div class="controls">
  193. <input class="form-control" name="setting[channel_naver_pholar]" value="<?=$this->site->config('channel_naver_pholar')?>">
  194. </div>
  195. </div>
  196. <div class="form-group">
  197. <label class="control-label">네이버 포스트</label>
  198. <div class="controls">
  199. <input class="form-control" name="setting[channel_naver_post]" value="<?=$this->site->config('channel_naver_post')?>">
  200. </div>
  201. </div>
  202. <div class="form-group">
  203. <label class="control-label">네이버 스토어팜</label>
  204. <div class="controls">
  205. <input class="form-control" name="setting[channel_naver_storefarm]" value="<?=$this->site->config('channel_naver_storefarm')?>">
  206. </div>
  207. </div>
  208. <div class="form-group">
  209. <label class="control-label">구글 플레이스토어</label>
  210. <div class="controls">
  211. <input class="form-control" name="setting[channel_playstore]" value="<?=$this->site->config('channel_playstore')?>">
  212. </div>
  213. </div>
  214. <div class="form-group">
  215. <label class="control-label">페이스북</label>
  216. <div class="controls">
  217. <input class="form-control" name="setting[channel_facebook]" value="<?=$this->site->config('channel_facebook')?>">
  218. </div>
  219. </div>
  220. <div class="form-group">
  221. <label class="control-label">인스타그램</label>
  222. <div class="controls">
  223. <input class="form-control" name="setting[channel_instagram]" value="<?=$this->site->config('channel_instagram')?>">
  224. </div>
  225. </div>
  226. <div class="form-group">
  227. <label class="control-label">아이튠즈</label>
  228. <div class="controls">
  229. <input class="form-control" name="setting[channel_itunes]" value="<?=$this->site->config('channel_itunes')?>">
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. <div class="text-center">
  235. <button class="btn btn-primary"><i class="far fa-save"></i> 저장하기</button>
  236. </div>
  237. <div class="H10"></div>
  238. <?=form_close()?>
  239. <script>
  240. $(function(){
  241. $('select[name="setting[social_facebook_use]"]').change(function(){
  242. if( $(this).find('option:selected').val() == 'Y' ) {
  243. $('input[name="setting[social_facebook_appid]"], input[name="setting[social_facebook_appsecret]"]').removeAttr('readonly');
  244. }
  245. else {
  246. $('input[name="setting[social_facebook_appid]"], input[name="setting[social_facebook_appsecret]"]').attr('readonly', 'readonly');
  247. }
  248. }).change();
  249. $('select[name="setting[social_google_use]"]').change(function(){
  250. if( $(this).find('option:selected').val() == 'Y' ) {
  251. $('input[name="setting[social_google_clientid]"], input[name="setting[social_google_clientsecret]"]').removeAttr('readonly');
  252. }
  253. else {
  254. $('input[name="setting[social_google_clientid]"], input[name="setting[social_google_clientsecret]"]').attr('readonly', 'readonly');
  255. }
  256. }).change();
  257. $('select[name="setting[social_kakao_use]"]').change(function(){
  258. if( $(this).find('option:selected').val() == 'Y' ) {
  259. $('input[name="setting[social_kakao_clientid]"]').removeAttr('readonly');
  260. }
  261. else {
  262. $('input[name="setting[social_kakao_clientid]"]').attr('readonly', 'readonly');
  263. }
  264. }).change();
  265. $('select[name="setting[social_naver_use]"]').change(function(){
  266. if( $(this).find('option:selected').val() == 'Y' ) {
  267. $('input[name="setting[social_naver_clientid]"], input[name="setting[social_naver_clientsecret]"]').removeAttr('readonly');
  268. }
  269. else {
  270. $('input[name="setting[social_naver_clientid]"], input[name="setting[social_naver_clientsecret]"]').attr('readonly', 'readonly');
  271. }
  272. }).change();
  273. $('[data-toggle="popup"]').click(function(){
  274. APP.POPUP({
  275. url : $(this).data('url'),
  276. width:800,
  277. height:600
  278. });
  279. });
  280. });
  281. </script>