Ejemplo n.º 1
0
<div class="wrap">
<div id="icon-themes" class="icon32"><br /></div>
<?php
echo '<h2>'.sprintf(__('%s Options', WPS_TEXT_DOMAIN), WPS_WL).'</h2><br />';

__wps__show_tabs_header('gallery');
?>

<?php

	global $wpdb;
    // See if the user has posted profile settings
    if( isset($_POST[ 'symposium_gallery_updated' ]) ) {

	 	// Update Version *******************************************************************************
	 	$show_resized = (isset($_POST[ 'show_resized' ])) ? $_POST[ 'show_resized' ] : '';
	 	$thumbnail_size = (isset($_POST[ 'thumbnail_size' ])) ? $_POST[ 'thumbnail_size' ] : '75';
	 	$gallery_page_length = (isset($_POST[ 'gallery_page_length' ])) ? $_POST[ 'gallery_page_length' ] : '10';
	 	$gallery_preview = (isset($_POST[ 'gallery_preview' ])) ? $_POST[ 'gallery_preview' ] : '5';

		update_option(WPS_OPTIONS_PREFIX."_gallery_show_resized", $show_resized);
		update_option(WPS_OPTIONS_PREFIX."_gallery_thumbnail_size", $thumbnail_size);
		update_option(WPS_OPTIONS_PREFIX."_gallery_page_length", $gallery_page_length);
		update_option(WPS_OPTIONS_PREFIX."_gallery_preview", $gallery_preview);

        // Put an settings updated message on the screen
		echo "<div class='updated slideaway'><p>".__('Saved', WPS_TEXT_DOMAIN).".</p></div>";
		
    }

	// Get options
Ejemplo n.º 2
0
function __wps__mobile_menu() {

		global $wpdb;
		
    	// See if the user has posted Mobile settings
		if( isset($_POST[ 'symposium_update' ]) && $_POST[ 'symposium_update' ] == '__wps__mobile_menu' ) {
    	    	        
			update_option(WPS_OPTIONS_PREFIX.'_mobile_topics', $_POST['mobile_topics']);
			update_option(WPS_OPTIONS_PREFIX.'_mobile_notice', stripslashes($_POST['mobile_notice']));
			update_option(WPS_OPTIONS_PREFIX.'_mobile_useragent', isset($_POST['mobile_useragent']) ? $_POST['mobile_useragent'] : '');
			echo "<div class='updated slideaway'><p>".__('Saved', WPS_TEXT_DOMAIN).".</p></div>";

	    }
	 
	 	// Check for default values
	 	if (!get_option(WPS_OPTIONS_PREFIX.'_mobile_notice'))
	 		update_option(WPS_OPTIONS_PREFIX.'_mobile_notice', "<a href='/m'>Go Mobile!</a>");
	    // Get values from database  
		$mobile_topics = get_option(WPS_OPTIONS_PREFIX.'_mobile_topics');
		$mobile_notice = get_option(WPS_OPTIONS_PREFIX.'_mobile_notice');
		$mobile_useragent = get_option(WPS_OPTIONS_PREFIX.'_mobile_useragent');

	  	echo '<div class="wrap">';

		  	echo '<div id="icon-themes" class="icon32"><br /></div>';
		  	echo '<h2>'.sprintf(__('%s Options', WPS_TEXT_DOMAIN), WPS_WL).'</h2><br />';
		
			__wps__show_tabs_header('mobile');

			?>
	
					<form method="post" action=""> 
					<input type="hidden" name="symposium_update" value="__wps__mobile_menu">
		
					<table class="form-table"> 
		
						<tr><td colspan="2"><h2><?php _e('Options', WPS_TEXT_DOMAIN) ?></h2></td></tr>

						<tr valign="top"> 
						<td scope="row"><label for="mobile_notice"><?php _e('Mobile/Tablet notice', WPS_TEXT_DOMAIN); ?></label></td> 
						<td><input name="mobile_notice" type="text" id="mobile_notice"  value="<?php echo $mobile_notice; ?>" style="width:300px" /> <br />
						<span class="description">
							<?php echo __('Text shown at the top of relevant page if a mobile/tablet is detected (HTML/links permitted).<br />Enter \'hide\' to avoid displaying.', WPS_TEXT_DOMAIN); ?>
						</span></td> 
						</tr> 
	
						<tr valign="top"> 
						<td scope="row"><label for="mobile_topics"><?php _e('Maximum number of topics', WPS_TEXT_DOMAIN); ?></label></td> 
						<td><input name="mobile_topics" type="text" id="mobile_topics"  value="<?php echo $mobile_topics; ?>" style="width:50px" /> 
						<span class="description"><?php echo __('Threads view is also limited to last 7 days', WPS_TEXT_DOMAIN); ?></td> 
						</tr> 

						<tr valign="top"> 
						<td scope="row"><label for="mobile_useragent"><?php _e('Display user agent', WPS_TEXT_DOMAIN); ?></label></td>
						<td>
						<input type="checkbox" name="mobile_useragent" id="mobile_useragent" <?php if ($mobile_useragent == "on") { echo "CHECKED"; } ?>/>
						<span class="description"><?php echo __('For admin use only to check mobile device user agent', WPS_TEXT_DOMAIN); ?></span></td> 
						</tr> 
					
					</table>
		 					
				<p class="submit" style="margin-left:6px;">
				<input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes', WPS_TEXT_DOMAIN); ?>" />
				</p>
				</form>

				<table class="form-table"><tr><td colspan="2">
				<h2><?php _e('Installation steps', WPS_TEXT_DOMAIN) ?></h2>

				<div style="margin:10px">
				<p><?php _e("To install the Mobile/SEO/Accessibility plugin on your site:", WPS_TEXT_DOMAIN) ?></p>

				<ol>
					<li>In the directory where WordPress is installed, create a folder for your mobile version, for example '/m'.</li>
					<li>For example, for /m create <?php echo str_replace('//', '/', $_SERVER['DOCUMENT_ROOT'].'/'); ?>m to create <?php echo str_replace('//', '/', get_bloginfo('wpurl').'/'); ?>m</li>
					<li>Unzip <strong>mobile-files.zip</strong> (it can be found in your <?php echo WPS_WL; ?> plugin folder).</li>
					<li>Copy the <strong>extracted contents</strong> into the folder from step 2.</li>
				</ol>
				</div>
				</td></tr></table>

				<table class="form-table"><tr><td colspan="2">
				<h2><?php echo sprintf(__('Mobile version of %s', WPS_TEXT_DOMAIN), WPS_WL); ?></h2>
		
				<div style="margin:10px">
				<p>On your mobile device/phone browse to (for example) <a target='_blank' href='<?php echo str_replace('http:/', 'http://', str_replace('//', '/', get_bloginfo('wpurl').'/')); ?>m'><?php echo str_replace('http:/', 'http://', str_replace('//', '/', get_bloginfo('wpurl').'/')); ?>m</a></p>
				</div>

				</td></tr></table>

				<table class="form-table"><tr><td colspan="2">
				<h2><?php echo sprintf(__('Accessible version of %s', WPS_TEXT_DOMAIN), WPS_WL); ?></h2>
		
				<div style="margin:10px">
				<p>To force the mobile version to show in a normal browser, add ?a=1. For example, <a target='_blank' href='<?php echo get_bloginfo('wpurl'); ?>/m?a=1'><?php echo get_bloginfo('wpurl'); ?>/m?a=1</a></p>
				</div>
				</td></tr></table>

				<table class="form-table"><tr><td colspan="2">
				<h2><?php echo __('Search Engines', WPS_TEXT_DOMAIN); ?></h2>
		
				<div style="margin:10px">
				<p>Submit the URL (for example) <?php echo get_bloginfo('wpurl'); ?>/m to search engines. When people visit the link indexed they will automatically be redirected to the full site (unless on a mobile device).</p>
				</div>
				</td></tr></table>

			<?php __wps__show_tabs_header_end(); ?>
		</div>
	<?php
}
Ejemplo n.º 3
0
<div class="wrap">
<div id="icon-themes" class="icon32"><br /></div>

<?php
echo '<h2>'.sprintf(__('%s Options', WPS_TEXT_DOMAIN), WPS_WL).'</h2><br />';

__wps__show_tabs_header('replybyemail');

	
	if (isset($_POST['check_pop3']) && $_POST['check_pop3'] == 'get') {
		__wps__check_pop3(true,true);
		$_SESSION['__wps__mailinglist_lock'] = '';
	}
	if (isset($_POST['check_pop3']) && $_POST['check_pop3'] == 'check') {
		__wps__check_pop3(true,false);
		$_SESSION['__wps__mailinglist_lock'] = '';
	}
	
	if (isset($_POST['check_pop3']) && $_POST['check_pop3'] == 'delete') {
			
		if (!isset($_SESSION['__wps__mailinglist_lock']) || $_SESSION['__wps__mailinglist_lock'] != 'locked') {
			
			$_SESSION['__wps__mailinglist_lock'] = 'locked';
						
			global $wpdb;
			
		
			$server = get_option(WPS_OPTIONS_PREFIX.'_mailinglist_server');
			$port = get_option(WPS_OPTIONS_PREFIX.'_mailinglist_port');
			$username = get_option(WPS_OPTIONS_PREFIX.'_mailinglist_username');
			$password = get_option(WPS_OPTIONS_PREFIX.'_mailinglist_password');
Ejemplo n.º 4
0
<div class="wrap">
<div id="icon-themes" class="icon32"><br /></div>
<?php
echo '<h2>'.sprintf(__('%s Options', WPS_TEXT_DOMAIN), WPS_WL).'</h2><br />';

__wps__show_tabs_header('events');

	global $wpdb;
    // See if the user has posted profile settings
    if( isset($_POST[ 'symposium_events_updated' ]) ) {

	 	// Update *******************************************************************************
		update_option(WPS_OPTIONS_PREFIX."_events_global_list", $_POST[ 'symposium_events_global_list' ]);
		update_option(WPS_OPTIONS_PREFIX.'_events_user_places', isset($_POST[ 'symposium_events_user_places' ]) ? $_POST[ 'symposium_events_user_places' ] : '');
		update_option(WPS_OPTIONS_PREFIX.'_events_use_wysiwyg', isset($_POST[ 'symposium_events_use_wysiwyg' ]) ? $_POST[ 'symposium_events_use_wysiwyg' ] : '');
		update_option(WPS_OPTIONS_PREFIX.'_events_hide_expired', isset($_POST[ 'symposium_events_hide_expired' ]) ? $_POST[ 'symposium_events_hide_expired' ] : '');
		update_option(WPS_OPTIONS_PREFIX.'_events_sort_order', isset($_POST[ 'symposium_events_sort_order' ]) ? $_POST[ 'symposium_events_sort_order' ] : '');
		update_option(WPS_OPTIONS_PREFIX.'_events_calendar', isset($_POST[ 'symposium_events_calendar' ]) ? $_POST[ 'symposium_events_calendar' ] : 'list');

		// Included roles
		if (isset($_POST['dir_level'])) {
	   		$range = array_keys($_POST['dir_level']);
	   		$level = '';
   			foreach ($range as $key) {
				$level .= $_POST['dir_level'][$key].',';
	   		}
		} else {
			$level = '';
		}

		update_option(WPS_OPTIONS_PREFIX.'_events_profile_include', serialize($level));
Ejemplo n.º 5
0
        // Put an settings updated message on the screen
		echo "<div class='updated slideaway'><p>".__('Facebook options saved', WPS_TEXT_DOMAIN).".</p></div>";

    } else {
	    // Get values from database  
		$facebook_api = get_option(WPS_OPTIONS_PREFIX.'_facebook_api');
		$facebook_secret = get_option(WPS_OPTIONS_PREFIX.'_facebook_secret');
    }


  	echo '<div class="wrap">';

	  	echo '<div id="icon-themes" class="icon32"><br /></div>';
		echo '<h2>'.sprintf(__('%s Options', WPS_TEXT_DOMAIN), WPS_WL).'</h2><br />';
		
		__wps__show_tabs_header('facebook');

		?>

			<h3>Installation</h3>

			<div style="margin:10px">
			<p><?php _e("A Facebook application is used to post messages to Facebook Walls - you need to create a Facebook application for your website:", WPS_TEXT_DOMAIN) ?></p>

			<ol>
				<li><?php _e('Log in to ', WPS_TEXT_DOMAIN); ?><a target='_blank' href="http://www.facebook.com">Facebook</a>.</li> 
				<li><?php _e('Go', WPS_TEXT_DOMAIN); ?> <a target='_blank' href='https://developers.facebook.com/apps'><?php _e('here', WPS_TEXT_DOMAIN); ?></a>. </li> 
				<li><?php _e('Click on ', WPS_TEXT_DOMAIN); ?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>/library/create_app.gif" /><?php _e(' button', WPS_TEXT_DOMAIN); ?></li> 
				<li><?php _e('Enter an <strong>App Display Name</strong> (that will appear under Facebook Wall posts), eg: Example Web Site', WPS_TEXT_DOMAIN); ?></li> 
				<li><?php _e('You can leave <strong>App Namespace</strong> blank and ignore <strong>Web Hosting</strong>, click on Continue', WPS_TEXT_DOMAIN); ?></li> 
				<li><?php _e('Enter the security check words to continue to the next screen', WPS_TEXT_DOMAIN); ?></li> 
Ejemplo n.º 6
0
<div class="wrap">
<div id="icon-themes" class="icon32"><br /></div>
<?php



echo '<h2>'.sprintf(__('%s Options', WPS_TEXT_DOMAIN), WPS_WL).'</h2><br />';


__wps__show_tabs_header('plus');


	global $wpdb;
	// See if the user has posted profile settings
	
	if( isset($_POST[ '__wps__profile_plus_updated' ]) ) {



	 	$lat_long = (isset($_POST[ 'lat_long' ])) ? $_POST[ 'lat_long' ] : '';
	 	$show_alt = (isset($_POST[ 'show_alt' ])) ? $_POST[ 'show_alt' ] : '';
		$wps_show_hoverbox = (isset($_POST['wps_show_hoverbox']) ? $_POST['wps_show_hoverbox'] : '');
		$use_distance = (isset($_POST['use_distance']) ? $_POST['use_distance'] : '');
		$unique_display_name = (isset($_POST['unique_display_name']) ? $_POST['unique_display_name'] : '');
		$all_friends = (isset($_POST['all_friends']) ? $_POST['all_friends'] : '');
		$activity_images = (isset($_POST['activity_images']) ? $_POST['activity_images'] : '');
		$activity_youtube = (isset($_POST['activity_youtube']) ? $_POST['activity_youtube'] : '');

		$profile_menu_scrolls = (isset($_POST['profile_menu_scrolls']) ? $_POST['profile_menu_scrolls'] : '');
	 	$profile_menu_delta = ($_POST[ 'profile_menu_delta' ] != '') ? $_POST[ 'profile_menu_delta' ] : '40';
Ejemplo n.º 7
0
function __wps__members_menu() {
	
	global $wpdb;

	// See if the user has posted notification bar settings
	if( isset($_POST[ 'symposium_update' ]) && $_POST[ 'symposium_update' ] == '__wps__members_menu' ) {

		$dir_atoz_order = (isset($_POST['dir_atoz_order'])) ? $_POST['dir_atoz_order'] : '';
		$show_dir_buttons = (isset($_POST['show_dir_buttons'])) ? $_POST['show_dir_buttons'] : '';
		$dir_page_length = (isset($_POST['dir_page_length']) && $_POST['dir_page_length'] != '') ? $_POST['dir_page_length'] : '25';
		$dir_full_ver = (isset($_POST['dir_full_ver']) && $_POST['dir_full_ver'] != '') ? $_POST['dir_full_ver'] : '';
		$dir_hide_public = (isset($_POST['dir_hide_public']) && $_POST['dir_hide_public'] != '') ? $_POST['dir_hide_public'] : '';
		
		
		update_option(WPS_OPTIONS_PREFIX.'_dir_atoz_order', $dir_atoz_order);
		update_option(WPS_OPTIONS_PREFIX.'_show_dir_buttons', $show_dir_buttons);
		update_option(WPS_OPTIONS_PREFIX.'_dir_page_length', $dir_page_length);
		update_option(WPS_OPTIONS_PREFIX.'_dir_full_ver', $dir_full_ver);
		update_option(WPS_OPTIONS_PREFIX.'dir_hide_public', $dir_hide_public);
		

		// Included roles
		if (isset($_POST['dir_level'])) {
	   		$range = array_keys($_POST['dir_level']);
	   		$level = '';
   			foreach ($range as $key) {
				$level .= $_POST['dir_level'][$key].',';
	   		}
		} else {
			$level = '';
		}

		update_option(WPS_OPTIONS_PREFIX.'_dir_level', serialize($level));
		
		// Put an settings updated message on the screen
		echo "<div class='updated slideaway'><p>".__('Saved', WPS_TEXT_DOMAIN).".</p></div>";
		
	}

	// Get values to show
	$show_dir_buttons = get_option(WPS_OPTIONS_PREFIX.'_show_dir_buttons');
	$dir_page_length = get_option(WPS_OPTIONS_PREFIX.'_dir_page_length');
	
  	echo '<div class="wrap">';
  	
	  	echo '<div id="icon-themes" class="icon32"><br /></div>';
	  	echo '<h2>'.sprintf(__('%s Options', WPS_TEXT_DOMAIN), WPS_WL).'</h2><br />';
	
		__wps__show_tabs_header('directory');
		?>

			<form method="post" action=""> 
			<input type="hidden" name="symposium_update" value="__wps__members_menu">

			<table class="form-table __wps__admin_table">

			<tr><td colspan="2"><h2><?php _e('Options', WPS_TEXT_DOMAIN) ?></h2></td></tr>
			
			<tr valign="top">
			<td scope="row"><label for="dir_atoz_order"><?php echo __('Default view', WPS_TEXT_DOMAIN); ?></label></td> 
			<td>
			<select name="dir_atoz_order">
				<option value='last_activity'<?php if (get_option(WPS_OPTIONS_PREFIX.'_dir_atoz_order') == 'last_activity') { echo ' SELECTED'; } ?>><?php echo __('Most recently active', WPS_TEXT_DOMAIN); ?></option>
				<option value='display_name'<?php if (get_option(WPS_OPTIONS_PREFIX.'_dir_atoz_order') == 'display_name') { echo ' SELECTED'; } ?>><?php echo __('Display name', WPS_TEXT_DOMAIN); ?></option>
				<option value='surname'<?php if (get_option(WPS_OPTIONS_PREFIX.'_dir_atoz_order') == 'surname') { echo ' SELECTED'; } ?>><?php echo __('Surname (if entered in display_name)', WPS_TEXT_DOMAIN); ?></option>
			</select> 
			<span class="description"><?php echo __("Initial view of the member directory", WPS_TEXT_DOMAIN); ?></span></td>
			</tr> 		

			<tr valign="top"> 
			<td scope="row"><label for="dir_hide_public"><?php echo __('Make private?', WPS_TEXT_DOMAIN) ?></label></td>
			<td>
			<input type="checkbox" name="dir_hide_public" id="dir_hide_public" <?php if (isset($dir_hide_public) && $dir_hide_public == "on") { echo "CHECKED"; } ?>/>
			<span class="description"><?php echo __('Hide from public view, requires login to see directory', WPS_TEXT_DOMAIN); ?></span></td> 
			</tr> 
			
			<tr valign="top"> 
			<td scope="row"><label for="dir_full_ver"><?php echo __('Faster search?', WPS_TEXT_DOMAIN) ?></label></td>
			<td>
			<input type="checkbox" name="dir_full_ver" id="dir_full_ver" <?php if (isset($dir_full_ver) && $dir_full_ver == "on") { echo "CHECKED"; } ?>/>
			<span class="description"><?php echo __('Improves search time, but search results are limited and cannot re-order search results', WPS_TEXT_DOMAIN); ?></span></td> 
			</tr> 
			
			<tr valign="top"> 
			<td scope="row"><label for="show_dir_buttons"><?php echo __('Include member actions?', WPS_TEXT_DOMAIN) ?></label></td>
			<td>
			<input type="checkbox" name="show_dir_buttons" id="show_dir_buttons" <?php if ($show_dir_buttons == "on") { echo "CHECKED"; } ?>/>
			<span class="description"><?php echo __('Should buttons to add as a friend, or send mail, be shown on the directory?', WPS_TEXT_DOMAIN); ?></span></td> 
			</tr> 
			
			<tr valign="top"> 
			<td scope="row"><label for="dir_page_length"><?php echo __('Page Length', WPS_TEXT_DOMAIN) ?></label></td> 
			<td><input name="dir_page_length" type="text" id="dir_page_length" style="width:50px" value="<?php echo $dir_page_length; ?>"  /> 
			<span class="description"><?php echo __('Number of members shown at a time on the directory', WPS_TEXT_DOMAIN); ?></span></td> 
			</tr> 	

			<tr valign="top"> 
			<td scope="row"><label for="dir_level"><?php echo __('Roles to include in directory', WPS_TEXT_DOMAIN) ?></label></td> 
			<td>
			<?php

				// Get list of roles
				global $wp_roles;
				$all_roles = $wp_roles->roles;

				$dir_roles = get_option(WPS_OPTIONS_PREFIX.'_dir_level');

				foreach ($all_roles as $role) {
					echo '<input type="checkbox" name="dir_level[]" value="'.$role['name'].'"';
					if (strpos(strtolower($dir_roles), strtolower($role['name']).',') !== FALSE) {
						echo ' CHECKED';
					}
					echo '> '.$role['name'].'<br />';
				}	

			?>
			</td>
			
			</tr>

			<tr><td colspan="2"><h2>Shortcodes</h2></td></tr>
			
			<tr valign="top"> 
				<td scope="row">
					[<?php echo WPS_SHORTCODE_PREFIX; ?>-members]
				</td>
				<td>
				<?php echo __('Displays a list of members, based upon roles selected above.', WPS_TEXT_DOMAIN).'<br />'; ?>
				<?php echo '<strong>'.__('Parameters', WPS_TEXT_DOMAIN).'</strong><br />'; ?>
				<?php echo __('<div style="width:75px;float:left;">roles:</div>over-ride the roles above and limit to those included (comma separated)', WPS_TEXT_DOMAIN).'<br />'; ?>
				<?php echo '<strong>'.__('Example', WPS_TEXT_DOMAIN).'</strong><br />'; ?>
				<?php echo sprintf(__('[%s-members roles="administrator,subscriber"]', WPS_TEXT_DOMAIN), WPS_SHORTCODE_PREFIX).'<br />'; ?>
				<span class="description"><?php echo __('You can use this shortcode (with different parameters) on multiple pages.', WPS_TEXT_DOMAIN); ?></span>
				</td>
			</tr>
									
			</table>
		
			<p class="submit" style="margin-left:6px;"> 
			<input type="submit" name="Submit" class="button-primary" value="<?php echo __('Save Changes', WPS_TEXT_DOMAIN); ?>" /> 
			</p> 
			</form> 

	<?php
	__wps__show_tabs_header_end();
	echo '</div>';
		
}
Ejemplo n.º 8
0
<?php
// Update any POSTed updates
if (isset($_POST['symposium_lounge_max_rows'])) {
	update_option(WPS_OPTIONS_PREFIX.'_lounge_max_rows', $_POST['symposium_lounge_max_rows']);
}

?>


<div class="wrap">
<div id="icon-themes" class="icon32"><br /></div>
<?php
echo '<h2>'.sprintf(__('%s Options', WPS_TEXT_DOMAIN), WPS_WL).'</h2><br />';

__wps__show_tabs_header('lounge');
?>

<table class="form-table"><tr><td colspan="2">
<h2><?php echo __('Options', WPS_TEXT_DOMAIN); ?></h2>


<div>
<form action="" method="POST">
	
	<p>
	<?php _e('The Lounge plugin provides a site wide chat room ("shoutbox").', WPS_TEXT_DOMAIN); ?>
	</p>
	<?php _e('Maximum number of returned rows', WPS_TEXT_DOMAIN); ?>: <input type="text" name="symposium_lounge_max_rows" style="width:40px" value="<?php echo get_option(WPS_OPTIONS_PREFIX."_lounge_max_rows")+0; ?>" />
	<br /><br />
	<input type="submit" class="button-primary" value="<?php _e('Save', WPS_TEXT_DOMAIN); ?>">
	
Ejemplo n.º 9
0
<div class="wrap">
<div id="icon-themes" class="icon32"><br /></div>

<?php
echo '<h2>'.sprintf(__('%s Options', WPS_TEXT_DOMAIN), WPS_WL).'</h2><br />';

__wps__show_tabs_header('alerts');

if (isset($_POST['__wps__alerts_update'])) {
	// React to POSTed information
	if (isset($_POST['__wps__news_polling'])) {
		update_option(WPS_OPTIONS_PREFIX.'_news_polling', $_POST['__wps__news_polling']);
	}
	if (isset($_POST['__wps__news_x_offset'])) {
		update_option(WPS_OPTIONS_PREFIX.'_news_x_offset', $_POST['__wps__news_x_offset']);
	}
	if (isset($_POST['__wps__news_y_offset'])) {
		update_option(WPS_OPTIONS_PREFIX.'_news_y_offset', $_POST['__wps__news_y_offset']);
	}
	update_option(WPS_OPTIONS_PREFIX.'_hide_news_list', isset($_POST['hide_news_list']) ? $_POST['hide_news_list'] : '');					
}
?>


<form action="" method="POST">

	<input type="hidden" name="__wps__alerts_update" value="yes" />

	<table class="form-table __wps__admin_table">

		<tr><td colspan="2"><h2><?php _e('Options', WPS_TEXT_DOMAIN) ?></h2></td></tr>
Ejemplo n.º 10
0
<div class="wrap">
<div id="icon-themes" class="icon32"><br /></div>
<?php
echo '<h2>'.sprintf(__('%s Options', WPS_TEXT_DOMAIN), WPS_WL).'</h2><br />';

__wps__show_tabs_header('groups');
?>

<?php

	global $wpdb;
	
    // See if the user has posted profile settings
    if( isset($_POST[ 'symposium_update' ]) && $_POST[ 'symposium_update' ] == 'symposium-groups' ) {

		$group_all_create = (isset($_POST[ 'group_all_create' ])) ? $_POST[ 'group_all_create' ] : '';
		$group_invites = (isset($_POST[ 'group_invites' ])) ? $_POST[ 'group_invites' ] : '';
		$initial_groups = (isset($_POST[ 'initial_groups' ])) ? $_POST[ 'initial_groups' ] : '';
		$group_invites_max = $_POST[ 'group_invites_max' ];
		$group_max_members = ($_POST[ 'group_max_members' ] != '') ? $_POST[ 'group_max_members' ] : '0';

		update_option(WPS_OPTIONS_PREFIX.'_group_all_create', $group_all_create);
		update_option(WPS_OPTIONS_PREFIX.'_group_invites', $group_invites);
		update_option(WPS_OPTIONS_PREFIX.'_group_invites_max', $group_invites_max);
		update_option(WPS_OPTIONS_PREFIX.'_initial_groups', $initial_groups);
		update_option(WPS_OPTIONS_PREFIX.'_group_max_members', $group_max_members);
		update_option(WPS_OPTIONS_PREFIX.'_use_group_templates', isset($_POST[ 'wps_use_group_templates' ]) ? $_POST[ 'wps_use_group_templates' ] : '');

		if (get_option(WPS_OPTIONS_PREFIX.'_profile_menu_type')) {

			$default_menu_structure = '[Group]