protected function wrapLink($link_element, $isCurrent = false) { $element = new Element('li', $link_element); if ($isCurrent) { $element->addClass("current"); } return $element; }
/** * Render a single th header cell * * @param \Studiow\Table\ColumnInterface $column * @return \Studiow\HTML\Element */ protected function headerCell(ColumnInterface $column) { $element = new Element("th", $column->getLabel(), (array) $column->getAttributes()); $colCount = $column->getColumnCount(); if ($colCount > 1) { $element->setAttribute("colspan", $colCount); } else { $element->removeAttribute("colspan"); } return $element; }