<?php
$arUrlRewrite = array(
1 =>
array(
'CONDITION' => '#^/cases/(.*)#',
'RULE' => 'SECTION_CODE=$1',
'ID' => 'bitrix:news.list',
'PATH' => '/cases/index.php',
'SORT' => 100,
),
2 =>
array(
'CONDITION' => '#^/cases/(.*)/(.*)#',
'RULE' => ''SECTION_CODE=$1&ELEMENT_CODE=$2',
'ID' => 'bitrix:news.detail',
'PATH' => '/cases/detail.php',
'SORT' => 100,
),
);
$ipropValues = new \Bitrix\Iblock\InheritedProperty\ElementValues($arResult["IBLOCK_ID"], $arResult["ID"]);
$arResult["IPROPERTY_VALUES"] = $ipropValues->getValues();
// Например ALT картинки анонса элемента
echo $arResult['IPROPERTY_VALUES']['ELEMENT_PREVIEW_PICTURE_FILE_ALT'];
// Например TITLE картинки анонса элемента
echo $arResult['IPROPERTY_VALUES']['ELEMENT_PREVIEW_PICTURE_FILE_TITLE'];
// Например ALT детальной картинки элементов
echo $arResult['IPROPERTY_VALUES']['ELEMENT_DETAIL_PICTURE_FILE_ALT'];
// Например TITLE детальной картинки элементов
echo $arResult['IPROPERTY_VALUES']['ELEMENT_DETAIL_PICTURE_FILE_TITLE'];
<code></code>
document.addEventListener("DOMContentLoaded", () => { alert("DOM готов!"); });
if(typeof f == 'function'){
console.log(f());
}else{
console.log(f);
}
function f(){ return true; }
if(typeof f == 'function'){
console.log(f());
}else{
console.log(f);
}
function f(){ return 2+2; }
if(typeof f == 'function'){
console.log(f());
}else{
console.log(f);
}
f = 'test';
if(typeof f == 'function'){
console.log(f());
}else{
console.log(f);
}
console.log(f)
console.log(typeof f)
if( function f(){}){
console.log((typeof f));
}
function f(){ return true; }
if( function f(){}){
console.log((typeof f));
}
f = true;
if( function f(){}){
console.log(typeof f);
}
f = 1;
if( function f(){}){
console.log(typeof f);
}
f = 'function';
if( function f(){}){
console.log(typeof f);
}
f = function(){};
if( function f(){}){
console.log(typeof f);
}
html:
CSS: