Подскажите как добавить отображение пола пользователя под именем, на странице пользователя.
пример:
_____________
Фото
Пол
Имя
Обо мне
_____________
<?php if ($this->params->get('userImage') || $this->params->get('userName') || $this->params->get('userDescription') || $this->params->get('userURL') || $this->params->get('userEmail')): ?>
Аватар (фото)
<?php if ($this->params->get('userImage') && !empty($this->user->avatar)): ?>
<img src="<?php echo $this->user->avatar; ?>" alt="<?php echo $this->user->name; ?>" style="width:<?php echo $this->params->get('userImageWidth'); ?>px; height:auto;" />
<?php endif; ?>
Имя (Логин)
<?php if ($this->params->get('userName')): ?>
<h2><?php echo $this->user->name; ?></h2>
<?php endif; ?>
Обо мне (Описание)
<?php if ($this->params->get('userDescription') && trim($this->user->profile->description)): ?>
<div class="userDescription"><?php echo $this->user->profile->description; ?></div>
<?php endif; ?>
Пол. (Мужской, Женский)
Подскажите как написать пол пользователя
Вот форма для выбора пола пользователя.
$lists = array (); $genderOptions[] = JHTML::_('select.option', 'm', JText::_('K2_MALE')); $genderOptions[] = JHTML::_('select.option', 'f', JText::_('K2_FEMALE')); $lists['gender'] = JHTML::_('select.radiolist', $genderOptions, 'gender','','value','text',$user->gender);