'asciiplayer-container', 'style' => $style ) ) : 'class="asciiplayer-container"' . ( '' === $style ? '' : ' style="' . esc_attr( $style ) . '"' ); return sprintf( '
', $wrapper, esc_url( $source, array( 'http', 'https' ) ), esc_attr( $options ) ); } /** * Preserve [asciiplayer]URL[/asciiplayer] and its existing options. * * @param mixed $attributes Shortcode attributes. * @param string|null $content Enclosed URL. * @return string */ function render_shortcode( $attributes = array(), $content = null ) { return null === $content ? '' : render_player( $attributes, $content ); } /** * Dynamic block callback. Both authoring paths use exactly the same sanitizer. * * @param array $attributes Block attributes. * @return string */ function render_block( $attributes ) { return render_player( $attributes, null, true ); }