protected function prepareAttributes(array $attributes)
    {
        $attributesCollected = '';

        foreach ($attributes as $attribute => $value) {
            // Check value-less attributes to be embedded properly
            if ($value === null) {
                $attributesCollected .= ' '.$attribute;
            } else {
                $value = (is_array($value)) ? $value[0] : $value;
                $attributesCollected .= ' '.$attribute.'="'.$value.'"';
            }
        }

        return $attributesCollected;
    }
protected function prepareAttributes(array $attributes)
    {
        $attributesCollected = '';

        foreach ($attributes as $attribute => $value) {
            // Check value-less attributes to be embedded properly
            if ($value === null) {
                $attributesCollected .= ' '.$attribute;
            } else {
                $value = (is_array($value)) ? $value[0] : $value;
                $attributesCollected .= ' '.$attribute.'="'.$value.'"';
            }
        }

        return $attributesCollected;
    }
protected function prepareAttributes ( array $ attributes ) { $ attributesCollected = '' ; foreach ( $ attributes as $ attribute => $ value ) { // Check value-less attributes to be embedded properly if ( $ value === null ) { $ attributesCollected .= ' ' . $ attribute ; } else { $ value = ( is_array ( $ value ) ) ? $ value [ 0 ] : $ value ; $ attributesCollected .= ' ' . $ attribute . '="' . $ value . '"' ; } } return $ attributesCollected ; }
Prepares attributes.

@param array $attributes The atributes to prepare

@author Benjamin Carl <opensource@clickalicious.de>

@return string The rendered result
Prepares attributes .