function chat_settings_panel_network_site() { global $wpmudev_chat; $form_section = "network-site"; ?> <div id="wpmudev-chat-wrap" class="wrap wpmudev-chat-wrap-settings-page"> <h2><?php _e('Chat Settings Network', $wpmudev_chat->translation_domain); ?> </h2> <form method="post" id="wpmudev-chat-settings-form" action="?page=<?php echo $_GET['page']; ?> "> <?php //settings_fields('chat'); ?> <p><?php _e('The following settings are used to control the bottom corner for all sites within the Multisite environment. This bottom corner chat is global, meaning messages are the same across all sites within the Multisite Network URLs. Once enabled this Network bottom corner chat box will <strong>replace</strong> the Site bottom corner chat box.', $wpmudev_chat->translation_domain); ?> </p> <div id="chat_tab_pane" class="chat_tab_pane"> <ul> <li id="chat_bottom_corner_tab"><a href="#chat_bottom_corner_panel" class="current"><span><?php _e('Bottom Corner', $wpmudev_chat->translation_domain); ?> </span></a></li> <li id="chat_box_appearance_tab"><a href="#chat_box_appearance_panel" class="current"><span><?php _e('Box Appearance', $wpmudev_chat->translation_domain); ?> </span></a></li> <li id="chat_box_position_tab"><a href="#chat_box_position_panel"><span><?php _e('Box Position', $wpmudev_chat->translation_domain); ?> </span></a></li> <li id="chat_messages_appearance_tab"><a href="#chat_messages_appearance_panel"><span><?php _e('Message Appearance', $wpmudev_chat->translation_domain); ?> </span></a></li> <li id="chat_messages_input_tab"><a href="#chat_messages_input_panel"><span><?php _e('Message Input', $wpmudev_chat->translation_domain); ?> </span></a></li> <li id="chat_users_list_tab"><a href="#chat_users_list_panel"><span><?php _e('Users List', $wpmudev_chat->translation_domain); ?> </span></a></li> <li id="chat_authentication_tab"><a href="#chat_authentication_panel"><span><?php _e('Authentication', $wpmudev_chat->translation_domain); ?> </span></a></li> <li id="chat_advanced_tab"><a href="#chat_advanced_panel"><span><?php _e('Advanced', $wpmudev_chat->translation_domain); ?> </span></a></li> </ul> <div id="chat_bottom_corner_panel" class="panel current"> <?php wpmudev_chat_form_section_bottom_corner($form_section); ?> </div> <div id="chat_box_appearance_panel" class="panel"> <?php wpmudev_chat_form_section_container($form_section); ?> </div> <div id="chat_box_position_panel" class="panel"> <?php wpmudev_chat_form_section_site_position($form_section); ?> </div> <div id="chat_messages_appearance_panel" class="panel"> <?php wpmudev_chat_form_section_messages_wrapper($form_section); ?> <?php wpmudev_chat_form_section_messages_rows($form_section); ?> </div> <div id="chat_messages_input_panel" class="panel"> <?php wpmudev_chat_form_section_messages_input($form_section); ?> </div> <div id="chat_users_list_panel" class="panel"> <?php wpmudev_chat_users_list($form_section); ?> </div> <div id="chat_authentication_panel" class="chat_panel"> <?php wpmudev_chat_form_section_login_options($form_section); ?> <?php //wpmudev_chat_form_section_login_view_options($form_section); ?> <?php wpmudev_chat_form_section_moderator_roles($form_section); ?> </div> <div id="chat_advanced_panel" class="chat_panel"> <?php //wpmudev_chat_form_section_logs($form_section); ?> <?php wpmudev_chat_form_section_logs_limit($form_section); ?> <?php wpmudev_chat_form_section_session_messages($form_section); ?> <?php if ($wpmudev_chat->get_option('blocked_ip_addresses_active', 'global') == "enabled") { wpmudev_chat_form_section_blocked_ip_addresses($form_section); } ?> <?php /* if ($wpmudev_chat->get_option('blocked_words_active', 'banned') == "enabled") { wpmudev_chat_form_section_blocked_words($form_section); } */ ?> <?php //wpmudev_chat_form_section_block_urls_site($form_section); ?> </div> </div> <input type="hidden" name="chat[section]" value="<?php echo $form_section; ?> " /> <?php wp_nonce_field('wpmudev_chat_settings_save', 'wpmudev_chat_settings_save_wpnonce'); ?> <p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes', $wpmudev_chat->translation_domain); ?> " /></p> </form> </div> <?php }
?> </div> <div id="wpmudev-chat-users-list-panel" class="panel"> <?php wpmudev_chat_users_list($form_section); ?> <?php wpmudev_chat_form_section_user_enter_exit_messages($form_section); ?> </div> <div id="wpmudev-chat-authentication-panel" class="panel"> <?php wpmudev_chat_form_section_login_options($form_section); ?> <?php wpmudev_chat_form_section_login_view_options($form_section); ?> <?php wpmudev_chat_form_section_moderator_roles($form_section); ?> </div> <div id="wpmudev-chat-advanced-panel" class="panel"> <?php wpmudev_chat_form_section_logs($form_section); ?>
function chat_settings_panel_dashboard() { global $wpmudev_chat; $form_section = "dashboard"; ?> <div id="wpmudev-chat-wrap" class="wrap wpmudev-chat-wrap-settings-page"> <?php if (is_network_admin()) { ?> <h2><?php _e('Chat Settings Network Dashboard Widgets', $wpmudev_chat->translation_domain); ?> </h2> <?php } else { ?> <h2><?php _e('Chat Settings Dashboard Widgets', $wpmudev_chat->translation_domain); ?> </h2> <?php } ?> <form method="post" id="wpmudev-chat-settings-form" action="?page=<?php echo $_GET['page']; ?> "> <?php if (is_network_admin()) { ?> <p><?php _e('This section controls visibiliy of Network Dashboard Chat Widgets', $wpmudev_chat->translation_domain); ?> </p> <?php } else { ?> <p><?php _e('This section controls visibiliy Dashboard Chat Widgets', $wpmudev_chat->translation_domain); ?> </p> <?php } ?> <div id="chat_tab_pane" class="chat_tab_pane"> <ul> <li id="chat_widgets_tab"><a href="#chat_widgets_panel" class="current"><span><?php _e('Widgets', $wpmudev_chat->translation_domain); ?> </span></a></li> <li id="chat_box_appearance_tab"><a href="#chat_box_appearance_panel"><span><?php _e('Box Appearance', $wpmudev_chat->translation_domain); ?> </span></a></li> <li id="chat_messages_appearance_tab"><a href="#chat_messages_appearance_panel"><span><?php _e('Message Appearance', $wpmudev_chat->translation_domain); ?> </span></a> </li> <li id="chat_messages_input_tab"><a href="#chat_messages_input_panel"><span><?php _e('Message Input', $wpmudev_chat->translation_domain); ?> </span></a></li> <li id="chat_users_list_tab"><a href="#chat_users_list_panel"><span><?php _e('Users List', $wpmudev_chat->translation_domain); ?> </span></a></li> <?php if (!is_network_admin()) { ?> <li id="chat_authentication_tab"><a href="#chat_authentication_panel"><span><?php _e('Authentication', $wpmudev_chat->translation_domain); ?> </span></a> </li> <?php } ?> <li id="chat_advanced_tab"><a href="#chat_advanced_panel"><span><?php _e('Advanced', $wpmudev_chat->translation_domain); ?> </span></a></li> </ul> <div id="chat_widgets_panel" class="panel current"> <?php wpmudev_chat_form_section_dashboard($form_section); ?> </div> <div id="chat_box_appearance_panel" class="panel"> <?php wpmudev_chat_form_section_container($form_section); ?> </div> <div id="chat_messages_appearance_panel" class="panel"> <?php wpmudev_chat_form_section_messages_wrapper($form_section); ?> <?php wpmudev_chat_form_section_messages_rows($form_section); ?> </div> <div id="chat_messages_input_panel" class="panel"> <?php wpmudev_chat_form_section_messages_input($form_section); ?> <?php wpmudev_chat_form_section_messages_send_button($form_section); ?> </div> <div id="chat_users_list_panel" class="panel"> <?php wpmudev_chat_users_list($form_section); ?> <?php wpmudev_chat_form_section_user_enter_exit_messages($form_section); ?> </div> <?php if (!is_network_admin()) { ?> <div id="chat_authentication_panel" class="chat_panel"> <?php wpmudev_chat_form_section_login_options($form_section); ?> <?php //wpmudev_chat_form_section_login_view_options($form_section); ?> <?php wpmudev_chat_form_section_moderator_roles($form_section); ?> </div> <?php } ?> <div id="chat_advanced_panel" class="chat_panel"> <?php wpmudev_chat_form_section_logs($form_section); ?> <?php wpmudev_chat_form_section_logs_limit($form_section); ?> </div> </div> <input type="hidden" name="chat[section]" value="<?php echo $form_section; ?> "/> <?php wp_nonce_field('wpmudev_chat_settings_save', 'wpmudev_chat_settings_save_wpnonce'); ?> <p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes', $wpmudev_chat->translation_domain); ?> "/></p> </form> </div> <?php }