本文整理汇总了PHP中CIBlock::ReplaceDetailURL方法的典型用法代码示例。如果您正苦于以下问题:PHP CIBlock::ReplaceDetailURL方法的具体用法?PHP CIBlock::ReplaceDetailURL怎么用?PHP CIBlock::ReplaceDetailURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIBlock
的用法示例。
在下文中一共展示了CIBlock::ReplaceDetailURL方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$arTitleOptions = null;
if ($USER->IsAuthorized()) {
if ($APPLICATION->GetShowIncludeAreas() || is_object($INTRANET_TOOLBAR) && $arParams["INTRANET_TOOLBAR"] !== "N" || $arParams["SET_TITLE"] || isset($arResult[$arParams["BROWSER_TITLE"]])) {
if (Loader::includeModule("iblock")) {
$UrlDeleteSectionButton = "";
if ($arResult["IBLOCK_SECTION_ID"] > 0) {
$rsSection = CIBlockSection::GetList(array(), array("=ID" => $arResult["IBLOCK_SECTION_ID"]), false, array("SECTION_PAGE_URL"));
$rsSection->SetUrlTemplates("", $arParams["SECTION_URL"]);
$arSection = $rsSection->GetNext();
$UrlDeleteSectionButton = $arSection["SECTION_PAGE_URL"];
}
if (empty($UrlDeleteSectionButton)) {
$url_template = CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "LIST_PAGE_URL");
$arIBlock = CIBlock::GetArrayByID($arParams["IBLOCK_ID"]);
$arIBlock["IBLOCK_CODE"] = $arIBlock["CODE"];
$UrlDeleteSectionButton = CIBlock::ReplaceDetailURL($url_template, $arIBlock, true, false);
}
$arReturnUrl = array("add_section" => strlen($arParams["SECTION_URL"]) ? $arParams["SECTION_URL"] : CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "SECTION_PAGE_URL"), "delete_section" => $UrlDeleteSectionButton);
$arButtons = CIBlock::GetPanelButtons($arParams["IBLOCK_ID"], 0, $arResult["ID"], array("RETURN_URL" => $arReturnUrl, "CATALOG" => true));
if ($APPLICATION->GetShowIncludeAreas()) {
$this->AddIncludeAreaIcons(CIBlock::GetComponentMenu($APPLICATION->GetPublicShowMode(), $arButtons));
}
if (is_array($arButtons["intranet"]) && is_object($INTRANET_TOOLBAR) && $arParams["INTRANET_TOOLBAR"] !== "N") {
$APPLICATION->AddHeadScript('/bitrix/js/main/utils.js');
foreach ($arButtons["intranet"] as $arButton) {
$INTRANET_TOOLBAR->AddButton($arButton);
}
}
if ($arParams["SET_TITLE"] || isset($arResult[$arParams["BROWSER_TITLE"]])) {
$arTitleOptions = array('ADMIN_EDIT_LINK' => $arButtons["submenu"]["edit_section"]["ACTION"], 'PUBLIC_EDIT_LINK' => $arButtons["edit"]["edit_section"]["ACTION"], 'COMPONENT_NAME' => $this->GetName());
}
示例2: trim
if (file_exists($abs_path . $arItem["MODULE_ID"] . "_default.gif")) {
$file = $arItem["MODULE_ID"] . "_default.gif";
} else {
$file = "default.gif";
}
}
$arResult["SEARCH"][$i]["ICON"] = $image_path . $file;
$arResult["CHAIN_PATH"] = $GLOBALS["APPLICATION"]->GetNavChain($arResult["URL"], 0, $this->GetFolder() . "/chain_template.php", true, false);
}
if (CModule::IncludeModule('intranet')) {
$arResult["STRUCTURE_PAGE"] = "";
$structure_iblock_id = COption::GetOptionInt("intranet", "iblock_structure", 0);
if ($structure_iblock_id > 0) {
$arIBlock = CIBlock::GetArrayByID($structure_iblock_id);
if ($arIBlock) {
$arResult["STRUCTURE_PAGE"] = CIBlock::ReplaceDetailURL($arIBlock["LIST_PAGE_URL"], $arIBlock, true);
}
}
$arResult["STRUCTURE_FILTER"] = trim($arParams["STRUCTURE_FILTER"]);
if (strlen($arResult["STRUCTURE_FILTER"]) <= 0) {
$arResult["STRUCTURE_FILTER"] = "structure";
}
$bSoNet = CModule::IncludeModule('socialnetwork');
$arDepCache = array();
$arDepCacheValue = array();
foreach ($arResult["SEARCH"] as $i => $arItem) {
if ($arItem["MODULE_ID"] === "intranet" && substr($arItem["ITEM_ID"], 0, 1) === "U") {
$rsUser = CUser::GetList($by = '', $ord = '', array("ID_EQUAL_EXACT" => substr($arItem["ITEM_ID"], 1)), array('SELECT' => array('UF_*')));
$arUser = $rsUser->Fetch();
if ($arUser) {
if ($arUser['PERSONAL_PHOTO']) {