Remove erring PHP tags
remove old smarty lib
Fix syntax errors left-ver from merge
fix syntax errors in smarty lang configs
Fix deprecated warning
Replace plugin-loading call