Base functions for templates rev 3
Hit counter for news
jsonapi options partly moved from config