function wpmudev_chat_form_section_user_enter_exit_messages($form_section) { global $wpmudev_chat; ?> <fieldset> <legend><?php _e('Chat User Entered/Exited Messages', $wpmudev_chat->translation_domain); ?> </legend> <table border="0" cellpadding="4" cellspacing="0"> <tr> <td class="chat-label-column chat-label-column-top"><label for="chat_users_enter_exit_status"><?php _e('Show Entered/Exited Messages?', $wpmudev_chat->translation_domain); ?> </label></td> <td class="chat-value-column"> <select id="chat_users_enter_exit_status" name="chat[users_enter_exit_status]"> <option value="enabled" <?php print $wpmudev_chat->get_option('users_enter_exit_status', $form_section) == 'enabled' ? 'selected="selected"' : ''; ?> ><?php _e('Enabled', $wpmudev_chat->translation_domain); ?> </option> <option value="disabled" <?php print $wpmudev_chat->get_option('users_enter_exit_status', $form_section) == 'disabled' ? 'selected="selected"' : ''; ?> ><?php _e('Disabled', $wpmudev_chat->translation_domain); ?> </option> </select> </td> <td class="chat-help-column"><?php echo wpmudev_chat_get_help_item('users_enter_exit_status', 'tip'); ?> </td> </tr> <tr> <td class="chat-label-column chat-label-column-top"> <label for="chat_users_enter_exit_delay"><?php _e("Display notice time<br /><em>(seconds)</em>", $wpmudev_chat->translation_domain); ?> </label> </td> <td class="chat-value-column"> <input type="text" id="chat_users_enter_exit_delay" name="chat[users_enter_exit_delay]" class="size" size="5" value="<?php echo $wpmudev_chat->get_option('users_enter_exit_delay', $form_section); ?> " placeholder="<?php echo wpmudev_chat_get_help_item('users_enter_exit_delay', 'placeholder'); ?> "/> <p class="description"><?php _e('Fractions of seconds are acceptable ex. 1.02, 0.5, 5.35.', $wpmudev_chat->translation_domain); ?> </p> </td> <td class="chat-help-column"><?php echo wpmudev_chat_get_help_item('users_enter_exit_delay', 'tip'); ?> </td> </tr> </table> </fieldset> <?php }
function wpmudev_chat_form_section_bottom_corner_network($form_section = 'network-site') { global $wpmudev_chat; //echo "chat<pre>"; print_r($wpmudev_chat); echo "</pre>"; ?> <fieldset> <legend><?php _e('Bottom Corner Chat', $wpmudev_chat->translation_domain); ?> </legend> <table border="0" cellpadding="4" cellspacing="0"> <tr> <td class="chat-label-column"><label for="chat_site_bottom_corner_global"><?php _e('Enable Global Bottom Corner Chat?', $wpmudev_chat->translation_domain); ?> </label></td> <td class="chat-value-column"> <p class="description"><?php _e('Enabling global bottom corner chat means message posted from one site will be shown to all sites within your Multisite system. Local site moderators will still be able to clear/delete message, etc. Also local admins will still be able to disable bottom corner chat from showing within their site.', $wpmudev_chat->translation_domain); ?> </p> <select id="chat_site_bottom_corner_global" name="chat[bottom_corner_global]"> <option value="enabled" <?php print $wpmudev_chat->get_option('bottom_corner_global', $form_section) == 'enabled' ? 'selected="selected"' : ''; ?> ><?php _e('Enabled', $wpmudev_chat->translation_domain); ?> </option> <option value="disabled" <?php print $wpmudev_chat->get_option('bottom_corner_global', $form_section) == 'disabled' ? 'selected="selected"' : ''; ?> ><?php _e('Disabled', $wpmudev_chat->translation_domain); ?> </option> </select> </td> <td class="chat-help-column"><?php echo wpmudev_chat_get_help_item('bottom_corner_global', 'tip'); ?> </td> </tr> </table> </fieldset> <?php }