Finished the removing of the old permalinks styles; sanitize RSS feed
parent
a998e1a4de
commit
03def6f6fb
|
|
@ -75,13 +75,15 @@ Author URI: http://www.mis-algoritmos.com
|
||||||
echo "<div class=\"$this->className\">$this->pagination</div>";
|
echo "<div class=\"$this->className\">$this->pagination</div>";
|
||||||
}
|
}
|
||||||
function get_pagenum_link($id){
|
function get_pagenum_link($id){
|
||||||
if(strpos($this->target,'?')===false)
|
//if(strpos($this->target,'?')===false)
|
||||||
if($this->urlF)
|
if($this->urlF)
|
||||||
return str_replace($this->urlF,$id,$this->target);
|
return str_replace($this->urlF,$id,$this->target);
|
||||||
|
|
||||||
else
|
else
|
||||||
return "$this->target?$this->parameterName=$id";
|
return "$this->target?$this->parameterName=$id";
|
||||||
else
|
//else
|
||||||
return "$this->target&$this->parameterName=$id";
|
//return "$this->target&$this->parameterName=$id";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function calculate(){
|
function calculate(){
|
||||||
|
|
|
||||||
9
rss.php
9
rss.php
|
|
@ -79,15 +79,18 @@
|
||||||
$desc = $tumble->getMp3Player($register["url"]);
|
$desc = $tumble->getMp3Player($register["url"]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$url = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php/post/").$register["id_post"]."/";
|
$tit = htmlspecialchars($tit);
|
||||||
$formatedDate = gmdate("D, d M Y H:i:s \G\M\T", strtotime($register["date"]));
|
$url = htmlspecialchars($url);
|
||||||
|
$strEnd=($conf->urlFriendly) ? "/" : "";
|
||||||
|
$url = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php?post=").$register["id_post"].$strEnd;
|
||||||
|
$formatedDate = date("r", strtotime($register["date"])+transform_offset($conf->offsetTime));
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<title><?php echo $tit;?></title>
|
<title><?php echo $tit;?></title>
|
||||||
<description><![CDATA[<?php echo $desc;?>]]></description>
|
<description><![CDATA[<?php echo $desc;?>]]></description>
|
||||||
<link><?php echo $url;?></link>
|
<link><?php echo $url;?></link>
|
||||||
<guid isPermaLink="true"><?php echo $conf->urlGelato."/index.php/post/".$register["id_post"]."/";?></guid>
|
<guid isPermaLink="true"><?php echo $url;?></guid>
|
||||||
<pubDate><?php echo $formatedDate;?></pubDate>
|
<pubDate><?php echo $formatedDate;?></pubDate>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue