コード例 #1
0
 function imic_video_embed($url, $width = 200, $height = 150, $autopaly = 0)
 {
     if (strpos($url, 'youtube') || strpos($url, 'youtu.be')) {
         return imic_video_youtube($url, $width, $height, $autopaly);
     } else {
         return imic_video_vimeo($url, $width, $height, $autopaly);
     }
 }
コード例 #2
0
 function imic_video_embed($url, $width = 500, $height = 300)
 {
     if (strpos($url, 'youtube') || strpos($url, 'youtu.be')) {
         return imic_video_youtube($url, $width, $height);
     } else {
         return imic_video_vimeo($url, $width, $height);
     }
 }