git-svn-id: http://xe-core.googlecode.com/svn/trunk@1045 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-09 05:55:02 +00:00
parent e543d58f81
commit a5bfca05be
8 changed files with 21 additions and 18 deletions

View file

@ -26,6 +26,7 @@ a.bold {
background:url(../tpl/images/plugin.gif) no-repeat center; background:url(../tpl/images/plugin.gif) no-repeat center;
background-color:#FFFFFF; background-color:#FFFFFF;
border:3px dotted #039311; border:3px dotted #039311;
display:block;
} }
h1 { h1 {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before After
Before After

View file

@ -42,7 +42,6 @@
**/ **/
function transHTML($xml_obj) { function transHTML($xml_obj) {
$gallery_info->srl = rand(111111,999999); $gallery_info->srl = rand(111111,999999);
$gallery_info->width = $xml_obj->attrs->width;
$gallery_info->border_thickness = $xml_obj->attrs->border_thickness; $gallery_info->border_thickness = $xml_obj->attrs->border_thickness;
$gallery_info->gallery_style = $xml_obj->attrs->gallery_style; $gallery_info->gallery_style = $xml_obj->attrs->gallery_style;
$gallery_info->border_color = $xml_obj->attrs->border_color; $gallery_info->border_color = $xml_obj->attrs->border_color;
@ -53,10 +52,9 @@
$images_list = preg_replace('/\.(gif|jpg|jpeg|png) /i',".\\1\n",$images_list); $images_list = preg_replace('/\.(gif|jpg|jpeg|png) /i',".\\1\n",$images_list);
$gallery_info->images_list = explode("\n",trim($images_list)); $gallery_info->images_list = explode("\n",trim($images_list));
if(!$gallery_info->width) { preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$xml_obj->attrs->style,$matches);
preg_match_all('/([0-9]+)/i',$xml_obj->attrs->style,$matches); $gallery_info->width = trim($matches[3][0]);
$gallery_info->width = $matches[0][0]; if(!$gallery_info->width) $gallery_info->width = 400;
}
Context::set('gallery_info', $gallery_info); Context::set('gallery_info', $gallery_info);

View file

@ -32,7 +32,7 @@
.slide_gallery_thumbnail_image_box { .slide_gallery_thumbnail_image_box {
margin:10px; margin:10px;
text-align:left; text-align:center;
} }
.slide_gallery_thumbnail_image_box img { .slide_gallery_thumbnail_image_box img {

View file

@ -44,8 +44,8 @@
$src = $xml_obj->attrs->multimedia_src; $src = $xml_obj->attrs->multimedia_src;
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$style,$matches); preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$style,$matches);
$width = $matches[3][0]; $width = trim($matches[3][0]);
$height = $matches[3][1]; $height = trim($matches[3][1]);
if(!$width) $width = 400; if(!$width) $width = 400;
if(!$height) $height = 400; if(!$height) $height = 400;

View file

@ -104,8 +104,8 @@
$style = $xml_obj->attrs->style; $style = $xml_obj->attrs->style;
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$style,$matches); preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$style,$matches);
$width = $matches[3][0]; $width = trim($matches[3][0]);
$height = $matches[3][1]; $height = trim($matches[3][1]);
if(!$width) $width = 400; if(!$width) $width = 400;
if(!$height) $height = 400; if(!$height) $height = 400;

View file

@ -33,10 +33,14 @@
$output = $oDocumentModel->getDocumentList($obj); $output = $oDocumentModel->getDocumentList($obj);
// 템플릿 파일에서 사용할 변수들을 세팅 // 템플릿 파일에서 사용할 변수들을 세팅
if(count($mid_list)==1) Context::set('module_name', $mid_list[0]); if(count($mid_list)==1) $plugin_info->module_name = $mid_list[0];
Context::set('title', $title);
Context::set('style', $args->style); $plugin_info->title = $title;
Context::set('document_list', $output->data); $plugin_info->document_list = $output->data;
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
$plugin_info->width = trim($matches[3][0]);
Context::set('plugin_info', $plugin_info);
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정) // 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
$tpl_path = sprintf('%sskins/%s', $this->plugin_path, $args->skin); $tpl_path = sprintf('%sskins/%s', $this->plugin_path, $args->skin);

View file

@ -8,16 +8,16 @@
<!--@end--> <!--@end-->
<div class="newest_document_default_{$colorset}"> <div class="newest_document_default_{$colorset}" style="width:{$plugin_info->width}px">
<div class="newest_document_default_box"> <div class="newest_document_default_box">
<div class="title_box"> <div class="title_box">
<div class="title">{$title}</div> <div class="title">{$plugin_info->title}</div>
<!--@if($module_name)--> <!--@if($module_name)-->
<div class="more"><a href="{getUrl('','mid',$module_name)}">more</a></div> <div class="more"><a href="{getUrl('','mid',$plugin_info->module_name)}">more</a></div>
<!--@end--> <!--@end-->
</div> </div>
<!--@foreach($document_list as $val)--> <!--@foreach($plugin_info->document_list as $val)-->
<div class="document_box"> <div class="document_box">
<div class="document"> <div class="document">
<a href="{getUrl('','document_srl',$val->document_srl,'comment_count', $val->comment_count)}">{$val->title}</a> <a href="{getUrl('','document_srl',$val->document_srl,'comment_count', $val->comment_count)}">{$val->title}</a>