[Xfce4-commits] [www/www.xfce.org] 01/05: Swap Blog and Latest News post positions. Rename Latest News to Release Updates

noreply at xfce.org noreply at xfce.org
Sun Feb 9 19:21:49 CET 2020


This is an automated email from the git hooks/post-receive script.

s   k   u   n   n   y   k       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository www/www.xfce.org.

commit e7b4708b02344a69fba2d3e626e024f76f3fa4f5
Author: Kevin Bowen <kevin.bowen at gmail.com>
Date:   Tue Jan 14 12:22:31 2020 -0800

    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
---
 pages/frontpage.php | 48 +++++++++++++++++++++++++-----------------------
 1 file changed, 25 insertions(+), 23 deletions(-)

diff --git a/pages/frontpage.php b/pages/frontpage.php
index d2a9b97..eeed76d 100644
--- a/pages/frontpage.php
+++ b/pages/frontpage.php
@@ -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 →').'</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 →').'</a></p>';
-	?>
-</div>
-
 </div>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list