mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Merge pull request #1131 from bjrambo/pr/numgeubogi
#1107 넘겨보는 사진옵션에서 하단 내용 표시에 대한 출력 옵션 추가
This commit is contained in:
commit
7cabb04cac
2 changed files with 17 additions and 2 deletions
|
|
@ -20,4 +20,16 @@
|
|||
<name xml:lang="ko">Rhymix contributors</name>
|
||||
<name xml:lang="en">Rhymix contributors</name>
|
||||
</author>
|
||||
<extra_vars>
|
||||
<var name="display_name" type="select">
|
||||
<title xml:lang="ko">파일이름 출력 설정</title>
|
||||
<description xml:lang="ko">넘겨보기 실행시 하단에 파일이름을 출력할 것인지 여부를 선택합니다. 기본값은 사용하도록 되어있습니다.</description>
|
||||
<options value="block">
|
||||
<title xml:lang="ko">사용</title>
|
||||
</options>
|
||||
<options value="none">
|
||||
<title xml:lang="ko">사용 안함</title>
|
||||
</options>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</addon>
|
||||
|
|
@ -21,7 +21,10 @@ 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);
|
||||
|
||||
$style_display = isset($addon_info->display_name) ? "<style>.pswp__caption__center { display:{$addon_info->display_name} }</style>" : '<style>.pswp__caption__center { display:block }</style>';
|
||||
|
||||
Context::addHtmlFooter($style_display . $footer);
|
||||
}
|
||||
|
||||
/* End of file photoswipe.addon.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue