public function getThemeConfig()
{
$public_theme_id = Setting::value('public_theme');
$public_theme = Theme::findOrFail($public_theme_id);
$theme_config_view = 'public.' . $public_theme->directory . '.theme-settings';
if (View::exists($theme_config_view)) {
$this->layout->title = 'Theme Settings';
$this->layout->content = View::make($theme_config_view);
} else {
App::abort(404);
}
}