[Gnucash-changes] r12894 - htdocs/trunk/externals - exporting new variables and added new CSS

Neil Williams codehelp at cvs.gnucash.org
Thu Jan 19 12:11:12 EST 2006


Author: codehelp
Date: 2006-01-19 12:11:11 -0500 (Thu, 19 Jan 2006)
New Revision: 12894
Trac: http://svn.gnucash.org/trac/changeset/12894

Modified:
   htdocs/trunk/externals/en/header.phtml
   htdocs/trunk/externals/en/menu-help.phtml
   htdocs/trunk/externals/en/menu-main-help.phtml
   htdocs/trunk/externals/en/menu-other.phtml
   htdocs/trunk/externals/gnucash.css
Log:
exporting new variables and added new CSS

Modified: htdocs/trunk/externals/en/header.phtml
===================================================================
--- htdocs/trunk/externals/en/header.phtml	2006-01-19 17:10:40 UTC (rev 12893)
+++ htdocs/trunk/externals/en/header.phtml	2006-01-19 17:11:11 UTC (rev 12894)
@@ -1,32 +1,39 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
 <html>
 <head>
-<link rel="stylesheet" href="/externals/gnucash.css" type="text/css">
-<link rel="icon" href="favicon.ico" type="image/x-icon">
-<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
+<?php echo "<link rel=\"stylesheet\" href=\"".$topdir."externals/gnucash.css\"";
+echo" type=\"text/css\">\n"; 
+echo "<link rel=\"icon\" href=\"".$topdir."favicon.ico\" type=\"image/x-icon\">\n";
+echo "<link rel=\"shortcut icon\" href=\"".$topdir."favicon.ico\" type=\"image/x-icon\">\n";
+?>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-
-<!-- Hmm, I think the RSS should go only on the home page, not on all the pages ... -->
+<style type="text/css">
+#news LI	{
+<?php echo "list-style-image:url(".$topdir."images/webding.png);\n"; ?>
+}
+</style>
+<?php if (isset($homepage)) { ?>
+<!-- the RSS only appears on the home page, not on all pages. -->
 <link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.gnucash.org/en/rss-feed.phtml">
+<?php } ?>
 <title>GnuCash - <?php echo $title; ?></title>
 </head>
 
 <body>
 <div id="head">
-<img src="/images/gnucash_logo1.png" alt="GnuCash Logo" id="gnclogo">
+<?php echo "<img src=\"".$topdir."images/gnucash_logo1.png\" ";
+echo "alt=\"GnuCash Logo\" id=\"gnclogo\">\n"; ?>
 <br/>
 <span id="language">
  Language:
 <b>English</b>
-<!-- <a class="nav" href="/fr-y-le-ny-old/">Fran&ccedil;ais</a> -->
-| <a class="nav" href="/fr/">Fran&ccedil;ais</a>
+| <a class="nav" href="<?php echo $home;?>/fr/">Fran&ccedil;ais</a>
 | <a class="nav" href="http://www.hthoma.de/projekte/gnucash/index.html">Deutsch</a>
- (<a class="nav" href="/de/">mirror</a>)
-| <a class="nav" href="/nl/">Nederlands</a>
-| <a class="nav" href="/pt_PT/">Portugu&ecirc;s</a>
+ (<a class="nav" href="<?php echo $home;?>/de/">mirror</a>)
+| <a class="nav" href="<?php echo $home;?>/nl/">Nederlands</a>
+| <a class="nav" href="<?php echo $home;?>/pt_PT/">Portugu&ecirc;s</a>
 </span>
 <span id="location">Continent:
- <!-- (<a class="nav" href="http://gnucash.planetmirror.com/">AU mirror</a>) -->
  (<a class="nav" href="http://www.gnucash.org/">US</a>)
  (<a class="nav" href="http://www.at.gnucash.org/">EU</a>)
  (<a class="nav" href="http://www.au.gnucash.org/">AU</a>)

Modified: htdocs/trunk/externals/en/menu-help.phtml
===================================================================
--- htdocs/trunk/externals/en/menu-help.phtml	2006-01-19 17:10:40 UTC (rev 12893)
+++ htdocs/trunk/externals/en/menu-help.phtml	2006-01-19 17:11:11 UTC (rev 12894)
@@ -1,12 +1,12 @@
-<span class="linktop">
-<img class="dot" src="/images/webding.png" alt="marker">
-<b>Help</b></span>
-<ul><li><a href="/en/lists.phtml">Mailing Lists</a>
-<li style="list-style-image:none;list-style-type:none;"><ul><li>
-<a href="https://lists.gnucash.org/search/">Search</a>
-</li></ul></li>
 <?php
+echo "<span class=\"linktop\">\n";
+echo "<img class=\"dot\" src=\"$topdir/images/webding.png\" alt=\"marker\">\n";
+echo "<b>Help</b></span>\n";
+echo "<ul><li><a href=\"$home/en/lists.phtml\">Mailing Lists</a>\n";
+echo "<li style=\"list-style-image:none;list-style-type:none;\"><ul><li>\n";
+echo "<a href=\"https://lists.gnucash.org/search/\">Search</a>\n";
+echo "</li></ul></li>\n";
 echo "<li><a href=\"$home/en/bugs.phtml\">Bug Reports</a></li>\n";
 echo "<li><a href=\"$home/en/irc.phtml\">IRC (Chat)</a></li>\n";
+echo "</ul>\n";
 ?>
-</ul>

Modified: htdocs/trunk/externals/en/menu-main-help.phtml
===================================================================
--- htdocs/trunk/externals/en/menu-main-help.phtml	2006-01-19 17:10:40 UTC (rev 12893)
+++ htdocs/trunk/externals/en/menu-main-help.phtml	2006-01-19 17:11:11 UTC (rev 12894)
@@ -1,30 +1,23 @@
 <!-- MENU:START -->
 <?php if (!ini_get('register_globals')) {
- include("emulate_globals_on.php");
+ include("../emulate_globals_on.php");
 }
-$self = $_SERVER["HTTP_HOST"];
-if(ereg("lists.gnucash.org",$self)) {
-	$home = "http://www.gnucash.org";
-}
-else {
-$home = "";
-}
 
 echo "<div id=\"news\"><div class=\"othernews\">";
-include($GLOBALS['DOCUMENT_ROOT']."/externals/en/menu-general.phtml");
+include($toppath."/externals/en/menu-general.phtml");
 echo "</div>\n<div class=\"othernews\">\n";
-include($GLOBALS['DOCUMENT_ROOT']."/externals/en/menu-documentation.phtml");
+include($toppath."/externals/en/menu-documentation.phtml");
 # highlighted menu entry:
 echo "</div>\n<div class=\"highlight\">\n";
-include($GLOBALS['DOCUMENT_ROOT']."/externals/en/menu-help.phtml");
+include($toppath."/externals/en/menu-help.phtml");
 echo "</div>\n<div class=\"othernews\">\n";
-include($GLOBALS['DOCUMENT_ROOT']."/externals/en/menu-downloads.phtml");
+include($toppath."/externals/en/menu-downloads.phtml");
 echo "</div>\n<div class=\"othernews\">\n";
-include($GLOBALS['DOCUMENT_ROOT']."/externals/en/menu-developer.phtml");
+include($toppath."/externals/en/menu-developer.phtml");
 echo "</div>\n<div class=\"othernews\">\n";
-include($GLOBALS['DOCUMENT_ROOT']."/externals/en/menu-other.phtml");
+include($toppath."/externals/en/menu-other.phtml");
 echo "</div>\n<div class=\"othernews\">\n";
-include($GLOBALS['DOCUMENT_ROOT']."/externals/en/menu-search.phtml");
+include($toppath."/externals/en/menu-search.phtml");
 echo "</div>\n";
 echo "</div>\n";
 ?>

Modified: htdocs/trunk/externals/en/menu-other.phtml
===================================================================
--- htdocs/trunk/externals/en/menu-other.phtml	2006-01-19 17:10:40 UTC (rev 12893)
+++ htdocs/trunk/externals/en/menu-other.phtml	2006-01-19 17:11:11 UTC (rev 12894)
@@ -1,6 +1,6 @@
 <?php
 echo "<span class=\"linktop\">\n";
-echo "<img class=\"dot\" src=\"/images/webding.png\" alt=\"marker\">";
+echo "<img class=\"dot\" src=\"$topdir/images/webding.png\" alt=\"marker\">";
 echo "<b>Other Information</b>\n";
 echo "</span>\n";
 echo "<ul>\n";
@@ -11,6 +11,6 @@
 echo "<li><a href=\"$home/en/quiz-results.phtml\">Survey Results</a></li>\n";
 echo "<li><a href=\"$home/en/sizing.phtml\">Sizing</a></li>\n";
 echo "<li><a href=\"$home/en/rss-feed.phtml\">\n";
-echo "<img src=\"/images/rss.gif\" alt=\"rss logo\"></a></li>\n";
+echo "<img src=\"$topdir/images/rss.gif\" alt=\"rss logo\"></a></li>\n";
 echo "</ul>\n";
 ?>

Modified: htdocs/trunk/externals/gnucash.css
===================================================================
--- htdocs/trunk/externals/gnucash.css	2006-01-19 17:10:40 UTC (rev 12893)
+++ htdocs/trunk/externals/gnucash.css	2006-01-19 17:11:11 UTC (rev 12894)
@@ -30,9 +30,14 @@
     background-color:black;
 }
 .divider {
-    background-color:#ececff
+    background-color:#ececff;
 }
-
+TR {
+	background-color:white;
+}
+.tblbanner {
+	background-color:#cacaf7;
+}
 .featureplay {
     text-align:center;
 }
@@ -49,17 +54,17 @@
 #head a:link {
 	color:white;
 	background-color:transparent;
-	}
+}
 
 #head a:visited {
 	color:white;
 	background-color:transparent;
-	}
+}
 
 #head a:active {
 	color:white;
 	background-color:transparent;
-	}
+}
 #tail {
 	font-size:0.8em;
 	clear:both;
@@ -69,6 +74,21 @@
 	margin-left:0;
 	margin-right:0;
 }
+.tblborder {
+	border-style:ridge;
+	border-color:silver;
+	border-width:1px;
+	background-color:#666699;
+}
+.tblheader {
+	background-color:#666699;
+	color:white;
+}
+.tbllimit {
+	border-style:none;
+	background-color:#cacaf7;
+	width:100%;
+}
 #gnclogo {
 	border-style: none;
 	width: 179px;
@@ -100,14 +120,11 @@
 #content {
 	float:left;
 	width:65%;
-	margin-right: 2em;
-	padding-right: 1em;
+	margin-right:1em;
+	padding-right:1em;
 	margin-left:2em;
 	text-align:justify;
 }
-#news LI	{
-	list-style-image:url(/images/webding.png);
-}
 #location {
 	padding-left:0.3em;
 }
@@ -119,3 +136,7 @@
 	position:relative;
 	top:0.5em;
 }
+.history {
+	margin-bottom:2em;
+}
+



More information about the gnucash-changes mailing list