mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
삼항식으로 조건문 변경
This commit is contained in:
parent
c123a6d78c
commit
2cf30a9f62
1 changed files with 2 additions and 8 deletions
|
|
@ -21,14 +21,8 @@ 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');
|
||||||
if(isset($addon_info->display_name))
|
|
||||||
{
|
$style_display = isset($addon_info->display_name) ? "<style>.pswp__caption__center { display:{$addon_info->display_name} }</style>" : '<style>.pswp__caption__center { display:block }</style>';
|
||||||
$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);
|
Context::addHtmlFooter($style_display . $footer);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue