삼항식으로 조건문 변경

This commit is contained in:
BJRambo 2019-01-02 15:55:23 +09:00
parent c123a6d78c
commit 2cf30a9f62

View file

@ -21,14 +21,8 @@ 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');
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>';
}
$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);
}