| | |
| | | protected function renderGrid(): void |
| | | { |
| | | ?> |
| | | <div class="item-grid"></div> |
| | | <div class="item-grid"> |
| | | <?php |
| | | $total = count($this->config['content']) - 1; |
| | | for ($i = 1; $i <= 36; $i++) { |
| | | $rand = rand(0, $total); |
| | | $config = Features::getConfig($this->config['content'][$rand]); |
| | | $icon = jvbIcon($config['icon']??'logo-triangle'); |
| | | ?> |
| | | <div class="placeholder"><?=apply_filters('jvbFeedPlaceholder', $icon) ?></div> |
| | | <?php |
| | | } |
| | | ?> |
| | | </div> |
| | | <?php |
| | | } |
| | | |
| | |
| | | <p>Try tweaking those filters a bit.</p> |
| | | <p>Edmonton\'s got talent - let\'s find it.</p> |
| | | </div>', $this->config). '</template>'; |
| | | |
| | | echo '<template class="placeholderTemplate"><div class="placeholder">'.apply_filters('jvbFeedPlaceholder', '').'</div></template>'; |
| | | echo '<template class="placeholderTemplate"><div class="placeholder">'.apply_filters('jvbFeedPlaceholder', jvbIcon('logo-triangle')).'</div></template>'; |
| | | } |
| | | |
| | | /** |