|
@@ 106-110 (lines=5) @@
|
| 103 |
|
$thumb = ''; |
| 104 |
|
switch ($source) { |
| 105 |
|
// YouTube |
| 106 |
|
case 0: |
| 107 |
|
$thumb |
| 108 |
|
= '<img src="http://img.youtube.com/vi/' . $vidid . '/default.jpg" title="' . $title . '" alt="' . $title . '" width="' . $width . '" height="' . $height |
| 109 |
|
. '" style="padding: 0px; border-style: none;" />'; |
| 110 |
|
break; |
| 111 |
|
|
| 112 |
|
// MetaCafe |
| 113 |
|
case 1: |
|
@@ 123-127 (lines=5) @@
|
| 120 |
|
break; |
| 121 |
|
|
| 122 |
|
// iFilm/Spike |
| 123 |
|
case 2: |
| 124 |
|
$thumb |
| 125 |
|
= '<img src="http://img3.ifilmpro.com/resize/image/stills/films/resize/istd/' . $vidid . '.jpg?width=' . $width . '" title="' . $title . '" alt="' . $title |
| 126 |
|
. '" style="padding: 0px; border-style: none;" />'; |
| 127 |
|
break; |
| 128 |
|
|
| 129 |
|
// Photobucket |
| 130 |
|
case 3: |
|
@@ 130-134 (lines=5) @@
|
| 127 |
|
break; |
| 128 |
|
|
| 129 |
|
// Photobucket |
| 130 |
|
case 3: |
| 131 |
|
$thumb |
| 132 |
|
= '<img src="http://i153.photobucket.com/albums/' . $vidid . '.jpg" width="' . $width . '" height="' . $height . '" title="' . $title . '" alt="' . $title |
| 133 |
|
. '" style="padding: 0px; border-style: none;" />'; |
| 134 |
|
break; |
| 135 |
|
|
| 136 |
|
// Photobucket |
| 137 |
|
case 4: |
|
@@ 137-141 (lines=5) @@
|
| 134 |
|
break; |
| 135 |
|
|
| 136 |
|
// Photobucket |
| 137 |
|
case 4: |
| 138 |
|
$thumb |
| 139 |
|
= '<img src="http://cdn-thumbs.viddler.com/thumbnail_2_' . $vidid . '.jpg" width="' . $width . '" height="' . $height . '" title="' . $title . '" alt="' . $title |
| 140 |
|
. '" style="padding: 0px; border-style: none;" />'; |
| 141 |
|
break; |
| 142 |
|
|
| 143 |
|
// Google Video, MySpace TV, DailyMotion, BrightCove, Blip.tv, ClipFish, LiveLeak, Maktoob, Veoh |
| 144 |
|
case 100: |
|
@@ 153-156 (lines=4) @@
|
| 150 |
|
case 106: |
| 151 |
|
case 107: |
| 152 |
|
case 108: |
| 153 |
|
case 109: |
| 154 |
|
$thumb |
| 155 |
|
= '<img src="' . $picurl . '" width="' . $width . '" height="' . $height . '" title="' . $title . '" alt="' . $title . '" style="padding: 0px; border-style: none;" />'; |
| 156 |
|
break; |
| 157 |
|
|
| 158 |
|
// Determine if video source is XoopsTube for thumbnail |
| 159 |
|
case 200: |
|
@@ 159-163 (lines=5) @@
|
| 156 |
|
break; |
| 157 |
|
|
| 158 |
|
// Determine if video source is XoopsTube for thumbnail |
| 159 |
|
case 200: |
| 160 |
|
$thumb |
| 161 |
|
= '<img src="' . XOOPS_URL . '/' . $screenshot . '" width="' . $width . '" height="' . $height . '" title="' . $title . '" alt="' . $title |
| 162 |
|
. '" style="padding: 0px; border-style: none;" />'; |
| 163 |
|
break; |
| 164 |
|
} |
| 165 |
|
|
| 166 |
|
return $thumb; |