C# Класс Decision.Common.Extentions.SeoExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
AuthorGooglePlusLink ( string googlePlusId, string virtualImageUrl, int imageWidth, int imageHeight ) : string
GenerateMetaTag ( string title, string description, string canonicalUrl, string googlePlusUrl, bool allowIndexPage, bool allowCache, bool allowFollowLinks, string author = "", string lastmodified = "", string expires = "never", string applicationName = "web app", string language = "fa", CacheControlType cacheControlType = CacheControlType.Private, bool allowTranslate = true ) : string
GeneratePageDescription ( string description ) : string
GeneratePageTitle ( ) : string
GenerateRichSnippetForRating ( string personName, string personWritedItemsUrl, string itemTitle, int ratersCount, int ratingValue, string itemtype = "Product" ) : string
GenerateSlug ( this title ) : string
GenerateSocialSnippet ( ) : string
GetKeywords ( string urlReferrer ) : string
ResolveTitleForUrl ( string title ) : string
ResolveTitleForUrl ( this htmlHelper, string title ) : string
ToSeoUrl ( this url ) : string

Приватные методы

Метод Описание
RemoveAccent ( this text ) : string

Описание методов

AuthorGooglePlusLink() публичный статический Метод

public static AuthorGooglePlusLink ( string googlePlusId, string virtualImageUrl, int imageWidth, int imageHeight ) : string
googlePlusId string
virtualImageUrl string
imageWidth int
imageHeight int
Результат string

GenerateMetaTag() публичный статический Метод

public static GenerateMetaTag ( string title, string description, string canonicalUrl, string googlePlusUrl, bool allowIndexPage, bool allowCache, bool allowFollowLinks, string author = "", string lastmodified = "", string expires = "never", string applicationName = "web app", string language = "fa", CacheControlType cacheControlType = CacheControlType.Private, bool allowTranslate = true ) : string
title string
description string
canonicalUrl string
googlePlusUrl string
allowIndexPage bool
allowCache bool
allowFollowLinks bool
author string
lastmodified string
expires string
applicationName string
language string
cacheControlType CacheControlType
allowTranslate bool
Результат string

GeneratePageDescription() публичный статический Метод

public static GeneratePageDescription ( string description ) : string
description string
Результат string

GeneratePageTitle() публичный статический Метод

public static GeneratePageTitle ( ) : string
Результат string

GenerateRichSnippetForRating() публичный статический Метод

public static GenerateRichSnippetForRating ( string personName, string personWritedItemsUrl, string itemTitle, int ratersCount, int ratingValue, string itemtype = "Product" ) : string
personName string
personWritedItemsUrl string
itemTitle string
ratersCount int
ratingValue int
itemtype string
Результат string

GenerateSlug() публичный статический Метод

public static GenerateSlug ( this title ) : string
title this
Результат string

GenerateSocialSnippet() публичный статический Метод

public static GenerateSocialSnippet ( ) : string
Результат string

GetKeywords() публичный статический Метод

public static GetKeywords ( string urlReferrer ) : string
urlReferrer string
Результат string

ResolveTitleForUrl() публичный статический Метод

public static ResolveTitleForUrl ( string title ) : string
title string
Результат string

ResolveTitleForUrl() публичный статический Метод

public static ResolveTitleForUrl ( this htmlHelper, string title ) : string
htmlHelper this
title string
Результат string

ToSeoUrl() публичный статический Метод

public static ToSeoUrl ( this url ) : string
url this
Результат string