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.

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