Commit e7b4708b authored by Kevin Bowen's avatar Kevin Bowen Committed by Romain Bouvier

Swap Blog and Latest News post positions. Rename Latest News to Release Updates

- This patch will swap the positions of the "Latest News" and "On the Xfce Blog" posts.
- "Latest News" has been renamed to "Xfce Release Updates".
- This will allow the recent/current activity to be featured a bit more prominently than it currently is.
- Fix #15170
parent f6e2e3ce
......@@ -65,10 +65,33 @@ $head['css'] = '@media screen and (max-width:830px) {
</a>
</li>
</ul>
<p></p>
</div>
<div class="column">
<h2><?php E_('Latest News') ?></h2>
<h2><?php E_('On the Xfce Blog') ?></h2>
<span class="rss"><a href="https://blog.xfce.org/feed"><?php E_('Subscribe to RSS feed') ?></a></span>
<?php
require_once('lib/simplepie/autoloader.php');
$feed = new SimplePie();
$feed->set_feed_url(array('https://blog.xfce.org/feed/'));
$feed->set_cache_location('cache');
$feed->init();
$feed->handle_content_type();
echo '<ul class="feeds group">';
foreach($feed->get_items(0,4) as $item){
echo '<li><strong><a href="'.$item->get_permalink().'">'.$item->get_title().'</a></strong><br />';
echo '<span class="meta">'.$item->get_author()->get_name().' on '.$item->get_date('M d Y').'</span></li>';
}
echo '</ul>';
echo '<p><a href="https://blog.xfce.org/">'.R_('Read more articles on the Xfce Blog &rarr;').'</a></p>';
?>
</div>
<div class="column">
<h2><?php E_('Xfce Release Updates') ?></h2>
<span class="rss"><a href="https://xfce.org/feed?lang=<?php echo $lang ?>"><?php E_('Subscribe to RSS feed') ?></a></span>
<?php
$count = 2;
......@@ -86,7 +109,7 @@ $head['css'] = '@media screen and (max-width:830px) {
$link = '/about/news/?post='.strtotime ($item['date']);
echo '<div class="post-wrap">';
echo '<p>'.$item['paragraphs'][0] .' ';
echo '<p>'.$item['paragraphs'][0] .' '.'<br>';
learnmore ($link);
echo '</p></div>';
......@@ -103,25 +126,4 @@ $head['css'] = '@media screen and (max-width:830px) {
?>
</div>
<div class="column">
<h2><?php E_('On the Xfce Blog') ?></h2>
<span class="rss"><a href="https://blog.xfce.org/feed"><?php E_('Subscribe to RSS feed') ?></a></span>
<?php
require_once('lib/simplepie/autoloader.php');
$feed = new SimplePie();
$feed->set_feed_url(array('https://blog.xfce.org/feed/'));
$feed->set_cache_location('cache');
$feed->init();
$feed->handle_content_type();
echo '<ul class="feeds group">';
foreach($feed->get_items(0,4) as $item){
echo '<li><strong><a href="'.$item->get_permalink().'">'.$item->get_title().'</a></strong><br />';
echo '<span class="meta">'.$item->get_author()->get_name().' on '.$item->get_date('M d Y').'</span></li>';
}
echo '</ul>';
echo '<p><a href="https://blog.xfce.org/">'.R_('Read more articles on the Xfce Blog &rarr;').'</a></p>';
?>
</div>
</div>
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