芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/www/blog/wp-content/plugins/youtube-embed/includes/aye-function-calls.php
1 ) { echo aye_error( $embed_type ); } else { echo aye_error( sprintf( __( 'The YouTube ID of %s is invalid.', 'youtube-embed' ), $id ) ); } return; } // Get transcript file $filename = 'http://video.google.com/timedtext?lang=en&v=' . $id; $xml = aye_get_file( $filename ); // Check success and return appropriate output if ( $xml[ 'rc' ] > 0 ) { echo aye_error( sprintf( __( 'Could not fetch the transcript file %s.', 'youtube-embed' ), $id ) ); return; } else { return $xml; } } /** * Get transcript * * Return XHTML formatted YouTube transcript * * @since 2.0 * * @uses aye_generate_generatE_transcript Generate the transcript output * * @param string $id YouTube video ID * @return string Transcript file in XHTML format */ function get_youtube_transcript( $id ) { return aye_generate_transcript( $id ); } /** * Get Video Name * * Function to return the name of a YouTube video * * @since 2.0 * * @uses aye_extract_id Extract the video ID * @uses aye_validate_id Get the name and video type * @uses aye_error Return an error * * @param string $id Video ID * @return string Video name */ function get_youtube_name( $id ) { // Extract the ID if a full URL has been specified $id = aye_extract_id( $id ); // Check what type of video it is and whether it's valid $return = aye_validate_id( $id, true ); $embed_type = $return[ 'type' ]; if ( strlen( $embed_type ) > 1 ) { echo aye_error( $embed_type ); } else { echo aye_error( sprintf( __ ( 'The YouTube ID of %s is invalid.', 'youtube-embed' ), $id ) ); } // Return the video title return $return['title']; } ?>