[Xfce4-commits] <www:nick/gettext> Empty frontpage.

Nick Schermer noreply at xfce.org
Sat Dec 18 22:32:02 CET 2010


Updating branch refs/heads/nick/gettext
         to 65c94ad23ac593154a1fcecb216bc4b2a02ad052 (commit)
       from ce1966bd62c9f31448e8892c60efd341c34a2991 (commit)

commit 65c94ad23ac593154a1fcecb216bc4b2a02ad052
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Dec 18 21:51:07 2010 +0100

    Empty frontpage.

 lib/blog.php        |   50 ----------------------------
 pages/404.php       |    4 ++-
 pages/frontpage.php |   53 ++----------------------------
 pages/header.php    |    2 +-
 style/home.css      |   89 ---------------------------------------------------
 5 files changed, 8 insertions(+), 190 deletions(-)

diff --git a/lib/blog.php b/lib/blog.php
deleted file mode 100644
index ba7452c..0000000
--- a/lib/blog.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-  function parseRSS($url) {
-
-  $feedeed = implode('', file($url));
-  $parser = xml_parser_create();
-  xml_parse_into_struct($parser, $feedeed, $valueals, $index);
-  xml_parser_free($parser);
-
-  foreach($valueals as $keyey => $valueal)
-    {
-      if($valueal['type'] != 'cdata')
-        {
-          $item[$keyey] = $valueal;
-        }
-      }
-
-      $i = 0;
-
-      foreach($item as $key => $value)
-        {
-          if($value['type'] == 'open')
-            {
-              $i++;
-              $itemame[$i] = $value['tag'];
-            }
-          elseif($value['type'] == 'close')
-            {
-              $feed = $values[$i];
-              $item = $itemame[$i];
-              $i--;
-
-              if(isset ($values[$i]) && count($values[$i])>1)
-                {
-                  $values[$i][$item][] = $feed;
-                }
-              else
-                {
-                  $values[$i][$item] = $feed;
-                }
-            }
-          else
-            {
-              if (isset ($value['value']))
-                $values[$i][$value['tag']] = $value['value'];
-            }
-        }
-        return $values[0];
-  }
-
-?>
diff --git a/pages/404.php b/pages/404.php
index 2708db7..564103d 100644
--- a/pages/404.php
+++ b/pages/404.php
@@ -1,4 +1,6 @@
-<h1><?php E_('Page not found') ?></h1>
+<?php $head['title'] = R_('Page not found'); ?>
+
+<h1><?php echo $head['title'] ?></h1>
 
 <h3><?php E_('We\'re sorry, the page or file you requested was not found on this server.') ?></h3>
 <p>
diff --git a/pages/frontpage.php b/pages/frontpage.php
index 86f7789..8c3c2b0 100644
--- a/pages/frontpage.php
+++ b/pages/frontpage.php
@@ -1,53 +1,8 @@
 <?php
-  $head['description'] = 'Xfce Desktop Environment';
-  $head['keywords'] = 'desktop environment, window manager, desktop, speed, lightweight, gtk+, open source, xforms common environment';
-  $head['stylesheet'] = array ('/style/home.css');
-?>
-
-<?php include("lib/blog.php") ?>
-
-<div id="download">
-
-  <div id="button">
-    <a href="/download/"><?php E_("Download Xfce") ?></a>
-  </div>
-
-  <p><a href="">Changelogs</a> | <a href="">Tour</a></p>
-
-</div>
-
-<div id="quote">
-
-  <h2><?php E_("What is Xfce?") ?></h2>
-
-  <blockquote><?php E_("Xfce is a lightweight desktop environment for various *NIX systems. Designed for productivity, it loads and executes applications fast, while conserving system resources.") ?></blockquote>
-  <span><?php E_("Olivier Fourdan, creator of Xfce") ?></span>
 
-  <p>
-    <?php E_("Xfce embodies the traditional UNIX philosophy of modularity and re-usability. It consists of a number of components that together provide the full functionality of the desktop environment. They are packaged separately and you can pick and choose from the available packages to create the best personal working environment.") ?>
-  </p>
+$head['description'] = 'Xfce Desktop Environment';
+$head['keywords'] = 'desktop environment, window manager, desktop, speed, lightweight, gtk+, open source, xforms common environment';
+$head['stylesheet'] = array ('/style/home.css');
 
-</div>
 
-<div id="blog">
-
-  <h2><?php E_("Developers blog") ?></h2>
-
-  <?php
-
-    $xml = parseRSS("http://blog.xfce.org/feed/");
-    $i = 0;
-
-    foreach($xml['RSS']['CHANNEL']['ITEM'] as $item) {
-      if ($i > 3)
-        break;
-
-      echo ("<p class=\"info\">" . $item['DC:CREATOR'] . " @ " . substr ($item['PUBDATE'], 5, 11) . "</p>\n");
-      echo ("<p class=\"title\"><a href=\"{$item['LINK']}\" class=\"external\">{$item['TITLE']}</a></p>\n");
-
-      $i++;
-    }
-
-  ?>
-
-</div>
+?>
diff --git a/pages/header.php b/pages/header.php
index 8ababed..0127792 100644
--- a/pages/header.php
+++ b/pages/header.php
@@ -3,7 +3,7 @@
 if (isset ($head['title']))
 	$title = $head['title'].' - Xfce';
 else
-	$title = 'Xfce';
+	$title = R_('Xfce Desktop Environment');
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
diff --git a/style/home.css b/style/home.css
index 3c0efd8..8b13789 100644
--- a/style/home.css
+++ b/style/home.css
@@ -1,90 +1 @@
-#page-contents {
-	margin-right: 0;
-}
 
-/* Fourdan quote style */
-
-#quote {
-  margin-right: 30px;
-}
-
-#quote blockquote {
-  font: 1.5em Georgia,"Trebuchet MS",Verdana,"Lucida Grande",Tahoma,Helvetica,Sans-Serif;
-  width: 500px;
-  margin: 10px 0 0 44px;
-  padding: 5px 0 0;
-  text-align: justify;
-  color: #ADADAD
-}
-
-#quote span {
-  color:#333;
-  font-size:0.9em;
-  font-weight: bold;
-  margin-left:3em;
-  white-space:nowrap;
-}
-
-/* Download style */
-
-#download {
-  width: 300px;
-  float: right;
-  margin: 100px 0 0 100px;
-}
-
-#download #button {
-  color: white;
-  height: 188px;
-  font-weight: bold;
-  font-size: 2em;
-  background: black no-repeat;
-}
-
-#download #button:hover {
-  background: black no-repeat;
-}
-
-#download #button a {
-  display: block;
-  width: 300px;
-  height: 188px;
-  color: white;
-  padding: 120px 0 0 60px;
-}
-
-#download #button a:hover {
-  color: white;
-}
-
-#download p {
-  text-align: right;
-  margin: 2px;
-}
-
-/* Blog post style */
-
-#blog {
-  -webkit-border-radius: 10px;
-  -moz-border-radius: 10px;
-  border-radius: 10px;
-  width: 30%;
-  clear: both;
-}
-
-#blog .info {
-  color: grey;
-  font-variant: italic;
-  font-size: 80%;
-  margin:  10px 0 0 0;
-  line-height: 1em;
-}
-
-#blog .title {
-  margin: 3px 0 0 0;
-  line-height: 1em;
-}
-
-#blog h2 {
-  margin-bottom: 5px;
-}



More information about the Xfce4-commits mailing list