diff --git a/modules/editor/components/image_gallery/image_gallery.class.php b/modules/editor/components/image_gallery/image_gallery.class.php index c5f4a0581..82444d10e 100644 --- a/modules/editor/components/image_gallery/image_gallery.class.php +++ b/modules/editor/components/image_gallery/image_gallery.class.php @@ -41,25 +41,24 @@ * DocumentModule::transContent() 에서 해당 컴포넌트의 transHtml() method를 호출하여 고유코드를 html로 변경 **/ function transHTML($xml_obj) { - $width = $xml_obj->attrs->width; - $height = $xml_obj->attrs->height; + $gallery_info->srl = rand(111111,999999); + $gallery_info->width = $xml_obj->attrs->width; + $gallery_info->border_thickness = $xml_obj->attrs->border_thickness; + $gallery_info->gallery_style = $xml_obj->attrs->gallery_style; + $gallery_info->border_color = $xml_obj->attrs->border_color; + $gallery_info->bg_color = $xml_obj->attrs->bg_color; - $make_thumbnail = $xml_obj->attrs->make_thumbnail; - if(!$make_thumbnail) $make_thumbnail = "N"; - else $make_thumbnail = "Y"; + $body = trim($xml_obj->body); + $gallery_info->image_list = explode("\n",$body); - $body = $xml_obj->body; - $image_list = explode("\n",$body); - - Context::set("image_gallery_width", $width); - Context::set("image_gallery_height", $height); - Context::set("image_gallery_images", $image_list); - Context::set("image_gallery_srl", rand(111111,999999)); + Context::set('gallery_info', $gallery_info); $tpl_path = $this->component_path.'tpl'; - $tpl_file = 'image_gallery.html'; - Context::set("tpl_path", $tpl_path); + + if($gallery_info->gallery_style == "list") $tpl_file = 'list_gallery.html'; + else $tpl_file = 'slide_gallery.html'; + require_once("./classes/template/TemplateHandler.class.php"); $oTemplate = new TemplateHandler(); return $oTemplate->compile($tpl_path, $tpl_file); diff --git a/modules/editor/components/image_gallery/lang/ko.lang.php b/modules/editor/components/image_gallery/lang/ko.lang.php index 18e302224..36f2d6ca0 100644 --- a/modules/editor/components/image_gallery/lang/ko.lang.php +++ b/modules/editor/components/image_gallery/lang/ko.lang.php @@ -13,6 +13,7 @@ $lang->gallery_slide_style = "슬라이드 형식"; $lang->gallery_list_style = "모두 펼침"; $lang->gallery_border_color = "테두리색"; + $lang->gallery_border_thickness = "테두리 두께"; $lang->gallery_bg_color = "배경색"; $lang->about_image_list = "이미지 갤러리에 추가할 파일을 선택하세요. 선택후 드래그 또는 shift+클릭(범위선택), ctrl+클릭(개별선택) 가능합니다"; ?> diff --git a/modules/editor/components/image_gallery/tpl/image_gallery.css b/modules/editor/components/image_gallery/tpl/image_gallery.css index 675a0b5bb..24bd645fa 100644 --- a/modules/editor/components/image_gallery/tpl/image_gallery.css +++ b/modules/editor/components/image_gallery/tpl/image_gallery.css @@ -9,12 +9,10 @@ .image_gallery_main_image_box { border:3px solid #EEEEEE; - background-color:#FFFFFF; margin:10px; } .image_gallery_thumbnail_image_box { - background-color:#FFFFFF; margin:10px; text-align:center; } diff --git a/modules/editor/components/image_gallery/tpl/image_gallery.html b/modules/editor/components/image_gallery/tpl/image_gallery.html deleted file mode 100644 index b07f0ac77..000000000 --- a/modules/editor/components/image_gallery/tpl/image_gallery.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - -