mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 06:09:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@635 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bfca3f89ed
commit
52f5d46895
3 changed files with 9 additions and 3 deletions
|
|
@ -48,8 +48,12 @@
|
|||
$gallery_info->border_color = $xml_obj->attrs->border_color;
|
||||
$gallery_info->bg_color = $xml_obj->attrs->bg_color;
|
||||
|
||||
$body = preg_replace("/\.(gif|jpg|jpeg|png)/",'.$1'."\n", trim($xml_obj->body));
|
||||
$gallery_info->image_list = explode("\n",$body);
|
||||
preg_match_all("/([^\"]){0,1}http([a-zA-Z0-9\_\-\:\/\.]*)(gif|jpg|jpeg|png)/i",trim($xml_obj->body),$matches);
|
||||
$image_list = $matches[0];
|
||||
$image_count = count($image_list);
|
||||
for($i=0;$i<$image_count;$i++) $image_list[$i] = preg_replace('/^(\>|\s)/','', $image_list[$i]);
|
||||
$gallery_info->image_list = $image_list;
|
||||
debugPrint($image_list);
|
||||
|
||||
Context::set('gallery_info', $gallery_info);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue