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 | |
/** | |
* 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 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_reformat_schedule_details( $schedule, $event_id, $before, $after ) { | |
if ( tribe_event_is_multiday( $event_id ) ) { | |
$start_date = tribe_get_start_date( $event_id, false, 'F j' ); | |
$end_date = tribe_get_end_date( $event_id, false, 'F j' ); | |
$end_date = strncmp( $start_date, $end_date, 3 ) === 0 ? tribe_get_end_date( $event_id, false, 'j' ) : $end_date; | |
$start_time = tribe_get_start_time( $event_id ); | |
$end_time = tribe_get_end_time( $event_id ); |
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 tribe_remove_venue_link() { | |
remove_filter( 'tribe_get_venue', array( Tribe__Events__Pro__Main::instance()->single_event_meta, 'link_venue' ) ); | |
} | |
add_action( 'tribe_events_single_meta_before', 'tribe_remove_venue_link', 100 ); |
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
<script> | |
(function($) { | |
$(window).scroll(function() { | |
var scroll = $(window).scrollTop(); | |
if (scroll >= 100) { | |
//clearHeader, not clearheader - caps H | |
$("#main-header").addClass("et-fixed-header"); | |
} | |
}); |
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: 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 |
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
/** | |
* 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 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 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 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 | |
* |