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