B
B
Boyarc12212020-10-19 11:30:37
1C-Bitrix
Boyarc1221, 2020-10-19 11:30:37

How to change the slide time on a site with Bitrix?

Hello.
Here is the slider template code:

<?if(!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();?>
<?$this->setFrameMode(true);?>
<?if($arResult['ITEMS']):?>
  <?
  global $arTheme;
  $slideshowSpeed = abs(intval($arTheme['BIGBANNER_SLIDESSHOWSPEED']['VALUE']));
  $animationSpeed = abs(intval($arTheme['BIGBANNER_ANIMATIONSPEED']['VALUE']));
  $bAnimation = ($slideshowSpeed && strlen($arTheme['BIGBANNER_ANIMATIONTYPE']['VALUE']));
  if($arTheme['BIGBANNER_ANIMATIONTYPE']['VALUE'] === 'FADE'){
    $animationType = 'fade';
  }
  else{
    $animationType = 'slide';
    $animationDirection = 'horizontal';
    if($arTheme['BIGBANNER_ANIMATIONTYPE']['VALUE'] === 'SLIDE_VERTICAL'){
      $animationDirection = 'vertical';
    }
  }
  ?>
  <?$bIndexBot = (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) && strpos($_SERVER['HTTP_USER_AGENT'], 'Lighthouse') !== false); // is indexed yandex/google bot?>
  <div class="banners-big front">
    <div class="maxwidth-banner">
      <div class="flexslider unstyled<?=($bIndexBot ? ' visible' : '');?> <?=($animationDirection == 'vertical' ? 'vertical' : '')?>" data-plugin-options='{"directionNav": true, "controlNav": true, <?=($bAnimation ? '"slideshow": true,' : '"slideshow": false,')?> <?=($animationType ? '"animation": "'.$animationType.'",' : '')?> <?=($animationDirection ? '"direction": "'.$animationDirection.'",' : '')?> <?=($slideshowSpeed >= 0 ? '"slideshowSpeed": '.$slideshowSpeed.',' : '')?> <?=($animationSpeed >= 0 ? '"animationSpeed": '.$animationSpeed.',' : '')?> "animationLoop": true}'>
        <ul class="slides items">
          <?foreach($arResult['ITEMS'] as $i => $arItem):?>
            
<?endif;?>


Now the slide time is 5,000ms, how and where would it be correct to change it to 10,000ms?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-10-20
@Deemc

Good afternoon, look for this setting in the theme settings of your solution, or change it directly in the code:
$slideshowSpeed ​​= 10000

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question