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 | |
add_action( | |
'AHEE_event_details_before_post', | |
'my_add_content_event_if_logged_in_registered', | |
11 | |
); | |
function my_add_content_event_if_logged_in_registered( $post ) { | |
if ( is_user_logged_in() && is_singular() ) { |
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 espresso_list_of_event_dates( $EVT_ID = 0, $date_format = '', $time_format = '', $echo = TRUE, $show_expired = NULL, $format = TRUE, $add_breaks = TRUE, $limit = NULL ) { | |
$date_format = ! empty( $date_format ) ? $date_format : get_option( 'date_format' ); | |
$time_format = ! empty( $time_format ) ? $time_format : get_option( 'time_format' ); | |
$date_format = apply_filters( 'FHEE__espresso_list_of_event_dates__date_format', $date_format ); | |
$time_format = apply_filters( 'FHEE__espresso_list_of_event_dates__time_format', $time_format ); | |
EE_Registry::instance()->load_helper( 'Event_View' ); | |
$datetimes = EEH_Event_View::get_all_date_obj( $EVT_ID, $show_expired, FALSE, $limit ); |
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
@media (max-width: 640px) { | |
.tkt-slctr-tbl, | |
.spco-ticket-details { | |
table-layout: fixed; | |
font-size: .8em; | |
} | |
.tkt-slctr-tbl tr td { | |
padding-left: 2px; | |
padding-right: 0; | |
} |
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
function my_move_australia_before_nz() { | |
?> | |
<script> | |
jQuery(document).ready(function($) { | |
var aussie = '.ee-reg-qstn-state optgroup[label="Australia"]'; | |
var kiwi = '.ee-reg-qstn-state optgroup[label="New Zealand"]'; | |
$(aussie).insertBefore(kiwi); | |
}); | |
</script> | |
<?php |
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 | |
add_filter( 'FHEE__EEG_Paypal_Standard__set_redirection_info__arguments', 'jf_ee_add_paypal_language_code' ); | |
function jf_ee_add_paypal_language_code( $redirect_args ) { | |
$redirect_args[ 'lc' ] = 'GB'; | |
return $redirect_args; | |
} |
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 | |
add_filter( | |
'FHEE__EventEspressoBatchRequest__JobHandlers__RegistrationsReport__reg_csv_array', | |
'espresso_add_venue_to_report', | |
10, | |
2 | |
); | |
function espresso_add_venue_to_report( $reg_csv_array, $reg_row ) { |
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 | |
remove_action ( 'genesis_loop', 'genesis_do_loop' ); // Remove the standard loop | |
add_action( 'genesis_loop', 'custom_espresso_venues_single_loop' ); // Add custom loop | |
// Optional: Remove post info | |
remove_action( 'genesis_before_post_content', 'genesis_post_info' ); | |
remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); | |
function custom_espresso_venues_single_loop() { | |
if ( have_posts() ) : | |
// Start the Loop. |
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 | |
add_action( 'AHEE_event_details_before_the_content', 'ee_display_category_description_single_event' ); | |
function ee_display_category_description_single_event( $post ) { | |
$taxonomy = 'espresso_event_categories'; | |
$terms = get_the_terms( (int) $post->ID, $taxonomy ); | |
if( !empty( $terms ) ) { | |
foreach( (array) $terms as $order => $term ) { |
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 Espresso site specific functions | |
Description: Add custom functions for Event Espresso to this plugin. | |
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one! */ | |
//Filter the 'Return to Event List' text. | |
function ee_change_events_list_btn_txt() { | |
return 'Return to Event List'; | |
} |
NewerOlder