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 | |
| /* | |
| * Shows the event for the first day and remove it from the rest in a multi-day event. | |
| * Limited to month view only | |
| * | |
| * Author: Barry Hughes | |
| */ | |
| function reduce_month_view_single_events( $events ) { | |
| static $rendered_ids = 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 | |
| /** | |
| * Allows visitors to page forward/backwards in any direction within month view | |
| * an "infinite" number of times (ie, outwith the populated range of months). | |
| * Author: Barry Hughes | |
| */ | |
| if ( class_exists( 'Tribe__Events__Main' ) ) { | |
| class ContinualMonthViewPagination { | |
| public function __construct() { |
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 | |
| /** | |
| * Community Tickets > Change 'PayPal Split Payments' title for custom one | |
| * | |
| * Author: Barry Hughes | |
| */ | |
| add_action( 'init', function() { | |
| $gateways = WC_Payment_Gateways::instance()->get_available_payment_gateways(); | |
| if ( isset( $gateways['tribe-paypal-adaptive-payments'] ) ) { |
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 | |
| /** | |
| * Filter Bar plugin | |
| * Always show open filters in mobile views | |
| * Author: Barry Hughes | |
| */ | |
| add_action( 'wp_footer', function() { | |
| if ( | |
| ! class_exists( 'Tribe__Events__Filterbar__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 | |
| /** | |
| * Single Event Template | |
| * A single event. This displays the event title, description, meta, and | |
| * optionally, the Google map for the event. | |
| * | |
| * Override this template in your own theme by creating a file at [your-theme]/tribe-events/single-event.php | |
| * | |
| * @package TribeEventsCalendar | |
| * @version 4.3 |
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
| /* Provides some space in week view for events that share same start date/time */ | |
| .tribe-events-grid .type-tribe_events { | |
| transition: left 0.4s, right 0.4s; | |
| } | |
| .tribe-events-grid div.tribe-event-shared-start-time-1, | |
| .tribe-events-grid div.tribe-event-shared-start-time-2 { | |
| margin-top: -10px; | |
| } |
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 | |
| /** | |
| * Move the export events link to before the calendar page | |
| */ | |
| function tribe_move_calendar_export_link() { | |
| if ( function_exists( 'tribe' ) ) { | |
| remove_action( 'tribe_events_after_footer', array( tribe( 'tec.iCal' ), 'maybe_add_link' ) ); | |
| add_action( 'tribe_events_before_header', array( tribe( 'tec.iCal' ), 'maybe_add_link' ), 11, 1 ); | |
| } | |
| } |
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 | |
| /** | |
| * This template renders the RSVP ticket form | |
| * | |
| * Override this template in your own theme by creating a file at: | |
| * | |
| * [your-theme]/tribe-events/tickets/rsvp.php | |
| * | |
| * @version 4.5.2 | |
| * |
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 | |
| // Set target '_blank' for tribe_get_event_website_link() | |
| add_filter( 'tribe_get_event_website_link_target', function(){ return '_blank'; }, 10 ); | |
| // Set the event title as label for tribe_get_event_website_link() | |
| add_filter( 'tribe_get_event_website_link_label', 'custom_event_website_link_label', 10 ); | |
| function custom_event_website_link_label() { | |
| if ( ! tribe_is_month() ) { |
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 | |
| /** | |
| * Tickets Email Template | |
| * The template for the email with the purchased tickets when using ticketing plugins (Like WooTickets) | |
| * | |
| * Override this template in your own theme by creating a file at [your-theme]/tribe-events/tickets/email.php | |
| * | |
| * This file is being included in events/lib/tickets/Tickets.php | |
| * in the function generate_tickets_email_content. That function has a $tickets | |
| * array with elements that have this fields: |