com web/php: Moved announcements to sidebar and changed its color to blue/purple.: index-beta.php styles/home.css views/homepage/sidebar.php

From: Date: Mon, 18 Jun 2012 16:07:50 +0000
Subject: com web/php: Moved announcements to sidebar and changed its color to blue/purple.: index-beta.php styles/home.css views/homepage/sidebar.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13711@lists.php.net to get a copy of this message
Commit: 80abc4a2aeabc29ba879fc1f9ecb15f6d362b403 Author: Levi Morrison <levim@php.net> Mon, 18 Jun 2012 10:07:50 -0600 Parents: 79b0b9259f7290b1dacbf6d3b2544cd341fb649f Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=80abc4a2aeabc29ba879fc1f9ecb15f6d362b403 Log: Moved announcements to sidebar and changed its color to blue/purple. Changed paths: M index-beta.php M styles/home.css M views/homepage/sidebar.php Diff: diff --git a/index-beta.php b/index-beta.php index 5a2d2d0..2c5fbbd 100644 --- a/index-beta.php +++ b/index-beta.php @@ -128,7 +128,6 @@ $features = " // Wrap announcements and features in a content element $content = " <div class='home-content'> - $announcements $features </div> "; @@ -165,7 +164,10 @@ site_header("Hypertext Preprocessor", ); // Print body of home page. -print_view('homepage/sidebar.php', array('news' => $NEWS_ENTRIES)); +print_view('homepage/sidebar.php', array( + 'news' => $NEWS_ENTRIES, + 'announcements' => $announcements +)); print $content; // Print the common footer. diff --git a/styles/home.css b/styles/home.css index 352fef9..bbf7532 100644 --- a/styles/home.css +++ b/styles/home.css @@ -185,27 +185,17 @@ div.home-content { .home .announcements { display: table; - width: 598px; - border: 1px solid #aaa; - background-color: #e5f7da; - border-radius: 5px; + width: 100%; + border: 1px solid #99c; + background-color: #bfbfff; padding: 15px; text-align: center; - margin: 0 auto; + margin: 0 auto .25em; font-size: 1.2em; list-style: none; } -.home .announcements > li { - display: table-row; -} - -.home .announcements .category, .home .announcements ul { - display: table-cell; -} - .home .announcements .category { - text-align: right; padding: 1em 0.5em 0; } @@ -222,10 +212,6 @@ div.home-content { /* 2x2 Featured Content Grid */ -div.featured-content { - margin: 30px 0 30px 0; -} - div.featured-content div.feature { float: left; width: 270px; diff --git a/views/homepage/sidebar.php b/views/homepage/sidebar.php index 913e262..19138b6 100644 --- a/views/homepage/sidebar.php +++ b/views/homepage/sidebar.php @@ -1,6 +1,7 @@ <div class=home-sidebar> <h2>Recent News</h2> + <?php echo $announcements; ?> <ul> <?php $i = 0;

« previous php.webmaster (#13711) next »