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 | |
global $current_user; | |
get_currentuserinfo(); | |
if (is_user_logged_in() && $current_user->ID == $post->post_author) { | |
// Build a list of attendees | |
$attendeeList = TribeEventsTickets::get_event_attendees($event_id); | |
$customerList = 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
add_action( 'woocommerce_cart_calculate_fees', 'df_add_handling_fee' ); | |
function df_add_handling_fee( $cart_object ) { | |
global $woocommerce; | |
// $specialfeecat = 3711; // category id for the special fee | |
$spfee = 0.00; // initialize special fee | |
$spfeeperprod = 2.50; //special fee per product | |
//Getting Cart Contents. | |
$cart = $woocommerce->cart->get_cart(); |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
ErrorDocument 404 /index.php?error=404 | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> |
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
//Remove unused styles from The Events Calendar plugin | |
function bd_remove_ecp_styles() | |
{ | |
$styles = array( | |
'tribe-events-bootstrap-datepicker-css', | |
'tribe-events-calendar-style', | |
'tribe-events-custom-jquery-styles', | |
'tribe-events-calendar-style', | |
'tribe-events-calendar-pro-style' | |
); |
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 | |
$catargs = array( | |
'type' => 'tribe_events', | |
'orderby' => 'name', | |
'order' => 'ASC', | |
'hide_empty' => 1, | |
'hierarchical' => 1, | |
'number' => 5, | |
'taxonomy' => 'tribe_events_cat', | |
'pad_counts' => false |
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
.with-background .onecolumn-container, .with-background .twocolumn-container .left-column, .with-background .twocolumn-container .right-column .supporter-pic, .with-background .admin-panel, .with-background .action-panel, .with-background .point-pic-right, .with-background .box { | |
background: #d4c89e; | |
background: rgba(212,200,158,0.8); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#CCFFFFFF, endColorstr=#CCFFFFFF); | |
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#CCFFFFFF, endColorstr=#CCFFFFFF)"; | |
} | |
/* edited version: */ | |
.with-background .onecolumn-container, .with-background .twocolumn-container .left-column, .with-background .twocolumn-container .right-column .supporter-pic, .with-background .admin-panel, .with-background .action-panel, .with-background .point-pic-right, .with-background .box { |
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 | |
/** | |
* Return a custom field stored by the Advanced Custom Fields plugin | |
* | |
* @global $post | |
* @param str $key The key to look for | |
* @param mixed $id The post ID (int|str, defaults to $post->ID) | |
* @param mixed $default Value to return if get_field() returns nothing | |
* @return mixed | |
* @uses get_field() |
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
// Not sure if this works - but it should. | |
<div class="bd-grid"> | |
<div class="bd-col"> | |
<img src=""> | |
</div> | |
<div class="bd-col"> | |
<img src=""> | |
</div> | |
<div class="bd-col"> |
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 | |
/** | |
* Template Name: Week Test | |
*/ | |
?> | |
<?php | |
global $post; |
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
//Convert discovered urls to proper clickable state | |
add_filter( 'the_content', 'make_clickable' ); |