Showing 5 changed files with 3 additions and 7 deletions
-1
sources/news-lepoint.fr.php
... ...
@@ -25,7 +25,6 @@ if ($xml === false) {
25 25
     $article['timestamp'] = strtotime($item->pubDate);
26 26
     $article['description'] = $item->description;
27 27
     $article['image'] = $item->enclosure['url'];
28
-    //$articles[$article['timestamp']] = $article;  
29 28
     $articles[$cpt] = $article;  
30 29
     echo '<div onclick="onArticle('.$cpt.')" style="display:inline;">';
31 30
     echo '<img src="'.$article['image'].'" style="display:inline;" width="100%"><br>';
+1 -1
sources/news-lesinrocks.fr.php
... ...
@@ -25,7 +25,7 @@ if ($xml === false) {
25 25
     $article['timestamp'] = strtotime($item->pubDate);
26 26
     $article['description'] = $item->description;
27 27
     $article['image'] = $item->enclosure['url'];
28
-    $articles[$article['timestamp']] = $article;  
28
+    $articles[$cpt] = $article; 
29 29
     echo '<div onclick="onArticle('.$cpt.')" style="display:inline;">';
30 30
     echo '<img src="'.$article['image'].'" style="display:inline;" width="100%"><br>';
31 31
     echo '<div id="nav-up" style="display:inline;"><a href="#top"><i class="fa fa-home fa-2x"></i></a></div>&nbsp;&nbsp;';
+1 -1
sources/news-liberation.fr.php
... ...
@@ -32,7 +32,7 @@ if ($xml === false) {
32 32
       }
33 33
     }
34 34
 
35
-    $articles[$article['timestamp']] = $article;
35
+    $articles[$cpt] = $article;
36 36
     echo "<div onclick=\"onArticle($cpt)\" style=\"display:inline;\">\n";
37 37
     echo '<img width="100%" src="'.$article['image'].'" style="display:inline;"><br>';
38 38
     echo '<div id="nav-up" style="display:inline;"><a href="#top"><i class="fa fa-home fa-2x"></i></a></div> ';
+1 -2
sources/news-slate.fr.php
... ...
@@ -1,7 +1,6 @@
1 1
 <?php
2 2
 include_once( 'news-constants.php' );
3 3
 
4
-//$rss_content = file_get_contents(NEWS_RSS_SLATEFR);
5 4
 $rss_content = http_get_contents(NEWS_RSS_SLATEFR);
6 5
 $xml = simplexml_load_string($rss_content);
7 6
 if ($xml === false) {
... ...
@@ -26,7 +25,7 @@ if ($xml === false) {
26 25
     $article['timestamp'] = strtotime($item->pubDate);
27 26
     $article['description'] = $item->description;
28 27
     $article['image'] = $item->enclosure['url'];
29
-    $articles[$article['timestamp']] = $article;  
28
+    $articles[$cpt] = $article; 
30 29
     echo '<div onclick="onArticle('.$cpt.')" style="display:inline;">';
31 30
     echo '<img src="'.$article['image'].'" style="display:inline;" width="100%"><br>';
32 31
     echo '<div id="nav-up" style="display:inline;"><a href="#top"><i class="fa fa-home fa-2x"></i></a></div>&nbsp;&nbsp;';
-2
sources/news-vice.fr.php
... ...
@@ -1,7 +1,6 @@
1 1
 <?php
2 2
 include_once( 'news-constants.php' );
3 3
 
4
-//$rss_content = file_get_contents(NEWS_RSS_VICEFR);
5 4
 $rss_content = http_get_contents(NEWS_RSS_VICEFR);
6 5
 $rss_content = str_replace("<content:encoded>","<contentEncoded>",$rss_content);
7 6
 $rss_content = str_replace("</content:encoded>","</contentEncoded>",$rss_content);
... ...
@@ -27,7 +26,6 @@ if ($xml === false) {
27 26
     $article['description'] = $item->description;
28 27
     $article['content'] = $item->contentEncoded;
29 28
     $article['image'] = $item->enclosure['url'];
30
-    //$articles[$article['timestamp']] = $article; 
31 29
     $articles[$cpt]=$article;
32 30
     echo '<div onclick="onArticle('.$cpt.')" style="display:inline;">';
33 31
     echo '<img src="'.$article['image'].'" style="display:inline;" width="100%"><br>';