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: List Venues/Organizers Shortcodes | |
* Description: Adds shortcodes to help list venues and organizers. More info at http://m.tri.be/194s | |
* Author: Modern Tribe, Inc | |
* Author URI: http://theeventscalendar.com | |
* Version: 1.1 | |
* License: GPL v3 - see http://www.gnu.org/licenses/gpl.html | |
* | |
* The Events Calendar: Venue/Organizer Shortcodes |
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 | |
/** | |
* Please see single-event.php in this directory for detailed instructions on how to use and modify these templates. | |
* | |
* Override this template in your own theme by creating a file at: | |
* | |
* [your-theme]/tribe-events/month/tooltip.php | |
* @version 4.4 | |
*/ | |
?> |
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 | |
/** | |
* Event Submission Form | |
* The wrapper template for the event submission form. | |
* | |
* Override this template in your own theme by creating a file at | |
* [your-theme]/tribe-events/community/edit-event.php | |
* | |
* @since 3.1 | |
* @version 4.5 |
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
/* | |
* Prevents users from adding tickets to cart unless they have selected at least one ticket | |
*/ | |
function tribe_prevent_add_cart_empty() { | |
echo ' | |
<script type="text/javascript"> | |
jQuery( document ).ready(function(){ | |
jQuery( "form.cart" ).each(function(){ | |
var tribe_empty_form_message = "Please select at least one item before submitting"; | |
var tribe_cart_submit_button = jQuery( this ).find( "button[type=submit]" )[0]; |
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 | |
/** | |
* Renders the WooCommerce tickets table/form | |
* | |
* Override this template in your own theme by creating a file at: | |
* | |
* [your-theme]/tribe-events/wootickets/tickets.php | |
* | |
* @version 4.7.1 | |
* |
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 | |
/** | |
* Single Event Meta (Additional Fields) Template | |
* | |
* Override this template in your own theme by creating a file at: | |
* [your-theme]/tribe-events/pro/modules/meta/additional-fields.php | |
* | |
* @package TribeEventsCalendarPro | |
*/ |
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 View Single Day | |
* This file contains one day in the month grid | |
* | |
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/month/single-day.php | |
* | |
* @package TribeEventsCalendar | |
* | |
*/ |
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 | |
// Function to add credits to cart (in main class) | |
public function listen_for_credit_purchases() { | |
// if ( ! wp_verify_nonce( '' ) ) { | |
// die( '-1' ); | |
// } | |
$product_quantities = $_POST['product_quantity']; |
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 | |
/** | |
* Renders the WooCommerce tickets table/form | |
* | |
* Override this template in your own theme by creating a file at: | |
* | |
* [your-theme]/tribe-events/wootickets/tickets.php | |
* | |
* @version 4.8.3 | |
* |
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_mobile_default_view(){ | |
?> | |
<script> | |
if(typeof tribe_ev !== "undefined"){ | |
tribe_ev.fn.maybe_default_view_change = function(){ | |
if (tribe_ev.data.redirected_view || !tribe_ev.data.default_view || !tribe_ev.data.default_mobile_view || tribe_ev.data.default_view == tribe_ev.data.default_mobile_view || !tribe_ev.state.view || tribe_ev.data.default_mobile_view == tribe_ev.state.view) { | |
return false; | |
} | |
var $body = jQuery( 'body' ); | |
if ( ! $body.hasClass( 'tribe-mobile' ) ) { |