Added: web/php/trunk/images/home-sprites.png =================================================================== (Binary files differ) Property changes on: web/php/trunk/images/home-sprites.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: web/php/trunk/include/footer.inc =================================================================== --- web/php/trunk/include/footer.inc 2011-07-07 06:08:39 UTC (rev 313039) +++ web/php/trunk/include/footer.inc 2011-07-07 07:13:56 UTC (rev 313040) @@ -1,18 +1,20 @@ - + Modified: web/php/trunk/include/header.inc =================================================================== --- web/php/trunk/include/header.inc 2011-07-07 06:08:39 UTC (rev 313039) +++ web/php/trunk/include/header.inc 2011-07-07 07:13:56 UTC (rev 313040) @@ -214,6 +214,16 @@ +
"; + foreach ($elephpants as $image) { + print ""; + } + print "
"; +} +?> +
"; foreach (print_news($NEWS_ENTRIES, "frontpage", 5, null, true) as $entry) { $news .= <<< EOT @@ -58,121 +59,112 @@ $news .= ""; $news .= '

News Archive

'; -$MIRROR_IMAGE = ''; -// Try to find a sponsor image in case this is an official mirror -if (is_official_mirror()) { +// Prepare sidebar. +$sidebar = <<< EOT +
+

Recent News

+ - // Iterate through possible mirror provider logo types in priority order - $types = array("gif", "jpg", "png"); - while (list(,$ext) = each($types)) { +

Conferences

+ - // Check if file exists for this type - if (file_exists("backend/mirror." . $ext)) { +

User Group Events

+ - // Add text to rigth sidebar - $MIRROR_IMAGE = "

This mirror sponsored by:

\n"; - - // Create image HTML code - $img = make_image( - 'mirror.' . $ext, - htmlspecialchars(mirror_provider()), - FALSE, - FALSE, - 'backend', - 0 - ); - - // Add size information depending on mirror type - if (is_primary_site() || is_backup_primary()) { - $img = resize_image($img, 125, 125); - } else { - $img = resize_image($img, 120, 60); - } - - // End mirror specific part - $MIRROR_IMAGE .= '' . - $img . "
\n"; - - // We have found an image - break; - } - } -} - -$confs = ""; -if (is_array($CONF_TEASER) && count($CONF_TEASER)) { - $categories = array("conference" => "Upcoming conferences", "cfp" => "Calling for papers"); - foreach($CONF_TEASER as $k => $a) { - if (is_array($a) && count($a)) { - $confs .= "

" .$categories[$k]."

"; - } // if set - } -} - -/* {{{ Generate latest release info */ -/* Do we have any release candidates to brag about? */ -$RCS = array( - $PHP_5_4_RC => $PHP_5_4_RC_DATE, - $PHP_5_3_RC => $PHP_5_3_RC_DATE, -); -$rel = $rc = ""; -if (isset($RCS)) { - foreach ((array)$RCS as $r => $d) { - if ($r) { - $rc .= '
  • ' . "$r ($d)
  • \n"; - } - } -} - -if (!empty($rc)) { - $rel .= <<< EOT -

    Release Candidates

    -
      -$rc -
    +

    Thanks To

    + +
    EOT; -} -$thanks = <<< EOT -

    Thanks To

    - -EOT; -/* }}} */ -// This goes to the left sidebar of the front page -$SIDEBAR_DATA = ' -

    Recent news

    -' . $news . ' -' . $MIRROR_IMAGE . ' -' . $rel . ' -' . $confs . ' -' . $thanks . ' -'; +// Prepare announcements. +$announcements = " +
    +Upcoming conferences: PHP North West, 2011 +
    +"; +// Prepare featured content. +$features = " + +"; +// Wrap announcements and features in a content element +$content = " +
    + $announcements + $features +
    +"; // Write out common header site_header("Hypertext Preprocessor", @@ -201,16 +193,15 @@ ), ), + 'elephpants' => true ) ); +// Print body of home page. +print $sidebar; +print $content; - -?> - - - "/feed.atom") // Add a link to the feed at the bottom ); - Modified: web/php/trunk/styles/home.css =================================================================== --- web/php/trunk/styles/home.css 2011-07-07 06:08:39 UTC (rev 313039) +++ web/php/trunk/styles/home.css 2011-07-07 07:13:56 UTC (rev 313040) @@ -162,21 +162,113 @@ -webkit-border-radius: 5px; } -#confTeaser { - margin-right: 340px; - border: 1px solid #c3add9; - padding: 12px; +/* Main content area */ + +div.home-content { + width: 650px; + padding-top: 5px; } -#confTeaser td { - display: block; +/* Announcement Area */ + +.home .announcements { + width: 600px; + border: 1px solid #aaa; + background-color: #dfd; + border-radius: 5px; + padding: 15px; + text-align: center; + font-family: arial; + margin: 0 auto; } -#confTeaser td:first-child { - font-weight: bold; +/* 2x2 Featured Content Grid */ + +div.featured-content { + margin: 30px 0 30px 0; } -.fat-border { - border-top: 10px solid #C3ADD9; - margin-top: 30px; +div.featured-content div.feature { + float: left; + width: 270px; + text-align: center; + padding: 10px 20px 20px 20px; } + +div.featured-content div.top-left, +div.featured-content div.top-right { + padding-top: 0; +} + +div.featured-content div.top-left { + border-right: 1px solid #c3add9; +} + +div.featured-content div.bottom-left { + border-right: 1px solid #c3add9; +} + +div.featured-content div.separator { + float: left; + width: 630px; + margin-left: 10px; + border-top: 1px solid #c3add9; +} + +div.featured-content span.graphic { + display: inline-block; + width: 128px; + height: 128px; + background-image: url('../images/home-sprites.png'); +} + +div.featured-content div.top-left span.graphic { + background-position: 0 0; +} + +div.featured-content div.top-right span.graphic { + background-position: 0px -129px; +} + +div.featured-content div.bottom-left span.graphic { + background-position: 0px -258px; +} + +div.featured-content div.bottom-right span.graphic { + background-position: 0px -399px; +} + +div.featured-content div.feature h2 { + line-height: 1; + padding-bottom: .5em; +} + +div.featured-content p { + font-size: 1.1em; +} + +/* Right-hand sidebar */ + +div.home-sidebar { + float: right; + width: 250px; + padding: 5px 30px 20px 30px; + margin: 0 0 20px 20px; +} + +div.home-sidebar h2 { + border-top: 6px solid #c3add9; + font-size: 1.5em; + line-height: 100%; + padding: 5px 0 10px 0; + font-weight: normal; +} + +div.home-sidebar h2:first-child { + margin-top: 0; +} + +div.home-sidebar ul { + margin: 0 0 30px 0; + padding: 0; +} \ No newline at end of file Modified: web/php/trunk/styles/theme.css =================================================================== --- web/php/trunk/styles/theme.css 2011-07-07 06:08:39 UTC (rev 313039) +++ web/php/trunk/styles/theme.css 2011-07-07 07:13:56 UTC (rev 313040) @@ -472,6 +472,23 @@ display: block; } +/* Footer styling */ + +footer { + clear: both; + overflow: auto; + background-color: #333; + border-top: 12px solid #c3add9; + border-bottom: 12px solid #c3add9; + padding: 1.5em 0; + margin-bottom: 2em; +} + +footer .footer-content { + width: 960px; + margin: 0 auto; +} + footer .footmenu { float: right; } @@ -482,19 +499,34 @@ display: inline; } -footer { - clear: both; - border-top: 3px solid #c3add9; - padding-top: 5px; -} - footer a { - color: #444; - border-color: #987db3; - font-weight: bold; + color: #ccc; margin: 0 8px; } -footer a:hover { - color: #000; +footer a:hover, +footer a:link, +footer a:visited { + color: #ccc; } + + +/* Elephpant photo stream */ + +div.elephpants { + margin: auto; + overflow: hidden; + border-bottom: 12px solid #c3add9; +} + +div.elephpants div.images { + height: 75px; + width: 3000px; + position: relative; + left: -1%; +} + +div.elephpants img { + width: 75px; + height: 75px; +} \ No newline at end of file