From abb25a58dc8668c6716c419c99b215536861057a Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Wed, 7 Aug 2013 11:46:55 +0200 Subject: Fix issue #86 : possibilité de changer de thème MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- app/App_FrontController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/App_FrontController.php') 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'); } -- cgit v1.2.3