Created
October 20, 2017 16:39
-
-
Save pakimov/de684868a54ca27fb6da15e2d9f775a2 to your computer and use it in GitHub Desktop.
Bitrix news test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
if($APPLICATION->GetCurDir() == '/news/') | |
{ | |
// Мы в новостях | |
if(isset($_REQUEST["ELEMENT_ID"]) && !empty($_REQUEST["ELEMENT_ID"])) | |
{ | |
// Мы в детальке | |
} | |
elseif(isset($_REQUEST["SECTION_CODE"]) && !empty($_REQUEST["SECTION_CODE"])) | |
{ | |
// Мы в разделе новостей | |
} | |
else | |
{ | |
// Мы в корне новостей | |
} | |
} | |
else | |
{ | |
// Мы где-то в другом месте | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
if($APPLICATION->GetCurDir() == '/news/') | |
{ | |
// Мы в новостях | |
if(isset($_REQUEST["ELEMENT_ID"]) && !empty($_REQUEST["ELEMENT_ID"])) | |
{ | |
// Мы в детальке | |
} | |
elseif(isset($_REQUEST["SECTION_CODE"]) && !empty($_REQUEST["SECTION_CODE"])) | |
{ | |
// Мы в разделе новостей | |
} | |
else | |
{ | |
// Мы в корне новостей | |
} | |
} | |
else | |
{ | |
// Мы где-то в другом месте | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment