public static function quote($text, $htmlOptions = array())
    {
        $paragraphOptions = TbArray::popValue('paragraphOptions', $htmlOptions, array());
        $source = TbArray::popValue('source', $htmlOptions);
        $sourceOptions = TbArray::popValue('sourceOptions', $htmlOptions, array());
        $cite = TbArray::popValue('cite', $htmlOptions);
        $citeOptions = TbArray::popValue('citeOptions', $htmlOptions, array());
        $cite = isset($cite) ? ' ' . self::tag('cite', $citeOptions, $cite) : '';
        $source = isset($source) ? self::tag('small', $sourceOptions, $source . $cite) : '';
        $text = self::tag('p', $paragraphOptions, $text) . $source;
        return self::tag('blockquote', $htmlOptions, $text);
    }
public static function quote($text, $htmlOptions = array())
    {
        $paragraphOptions = TbArray::popValue('paragraphOptions', $htmlOptions, array());
        $source = TbArray::popValue('source', $htmlOptions);
        $sourceOptions = TbArray::popValue('sourceOptions', $htmlOptions, array());
        $cite = TbArray::popValue('cite', $htmlOptions);
        $citeOptions = TbArray::popValue('citeOptions', $htmlOptions, array());
        $cite = isset($cite) ? ' ' . self::tag('cite', $citeOptions, $cite) : '';
        $source = isset($source) ? self::tag('small', $sourceOptions, $source . $cite) : '';
        $text = self::tag('p', $paragraphOptions, $text) . $source;
        return self::tag('blockquote', $htmlOptions, $text);
    }
public static function quote ( $ text , $ htmlOptions = array ( ) ) { $ paragraphOptions = TbArray :: popValue ( 'paragraphOptions' , $ htmlOptions , array ( ) ) ; $ source = TbArray :: popValue ( 'source' , $ htmlOptions ) ; $ sourceOptions = TbArray :: popValue ( 'sourceOptions' , $ htmlOptions , array ( ) ) ; $ cite = TbArray :: popValue ( 'cite' , $ htmlOptions ) ; $ citeOptions = TbArray :: popValue ( 'citeOptions' , $ htmlOptions , array ( ) ) ; $ cite = isset ( $ cite ) ? ' ' . self :: tag ( 'cite' , $ citeOptions , $ cite ) : '' ; $ source = isset ( $ source ) ? self :: tag ( 'small' , $ sourceOptions , $ source . $ cite ) : '' ; $ text = self :: tag ( 'p' , $ paragraphOptions , $ text ) . $ source ; return self :: tag ( 'blockquote' , $ htmlOptions , $ text ) ; }
Generates a quote.
@param string $text the quoted text.
@param array $htmlOptions additional HTML attributes.
@return string the generated quote.
Generates a quote .