{
$frontPageId = get_option('page_on_front');
$parents = array();
-// $args = array(
-// 'post_type' => 'page',
-// 'parent' => $parent,
-// 'number' => '',
-// 'exclude' => $frontPageId,
-// 'post_status' => 'publish',
-// 'sort_order' => 'asc',
-// 'sort_column' => 'menu_order'
-// );
-// $pages = get_pages($args);
$pages = get_pages(array(
'post_type' => 'page',
'parent' => $parent,
'sort_column' => 'menu_order'
));
echo '<ul'.(($class)?' class="'.$class.'"':'').'><!-- begin -->'."\n";
+ echo '<li class="page_item"><a href="'.site_url().'">Home</a></li>'."\n";
foreach ($pages as $page) {
$childs = get_pages('child_of=' . $page->ID);
if (count($childs) > 0) {