</div> <br class="clear" /> <?php //define mail preference options $options = array('-1' => Lang::txt('PLG_MEMBERS_PROFILE_EMAILUPDATES_OPT_SELECT'), '1' => Lang::txt('PLG_MEMBERS_PROFILE_EMAILUPDATES_OPT_YES'), '0' => Lang::txt('PLG_MEMBERS_PROFILE_EMAILUPDATES_OPT_NO')); //build option list $optin_html = '<strong>' . Lang::txt('PLG_MEMBERS_PROFILE_EMAILUPDATES_EXPLANATION') . '</strong>'; $optin_html .= '<label for="sendEmail">'; $optin_html .= '<select name="sendEmail" id="sendEmail" class="input-select">'; foreach ($options as $key => $value) { $sel = $key == $this->profile->get('sendEmail') ? 'selected="selected"' : ''; $optin_html .= '<option ' . $sel . ' value="' . $key . '">' . $value . '</option>'; } $optin_html .= '</select>'; $optin_html .= '</label>'; $this->view('default', 'edit')->set('registration_field', 'sendEmail')->set('profile_field', 'sendEmail')->set('registration', $this->profile->get('sendEmail'))->set('title', Lang::txt('PLG_MEMBERS_PROFILE_EMAILUPDATES'))->set('profile', $this->profile)->set('isUser', $isUser)->set('inputs', $optin_html)->set('access', '<div class="block"><label>' . Lang::txt('PLG_MEMBERS_PROFILE_PRIVACY') . Components\Members\Helpers\Html::selectAccess('access[optin]', $this->params->get('access_optin'), 'input-select') . '</label></div>')->display(); ?> </div> <?php if ($isUser) { ?> <div class="section-edit"> <a class="edit-profile-section" href="#"> <?php echo Lang::txt('PLG_MEMBERS_PROFILE_EDIT'); ?> </a> </div> <?php } ?>
$value = $this->profile->tags('string'); } $formfield = $form->getField($field->get('name')); $formfield->setValue($value); ?> <div class="grid"> <div class="col span8"> <?php echo $formfield->label; echo $formfield->input; ?> </div> <div class="col span4 omega"> <?php echo '<label>' . Lang::txt('COM_MEMBERS_FIELD_ACCESS') . '</label>'; echo Components\Members\Helpers\Html::selectAccess('access[' . $field->get('name') . ']', $field->get('access'), 'input-select'); ?> </div> </div> </div> <?php } ?> </fieldset> <fieldset> <legend><?php echo Lang::txt('Updates'); ?> </legend>