mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 15:52:17 +09:00
NOISSUE PHP 버전 호환성 개선
This commit is contained in:
parent
cd1dfda2a2
commit
0ccf7bb6a8
7 changed files with 57 additions and 35 deletions
|
|
@ -43,6 +43,7 @@ class image_gallery extends EditorHandler
|
|||
*/
|
||||
function transHTML($xml_obj)
|
||||
{
|
||||
$gallery_info = new stdClass;
|
||||
$gallery_info->srl = rand(111111,999999);
|
||||
$gallery_info->border_thickness = $xml_obj->attrs->border_thickness;
|
||||
$gallery_info->gallery_style = $xml_obj->attrs->gallery_style;
|
||||
|
|
@ -57,12 +58,13 @@ class image_gallery extends EditorHandler
|
|||
// If you set the output to output the XML code generated a list of the image
|
||||
if(Context::getResponseMethod() == 'XMLRPC')
|
||||
{
|
||||
$output = '';
|
||||
$output = array();
|
||||
for($i=0;$i<count($gallery_info->images_list);$i++)
|
||||
{
|
||||
$output .= sprintf('<img src="%s" alt="" /><br />', $gallery_info->images_list[$i]);
|
||||
$output[] = sprintf('<img src="%s" alt="" />', $gallery_info->images_list[$i]);
|
||||
}
|
||||
return $output;
|
||||
$output[] = '<br />';
|
||||
return implode('<br />', $output);
|
||||
}
|
||||
// HTML gallery output, the output settings via the template for the conversion to generate the html code should
|
||||
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$xml_obj->attrs->style,$matches);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue