<a class="email" href="mailto:<?php echo \Components\Members\Helpers\Html::obfuscate($this->profile->get('email')); ?> " rel="nofollow"> <?php echo \Components\Members\Helpers\Html::obfuscate($this->profile->get('email')); ?> </a> </div> <br class="clear" /> <input type="hidden" class="input-text" name="email" id="email" value="<?php echo $this->escape($this->profile->get('email')); ?> " /> <?php $this->view('default', 'edit')->set('registration_field', 'email')->set('profile_field', 'email')->set('registration', 1)->set('title', Lang::txt('PLG_MEMBERS_PROFILE_EMAIL'))->set('profile', $this->profile)->set('isUser', $isUser)->set('inputs', '<label class="side-by-side">' . Lang::txt('PLG_MEMBERS_PROFILE_EMAIL_VALID') . ' <input type="text" class="input-text" name="email" id="profile-email" value="' . $this->escape($this->profile->get('email')) . '" /></label>' . '<label class="side-by-side no-padding-right">' . Lang::txt('PLG_MEMBERS_PROFILE_EMAIL_CONFIRM') . ' <input type="text" class="input-text" name="email2" id="profile-email2" value="' . $this->escape($this->profile->get('email')) . '" /></label>' . '<br class="clear" /><p class="warning no-margin-top">' . Lang::txt('PLG_MEMBERS_PROFILE_EMAIL_WARNING') . '</p>')->set('access', '<label>' . Lang::txt('PLG_MEMBERS_PROFILE_PRIVACY') . \Components\Members\Helpers\Html::selectAccess('access[email]', $this->params->get('access_email'), 'input-select') . '</label>')->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 } ?>
</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="mailPreferenceOption">'; $optin_html .= '<select name="mailPreferenceOption" id="mailPreferenceOption" class="input-select">'; foreach ($options as $key => $value) { $sel = $key == $this->profile->get('mailPreferenceOption') ? 'selected="selected"' : ''; $optin_html .= '<option ' . $sel . ' value="' . $key . '">' . $value . '</option>'; } $optin_html .= '</select>'; $optin_html .= '</label>'; $this->view('default', 'edit')->set('registration_field', 'mailPreferenceOption')->set('profile_field', 'mailPreferenceOption')->set('registration', $this->registration->OptIn)->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 } ?>