diff --git a/classes/functions.php b/classes/functions.php
index dfc3998..565b9d5 100644
--- a/classes/functions.php
+++ b/classes/functions.php
@@ -170,11 +170,26 @@ if(!defined('entry') || !entry) die('Not a valid page');
return $params2[0];
}
+ function isSlideSharePresentation($videoUrl) {
+ if (beginsWith($videoUrl, "[slideshare id="))
+ return true;
+ else
+ return false;
+ }
+
+ function getSlideSharePresentationCode($videoUrl) {
+ $videoUrl = str_replace("[slideshare id=", "", $videoUrl);
+ $videoUrl = str_replace("&doc=", " ", $videoUrl);
+ $videoUrl = str_replace("&w=", " ", $videoUrl);
+ return explode(" ",$videoUrl);
+ }
+
function isVideo($url) {
if (isYoutubeVideo($url)) { return true; }
elseif (isVimeoVideo($url)) { return true; }
elseif (isDailymotionVideo($url)) { return true; }
elseif (isYahooVideo($url)) { return true; }
+ elseif (isSlideSharePresentation($url)) { return true; }
else { return false; }
}
diff --git a/classes/gelato.class.php b/classes/gelato.class.php
index 37565f4..a560c48 100644
--- a/classes/gelato.class.php
+++ b/classes/gelato.class.php
@@ -172,11 +172,13 @@ class gelato extends Conexion_Mysql {
} elseif (isYahooVideo($url)) {
$id_video = getYahooVideoCode($url);
return "\t\t\t\n";
+ } elseif (isSlideSharePresentation($url)) {
+ $id_video = getSlideSharePresentationCode($url);
+ return "\t\t\t\n";
} else {
return "This URL is not a supported video (YouTube, Vimeo, DailyMotion or Yahoo Video)";
}
}
-
function getMp3Player($url) {
if (isMP3($url)) {
$playerUrl = $this->conf->urlGelato."/admin/scripts/player.swf?soundFile=".$url;