helpers/TbHtml.php
public static function modalHeader($content, $htmlOptions = array())
    {
        self::addCssClass('modal-header', $htmlOptions);
        $closeOptions = TbArray::popValue('closeOptions', $htmlOptions, array());
        $closeOptions['dismiss'] = 'modal';
        $headingOptions = TbArray::popValue('headingOptions', $htmlOptions, array());
        $closeLabel = TbArray::popValue('closeLabel', $htmlOptions, self::CLOSE_TEXT);
        $closeButton = self::closeButton($closeLabel, $closeOptions);
        self::addCssClass('modal-title', $headingOptions);
        $header = self::tag('h4', $headingOptions, $content);
        return self::tag('div', $htmlOptions, $closeButton . $header);
    }
public static function modalHeader($content, $htmlOptions = array())
    {
        self::addCssClass('modal-header', $htmlOptions);
        $closeOptions = TbArray::popValue('closeOptions', $htmlOptions, array());
        $closeOptions['dismiss'] = 'modal';
        $headingOptions = TbArray::popValue('headingOptions', $htmlOptions, array());
        $closeLabel = TbArray::popValue('closeLabel', $htmlOptions, self::CLOSE_TEXT);
        $closeButton = self::closeButton($closeLabel, $closeOptions);
        self::addCssClass('modal-title', $headingOptions);
        $header = self::tag('h4', $headingOptions, $content);
        return self::tag('div', $htmlOptions, $closeButton . $header);
    }
public static function modalHeader ( $ content , $ htmlOptions = array ( ) ) { self :: addCssClass ( 'modal-header' , $ htmlOptions ) ; $ closeOptions = TbArray :: popValue ( 'closeOptions' , $ htmlOptions , array ( ) ) ; $ closeOptions [ 'dismiss' ] = 'modal' ; $ headingOptions = TbArray :: popValue ( 'headingOptions' , $ htmlOptions , array ( ) ) ; $ closeLabel = TbArray :: popValue ( 'closeLabel' , $ htmlOptions , self :: CLOSE_TEXT ) ; $ closeButton = self :: closeButton ( $ closeLabel , $ closeOptions ) ; self :: addCssClass ( 'modal-title' , $ headingOptions ) ; $ header = self :: tag ( 'h4' , $ headingOptions , $ content ) ; return self :: tag ( 'div' , $ htmlOptions , $ closeButton . $ header ) ; }
Generates a modal header.
@param string $content the header content.
@param array $htmlOptions additional HTML attributes.
@return string the generated header.
Generates a modal header .