From 7e908a0d2f45b4e51bae0d5b9829df029d129b89 Mon Sep 17 00:00:00 2001 From: zero Date: Mon, 5 Jan 2009 04:42:39 +0000 Subject: [PATCH] =?UTF-8?q?planet=EC=9D=98=20=EA=B8=80=20=EB=B2=88?= =?UTF-8?q?=ED=98=B8=EB=A1=9C=20=EC=A0=91=EC=86=8D=EC=8B=9C=20=ED=95=B4?= =?UTF-8?q?=EB=8B=B9=20=EA=B8=80=EC=9D=98=20=EB=82=A0=EC=A7=9C=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99=ED=95=98=EA=B3=A0=20name=EC=9D=84=20?= =?UTF-8?q?=EC=9D=B4=EC=9A=A9=ED=95=B4=20=EC=8A=A4=ED=81=AC=EB=A1=A4=20?= =?UTF-8?q?=EB=90=98=EC=96=B4=20=EC=9E=88=EB=8F=84=EB=A1=9D=20=EA=B0=9C?= =?UTF-8?q?=EC=84=A0?= 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@5214 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/planet/planet.view.php | 16 +++++++++++++--- modules/planet/skins/xe_planet/content_list.html | 7 +++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/modules/planet/planet.view.php b/modules/planet/planet.view.php index b7c20d064..cdfa77069 100644 --- a/modules/planet/planet.view.php +++ b/modules/planet/planet.view.php @@ -179,10 +179,20 @@ $oPlanetModel = &getModel('planet'); + // 글 고유 링크가 있으면 처리 + if(Context::get('document_srl')) { + $oDocumentModel = &getModel('document'); + $oDocument = $oDocumentModel->getDocument(Context::get('document_srl')); + } + // 플래닛의 기본 단위인 날짜를 미리 계산 (지정된 일자의 이전/다음날도 미리 계산하여 세팅) - $last_date = $this->planet->getContentLastDay(); - $date = Context::get('date'); - if(!$date || $date > $last_date) $date = $last_date; + if($oDocument && $oDocument->isExists()) { + $date = $oDocument->getRegdate('Ymd'); + } else { + $last_date = $this->planet->getContentLastDay(); + $date = Context::get('date'); + if(!$date || $date > $last_date) $date = $last_date; + } Context::set('date', $date); Context::set('prev_date', $this->planet->getPrevDate($date)); Context::set('next_date', $this->planet->getNextDate($date)); diff --git a/modules/planet/skins/xe_planet/content_list.html b/modules/planet/skins/xe_planet/content_list.html index 7a4f173d9..03e3aec1f 100644 --- a/modules/planet/skins/xe_planet/content_list.html +++ b/modules/planet/skins/xe_planet/content_list.html @@ -11,6 +11,7 @@ +
@@ -100,3 +101,9 @@
+ + + +