Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created July 24, 2012 17:06
Show Gist options
  • Save joshfeck/3171234 to your computer and use it in GitHub Desktop.
Save joshfeck/3171234 to your computer and use it in GitHub Desktop.
change logic in widget.php so external URL's open in a new tab
//adding markup to the logic on line 81 of widget.php
$registration_url = $event->externalURL != '' ? '<a target="_blank" href="' . $event->externalURL . '">' : '<a href="' . espresso_reg_url($event->id) . '">';
//later, on line 130, the a tag needs to be removed from the markup:
<p><?php echo $registration_url; ?><?php echo stripslashes_deep($event->event_name) ?> - <?php echo event_date_display($event->start_date) ?></a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment