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
| <ul> | |
| <?php | |
| global $wpdb; | |
| $tablename = $wpdb->prefix . events_detail; | |
| $pastevents = $wpdb->get_results("SELECT * FROM $tablename WHERE start_date < curdate() AND event_status <> 'D' "); | |
| foreach ( $pastevents as $pastevent ){ | |
| echo '<li><a href="' . espresso_reg_url($pastevent->id) . '">' . stripslashes($pastevent->event_name) . '</a></li>'; | |
| } | |
| ?> | |
| </ul> |
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 | |
| // start with setting some defaults | |
| /** | |
| * Set defaults | |
| */ | |
| function squelch_taas_set_defaults() { | |
| // Default versions of external scripts | |
| $jquery_ver = '1.9.1'; | |
| $jquery_ui_ver = '1.10.2'; |
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('wp_enqueue_scripts', 'add_calendar_themeroller_stylesheet'); | |
| function add_calendar_themeroller_stylesheet() { | |
| global $org_options; | |
| global $espresso_calendar; | |
| $page_array = explode(',', $espresso_calendar['calendar_pages']); | |
| //print_r($page_array); | |
| if ($espresso_calendar['calendar_pages'] != 0) { | |
| if (!is_page($page_array)) { | |
| return; |
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 (!defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } | |
| do_action('action_hook_espresso_log', __FILE__, 'FILE LOADED', ''); | |
| //Confirmation Page Template | |
| ?> | |
| <div class="espresso_payment_overview event-display-boxes ui-widget" > | |
| <h3 class="section-heading ui-widget-header ui-corner-top"> | |
| <?php _e('Payment Overview', 'event_espresso'); ?> | |
| </h3> | |
| <div class="event-data-display ui-widget-content ui-corner-bottom" > |
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 | |
| /* | |
| Shortcode Name: Espresso Table | |
| Author: Seth Shoultes | |
| Contact: seth@eventespresso.com | |
| Website: http://www.eventespresso.com | |
| Description: Only show events in a CATEGORY within a certain number number of days into the future and a qty. The example below only shows events in a certain category that start within 30 days from the current date. | |
| Usage Example: [ESPRESSO_TABLE max_days="30" qty="3" staff_id="1" order_by="state"] | |
| Custom CSS for the table display | |
| Notes: This file should be stored in your "/wp-content/uploads/espresso/templates/" folder and you should have the custom_includes.php files installed in your "/wp-content/uploads/espresso/" directory. |
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
| //Calculate number of attendees, minus the primary attendee | |
| function espresso_exclude_primary_attendee() { | |
| $sql = " AND is_primary = '0' "; | |
| return $sql; | |
| } | |
| add_filter('filter_hook_espresso_payment_page_count_attendees_sql_where', 'espresso_exclude_primary_attendee', 10); | |
| //Make the primary attendee free | |
| function espresso_primary_attendee_is_free($registration_id) { | |
| global $wpdb; |
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 | |
| //remove the group of fields that get updated on the user profile page | |
| remove_action('personal_options_update', 'event_espresso_extra_profile_fields'); | |
| remove_action('edit_user_profile_update', 'event_espresso_extra_profile_fields'); | |
| //add a custom group of fields to be updated | |
| add_action('personal_options_update', 'my_custom_event_espresso_extra_profile_fields'); | |
| add_action('edit_user_profile_update', 'my_custom_event_espresso_extra_profile_fields'); | |
| function my_custom_event_espresso_extra_profile_fields($user_id) { |
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 | |
| /* | |
| Shortcode Name: Espresso Table | |
| Author: Seth Shoultes | |
| Contact: seth@eventespresso.com | |
| Website: http://www.eventespresso.com | |
| Description: Only show events in a CATEGORY within a certain number number of days into the future and a qty. The example below only shows events in a certain category that start within 30 days from the current date. | |
| Usage Example: [ESPRESSO_TABLE max_days="30" qty="3" category_identifier="gracecard" order_by="state"] | |
| Custom CSS for the table display | |
| Notes: This file should be stored in your "/wp-content/uploads/espresso/templates/" folder and you should have the custom_includes.php files installed in your "/wp-content/uploads/espresso/" directory. |
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 | |
| // Added for seating chart addon | |
| $display_price_dropdown = TRUE; | |
| if (defined('ESPRESSO_SEATING_CHART')) { | |
| $seating_chart_id = seating_chart::check_event_has_seating_chart($event_id); | |
| if ($seating_chart_id !== FALSE) { | |
| $display_price_dropdown = 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
| UPDATE `wp_events_attendee` | |
| SET `checked_in_quantity` = 1 | |
| WHERE `checked_in` = 1 | |
| AND `checked_in_quantity` = 0 |