$contacts[] = action_icon(T_('Send a message'), 'email', $msgform_url, T_('Send a message'), 3, 4, array(), array('style' => 'margin: 2px')); } else { // No message form possibility to contact with User, get the reason why $contacts[] = $User->get_no_msgform_reason(); } $ProfileForm->info(T_('Contact'), implode('<div style="height:6px"> </div>', $contacts)); if ($is_logged_in && $current_User->check_status('can_edit_contacts') && $current_User->check_perm('perm_messaging', 'reply')) { // user is logged in, the account was activated and has the minimal messaging permission $ProfileForm->add_crumb('messaging_contacts'); $ProfileForm->hidden('user_ID', $User->ID); $ProfileForm->output = false; $button_add_group = $ProfileForm->submit_input(array('name' => 'actionArray[add_user]', 'value' => T_('Add'), 'class' => 'SaveButton')); $ProfileForm->output = true; if (!empty($contacts_groups)) { // Display contacts groups for current User $ProfileForm->custom_content('<p><strong>' . T_('You can organize your contacts into groups. You can decide in which groups to put this user here:') . '</strong></p>'); $ProfileForm->info(sprintf(T_('%s is'), $User->login), $contacts_groups); // Form to create a new group $ProfileForm->hidden('group_ID', 'new'); $ProfileForm->text_input('group_ID_combo', param('group_ID_combo', 'string', ''), 18, T_('Create a new group'), '', array('field_suffix' => $button_add_group, 'maxlength' => 50)); } else { if ($User->ID != $current_User->ID) { // Form to add this user into the group $ProfileForm->combo_box('group_ID', param('group_ID_combo', 'string', ''), get_contacts_groups_options(param('group', 'string', '-1'), false), T_('Add this user to a group'), array('new_field_size' => '8', 'field_suffix' => $button_add_group)); } } } // Display Report User part user_report_form(array('Form' => $ProfileForm, 'user_ID' => $User->ID, 'crumb_name' => 'messaging_contacts', 'cancel_url' => url_add_param($Blog->get('url'), 'disp=contacts&user_ID=' . $User->ID . '&action=remove_report&' . url_crumb('messaging_contacts')))); $ProfileForm->end_fieldset(); // Load the user fields:
echo T_('Unrecognized characters in the format string will be printed as-is.<br />You can escape characters by preceding them with a \\ to print them as-is.'); ?> </p> </div> <?php } elseif ($action == 'update' && !empty($warning_message)) { $Form = new Form(NULL, 'loc_confirm'); $Form->begin_form('fform'); $Form->add_crumb('locales'); $Form->hidden('ctrl', 'locales'); $Form->hidden('newdefault_locale', $Settings->get('default_locale')); foreach ($saved_params as $key => $value) { $Form->hidden($key, $value); } $Form->begin_fieldset(T_('Confirm update')); $Form->custom_content($warning_message); $Form->end_fieldset(); $Form->end_form(array(array('', 'actionArray[confirm_update]', T_('Confirm')), array('', 'actionArray[abort_update]', T_('Abort')))); } else { // show main form $Form = new Form($pagenow, 'loc_checkchanges'); $Form->begin_form('fform'); $Form->add_crumb('locales'); $Form->hidden('ctrl', 'locales'); $Form->hidden('action', 'update'); $Form->hidden('loc_transinfo', $loc_transinfo); $Form->begin_fieldset(T_('Regional settings') . get_manual_link('locales-tab')); if (!isset($locales[$Settings->get('default_locale')]) || !$locales[$Settings->get('default_locale')]['enabled']) { // default locale is not enabled param_error('newdefault_locale', T_('Note: default locale is not enabled.')); }