안녕하세요. KBoard 오션 프랜차이즈 스킨 사용중인데,
해외 매장정보 및 위치를 넣고 싶습니다.
지역 선택하는게 국내로만 제한되어 있어서 해외 지역도 선택가능하게 하려면 어떤 스킨을 써야하는지 확인 부탁드립니다.
감사합니다.
국내 이외에 "해외" 라는 항목을 추가하여 예제를 작성해봤습니다.
FTP로 접속해서 /wp-content/plugins/kboard/skin/ocean-franchise/editor.php 파일에
아래의 코드를 찾아서
<select name="category1">
<option value=""><?php echo __('Select', 'kboard')?></option>
<option value="서울"<?php if($content->category1 == '서울'):?> selected<?php endif?>><?php echo __('Seoul', 'kboard-ocean-franchise')?></option>
<option value="부산"<?php if($content->category1 == '부산'):?> selected<?php endif?>><?php echo __('Busan', 'kboard-ocean-franchise')?></option>
<option value="대구"<?php if($content->category1 == '대구'):?> selected<?php endif?>><?php echo __('Daegu', 'kboard-ocean-franchise')?></option>
<option value="인천"<?php if($content->category1 == '인천'):?> selected<?php endif?>><?php echo __('Incheon', 'kboard-ocean-franchise')?></option>
<option value="광주"<?php if($content->category1 == '광주'):?> selected<?php endif?>><?php echo __('Gwangju', 'kboard-ocean-franchise')?></option>
<option value="대전"<?php if($content->category1 == '대전'):?> selected<?php endif?>><?php echo __('Daejeon', 'kboard-ocean-franchise')?></option>
<option value="울산"<?php if($content->category1 == '울산'):?> selected<?php endif?>><?php echo __('Ulsan', 'kboard-ocean-franchise')?></option>
<option value="세종"<?php if($content->category1 == '세종'):?> selected<?php endif?>><?php echo __('Sejong', 'kboard-ocean-franchise')?></option>
<option value="경기도"<?php if($content->category1 == '경기도'):?> selected<?php endif?>><?php echo __('Gyeonggi', 'kboard-ocean-franchise')?></option>
<option value="경상남도"<?php if($content->category1 == '경상남도'):?> selected<?php endif?>><?php echo __('Gyeongnam', 'kboard-ocean-franchise')?></option>
<option value="경상북도"<?php if($content->category1 == '경상북도'):?> selected<?php endif?>><?php echo __('Gyeongbuk', 'kboard-ocean-franchise')?></option>
<option value="전라남도"<?php if($content->category1 == '전라남도'):?> selected<?php endif?>><?php echo __('Jeollanam', 'kboard-ocean-franchise')?></option>
<option value="전라북도"<?php if($content->category1 == '전라북도'):?> selected<?php endif?>><?php echo __('Jeollabuk', 'kboard-ocean-franchise')?></option>
<option value="충청남도"<?php if($content->category1 == '충청남도'):?> selected<?php endif?>><?php echo __('Chungnam', 'kboard-ocean-franchise')?></option>
<option value="충청북도"<?php if($content->category1 == '충청북도'):?> selected<?php endif?>><?php echo __('Chungbuk', 'kboard-ocean-franchise')?></option>
<option value="강원도"<?php if($content->category1 == '강원도'):?> selected<?php endif?>><?php echo __('Gangwon', 'kboard-ocean-franchise')?></option>
<option value="제주도"<?php if($content->category1 == '제주도'):?> selected<?php endif?>><?php echo __('Jeju', 'kboard-ocean-franchise')?></option>
</select>
아래의 코드로 교체해보세요.
<select name="category1">
<option value=""><?php echo __('Select', 'kboard')?></option>
<option value="서울"<?php if($content->category1 == '서울'):?> selected<?php endif?>><?php echo __('Seoul', 'kboard-ocean-franchise')?></option>
<option value="부산"<?php if($content->category1 == '부산'):?> selected<?php endif?>><?php echo __('Busan', 'kboard-ocean-franchise')?></option>
<option value="대구"<?php if($content->category1 == '대구'):?> selected<?php endif?>><?php echo __('Daegu', 'kboard-ocean-franchise')?></option>
<option value="인천"<?php if($content->category1 == '인천'):?> selected<?php endif?>><?php echo __('Incheon', 'kboard-ocean-franchise')?></option>
<option value="광주"<?php if($content->category1 == '광주'):?> selected<?php endif?>><?php echo __('Gwangju', 'kboard-ocean-franchise')?></option>
<option value="대전"<?php if($content->category1 == '대전'):?> selected<?php endif?>><?php echo __('Daejeon', 'kboard-ocean-franchise')?></option>
<option value="울산"<?php if($content->category1 == '울산'):?> selected<?php endif?>><?php echo __('Ulsan', 'kboard-ocean-franchise')?></option>
<option value="세종"<?php if($content->category1 == '세종'):?> selected<?php endif?>><?php echo __('Sejong', 'kboard-ocean-franchise')?></option>
<option value="경기도"<?php if($content->category1 == '경기도'):?> selected<?php endif?>><?php echo __('Gyeonggi', 'kboard-ocean-franchise')?></option>
<option value="경상남도"<?php if($content->category1 == '경상남도'):?> selected<?php endif?>><?php echo __('Gyeongnam', 'kboard-ocean-franchise')?></option>
<option value="경상북도"<?php if($content->category1 == '경상북도'):?> selected<?php endif?>><?php echo __('Gyeongbuk', 'kboard-ocean-franchise')?></option>
<option value="전라남도"<?php if($content->category1 == '전라남도'):?> selected<?php endif?>><?php echo __('Jeollanam', 'kboard-ocean-franchise')?></option>
<option value="전라북도"<?php if($content->category1 == '전라북도'):?> selected<?php endif?>><?php echo __('Jeollabuk', 'kboard-ocean-franchise')?></option>
<option value="충청남도"<?php if($content->category1 == '충청남도'):?> selected<?php endif?>><?php echo __('Chungnam', 'kboard-ocean-franchise')?></option>
<option value="충청북도"<?php if($content->category1 == '충청북도'):?> selected<?php endif?>><?php echo __('Chungbuk', 'kboard-ocean-franchise')?></option>
<option value="강원도"<?php if($content->category1 == '강원도'):?> selected<?php endif?>><?php echo __('Gangwon', 'kboard-ocean-franchise')?></option>
<option value="제주도"<?php if($content->category1 == '제주도'):?> selected<?php endif?>><?php echo __('Jeju', 'kboard-ocean-franchise')?></option>
<option value="해외"<?php if($content->category1 == '해외'):?> selected<?php endif?>>해외</option>
</select>
/wp-content/plugins/kboard/skin/ocean-franchise/list.php 파일에
아래의 코드를 찾아서
<div class="kboard-branch">
<h3 class="kboard-header-title"><?php echo __('Guide', 'kboard-ocean-franchise')?></h3>
<a class="kboard-branch-button<?php if(!kboard_category1()):?> active<?php endif?>" href="<?php echo $url->set('category1', '')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="전체"><?php echo __('All', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='서울'):?> active<?php endif?>" href="<?php echo $url->set('category1', '서울')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="서울"><?php echo __('Seoul', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='부산'):?> active<?php endif?>" href="<?php echo $url->set('category1', '부산')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="부산"><?php echo __('Busan', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='대구'):?> active<?php endif?>" href="<?php echo $url->set('category1', '대구')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="대구"><?php echo __('Daegu', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='인천'):?> active<?php endif?>" href="<?php echo $url->set('category1', '인천')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="인천"><?php echo __('Incheon', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='광주'):?> active<?php endif?>" href="<?php echo $url->set('category1', '광주')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="광주"><?php echo __('Gwangju', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='대전'):?> active<?php endif?>" href="<?php echo $url->set('category1', '대전')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="대전"><?php echo __('Daejeon', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='울산'):?> active<?php endif?>" href="<?php echo $url->set('category1', '울산')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="울산"><?php echo __('Ulsan', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='세종'):?> active<?php endif?>" href="<?php echo $url->set('category1', '세종')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="세종"><?php echo __('Sejong', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='경기도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '경기도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="경기도"><?php echo __('Gyeonggi', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='경상남도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '경상남도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="경상남도"><?php echo __('Gyeongnam', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='경상북도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '경상북도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="경상북도"><?php echo __('Gyeongbuk', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='전라남도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '전라남도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="전라남도"><?php echo __('Jeollanam', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='전라북도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '전라북도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="전라북도"><?php echo __('Jeollabuk', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='충청남도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '충청남도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="충청남도"><?php echo __('Chungnam', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='충청북도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '충청북도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="충청북도"><?php echo __('Chungbuk', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='강원도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '강원도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="강원도"><?php echo __('Gangwon', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='제주도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '제주도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="제주도"><?php echo __('Jeju', 'kboard-ocean-franchise')?></a>
</div>
아래의 코드로 교체해보세요.
<div class="kboard-branch">
<h3 class="kboard-header-title"><?php echo __('Guide', 'kboard-ocean-franchise')?></h3>
<a class="kboard-branch-button<?php if(!kboard_category1()):?> active<?php endif?>" href="<?php echo $url->set('category1', '')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="전체"><?php echo __('All', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='서울'):?> active<?php endif?>" href="<?php echo $url->set('category1', '서울')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="서울"><?php echo __('Seoul', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='부산'):?> active<?php endif?>" href="<?php echo $url->set('category1', '부산')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="부산"><?php echo __('Busan', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='대구'):?> active<?php endif?>" href="<?php echo $url->set('category1', '대구')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="대구"><?php echo __('Daegu', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='인천'):?> active<?php endif?>" href="<?php echo $url->set('category1', '인천')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="인천"><?php echo __('Incheon', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='광주'):?> active<?php endif?>" href="<?php echo $url->set('category1', '광주')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="광주"><?php echo __('Gwangju', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='대전'):?> active<?php endif?>" href="<?php echo $url->set('category1', '대전')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="대전"><?php echo __('Daejeon', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='울산'):?> active<?php endif?>" href="<?php echo $url->set('category1', '울산')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="울산"><?php echo __('Ulsan', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='세종'):?> active<?php endif?>" href="<?php echo $url->set('category1', '세종')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="세종"><?php echo __('Sejong', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='경기도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '경기도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="경기도"><?php echo __('Gyeonggi', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='경상남도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '경상남도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="경상남도"><?php echo __('Gyeongnam', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='경상북도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '경상북도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="경상북도"><?php echo __('Gyeongbuk', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='전라남도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '전라남도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="전라남도"><?php echo __('Jeollanam', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='전라북도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '전라북도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="전라북도"><?php echo __('Jeollabuk', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='충청남도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '충청남도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="충청남도"><?php echo __('Chungnam', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='충청북도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '충청북도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="충청북도"><?php echo __('Chungbuk', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='강원도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '강원도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="강원도"><?php echo __('Gangwon', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='제주도'):?> active<?php endif?>" href="<?php echo $url->set('category1', '제주도')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="제주도"><?php echo __('Jeju', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='해외'):?> active<?php endif?>" href="<?php echo $url->set('category1', '해외')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="해외">해외</a>
</div>
글 작성 시 지역을 해외로 선택하시고 지도 표시 주소나 지도 표시 좌표에 해외의 주소 혹은 좌표를 입력해보세요.
고맙습니다.
안녕하세요~^^
아쉽게도 오션 프랜차이즈 스킨은 해외 지역을 지원하고 있지 않습니다.
또, 다른 스킨에는 지역 선택 기능이 없습니다.
해외 많은 국가들이 있기 때문에 그만큼 지도 이미지를 많이 필요로 합니다.
추후 국내뿐만 아니라 해외 지역에 대한 선택을 검토해보겠습니다.
고맙습니다.