Hi,
Whenever I add the following to kfunctions.php my sites stops working, i get a 500 error
Has something changed in the code or am i missing something?
Whenever I add the following to kfunctions.php my sites stops working, i get a 500 error
- Code: Select all
// 2.
// IFrame shortcode
// Usage: [iframe src="http://www.somesite.com/" width="100" height="100" scrolling="yes" frameborder="1" marginheight="2"]
$FUNCS->register_shortcode( 'iframe', 'iframe_handler' );
function iframe_handler( $params, $content=null ){
global $FUNCS;
extract( $FUNCS->get_named_vars(array(
'src' => '',
'width' => '100%',
'height' => '500',
'scrolling' => 'no',
'frameborder' => '0',
'marginheight' => '0'
), $params) );
$html =<<<EOS
<iframe src="$src" title="" width="$width" height="$height" scrolling="$scrolling" frameborder="$frameborder" marginheight="$marginheight">
<a href="$src" target="_blank">$src</a>
</iframe>
EOS;
return $html;
}
Has something changed in the code or am i missing something?