V
V
viktorross2018-10-27 12:30:02
PHP
viktorross, 2018-10-27 12:30:02

What can you think of to display in the carousel?

Hello, tell me please, is it possible to display something like this in owl-carousel?

<div class="categories page_bounds" style="margin-bottom:50px;">
{assign var="in" value="1"}
  {foreach from=$categories item=v name=cat}
    {if $v.level==1}
    
    <a href="{if $seo_settings.enable_mod_rewrite}{seo->makeSearchCategoryLink p1=$v.id p2=$v.name}{else}{$live_site}/listings.php?category={$v.id}{/if}" class="main_cat">
      {if $v.description}<div class="cat_desc">{$v.description}</div>{/if}
      <div class="cat_title">{$v.name}</div>
      
    </a>
    
    {if $in%$appearance.max_cat_per_row==0}
    </div><div class="categories page_bounds" style="margin-bottom:50px;">
    {/if}
    
    {assign var="in" value="`$in+1`"}
    {/if}
  {/foreach}

</div>

Now everything is displayed in several rows, but I would like to do it in the form of a carousel in a row. Now it starts to work, if only to replace this code with each link separately

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question