';
}
extract( $arguments, EXTR_SKIP );
$pattern = '/[^-_a-zA-Z0-9]/';
if ( empty( $id ) || preg_match( $pattern, $id ) ) {
return '';
}
if ( empty( $doc ) || preg_match( $pattern, $doc ) ) {
return '';
}
if ( empty( $w ) && !empty( $content_width ) ) {
$w = intval( $content_width );
} elseif ( ! ( $w = intval( $w ) ) || $w < 300 || $w > 1600 ) {
$w = 425;
} else {
$w = intval( $w );
}
$h = ceil( $w * 348 / 425 );
$player = "";
if ( !empty( $type ) && $type == 'd' ) {
$player = "";
}
return $player;
}
add_shortcode( 'slideshare', 'slideshare_shortcode' );