Event Espresso Lite - Event Management and Registration System
[Plugin: Event Espresso Lite - Event Registration and Management] Code submission - registration det (3 posts)

  1. Luke Gedeon
    Posted 5 years ago #

    I wrote a plug-in to add several features to advanced-events-registration, but one change was easier to do by directly editing get_event_details.php.

    I was wondering if you would update this file using the code below to add semantic mark-up that we can use for CSS.

    Here is the code with modifications starting at line 38.

    <div id="event-<?php echo $event_id?>">
      <h3 class="event_title"><a href="<?php echo get_option('siteurl')?>/?page_id=<?php echo $event_page_id?>&regevent_action=register&event_id=<?php echo $event_id?>&name_of_event=<?php echo stripslashes($event_name)?>">
    	<?php echo stripslashes($event_name)?>
      <div class="event_details event_date">
      <?php echo event_date_display($start_date)?>
      <div class="event_details event_cost">
      <?php if ($event_cost == '' || $event_cost == ' '){ ?>
      Free Event
      <?php }else{?>
      Cost: <?php echo $org_options['currency_symbol']?><?php echo $event_cost?>
      <?php }?>
      <div class="event_details event_spaces">
      Spaces Available:
      <?php echo $available_spaces?>
      <div class="event_register_link">
      <a href="<?php echo get_option('siteurl')?>/?page_id=<?php echo $event_page_id?>&regevent_action=register&event_id=<?php echo $event_id?>&name_of_event=<?php echo stripslashes($event_name)?>">Register Online</a>
    </div><!-- end event-id -->


  2. sethshoultes
    Plugin Author

    Posted 5 years ago #


    Thanks for the feedback!

    I have already added markup to the pro version of the plugin. I am working on moving the frame work of the pro version to a the free platform, minus all of the pro features of course. So I probably wont be making any more updates to this version.

    Just wondering. What features have you added to this version?

  3. Luke Gedeon
    Posted 5 years ago #


    Other than a lot mark-up, many of my changes were localizations (removing town/village and country) and other customer preferences. They may have only limited usefulness.

    One thing that might be really helpful is adding a link at the top of the registration page, and a named anchor just above the form. This is particularly useful when you have long-winded event descriptions. In /includes/event_register_attendees.php at lines 108 and 254:

    <div id="skip-to-form-link"><a href="#skip-to-form">Register Now</a></div>


    <a name="skip-to-form"></a>

    I also wrote an alternate output for date and time for one day events. In /includes/event_register_attendees.php at 110:

    <div id="event-date"><strong>Date:</strong> <?php echo event_date_display($start_date);?></div>
     <div id="event-time"><strong>Time:</strong>  <?php echo $start_time;?> - <?php echo $end_time;?></div>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic