Commit ec2eca38 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Update main page to fix planet links

parent 60ce46aa
......@@ -418,15 +418,17 @@ function vlcscreenshot($img,$thumb, $desc){
$entries_per_column = 4;
$columns = 1;
foreach($rss->items as $item) {
echo "<p style='direction:ltr; text-align:left;'>";
echo "<b><a href=\"".$item['link'].'" style="color: black;">'.htmlentities($item['title'],ENT_COMPAT,"UTF-8")."</a></b></p>";
echo '<p style="border-bottom: 1px dashed #CCC;padding-bottom:5px;margin-bottom:5px;direction:ltr; text-align:left;">';
echo substr(strip_tags(html_entity_decode($item['content']['encoded'],ENT_COMPAT,"UTF-8")),0,$chars_per_entry);
echo "<a href=\"".$item['link']."\">[...]</a><br/>";
echo "</p>";
$i++;
if($i>=$columns*$entries_per_column) break;
if($i%$entries_per_column==0) echo "</td><td>";
if( isset($item['link']) {
echo "<p style='direction:ltr; text-align:left;'>";
echo "<b><a href=\"".$item['link'].'" style="color: black;">'.htmlentities($item['title'],ENT_COMPAT,"UTF-8")."</a></b></p>";
echo '<p style="border-bottom: 1px dashed #CCC;padding-bottom:5px;margin-bottom:5px;direction:ltr; text-align:left;">';
echo substr(strip_tags(html_entity_decode($item['content']['encoded'],ENT_COMPAT,"UTF-8")),0,$chars_per_entry);
echo "<a href=\"".$item['link']."\">[...]</a><br/>";
echo "</p>";
$i++;
if($i>=$columns*$entries_per_column) break;
if($i%$entries_per_column==0) echo "</td><td>";
}
}
?>
<?php /* Social and other BS */ ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment