[Gnucash-changes] r14418 - htdocs/branches/beta/externals - url-based alternate styles

Joshua Sled jsled at cvs.gnucash.org
Fri Jun 23 21:26:27 EDT 2006


Author: jsled
Date: 2006-06-23 21:26:26 -0400 (Fri, 23 Jun 2006)
New Revision: 14418
Trac: http://svn.gnucash.org/trac/changeset/14418

Modified:
   htdocs/branches/beta/externals/header.phtml
Log:
url-based alternate styles

Modified: htdocs/branches/beta/externals/header.phtml
===================================================================
--- htdocs/branches/beta/externals/header.phtml	2006-06-24 01:03:35 UTC (rev 14417)
+++ htdocs/branches/beta/externals/header.phtml	2006-06-24 01:26:26 UTC (rev 14418)
@@ -2,11 +2,11 @@
 <html>
 <head>
 
-<link rel="stylesheet" href="<?=$top_dir?>/externals/gnucash.css" type="text/css" />
-<link rel="alternate stylesheet" href="<?=$top_dir?>/externals/option0.css" type="text/css" title="simplicity" />
-<link rel="alternate stylesheet" href="<?=$top_dir?>/externals/option0-a.css" type="text/css" title="simplicity and links" />
-<link rel="alternate stylesheet" href="<?=$top_dir?>/externals/option1.css" type="text/css" title="lighter" />
-<link rel="alternate stylesheet" href="<?=$top_dir?>/externals/option2.css" type="text/css" title="newsitem sync" />
+<link rel="<?= (isset($_GET['style'])) ? "alternate " : ""?>stylesheet" href="<?=$top_dir?>/externals/gnucash.css" type="text/css" />
+<link rel="<?= ($_GET['style'] == '0') ? "" : "alternate "?>stylesheet" href="<?=$top_dir?>/externals/option0.css" type="text/css" title="simplicity" />
+<link rel="<?= ($_GET['style'] == '0-a') ? "" : "alternate "?>stylesheet" href="<?=$top_dir?>/externals/option0-a.css" type="text/css" title="simplicity and links" />
+<link rel="<?= ($_GET['style'] == '1') ? "" : "alternate "?>stylesheet" href="<?=$top_dir?>/externals/option1.css" type="text/css" title="lighter" />
+<link rel="<?= ($_GET['style'] == '2') ? "" : "alternate "?>stylesheet" href="<?=$top_dir?>/externals/option2.css" type="text/css" title="newsitem sync" />
 
 
 <link rel="icon" href="<?=$top_dir?>/favicon.ico" type="image/x-icon" />



More information about the gnucash-changes mailing list