C# Class OxxCommerceStarterKit.Web.Business.Rendering.ContentAreaWithDefaultsRenderer

Extends the default ContentAreaRenderer to apply custom CSS classes to each ContentFragment.
Inheritance: ContentAreaRenderer
Mostra file Open project: episerver/Commerce-Demo-Kit

Protected Methods

Method Description
GetContentAreaItemCssClass ( HtmlHelper htmlHelper, ContentAreaItem contentAreaItem ) : string
GetDefaultDisplayOption ( IContent content ) : string

Checks each content item to see if it supports a default tag to use as size if the editor has not specified a default size.

Private Methods

Method Description
GetCssClassForTag ( string tagName ) : string

Gets a CSS class used for styling based on a tag name (ie a Bootstrap class name)

GetTypeSpecificCssClasses ( IContent content ) : string

Method Details

GetContentAreaItemCssClass() protected method

protected GetContentAreaItemCssClass ( HtmlHelper htmlHelper, ContentAreaItem contentAreaItem ) : string
htmlHelper HtmlHelper
contentAreaItem ContentAreaItem
return string

GetDefaultDisplayOption() protected method

Checks each content item to see if it supports a default tag to use as size if the editor has not specified a default size.
protected GetDefaultDisplayOption ( IContent content ) : string
content IContent
return string