38 lines
1.2 KiB
PHP
38 lines
1.2 KiB
PHP
<?php
|
|
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) {
|
|
exit;
|
|
}
|
|
|
|
// options from Aspro\Allcorp3\Functions\CAsproAllcorp3::showBlockHtml
|
|
$arOptions = $arConfig['PARAMS'];
|
|
|
|
/* icon wrapper class */
|
|
$iconWrapperClassList = ['btn--no-btn-appearance slider-nav'];
|
|
if ($arOptions['CLASSES']) {
|
|
$iconWrapperClassList[] = $arOptions['CLASSES'];
|
|
}
|
|
$iconWrapperClass = TSolution\Utils::implodeClasses($iconWrapperClassList);
|
|
|
|
/* icon svg class */
|
|
$svgClass = $arOptions['SVG_CLASSES'] ?: 'stroke-dark-light';
|
|
|
|
/* icon size */
|
|
$iconSize = [
|
|
'WIDTH' => 7,
|
|
'HEIGHT' => 12,
|
|
];
|
|
?>
|
|
<?if ($arOptions['WRAPPER_CLASS']):?>
|
|
<div class="<?=$arOptions['WRAPPER_CLASS'];?>">
|
|
<?endif;?>
|
|
<button type="button" class="slider-button-prev swiper-button-prev <?= $iconWrapperClass; ?>">
|
|
<?= TSolution::showSpriteIconSvg(SITE_TEMPLATE_PATH.'/images/svg/arrows.svg#left-hollow', $svgClass, $iconSize); ?>
|
|
</button>
|
|
|
|
<button type="button" class="slider-button-next swiper-button-next <?= $iconWrapperClass; ?>">
|
|
<?= TSolution::showSpriteIconSvg(SITE_TEMPLATE_PATH.'/images/svg/arrows.svg#right-hollow', $svgClass, $iconSize); ?>
|
|
</button>
|
|
<?if ($arOptions['WRAPPER_CLASS']):?>
|
|
</div>
|
|
<?endif;?>
|