Example #1
0
                        continue;
                    }
                }
            }
            if ($hasChildPage) {
                if ($deep > 1) {
                    tree_treeview1($cNode, $deep - 1, $startlevel + 1);
                }
            }
        }
    }
}
function leveltree_treeview1($level, $deep = 99)
{
    global $cms;
    if ($cms->nowlevel + 1 >= $level) {
        if ($level == 0) {
            $pNode = $cms->get_node(0)->parentNode;
        } else {
            $pid = $cms->path[$level - 1];
            $pNode = $cms->get_node($pid);
        }
        tree_treeview1($pNode, $deep, $level);
    }
}
?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<?php 
leveltree_treeview1(1, 99);
?>
</urlset>
                    }
                }
                if ($hasChildPage) {
                    if ($deep > 1) {
                        tree_treeview1($cNode, $deep - 1, $startlevel);
                    }
                }
                echo "</li>";
            }
        }
    }
    echo "</ul>";
}
function leveltree_treeview1($level, $deep = 99)
{
    global $cms;
    if ($cms->nowlevel + 1 >= $level) {
        if ($level == 0) {
            $pNode = $cms->get_node(0)->parentNode;
        } else {
            $pid = $cms->path[$level - 1];
            $pNode = $cms->get_node($pid);
        }
        tree_treeview1($pNode, $deep, $level);
    }
}
?>

<?php 
leveltree_treeview1($startLevel, $deep);