function chat_settings_panel_buddypress() { global $wpmudev_chat; $form_section = "bp-group"; ?> <div id="wpmudev-chat-wrap" class="wrap wpmudev-chat-wrap-settings-page"> <h2><?php _e('Group Chat Settings', $wpmudev_chat->translation_domain); ?> </h2> <?php if (version_compare(bp_get_version(), '1.8') < 0) { ?> <form method="post" id="wpmudev-chat-settings-form" action="?page=<?php echo $_GET['page']; ?> "> <?php } ?> <?php //settings_fields('chat'); ?> <?php include_once dirname(dirname(__FILE__)) . '/lib/wpmudev_chat_form_sections.php'; include_once dirname(dirname(__FILE__)) . '/lib/wpmudev_chat_admin_panels_help.php'; ?> <div id="chat_tab_pane" class="chat_tab_pane"> <ul> <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> <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_box_appearance_panel" class="panel"> <?php wpmudev_chat_form_section_information($form_section); ?> <?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); ?> </div> <div id="chat_users_list_panel" class="panel"> <?php wpmudev_chat_users_list($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); } ?> </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'); ?> <?php /* if (!is_admin()) { ?> <p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes', $wpmudev_chat->translation_domain) ?>" /></p> <?php } */ ?> <?php if (version_compare(bp_get_version(), '1.8') < 0) { ?> </form> <?php } ?> <style type="text/css"> #wpmudev-chat-wrap .ui-tabs-panel.ui-widget-content { background-color: <?php echo $wpmudev_chat->get_option('bp_form_background_color', 'global'); ?> !important; } #wpmudev-chat-wrap fieldset table td.chat-label-column { color: <?php echo $wpmudev_chat->get_option('bp_form_label_color', 'global'); ?> !important; } </style> </div> <?php }
<?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); ?> <?php wpmudev_chat_form_section_logs_limit($form_section); ?> <?php wpmudev_chat_form_section_session_messages($form_section); ?> <?php if ($this->get_option('blocked_ip_addresses_active', 'global') == "enabled") { wpmudev_chat_form_section_blocked_ip_addresses($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 }