Last active
August 29, 2015 14:06
-
-
Save lorenzocaum/1b8276d05749b90a8ea4 to your computer and use it in GitHub Desktop.
Customize your Available Spaces Text in Event Espresso 3
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
$num_attendees = get_number_of_attendees_reg_limit($event_id, 'num_attendees'); //Get the number of attendees. Please visit http://eventespresso.com/forums/?p=247 for available parameters for the get_number_of_attendees_reg_limit() function. | |
if ($num_attendees >= $reg_limit) { | |
?> | |
<p id="available_spaces-<?php echo $event_id ?>" class="available-spaces"><span class="section-title"><?php _e('Available Spaces:', 'event_espresso') ?> </span><?php echo get_number_of_attendees_reg_limit($event_id, 'available_spaces', 'All Seats Reserved') ?> | |
<?php if ($overflow_event_id != '0' && $allow_overflow == 'Y') { ?> | |
<p id="register_link-<?php echo $overflow_event_id ?>" class="register-link-footer"><a class="a_register_link ui-button ui-button-big ui-priority-primary ui-state-default ui-state-hover ui-state-focus ui-corner-all" id="a_register_link-<?php echo $overflow_event_id ?>" href="<?php echo espresso_reg_url($overflow_event_id); ?>" title="<?php echo stripslashes_deep($event_name) ?>"><?php _e('Join Waiting List', 'event_espresso'); ?></a> | |
<?php | |
} | |
} else { | |
if ($display_reg_form == 'Y' && $externalURL == '') { | |
?><p id="available_spaces-<?php echo $event_id ?>" class="spaces-available"><span class="section-title"><?php _e('Available Spaces:', 'event_espresso') ?></span> <?php echo get_number_of_attendees_reg_limit($event_id, 'available_spaces') ?> | |
<?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
$num_attendees = get_number_of_attendees_reg_limit($event_id, 'num_attendees'); //Get the number of attendees. Please visit http://eventespresso.com/forums/?p=247 for available parameters for the get_number_of_attendees_reg_limit() function. | |
if ($num_attendees >= $reg_limit) { | |
?> | |
<p id="available_spaces-<?php echo $event_id ?>" class="available-spaces"><span class="section-title"><?php _e('This class is full.', 'event_espresso') ?> </span> | |
<?php if ($overflow_event_id != '0' && $allow_overflow == 'Y') { ?> | |
<p id="register_link-<?php echo $overflow_event_id ?>" class="register-link-footer"><a class="a_register_link ui-button ui-button-big ui-priority-primary ui-state-default ui-state-hover ui-state-focus ui-corner-all" id="a_register_link-<?php echo $overflow_event_id ?>" href="<?php echo espresso_reg_url($overflow_event_id); ?>" title="<?php echo stripslashes_deep($event_name) ?>"><?php _e('Join Waiting List', 'event_espresso'); ?></a> | |
<?php | |
} | |
} else { | |
if ($display_reg_form == 'Y' && $externalURL == '') { | |
?><p id="available_spaces-<?php echo $event_id ?>" class="spaces-available"><span class="section-title"><?php _e('Seats are available for this class.', 'event_espresso') ?></span> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The original files (event_list_display.php & registration_page_display.php) are located here:
/wp-content/plugins/event-espresso/templates/
You can reach that location by connecting to your WordPress site with an SFTP or FTP client such as Cyberduck or FileZilla. Your webhost will be able to provide credentials for connecting to your site.
Those two files (event_list_display.php & registration_page_display.php) need to be moved here:
/wp-content/uploads/espresso/templates/
Then the edits need to be applied and you should save changes using your SFTP or FTP client.
The first file above shows the old code. The second file shows the new code. Apply the edits to event_list_display.php.