diff --git a/bem.function.php b/bem.function.php index e93e34a..0f3f35f 100644 --- a/bem.function.php +++ b/bem.function.php @@ -1,7 +1,8 @@ $value) { + foreach ($context['attributes'] as $key => $value) { // If there are classes, add them to the classes array. if ($key === 'class') { foreach ($value as $class) { @@ -99,4 +100,4 @@ return $attributes; } -}, array('needs_context' => true, 'is_safe' => array('html'))); +}, array('needs_context' => TRUE, 'is_safe' => array('html')));