mirror of https://github.com/BOINC/boinc.git
- web: allow a project to specify 2 stylesheets
svn path=/trunk/boinc/; revision=25398
This commit is contained in:
parent
f2f9ec8dc3
commit
d5347f0ff1
|
@ -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
|
||||
|
|
|
@ -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 "<link rel=stylesheet type=\"text/css\" href=\"".URL_BASE."main.css\" media=\"all\">
|
||||
<link rel=stylesheet type=\"text/css\" href=\"$stylesheet\">
|
||||
";
|
||||
if ($stylesheet2) {
|
||||
echo "<link rel=stylesheet type=\"text/css\" href=\"$stylesheet2\">\n";
|
||||
}
|
||||
echo "
|
||||
<link rel=alternate type=\"application/rss+xml\" title=\"$rssname\" href=\"$rsslink\">
|
||||
</head>
|
||||
";
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue