C# Class Common.Helpers.SeoExtentions

Mostra file Open project: rabbal/Mvc5

Public Methods

Method Description
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

Private Methods

Method Description
RemoveAccent ( this text ) : string

Method Details

AuthorGooglePlusLink() public static method

public static AuthorGooglePlusLink ( string googlePlusId, string virtualImageUrl, int imageWidth, int imageHeight ) : string
googlePlusId string
virtualImageUrl string
imageWidth int
imageHeight int
return string

GenerateMetaTag() public static method

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
return string

GeneratePageDescription() public static method

public static GeneratePageDescription ( string description ) : string
description string
return string

GeneratePageTitle() public static method

public static GeneratePageTitle ( ) : string
return string

GenerateRichSnippetForRating() public static method

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
return string

GenerateSlug() public static method

public static GenerateSlug ( this title ) : string
title this
return string

GenerateSocialSnippet() public static method

public static GenerateSocialSnippet ( ) : string
return string

GetKeywords() public static method

public static GetKeywords ( string urlReferrer ) : string
urlReferrer string
return string

ResolveTitleForUrl() public static method

public static ResolveTitleForUrl ( string title ) : string
title string
return string

ResolveTitleForUrl() public static method

public static ResolveTitleForUrl ( this htmlHelper, string title ) : string
htmlHelper this
title string
return string