@@ 130-133 (lines=4) @@ | ||
127 | $spouseExists = $swUserHandler->spouseExists($r['partner']); |
|
128 | ||
129 | switch ((int)$relationship) { |
|
130 | case Constants::RELATIONSHIP_MARRIED: |
|
131 | $status = _SMALLWORLD_ISMARRIED; |
|
132 | $spouse = ($spouseExists > 0) ? "<a href='" . $helper->url('userprofile.php?username=' . $r['partner']) . "' target='_self'>" . $r['partner'] . '</a>' : $r['partner']; |
|
133 | break; |
|
134 | case Constants::RELATIONSHIP_ENGAGED: |
|
135 | $status = _SMALLWORLD_ISENGAGED; |
|
136 | $spouse = ($spouseExists > 0) ? "<a href='" . $helper->url('userprofile.php?username=' . $r['partner']) . "' target='_self'>" . $r['partner'] . '</a>' : $r['partner']; |
|
@@ 134-137 (lines=4) @@ | ||
131 | $status = _SMALLWORLD_ISMARRIED; |
|
132 | $spouse = ($spouseExists > 0) ? "<a href='" . $helper->url('userprofile.php?username=' . $r['partner']) . "' target='_self'>" . $r['partner'] . '</a>' : $r['partner']; |
|
133 | break; |
|
134 | case Constants::RELATIONSHIP_ENGAGED: |
|
135 | $status = _SMALLWORLD_ISENGAGED; |
|
136 | $spouse = ($spouseExists > 0) ? "<a href='" . $helper->url('userprofile.php?username=' . $r['partner']) . "' target='_self'>" . $r['partner'] . '</a>' : $r['partner']; |
|
137 | break; |
|
138 | case Constants::RELATIONSHIP_SINGLE: |
|
139 | $status = _SMALLWORLD_ISSINGLE; |
|
140 | $spouse = ''; |
|
@@ 142-145 (lines=4) @@ | ||
139 | $status = _SMALLWORLD_ISSINGLE; |
|
140 | $spouse = ''; |
|
141 | break; |
|
142 | case Constants::RELATIONSHIP_ISIN: |
|
143 | $status = _SMALLWORLD_INRELATIONSHIP; |
|
144 | $spouse = ($spouseExists > 0) ? "<a href='" . $helper->url('userprofile.php?username=' . $r['partner']) . "' target='_self'>" . $r['partner'] . '</a>' : $r['partner']; |
|
145 | break; |
|
146 | case Constants::RELATIONSHIP_OPEN: |
|
147 | $status = _SMALLWORLD_OPENRELATIONSHIP; |
|
148 | $spouse = ($spouseExists > 0) ? "<a href='" . $helper->url('userprofile.php?username=' . $r['partner']) . "' target='_self'>" . $r['partner'] . '</a>' : $r['partner']; |
|
@@ 146-149 (lines=4) @@ | ||
143 | $status = _SMALLWORLD_INRELATIONSHIP; |
|
144 | $spouse = ($spouseExists > 0) ? "<a href='" . $helper->url('userprofile.php?username=' . $r['partner']) . "' target='_self'>" . $r['partner'] . '</a>' : $r['partner']; |
|
145 | break; |
|
146 | case Constants::RELATIONSHIP_OPEN: |
|
147 | $status = _SMALLWORLD_OPENRELATIONSHIP; |
|
148 | $spouse = ($spouseExists > 0) ? "<a href='" . $helper->url('userprofile.php?username=' . $r['partner']) . "' target='_self'>" . $r['partner'] . '</a>' : $r['partner']; |
|
149 | break; |
|
150 | case Constants::RELATIONSHIP_COMPLICATED: |
|
151 | $status = _SMALLWORLD_ISCOMPLICATED; |
|
152 | $spouse = ($spouseExists > 0) ? "<a href='" . $helper->url('userprofile.php?username=' . $r['partner']) . "' target='_self'>" . $r['partner'] . '</a>' : $r['partner']; |
|
@@ 150-153 (lines=4) @@ | ||
147 | $status = _SMALLWORLD_OPENRELATIONSHIP; |
|
148 | $spouse = ($spouseExists > 0) ? "<a href='" . $helper->url('userprofile.php?username=' . $r['partner']) . "' target='_self'>" . $r['partner'] . '</a>' : $r['partner']; |
|
149 | break; |
|
150 | case Constants::RELATIONSHIP_COMPLICATED: |
|
151 | $status = _SMALLWORLD_ISCOMPLICATED; |
|
152 | $spouse = ($spouseExists > 0) ? "<a href='" . $helper->url('userprofile.php?username=' . $r['partner']) . "' target='_self'>" . $r['partner'] . '</a>' : $r['partner']; |
|
153 | break; |
|
154 | } |
|
155 | //Personal info |
|
156 | $aboutme = $r['aboutme']; |