From d5347f0ff14860e99ffffabe8fb593f1c76c74b7 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 9 Mar 2012 21:40:57 +0000 Subject: [PATCH] - web: allow a project to specify 2 stylesheets svn path=/trunk/boinc/; revision=25398 --- checkin_notes | 9 +++++++++ html/inc/util.inc | 11 +++++++++++ html/project.sample/project.inc | 1 + 3 files changed, 21 insertions(+) diff --git a/checkin_notes b/checkin_notes index 39ceb5f124..0e55340eef 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2509,3 +2509,12 @@ Rom 9 Mar 2012 samples/vboxwrapper/ vbox.cpp + +David 9 Mar 2012 + - web: allow a project to specify 2 stylesheets + + html/ + inc/ + util.inc + project.sample/ + project.inc diff --git a/html/inc/util.inc b/html/inc/util.inc index ae31635bbe..e2276b8671 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -137,6 +137,12 @@ function page_head( $stylesheet = URL_BASE.STYLESHEET; $rssname = PROJECT . " RSS 2.0"; $rsslink = URL_BASE."rss_main.php"; + if (defined('STYLESHEET2')) { + $stylesheet2 = URL_BASE.STYLESHEET2; + } else { + $stylesheet2 = null; + } + header("Content-type: text/html; charset=utf-8"); if (!$caching) { @@ -159,6 +165,11 @@ function page_head( } echo " + "; + if ($stylesheet2) { + echo "\n"; + } + echo " "; diff --git a/html/project.sample/project.inc b/html/project.sample/project.inc index 511570a9fe..be9ef5195b 100644 --- a/html/project.sample/project.inc +++ b/html/project.sample/project.inc @@ -17,6 +17,7 @@ define("PROFILE_PATH", "../user_profile/"); define("PROFILE_URL", "user_profile/"); define("LANGUAGE_FILE", "languages.txt"); define("STYLESHEET", "white.css"); +//define("STYLESHEET2", "xxx.css"); define("FORUM_QA_MERGED_MODE", false); // Set to true to merge Message boards and Q&A section define("COPYRIGHT_HOLDER", "REPLACE WITH COPYRIGHT HOLDER"); define("SYS_ADMIN_EMAIL", "admin@$master_url");