Bitrix Site Manager

CMain::ShowBanner

CMain::ShowBanner(
 string banner_type,
 string html_before = false,
 string html_after = false
)

The method ShowBanner includes the Advertising module and displays a banner of the specified type.

Parameters

ParameterDescription
banner_type Banner type (menu Advertising -> Banner types).
html_before HTML code to insert before the banner.
html_after HTML code to insert after the banner.

See Also

Example



<?
// connect the advertising module and display the "LEFT" banner
$APPLICATION->ShowBanner("LEFT", 
                         "<div align=\"center\">", 
                         "<br></div><br>");
?>