mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 05:39:58 +09:00
mobileXE 시험버전 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4318 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
009d74143f
commit
819f5e7709
8 changed files with 683 additions and 0 deletions
17
addons/mobile/classes/mobile.func.php
Normal file
17
addons/mobile/classes/mobile.func.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
function getListedItems($menu, &$listed_items, &$mid_list) {
|
||||
if(!count($menu)) return;
|
||||
foreach($menu as $node_srl => $item) {
|
||||
if(preg_match('/^([a-zA-Z0-9\_\-]+)$/', $item['url'])) {
|
||||
$mid = $item['mid'] = $item['url'];
|
||||
$mid_list[$node_srl] = $mid;
|
||||
} else {
|
||||
$mid = $item['mid'] = null;
|
||||
}
|
||||
|
||||
$listed_items[$mid] = $item;
|
||||
getListedItems($item['list'], $listed_items, $mid_list);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue