mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 12:49:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@617 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
085eac5258
commit
052f5bd2b3
9 changed files with 38 additions and 23 deletions
|
|
@ -43,10 +43,22 @@
|
|||
function transHTML($xml_obj) {
|
||||
$width = $xml_obj->attrs->width;
|
||||
$height = $xml_obj->attrs->height;
|
||||
$make_thumbnail = $xml_obj->attrs->make_thumbnail;
|
||||
$body = $xml_obj->body;
|
||||
$image_list = explode("\n",$body);
|
||||
|
||||
$output = sprintf('<div style="width:%s;height:%s">%s</div>', $width, $height, $body);
|
||||
return $output;
|
||||
Context::set("slide_show_width", $width);
|
||||
Context::set("slide_show_height", $height);
|
||||
Context::set("slide_show_images", $image_list);
|
||||
Context::set("slide_show_srl", rand(111111,999999));
|
||||
|
||||
$tpl_path = $this->component_path.'tpl';
|
||||
$tpl_file = 'slide_show.html';
|
||||
|
||||
Context::set("tpl_path", $tpl_path);
|
||||
require_once("./classes/template/TemplateHandler.class.php");
|
||||
$oTemplate = new TemplateHandler();
|
||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue