From c6a6d41dab2286caa387e6a8a5c3ffc46b773f22 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Tue, 15 Mar 2011 02:09:22 +0000 Subject: [PATCH] Extended profile - change HTML output for displaying work experience --- .../ExtendedProfile/extendedprofilewidget.php | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/plugins/ExtendedProfile/extendedprofilewidget.php b/plugins/ExtendedProfile/extendedprofilewidget.php index 478990ac63..4c47987406 100644 --- a/plugins/ExtendedProfile/extendedprofilewidget.php +++ b/plugins/ExtendedProfile/extendedprofilewidget.php @@ -192,18 +192,19 @@ class ExtendedProfileWidget extends Form protected function showExperience($name, $field) { - $this->out->elementStart('div', array('class' => 'experience-display')); - $this->out->text($field['company']); - $this->out->elementStart('dl', 'experience-start-and-end'); - $this->out->element('dt', null, _m('Start')); - $this->out->element('dd', null, $field['start']); - $this->out->element('dt', null, _m('End')); + $this->out->elementStart('div', 'experience-item'); + $this->out->element('div', 'field', $field['company']); + $this->out->element('div', 'label', _m('Start')); + $this->out->element('div', array('class' => 'field date'), $field['start']); + $this->out->element('div', 'label', _m('End')); + $this->out->element('div', array('class' => 'field date'), $field['end']); if ($field['current']) { - $this->out->element('dd', null, '(' . _m('Current') . ')'); - } else { - $this->out->element('dd', null, $field['end']); + $this->out->element( + 'div', + array('class' => 'field current'), + '(' . _m('Current') . ')' + ); } - $this->out->elementEnd('dl'); $this->out->elementEnd('div'); } -- 2.39.5