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 | |
/** | |
* Simple Example of a client calling WordPress OAuth Server | |
* Replace the variabls below with your own. | |
* | |
* @author Justin Greer <justin@justin-greer.com> | |
*/ | |
$server_url = 'https://wordpress.dev'; | |
$client_id = '6lkmsGocFcvxVG4S5s3QCHGi5Pvutl8AHtXaalmP'; | |
$client_secret = 'yRntyrmDTquw7bOd0kHuFQ5mj2wtnSjVKGpi8MW2'; |
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 Tickets Plus: WooCommerce: Force all tickets to be "Sold Individually". | |
* | |
* By default, this limits the purchase quantity to 1, but this is quantity is | |
* filterable with `woocommerce_add_to_cart_sold_individually_quantity`. | |
* | |
* @see Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_event_for_ticket() | |
* @see WC_Product::is_sold_individually() | |
* @see WC_Cart::add_to_cart() |
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 | |
/* Tribe, limit ticket qty */ | |
function tribe_limit_tickets() { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready( function( $ ) { | |
// do this if tickets available | |
if ( $('.tribe-events-tickets').length ) { | |
// set max qty to 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 if ($showPagination): ?> | |
<?php echo $pagination;?> | |
<?php endif; ?> |
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 | |
defined('C5_EXECUTE') or die(_('Access Denied')); | |
class BasePackage extends Package { | |
/*************************************************************** | |
* The following variables can be defined by child classes. | |
* | |
* Only define the ones you need. |
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
@mixin inline-block { | |
display: -moz-inline-stack; // ff 2 | |
display: inline-block; | |
zoom:1; *display: inline; _height: 15px; // ie 6-7 | |
} |