Skip to content

Commit

Permalink
Enable only the options if value is created not only set
Browse files Browse the repository at this point in the history
  • Loading branch information
shakaran committed Oct 16, 2017
1 parent 68752fa commit e4eae91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Twig/AvanzuAdminExtension.php
Expand Up @@ -46,10 +46,10 @@ public function bodyClass($classes = '')
$options = $this->options;

if(isset($options['skin'])) $classList[] = $options['skin'];
if(isset($options['fixed_layout'])) $classList[] = 'fixed';
if(isset($options['boxed_layout'])) $classList[] = 'boxed';
if(isset($options['collapsed_sidebar'])) $classList[] = 'sidebar-collapse';
if(isset($options['mini_sidebar'])) $classList[] = 'sidebar-mini';
if(isset($options['fixed_layout']) && true == $options['fixed_layout']) $classList[] = 'fixed';
if(isset($options['boxed_layout']) && true == $options['boxed_layout']) $classList[] = 'boxed';
if(isset($options['collapsed_sidebar']) && true == $options['collapsed_sidebar']) $classList[] = 'sidebar-collapse';
if(isset($options['mini_sidebar']) && true == $options['mini_sidebar']) $classList[] = 'sidebar-mini';

return implode(' ', array_filter($classList));
}
Expand Down

0 comments on commit e4eae91

Please sign in to comment.