summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/head.inc
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-12 16:30:10 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-12 16:30:10 -0500
commit60571782bafad282cf7209670b031c368556c634 (patch)
treeb4dd8cc9000d41274d1644155de45ffca71213c4 /src/usr/local/www/head.inc
parent153e3ac201ed2794856267315ddbc121ec3603f9 (diff)
downloadpfsense-60571782bafad282cf7209670b031c368556c634.zip
pfsense-60571782bafad282cf7209670b031c368556c634.tar.gz
Allow the webgui style sheet to be selected from the advanced admin page
Diffstat (limited to 'src/usr/local/www/head.inc')
-rwxr-xr-xsrc/usr/local/www/head.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc
index d8dcb88..fe8d34c 100755
--- a/src/usr/local/www/head.inc
+++ b/src/usr/local/www/head.inc
@@ -67,12 +67,21 @@ if (isset($config['system']['webgui']['pagenamefirst'])) {
} else {
$tabtitle = $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pagetitle;
}
+
+$cssfile = "/bootstrap/css/pfSense.css";
+
+if (isset($config['system']['webgui']['webguicss'])) {
+ if(file_exists("bootstrap/css/" . $config['system']['webgui']['webguicss'])) {
+ $cssfile = "/bootstrap/css/" . $config['system']['webgui']['webguicss'];
+ }
+}
+
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="/bootstrap/css/pfSense.css" />
+ <link rel="stylesheet" href="<?=$cssfile?>" />
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="sortable/sortable-theme-bootstrap.css">
<title><?=$tabtitle?></title>
OpenPOWER on IntegriCloud