N
N
Nikita Shchypylov2016-08-31 11:20:00
Smarty
Nikita Shchypylov, 2016-08-31 11:20:00

Why is the "Show more" button not displayed on other sections?

Hello everyone
So, the problem is in the personal wardrobe (we are on a site that offers the services of creating your own wardrobe)
And so, we have a bunch of sections.
If the photo is more than 38, a more button appears.
Here is the code:

{if $photo['navi']['count'] > 40 && $photo['navi']['now'] neq $photo['navi']['total']  } {* 38 количество плиток, если их меньше чем 38, не должена выводиться кнопака "Загрузить еще"*}

  <div class="more-wrap">
    <span class="loader"></span>
    <a class="more" rel="{if $photo['navi']['now'] neq $photo['navi']['total'] - 1}{$url}{if $photo['navi']['next'] }&{$photo['navi']['next']}{/if}{/if}">
      <span class="more-text">{\I::show_more}</span>
    </a>
  </div>
{/if}


On the main section, where all the photos are, a button is displayed. On others, where it is more than 38, it is not.
The first time I received a similar task, so I will be glad to any way to solve the problem.

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