fix php block for custom sites, closes #109