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 do NOT include the above opening php tag | |
function my_itemised_surcharge( $attendees ){ | |
$options = get_option( 'events_organization_settings' ); | |
$currency = $options['currency_symbol']; | |
$this->SetFillColor( 239,239,239 ); | |
//var_dump($attendees); | |
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
// suggested code placement is right after the line that says: | |
// $pdf->ImprovedTable($header, $attendees, $w, $alling); | |
$pdf->Ln(1); | |
$pdf->my_itemised_surcharge($attendees); |
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 do not include the opening PHP tag. | |
function mycustom_filter_gettext( $translated, $original, $domain ) { | |
// This is an array of original strings | |
// and what they should be replaced with | |
$strings = array( | |
' or ' => '', | |
// Add some more strings here |
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 | |
//List Attendees Template | |
//Show a list of attendees using a shortcode | |
//[LISTATTENDEES] | |
//[LISTATTENDEES limit="30"] | |
//[LISTATTENDEES show_expired="false"] | |
//[LISTATTENDEES show_deleted="false"] | |
//[LISTATTENDEES show_secondary="false"] | |
//[LISTATTENDEES show_gravatar="true"] | |
//[LISTATTENDEES paid_only="true"] |
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 do not include the opening PHP tag. | |
function mycustom_filter_gettext( $translated, $original, $context, $domain ) { | |
// This is an array of original strings | |
// and what they should be replaced with | |
$strings = array( | |
'Attendee Information' => 'Participant Information', |
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
<-- MAIN CONTENT --> | |
<table class="head-wrap" bgcolor="#999999"> | |
<tbody> | |
<tr> | |
<td></td> | |
<td class="header container"> | |
<div class="content"> | |
<table bgcolor="#999999"> | |
<tbody> | |
<tr> |
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 do NOT include the opening php tag, except of course if you're starting with a blank file | |
function mycustom_filter_gettext( $translated, $original, $domain ) { | |
// This is an array of original strings | |
// and what they should be replaced with | |
$strings = array( | |
'%1$sCongratulations%2$sYour registration has been successfully processed.%3$sCheck your email for your registration confirmation or click the button below to view / download / print a full description of your purchases and registration information.' => 'Thank you for submitting payment. Your order has been successfully completed. It is important for you to complete the TEAM REGISTRATION form if you are playing in the croquet tournament. Click the button below to visit the registration form.', | |
// Add some more strings here |
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: Event Question Fix | |
Plugin URI: | |
Description: This Plugin corrects issues for event espresso where a new event editor cannot see all of the questions for events. | |
Version: | |
Author: | |
Author URI: | |
License: | |
License URI: |
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 do NOT include the opening php tag, except of course if you're starting with a blank file | |
function mycustom_filter_gettext( $translated, $original, $domain ) { | |
// This is an array of original strings | |
// and what they should be replaced with | |
$strings = array( | |
'Please choose a payment option' => 'Please select the Paypal icon below to be taken to the Paypay site for payment', | |
// Add some more strings here |
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 | |
// The Event ID. | |
$event_id = 42; | |
//Pull the event object using the ID. | |
$event = EEM_Event::instance()->get_one_by_ID($event_id); | |
//Check we have an instance of an EE_Event | |
if ( $event instanceof EE_Event ) { |