fix debug
This commit is contained in:
parent
43955e58c8
commit
01a52f28b5
|
@ -30,11 +30,13 @@ usort($items, function($a, $b) {
|
||||||
$b_time = DateTime::createFromFormat('D, d M Y H:i:s O', $b->pubDate)->getTimestamp();
|
$b_time = DateTime::createFromFormat('D, d M Y H:i:s O', $b->pubDate)->getTimestamp();
|
||||||
return $b_time - $a_time;
|
return $b_time - $a_time;
|
||||||
});
|
});
|
||||||
|
// Debugging
|
||||||
// Loop through the sorted items and display them
|
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
// Debugging
|
// Debugging
|
||||||
echo $item->pubDate . ' => ' . strtotime($item->pubDate) . '<br>';
|
echo $item->pubDate . ' => ' . strtotime($item->pubDate) . '<br>';
|
||||||
|
}
|
||||||
|
// Loop through the sorted items and display them
|
||||||
|
foreach ($items as $item) {
|
||||||
// Add a box around the article
|
// Add a box around the article
|
||||||
echo '<div class="article-box">';
|
echo '<div class="article-box">';
|
||||||
|
|
||||||
|
|
Reference in New Issue