public function addLink($text, $url = '', $active = false)
 {
     $objNavItem = new anvilNavItem('', $active);
     $objNavItem->addControl(new anvilLink('', $text, $url));
     $this->addControl($objNavItem);
     return $objNavItem;
 }
Beispiel #2
0
 public function addLink($text, $url = '#', $active = false, $type = anvilLink::TYPE_DEFAULT, $size = anvilLink::SIZE_DEFAULT, $properties = null)
 {
     $objNavItem = new anvilNavItem('', $active);
     $objNavItem->addControl(new anvilLink('', $text, $url, $type, $size, $properties));
     $this->addControl($objNavItem);
     return $objNavItem;
 }