} } closedir($handle); } } } } $deleteArray = array(); $fp = file($filenameEng); $checkOnce = true; for ($idx = 0; $idx < count($fp); ++$idx) { if ($checkOnce && strpos($fp[$idx], "// DEFINE TAGS FOR INDIVIDUAL PAGES") === FALSE) { continue; } $checkOnce = false; $l = GetSectionName($fp[$idx]); if (tep_not_null($l)) { $deleteArray[] = array('id' => $l, 'text' => $l); } } ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?> > <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?> ">
} if ($ar["PROPERTY_TYPE"] === "L") { $arProperties[$ar["ID"]][$ar["PROPERTY_VALUE_ID"]] = $ar["VALUE_ENUM"]; } else { $arProperties[$ar["ID"]][$ar["PROPERTY_VALUE_ID"]] = $ar["VALUE"]; } } } foreach ($arSelectedProps as $aProp) { $v = ''; foreach ($arProperties[$aProp['ID']] as $property_value_id => $property_value) { $res = ''; if ($aProp['PROPERTY_TYPE'] == 'F') { $res = CFileInput::Show('NO_FIELDS[' . $property_value_id . ']', $property_value, array("IMAGE" => "Y", "PATH" => "Y", "FILE_SIZE" => "Y", "DIMENSIONS" => "Y", "IMAGE_POPUP" => "Y", "MAX_SIZE" => $maxImageSize, "MIN_SIZE" => $minImageSize), array('upload' => false, 'medialib' => false, 'file_dialog' => false, 'cloud' => false, 'del' => false, 'description' => false)); } elseif ($aProp['PROPERTY_TYPE'] == 'G') { $t = GetSectionName($property_value); if ($t) { $res = $t['NAME'] . ' [<a href="' . htmlspecialcharsbx(CIBlock::GetAdminSectionEditLink($t['IBLOCK_ID'], $t['ID'])) . '" title="' . GetMessage("SPS_ELSEARCH_SECTION_EDIT") . '">' . $t['ID'] . '</a>]'; } } elseif ($aProp['PROPERTY_TYPE'] == 'E') { $t = GetElementName($property_value); if ($t) { $res = $t['NAME'] . ' [<a href="' . htmlspecialcharsbx(CIBlock::GetAdminElementEditLink($t['IBLOCK_ID'], $t['ID'])) . '" title="' . GetMessage("SPS_ELSEARCH_ELEMENT_EDIT") . '">' . $t['ID'] . '</a>]'; } } else { $res = htmlspecialcharsex($property_value); } if ($res != "") { $v .= ($v != '' ? ' / ' : '') . $res; } }
"DIMENSIONS" => "Y", "IMAGE_POPUP" => "Y", "MAX_SIZE" => $maxImageSize, "MIN_SIZE" => $minImageSize, ), array( 'upload' => false, 'medialib' => false, 'file_dialog' => false, 'cloud' => false, 'del' => false, 'description' => false, ) ); elseif($aProp['PROPERTY_TYPE']=='G') { $t = GetSectionName($property_value["VALUE"]); if($t) $res = $t['NAME'].' [<a href="'.htmlspecialcharsbx(CIBlock::GetAdminSectionEditLink($t['IBLOCK_ID'], $t['ID'])).'" title="'.GetMessage("IBLOCK_ELSEARCH_SECTION_EDIT").'">'.$t['ID'].'</a>]'; } elseif($aProp['PROPERTY_TYPE']=='E') { $t = GetElementName($property_value["VALUE"]); if($t) { $res = $t['NAME'].' [<a href="'.htmlspecialcharsbx(CIBlock::GetAdminElementEditLink($t['IBLOCK_ID'], $t['ID'])).'" title="'.GetMessage("IBLOCK_ELSEARCH_ELEMENT_EDIT").'">'.$t['ID'].'</a>]'; } } elseif($property_value['PROPERTY_TYPE']=='L') { $res = $property_value["VALUE_ENUM"]; }
function NotDuplicatePage($fp, $pagename) { for ($idx = 0; $idx < count($fp); ++$idx) { $section = GetSectionName($fp[$idx]); if (!empty($section)) { if (strcasecmp($section, $pagename) === 0) { return false; } } } return true; }
if (strpos($fp[$idx], "define('HEAD_TITLE_TAG_ALL'") !== FALSE) { // echo 'SEND TITLE '.$main_title.' '. ' - '.$main['title'].' - '.$formActive.'<br>'; $main_title = GetMainArgument($fp[$idx], $main['title'], $formActive); } else { if (strpos($fp[$idx], "define('HEAD_DESC_TAG_ALL'") !== FALSE) { // echo 'SEND DESC '.$main['desc']. ' '.$formActive.'<br>'; $main_desc = GetMainArgument($fp[$idx], $main['desc'], $formActive); } else { if (strpos($fp[$idx], "define('HEAD_KEY_TAG_ALL'") !== FALSE) { $main_key = GetMainArgument($fp[$idx], $main['keyword'], $formActive); $findTitles = true; //enable next section } else { if ($findTitles) { if (($pos = strpos($fp[$idx], '.php')) !== FALSE) { $sections['titles'][$ctr] = GetSectionName($fp[$idx]); $ctr++; } else { if (!IsComment($fp[$idx])) { $c = $ctr - 1; if (IsTitleSwitch($fp[$idx])) { if ($formActive) { $fp[$idx] = ChangeSwitch($fp[$idx], $args_new['HTTA'][$c]); } $args['title_switch'][$c] = GetSwitchSetting($fp[$idx]); $args['title_switch_name'][$c] = sprintf("HTTA_%d", $c); } else { if (IsDescriptionSwitch($fp[$idx])) { if ($formActive) { $fp[$idx] = ChangeSwitch($fp[$idx], $args_new['HTDA'][$c]); }