tag to embed media * on those pages. * * @since 0.3.0 * @param string $mime attachment mime type * @param string $file attachment file URL * @return string */ function Easy_application_attachment( $mime = '', $file = '' ) { $embed_defaults = wp_embed_defaults(); $application = ''; $application .= ''; $application .= ''; return $application; } /** * Handles text attachments on their attachment pages. Uses the element to embed media * in the pages. * * @since 0.3.0 * @param string $mime attachment mime type * @param string $file attachment file URL * @return string */ function Easy_text_attachment( $mime = '', $file = '' ) { $embed_defaults = wp_embed_defaults(); $text = ''; $text .= ''; $text .= ''; return $text; } /** * Handles audio attachments on their attachment pages. Puts audio/mpeg and audio/wma files into * an element. * * @todo Test out and support more audio types. * * @since 0.2.2 * @param string $mime attachment mime type * @param string $file attachment file URL * @return string */ function Easy_audio_attachment( $mime = '', $file = '' ) { $embed_defaults = wp_embed_defaults(); $audio = ''; $audio .= ''; $audio .= ''; $audio .= ''; $audio .= ''; return $audio; } /** * Handles video attachments on attachment pages. Add other video types to the element. * * @since 0.2.2 * @param string $mime attachment mime type * @param string $file attachment file URL * @return string */ function Easy_video_attachment( $mime = false, $file = false ) { $embed_defaults = wp_embed_defaults(); if ( $mime == 'video/asf' ) $mime = 'video/x-ms-wmv'; $video = ''; $video .= ''; $video .= ''; $video .= ''; $video .= ''; $video .= ''; return $video; } ?>