From 64e8a0abf3a505a317ace1d1d841f28da4f3f676 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 --- framework/core/src/Forum/Actions/IndexAction.php | 2 +- framework/core/views/index.blade.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/core/src/Forum/Actions/IndexAction.php b/framework/core/src/Forum/Actions/IndexAction.php index cc3529535..914c747b9 100644 --- a/framework/core/src/Forum/Actions/IndexAction.php +++ b/framework/core/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/framework/core/views/index.blade.php b/framework/core/views/index.blade.php index d91108cdc..c7bd6af2b 100644 --- a/framework/core/views/index.blade.php +++ b/framework/core/views/index.blade.php @@ -6,6 +6,10 @@ {{ $title }} + + + + @foreach ($styles as $file) @endforeach