Closed Fortyfive closed 10 years ago
Hi Cooper, in this function there is a '.' after the second $output. Is this a mistake?
function bfg_ie_conditionals( $tag, $handle ) {
if( 'bfg' == $handle ) { $output = '<!--[if !IE]> -->' . "\n" . $tag . '<!-- <![endif]-->' . "\n"; $output .= '<!--[if gte IE 8]>' . "\n" . $tag . '<![endif]-->' . "\n"; } elseif( 'bfg-ie-universal' == $handle ) { $output = '<!--[if lt IE 8]>' . "\n" . $tag . '<![endif]-->' . "\n"; } else { $output = $tag; } return $output;
}
Thanks David
This is a shorthand way of concatenation. Instead of typing $output = $output . 'string'; you can just type $output .= 'string'.
Apologies, I did not realise.
Hi Cooper, in this function there is a '.' after the second $output. Is this a mistake?
function bfg_ie_conditionals( $tag, $handle ) {
}
Thanks David