]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Extended profile - change HTML output for displaying work experience
authorZach Copley <zach@status.net>
Tue, 15 Mar 2011 02:09:22 +0000 (02:09 +0000)
committerZach Copley <zach@status.net>
Tue, 15 Mar 2011 02:09:22 +0000 (02:09 +0000)
plugins/ExtendedProfile/extendedprofilewidget.php

index 478990ac630692b235d8fc6ad613fc5d9ea79791..4c479874068c3c4dd9b22014da84f514509a8119 100644 (file)
@@ -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');
     }