ID, self::$format, null ); ?>
'; }else { $id = self::get_youtube_id($url); $poster = 'style="background: url(http://img.youtube.com/vi/'.$id.'/0.jpg) no-repeat cover;"'; $settings = 'controls=1'; $url = 'https://www.youtube.com/embed/'.$id.'?'.$settings; $output .= ''; } return $output; } // this might not be needed anymore private static function youtubeEmbedLink($url) { $id = self::get_youtube_id($url); return 'https://www.youtube.com/embed/'.$id; } // this might not be needed anymore private static function displayVideo($url = null, $type = 'local') { $vis = 'pfp-hide'; if(!$url) return $vis; if($type == 'youtube' && self::get_video_type($url) == 'youtube') $vis = ''; if($type !=='youtube' && in_array( self::get_video_type($url), array('mp4','mov','webm') ) ) $vis = ''; return $vis; } }