mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
이미지 링크, 멀티미디어 링크 컴포넌트 파일 경로 부분: rss를 위한 수정, rss 링크 주소 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6624 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
97b90f7031
commit
c6b104c8e4
3 changed files with 8 additions and 1 deletions
|
|
@ -58,6 +58,10 @@
|
|||
|
||||
$src = str_replace(array('&','"'), array('&','&qout;'), $src);
|
||||
$src = str_replace('&', '&', $src);
|
||||
// 이미지 주소를 request uri가 포함된 주소로 변환 (rss출력, 등등을 위함)
|
||||
$temp_src = explode('/', $src);
|
||||
if($temp_src[0]=='.') $src = Context::getRequestUri().substr($src, 2);
|
||||
elseif($temp_src[0]=='' && $src) $src = Context::getRequestUri().substr($src, 1);
|
||||
if(!$alt) $alt = $src;
|
||||
|
||||
$attr_output = array();
|
||||
|
|
|
|||
|
|
@ -64,7 +64,8 @@
|
|||
$src = str_replace(array('&','"'), array('&','&qout;'), $src);
|
||||
$src = str_replace('&', '&', $src);
|
||||
|
||||
return sprintf("<script type=\"text/javascript\">displayMultimedia(\"%s\", \"%s\",\"%s\", { \"autostart\" : %s, \"wmode\" : \"%s\" });</script>", $src, $width, $height, $auto_start, $wmode);
|
||||
if(Context::getResponseMethod() != "XMLRPC") return sprintf("<script type=\"text/javascript\">displayMultimedia(\"%s\", \"%s\",\"%s\", { \"autostart\" : %s, \"wmode\" : \"%s\" });</script>", $src, $width, $height, $auto_start, $wmode);
|
||||
else return sprintf("<div style=\"width: %dpx; height: %dpx;\"><span style=\"position:relative; top:%dpx;left:%d\"><img src=\"%s\" /><br />Attached Multimedia</span></div>", $width, $height, ($height/2-16), ($width/2-31), Context::getRequestUri().'./modules/editor/components/multimedia_link/tpl/multimedia_link_component.gif');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -132,6 +132,8 @@
|
|||
$info->date = date("D, d M Y H:i:s").' '.$GLOBALS['_time_zone'];
|
||||
break;
|
||||
}
|
||||
$temp_link = explode('/', $info->link);
|
||||
if($temp_link[0]=='' && $info->link) $info->link = Context::getRequestUri().substr($info->link, 1);
|
||||
$info->language = Context::getLangType();
|
||||
|
||||
// RSS 출력물에서 사용될 변수 세팅
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue