Page Header widget template

This article is a translation of article in russian.

Component <UH-Header/>, which is available in a layout template, renders by tpl/widgets/header/main.tpl template. By our idea, template renders an image and/or text with respect to Appearance settings in Control Panel.

Параметры:

  • default_image_url (string): default image URL in case of show nothing;
  • image_alt (string): text for image alt="" attribute;
  • image_url (string): image URL;
  • has_custom_content (boolean): whether a custom text is available (show text can be enabled, but the text is still empty);
  • show_image (boolean): whether to show an image;
  • show_text (boolean): whether to show a text.

Components:

<UH-Header-Content/>

The text to render provided by Appearance settings.

Nobody did vote for this article yet. Did this article help to you?