• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/wizard_site_steps.php
  • Класс: CPackageSelectGroup
  • Вызов: CPackageSelectGroup::ShowStep
function ShowStep()
{
	$package = $this->package;
	$wizard = $this->GetWizard();

	$arGroups = $package->GetTemplateGroups(Array("SITE_ID" => $package->siteID));

	if (empty($arGroups))
		return;

	$this->content .= '';

	$colsNumber = 3;
	$counter = 1;
	$cellSize = count($arGroups);

	foreach ($arGroups as $groupID => $arGroup)
	{
		if (isset($arGroup["DEFAULT"]))
			$wizard->SetDefaultVar("__groupID", $groupID);

		$this->content .= '";

		//Close table cells
		if (!($counter % $colsNumber) && $cellSize != $counter)
			$this->content .= "";

		if ($cellSize == $counter && ($cellSize % $colsNumber)>0)
		{
			for ($a=1;$a<=($colsNumber - ($cellSize % $colsNumber) );$a++)
				$this->content .= "";
		}

		$counter++;
	}

	$this->content .= "
'; if (isset($arGroup["SCREENSHOT"]) && isset($arGroup["PREVIEW"])) $this->content .= CFile::Show2Images($package->path."/".$arGroup["PREVIEW"], $package->path."/".$arGroup["SCREENSHOT"], 150, 150, ' border="0"')."
"; elseif (isset($arGroup["SCREENSHOT"])) $this->content .= CFile::ShowImage($package->path."/".$arGroup["SCREENSHOT"], 150, 150, ' border="0"', "", true)."
"; $this->content .= '
'; $this->content .= $this->ShowRadioField("__groupID", $groupID, Array("id" => $groupID)); $this->content .= ''; $this->content .= ''; $this->content .= '
'; $this->content .= "
 
"; }