|
@@ -170,11 +170,26 @@ if(!defined('entry') || !entry) die('Not a valid page');
|
170
|
170
|
return $params2[0];
|
171
|
171
|
}
|
172
|
172
|
|
|
173
|
+ function isSlideSharePresentation($videoUrl) {
|
|
174
|
+ if (beginsWith($videoUrl, "[slideshare id="))
|
|
175
|
+ return true;
|
|
176
|
+ else
|
|
177
|
+ return false;
|
|
178
|
+ }
|
|
179
|
+
|
|
180
|
+ function getSlideSharePresentationCode($videoUrl) {
|
|
181
|
+ $videoUrl = str_replace("[slideshare id=", "", $videoUrl);
|
|
182
|
+ $videoUrl = str_replace("&doc=", " ", $videoUrl);
|
|
183
|
+ $videoUrl = str_replace("&w=", " ", $videoUrl);
|
|
184
|
+ return explode(" ",$videoUrl);
|
|
185
|
+ }
|
|
186
|
+
|
173
|
187
|
function isVideo($url) {
|
174
|
188
|
if (isYoutubeVideo($url)) { return true; }
|
175
|
189
|
elseif (isVimeoVideo($url)) { return true; }
|
176
|
190
|
elseif (isDailymotionVideo($url)) { return true; }
|
177
|
191
|
elseif (isYahooVideo($url)) { return true; }
|
|
192
|
+ elseif (isSlideSharePresentation($url)) { return true; }
|
178
|
193
|
else { return false; }
|
179
|
194
|
}
|
180
|
195
|
|