Forked from jesseeproductions/tec-ical-above-month
Last active
August 29, 2015 14:24
-
-
Save elimn/71426197720518e7afe6 to your computer and use it in GitHub Desktop.
MT | TEC | Fix iCal below Month view
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
<?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