mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
#1107 넘겨보는 사진옵션에서 하단 내용 표시에 대한 출력 옵션 추가
This commit is contained in:
parent
7e80ab2c62
commit
c123a6d78c
2 changed files with 23 additions and 2 deletions
|
|
@ -20,4 +20,16 @@
|
||||||
<name xml:lang="ko">Rhymix contributors</name>
|
<name xml:lang="ko">Rhymix contributors</name>
|
||||||
<name xml:lang="en">Rhymix contributors</name>
|
<name xml:lang="en">Rhymix contributors</name>
|
||||||
</author>
|
</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>
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,16 @@ if($called_position == 'after_module_proc' && Context::getResponseMethod() == "H
|
||||||
Context::loadFile(array('./addons/photoswipe/rx_photoswipe.js', 'body', '', null), true);
|
Context::loadFile(array('./addons/photoswipe/rx_photoswipe.js', 'body', '', null), true);
|
||||||
|
|
||||||
$footer = FileHandler::readFile('./addons/photoswipe/PhotoSwipe/pswp.html');
|
$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 */
|
/* End of file photoswipe.addon.php */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue