Your IP : 18.221.234.102


Current Path : /home/bitrix/ext_www/rk_shared_core/bitrix/modules/socialnetwork/
Upload File :
Current File : /home/bitrix/ext_www/rk_shared_core/bitrix/modules/socialnetwork/tools.php

<?
function SonetShowInFrame(&$component, $bPopup)
{
	global $APPLICATION;

	$APPLICATION->RestartBuffer();

	if (!$bPopup)
	{
		?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">		
		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=LANGUAGE_ID?>" lang="<?=LANGUAGE_ID?>">
			<head><?
				$APPLICATION->ShowHead();
				?><style>
					body {background: #fff !important; text-align: left !important; color: #000 !important;}
					<?
					if ($_REQUEST['IFRAME_TYPE'] != 'SIDE_SLIDER')
					{
						?>
						div#sonet-content-outer { padding: 15px; }
						<?
					}
					?>
					</style>
				</head>
				<body class="<?$APPLICATION->ShowProperty("BodyClass");?>"><?

				if ($_REQUEST['IFRAME_TYPE'] == 'SIDE_SLIDER')
				{
					?><div class="pagetitle-wrap">
					<div class="pagetitle-inner-container">
						<div class="pagetitle">
							<span id="pagetitle-slider" class="pagetitle-item"><?$APPLICATION->ShowTitle(false);?></span>
						</div>
					</div>
				</div><?
			}
	}
	else
	{
		$APPLICATION->ShowAjaxHead();
	}

	?><div id="sonet-content-outer">
		<table cellpadding="0" cellspading="0" width="100%">
			<tr>
				<td valign="top"><? $component->IncludeComponentTemplate();?></td>
			</tr>
		</table>
	</div><?

	if (!$bPopup)
	{
			?>
			</body>
		</html><?
	}
	require_once($_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/modules/main/include/epilog_after.php');
	die();
}
?>