v69 category filter

This commit is contained in:
Fred Tempez 2023-11-08 15:06:32 +01:00
parent 550f2a6e42
commit 8f7ff82637
2 changed files with 5 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class common
const ACCESS_TIMER = 1800;
// Numéro de version
const ZWII_VERSION = '1.0.68';
const ZWII_VERSION = '1.0.69';
// URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/';

View File

@ -1,5 +1,9 @@
<?php $startRow = 0; ?>
<?php foreach ($this->getData(['course']) as $courseId => $courseValue): ?>
<!-- Filtre de catégorie -->
<?php if ($courseValue['category'] !== $this->getData(['module', $this->getUrl(0), 'config', 'category'])):?>
<?php continue; ?>
<?php endif; ?>
<?php if ($startRow === 0): ?>
<div class="row workshopRowContainer">
<?php endif; ?>