Exemple #1
0
if ($uu->id) {
    $item = $oo->get($uu->id);
} else {
    $item = $oo->get(0);
}
$name = ltrim(strip_tags($item["name1"]), ".");
// document title
$item = $oo->get($uu->id);
$title = $item["name1"];
$db_name = "O-R-G";
if ($title) {
    $title = $db_name . " | " . $title;
} else {
    $title = $db_name;
}
$nav = $oo->nav($uu->ids);
$show_menu = false;
if ($uu->id) {
    // if linked from outside, dont show menu
    $is_leaf = empty($oo->children_ids_nav($uu->id));
    $internal = substr($_SERVER['HTTP_REFERER'], 0, strlen($host)) === $host;
    if (!$is_leaf && $internal) {
        $show_menu = true;
    }
}
/*
if($oo->id)
{

}
*/