C# Class Common.Helpers.SeoExtentions

Afficher le fichier Open project: rabbal/Mvc5

Méthodes publiques

Méthode 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

Méthode Description
RemoveAccent ( this text ) : string

Method Details

AuthorGooglePlusLink() public static méthode

public static AuthorGooglePlusLink ( string googlePlusId, string virtualImageUrl, int imageWidth, int imageHeight ) : string
googlePlusId string
virtualImageUrl string
imageWidth int
imageHeight int
Résultat string

GenerateMetaTag() public static méthode

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
Résultat string

GeneratePageDescription() public static méthode

public static GeneratePageDescription ( string description ) : string
description string
Résultat string

GeneratePageTitle() public static méthode

public static GeneratePageTitle ( ) : string
Résultat string

GenerateRichSnippetForRating() public static méthode

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
Résultat string

GenerateSlug() public static méthode

public static GenerateSlug ( this title ) : string
title this
Résultat string

GenerateSocialSnippet() public static méthode

public static GenerateSocialSnippet ( ) : string
Résultat string

GetKeywords() public static méthode

public static GetKeywords ( string urlReferrer ) : string
urlReferrer string
Résultat string

ResolveTitleForUrl() public static méthode

public static ResolveTitleForUrl ( string title ) : string
title string
Résultat string

ResolveTitleForUrl() public static méthode

public static ResolveTitleForUrl ( this htmlHelper, string title ) : string
htmlHelper this
title string
Résultat string