/** * {@inheritDoc} * @see \Ajax\semantic\html\collections\HtmlMenu::createItem() */ protected function createItem($value) { $count = \sizeof($this->content); $value = new HtmlIcon("icon-" . $count, $value); $itemO = new HtmlLink("item-" . $count, "", $value); return $itemO->setClass("item"); }
/** * {@inheritDoc} * @see \Ajax\semantic\html\collections\HtmlMenu::createItem() */ protected function createItem($value) { $text = ""; $v = $value; if (\is_array($value)) { $v = @$value[0]; $text = @$value[1]; } $count = \sizeof($this->content); $value = new HtmlIcon("icon-" . $count, $v); $value->wrap("", $text); $itemO = new HtmlLink("item-" . $count, "", $value); return $itemO->setClass("item"); }