add php class selector for attributes