#1107 넘겨보는 사진옵션에서 하단 내용 표시에 대한 출력 옵션 추가

This commit is contained in:
BJRambo 2019-01-01 18:34:54 +09:00
parent 7e80ab2c62
commit c123a6d78c
2 changed files with 23 additions and 2 deletions

View file

@ -20,4 +20,16 @@
<name xml:lang="ko">Rhymix contributors</name>
<name xml:lang="en">Rhymix contributors</name>
</author>
</addon>
<extra_vars>
<var name="display_name" type="select">
<title xml:lang="ko">파일이름 출력 설정</title>
<description xml:lang="ko">넘겨보기 실행시 하단에 파일이름을 출력할 것인지 여부를 선택합니다.</description>
<options value="none">
<title xml:lang="ko">사용 안함</title>
</options>
<options value="block">
<title xml:lang="ko">사용</title>
</options>
</var>
</extra_vars>
</addon>

View file

@ -21,7 +21,16 @@ if($called_position == 'after_module_proc' && Context::getResponseMethod() == "H
Context::loadFile(array('./addons/photoswipe/rx_photoswipe.js', 'body', '', null), true);
$footer = FileHandler::readFile('./addons/photoswipe/PhotoSwipe/pswp.html');
Context::addHtmlFooter($footer);
if(isset($addon_info->display_name))
{
$style_display = "<style>.pswp__caption__center { display:{$addon_info->display_name} }</style>";
}
else
{
$style_display = '<style>.pswp__caption__center { display:block }</style>';
}
Context::addHtmlFooter($style_display . $footer);
}
/* End of file photoswipe.addon.php */