Revert b86eba9..c7a27e4

This rolls back to commit b86eba958a0b1a6c687b19b72ceef5bfcf0eb0e3.
Changed template from Twig to PHP and fixed issue with paths