/// <summary> /// Render widget /// </summary> /// <param name="parameters"></param> /// <returns></returns> public override string Render(string[] parameters) { ParseParams(parameters); var model = _rssFeedService.GetRssFeedWidget(RssFeedId, Number); if (model == null) { return(_localizedResourceService.T("Widget_RSSFeeds_Message_InvalidRssFeedId")); } var template = _widgetTemplateService.GetTemplateByName(Template) ?? _widgetTemplateService.GetTemplateByName(GetSetup().DefaultTemplate); return(_widgetTemplateService.ParseTemplate(template, model)); }