$postcount = $_POST['postcount'];
	$groups = $_POST['groups'];

	__wps__do_Forumnoanswer_Widget($preview,$cat_id,$cat_id_exclude,$timescale,$postcount,$groups);
	
}

// recent_Widget
if ($_POST['action'] == 'recent_Widget') {
	
	$__wps__recent_count = $_POST['count'];
	$__wps__recent_desc = $_POST['desc'];
	$__wps__recent_show_light = $_POST['show_light'];
	$__wps__recent_show_mail = $_POST['show_mail'];

	do_recent_Widget($__wps__recent_count,$__wps__recent_desc,$__wps__recent_show_light,$__wps__recent_show_mail);
}

// members_Widget
if ($_POST['action'] == 'members_Widget') {
	
	$__wps__members_count = $_POST['count'];
	__wps__do_members_Widget($__wps__members_count);
	
}

// __wps__friends_status_Widget
if ($_POST['action'] == 'friends_status_Widget') {
	
	$postcount = $_POST['postcount'];
	$preview = $_POST['preview'];
Exemple #2
0
	function widget( $args, $instance ) {
		global $wpdb, $current_user;
		wp_get_current_user();
			
		extract( $args );
		
		// Get options
		$__wps__recent_title = apply_filters('widget_title', $instance['symposium_recent_title'] );
		$__wps__recent_count = apply_filters('widget_symposium_members_count', $instance['symposium_recent_count'] );
		$__wps__recent_desc = apply_filters('widget_symposium_recent_desc', $instance['symposium_recent_desc'] );
		$__wps__recent_show_light = apply_filters('widget_symposium_recent_show_light', $instance['symposium_recent_show_light'] );
		$__wps__recent_show_mail = apply_filters('widget_symposium_recent_show_mail', $instance['symposium_recent_show_mail'] );
		
		// Start widget
		echo $before_widget;
		echo $before_title . $__wps__recent_title . $after_title;

		if (get_option(WPS_OPTIONS_PREFIX.'_ajax_widgets') == 'on') {
			// Parameters for AJAX
			echo '<div id="__wps__recent_Widget">';
			echo __('Loading...', WPS_TEXT_DOMAIN);
			echo '<div id="__wps__recent_Widget_count" style="display:none">'.$__wps__recent_count.'</div>';
			echo '<div id="__wps__recent_Widget_desc" style="display:none">'.$__wps__recent_desc.'</div>';
			echo '<div id="__wps__recent_Widget_show_light" style="display:none">'.$__wps__recent_show_light.'</div>';
			echo '<div id="__wps__recent_Widget_show_mail" style="display:none">'.$__wps__recent_show_mail.'</div>';
			echo '</div>';	
			
		} else {
			do_recent_Widget($__wps__recent_count,$__wps__recent_desc,$__wps__recent_show_light,$__wps__recent_show_mail);
		}
		// End content
	
		echo $after_widget;
		// End widget

	}