Skip to content

Commit

Permalink
Merge pull request #3 from joseffallman/week-number-list-view
Browse files Browse the repository at this point in the history
Looks good! [Week number in list view]
  • Loading branch information
joedolson authored Jun 6, 2018
2 parents 2ce9f28 + ad0800c commit 05c760f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/my-calendar-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -1741,8 +1741,10 @@ function my_calendar( $args ) {
}
}

if ( date( 'N', $start ) == $end_of_week && 'list' != $params['format'] ) {
$body .= "</$tr>\n"; // End of 'is beginning of week'.
if ( date( 'N', $start ) == $end_of_week ) {
if ( 'list' != $params['format'] ) {
$body .= "</$tr>\n"; // End of 'is beginning of week'.
}
$week_number_shown = false;
}
}
Expand Down

0 comments on commit 05c760f

Please sign in to comment.