Replaced URLs with php function for site url.