WordPress.org

Ready to get started?Download WordPress

Forums

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
    Member
    Posted 3 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)?>
    	</a></h3>
      <div class="event_details event_date">
      Date:
      <?php echo event_date_display($start_date)?>
      </div>
      <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>
      <div class="event_details event_spaces">
      Spaces Available:
      <?php echo $available_spaces?>
      </div>
      <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>
    </div><!-- end event-id -->

    http://wordpress.org/extend/plugins/advanced-events-registration/

  2. sethshoultes
    Member
    Plugin Author

    Posted 3 years ago #

    @lgedeon

    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
    Member
    Posted 3 years ago #

    Seth,

    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>

    and

    <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