Nucleus .Net Core CMS

HtmlHelpers.LogoHtmlHelper Class

Namespace: Nucleus.ViewFeatures.HtmlHelpers
Assembly: Nucleus.ViewFeatures.dll
Html helper used to render the site's logo.

Methods

Logo (IHtmlHelper,Object) Method

Logo (IHtmlHelper htmlHelper, Object htmlAttributes)
Returns an anchor (a) element which links to the site's home page, with an image inside which renders the site logo.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
htmlAttributes Object
Remarks
If the site does not have a configured logo, nothing is rendered.

Logo (IHtmlHelper,String,Object) Method

Logo (IHtmlHelper htmlHelper, String caption, Object htmlAttributes)
Returns an anchor (a) element which links to the site's home page, with an image inside which renders the site logo.
Parameters
Name Type
htmlHelper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
caption String

The alt text of the image element.

htmlAttributes Object
Remarks
If the site does not have a configured logo, nothing is rendered.