CRM-13674 - CRM_Core_* - Add smarty functions