Add greyscale printable calendar mode
Add a black_white URL option for printable calendars and expose it in both printable URL builders. Apply a high-legibility greyscale print style with white day cells, grey event blocks, and dark borders/text. Condense month-cell event typography to fit more matchup text in each calendar day. Cover black_white propagation in the printable URL helper test.
This commit is contained in:
@@ -129,6 +129,18 @@ class Test_SP_Schedule_Exporter extends WP_UnitTestCase {
|
||||
$this->assertSame( 'abbreviation', $query['field_label'] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Printable URLs should carry black-and-white mode when requested.
|
||||
*/
|
||||
public function test_printable_url_accepts_black_white_mode() {
|
||||
$url = tse_sp_schedule_exporter_get_printable_url( 12, 56, 'letter', 78, false, 90, false, 'name', 'name', 'selected_first', true );
|
||||
$query = array();
|
||||
|
||||
wp_parse_str( (string) wp_parse_url( $url, PHP_URL_QUERY ), $query );
|
||||
|
||||
$this->assertSame( '1', $query['black_white'] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Single-team printable entries should keep the existing opponent perspective.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user