CMain::ShowPanel()
The method ShowPanel displays the control toolbar in the public section of the site.
This method utilizes the delay function technology allowing to add items to the toolbar after the site prologue is emitted.
If a user does not have enough permissions for at least one command of the toolbar, the toolbar hides. If the toolbar should always be displayed, add the following code to the page:
$APPLICATION->ShowPanel = true;
The following code can be used to determine whether the toolbar has been displayed (using the property PanelShowed of $APPLICATION):
if ($APPLICATION->PanelShowed) echo "Toolbar has been shown!"
No parameters.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?=LANG_CHARSET;?>"> <META NAME="ROBOTS" content="ALL"> <?$APPLICATION->ShowMeta("keywords")?> <?$APPLICATION->ShowMeta("description")?> <title><?$APPLICATION->ShowTitle()?></title> <?$APPLICATION->ShowCSS();?> </head> <body link="#525252" alink="#F1555A" vlink="#939393" text="#000000"> <?$APPLICATION->ShowPanel();?> ...
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |