added php support for text widgets