Пример #1
0
        public static ICollection <PostInfoEntry> SetFrontEndTexts(this ITextMapService t, ICollection <PostInfoEntry> entries, string context, string textClickToReadFullArticle, string textReadFullArticle, string textOpenArticleInNewWindow)
        {
            if (entries != null)
            {
                foreach (var entry in entries)
                {
                    entry.TextClickToReadFullArticle = t.GetMap(textClickToReadFullArticle, context);
                    entry.TextOpenArticleInNewWindow = t.GetMap(textOpenArticleInNewWindow, context);
                    entry.TextReadFullArticle        = t.GetMap(textOpenArticleInNewWindow, context);
                }
            }

            return(entries);
        }
Пример #2
0
 public string GetPageTitle(string pageTitle)
 {
     pageTitle = $"{_textMapService.GetMap(_settings.SiteName)} - {_textMapService.GetMap(pageTitle)}";
     return(pageTitle);
 }
Пример #3
0
 public string GetFullPageTitleForLayout(string pageTitle)
 {
     return($"{_textMapService.GetMap(_settings.SiteName)} - {pageTitle}");
 }