/** * Get a h tag element * @param int $number - The header level 1-6 * @param string $content - The header's text * @param array $options - Html options * @param bool $isPageHeader - True to append the page-header class * @return <h> tag */ public function getHeader($number, $content, $options = [], $isPageHeader = false) { if ($isPageHeader) { $options['class'] = GeneralFunctions::combineValues($options, 'class', BootstrapClasses::PAGE_HEADER); } return $this->Html->tag('h' . $number, $content, $options); }
/** * Get a span icon * @param string $iconName - The name of the icon * @param array $options - Html option * @param string $base - Base class of the icon * @param string $prefix - The prefix of the icon * @return <span class="$base $prefix$name"></span> */ public function getSpanIcon($iconName, $options = [], $base = 'glyphicon', $prefix = 'glyphicon-') { $iconCss = GeneralFunctions::getIconClass($iconName, $base, $prefix); $options['class'] = GeneralFunctions::combineValues($options, 'class', $iconCss); return $this->Html->tag('span', '', $options); }