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
class Tribe_EDDTickets_Fix31092 { | |
/** | |
* Override EDDTickets' own print_ticket_url() callback. | |
*/ | |
public function __construct() { | |
add_filter( 'edd_download_file_url_args', array( $this, 'print_ticket_url' ), 20 ); | |
} | |
/** | |
* @param $item |
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
/** | |
* You could add this snippet to your theme's functions.php file | |
* or any other suitable location. | |
*/ | |
add_filter( 'tribe_events_filter_values', 'filter_categories_in_category_filter', 10, 2 ); | |
/** | |
* Handles modifying the list of event categories within Filter Bar. | |
* | |
* @param $values |
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 | |
/** | |
* Provides access to the main TEC object. | |
* | |
* @return TribeEvents|Tribe__Events__Events | |
*/ | |
function prefix_get_event_instance() { | |
static $instance; | |
if ( ! isset( $instance ) && class_exists( 'Tribe__Events__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 | |
// --------------------------------------------------------------------------------------- | |
// When inserting this into a theme's functions.php file you can copy and paste everything | |
// below this comment (no need to include the opening "<?php" tag, etc!) | |
// --------------------------------------------------------------------------------------- | |
/** | |
* Shortens the event description used within Google Calendar links. | |
* |
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 | |
// ----------------------------------------------------------------------------- | |
// The code below this comment should be added to the theme's functions.php file | |
// ----------------------------------------------------------------------------- | |
// Compatibility fix to help run WooCommerce Tickets 3.9 with WooCommerce 2.3.x | |
if ( class_exists( 'TribeWooTickets' ) ) { | |
// Form reference to ticket processing callback | |
$wootickets = TribeWooTickets::get_instance(); |
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 | |
/** | |
* Moves the add-to-cart functionality to a later point in the request (ie, | |
* after the existing cart contents have been populated). | |
*/ | |
function wootix_rehook_add_to_cart() { | |
$wootickets = TribeWooTickets::get_instance(); | |
$callback = array( $wootickets, 'process_front_end_tickets_form' ); | |
// Switch to a later action |
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
class EventsListWidget_NewlyAddedEvents { | |
protected $constraints = array( | |
'sidebar_id' => null, | |
'widget_id' => null, | |
'widget_title' => null | |
); | |
public function __construct( array $constraints = array() ) { | |
$this->constraints = array_merge( $this->constraints, $constraints ); | |
add_filter( 'widget_display_callback', array( $this, 'setup' ), 10, 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
/** | |
* Allows visitors to page forward/backwards in any direction within month view | |
* an "infinite" number of times (ie, outwith the populated range of months). | |
*/ | |
class ContinualMonthViewPagination { | |
protected $tec; | |
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 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 | |
namespace Fragen\Category_Colors; | |
?>/* The Events Calendar Category Colors <?php echo Main::$version ?> generated CSS */ | |
.teccc-legend a, .tribe-events-calendar a, #tribe-events-content .tribe-events-tooltip h4 | |
{ | |
font-weight: <?php echo $options['font_weight'] ?>; | |
} | |
.tribe-events-list .vevent.hentry h2 { padding-left: 5px; } |
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
/** | |
* Sample CSS customizations for The Events Calendar and related plugins. | |
* | |
* Contents: 1. Tribe Bar Customizations | |
* 2. General Customizations for All Views | |
* 3. Month View Customizations | |
* 4. List View Customizations | |
* 5. Single Event Page Customizations | |
* | |
* Usage: This file can be used "as is" - simply save it as "tribe-events.css" within |