?>

				<?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);
}
wpmudev_chat_form_section_blocked_words($form_section);
?>


			</div>
		</div>

		<div class="mceActionPanel">
			<div style="float: left; width: 40%;">
				<input type="button" id="cancel" name="cancel"
					value="<?php 
_e('Cancel', $this->translation_domain);
?>
"
					title="<?php 
_e('Cancel change and close popup', $this->translation_domain);
        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 
        }