Created
July 24, 2012 17:06
-
-
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
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
//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