mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1552 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4956c21e3e
commit
d3aa224003
3 changed files with 14 additions and 5 deletions
|
|
@ -27,7 +27,7 @@
|
|||
</div>
|
||||
|
||||
|
||||
<div style="margin:10px 0px 10px 0px;padding:5px 0px 5px 0px;border-top:1px solid #EEEEEE;border-bottom:1px solid #EEEEEE;" class="content">{$document->content}</div>
|
||||
<div style="overflow:hidden;width:660px;margin:10px 0px 10px 0px;padding:5px 0px 5px 0px;border-top:1px solid #EEEEEE;border-bottom:1px solid #EEEEEE;" class="content">{$document->content}</div>
|
||||
|
||||
<div style="margin:10px 0px 10px 0px">
|
||||
{$lang->document_url} : {getUrl()}{$document->document_srl}
|
||||
|
|
|
|||
|
|
@ -41,12 +41,15 @@
|
|||
**/
|
||||
function transHTML($xml_obj) {
|
||||
$src = $xml_obj->attrs->src;
|
||||
$alt = $xml_obj->attrs->alt;
|
||||
$style = $xml_obj->attrs->style;
|
||||
$width = $xml_obj->attrs->width;
|
||||
$height = $xml_obj->attrs->height;
|
||||
$align = $xml_obj->attrs->align;
|
||||
$border = $xml_obj->attrs->border;
|
||||
|
||||
$tmp_arr = explode('/',$src);
|
||||
$alt = array_pop($tmp_arr);
|
||||
|
||||
$src = str_replace(array('&','"'), array('&','&qout;'), $src);
|
||||
if(!$alt) $alt = $src;
|
||||
|
||||
|
|
@ -58,6 +61,7 @@
|
|||
if($height) $output[] = "height=\"".$height."\"";
|
||||
if($align) $output[] = "align=\"".$align."\"";
|
||||
if($border) $output[] = "border=\"".$border."\"";
|
||||
if($style) $output[] = "style=\"".$style."\"";
|
||||
return "<img ".implode(" ", $output)." />";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue