summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2014-08-10 18:28:12 +0200
committerGuillaume Mazoyer <respawneral@gmail.com>2014-08-10 18:28:12 +0200
commitbed7184fbbe63aec30add514b7f9f451dc93d91a (patch)
tree8dd050fb2c36b11406066e3dc44dcedf36325140
parent6588db8fd6d6b9aa7edcd8b97db9acdd98a3342c (diff)
Add ability to use another Bootstrap theme.
-rw-r--r--includes/config.defaults.php4
-rw-r--r--index.php3
2 files changed, 6 insertions, 1 deletions
diff --git a/includes/config.defaults.php b/includes/config.defaults.php
index 4632ca0..b333e5d 100644
--- a/includes/config.defaults.php
+++ b/includes/config.defaults.php
@@ -11,6 +11,8 @@ $config = array (
'frontpage' => array (
// Use Bootstrap theme
'bootstrap_theme' => true,
+ // Custom Bootstrap theme
+ 'custom_bootstrap_theme' => false,
// CSS to use
'css' => 'css/style.css',
// Display the title
@@ -65,4 +67,4 @@ $config = array (
);
-// End of config.defaults..php
+// End of config.defaults.php
diff --git a/index.php b/index.php
index 059fd72..7220c7b 100644
--- a/index.php
+++ b/index.php
@@ -225,6 +225,9 @@ final class LookingGlass {
if ($this->frontpage['bootstrap_theme']) {
print '<link href="libs/bootstrap-3.2.0/css/bootstrap-theme.min.css" rel="stylesheet" />';
}
+ if ($this->frontpage['custom_boostrap_theme']) {
+ print '<link href="'.$this->frontpage['custom_bootstrap_theme'].'" rel="stylesheet" />';
+ }
print '<link href="'.$this->frontpage['css'].'" rel="stylesheet" />';
print '</head>';
print '<body>';