diff --git a/classes/gelato.class.php b/classes/gelato.class.php index 730593d..b71d79a 100644 --- a/classes/gelato.class.php +++ b/classes/gelato.class.php @@ -95,10 +95,10 @@ class gelato extends Conexion_Mysql { function getVideoPlayer($url) { if (isYoutubeVideo($url)) { $id_video = getYoutubeVideoUrl($url); - return "\t\t\t
\n"; + return "\t\t\t\n"; } elseif (isVimeoVideo($url)) { $id_video = getVimeoVideoUrl($url); - return "\t\t\t
\n"; + return "\t\t\t\n"; } else { return "This URL is not a supported video (YouTube or Vimeo)"; } @@ -107,7 +107,7 @@ class gelato extends Conexion_Mysql { function getMp3Player($url) { if (isMP3($url)) { $playerUrl = $this->conf->urlGelato."/admin/scripts/player.swf?soundFile=".$url; - return "\t\t\t
\n"; + return "\t\t\t\n"; } else { return "This URL is not a supported video (YouTube or Vimeo)"; } diff --git a/rss.php b/rss.php index 8dd0cff..a9d0eba 100644 --- a/rss.php +++ b/rss.php @@ -27,8 +27,6 @@ <?=htmlspecialchars(replaceAccents($conf->title));?> urlGelato;?> description));?> - EN - http://blogs.law.harvard.edu/tech/rss gelato CMS urlGelato;?>/images/information.png @@ -37,19 +35,50 @@ "; + break; + case "3": + $tit = "\"".htmlspecialchars(strip_tags($register["description"]))."\""; + $tmpStr = ($register["title"]!="") ? "

- ".htmlspecialchars($register["title"])."" : ""; + $desc = "\"".htmlspecialchars($register["description"])."\"".$tmpStr; + break; + case "4": + $tit = ($register["title"]=="") ? htmlspecialchars($register["url"]) : htmlspecialchars($register["title"]); + $tmpStr = ($register["description"]!="") ? "

- ".htmlspecialchars($register["description"])."" : ""; + $desc = "".$tit."".$tmpStr; + break; + case "5": + $lines = explode("\n", $register["description"]); + $line = htmlspecialchars($lines[0]); + $tit = ($register["title"]=="") ? $line : htmlspecialchars($register["title"]); + $desc = $tumble->formatConversation(htmlspecialchars($register["description"])); + break; + case "6": + $tit = ($register["description"]=="") ? "Video" : htmlspecialchars(strip_tags($register["description"])); + $desc = $tumble->getVideoPlayer(htmlspecialchars($register["url"])); + break; + case "7": + $tit = ($register["description"]=="") ? "MP3" : htmlspecialchars(strip_tags($register["description"])); + $desc = $tumble->getMp3Player(htmlspecialchars($register["url"])); + break; + } $url = htmlspecialchars($conf->urlGelato."/index.php/post/".$register["id_post"]."/"); $formatedDate = gmdate("D, d M Y H:i:s \G\M\T", strtotime($register["date"])); ?> - <?=$tit;?> + <?=replaceAccentsWithAmp($tit);?> + ]]> - - - system:unfiled - urlGelato."/index.php/post/".$register["id_post"]."/";?> + urlGelato."/index.php/post/".$register["id_post"]."/";?> + \ No newline at end of file