diff --git a/include/layout.inc b/include/layout.inc index bff64b5dd..85ea926cb 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -57,18 +57,6 @@ function make_image($file, $alt=false, $align=false, $extras=false, $dir=false, return $image; } -# set_style() -# Set the default style according to stylesheet -# - -function set_style($style) { - - if (isset($style)) { - setcookie("phpstyle", $style, time()+31449600, "", $HTTP_HOST); - } -} - - # print_image() # print an IMG tag for a given file # @@ -191,13 +179,12 @@ $enclosed = 0; function commonHeader($title="",$dont_enclose=0,$headers_gone=0) { global $MYSITE, $enclosed; global $SIDEBAR_DATA, $prevsearch; - global $phpstyle; ?> PHP<?php if ($title) echo ": $title";?> - "> +  
-
- Select Style:  - + + diff --git a/index.php b/index.php index f748d70c2..6dfa9b748 100644 --- a/index.php +++ b/index.php @@ -6,11 +6,6 @@ header("Cache-Control: public, max-age=600"); require_once 'prepend.inc'; -if (isset($setstyle)){ - set_style($setstyle); - header("Location: http://$HTTP_HOST/"); -} - $SIDEBAR_DATA = '

What is PHP?

diff --git a/styles/verdana.css b/style.css similarity index 98% rename from styles/verdana.css rename to style.css index 606f17ccd..b158d73ac 100644 --- a/styles/verdana.css +++ b/style.css @@ -1,11 +1,10 @@ body, ul, td, th { font-family: verdana,arial,helvetica,sans-serif; - font-size: 85%; + font-size: 95%; } p { font-family: verdana,arial,helvetica,sans-serif; - font-size: 85%; } em { @@ -29,7 +28,7 @@ acronym { } .sidebar { - font-size: 80%; + font-size: 85%; } .sidebar p { diff --git a/styles/arial.css b/styles/arial.css deleted file mode 100644 index 0e96d64ab..000000000 --- a/styles/arial.css +++ /dev/null @@ -1,120 +0,0 @@ -body, ul, td, th { - font-family: arial,helvetica,sans-serif; - font-size: 95%; -} - -p { - font-family: arial,helvetica,sans-serif; -} - -em { - font-weight: bold; - font-style: italic; -} - -acronym { - border-bottom: 1px dashed #00cc00; - cursor: help; -} - -.error { - color: #cc0000; -} - -.newsDate { - font-size: 85%; - font-style: italic; - color: #6666cc; -} - -.sidebar { - font-size: 80%; -} - -.sidebar p { - text-align: left !important; -} - -code, pre { - font-family: Courier, "Courier New", monospace; - font-size: 90%; -} - -pre.note { - font-size: 90%; /* font size of less than 90% is impossible to read */ -} - -h1 { - font-family: arial,helvetica,sans-serif; - font-size: 140%; - font-weight: bold; - color: #000066; -} - -h2 { - font-family: arial,helvetica,sans-serif; - font-size: 125%; - font-weight: bold; - color: #000066; -} - -h3 { - font-family: arial,helvetica,sans-serif; - font-size: 110%; - font-weight: bold; - color: #000066; -} - -h4 { - font-family: arial,helvetica,sans-serif; - font-size: 100%; - font-weight: bold; - color: #000066; -} - -small { - font-family: arial,helvetica,sans-serif; - font-size: 75%; -} - -a.small { - font-family: arial,helvetica,sans-serif; - font-size: 75%; - text-decoration: none; -} - -.tableTitle { - font-family: arial,helvetica,sans-serif; - font-weight: bold; -} - -.tableExtras { - font-family: arial,helvetica,sans-serif; - font-size: 85%; - color: #FFFFFF; -} - -input { - font-family: arial,helvetica,sans-serif; -} - -textarea { - font-family: arial,helvetica,sans-serif; -} - -input.small, select.small { - font-family: arial,helvetica,sans-serif; - font-size: 75%; -} - -textarea.small { - font-family: arial,helvetica,sans-serif; - font-size: 75%; -} - -p.formerror { - border: 1px solid #ff0000; - color: #000000; - background: #ffeeee; - padding: 2px 4px; -} diff --git a/styles/default.css b/styles/default.css deleted file mode 100644 index 55b5c92d8..000000000 --- a/styles/default.css +++ /dev/null @@ -1,96 +0,0 @@ -body, ul, td, th { - font-size: 85%; -} - -p { - font-size: 85%; -} - -em { - font-weight: bold; - font-style: italic; -} - -acronym { - border-bottom: 1px dashed #00cc00; - cursor: help; -} - -.error { - color: #cc0000; -} - -.newsDate { - font-size: 85%; - font-style: italic; - color: #6666cc; -} - -.sidebar { - font-size: 80%; -} - -.sidebar p { - text-align: left !important; -} - -code, pre { - font-size: 90%; -} - -pre.note { - font-size: 90%; /* font size of less than 90% is impossible to read */ -} - -h1 { - font-size: 140%; - font-weight: bold; - color: #000066; -} - -h2 { - font-size: 125%; - font-weight: bold; - color: #000066; -} - -h3 { - font-size: 110%; - font-weight: bold; - color: #000066; -} - -h4 { - font-size: 100%; - font-weight: bold; - color: #000066; -} - -small { - font-size: 75%; -} - -a.small { - font-size: 75%; - text-decoration: none; -} - -.tableTitle { - font-weight: bold; -} - -.tableExtras { - font-size: 85%; - color: #FFFFFF; -} - -textarea,small, input.small, select.small { - font-size: 75%; -} - -p.formerror { - border: 1px solid #ff0000; - color: #000000; - background: #ffeeee; - padding: 2px 4px; -}