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
// ---- | |
// libsass (v3.3.6) | |
// ---- | |
/// | |
/// Add styles on active/focus/hover | |
/// | |
/// @group Functions | |
/// | |
/// @content Really more of a parameter as the mixin will output an empty rule if none is provided. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
module.exports = { | |
main: ['release/<%= pkg.version %>'], | |
clean: ['assets/svg/min/*.svg'] | |
}; |
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 | |
/* | |
* 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 ) { | |
// If this text domain doesn't start with "tribe-", "the-events-", or "event-" bail. |
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
add_filter( 'tribe_tickets_plus_edd_cart_url', 'detect_edd_shortcode_cart'); | |
/** | |
* Get URL of EDD shortcode cart - if it is in use. | |
* If so use it for the tickets cart URL instead of checkout. | |
* | |
* @return string|null The url or null if the shortcode is not in use. | |
*/ | |
function detect_edd_shortcode_cart() { | |
global $wpdb; |
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 | |
// Put this in your theme's functions.php | |
// Add any title templates you want to modify. | |
$tribe_title_href_templates = [ | |
'events/v2/month/calendar-body/day/calendar-events/calendar-event/title', | |
]; | |
// Loop through them! | |
foreach ( $tribe_title_href_templates as $hook_name ) { |
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
// Add the below to your theme functions.php file! | |
function move_virtual_embed() { | |
// Inject before the content instead. | |
add_action( | |
'tribe_events_single_event_before_the_content', | |
function() { | |
return tribe( 'events-virtual.hooks' )->action_add_event_single_video_embed(); | |
}, | |
15, |
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 | |
add_filter( | |
'tribe_tickets_plus_qr_enabled', | |
function( $enabled, $ticket ) { | |
if ( empty( $ticket['event_id'] ) ) { | |
return $enabled; | |
} | |
$event = tribe_get_event( $ticket['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
<?php | |
/** | |
* Description: Adds the 'Export to Google Calendar / iCal' links to the bottom of the ticket email | |
* | |
* Instructions: Copy the snippet into your (preferably child) theme's functions.php file. | |
* Note: Design can be adjusted with css in wp-content/plugins/event-tickets/src/views/tickets/email.php | |
* or better yet, create a template override for that. | |
* Info on template overrides can be found in our Themer's Guide | |
* https://theeventscalendar.com/knowledgebase/themers-guide/ |
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 | |
/** | |
* Limit Slider Revolution's WP_Query to only include Featured Events that have a featured image | |
* | |
* @link https://theeventscalendar.com/knowledgebase/k/integrating-the-events-calendar-with-slider-revolution-and-essential-grid/ | |
* | |
* Based on https://gist.github.com/cliffordp/30ac2152a8264ef27235b46b7d16332d | |
* Similar code for Essential Grid: https://gist.github.com/Camwyn/15e1936639a5ea7b1575b35f252ebd40 | |
* Same Slider Revolution code except without requirement for being a Featured Event (works for more than just The Events Calendar): https://gist.github.com/Camwyn/d7128fb83074d75e1562adac2735a834 | |
* |