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
| function tribe_mobile_default_view(){ | |
| ?> | |
| <script> | |
| if(typeof tribe_ev !== "undefined"){ | |
| tribe_ev.fn.maybe_default_view_change = function(){ | |
| if (tribe_ev.data.redirected_view || !tribe_ev.data.default_view || !tribe_ev.data.default_mobile_view || tribe_ev.data.default_view == tribe_ev.data.default_mobile_view || !tribe_ev.state.view || tribe_ev.data.default_mobile_view == tribe_ev.state.view) { | |
| return false; | |
| } | |
| var $body = jQuery( 'body' ); | |
| if ( ! $body.hasClass( 'tribe-mobile' ) ) { |
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
| function tribe_mobile_default_view(){ | |
| ?> | |
| <script> | |
| if(typeof tribe_ev !== "undefined"){ | |
| tribe_ev.fn.maybe_default_view_change = function(){ | |
| if (tribe_ev.data.redirected_view || !tribe_ev.data.default_view || !tribe_ev.data.default_mobile_view || tribe_ev.data.default_view == tribe_ev.data.default_mobile_view || !tribe_ev.state.view || tribe_ev.data.default_mobile_view == tribe_ev.state.view) { | |
| return false; | |
| } | |
| var $body = jQuery( 'body' ); | |
| if ( ! $body.hasClass( 'tribe-mobile' ) ) { |
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
| add_action( 'pre_get_posts', 'tribe_exclude_events_category' ); | |
| function tribe_exclude_events_category( $query ) { | |
| if ( ! is_singular( 'tribe_events' ) ) { | |
| if ( $query->query_vars['post_type'] == Tribe__Events__Main::POSTTYPE && ! is_tax( Tribe__Events__Main::TAXONOMY ) && empty( $query->query_vars['suppress_filters'] ) ) { | |
| $query->set( 'tax_query', array( | |
| array( |
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 | |
| /** | |
| * BCC event organizers email on all Event Tickets' RSVP and commerce ticket emails so they get a copy of it too | |
| */ | |
| function bcc_all_event_organizers( $headers, $event_id, $order_id ) { | |
| //check if has organizer | |
| if ( ! tribe_has_organizer( $event_id ) ) { | |
| return $headers; | |
| } |
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 | |
| /** | |
| * Month Single Event | |
| * This file contains one event in the month view | |
| * | |
| * Override this template in your own theme by creating a file at [your-theme]/tribe-events/month/single-event.php | |
| * | |
| * @package TribeEventsCalendar | |
| * @version 4.6.21 | |
| * |
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
| function tribe_hide_recurrence_on_homepage( $hide ) { | |
| if ( is_front_page() ) { | |
| $hide = true; | |
| } | |
| return $hide; | |
| } | |
| add_filter( 'tribe_events_pro_should_hide_recurrence', 'tribe_hide_recurrence_on_homepage' ); |
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
| function theme_enqueue_styles() { | |
| wp_register_style('tribemobile', '/wp-content/plugins/the-events-calendar/src/resources/css/tribe-events-full-mobile.min.css', array(), '1.0', '(max-width: 801px)'); | |
| wp_enqueue_style('tribemobile', false, array(), false, '(max-width: 801px)'); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); |
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
| /** | |
| * The Events Calendar: Add Open Graph to <head> of Events Archive views. | |
| * | |
| * @link https://gist.github.com/cliffordp/5ed25b8bfb024efe73d1ce6c42d960aa | |
| * @link http://ogp.me/ | |
| */ | |
| function cliff_add_open_graph_tec_archive_views() { | |
| // !!! CHANGE THIS URL !!! | |
| $tec_archive_view_og_image_url = 'https://theeventscalendar.com/content/uploads/2013/07/screenshots4-2_single-event.png'; |
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 | |
| /** | |
| * Plugin Name: The Events Calendar PRO Extension: Display multiple events with the same venue in Map tooltips. | |
| * Description: Show multiple events with the same venue in PRO's map tooltips. | |
| * Version: 1.1 | |
| * Extension Class: Tribe__Extension__Multiple_Events_Same_Venue | |
| * Author: Modern Tribe, Inc. | |
| * Author URI: http://m.tri.be/1971 | |
| * License: GPLv2 or later | |
| * License URI: https://www.gnu.org/licenses/gpl-2.0.html |