<?php

/***
 * This file is used to add site administration menus to the WordPress network admin backend.
 */

/**
 * jes_admin()
 *
 * Checks for form submission, saves component settings and outputs admin screen HTML.
 */
 
if ( !function_exists( 'add_action' ) ) {
	header( 'Status: 403 Forbidden' );
	header( 'HTTP/1.1 403 Forbidden' );
	exit();
}

function jes_add_network_menu() {
?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<style type="text/css">
/* <![CDATA[ */

* {margin: 0; padding: 0;}
a {color: #0094D6;}
p {padding: 7px 0; font-size: 11px;}
h1 {font-size: 21px; font-weight: normal; margin: 0 0 30px;}
label { font-size: 12px; font-weight: normal; text-align: left;}
th { text-align: left; }
.section {
	min-width: 600px;
	background: #EFEFEF;
	margin: 0 0 30px;
}

table tr { vertical-align: top; }
ul.tabs {
	height: 28px;
	line-height: 25px;
	list-style: none;
	border-bottom: 1px solid #DDD;
	/* background: #FFF;*/
}
.tabs li {
	float: left;
	display: inline;
	margin: 0 1px -1px 0;
	padding: 0 13px 1px;
	color: #777;
	cursor: pointer;
	background: #F9F9F9;
	border: 1px solid #E4E4E4;
	border-bottom: 1px solid #F9F9F9;
	position: relative;
	font-size: 11px;
}
.tabs li:hover,
.vertical .tabs li:hover {
	color: #F70;
	padding: 0 13px;
	background: #FFFFDF;
	border: 1px solid #FFCA95;
}
.tabs li.current {
	color: #444;
	background: #EFEFEF;
	padding: 0 13px 2px;
	border: 1px solid #D4D4D4;
	border-bottom: 1px solid #EFEFEF;
}
.box {
	display: none;
	border: 1px solid #D4D4D4;
  border-width: 0 1px 1px;
	background: #EFEFEF;
	padding: 0 12px;
}
.box.visible {
	display: block;
}

.section.vertical {
	margin-left: 250px;
}
.vertical .tabs {
	width: 200px;
	float: left;
	display: inline;
	margin: 0 0 0 -210px;
	height: 390px;
}
.vertical .tabs li {
	padding: 0 13px;
	margin: 0 0 1px;
	border: 1px solid #E4E4E4;
	border-right: 1px solid #F9F9F9;
	width: 180px;
	height: 35px;
}
.vertical .tabs li:hover {
	width: 180px;
}
.vertical .tabs li.current {
	width: 180px;
	color: #444;
	background: #EFEFEF;
	border: 1px solid #D4D4D4;
  border-right: 1px solid #EFEFEF;
  margin-right: -1px;
}
.vertical .box {
  border-width: 1px;
}

/* ]]> */
</style>


<?php
	global $bp;

	
require_once ( WP_PLUGIN_DIR . '/jet-event-system-for-buddypress/main/jet-events-update.php' );

		$jes_events = get_site_option('jes-events' );

/* JES */

if ( isset($_POST['updatedb']) )
		{
			jes_events_init_jesdb();
			echo "<div id='message' class='updated fade'><p>" . __( 'Database updated.', 'buddypress') . "</p></div>";
		}

if ( isset($_POST['updatetemplate']) )
		{
			update_template($_POST['jthemepath']);
			echo "<div id='message' class='updated fade'><p>" . __( 'Templates updated.', 'buddypress') . "</p></div>";
		}

if ( isset($_POST['checkfiles']) )
		{
			echo "<div id='message' class='updated fade'><p>" . __( 'Files checked.', 'buddypress') . " - ";
			if (check_template($_POST['jthemepath']))
				{ echo "OK"; } else { echo "Error"; }
			echo "</p></div>";
		}

	$jes_events = get_site_option('jes_events' );
if ( isset($_POST['saveData']) ) {
		// save all inputed data
		$jes_events[ 'jes_events_class_enable' ] = 0;
		$jes_events[ 'jes_events_code_index' ] = 0;
		$jes_events[ 'jes_events_costumslug_enable' ] = 0;
		$jes_events[ 'jes_events_addnavi_disable' ] = 0;
		$jes_events[ 'jes_events_addnavicatalog_disable' ] = 0;
		$jes_events[ 'jes_events_createnonadmin_disable' ] = 0;
		$jes_events[ 'jes_events_adminapprove_enable' ] = 0;
		$jes_events[ 'jes_events_show_avatar_invite_enable' ] = 0;
		$jes_events[ 'jes_events_countryopt_enable' ] = 0;
		$jes_events[ 'jes_events_stateopt_enable' ] = 0;
		$jes_events[ 'jes_events_cityopt_enable' ] = 0;
		$jes_events[ 'jes_events_noteopt_enable' ] = 0;
		$jes_events[ 'jes_events_googlemapopt_enable' ] = 0;
		$jes_events[ 'jes_events_flyeropt_enable' ] = 0;
		$jes_events[ 'jes_events_specialconditions_enable' ] = 0;
		$jes_events[ 'jes_events_publicnews_enable' ] = 0;
		$jes_events[ 'jes_events_privatenews_enable' ] = 0;
		$jes_events[ 'jes_events_show_avatar_invite_enable' ] = 0;
		$jes_events[ 'jes_events_notifymembers_manual_enable' ] = 0;
		$jes_events[ 'jes_events_flyer_toall' ] = 0;		

		if ( $_POST[ 'jes_events_class_enable' ] == 1 ) 
			$jes_events[ 'jes_events_class_enable' ] = 1;
			
		if ( $_POST[ 'jes_events_code_index' ] == 1 ) 
			$jes_events[ 'jes_events_code_index' ] = 1;		

		if ( $_POST[ 'jes_events_costumslug_enable' ] == 1 ) 
			$jes_events[ 'jes_events_costumslug_enable' ] = 1;	

		if ( $_POST[ 'jes_events_addnavi_disable' ] == 1 ) 
			$jes_events[ 'jes_events_addnavi_disable' ] = 1;	

		if ( $_POST[ 'jes_events_addnavicatalog_disable' ] == 1 ) 
			$jes_events[ 'jes_events_addnavicatalog_disable' ] = 1;

		if ( $_POST[ 'jes_events_createnonadmin_disable' ] == 1 ) 
			$jes_events[ 'jes_events_createnonadmin_disable' ] = 1;

		if ( $_POST[ 'jes_events_createnonadmin_disable' ] == 1 ) 
			$jes_events[ 'jes_events_createnonadmin_disable' ] = 1;

		if ( $_POST[ 'jes_events_adminapprove_enable' ] == 1 ) 
			$jes_events[ 'jes_events_adminapprove_enable' ] = 1;	

		if ( $_POST[ 'jes_events_notifymembers_manual_enable' ] == 1 ) 
			$jes_events[ 'jes_events_notifymembers_manual_enable' ] = 1;
		
		if ( $_POST[ 'jes_events_flyer_toall' ] == 1 ) 
			$jes_events[ 'jes_events_flyer_toall' ] = 1;
			
			
/* Access to Event Fields */
	/* Conditions - News */
		if ( $_POST[ 'jes_events_specialconditions_enable' ] == 1 ) 
			$jes_events[ 'jes_events_specialconditions_enable' ] = 1;
			
		if ( $_POST[ 'jes_events_publicnews_enable' ] == 1 ) 
			$jes_events[ 'jes_events_publicnews_enable' ] = 1;

		if ( $_POST[ 'jes_events_privatenews_enable' ] == 1 ) 
			$jes_events[ 'jes_events_privatenews_enable' ] = 1;
	/* Country/State/City */
		if ( $_POST[ 'jes_events_countryopt_enable' ] == 1 ) 
			$jes_events[ 'jes_events_countryopt_enable' ] = 1;			
			
		if ( $_POST[ 'jes_events_stateopt_enable' ] == 1 ) 
			$jes_events[ 'jes_events_stateopt_enable' ] = 1;			

		if ( $_POST[ 'jes_events_cityopt_enable' ] == 1 ) 
			$jes_events[ 'jes_events_cityopt_enable' ] = 1;				

		if ( $_POST[ 'jes_events_countryopt_def' ] != null ) {
			$jes_events[ 'jes_events_countryopt_def' ] = stripslashes($_POST[ 'jes_events_countryopt_def' ]);
		}	

		if ( $_POST[ 'jes_events_stateopt_def' ] != null ) {
			$jes_events[ 'jes_events_stateopt_def' ] = stripslashes($_POST[ 'jes_events_stateopt_def' ]);
		}	

		if ( $_POST[ 'jes_events_cityopt_def' ] != null ) {
			$jes_events[ 'jes_events_cityopt_def' ] = stripslashes($_POST[ 'jes_events_cityopt_def' ]);
		}
	/* Note / googlemap / flyer */
		if ( $_POST[ 'jes_events_noteopt_enable' ] == 1 ) 
			$jes_events[ 'jes_events_noteopt_enable' ] = 1;

		if ( $_POST[ 'jes_events_googlemapopt_enable' ] == 1 ) 
			$jes_events[ 'jes_events_googlemapopt_enable' ] = 1;

		if ( $_POST[ 'jes_events_flyeropt_enable' ] == 1 ) 
			$jes_events[ 'jes_events_flyeropt_enable' ] = 1;	
/* Slug */
		if ( $_POST[ 'jes_events_costumslug' ] != null ) {
			$jes_events[ 'jes_events_costumslug' ] = stripslashes($_POST[ 'jes_events_costumslug' ]);
		}else{
			$jes_events[ 'jes_events_costumslug' ] = 'events';
		}

		if ( $_POST[ 'jes_events_social_code' ] != null ) {
			$jes_events[ 'jes_events_social_code' ] = stripslashes($_POST[ 'jes_events_social_code' ]);
		}else{
			$jes_events[ 'jes_events_social_code' ] = '<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
<a href="http://twitter.com/share" class="twitter-share-button">Tweet</a>';
		}
		
/* Date format */
		if ( $_POST[ 'jes_events_date_format' ] != null ) {
			$jes_events[ 'jes_events_date_format' ] = stripslashes($_POST[ 'jes_events_date_format' ]);
		}else{
			$jes_events[ 'jes_events_date_format' ] = 'dd mm yy';
		}		
		
		if ( $_POST[ 'jes_events_date_format_in' ] != null ) {
			$jes_events[ 'jes_events_date_format_in' ] = stripslashes($_POST[ 'jes_events_date_format_in' ]);
		}else{
			$jes_events[ 'jes_events_date_format_in' ] = 'd m Y';
		}
/* Style */		
		if ( $_POST[ 'jes_events_style' ] != null ) {
			$jes_events[ 'jes_events_style' ] = stripslashes($_POST[ 'jes_events_style' ]);
		}else{
			$jes_events[ 'jes_events_style' ] = __('Standart', 'buddypress');
		}

		if ( $_POST[ 'jes_events_style_single' ] != null ) {
			$jes_events[ 'jes_events_style_single' ] = stripslashes($_POST[ 'jes_events_style_single' ]);
		}else{
			$jes_events[ 'jes_events_style_single' ] = __('Standart', 'buddypress');
			}

/* Color Event */

		if ( $_POST[ 'jes_events_color_past' ] != null ) {
			$jes_events[ 'jes_events_color_past' ] = stripslashes($_POST[ 'jes_events_color_past' ]);
		} else {
			$jes_events[ 'jes_events_color_past' ] = 'CCCCCC';
		}

		if ( $_POST[ 'jes_events_color_current' ] != null ) {
			$jes_events[ 'jes_events_color_current' ] = stripslashes($_POST[ 'jes_events_color_current' ]);
		} else {
			$jes_events[ 'jes_events_color_current' ] = '33CC00';
		}

		if ( $_POST[ 'jes_events_color_active' ] != null ) {
			$jes_events[ 'jes_events_color_active' ] = stripslashes($_POST[ 'jes_events_color_active' ]);
		} else {
			$jes_events[ 'jes_events_color_active' ] = 'FF9900';
		}

/* Avatars size */	

		if ( $_POST[ 'jes_events_show_avatar_invite_enable' ] == 1 )
			$jes_events[ 'jes_events_show_avatar_invite_enable' ] = 1;

		if ( $_POST[ 'jes_events_defavatar' ] != null ) {
			$jes_events[ 'jes_events_defavatar' ] = stripslashes($_POST[ 'jes_events_defavatar' ]);
		}
			
		if ( $_POST[ 'jes_events_show_avatar_invite_size' ] != null ) {
			$jes_events[ 'jes_events_show_avatar_invite_size' ] = stripslashes($_POST[ 'jes_events_show_avatar_invite_size' ]);
		} else {
			$jes_events[ 'jes_events_show_avatar_invite_size' ] = 50;
		}

		if ( $_POST[ 'jes_events_show_avatar_main_size' ] != null ) {
			$jes_events[ 'jes_events_show_avatar_main_size' ] = stripslashes($_POST[ 'jes_events_show_avatar_main_size' ]);
		} else {
			$jes_events[ 'jes_events_show_avatar_main_size' ] = 150;
		}

		if ( $_POST[ 'jes_events_show_avatar_directory_size' ] != null ) {
			$jes_events[ 'jes_events_show_avatar_directory_size' ] = stripslashes($_POST[ 'jes_events_show_avatar_directory_size' ]);
		} else {
			$jes_events[ 'jes_events_show_avatar_directory_size' ] = 150;
		}
/* Classifications */		
		if ( $_POST[ 'jes_events_text_one' ] != null ) {
			$jes_events[ 'jes_events_text_one' ] = stripslashes($_POST[ 'jes_events_text_one' ]);
		}else{
			$jes_events[ 'jes_events_text_one' ] = __('Site', 'buddypress');
		}
		if ( $_POST[ 'jes_events_text_two' ] != null ) {
			$jes_events[ 'jes_events_text_two' ] = stripslashes($_POST[ 'jes_events_text_two' ]);
		}else{
			$jes_events[ 'jes_events_text_two' ] = __('Personal', 'buddypress');
		}		
		if ( $_POST[ 'jes_events_text_three' ] != null ) {
			$jes_events[ 'jes_events_text_three' ] = stripslashes($_POST[ 'jes_events_text_three' ]);
		}

		if ( $_POST[ 'jes_events_text_four' ] != null ) {
			$jes_events[ 'jes_events_text_four' ] = stripslashes($_POST[ 'jes_events_text_four' ]);
		}		

		if ( $_POST[ 'jes_events_text_five' ] != null ) {
			$jes_events[ 'jes_events_text_five' ] = stripslashes($_POST[ 'jes_events_text_five' ]);
		}
/* Sort */		
		if ( $_POST[ 'jes_events_sort_by' ] != null ) {
			$jes_events[ 'jes_events_sort_by' ] = stripslashes($_POST[ 'jes_events_sort_by' ]);
		}else{
			$jes_events[ 'jes_events_sort_by' ] = 'soon';		
		}
		if ( $_POST[ 'jes_events_sort_by_ad' ] != null ) {
			$jes_events[ 'jes_events_sort_by_ad' ] = stripslashes($_POST[ 'jes_events_sort_by_ad' ]);
		}else{
			$jes_events[ 'jes_events_sort_by' ] = 'ASC';			
		}

/* Notify */
		if ( $_POST[ 'jes_events_notify_timed' ] != null ) {
			$jes_events[ 'jes_events_notify_timed' ] = stripslashes($_POST[ 'jes_events_notify_timed' ]);
		}else{
			$jes_events[ 'jes_events_notify_timed' ] = '12';		
		}

		if ( $_POST[ 'jes_events_notifymembers_enable' ] != null ) {
			$jes_events[ 'jes_events_notifymembers_enable' ] = stripslashes($_POST[ 'jes_events_notifymembers_enable' ]);
		}else{
			$jes_events[ 'jes_events_notifymembers_enable' ] = 'admin';
		}
/* Google map */
		if ( $_POST[ 'jes_events_googlemapopt_type' ] != null ) {
			$jes_events[ 'jes_events_googlemapopt_type' ] = stripslashes($_POST[ 'jes_events_googlemapopt_type' ]);
		}else{
			$jes_events[ 'jes_events_googlemapopt_type' ] = 'google';
		}

/* -------------------- */

if (stripos($blogversion, 'MU') > 0)
	{
		$blogs_ids = get_blog_list( 0, 'all' );
		foreach ($blogs_ids as $blog) {
			update_blog_option( $blog['blog_id'], 'jes_events', $jes_events );
		}
	} else {
		update_site_option( 'jes_events', $jes_events );
	}
		echo "<div id='message' class='updated fade'><p>" . __( 'Options updated.', 'buddypress') . "</p></div>";
	}

/* JES */		

	?>

	<div class="wrap">
		<h2><img src="<?php echo WP_PLUGIN_URL . '/jet-event-system-for-buddypress/images/jeslogo.gif'; ?>"></h2>

	<form action="" name="jes_events_form" id="jes_events_form" method="post">
<div class="section vertical">
    <ul class="tabs">
		<li class="current"><?php _e( 'Information', 'buddypress'); ?></li>
		<li><?php _e( 'Main Block', 'buddypress'); ?></li>
		<li><?php _e( 'Setting up access to the fields events', 'buddypress'); ?></li>
		<li><?php _e( 'Style Options', 'buddypress'); ?></li>
		<li><?php _e( 'Classification options', 'buddypress'); ?></li>
		<li><?php _e( 'Google Map options (future)', 'buddypress'); ?></li>
		<li><?php _e( 'Reminder options (future)', 'buddypress'); ?></li>
		<li><?php _e( 'Restrict options', 'buddypress'); ?></li>
		<li><?php _e( 'Privacy options', 'buddypress'); ?></li> 
		<li><?php _e( 'Tech info', 'buddypress'); ?></li> 
	</ul>
	
	<div class="box" style="display: block;">
		<h3><?php _e( 'Information', 'buddypress'); ?></h3>
<table width="100%">
	<tr>
		<th>
			<?php _e('Information', 'buddypress'); ?>
		</th>
		<th>
			<?php _e( 'Setup', 'buddypress'); ?>
		</th>
		<th>
			<?php _e( 'Donations', 'buddypress'); ?>
		</th>
	</tr>
	<tr>
		<td width="25%">
			<h4>Jet Event System <?php _e('version', 'buddypress'); ?> <?php echo JES_EVENTS_VERSION; ?> <?php _e('build', 'buddypress'); ?> <?php echo JES_EVENTS_BUILD; ?></h4>
					<p><?php echo JES_EVENTS_RELEASE; ?></p>
				<p><?php _e('Template version:', 'buddypress');?>
					<?php if ( get_site_option( 'jes-theme-version' ) < JES_EVENTS_THEME_VERSION )
								{
									echo '<span style="color:#CC0033;">';
								} else {
									echo '<span>';
								} ?>
					<?php echo get_site_option( 'jes-theme-version' ); ?></span><?php echo '('.JES_EVENTS_THEME_VERSION.')'; ?></p>
					<p><?php _e('DB version:', 'buddypress'); ?>
					<?php if ( get_site_option( 'jes-events-db-version' ) < JES_EVENTS_DB_VERSION )
								{
									echo '<span style="color:#CC0033;">';
								} else {
									echo '<span>';
								} ?>
					<?php echo get_site_option( 'jes-events-db-version' );?></span><?php echo '('.JES_EVENTS_DB_VERSION.')'; ?></p>
				<p><strong>locale:</strong> wplang: <?php echo WPLANG; ?>, wplocale: <?php echo apply_filters( 'wordpress_locale', get_locale() ); ?></p>
		</td>
		<td>
	<form action="<?php echo site_url() . '/wp-admin/admin.php?page=jes-event-settings' ?>" name="jes_events_update_j" id="jes_events_update_j" method="post">
		<label name="jthemepath"><?php _e('Select the location you are using themes:', 'buddypress'); ?></label><br />
<?php
	$stps_vis = substr(STYLESHEETPATH,strlen(STYLESHEETPATH)-25,strlen(STYLESHEETPATH)-24);
?>
		<select name="jthemepath">
			<option value="<?php echo STYLESHEETPATH; ?>">..<?php echo substr(STYLESHEETPATH,strlen(STYLESHEETPATH)-30,strlen(STYLESHEETPATH)-29); ?>*</option>
			<option value="<?php echo TEMPLATEPATH; ?>">..<?php echo substr(TEMPLATEPATH,strlen(TEMPLATEPATH)-30,strlen(TEMPLATEPATH)-29); ?></option>
		</select>
		<br />
		<input type="submit" name="updatedb" value="<?php _e( 'Update Database', 'buddypress') ?>"/>
		<input type="submit" name="updatetemplate" value="<?php _e( 'Update Templates', 'buddypress') ?>"/>
		<input type="submit" name="checkfiles" value="<?php _e( 'Checking for files', 'buddypress') ?>"/>		
	</form>
		</td>
		<td>
			<p>Support the development of plug-in! Do not give up a modest donation</p>
				<table>
					<tbody>
						<tr>
							<td><img class="alignleft size-full wp-image-2614" title="Web Money" src="<?php echo WP_PLUGIN_URL . '/jet-event-system-for-buddypress/images/'; ?>webmoney31.gif" alt="" width="50" height="30" /></a></td>
							<td>Z113010060388 / R144831580346</td>
						</tr>
						<tr>
							<td><img class="alignleft size-full wp-image-2616" title="Yandex Money" src="<?php echo WP_PLUGIN_URL . '/jet-event-system-for-buddypress/images/'; ?>yandex_money1.png" alt="" width="46" height="12" /></a></td>
							<td>41001289356064</td>
						</tr>
					</tbody>
				</table>
		<p>(<?php _e('please specify in the designation of the site and name :) All who have made a contribution to the development of plug-in will be included in honor roll, as well as gain access to additional modules!', 'buddypress'); ?>)</p>
		</td>
	</tr>
</table>
	
	</div>
    <div class="box" style="display: none;">
		<h3><?php _e( 'Main Block', 'buddypress'); ?></h3>
<table width="100%">
							<tr valign="top">
							<th scope="row"><label for="jes_events_costumslug_enable"><?php _e( 'Allow costum slug', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_costumslug_enable" type="checkbox" id="jes_events_costumslug_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_costumslug_enable' ] ? ' checked="checked"' : '' ); ?> />
									<label for="jes_events_costumslug"><?php _e( 'Slug:', 'buddypress') ?></label>
									<input name="jes_events_costumslug" type="text" id="jes_events_costumslug" value="<?php echo $jes_events[ 'jes_events_costumslug' ]; ?>" />
					
								</td>
							</tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_sort_by"><?php _e( 'Sort of events in the directory (by default)', 'buddypress') ?></label></th>
								<td>
									<select name="jes_events_sort_by" id="jes_events_sort_by" size = "1">
										<option <?php if ($jes_events[ 'jes_events_sort_by' ] == 'soon') { ?>selected<?php } ?> value="soon"><?php _e('Upcoming', 'buddypress'); ?></option> 
										<option <?php if ($jes_events[ 'jes_events_sort_by' ] == 'last-active') { ?>selected<?php } ?> value="last-active"><?php _e('Last Active', 'buddypress'); ?></option> 
										<option <?php if ($jes_events[ 'jes_events_sort_by' ] == 'popular') { ?>selected<?php } ?> value="popular"><?php _e('Most Members', 'buddypress'); ?></option> 
										<option <?php if ($jes_events[ 'jes_events_sort_by' ] == 'newest') { ?>selected<?php } ?> value="newest"><?php _e('Newly Created', 'buddypress'); ?></option>  
										<option <?php if ($jes_events[ 'jes_events_sort_by' ] == 'alphabetical') { ?>selected<?php } ?> value="alphabetical"><?php _e('Alphabetical', 'buddypress'); ?></option>
									</select>
									<label for="jes_events_sort_by_ad"><?php _e( 'By:', 'buddypress') ?></label>
									<select name="jes_events_sort_by_ad" id="jes_events_sort_by_ad" size = "1">
										<option <?php if ($jes_events[ 'jes_events_sort_by_ad' ] == 'ASC') { ?>selected<?php } ?> value="ASC"><?php _e('Ascending', 'buddypress'); ?></option> 
										<option <?php if ($jes_events[ 'jes_events_sort_by_ad' ] == 'DESC') { ?>selected<?php } ?> value="DESC"><?php _e('Descending', 'buddypress'); ?></option> 
									</select>	
								</td>
							</tr>
							<tr valign="top">
							<th scope="row"><label for="jes_events_social_code"><?php _e( 'Social Share Code', 'buddypress') ?></label></th>
								<td>
									<label for="jes_events_social_code"><?php _e( 'Code:', 'buddypress') ?></label>
									<textarea name="jes_events_social_code" type="text" id="jes_events_social_code"><?php echo $jes_events[ 'jes_events_social_code' ]; ?></textarea>				
								</td>
							</tr>							
</table>
				<p align="center" class="submit"><input type="submit" name="saveData" value="<?php _e( 'Save Settings', 'buddypress') ?>"/></p>			
    </div>
    <div class="box" style="display: none;">
		<h3><?php _e( 'Setting up access to the fields events', 'buddypress'); ?></h3>
<table width="100%">
		<!-- Country/State/City Options -->
							<tr valign="top">
							<th scope="row"><label for="jes_events_countryopt_enable"><?php _e( 'Allow Country', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_countryopt_enable" type="checkbox" id="jes_events_countryopt_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_countryopt_enable' ] ? ' checked="checked"' : '' ); ?> />
									<label for="jes_events_countryopt_def"><?php _e( 'Name of the country by default:', 'buddypress') ?></label>
									<input name="jes_events_countryopt_def" type="text" id="jes_events_countryopt_def" value="<?php echo $jes_events[ 'jes_events_countryopt_def' ]; ?>" />
								</td>
							</tr>
			
							<tr valign="top">
							<th scope="row"><label for="jes_events_stateopt_enable"><?php _e( 'Allow State', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_stateopt_enable" type="checkbox" id="jes_events_stateopt_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_stateopt_enable' ] ? ' checked="checked"' : '' ); ?> />
									<label for="jes_events_stateopt_def"><?php _e( 'Name of the state by default:', 'buddypress') ?></label>
									<input name="jes_events_stateopt_def" type="text" id="jes_events_stateopt_def" value="<?php echo $jes_events[ 'jes_events_stateopt_def' ]; ?>" />	
								</td>
							</tr>	

							<tr valign="top">
							<th scope="row"><label for="jes_events_cityopt_enable"><?php _e( 'Allow City', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_cityopt_enable" type="checkbox" id="jes_events_cityopt_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_cityopt_enable' ] ? ' checked="checked"' : '' ); ?> />
									<label for="jes_events_cityopt_def"><?php _e( 'Name of the city by default:', 'buddypress') ?></label>
									<input name="jes_events_cityopt_def" type="text" id="jes_events_cityopt_def" value="<?php echo $jes_events[ 'jes_events_cityopt_def' ]; ?>" />	
								</td>
							</tr>
							
		<!-- Country/State/City Options -->	
							
							<tr valign="top">
							<th scope="row"><label for="jes_events_specialconditions_enable"><?php _e( 'Allow Special Conditions', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_specialconditions_enable" type="checkbox" id="jes_events_specialconditions_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_specialconditions_enable' ] ? ' checked="checked"' : '' ); ?> />
								</td>
							</tr>			

							<tr valign="top">
							<th scope="row"><label for="jes_events_publicnews_enable"><?php _e( 'Allow Public News', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_publicnews_enable" type="checkbox" id="jes_events_publicnews_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_publicnews_enable' ] ? ' checked="checked"' : '' ); ?> />
								</td>
							</tr>			

							<tr valign="top">
							<th scope="row"><label for="jes_events_privatenews_enable"><?php _e( 'Allow Private News', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_privatenews_enable" type="checkbox" id="jes_events_privatenews_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_privatenews_enable' ] ? ' checked="checked"' : '' ); ?> />
								</td>
							</tr>	

<?php /* note / googlemap / flyer */ ?>

							<tr valign="top">
							<th scope="row"><label for="jes_events_noteopt_enable"><?php _e( 'Allow Event Note', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_noteopt_enable" type="checkbox" id="jes_events_noteopt_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_noteopt_enable' ] ? ' checked="checked"' : '' ); ?> />
								</td>
							</tr>	

							<tr valign="top">
							<th scope="row"><label for="jes_events_googlemapopt_enable"><?php _e( 'Allow Event GoogleMap', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_googlemapopt_enable" type="checkbox" id="jes_events_googlemap_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_googlemapopt_enable' ] ? ' checked="checked"' : '' ); ?> />
								</td>
							</tr>
							
							<tr valign="top">
							<th scope="row"><label for="jes_events_flyeropt_enable"><?php _e( 'Allow Event Flyer', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_flyeropt_enable" type="checkbox" id="jes_events_flyeropt_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_flyeropt_enable' ] ? ' checked="checked"' : '' ); ?> />
								</td>
							</tr>				
</table>
				<p align="center" class="submit"><input type="submit" name="saveData" value="<?php _e( 'Save Settings', 'buddypress') ?>"/></p>	
    </div>
	<div class="box" style="display: none;">
		<h3><?php _e( 'Style Options', 'buddypress'); ?></h3>
<table width="100%">
							<tr valign="top">
							<th scope="row"><label for="jes_events_style"><?php _e( 'Style for Event Catalog:', 'buddypress') ?></label></th>
								<td>
									<select name="jes_events_style" id="jes_events_style" size = "1">
										<option <?php if ($jes_events[ 'jes_events_style' ] == 'Standart') { ?>selected <?php } ?>value="Standart"><?php _e('Standart Style', 'buddypress'); ?></option>
										<option <?php if ($jes_events[ 'jes_events_style' ] == 'Standard will full description') { ?>selected <?php } ?>value="Standard will full description"><?php _e('Standard will full description Style', 'buddypress'); ?></option>						
										<option <?php if ($jes_events[ 'jes_events_style' ] == 'Twitter') { ?>selected <?php } ?>value="Twitter"><?php _e('Twitter Style', 'buddypress'); ?></option>
										<option <?php if ($jes_events[ 'jes_events_style' ] == 'Calendar') { ?>selected <?php } ?>value="Calendar"><?php _e('Calendar Style', 'buddypress'); ?></option>
										<option <?php if ($jes_events[ 'jes_events_style' ] == 'Custom') { ?>selected <?php } ?>value="Custom"><?php _e('Custom Style*', 'buddypress'); ?></option>
									</select>
<p><?php _e('* To use a custom design Directory Events, modify the file:', 'buddypress'); ?> <?php echo STYLESHEETPATH.'/events/looptemplates/custom.php'; ?></p>
								</td>
							</tr>
	
							<tr valign="top">
							<th scope="row"><label for="jes_events_style_single"><?php _e( 'Style for Single Event:', 'buddypress') ?></label></th>
								<td>
									<select name="jes_events_style_single" id="jes_events_style_single" size = "1">
										<option <?php if ($jes_events[ 'jes_events_style_single' ] == 'Standart') { ?>selected <?php } ?>value="Standart"><?php _e('Standart Style', 'buddypress'); ?></option>			
										<option <?php if ($jes_events[ 'jes_events_style_single' ] == 'Twitter') { ?>selected <?php } ?>value="Twitter"><?php _e('Twitter Style', 'buddypress'); ?></option>
									</select>
								</td>
							</tr>

							<tr valign="top"><td><p><strong><?php _e('Avatar Options', 'buddypress'); ?></strong></p></td></tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_defavatar"><?php _e( 'Default avatar for events (img url):', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_defavatar" type="text" id="jes_events_defavatar" value="<?php echo $jes_events[ 'jes_events_defavatar' ]; ?>" />
								</td>
							</tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_defavatar_iphone"><?php _e( 'Default image for "save to iphone" (img url):', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_defavatar_iphone" type="text" id="jes_events_defavatar_iphone" value="<?php echo $jes_events[ 'jes_events_defavatar_iphone' ]; ?>" />
								</td>
							</tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_defavatar_outlook"><?php _e( 'Default image for "save to outlook" (img url):', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_defavatar_outlook" type="text" id="jes_events_defavatar_outlook" value="<?php echo $jes_events[ 'jes_events_defavatar_outlook' ]; ?>" />
								</td>
							</tr>
							
							<tr valign="top">
							<th scope="row"><label for="jes_events_show_avatar_invite_enable"><?php _e( 'Show avatars in the list of invited friends', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_show_avatar_invite_enable" type="checkbox" id="jes_events_show_avatar_invite_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_show_avatar_invite_enable' ] ? ' checked="checked"' : '' ); ?> />

									<label for="jes_events_show_avatar_invite_size"><?php _e( 'Avatars size:', 'buddypress') ?></label>
									<input name="jes_events_show_avatar_invite_size" type="text" id="jes_events_show_avatar_invite_size" value="<?php echo $jes_events[ 'jes_events_show_avatar_invite_size' ]; ?>" />
								</td>
							</tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_show_avatar_main_size"><?php _e( 'Single Event - avatars size (25..150px):', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_show_avatar_main_size" type="text" id="jes_events_show_avatar_main_size" value="<?php echo $jes_events[ 'jes_events_show_avatar_main_size' ]; ?>" />
								</td>
							</tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_show_avatar_directory_size"><?php _e( 'Directory Events - avatars size ( 25..150px):', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_show_avatar_directory_size" type="text" id="jes_events_show_avatar_directory_size" value="<?php echo $jes_events[ 'jes_events_show_avatar_directory_size' ]; ?>" />
								</td>
							</tr>
							
							<tr valign="top">
							<th scope="row"><label for="jes_events_color_past"><?php _e( 'Color for past event:', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_color_past" type="text" id="jes_events_color_past" value="<?php echo $jes_events[ 'jes_events_color_past' ]; ?>" />
								</td>
							</tr>							

							<tr valign="top">
							<th scope="row"><label for="jes_events_color_active"><?php _e( 'Color for active event:', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_color_active" type="text" id="jes_events_color_active" value="<?php echo $jes_events[ 'jes_events_color_active' ]; ?>" />
								</td>
							</tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_color_current"><?php _e( 'Color for current event:', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_color_current" type="text" id="jes_events_color_current" value="<?php echo $jes_events[ 'jes_events_color_current' ]; ?>" />
								</td>
							</tr>
							
</table>
				<p align="center" class="submit"><input type="submit" name="saveData" value="<?php _e( 'Save Settings', 'buddypress') ?>"/></p>	
	</div>
	<div class="box" style="display: none;">
		<h3><?php _e( 'Classification options', 'buddypress'); ?></h3>
<table width="100%">
							<tr valign="top">
							<th scope="row"><label for="jes_events_class_enable"><?php _e( 'Allow the use of classifiers through an administrative panel (unless you want to use some or classifier - leave his field blank)', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_class_enable" type="checkbox" id="jes_events_class_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_class_enable' ] ? ' checked="checked"' : '' ); ?> />
								</td>
							</tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_text_one"><?php _e( 'Classification - 1', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_text_one" type="text" size="40"id="jes_events_text_one" value="<?php echo $jes_events[ 'jes_events_text_one' ]; ?>" />
								</td>
							</tr>
							<tr valign="top">
							<th scope="row"><label for="jes_events_text_two"><?php _e( 'Classification - 2', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_text_two" type="text" size="40" id="jes_events_text_two" value="<?php echo $jes_events[ 'jes_events_text_two' ]; ?>" />
								</td>
							</tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_text_three"><?php _e( 'Classification - 3', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_text_three" type="text"size="40" id="jes_events_text_three" value="<?php echo $jes_events[ 'jes_events_text_three' ]; ?>" />
								</td>
							</tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_text_four"><?php _e( 'Classification - 4', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_text_four" type="text"size="40" id="jes_events_text_four" value="<?php echo $jes_events[ 'jes_events_text_four' ]; ?>" />
								</td>
							</tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_text_five"><?php _e( 'Classification - 5', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_text_five" type="text"size="40" id="jes_events_text_five" value="<?php echo $jes_events[ 'jes_events_text_five' ]; ?>" />
								</td>
							</tr>
</table>
				<p align="center" class="submit"><input type="submit" name="saveData" value="<?php _e( 'Save Settings', 'buddypress') ?>"/></p>	
	</div>
	<div class="box" style="display: none;">
		<h3><?php _e( 'Google Map options (future)', 'buddypress'); ?></h3>
<table width="100%">
		
		<tr valign="top">
			<th scope="row"><label for="jes_events_googlemapopt_type"><?php _e( 'Use the following mechanism for the demonstration maps:', 'buddypress') ?></label></th>
			<td>
				<select name="jes_events_googlemapopt_type" id="jes_events_googlemapopt_type">
					<option <?php if ($jes_events[ 'jes_events_googlemapopt_type' ] == 'google') { ?>selected<?php } ?> value="google"><?php _e('Google', 'buddypress'); ?></option>
					<option <?php if ($jes_events[ 'jes_events_googlemapopt_type' ] == 'image') { ?>selected<?php } ?> value="image"><?php _e('Image', 'buddypress'); ?></option>
				</select>
			</td>
		</tr>
	</table>
				<p align="center" class="submit"><input type="submit" name="saveData" value="<?php _e( 'Save Settings', 'buddypress') ?>"/></p>	
	</div>
	<div class="box" style="display: none;">
		<h3><?php _e( 'Reminder options (future)', 'buddypress'); ?></h3>
<table width="100%">
	
		<tr valign="top">
			<th scope="row"><label for="jes_events_notifymembers_manual_enable"><?php _e( 'Provide administrators an opportunity to remind participants of the events of the coming event in manual mode?', 'buddypress') ?></label></th>
			<td>
				<input name="jes_events_notifymembers_manual_enable" type="checkbox" id="jes_events_notifymembers_manual_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_notifymembers_manual_enable' ] ? ' checked="checked"' : '' ); ?> />
			</td>
		</tr>
		
		<tr valign="top">
			<th scope="row"><label for="jes_events_notifymembers_enable"><?php _e( 'To allow the setting reminder?', 'buddypress') ?></label></th>
			<td>
				<select name="jes_events_notifymembers_enable" id="jes_events_notifymembers_enable">
					<option <?php if ($jes_events[ 'jes_events_notifymembers_enable' ] == 'admin') { ?>selected<?php } ?> value="admin"><?php _e('Administrators', 'buddypress'); ?></option>
					<option <?php if ($jes_events[ 'jes_events_notifymembers_enable' ] == 'user') { ?>selected<?php } ?> value="user"><?php _e('All users', 'buddypress'); ?></option>
					<option <?php if ($jes_events[ 'jes_events_notifymembers_enable' ] == 'none') { ?>selected<?php } ?> value="none"><?php _e('Function is not active', 'buddypress'); ?></option>				
				</select>
			</td>
		</tr>

		<tr valign="top">
			<th scope="row"><label for="jes_events_notify_timed"><?php _e( 'Time remind default:', 'buddypress') ?></label></th>
			<td>
				<select name="jes_events_notify_timed" id="jes_events_notify_timed">
					<option <?php if ($jes_events[ 'jes_events_notify_timed' ] == '1') { ?>selected<?php } ?> value="1"><?php echo sprintf ( __('%s hours', 'buddypress'),'1'); ?></option>
					<option <?php if ($jes_events[ 'jes_events_notify_timed' ] == '2') { ?>selected<?php } ?> value="2"><?php echo sprintf ( __('%s hours', 'buddypress'),'2'); ?></option>
					<option <?php if ($jes_events[ 'jes_events_notify_timed' ] == '3') { ?>selected<?php } ?> value="3"><?php echo sprintf ( __('%s hours', 'buddypress'),'3'); ?></option>
					<option <?php if ($jes_events[ 'jes_events_notify_timed' ] == '5') { ?>selected<?php } ?> value="5"><?php echo sprintf ( __('%s hours', 'buddypress'),'5'); ?></option>
					<option <?php if ($jes_events[ 'jes_events_notify_timed' ] == '12') { ?>selected<?php } ?> value="12"><?php echo sprintf ( __('%s hours', 'buddypress'),'12'); ?></option>
					<option <?php if ($jes_events[ 'jes_events_notify_timed' ] == '24') { ?>selected<?php } ?> value="24"><?php echo sprintf ( __('%s hours', 'buddypress'),'24'); ?></option>
					<option <?php if ($jes_events[ 'jes_events_notify_timed' ] == '48') { ?>selected<?php } ?> value="48"><?php echo sprintf ( __('%s hours', 'buddypress'),'48'); ?></option>
					<option <?php if ($jes_events[ 'jes_events_notify_timed' ] == '72') { ?>selected<?php } ?> value="72"><?php echo sprintf ( __('%s hours', 'buddypress'),'72'); ?></option>
			</select>
			</td>
		</tr>
	</table>	
				<p align="center" class="submit"><input type="submit" name="saveData" value="<?php _e( 'Save Settings', 'buddypress') ?>"/></p>	
	</div>
	<div class="box" style="display: none;">
		<h3><?php _e( 'Restrict options', 'buddypress'); ?></h3>
<table width="100%">
							<tr valign="top">
							<th scope="row"><label for="jes_events_createnonadmin_disable"><?php _e( 'Prohibit non-administrators to create events', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_createnonadmin_disable" type="checkbox" id="jes_events_createnonadmin_disable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_createnonadmin_disable' ] ? ' checked="checked"' : '' ); ?> />
								</td>
							</tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_adminapprove_enable"><?php _e( 'Allow verification of events by the administrator', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_adminapprove_enable" type="checkbox" id="jes_events_adminapprove_enable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_adminapprove_enable' ] ? ' checked="checked"' : '' ); ?> />
								</td>
							</tr>
</table>
				<p align="center" class="submit"><input type="submit" name="saveData" value="<?php _e( 'Save Settings', 'buddypress') ?>"/></p>	
	</div>
	<div class="box" style="display: none;">
		<h3><?php _e( 'Privacy options', 'buddypress'); ?></h3>
<table width="100%">
							<tr valign="top">
							<th scope="row"><label for="jes_events_code_index"><?php _e( 'Allow indexing of events search engines', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_code_index" type="checkbox" id="jes_events_code_index" value="1"<?php echo( '1' == $jes_events[ 'jes_events_code_index' ] ? ' checked="checked"' : '' ); ?> />
								</td>
							</tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_addnavi_disable"><?php _e( 'Deny access to events for unregistered users', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_addnavi_disable" type="checkbox" id="jes_events_addnavi_disable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_addnavi_disable' ] ? ' checked="checked"' : '' ); ?> />
								</td>
							</tr>

							<tr valign="top">
							<th scope="row"><label for="jes_events_addnavi_disable"><?php _e( 'Show private events in the catalog for unregistered users (in the cases allow access to events)', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_addnavicatalog_disable" type="checkbox" id="jes_events_addnavicatalog_disable" value="1"<?php echo( '1' == $jes_events[ 'jes_events_addnavicatalog_disable' ] ? ' checked="checked"' : '' ); ?> />
								</td>
							</tr>
							
							<tr valign="top">
							<th scope="row"><label for="jes_events_flyer_toall"><?php _e( 'Show flyers to all users? (otherwise, flyers will be available only to participants of the event)', 'buddypress') ?></label></th>
								<td>
									<input name="jes_events_flyer_toall" type="checkbox" id="jes_events_flyer_toall" value="1"<?php echo( '1' == $jes_events[ 'jes_events_flyer_toall' ] ? ' checked="checked"' : '' ); ?> />
								</td>
							</tr>							
</table>
				<p align="center" class="submit"><input type="submit" name="saveData" value="<?php _e( 'Save Settings', 'buddypress') ?>"/></p>
	</div>
	<div class="box" style="display: none;">
<table width="100%">
	<tr>	
		<th>
			<?php _e( 'Support', 'buddypress'); ?>
		</th>
		<th>
			<?php _e( 'Translate', 'buddypress'); ?>
		</th>
		<th>
			<?php _E( 'Note', 'buddypress'); ?>
		</th>
	</tr>
	<tr>
		<td>
			<p><a href="http://milordk.ru/r-lichnoe/opyt/cms/jet-event-system-for-buddypress-sistema-sobytij-dlya-vashej-socialnoj-seti.html">About</a></p>
	<p><a href="http://jes.milordk.ru">Website Developer</a>: <a href="http://test.jes.milordk.ru/">Ticket site</a>, <a href="http://jes.milordk.ru/manual-working-with-a-event.html">Manual</a>, <a href="http://jes.milordk.ru/changelog.html">Changelog</a>, <a href="http://jes.milordk.ru/polls-oprosy.html">Polls</a></p>
		</td>
		<td>
	<p><ul>
		<li><strong>ru_RU</strong> - <em>Jettochkin</em>, <a href="http://milordk.ru/" target="_blank">milordk.ru</a></li>
		<li><strong>fr_FR</strong> - <em>Laurent Hermann</em>, <a href="http://www.paysterresdelorraine.com/" target="_blank">paysterresdelorraine.com</a></li>
		<li><strong>de_DE</strong> - <em>Manuel MЭller</em>, <a href="http://www.pixelartist.de/" target="_blank">pixelartist.de</a></li>
		<li><strong>es_ES</strong> - <em>Alex_Mx</em></li>
		<li><strong>da_DK</strong> - <em>Chono</em>, <a href="http://www.chono.dk/" target="_blank">chono.dk</a></li>
		<li><strong>it_IT</strong> - <em>Andrea</em>, <a href="http://riderbook.it/">riderbook.it</a>
		<li><strong>sv_SE</strong> - <em>Thomas Schneider</em>
		<li><strong>pt_BR</strong> - <em>Adilson</em>, <a href="http://www.xrides.com.br/">XRides - DH e Freeride</a></li>
		<li><strong>fi</strong> - <em>Juho Pirhonen</em>, http://mediajalostamo.fi</li>
</ul></p>
	<p>To translate use <a href="http://www.poedit.net/">POEdit</a>, also present in the folder plugin POT-file</p>
	<p><em><?php _e('Please send your translations to milord_k @ mail.ru', 'buddypress'); ?></em></p>
	<p>Do not forget to include links to your sites (for accommodation options in the list of translators)</p>
	<p><?php _e('Translates can be discussed at the forum on the official website of the plugin:', 'buddypress'); ?> <a href="http://jes.milordk.ru/groups/translates/">Group</a></p>

		</td>
		<td>
		</td>
		<td>
		<p><strong><?php _e('Recommended plugins', 'buddypress'); ?></strong>
	<ul>
		<li><a href="http://milordk.ru/r-lichnoe/opyt/cms/jet-site-unit-could-poleznye-vidzhety-dlya-vashej-socialnoj-seti.html" title="Jet Site Unit Could">Jet Site Unit Could</a></li>
		<li><a href="http://milordk.ru/r-lichnoe/opyt/cms/publikaciya-v-wordpress-minuyu-administrativnuyu-panel-jet-quickpress.html">Jet QuickPress (for BP < 1.2.5)</a></li>
		<li><a href="http://milordk.ru/r-lichnoe/opyt/cms/v-pomoshh-adminam-jet-footer-code.html">Jet Footer Code</a></li>
		<li><a href="http://cosydale.com/plugin-cd-avatar-bubble.html">CD Avatar Bubble</a></li>
		<li><a href="http://wordpress.org/extend/plugins/wp-minify/">WP Minify</a></li>
		<li><a href="http://dev.pellicule.org/?page_id=19">One Click Post (for BP > 1.2.5, WP 3.0.x)</a></li>
	</ul></p>
<p><strong><?php _e('Recommended themes', 'buddypress'); ?></strong>
	<ul>
		<li><a href="http://milordk.ru/r-lichnoe/opyt/cms/jet-lite-tema-dlya-wordpress-3-0.html" title="Jet Site Unit Could">Jet Lite Standart</a></li>
		<li><a href="http://milordk.ru/r-lichnoe/opyt/cms/jet-lite-fresh-cut-day-tema-dlya-wordpress-3-0.html">Jet Lite Fresh Cut Day</a></li>
		<li><a href="http://milordk.ru/r-lichnoe/opyt/cms/jet-lite-yellow-%e2%80%93-tema-dlya-wordpress-3-0.html">Jet Lite Yellow</a></li>
	</ul></p>
	<p>Special thanks to <a href="http://cosydale.com">slaFFik</a> for his help in writing a plugin!</p>
	<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
		<div>
			Tweet Jes DEV Site <a href="http://twitter.com/share?url=http://jes.milordk.ru&text=Jet Event System for BuddyPress" class="twitter-share-button">Tweet</a>
		</div>
		</td>
	</tr>
</table>

	</div>
</div>


	</div>
	</form>

<?php
}
function jes_add_network_menu_s() {
	add_submenu_page( 'bp-general-settings', __( 'Jet Event System', 'buddypress'), __( 'Jet Event System', 'buddypress'), 'manage_options', 'jet-event-settings',	'jes_add_network_menu' );
}
add_action( is_multisite() && function_exists( 'is_network_admin' ) ? 'network_admin_menu' : 'admin_menu', 'jes_add_network_menu_s', 90 );
?>
