dbFields = array(
'homeLink'=>true,
'label'=>'Pages'
);
}
public function form()
{
global $Language;
$html = '
';
// If the label is not empty, print it.
$label = $this->getDbField('label');
if( !empty($label) ) {
$html .= '
'.$label.'
';
}
$html .= '
';
$parents = $pagesParents[NO_PARENT_CHAR];
$html .= '
';
if($this->getDbField('homeLink')) {
$html .= '- '.$Language->get('Home').'
';
}
foreach($parents as $parent)
{
//if($Site->homepage()!==$parent->key())
{
// Print the parent
$html .= '- '.$parent->title().'';
// Check if the parent has children
if(isset($pagesParents[$parent->key()]))
{
$children = $pagesParents[$parent->key()];
// Print the children
$html .= '';
}
}
}
$html .= '
';
$html .= '
';
$html .= '
';
return $html;
}
}