I would like to style my profile page.
is there a way to style results?\
For example, a user can select, Man of Woman in the profile. I'd like to use CSS icons. So if you choose for man you see a different icon than woman
if($field->name=='gender'){
if($field->value=='male') echo('<i class="icon icon-male"></i>');
if($field->value=='female') echo('<i class="icon icon-female"></i>');
}
else{
// existing code
}
if (JHtml::isRegistered('users.'.$field->id)) echo JHtml::_('users.'.$field->id, $field->value);
elseif (JHtml::isRegistered('users.'.$field->fieldname)) echo JHtml::_('users.'.$field->fieldname, $field->value);
elseif (JHtml::isRegistered('users.'.$field->type)) echo JHtml::_('users.'.$field->type, $field->value);
elseif (JHtml::isRegistered('jsn.'.$field->type)) echo JHtml::_('jsn.'.$field->type, $field);
elseif (is_string($field->value) && trim($field->value)=="0") echo $field->value;
else echo JHtml::_('users.value', $field->value);
if($field->fieldname=="gender"){
if($field->value=='male') echo("HTML icon male");
if($field->value=='female') echo("HTML icon female");
}
else
{
if (JHtml::isRegistered('users.'.$field->id)) echo JHtml::_('users.'.$field->id, $field->value);
elseif (JHtml::isRegistered('users.'.$field->fieldname)) echo JHtml::_('users.'.$field->fieldname, $field->value);
elseif (JHtml::isRegistered('users.'.$field->type)) echo JHtml::_('users.'.$field->type, $field->value);
elseif (JHtml::isRegistered('jsn.'.$field->type)) echo JHtml::_('jsn.'.$field->type, $field);
elseif (is_string($field->value) && trim($field->value)=="0") echo $field->value;
else echo JHtml::_('users.value', $field->value);
}