Bitrix Site Manager

CAdvBanner::GetHTML

text
CAdvBanner::GetHTML(
 array arrBanner
);

The GetHTML method returns a ready to use HTML code of the banner.

Parameters

ParameterDescription
arrBanner An array with the banner parameters. The following parameters are required and sufficient for the successful call:
  • IMAGE_ID - the ID of a banner image (if used);
  • IMAGE_ALT - tooltip for an image (if used);
  • URL - link which is opened upon click on a banner;
  • URL_TARGET - value of the target attribute of the tag <a>;
  • CODE - banner code (if used);
  • CODE_TYPE - type of the banner code (text or html).

Return Value

HTML code of the banner which can be used without additional preparations.