From 31effe943e2808fdf961b905448848494b848fd8 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Fri, 26 Jun 2015 23:11:13 +0200 Subject: [PATCH] Implement Android theme color support As requested in the forums. http://updates.html5rocks.com/2014/11/Support-for-theme-color-in-Chrome-39-for-Android --- src/Forum/Actions/IndexAction.php | 2 +- views/index.blade.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Forum/Actions/IndexAction.php b/src/Forum/Actions/IndexAction.php index cc3529535..914c747b9 100644 --- a/src/Forum/Actions/IndexAction.php +++ b/src/Forum/Actions/IndexAction.php @@ -37,7 +37,7 @@ class IndexAction extends HtmlAction public function render(Request $request, $params = []) { $config = $this->database->table('config') - ->whereIn('key', ['base_url', 'api_url', 'forum_title', 'welcome_title', 'welcome_message']) + ->whereIn('key', ['base_url', 'api_url', 'forum_title', 'welcome_title', 'welcome_message', 'theme_primary_color']) ->lists('value', 'key'); $session = []; $alert = $this->session->get('alert'); diff --git a/views/index.blade.php b/views/index.blade.php index d91108cdc..c7bd6af2b 100644 --- a/views/index.blade.php +++ b/views/index.blade.php @@ -6,6 +6,10 @@ {{ $title }} + + + + @foreach ($styles as $file) @endforeach