public/wordpress/wp-content/plugins/backupbuddy/pluginbuddy/classes/ui.php
/**
	 *	pb_backupbuddy::video()
	 *
	 *	Displays a YouTube video to the user when they hover over the question video mark.
	 *	HTML is supposed within tooltips.
	 *
	 *	@param		string		$video_key		YouTube video key from the URL ?v=VIDEO_KEY_HERE  -- To jump to a certain timestamp add #SECONDS to the end of the key, where SECONDS is the number of seconds into the video to start at. Example to start 65 seconds into a video: 9ZHWGjBr84s#65. This must be in seconds format.
	 *	@param		string		$title			Title of message to show to user. This is displayed at top of tip in bigger letters. Default is blank. (optional)
	 *	@param		boolean		$echo_tip		Whether to echo the tip (default; true), or return the tip (false). (optional)
	 *	@return		string/null					If not echoing tip then the string will be returned. When echoing there is no return.
	 */
:video()
Displays a YouTube video to the user when they hover over the question video mark.
HTML is supposed within tooltips.

@param          string          $video_key              YouTube video key from the URL ?v=VIDEO_KEY_HERE  -- To jump to a certain timestamp add #SECONDS to the end of the key, where SECONDS is the number of seconds into the video to start at. Example to start 65 seconds into a video: 9ZHWGjBr84s#65. This must be in seconds format.
@param          string          $title                  Title of message to show to user. This is displayed at top of tip in bigger letters. Default is blank. (optional)
@param          boolean         $echo_tip               Whether to echo the tip (default; true), or return the tip (false). (optional)
@return         string/null                                     If not echoing tip then the string will be returned. When echoing there is no return.
: video () Displays a YouTube video to the user when they hover over the question video mark . HTML is supposed within tooltips . @param string $video_key YouTube video key from the URL ?v = VIDEO_KEY_HERE -- To jump to a certain timestamp add #SECONDS to the end of the key where SECONDS is the number of seconds into the video to start at . Example to start 65 seconds into a video : 9ZHWGjBr84s#65 . This must be in seconds format . @param string $title Title of message to show to user . This is displayed at top of tip in bigger letters . Default is blank . ( optional ) @param boolean $echo_tip Whether to echo the tip ( default ; true ) or return the tip ( false ) . ( optional ) @return string / null If not echoing tip then the string will be returned . When echoing there is no return .
public function video( $video_key, $title = '', $echo_tip = true ) {
		self::enqueue_thickbox();
		if ( strstr( $video_key, '#' ) ) {
			$video = explode( '#', $video_key );
			$video[1] = '&start=' . $video[1];
		} else {
			$video[0] = $video_key;
			$video[1] = '';
		}
		$tip = '<a target="_blank" href="http://www.youtube.com/embed/' . urlencode( $video[0] ) . '?autoplay=1' . $video[1] . '&TB_iframe=1&width=600&height=400" class="thickbox pluginbuddy_tip" title="Video Tutorial - ' . $title . '"><img src="' . pb_backupbuddy::plugin_url() . '/pluginbuddy/images/pluginbuddy_play.png" alt="(video)" /></a>';
		if ( $echo_tip === true ) {
			echo $tip;
		} else {
			return $tip;
		}
	}
public function video ( $ video_key , $ title = '' , $ echo_tip = true ) { self :: enqueue_thickbox ( ) ; if ( strstr ( $ video_key , '#' ) ) { $ video = explode ( '#' , $ video_key ) ; $ video [ 1 ] = '&start=' . $ video [ 1 ] ; } else { $ video [ 0 ] = $ video_key ; $ video [ 1 ] = '' ; } $ tip = '<a target="_blank" href="http://www.youtube.com/embed/' . urlencode ( $ video [ 0 ] ) . '?autoplay=1' . $ video [ 1 ] . '&TB_iframe=1&width=600&height=400" class="thickbox pluginbuddy_tip" title="Video Tutorial - ' . $ title . '"><img src="' . pb_backupbuddy :: plugin_url ( ) . '/pluginbuddy/images/pluginbuddy_play.png" alt="(video)" /></a>' ; if ( $ echo_tip === true ) { echo $ tip ; } else { return $ tip ; } }
pb_backupbuddy::video()
      Displays a YouTube video to the user when they hover over the question video mark.
pb_backupbuddy :: video () Displays a YouTube video to the user when they hover over the question video mark .