tag to embed media on those pages. * * @todo Run a battery of tests on many different applications. * @todo Figure out what to do with FLV files outside of the current functionality. * * @since 0.3 * @param string $mime attachment mime type * @param string $file attachment file URL * @return string */ function hybrid_application_attachment( $mime = '', $file = '' ) { $application = ''; $application .= ''; $application .= ''; return apply_filters( 'hybrid_application_attachment', $application ); } /** * Handles text attachments on their attachment pages. * Uses the element to embed media in the pages. * * @since 0.3 * @param string $mime attachment mime type * @param string $file attachment file URL * @return string */ function hybrid_text_attachment( $mime = '', $file = '' ) { $text = ''; $text .= ''; $text .= ''; return apply_filters( 'hybrid_text_attachment', $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 hybrid_audio_attachment( $mime = '', $file = '' ) { $audio = ''; $audio .= ''; $audio .= ''; $audio .= ''; $audio .= ''; return apply_filters( 'hybrid_audio_attachment', $audio ); } /** * Handles video attachments on attachment pages. * Add other video types to the element. * * In 0.6, FLV files were moved to using hybrid_application_attachment. * * @todo Test out and support more video types. * * @since 0.2.2 * @param string $mime attachment mime type * @param string $file attachment file URL * @return string */ function hybrid_video_attachment( $mime = false, $file = false ) { if ( $mime == 'video/asf' ) $mime = 'video/x-ms-wmv'; $video = ''; $video .= ''; $video .= ''; $video .= ''; $video .= ''; $video .= ''; return apply_filters( 'hybrid_video_attachment', $video ); } ?>