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 | |
| /** | |
| * 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 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: 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 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 | |
| /* | |
| * Prevents Next/Prev pages from being loaded via Ajax in List and Month views | |
| */ | |
| function tribe_prevent_ajax_paging() { | |
| echo " | |
| <script> | |
| jQuery(document).ready(function(){ |
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 | |
| /** | |
| * Adds permalink to bottom of tooltip | |
| * | |
| * Add this template on: | |
| * | |
| * [your-theme]/tribe-events/month/tooltip.php | |
| */ | |
| ?> |
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 vehicle_details() { | |
| // Add new "Vehicle Details" taxonomy | |
| register_taxonomy('vehicle_details', 'vehicle', array( | |
| // Hierarchical taxonomy (like categories) | |
| 'hierarchical' => true, | |
| 'public' => true, |
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 | |
| /* | |
| * EXAMPLE OF CHANGING ANY TEXT (STRING) IN THE EVENTS CALENDAR | |
| * See the codex to learn more about WP text domains: | |
| * http://codex.wordpress.org/Translating_WordPress#Localization_Technology | |
| * Example Tribe domains: 'tribe-events-calendar', 'tribe-events-calendar-pro'... | |
| */ | |
| function tribe_custom_theme_text ( $translation, $text, $domain ) { | |
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 - Conditional Logic to Detect Various Event Related Views/Pages | |
| /*-----------------------------------------------------------------------------------*/ | |
| if ( tribe_is_month() && ! is_tax() ) { // Month View Page | |
| echo 'were on the month view page'; | |
| } elseif ( tribe_is_month() && is_tax() ) { // Month View Category Page |
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 | |
| /* | |
| * Alters event's archive titles | |
| */ | |
| function tribe_alter_event_archive_titles ( $original_recipe_title, $depth ) { | |
| // Modify the titles here | |
| // Some of these include %1$s and %2$s, these will be replaced with relevant dates | |
| $title_upcoming = 'Upcoming Events'; // List View: Upcoming events |
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 | |
| /** | |
| * If a search is conducted in month view but the relevant events | |
| * are in a different month, switch to that month. | |
| * | |
| * Experimental! Especially during live ajax navigation, there are | |
| * parts of this that don't work cleanly (pushstate/URL changes). | |
| * Unsupported, use at own risk. | |
| */ | |
| class Transmogrified_Month_View_Search { |
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 to functions.php | |
| add_filter( 'tribe_get_events_title', 'change_month_title_wording' ); | |
| function change_month_title_wording( $title ) { | |
| return str_replace( 'Events for', '', $title ); | |
| } |