| 22 |
} |
} |
| 23 |
return $width; |
return $width; |
| 24 |
} |
} |
| 25 |
function phptemplate_menu_tree($pid = 1) { |
|
|
if ($tree = menu_tree($pid)) { |
|
|
$output .= "\n<ul>\n"; |
|
|
if (function_exists('base_path')) { |
|
|
$base_path = base_path(); |
|
|
} |
|
|
$url = $base_path . 'node'; |
|
|
if ($pid == 1) { |
|
|
$output .= "<li><a href=\"" . $url . "\">home</a></li>"; |
|
|
}; |
|
|
$output .= $tree; |
|
|
$output .= "\n</ul>\n"; |
|
|
return $output; |
|
|
} |
|
|
} |
|
|
function phptemplate_menu_item($mid, $children = '', $leaf = TRUE) { |
|
|
//return '<li class="'. ($leaf ? 'leaf' : ($children ? 'expanded' : 'collapsed')) .'">'. menu_item_link($mid) . $children ."</li>\n"; |
|
|
return '<li>'. menu_item_link($mid) . $children ."</li>\n"; |
|
|
} |
|
| 26 |
function phptemplate_system_themes($form) { |
function phptemplate_system_themes($form) { |
| 27 |
foreach (element_children($form) as $key) { |
foreach (element_children($form) as $key) { |
| 28 |
$row = array(); |
$row = array(); |