Created
March 28, 2016 19:17
-
-
Save flayder/4111c109be9a74130348 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
CMain::GetProperty - возвращает свойство страницы или свойство раздела. | |
<? | |
$keywords = $APPLICATION->GetProperty("keywords"); | |
if (strlen($keywords)>0) echo $keywords; | |
?> | |
CMain::GetPageProperty - возвращает свойство страницы. | |
<? | |
$keywords = $APPLICATION->GetPageProperty("keywords"); | |
if (strlen($keywords)>0) echo $keywords; | |
?> | |
CMain::GetPagePropertyList - возвращает массив всех свойств страницы. | |
<? | |
$arProp = $APPLICATION->GetPagePropertyList(); | |
foreach($arProp as $key=>$value) | |
echo ''; | |
?> | |
CMain::GetDirProperty - возвращает свойство раздела. | |
<? | |
$keywords = $APPLICATION->GetDirProperty("keywords"); | |
if (strlen($keywords)>0) echo $keywords; | |
?> | |
CMain::GetDirPropertyList - возвращает массив свойств раздела, собранных рекурсивно до корня сайта. | |
<? | |
$arProp = $APPLICATION->GetDirPropertyList(); | |
foreach($arProp as $key=>$value) | |
echo ''; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment