Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $USER;
- if($USER->isAdmin()){
- if (SITE_ID == 's1') {
- $db_props = CIBlockElement::GetProperty($arParams["IBLOCK_ID"], $ElementID, array("sort" => "asc"), Array("CODE"=>"NAME_RU"));
- if($ar_props = $db_props->Fetch()) {
- if ($ar_props["VALUE"]!="") {
- $name_transl = $ar_props["VALUE"];
- $APPLICATION->SetTitle($name_transl);
- }
- }
- }
- if (SITE_ID == 'sl') {
- $db_props = CIBlockElement::GetProperty($arParams["IBLOCK_ID"], $ElementID, array("sort" => "asc"), Array("CODE"=>"NAME_SL"));
- if($ar_props = $db_props->Fetch()) {
- if ($ar_props["VALUE"]!="") {
- $name_transl = $ar_props["VALUE"];
- $APPLICATION->SetTitle($name_transl);
- }
- }
- }
- if (SITE_ID == 'de') {
- $db_props = CIBlockElement::GetProperty($arParams["IBLOCK_ID"], $ElementID, array("sort" => "asc"), Array("CODE"=>"NAME_DE"));
- if($ar_props = $db_props->Fetch()) {
- if ($ar_props["VALUE"]!="") {
- $name_transl = $ar_props["VALUE"];
- $APPLICATION->SetTitle($name_transl);
- }
- }
- }
- //$APPLICATION->SetPageProperty('title', $name_transl);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement