Documentation

ShowBanner

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

The method includes the Advertising module and displays a banner of the specified type. Non-static method.

Parameters

ParameterDescription
type Type of banner (admin menu item "Ads" > "Types of banners").
html_before HTML code to insert before banner.
html_after HTML code to insert after banner.

See Also

[link=6661503]Advertising module classes[/link]

Examples of use

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


© «Bitrix24», 2001-2022
Up