mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 07:09:56 +09:00
cafeXE 개선
1. 게시판/페이지 외에 최고관리자가 지정한 서비스 모듈을 생성/관리 가능하도록 개선 2. 최고관리자는 기본 레이아웃/ 레이아웃 변경 기능 제한/ 카페별 서비스 모듈 생성 개수를 지정하는 기능 추가 3. 생성된 카페의 도메인/vid 등을 수정할 수 있는 기능 추가 4. 카페 관리자가 메뉴 추가시에 메뉴명과 서비스 모듈 종류만 지정하면 모듈이 생성되도록 개선 5. 가상사이트와 기본 사이트간의 모듈을 옮길 수 있는 기능 추가 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6171 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b2e0e09529
commit
5bb5fa23a8
68 changed files with 721 additions and 617 deletions
|
|
@ -24,6 +24,10 @@
|
|||
* $this->module_path는 ./modules/guestbook/의 값을 가지고 있다
|
||||
**/
|
||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
|
||||
if(!is_dir($template_path)||!$this->module_info->skin) {
|
||||
$this->module_info->skin = 'xe_official';
|
||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
|
||||
}
|
||||
$this->setTemplatePath($template_path);
|
||||
}
|
||||
|
||||
|
|
@ -41,44 +45,46 @@
|
|||
**/
|
||||
function dispLifepodContent() {
|
||||
$oLifepodModel = &getModel('lifepod');
|
||||
$caladdresses = split(", ", $this->module_info->calendar_address);
|
||||
$cYear = Context::get('year');
|
||||
$cMonth = Context::get('month');
|
||||
$cDay = Context::get('day');
|
||||
if($caladdresses) {
|
||||
$caladdresses = split(", ", $this->module_info->calendar_address);
|
||||
$cYear = Context::get('year');
|
||||
$cMonth = Context::get('month');
|
||||
$cDay = Context::get('day');
|
||||
|
||||
$calendars = array();
|
||||
|
||||
foreach($caladdresses as $key=>$val)
|
||||
{
|
||||
$shouldGetMore = false;
|
||||
$pageNumber = 1;
|
||||
$page = null;
|
||||
do {
|
||||
$page = $oLifepodModel->getPage($val, $cYear, $pageNumber);
|
||||
if(!$page) break;
|
||||
for($j=0;$j<count($page->data);$j++)
|
||||
$calendars = array();
|
||||
|
||||
foreach($caladdresses as $key=>$val)
|
||||
{
|
||||
$data = &$page->data[$j];
|
||||
if($data->childNodes["date-start"])
|
||||
{
|
||||
$data->childNodes["date-start"]->body = $this->dateFormatChange($data->childNodes["date-start"]->body);
|
||||
}
|
||||
$shouldGetMore = false;
|
||||
$pageNumber = 1;
|
||||
$page = null;
|
||||
do {
|
||||
$page = $oLifepodModel->getPage($val, $cYear, $pageNumber);
|
||||
if(!$page) break;
|
||||
for($j=0;$j<count($page->data);$j++)
|
||||
{
|
||||
$data = &$page->data[$j];
|
||||
if($data->childNodes["date-start"])
|
||||
{
|
||||
$data->childNodes["date-start"]->body = $this->dateFormatChange($data->childNodes["date-start"]->body);
|
||||
}
|
||||
|
||||
if($data->childNodes["date-end"])
|
||||
{
|
||||
$plus = 0;
|
||||
if($data->childNodes["type"]->body == "daylong")
|
||||
$plus = -1;
|
||||
$data->childNodes["date-end"]->body = $this->dateFormatChange($data->childNodes["date-end"]->body, $plus);
|
||||
}
|
||||
if($data->childNodes["date-end"])
|
||||
{
|
||||
$plus = 0;
|
||||
if($data->childNodes["type"]->body == "daylong")
|
||||
$plus = -1;
|
||||
$data->childNodes["date-end"]->body = $this->dateFormatChange($data->childNodes["date-end"]->body, $plus);
|
||||
}
|
||||
|
||||
$data->childNodes["description"]->body = str_replace("\n", "<BR />", $data->childNodes["description"]->body);
|
||||
$data->childNodes["description"]->body = str_replace("'", "\'", $data->childNodes["description"]->body);
|
||||
$data->childNodes["title"]->body = str_replace("'", "\'", $data->childNodes["title"]->body);
|
||||
$data->childNodes["description"]->body = str_replace("\n", "<BR />", $data->childNodes["description"]->body);
|
||||
$data->childNodes["description"]->body = str_replace("'", "\'", $data->childNodes["description"]->body);
|
||||
$data->childNodes["title"]->body = str_replace("'", "\'", $data->childNodes["title"]->body);
|
||||
}
|
||||
$calendars[] = $page;
|
||||
$pageNumber++;
|
||||
} while ( $page->start + $page->perpage - 1 < $page->total );
|
||||
}
|
||||
$calendars[] = $page;
|
||||
$pageNumber++;
|
||||
} while ( $page->start + $page->perpage - 1 < $page->total );
|
||||
}
|
||||
|
||||
Context::set('calendars', $calendars);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue