function wt_video_featured($url = 0, $type = 'full', $layout = '', $height = '', $width = '') { if ($height = '' && ($width = '')) { if ($layout == 'full') { $width = 1140; $height = 529; } else { $width = 750; $height = 360; } } if (strpos($url, 'youtube.com') != false) { return wt_video_youtube($url, $type, $layout, $height, $width); } elseif (strpos($url, 'vimeo.com') != false) { return wt_video_vimeo($url, $type, $layout, $height, $width); } elseif (strpos($url, 'dailymotion.com') != false) { return wt_video_dailymotion($url, $type, $layout, $height, $width); } elseif (strpos($url, 'metacafe.com') != false) { return wt_video_metacafe($url, $type, $layout, $height, $width); } else { // } }
/** * Featured Videos * */ function wt_featured_video($url = 0, $type = '', $layout = '', $height = '', $width = '') { $width = 256; $height = 144; if (strpos($url, 'youtube.com') != false) { return wt_video_youtube($url, $type, $layout, $height, $width); } elseif (strpos($url, 'vimeo.com') != false) { return wt_video_vimeo($url, $type, $layout, $height, $width); } elseif (strpos($url, 'dailymotion.com') != false) { return wt_video_dailymotion($url, $type, $layout, $height, $width); } elseif (strpos($url, 'metacafe.com') != false) { return wt_video_metacafe($url, $type, $layout, $height, $width); } else { // } }