setToday( $todayyy, $todaymm, $todaydd ); $cal1->setCalendarData(); $caption1 = __( 'This month', 'usces' ) . '(' . sprintf( __( '%2$s/%1$s', 'usces' ), $todayyy, $todaymm ) . ')'; /* Next month */ list( $nextyy, $nextmm, $nextdd ) = getAfterMonth( $todayyy, $todaymm, 1, 1 ); $cal2 = new calendarData(); $cal2->setToday( $nextyy, $nextmm, $nextdd ); $cal2->setCalendarData(); $caption2 = __( 'Next month', 'usces' ) . '(' . sprintf( __( '%2$s/%1$s', 'usces' ), $nextyy, $nextmm ) . ')'; ob_start(); ?>
getRow(); for ( $i = 0; $i < $cal1_row; $i++ ) : ?> getDateText( $i, $d ); if ( '' != $mday ) : $business = ( isset( $usces->options['business_days'][ $todayyy ][ $todaymm ][ $mday ] ) ) ? (int) $usces->options['business_days'][ $todayyy ][ $todaymm ][ $mday ] : 1; if ( $mday == $todaydd ) { if ( 1 === $business ) { $style = ' class="businesstoday"'; } else { $style = ' class="businessday businesstoday"'; } } else { $style = ( 1 === $business ) ? '' : ' class="businessday"'; } ?>
>  
getRow(); for ( $i = 0; $i < $cal2_row; $i++ ) : ?> getDateText( $i, $d ); if ( '' != $mday ) : $business = ( isset( $usces->options['business_days'][ $nextyy ][ $nextmm ][ $mday ] ) ) ? (int) $usces->options['business_days'][ $nextyy ][ $nextmm ][ $mday ] : 1; $style = ( 1 === $business ) ? '' : ' class="businessday"'; ?>
>  
      ' . __( 'Holiday for Shipping Operations', 'usces' ) . ')' . "\n"; echo apply_filters( 'usces_filter_widget_calendar', $afterword );