Skip to content

Commit

Permalink
fix uspechy
Browse files Browse the repository at this point in the history
  • Loading branch information
dakur committed Jan 22, 2025
1 parent 1304e64 commit 5065764
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions template-parts/content/content-nase-uspechy.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<div class="hb-eventList hb-mbe-4">
<div class="hb-eventList__grid">
<?php
$counter = 0;
$counter = 1;
foreach ($stories as $story) {
hb_story($story);
if ($displayOnLoad !== null && $counter === $displayOnLoad) {
Expand All @@ -87,10 +87,10 @@
</button>

<div class="hb-eventList__grid hb-eventList__grid--collapse" data-hb-expandable-content>
$counter = 0;
<?php
$counter = 1;
foreach ($stories as $story) {
if ($iterator->counter <= $displayOnLoad) {
if ($counter <= $displayOnLoad) {
$counter++;
continue;
}
Expand Down

0 comments on commit 5065764

Please sign in to comment.