[phpcvsview-cvs-updates] phpcvsview/Themes/Default theme.css,1.7,1.8 theme.php,1.7,1.8
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Brian C. <bch...@us...> - 2005-01-22 13:58:29
|
Update of /cvsroot/phpcvsview/phpcvsview/Themes/Default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28846/Themes/Default Modified Files: theme.css theme.php Log Message: Added code to enable access to theme switching to the project. Still need to add code to set a cookie on the client machine. Index: theme.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** theme.php 22 Dec 2004 11:06:00 -0000 1.7 --- theme.php 22 Jan 2005 13:58:20 -0000 1.8 *************** *** 11,36 **** * @copyright 2003-2004 Brian A Cheeseman **/ ! $FolderIcon = "Themes/Default/Images/folder.png"; ! $FileIcon = "Themes/Default/Images/file.png"; ! $ParentIcon = "Themes/Default/Images/parent.png"; ! $ModuleIcon = "Themes/Default/Images/module.png"; function GetPageHeader($Title="", $Heading="") { ! global $StartTime; $StartTime = microtime(); $PageHead = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; ! $PageHead .= "<html>"; if ($Title != "") { ! $PageHead .= "<head><title>$Title</title>"; ! $PageHead .= "<link href=\"Themes/Default/theme.css\" rel=\"stylesheet\" type=\"text/css\" />"; ! $PageHead .= "</head>"; } ! $PageHead .= "<body>"; if ($Heading != "") { $PageHead .= "<div class=\"title\">$Heading</div>"; } - $PageHead .= "<p>Welcome to the CVS Repository viewing system for the phpCVSView project "; $PageHead .= "hosted at SourceForge.net</p><p>The goal of this project is simply to "; --- 11,38 ---- * @copyright 2003-2004 Brian A Cheeseman **/ + + //global $ThemeName; ! $FolderIcon = "Themes/".$ThemeName."/Images/folder.png"; ! $FileIcon = "Themes/".$ThemeName."/Images/file.png"; ! $ParentIcon = "Themes/".$ThemeName."/Images/parent.png"; ! $ModuleIcon = "Themes/".$ThemeName."/Images/module.png"; function GetPageHeader($Title="", $Heading="") { ! global $StartTime, $ThemeName; $StartTime = microtime(); $PageHead = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; ! $PageHead .= "<html><head>"; if ($Title != "") { ! $PageHead .= "<title>$Title</title>"; } ! $PageHead .= "<link href=\"Themes/".$ThemeName."/theme.css\" rel=\"stylesheet\" type=\"text/css\" />"; ! // Add JavaScript to postback the change in theme selection. ! $PageHead .= "<script src=\"./phpcvsview.js\"></script>"; ! $PageHead .= "</head>"; $PageHead .= "<body>"; if ($Heading != "") { $PageHead .= "<div class=\"title\">$Heading</div>"; } $PageHead .= "<p>Welcome to the CVS Repository viewing system for the phpCVSView project "; $PageHead .= "hosted at SourceForge.net</p><p>The goal of this project is simply to "; *************** *** 44,53 **** $PageHead .= "wonderful products available.</p><p>Kindest Regards,<br />Brian Cheeseman."; $PageHead .= "<br />phpCVSView Project Leader.</p>"; ! ! // $PageHead .= "<p>Welcome to our CVS Repository viewer. This page has been dynamically"; ! // $PageHead .= " created with '<a href=\"http://phpcvsview.sourceforge.net/\">phpCVS"; ! // $PageHead .= "Viewer</a>' created by <a href=\"mailto:bch...@us..."; ! // $PageHead .= "\">Brian Cheeseman</a> and <a href=\"mailto:si...@us...\">"; ! // $PageHead .= "Sijis Aviles</a>.</p><p>Please feel free to browse our source code.</p>"; return $PageHead; } --- 46,76 ---- $PageHead .= "wonderful products available.</p><p>Kindest Regards,<br />Brian Cheeseman."; $PageHead .= "<br />phpCVSView Project Leader.</p>"; ! $PageHead .= "<form class=\"themechanger\">Change Theme: <select name=\"ThemeSelect\" class=\"themechanger\" onchange=\"postBackThemeChange(this.form)\">"; ! foreach (GetThemeList() as $key=>$value) ! { ! $PageHead .= "<option value=\"$value\""; ! if ($value == $ThemeName) { ! $PageHead .= " selected"; ! } ! $PageHead .= ">$value</option>"; ! } ! $PageHead .= "</select>"; ! $PageHead .= "<input type=\"hidden\" name=\"URLRequest\" value=\"".$env['script_name'].""; ! $first = true; ! foreach ($_GET as $key=>$value) ! { ! if ($key != "tm") { ! if ($first != true) { ! $PageHead .= "&"; ! } ! else ! { ! $PageHead .= "?"; ! } ! $first = false; ! $PageHead .= $key."=".$value; ! } ! } ! $PageHead .= "\"></form>"; return $PageHead; } Index: theme.css =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/Themes/Default/theme.css,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** theme.css 22 Dec 2004 11:05:59 -0000 1.7 --- theme.css 22 Jan 2005 13:58:20 -0000 1.8 *************** *** 48,51 **** --- 48,58 ---- font-weight: bold; } + .themechanger + { + font-size: 8pt; + text-align: left; + padding: 0px; + margin: 0px; + } .title { *************** *** 88,177 **** font-weight: normal; } - - /* - .geshi .de1, - .geshi .de2 - { - font-family: 'Courier New', Courier, monospace; - font-size: 12px; - font-weight: normal; - } - - .geshi .imp - { - font-weight: bold; - color: red; - } - - .geshi .kw1 - { - color: #b1b100; - } - - .geshi .kw2 - { - color: #000000; - font-weight: bold; - } - - .geshi .kw3 - { - color: #6666cc; - } - - .geshi .co1 - { - color: #808080; - font-style: italic; - } - - .geshi .co2 - { - color: #808080; - font-style: italic; - } - - .geshi .coMULTI - { - color: #808080; - font-style: italic; - } - - .geshi .es0 - { - color: #000099; - font-weight: bold; - } - - .geshi .br0 - { - color: #66cc66; - } - - .geshi .st0 - { - color: #ff0000; - } - - .geshi .nu0 - { - color: #cc66cc; - } - - .geshi .me1 - { - color: #006600; - } - - .geshi .me2 - { - color: #006600; - } - - .geshi .re0 - { - color: #0000ff; - } - - - */ \ No newline at end of file --- 95,96 ---- |