Fix sidebar styling. Escape classes input

This commit is contained in:
Chase Coney 2015-07-09 08:49:52 -05:00
parent bcc72d224f
commit b79c8902fc
2 changed files with 37 additions and 38 deletions

View File

@ -31,7 +31,7 @@ if (!function_exists('set_active')) {
$classes[] = $active;
}
$class = implode(' ', $classes);
$class = e(implode(' ', $classes));
return empty($classes) ? '' : "class=\"{$class}\"";
}

View File

@ -63,16 +63,15 @@
<span>{{ trans('dashboard.metrics.metrics') }}</span>
</a>
</li>
<li {!! set_active('dashboard/settings*') !!}>
<li {{ set_active('dashboard/subscribers*') }}>
<li {!! set_active('dashboard/subscribers*') !!}>
<a href="{{ route('dashboard.subscribers') }}">
<i class="icons ion-email"></i>
<span>{{ trans('dashboard.subscribers.subscribers') }}</span>
</a>
</li>
<li {{ set_active('dashboard/settings*') }}>
<li {!! set_active('dashboard/settings*') !!}>
<a href="{{ route('dashboard.settings.setup') }}">
<i class="icon ion-gear-a"></i>
<span>