A PHP block and widget framework