Skip to content

Instantly share code, notes, and snippets.

@elimn
Forked from jesseeproductions/tec-ical-above-month
Last active August 29, 2015 14:24
Show Gist options
  • Save elimn/71426197720518e7afe6 to your computer and use it in GitHub Desktop.
Save elimn/71426197720518e7afe6 to your computer and use it in GitHub Desktop.
MT | TEC | Fix iCal below Month view
<?php
/*
* The Events Calendar - Add iCal Link Below Month View
*/
function tribe_add_month_ical() {
if ( tribe_is_month() ) {
echo '<div class="tribe-events-cal-links">';
echo '<a class="tribe-events-ical tribe-events-button" title="Use this to share calendar data with Google Calendar, Apple iCal and other compatible apps" href="' . esc_url( tribe_get_ical_link() ) . '">+ Export Month\'s Events</a>';
echo '</div>';
}
}
add_action('tribe_events_after_footer', 'tribe_add_month_ical');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment