cvs: phpweb /include layout.inc
| From: | Gabor Hojtsy | Date: | Thu, 07 Aug 2003 12:36:33 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-19869@lists.php.net to get a copy of this message | ||
goba Thu Aug 7 08:36:33 2003 EDT
Modified files:
/phpweb/include layout.inc
Log:
Fix page title, and make the explicit language input field placed
more finely in the HTML output
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.174 phpweb/include/layout.inc:1.175
--- phpweb/include/layout.inc:1.174 Thu Aug 7 05:30:05 2003
+++ phpweb/include/layout.inc Thu Aug 7 08:36:33 2003
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.174 2003/08/07 09:30:05 goba Exp $ */
+/* $Id: layout.inc,v 1.175 2003/08/07 12:36:33 goba Exp $ */
// Set the static content root differently on php.net
$_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ?
@@ -55,7 +55,7 @@
if (!empty($title)) { $title = ": $title"; }
if (empty($onload)) { $onload = "searchHistory(); tocImages();"; }
if (isset($EXPL_LANG)) {
- $lang_input = '<input type="hidden" name="lang"
value="'. $EXPL_LANG . '" />';
+ $lang_input = "\n <input type=\"hidden\" name=\"lang\"
value=\"$EXPL_LANG\" />";
} else { $lang_input = ''; }
print <<<END_HEADER
@@ -63,13 +63,14 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
- <title>PHP.net{$title}</title>
+ <title>PHP{$title}</title>
<style type="text/css">@import
url("{$_SERVER['STATIC_ROOT']}/sitewide.css");</style>
<link rel="shortcut icon"
href="{$_SERVER['STATIC_ROOT']}/favicon.ico" />
<script type="text/javascript"
src="{$_SERVER['STATIC_ROOT']}/userprefs.js"></script>
<base href="{$_SERVER['BASE_HREF']}" />
</head>
<body onload="{$onload}">
+
<div id="headnav">
<a href="/"><img
src="{$_SERVER['STATIC_ROOT']}/images/php.gif"
alt="PHP" width="120" height="67" /></a>
@@ -105,8 +106,7 @@
</select>
<input type="image"
src="{$_SERVER['STATIC_ROOT']}/images/small_submit_white.gif"
- class="submit" alt="search" />
- {$lang_input}
+ class="submit" alt="search" />{$lang_input}
</p>
</form>
</div>