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

This commit is contained in:
Friendika 2010-12-04 00:38:34 -08:00
parent 4be5e57afd
commit b09ab4ef2c

View file

@ -62,7 +62,11 @@ $o .= <<< EOT
<div id="advanced-profile-marital-wrapper" > <div id="advanced-profile-marital-wrapper" >
<div id="advanced-profile-marital-text"><span class="heart">&hearts;</span> Status:</div> <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-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>
<div id="advanced-profile-marital-end"></div> <div id="advanced-profile-marital-end"></div>
EOT; EOT;