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
| @media print{ | |
| * {display:none!important;} | |
| } |
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 | |
| function rpofse_remove_invoice_from_event($payment_data) { | |
| extract( $payment_data ); | |
| if ( $event_id==74 ) { //check to see if this is the event with the ID of #74 | |
| remove_action( 'action_hook_espresso_display_offline_payment_gateway', 'espresso_display_invoice' ); | |
| } | |
| } | |
| add_action ( 'action_hook_espresso_display_offline_payment_gateway', 'rpofse_remove_invoice_from_event', 9 ); |
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: Event Details | |
| * | |
| * This is a Genesis-ready template that will display a single event | |
| * | |
| * Event Registration and Management Plugin for WordPress | |
| * | |
| * @ package Event Espresso | |
| * @ author Seth Shoultes |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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 | |
| add_action('action_hook_espresso_social_display_buttons', 'single_custom_cart_link'); | |
| function single_custom_cart_link($event_id) { | |
| global $wpdb; | |
| $event_name = $wpdb->get_var("SELECT event_name FROM " . EVENTS_DETAIL_TABLE . " WHERE id='" . $event_id . "'"); | |
| ?><div class="custom-cart-link" style="display:block;"> |
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 | |
| if (!function_exists('espresso_ticket_information')) { | |
| function espresso_ticket_information($atts) { | |
| global $wpdb; | |
| extract($atts); | |
| $price_option = "{$price_option}"; | |
| $type = "{$type}"; |
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 | |
| function my_change_check( $content ) { | |
| $content = str_replace( '<td>Check</td>', '<td>Cheque</td>', $content); | |
| return $content; | |
| } |
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 | |
| function espresso_ticket_information($atts) { | |
| global $wpdb; | |
| extract($atts); | |
| $price_option = "{$price_option}"; | |
| $type = "{$type}"; | |
| switch ($type) { | |
| case 'ticket': |
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 | |
| function espresso_display_purchase_order($payment_data) { | |
| global $org_options; | |
| extract($payment_data); | |
| $default_gateway_version = empty($default_gateway_version) ? '' : $default_gateway_version; | |
| echo '<!-- Event Espresso Purchase Order Gateway Version ' . $default_gateway_version . '-->'; | |
| $po_payment_settings = get_option('event_espresso_purchase_order_payment_settings'); |
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 | |
| //* Do NOT include the opening php tag | |
| //* Load Lato and Merriweather Google fonts | |
| add_action( 'wp_enqueue_scripts', 'bg_load_google_fonts' ); | |
| function bg_load_google_fonts() { | |
| wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:300,700|Merriweather:300,700', array(), CHILD_THEME_VERSION ); | |
| } |