403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/cvetdv.ru/bitrix/components/bitrix/breadcrumb/templates/store_v3/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/components/bitrix/breadcrumb/templates/store_v3/template.php
<?php
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();

/**
 * @global CMain $APPLICATION
 */

global $APPLICATION;

//delayed function must return a string
if(empty($arResult))
	return "";

$strReturn = '';

$strReturn .= '<div class="store-breadcrumb">';

$itemSize = count($arResult);
for($index = 0; $index < $itemSize; $index++)
{
	$title = htmlspecialcharsex($arResult[$index]["TITLE"]);
	$jsonSeparator = ($index > 0? ',' : '');

	if($arResult[$index]["LINK"] <> "" && $index != $itemSize-1)
	{
		$strReturn .=  '
			<div class="store-breadcrumb-item" id="bx_breadcrumb_'.$index.'">
				<a class="store-breadcrumb-item-link" href="'.$arResult[$index]["LINK"].'" title="'.$title.'" >
					<svg width="11" height="18" viewBox="0 0 11 18" fill="none" xmlns="http://www.w3.org/2000/svg">
						<path fill-rule="evenodd" clip-rule="evenodd" d="M10.209 15.7666L4.44046 9.99811L3.40415 8.99999L4.44046 8.00127L10.209 2.23275L8.79716 0.820923L0.618452 8.99963L8.79716 17.1783L10.209 15.7666Z" fill="#525C69"/>
					</svg>
				</a>
			</div>';
		$jsonLDBreadcrumbList .= $jsonSeparator.'{
				"@type": "ListItem",
				"position": '.$index.',
				"name": "'.$title.'",
				"item": "'.$arResult[$index]["LINK"].'"
		  	}';
	}
}
$jsonLDBreadcrumb = '
<script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "BreadcrumbList",
      "itemListElement": ['.$jsonLDBreadcrumbList.']
    }
</script>
';
$strReturn .= '</div>'.$jsonLDBreadcrumb;



return $strReturn;

Youez - 2016 - github.com/yon3zu
LinuXploit