diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php
index 2a2bec1..f74bdd1 100644
--- a/app/Providers/AppServiceProvider.php
+++ b/app/Providers/AppServiceProvider.php
@@ -37,16 +37,12 @@ class AppServiceProvider extends ServiceProvider
private function addThemeInfoToView()
{
$themeInfo = Theme::info();
- $themeInfoKeys = array('name', 'version');
- // Add each valid theme info element to the view - prefixing with theme_
+ // Add each theme info element to the view - prefixing with theme_
// e.g. $themeInfo['name'] becomes $theme_name in the view
- foreach ($themeInfoKeys as $key)
+ foreach ($themeInfo as $key => $value)
{
- if (isset($themeInfo[$key]))
- {
- View::share('theme_' . $key, $themeInfo[$key]);
- }
+ View::share('theme_' . $key, $value);
}
// Also add a theme_url key
diff --git a/resources/views/themes/base/layout.blade.php b/resources/views/themes/base/layout.blade.php
index 4ec3888..56bd5e3 100644
--- a/resources/views/themes/base/layout.blade.php
+++ b/resources/views/themes/base/layout.blade.php
@@ -10,9 +10,10 @@