div class about-short bg inCatalog curDir texture div class wrapper fi

 1
 2
 3
 4
 5
 6
 7
 8
 9
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
38
39
40
41
42
43
44
45
<div class="about-short bg <?=$inCatalog || $curDir == "/" ? 'texture' : '';?>">
<div class="wrapper">
<?$fileName = str_replace("/", "_", trim($curDir));?>
<?
if (file_exists($_SERVER["DOCUMENT_ROOT"]."/include/footer_seo_text/".$fileName.".title.php")) {
$fileExists = true;
} else {
$fileExists = false;
}
$num = intval($_GET['PAGEN_1']);
if(isset($_GET['PAGEN_1']) && $num >= 2){
$noIndex = true;
}
?>
<?=$fileExists ? '<header><h3>' : '';?>
<?=$noIndex && $fileExists ? '<!--noindex-->' : '';?>
<?
$APPLICATION->IncludeComponent("bitrix:main.include", "",
Array(
"AREA_FILE_SHOW" => "file",
"PATH" => "/include/footer_seo_text/".$fileName.".title.php",
"EDIT_TEMPLATE" => ""
),
false
);
?>
<?=$noIndex && $fileExists ? '<!--/noindex-->' : '';?>
<?=$fileExists ? '</header></h3>' : '';?>
<?=$fileExists ? '<div class="text">' : '';?>
<?=$noIndex && $fileExists ? '<!--noindex-->' : '';?>
<?
$APPLICATION->IncludeComponent("bitrix:main.include", "",
Array(
"AREA_FILE_SHOW" => "file",
"PATH" => "/include/footer_seo_text/".$fileName.".php",
"EDIT_TEMPLATE" => ""
),
false
);
?>
<?=$noIndex && $fileExists ? '<!--/noindex-->' : '';?>
<?=$fileExists ? '</div>' : '';?>
</div>
</div>