Changeset 3474201
- Timestamp:
- 03/04/2026 05:51:47 AM (4 weeks ago)
- Location:
- formdev/trunk
- Files:
-
- 3 edited
-
formdev.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
templates/planning-calendar.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
formdev/trunk/formdev.php
r3473710 r3474201 5 5 * Plugin URI: https://www.form-dev.fr 6 6 * Description: Synchroniser automatiquement les formations présentes dans votre CRM Formdev 7 * Version: 1.4. 77 * Version: 1.4.8 8 8 * Author: Formdev 9 9 * Author URI: https://app.form-dev.fr … … 16 16 // Définition de la version du plugin 17 17 if (!defined('FORMEDEV_VERSION')) { 18 define('FORMEDEV_VERSION', '1.4. 7');18 define('FORMEDEV_VERSION', '1.4.8'); 19 19 } 20 20 -
formdev/trunk/readme.txt
r3473710 r3474201 5 5 Tested up to: 6.9.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.4. 77 Stable tag: 1.4.8 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 68 68 69 69 == Changelog == 70 = 1.4.8 = 71 * not showing formation in calendar if not module 72 70 73 = 1.4.7 = 71 74 * fix planning start date and slider -
formdev/trunk/templates/planning-calendar.php
r3473710 r3474201 363 363 364 364 $is_active = ($index === $current_index); 365 366 // Ne garder que les formations qui ont au moins un module dans ce mois 367 $sessions_rows_this_month = []; 368 foreach ($sessions_rows as $session_key => $row) { 369 $has_module_in_month = false; 370 foreach ($month_days as $md) { 371 if (!empty($row['days'][$md['date']])) { 372 $has_module_in_month = true; 373 break; 374 } 375 } 376 if ($has_module_in_month) { 377 $sessions_rows_this_month[$session_key] = $row; 378 } 379 } 365 380 ?> 366 381 <table class="calendar-table calendar-table-sessions-view calendar-month <?php echo $is_active ? 'is-active' : 'is-hidden'; ?>" … … 380 395 <tbody> 381 396 <?php 382 if (empty($sessions_rows )) :397 if (empty($sessions_rows_this_month)) : 383 398 ?> 384 399 <tr> … … 387 402 <?php 388 403 else : 389 foreach ($sessions_rows as $session_key => $row) :404 foreach ($sessions_rows_this_month as $session_key => $row) : 390 405 $formation_url = null; 391 406 $product_id = null;
Note: See TracChangeset
for help on using the changeset viewer.