mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 21:59:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1044 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7142f18d07
commit
e543d58f81
18 changed files with 38 additions and 44 deletions
|
|
@ -101,15 +101,13 @@
|
|||
$x = $xml_obj->attrs->x;
|
||||
$y = $xml_obj->attrs->y;
|
||||
$marker = $xml_obj->attrs->marker;
|
||||
$width = $xml_obj->attrs->width;
|
||||
$height = $xml_obj->attrs->height;
|
||||
$style = $xml_obj->attrs->style;
|
||||
|
||||
if(!$width || !$height) {
|
||||
preg_match_all('/([0-9]+)/i',$style,$matches);
|
||||
$width = $matches[0][0];
|
||||
$height = $matches[0][1];
|
||||
}
|
||||
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$style,$matches);
|
||||
$width = $matches[3][0];
|
||||
$height = $matches[3][1];
|
||||
if(!$width) $width = 400;
|
||||
if(!$height) $height = 400;
|
||||
|
||||
$body_code = sprintf('<div style="width:%dpx;height:%dpx;margin-bottom:5px;"><iframe src="%s?module=editor&act=procEditorCall&method=displayMap&component=naver_map&width=%s&height=%s&x=%s&y=%s&marker=%s" frameBorder="0" style="padding:1px; border:1px solid #AAAAAA;width:%dpx;height:%dpx;margin:0px;"></iframe></div>', $width, $height, Context::getRequestUri(), $width, $height, $x, $y, $marker, $width, $height);
|
||||
return $body_code;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue