diff options
| author | 2013-08-07 11:46:55 +0200 | |
|---|---|---|
| committer | 2013-08-07 11:46:55 +0200 | |
| commit | abb25a58dc8668c6716c419c99b215536861057a (patch) | |
| tree | 37be666df9383f447e84cfc29fa840e60678bebb /app/App_FrontController.php | |
| parent | f6d730f9d1ce7957001bd981f04b32d67ebb44e6 (diff) | |
Fix issue #86 : possibilité de changer de thème
Désormais il est possible de créer des thèmes. Le thème peut être changé
sur la page de configuration. Les thèmes sont détectés grâce à un
fichier metadata.json détaillant le nom du thème, son auteur, une petite
description et une version.
Un nouveau thème "Flat design" a été ajouté et est pleinement
fonctionnel
Diffstat (limited to 'app/App_FrontController.php')
| -rw-r--r-- | app/App_FrontController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/App_FrontController.php b/app/App_FrontController.php index 637d61206..50313522f 100644 --- a/app/App_FrontController.php +++ b/app/App_FrontController.php @@ -30,6 +30,7 @@ class App_FrontController extends FrontController { include (APP_PATH . '/models/Exception/FeedException.php'); include (APP_PATH . '/models/Exception/EntriesGetterException.php'); include (APP_PATH . '/models/RSSConfiguration.php'); + include (APP_PATH . '/models/RSSThemes.php'); include (APP_PATH . '/models/Days.php'); include (APP_PATH . '/models/Category.php'); include (APP_PATH . '/models/Feed.php'); @@ -50,9 +51,8 @@ class App_FrontController extends FrontController { } private function loadStylesAndScripts () { - View::appendStyle (Url::display ('/theme/fallback.css')); - View::appendStyle (Url::display ('/theme/global.css')); - View::appendStyle (Url::display ('/theme/freshrss.css')); + $theme = $this->conf->theme(); + View::appendStyle (Url::display ('/themes/' . $theme . '/style.css')); if (login_is_conf ($this->conf)) { View::appendScript ('https://login.persona.org/include.js'); } |
