Last active
October 2, 2015 18:18
-
-
Save jo-snips/2293961 to your computer and use it in GitHub Desktop.
The Events Calendar: Mini Cal Day Link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//set mini cal days as links | |
if( function_exists('tribe_get_linked_day') ) { | |
$date = tribe_get_start_date( '', false, 'Y-m-'.$day.'' ); | |
$return .= ( count($monthView[$day]) ) ? "<a href='" . tribe_get_day_link($date) . "' class='tribe-events-mini-has-event'>$day</a>" : $day; | |
} else { | |
$return .= ( count($monthView[$day]) ) ? "<a class='tribe-events-mini-has-event'>$day</a>" : $day; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This replaces line 127 in /wp-content/plugins/the-events-calendar/views/table-mini.php - make sure to make a copy of this file and place in an 'events' folder in your theme before making changes!