This file contains 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 | |
/* | |
Plugin Name: Events Calendar Pagination Fix | |
Plugin URI: https://tri.be | |
Description: Fix pagination issues with TEC and certain themes | |
Author: Modern Tribe (Ed) | |
Version: 1.1 | |
Author URI: https://tri.be | |
License: GPL2 | |
*/ |
This file contains 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 | |
/** | |
* Single Event Meta Template | |
* | |
* Override this template in your own theme by creating a file at: | |
* [your-theme]/tribe-events/modules/meta.php | |
* | |
* @version 4.6.10 | |
* | |
* @package TribeEventsCalendar |
This file contains 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
/* | |
TEC hide past events in mobile views | |
*/ | |
@media only screen and (max-width: 600px) { | |
.type-tribe_events .tribe-events--is-past-event { | |
display: none !important; | |
} | |
} |
This file contains 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
/* Tribe [tribe_venue_map] shortcode sample */ | |
function tribe_venue_map_logic ( $atts ){ | |
$url = apply_filters( 'tribe_events_google_maps_api', 'https://maps.google.com/maps/api/js' ); | |
$url = $url . '&callback=tribe_venue_map'; | |
wp_enqueue_script( 'tribe_events_google_maps_api', $url, array(), false, true ); | |
wp_enqueue_script( 'jquery' ); | |
add_action('wp_footer', function () { ?> |
This file contains 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 | |
/** | |
* Allows visitors to page forward/backwards in any direction within month view | |
* an "infinite" number of times (ie, outwith the populated range of months). | |
*/ | |
if ( class_exists( 'Tribe__Events__Main' ) ) { | |
class ContinualMonthViewPagination { | |
public function __construct() { | |
add_filter( 'tribe_events_the_next_month_link', array( $this, 'next_month' ) ); | |
add_filter( 'tribe_events_the_previous_month_link', array( $this, 'previous_month' ) ); |
This file contains 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 | |
/* | |
Plugin Name: Always display Eventbrite tickets iFrame | |
Description: Overrides the iFrame HTML code to try and show it anyway. | |
Version: 0.1.0 | |
Author: Modern Tribe | |
Author URI: https://theeventscalendar.com | |
*/ | |
/** |
This file contains 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
function change_upcoming_event_title($text) { | |
if ($text === 'Upcoming Events') return 'Upcoming wine classes'; | |
else return $text; | |
} | |
add_filter('tribe_get_events_title', 'change_upcoming_event_title'); |
This file contains 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
add_filter( 'body_class', 'tribe_events_featured_events_body_class' ); | |
function tribe_events_featured_events_body_class( $classes ) { | |
global $wp_query; | |
$is_featured = get_post_meta( $event_id, "_tribe_featured", true ); | |
if ( $is_featured ) { | |
$classes[] = 'tribe-is-featured'; |
This file contains 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 | |
/* | |
* Removes categories "meetup" and "shindig" from list and month views | |
*/ | |
function tribe_exclude_events_category( $wp_query ) { | |
// Slugs for the categories you wish to hide | |
$exclude_cats = array('meetup', 'shindig'); |
This file contains 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
<Files admin-ajax.php> | |
Order allow,deny | |
Allow from all | |
Satisfy any | |
</Files> | |
<Files wpspin_light.gif> | |
Order allow,deny | |
Allow from all | |
Satisfy any | |
</Files> |