From a8b20c5df9282079c0b2b9746ef78cabac38c0b2 Mon Sep 17 00:00:00 2001 From: zero Date: Fri, 26 Dec 2008 03:19:16 +0000 Subject: [PATCH] =?UTF-8?q?=ED=94=8C=EB=9E=98=EB=8B=9B=20=EC=9C=84?= =?UTF-8?q?=EC=A0=AF=20=EB=94=94=EC=9E=90=EC=9D=B8=20=EC=B6=94=EA=B0=80.?= =?UTF-8?q?=20=ED=94=8C=EB=9E=98=EB=8B=9B=20=EC=82=AC=EC=A7=84=20=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=EC=A7=80=20=EB=B0=9B=EC=95=84=EC=98=AC=EB=95=8C=20wid?= =?UTF-8?q?th/height=EC=A7=80=EC=A0=95=ED=95=A0=20=EC=88=98=20=EC=9E=88?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5181 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/planet/planet.info.php | 4 +- modules/planet/planet.item.php | 4 +- modules/planet/planet.model.php | 20 +++++--- .../skins/xe_official/css/white.css | 46 ++++++------------ .../skins/xe_official/images/tooltip.gif | Bin 0 -> 119 bytes .../skins/xe_official/list.html | 45 +++++------------ 6 files changed, 45 insertions(+), 74 deletions(-) create mode 100644 widgets/planet_document/skins/xe_official/images/tooltip.gif diff --git a/modules/planet/planet.info.php b/modules/planet/planet.info.php index f7c4ac44e..81a9f4639 100644 --- a/modules/planet/planet.info.php +++ b/modules/planet/planet.info.php @@ -67,10 +67,10 @@ return $this->get('planet_title'); } - function getPhotoSrc() { + function getPhotoSrc($width=96,$height=96) { if(!$this->isExists()) return; $oPlanetModel = &getModel('planet'); - return $oPlanetModel->getPlanetPhotoSrc($this->planet_srl); + return $oPlanetModel->getPlanetPhotoSrc($this->planet_srl, $width, $height); } function getMid() { diff --git a/modules/planet/planet.item.php b/modules/planet/planet.item.php index 85875be21..5e0950435 100644 --- a/modules/planet/planet.item.php +++ b/modules/planet/planet.item.php @@ -40,9 +40,9 @@ } } - function getPlanetPhotoSrc() { + function getPlanetPhotoSrc($width=96,$height=96) { $oPlanetModel = &getModel('planet'); - return $oPlanetModel->getPlanetPhotoSrc($this->get('module_srl')); + return $oPlanetModel->getPlanetPhotoSrc($this->get('module_srl'), $width, $height); } function getPlanetMid() { diff --git a/modules/planet/planet.model.php b/modules/planet/planet.model.php index 516d57150..982fb5150 100644 --- a/modules/planet/planet.model.php +++ b/modules/planet/planet.model.php @@ -502,13 +502,21 @@ /** * @brief 플래닛 이미지 유무 체크후 경로 return **/ - function getPlanetPhotoSrc($module_srl) { + function getPlanetPhotoSrc($module_srl, $width=96,$height=96) { $path = $this->getPlanetPhotoPath($module_srl); - if(!is_dir($path)) return sprintf("%s%s%s", Context::getRequestUri(), $this->module_path, 'tpl/images/blank_photo.gif'); - $filename = sprintf('%s/%d.jpg', $path, $module_srl); - if(!file_exists($filename)) return sprintf("%s%s%s", Context::getRequestUri(), $this->module_path, 'tpl/images/blank_photo.gif'); - $src = Context::getRequestUri().$filename."?rnd=".filemtime($filename); - return $src; + $source_filename = sprintf('%s/%d.jpg', $path, $module_srl); + + if(!is_dir($path) || !file_exists($source_filename)) return sprintf("%s%s%s", Context::getRequestUri(), $this->module_path, 'tpl/images/blank_photo.gif'); + + if($width!=96&&$height!=96) { + $filename = sprintf('%s%d.%d.%d.jpg', $path, $module_srl, $width, $height); + if(!file_exists($filename) && FileHandler::createImageFile($source_filename, $filename, $width, $height)) { + $source_filename = $filename; + } + } else { + $filename = $source_filename; + } + return Context::getRequestUri().$filename."?rnd=".filemtime($filename); } /** diff --git a/widgets/planet_document/skins/xe_official/css/white.css b/widgets/planet_document/skins/xe_official/css/white.css index e6ee3cb2b..21ff62798 100644 --- a/widgets/planet_document/skins/xe_official/css/white.css +++ b/widgets/planet_document/skins/xe_official/css/white.css @@ -1,34 +1,18 @@ @charset "utf-8"; -.commentBody.myPlanet .comment .tongue{ margin:0 !important;} -.commentBody.myPlanet .comment .tongue .post, -.commentBody.myPlanet .comment .tongue .postScript, -.commentBody.myPlanet .comment .tongue .postExtra{ *zoom:1;} +.planetDocument { overflow:hidden; margin-bottom:5px; *zoom:1;} +.planetDocument .identity { width:52px; height:52px; padding:0; float:left; margin:3px 10px 3px 3px; background:none; *zoom:1; overflow:hidden;} +.planetDocument .identity a img{ display:block; border:1px solid #545554;} -/* Comment Body */ -.commentBody{ margin:0 0 10px 0; *zoom:1; clear:both; overflow:hidden; width:100%; } - -.commentBody .comment{ margin:0 1px 0 0; padding:0; clear:both; *zoom:1; overflow:hidden;} - -.commentBody .comment .identity{ width:98px; height:98px; padding:0; float:left; margin:0 -98px 0 0; background:none; *zoom:1;} -.commentBody .comment .identity a{ position:relative; font-size:12px; display:block; text-align:center; color:#fff !important; font-weight:bold; text-decoration:none; } -.commentBody .comment .identity a img{ display:block; border:1px solid #000;} -.commentBody .comment .identity a em{ position:absolute; width:96px; text-align:center; left:1px; bottom:1px; display:block; padding:5px 0; font-style:normal; background:#000; opacity:.6; filter:alpha(opacity=60); line-height:normal;} - -.commentBody .comment .tongue{ position:relative; margin-left:113px; *zoom:1;} -.commentBody .comment .tongue .post{ margin:0 0 7px 0; } -.commentBody .comment .tongue .post a { color:#06C;} -.commentBody .comment .tongue .post strong{ background:#f7b100; color:#000;} - -.commentBody .comment .tongue .postScript{ margin:0 0 5px 0; color:#999;} -.commentBody .comment .tongue .postScript strong{ letter-spacing:-1px; margin-right:5px;} - -.commentBody .comment .tongue .postExtra{ overflow:hidden; padding-top:5px; border-top:1px dotted #ccc; *zoom:1;} -.commentBody .comment .tongue .postExtra *{ margin:0; padding:0;} -.commentBody .comment .tongue .postExtra .tag { float:left;} -.commentBody .comment .tongue .postExtra .tag .time{ display:inline; margin-right:5px; color:#999; } -.commentBody .comment .tongue .postExtra .tag dl{ display:inline;} -.commentBody .comment .tongue .postExtra .tag dt{ text-align:center; padding:0 7px; margin-right:5px; display:inline; background:url(../images/bgTag.gif) no-repeat center; font:bold 8pt Tahoma; color:#fff;} -.commentBody .comment .tongue .postExtra .tag dd{ display:inline; position:relative;} -.commentBody .comment .tongue .postExtra .tag dd.tagRead a{ position:relative; margin-right:2px; color:#999; text-decoration:none;} -.commentBody .comment .tongue .postExtra .tag dd.tagRead a strong{ background:#f7b100; color:#fff;} +.planetDocument .article { position:relative; overflow:hidden; *zoom:1; margin-top:3px; } +.planetDocument .article .tooltipLT, +.planetDocument .article .tooltipRT, +.planetDocument .article .tooltipLB, +.planetDocument .article .tooltipRB { position:absolute; background:url("../images/tooltip.gif") no-repeat; display:block; width:10px; height:10px; z-index:10; background-color:#FFFFFF; overflow:hidden; } +.planetDocument .article .tooltipArrow { position:absolute; background:url("../images/tooltip.gif") no-repeat left -20px; width:7px; height:4px; left:0; top:10px; z-index:10;} +.planetDocument .article .tooltipLT { left:4px; top:0px; background-position:0 0; } +.planetDocument .article .tooltipRT { right:0px; _right:-1px; top:0px; background-position:-10px 0; } +.planetDocument .article .tooltipLB { left:4px; bottom:0px; background-position:left -10px; } +.planetDocument .article .tooltipRB { right:0px; _right:-1px; bottom:0px; background-position:-10px -10px; } +.planetDocument .article .content { border:1px solid #545554; z-index:1; display:block; padding:10px; margin-left:4px; height:30px; } +.planetDocument .article .content div { line-height:1.4; } diff --git a/widgets/planet_document/skins/xe_official/images/tooltip.gif b/widgets/planet_document/skins/xe_official/images/tooltip.gif new file mode 100644 index 0000000000000000000000000000000000000000..fdac70738f393ebf9dfb9ed446042baaf07ff094 GIT binary patch literal 119 zcmZ?wbhEHb6k(8Jn8?Hs5*qR!3>X*~6o0ZXGB7YP=m6OaAbAERk16^Kx@)Btg}ggy zt$o0zVO!~)^p-~v^X{gvl6caWD|7IR$>ncvRcqcqp4hZ8@l@)TIg>hKdtXKvXz{NS TP3oPsX%_EvuD@OUtPIuwJAW{N literal 0 HcmV?d00001 diff --git a/widgets/planet_document/skins/xe_official/list.html b/widgets/planet_document/skins/xe_official/list.html index 7536e72bf..62ccfd982 100644 --- a/widgets/planet_document/skins/xe_official/list.html +++ b/widgets/planet_document/skins/xe_official/list.html @@ -7,38 +7,17 @@ -
- -
- -

{htmlspecialchars($item->nick_name)}{htmlspecialchars($item->get('nick_name'))}

- -
-
- {$item->getContent()} -
- -

{$lang->planet_postscript} {htmlspecialchars($item->getPostScript())}

- -
-
- - {@ $regdate = $item->get('regdate') } -

{getTimeGap($item->get('regdate'), sprintf('y/m/d a H%s i%s', $lang->unit_hour,$lang->unit_min))}

-
-
TAG
-
- - {htmlspecialchars($tag[$i])} - - -
-
-
-
-
-
- - +
+ +

{htmlspecialchars($item->nick_name)}

+ +
+ {$item->getContent()} + + + + + +