- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
function GetNext($bTextHtmlAuto=true, $use_tilda=true)
{
$res = parent::GetNext($bTextHtmlAuto, $use_tilda);
if($res)
{
if(strlen($res["IBLOCK_ID"])>0)
{
$res["LIST_PAGE_URL"] =
str_replace("//", "/",
str_replace("#LANG#", $res["LANG_DIR"],
str_replace("#SITE_DIR#", SITE_DIR,
str_replace("#SERVER_NAME#", SITE_SERVER_NAME,
str_replace("#IBLOCK_ID#", $res["IBLOCK_ID"], $res["LIST_PAGE_URL"])
)
)
)
);
if(array_key_exists("DETAIL_PAGE_URL", $res))
$res["DETAIL_PAGE_URL"] = CIBlock::ReplaceDetailUrl($res["DETAIL_PAGE_URL"], $res, true);
if(array_key_exists("SECTION_PAGE_URL", $res))
$res["SECTION_PAGE_URL"] = CIBlock::ReplaceDetailUrl($res["SECTION_PAGE_URL"], $res, true);
}
else
$res["LIST_PAGE_URL"] =
str_replace("//", "/",
str_replace("#LANG#", $res["LANG_DIR"],
str_replace("#SITE_DIR#", SITE_DIR,
str_replace("#SERVER_NAME#", SITE_SERVER_NAME,
str_replace("#IBLOCK_ID#", $res["ID"], $res["LIST_PAGE_URL"])
)
)
)
);
}
return $res;
}
punishment 07.11.2010 21:50 # 0
guest 15.03.2013 23:24 # +1