"with" is optional - don't show anything if not present.

pull/1/head
Friendika 2010-12-04 00:38:34 -08:00
rodzic 4be5e57afd
commit b09ab4ef2c
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -62,7 +62,11 @@ $o .= <<< EOT
<div id="advanced-profile-marital-wrapper" >
<div id="advanced-profile-marital-text"><span class="heart">&hearts;</span> Status:</div>
<div id="advanced-profile-marital">{$a->profile['marital']}</div>
<div id="advanced-profile-with">({$a->profile['with']})</div>
EOT;
if($a->profile['with'])
$o .= "<div id=\"advanced-profile-with\">({$a->profile['with']})</div>";
$o .= <<< EOT
</div>
<div id="advanced-profile-marital-end"></div>
EOT;