| @@ 122-129 (lines=8) @@ | ||
| 119 | $status = _SMALLWORLD_ISSINGLE; |
|
| 120 | $spouse = ''; |
|
| 121 | } |
|
| 122 | if (3 == $relationship) { |
|
| 123 | $status = _SMALLWORLD_INRELATIONSHIP; |
|
| 124 | if ($spouseExists > 0) { |
|
| 125 | $spouse = "<a href='" . XOOPS_URL . '/modules/smallworld/userprofile.php?username=' . $r['partner'] . "' target='_self'>" . $r['partner'] . '</a>'; |
|
| 126 | } else { |
|
| 127 | $spouse = $r['partner']; |
|
| 128 | } |
|
| 129 | } |
|
| 130 | if (0 == $relationship) { |
|
| 131 | $status = _SMALLWORLD_ISMARRIED; |
|
| 132 | if ($spouseExists > 0) { |
|
| @@ 130-137 (lines=8) @@ | ||
| 127 | $spouse = $r['partner']; |
|
| 128 | } |
|
| 129 | } |
|
| 130 | if (0 == $relationship) { |
|
| 131 | $status = _SMALLWORLD_ISMARRIED; |
|
| 132 | if ($spouseExists > 0) { |
|
| 133 | $spouse = "<a href='" . XOOPS_URL . '/modules/smallworld/userprofile.php?username=' . $r['partner'] . "' target='_self'>" . $r['partner'] . '</a>'; |
|
| 134 | } else { |
|
| 135 | $spouse = $r['partner']; |
|
| 136 | } |
|
| 137 | } |
|
| 138 | if (1 == $relationship) { |
|
| 139 | $status = _SMALLWORLD_ISENGAGED; |
|
| 140 | if ($spouseExists > 0) { |
|
| @@ 138-145 (lines=8) @@ | ||
| 135 | $spouse = $r['partner']; |
|
| 136 | } |
|
| 137 | } |
|
| 138 | if (1 == $relationship) { |
|
| 139 | $status = _SMALLWORLD_ISENGAGED; |
|
| 140 | if ($spouseExists > 0) { |
|
| 141 | $spouse = "<a href='" . XOOPS_URL . '/modules/smallworld/userprofile.php?username=' . $r['partner'] . "' target='_self'>" . $r['partner'] . '</a>'; |
|
| 142 | } else { |
|
| 143 | $spouse = $r['partner']; |
|
| 144 | } |
|
| 145 | } |
|
| 146 | if (5 == $relationship) { |
|
| 147 | $status = _SMALLWORLD_ISCOMPLICATED; |
|
| 148 | if ($spouseExists > 0) { |
|
| @@ 146-153 (lines=8) @@ | ||
| 143 | $spouse = $r['partner']; |
|
| 144 | } |
|
| 145 | } |
|
| 146 | if (5 == $relationship) { |
|
| 147 | $status = _SMALLWORLD_ISCOMPLICATED; |
|
| 148 | if ($spouseExists > 0) { |
|
| 149 | $spouse = "<a href='" . XOOPS_URL . '/modules/smallworld/userprofile.php?username=' . $r['partner'] . "' target='_self'>" . $r['partner'] . '</a>'; |
|
| 150 | } else { |
|
| 151 | $spouse = $r['partner']; |
|
| 152 | } |
|
| 153 | } |
|
| 154 | if (4 == $relationship) { |
|
| 155 | $status = _SMALLWORLD_OPENRELATIONSHIP; |
|
| 156 | if ($spouseExists > 0) { |
|
| @@ 154-161 (lines=8) @@ | ||
| 151 | $spouse = $r['partner']; |
|
| 152 | } |
|
| 153 | } |
|
| 154 | if (4 == $relationship) { |
|
| 155 | $status = _SMALLWORLD_OPENRELATIONSHIP; |
|
| 156 | if ($spouseExists > 0) { |
|
| 157 | $spouse = "<a href='" . XOOPS_URL . '/modules/smallworld/userprofile.php?username=' . $r['partner'] . "' target='_self'>" . $r['partner'] . '</a>'; |
|
| 158 | } else { |
|
| 159 | $spouse = $r['partner']; |
|
| 160 | } |
|
| 161 | } |
|
| 162 | ||
| 163 | //Personal info |
|
| 164 | $aboutme = $r['aboutme']; |
|