WCS Widget Bug
-
Hi,
The Today’s classes widget displays classes which are hidden! They are not displayed in the weekly class schedule table (or list), but is shown in the widget. The fix is simple as below, but it needs to be enhanced to take into account if all the classes scheduled today are hidden. Hope this fix makes into the next version asap.
–Amit
@@ -58,9 +58,11 @@ class WCS3_TodayClassesWidget extends WP_Widget { $output .= '<ul class="wcs3-today-classes-widget-list">'; foreach ( $schedule as $key => $entry ) { + if($entry['visible'] != 'Hidden') { $start_hour = $entry['start_hour']; $class_name = $entry['class']; - $output .= " <li>$start_hour - $class_name</li> "; + $output .= " <li>$start_hour - $class_name</li> "; + } } $output .= '';
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WCS Widget Bug’ is closed to new replies.