com web/php: Moved announcements above Recent News and made Announcements category that only shows up when there are announcements.:
views/homepage/sidebar.php

From: Date: Mon, 18 Jun 2012 17:03:15 +0000
Subject: com web/php: Moved announcements above Recent News and made Announcements category that only shows up when there are announcements.:
views/homepage/sidebar.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13717@lists.php.net to get a copy of this message
Commit: bd96d43961a1ba57950e6f92d86cbd30dd919828 Author: Levi Morrison <levim@php.net> Mon, 18 Jun 2012 11:03:15 -0600 Parents: 7050c1f95b6f9b47e878c944b22c36c4b6d2eada Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=bd96d43961a1ba57950e6f92d86cbd30dd919828 Log: Moved announcements above Recent News and made Announcements category that only shows up when there are announcements. Changed paths: M views/homepage/sidebar.php Diff: diff --git a/views/homepage/sidebar.php b/views/homepage/sidebar.php index 19138b6..94e8b3e 100644 --- a/views/homepage/sidebar.php +++ b/views/homepage/sidebar.php @@ -1,7 +1,13 @@ <div class=home-sidebar> + <?php + if (!empty($announcements)) : + echo "<h2>Announcements</h2>\n"; + echo $announcements; + endif; + ?> + <h2>Recent News</h2> - <?php echo $announcements; ?> <ul> <?php $i = 0;

« previous php.webmaster (#13717) next »