Project

General

Profile

Bug #21252 ยป 12207.diff

Administrator Admin, 2009-10-12 13:46

View differences:

typo3/template.php (working copy)
* @param string Additional attributes to h-tag, eg. ' class=""'
* @return string HTML content
*/
function sectionHeader($label,$sH=FALSE,$addAttrib='') {
$tag = ($sH?'h3':'h4');
function sectionHeader($label, $sH=FALSE, $addAttrib='') {
$tag = ($sH ? 'h3' : 'h4');
if ($addAttrib && substr($addAttrib, 0, 1) !== ' ') {
$addAttrib = ' ' . $addAttrib;
}
$str='
<!-- Section header -->
<'.$tag.$addAttrib.'>'.$label.'</'.$tag.'>
<' . $tag . $addAttrib . '>' . $label . '</' . $tag . '>
';
return $this->sectionBegin().$str;
return $this->sectionBegin() . $str;
}
/**
    (1-1/1)