Plugin Directory

Changeset 1221914


Ignore:
Timestamp:
08/16/2015 07:02:49 AM (11 years ago)
Author:
ty_pwd
Message:

fixed today widget visibility bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • weekly-class-schedule/trunk/includes/wcs3_widgets.php

    r840426 r1221914  
    5959       
    6060        foreach ( $schedule as $key => $entry ) {
    61             $start_hour = $entry['start_hour'];
    62             $class_name = $entry['class'];
    63             $output .= "<li>$start_hour - $class_name</li>";
     61            if ( isset( $entry['visible'] ) && $entry['visible'] == 'Visible' ) {
     62                $start_hour = $entry['start_hour'];
     63                $class_name = $entry['class'];
     64                $output .= "<li>$start_hour - $class_name</li>";
     65            }
    6466        }
    6567       
Note: See TracChangeset for help on using the changeset viewer.