// --------------------and now the csss
// Snippet: menu children
// --------------------
// Version: 1.0
// based on the snippet of [email protected], thanks.
// Date: 1-1-2006
// xyzvisual
//
// Use:
// [[DisplayChildren?id=1&class=cssxx&sep=|]]
//
$parent_id = $id;
$css_class = $class;
$separator = $sep;
$children = $etomite->getActiveChildren($parent_id); $menu = ""; $childrenCount = count($children);
if($children==false) {
return ’No children to display..’;
}
$menu .= "";
$menu .= "<table height=’20’ width=’100%’ border=’0’ cellspacing=’0’ cellpadding=’0’ ><tr>";
for($x=0; $x<$childrenCount; $x++) {
if ($children[$x][’id’]==$modx->documentObject[’id’]){
$menu .= "<td><div valign=’middle’ align=’center’><a class=’menuac’ href=’[~".$children[$x][’id’]."~]’>".$children[$x][’pagetitle’]."</a></div></td>";
}else{
$menu .= "<td><div valign=’middle’ align=’center’><a class=’menu’ href=’[~".$children[$x][’id’]."~]’>".$children[$x][’pagetitle’]."</a></div></td>";
}
}
$menu .= " </tr></table>";
$menu .= "";
return $menu;
.menu {byby
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #214080;
text-decoration: none;
font-weight: bold;
font-variant: normal;
display: block;
line-height : 25px;
background-color: #FFFFFF;
border-top: thin solid #214080;
border-right: thin none #214080;
border-bottom: thin solid #214080;
border-left: thin solid #214080;
}
.menu:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #214080;
text-decoration: none;
font-weight: bold;
font-variant: normal;
display: block;
line-height : 25px;
background-color: #F0F8FB;
border-top: thin solid #214080;
border-right: thin none #214080;
border-bottom: thin solid #214080;
border-left: thin solid #214080;
}
.menuac {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FFFFFF;
text-decoration: none;
font-weight: bold;
font-variant: normal;
display: block;
line-height : 25px;
background-color: #214080;
border-top: thin solid #214080;
border-right: thin none #214080;
border-bottom: thin solid #214080;
border-left: thin solid #214080;
}

// -------------------- // Snippet: menu children // -------------------- // Version: 1.0 // based on the snippet of [email protected], thanks. // Date: 1-1-2006 // xyzvisual // // Use: // [[DisplayChildren?id=1&class=cssxx&sep=|]] // $parent_id = $id; $css_class = $class; $separator = $sep; $children = $etomite->getActiveChildren($parent_id); $menu = ""; $childrenCount = count($children); if($children==false) { return 'No children to display..'; } $menu .= ""; $menu .= "<table height='20' border='0' cellspacing='0' cellpadding='0' ><tr>"; for($x=0; $x<$childrenCount; $x++) { if ($children[$x]['id']==$modx->documentObject['id']){ $menu .= "<td><div class='Stil1' valign='middle' align='center'>[1] <a class='menuac' href='[~".$children[$x]['id']."~]'>".$children[$x]['pagetitle']. "</a> </div></td>"; }else{ $menu .= "<td><div class='Stil1' valign='middle' align='center'> [3] <a class='menu' href='[~".$children[$x]['id']."~]'>".$children[$x]['pagetitle']."</a> [4]</div></td>"; } } $menu .= " </tr></table> "; $menu .= " "; return $menu;
// --------------------
// Snippet: menu children
// --------------------
// Version: 1.0
// based on the snippet of [email protected], thanks.
// Date: 1-1-2006
// xyzvisual
//
// Use:
// [[DisplayChildren?id=1&class=cssxx&sep=|]]
//
$parent_id = $id;
$css_class = $class;
$separator = $sep;
$children = $etomite->getActiveChildren($parent_id); $menu = ""; $childrenCount = count($children);
if($children==false) {
return ’No children to display..’;
}
$menu .= "";
$menu .= "<table height=’20’ border=’0’ cellspacing=’0’ cellpadding=’0’ ><tr>";
for($x=0; $x<$childrenCount; $x++) {
if ($x==$childrenCount-1){$menu .= "<td><div class=’Stil1’ valign=’middle’ align=’center’>[1] <a class=’menuac’ href=’[~".$children[$x][’id’]."~]’>".$children[$x][’pagetitle’]. "</a>[1] </div></td>";}else{
if ($children[$x][’id’]==$modx->documentObject[’id’]){
$menu .= "<td><div class=’Stil1’ valign=’middle’ align=’center’>[1] <a class=’menuac’ href=’[~".$children[$x][’id’]."~]’>".$children[$x][’pagetitle’]. "</a></div></td>";
}else{
$menu .= "<td><div class=’Stil1’ valign=’middle’ align=’center’>[1] <a class=’menu’ href=’[~".$children[$x][’id’]."~]’>".$children[$x][’pagetitle’]."</a></div></td>";
}}
}
$menu .= " </tr></table> ";
$menu .= " ";
return $menu;

// --------------------
// Snippet: menu children
// --------------------
// Version: 1.0
// based on the snippet of [email protected], thanks.
// Date: 1-1-2006
// xyzvisual
//
// Use:
// [[DisplayChildren?id=1&class=cssxx&sep=|]]
//
$parent_id = $id;
$css_class = $class;
$separator = $sep;
$children = $etomite->getActiveChildren($parent_id); $menu = ""; $childrenCount = count($children);
if($children==false) {
return ’No children to display..’;
}
$menu .= "";
$menu .= "<table height=’20’ border=’0’ cellspacing=’0’ cellpadding=’0’ ><tr>";
for($x=0; $x<$childrenCount; $x++) {
if ($children[$x][’id’]==$modx->documentObject[’id’]){
if ($x==$childrenCount-1){$menu .= "<td><div class=’Stil1’ valign=’middle’ align=’center’>[1] <a class=’menuac’ href=’[~".$children[$x][’id’]."~]’>".$children[$x][’pagetitle’]. "</a>[1] </div></td>";}else{
$menu .= "<td><div class=’Stil1’ valign=’middle’ align=’center’>[1] <a class=’menuac’ href=’[~".$children[$x][’id’]."~]’>".$children[$x][’pagetitle’]. "</a></div></td>";}
}else{ if ($x==$childrenCount-1){$menu .= "<td><div class=’Stil1’ valign=’middle’ align=’center’>[1] <a class=’menu’ href=’[~".$children[$x][’id’]."~]’>".$children[$x][’pagetitle’]. "</a>[1] </div></td>";}else{
$menu .= "<td><div class=’Stil1’ valign=’middle’ align=’center’>[1] <a class=’menu’ href=’[~".$children[$x][’id’]."~]’>".$children[$x][’pagetitle’]."</a></div></td>";}
}
}
$menu .= " </tr></table> ";
$menu .= " ";
return $menu;