converted php templates to twig
removed deprecated functions in the theming layer