[Tips] 사진정보출력 애드온 로그인한 회원만 보여주기
2016.03.12 09:42
45
0
https://eond.com/373151

exif.lib.php 파일을 수정했습니다.

$is_logged = Context::get(is_logged);
   if($is_logged){
      $return_exif = ($exif_info)?
         '<span class="exif_addon2">
<button onclick="jQuery(this).parent().toggleClass(\'on\')" class="blind"><b title="사진의 정보를 봅니다">EXIF</b><span>X</span></button>
<strong>EXIF Viewer</strong>'
         .implode($exif_info).
         '</span>'
         :NULL;
      return $return_exif;
   }

$is_logged 변수를 애드온에서 다시 정의해줘야 했군요.

 

출처 : https://dev.jdssem.com/addon-that-fetching-document-and-users-data-after-publishing/?

라이믹스는 이온디와 함께

newcomment
닫기

마이페이지

로그인을 해주세요