|
@@ -165,9 +165,13 @@ class gelato extends Conexion_Mysql {
|
165
|
165
|
return "\t\t\t<object type=\"application/x-shockwave-flash\" style=\"width:500px;height:393px\" data=\"http://www.youtube.com/v/".$id_video."\"><param name=\"movie\" value=\"http://www.youtube.com/v/".$id_video."\" /></object>\n";
|
166
|
166
|
} elseif (isVimeoVideo($url)) {
|
167
|
167
|
$id_video = getVimeoVideoUrl($url);
|
168
|
|
- return "\t\t\t<object type=\"application/x-shockwave-flash\" style=\"width:500px;height:393px\" data=\"http://www.vimeo.com/moogaloop.swf?clip_id=".$id_video."\"><param name=\"movie\" value=\"http://www.vimeo.com/moogaloop.swf?clip_id=".$id_video."\" /></object>\n";
|
|
168
|
+ return "\t\t\t<object type=\"application/x-shockwave-flash\" style=\"width:500px;height:393px\" data=\"http://www.vimeo.com/moogaloop.swf?clip_id=".$id_video."\"><param name=\"movie\" value=\"http://www.vimeo.com/moogaloop.swf?clip_id=".$id_video."\" /></object>\n";}
|
|
169
|
+ elseif (isDailymotionVideo($url)) {
|
|
170
|
+ $id_video = getDailymotionVideoUrl($url);
|
|
171
|
+ return "\t\t\t<object type=\"application/x-shockwave-flash\" style=\"width:500px;height:393px\" data=\"http://www.dailymotion.com/swf/".$id_video."\"><param name=\"movie\" value=\"http://www.dailymotion.com/swf/".$id_video."\" /></object>\n";
|
|
172
|
+
|
169
|
173
|
} else {
|
170
|
|
- return "This URL is not a supported video (YouTube or Vimeo)";
|
|
174
|
+ return "This URL is not a supported video (YouTube, Vimeo or DailyMotion)";
|
171
|
175
|
}
|
172
|
176
|
}
|
173
|
177
|
|