From 17afe068059f426db04c4b2bf85d31bf4e03953a Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 16 Mar 2011 01:23:47 -0700 Subject: [PATCH] Extended profile - linkify related URLs added by the user --- .../ExtendedProfile/extendedprofilewidget.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/plugins/ExtendedProfile/extendedprofilewidget.php b/plugins/ExtendedProfile/extendedprofilewidget.php index 622beff32f..d4a3f21a52 100644 --- a/plugins/ExtendedProfile/extendedprofilewidget.php +++ b/plugins/ExtendedProfile/extendedprofilewidget.php @@ -79,7 +79,7 @@ class ExtendedProfileWidget extends Form { // For JQuery UI modal dialog $this->out->elementStart( - 'div', + 'div', array('id' => 'confirm-dialog', 'title' => 'Confirmation Required') ); $this->out->text('Really delete this entry?'); @@ -180,7 +180,19 @@ class ExtendedProfileWidget extends Form protected function showWebsite($name, $field) { $this->out->elementStart('div', array('class' => 'website-display')); - $this->out->text($field['value']); + + $url = $field['value']; + + $this->out->element( + "a", + array( + 'href' => $url, + 'class' => 'extended-profile-link', + 'target' => "_blank" + ), + $url + ); + if (!empty($field['rel'])) { $this->out->text(' (' . $field['rel'] . ')'); } -- 2.39.5