src/Tag.php
private static function buildHtmlAttribute($attributes)
    {
        $html = '';
        foreach ($attributes as $name => $value) {
            $html .= ' '.$name.'="'.$value.'"';
            $class_list = explode(' ', $value);
            foreach ($class_list as $class_name) {
                switch ($class_name) {
                    case 'class':
                        if (function_exists('hookAddClassHtmlTag')) {
                            hookAddClassHtmlTag($class_name);
                        }
                }
            }
        }

        return $html;
    }
private static function buildHtmlAttribute($attributes)
    {
        $html = '';
        foreach ($attributes as $name => $value) {
            $html .= ' '.$name.'="'.$value.'"';
            $class_list = explode(' ', $value);
            foreach ($class_list as $class_name) {
                switch ($class_name) {
                    case 'class':
                        if (function_exists('hookAddClassHtmlTag')) {
                            hookAddClassHtmlTag($class_name);
                        }
                }
            }
        }

        return $html;
    }
private static function buildHtmlAttribute ( $ attributes ) { $ html = '' ; foreach ( $ attributes as $ name => $ value ) { $ html .= ' ' . $ name . '="' . $ value . '"' ; $ class_list = explode ( ' ' , $ value ) ; foreach ( $ class_list as $ class_name ) { switch ( $ class_name ) { case 'class' : if ( function_exists ( 'hookAddClassHtmlTag' ) ) { hookAddClassHtmlTag ( $ class_name ) ; } } } } return $ html ; }
Build html attributes from array.

@param array $attributes

@return string
Build html attributes from array .