mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@338 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e14d7f8015
commit
fdc255b238
5 changed files with 16 additions and 7 deletions
|
|
@ -178,13 +178,14 @@
|
||||||
|
|
||||||
// 레이아웃 정보중 menu를 Context::set
|
// 레이아웃 정보중 menu를 Context::set
|
||||||
if($layout_info->menu_count) {
|
if($layout_info->menu_count) {
|
||||||
foreach($layout_info->menu as $menu_id => $menu) Context::set($menu_id, $menu);
|
foreach($layout_info->menu as $menu_id => $menu) {
|
||||||
unset($layout_info->menu);
|
if(file_exists($menu->php_file)) include($menu->php_file);
|
||||||
|
Context::set($menu_id, $menu);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 레이아웃 정보를 Context::set
|
// 레이아웃 정보를 Context::set
|
||||||
Context::set('layout_info', $layout_info);
|
Context::set('layout_info', $layout_info);
|
||||||
debugPrint($layout_info);
|
|
||||||
|
|
||||||
$oModule->setLayoutPath($layout_info->path);
|
$oModule->setLayoutPath($layout_info->path);
|
||||||
$oModule->setLayoutFile('layout');
|
$oModule->setLayoutFile('layout');
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief debug mode = true 일때 files/_debug_message.php 에 디버그 내용이 쌓임
|
* @brief debug mode = true 일때 files/_debug_message.php 에 디버그 내용이 쌓임
|
||||||
**/
|
**/
|
||||||
define('__DEBUG__', false);
|
define('__DEBUG__', true);
|
||||||
if(__DEBUG__) {
|
if(__DEBUG__) {
|
||||||
|
|
||||||
// php5이상이면 error handling을 handleError() 로 set
|
// php5이상이면 error handling을 handleError() 로 set
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,15 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div id="menu" style="position:absolute;"></div>
|
<div id="menu" style="position:absolute;"></div>
|
||||||
<div id="content" style="margin-left:150px;">{$content}</div>
|
<div id="content" style="margin-left:150px;">
|
||||||
|
{$content}
|
||||||
|
<div style="margin-top:20px;">
|
||||||
|
<!--@foreach($bottom_menu->list as $key => $val)-->
|
||||||
|
<a href="#" onclick="location.href='{$val['url']}';return false;">{$val['text']}</a>
|
||||||
|
<!--@end-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!--#include("./common/tpl/common_footer.html")-->
|
<!--#include("./common/tpl/common_footer.html")-->
|
||||||
|
|
|
||||||
|
|
@ -246,8 +246,7 @@
|
||||||
|
|
||||||
// 파일 생성
|
// 파일 생성
|
||||||
$xml_buff = sprintf('<root>%s</root>', $this->getXmlTree($tree[0], $tree));
|
$xml_buff = sprintf('<root>%s</root>', $this->getXmlTree($tree[0], $tree));
|
||||||
$php_buff = sprintf('<?php if(!__ZB5__) exit(); $%s = array(%s); ?>', $menu_id, $this->getPhpCacheCode($tree[0], $tree));
|
$php_buff = sprintf('<?php if(!__ZB5__) exit(); $menu->list = array(%s); ?>', $this->getPhpCacheCode($tree[0], $tree));
|
||||||
debugPrint($php_buff);
|
|
||||||
FileHandler::writeFile($xml_file, $xml_buff);
|
FileHandler::writeFile($xml_file, $xml_buff);
|
||||||
FileHandler::writeFile($php_file, $php_buff);
|
FileHandler::writeFile($php_file, $php_buff);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -166,6 +166,7 @@
|
||||||
$buff .= sprintf('$layout_info->menu->{%s}->name = "%s";',$id, $menus[$i]->name->body);
|
$buff .= sprintf('$layout_info->menu->{%s}->name = "%s";',$id, $menus[$i]->name->body);
|
||||||
$buff .= sprintf('$layout_info->menu->{%s}->maxdepth = "%s";',$id, $menus[$i]->maxdepth->body);
|
$buff .= sprintf('$layout_info->menu->{%s}->maxdepth = "%s";',$id, $menus[$i]->maxdepth->body);
|
||||||
$buff .= sprintf('$layout_info->menu->{%s}->xml_file = "./files/cache/layout/".$layout_srl."_%s.xml";',$id, $id);
|
$buff .= sprintf('$layout_info->menu->{%s}->xml_file = "./files/cache/layout/".$layout_srl."_%s.xml";',$id, $id);
|
||||||
|
$buff .= sprintf('$layout_info->menu->{%s}->php_file = "./files/cache/layout/".$layout_srl."_%s.php";',$id, $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
$buff = '<?php if(!__ZB5__) exit(); '.$buff.' ?>';
|
$buff = '<?php if(!__ZB5__) exit(); '.$buff.' ?>';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue