$login_register = $_POST['login_register']; __wps__do_summary_Widget($show_loggedout,$show_form,$login_url,$show_avatar,$login_username,$login_password,$login_remember_me,$login_button,$login_forgot,$login_register,$show_avatar_size); } // symposium_friends_Widget if ($_POST['action'] == 'symposium_friends_Widget') { $__wps__friends_count = $_POST['count']; $__wps__friends_desc = $_POST['desc']; $__wps__friends_mode = $_POST['mode']; $__wps__friends_show_light = $_POST['show_light']; $__wps__friends_show_mail = $_POST['show_mail']; __wps__do_friends_Widget($__wps__friends_count,$__wps__friends_desc,$__wps__friends_mode,$__wps__friends_show_light,$__wps__friends_show_mail); } // __wps__Forumexperts_Widget if ($_POST['action'] == 'Forumexperts_Widget') { $cat_id = $_POST['cat_id']; $cat_id_exclude = $_POST['cat_id_exclude']; $timescale = $_POST['timescale']; $postcount = $_POST['postcount']; $groups = $_POST['groups']; __wps__do_Forumexperts_Widget($cat_id,$cat_id_exclude,$timescale,$postcount,$groups); }
function widget( $args, $instance ) { global $wpdb, $current_user; wp_get_current_user(); if (is_user_logged_in()) { extract( $args ); // Get options $__wps__friends_count_title = apply_filters('widget_title', $instance['symposium_friends_count_title'] ); $__wps__friends_count = apply_filters('widget_symposium_friends_count', $instance['symposium_friends_count'] ); $__wps__friends_desc = apply_filters('widget_symposium_friends_desc', $instance['symposium_friends_desc'] ); $__wps__friends_mode = apply_filters('widget_symposium_friends_mode', $instance['symposium_friends_mode'] ); $__wps__friends_show_light = apply_filters('widget_symposium_friends_show_light', $instance['symposium_friends_show_light'] ); $__wps__friends_show_mail = apply_filters('widget_symposium_friends_show_mail', $instance['symposium_friends_show_mail'] ); // Start widget echo $before_widget; echo $before_title . $__wps__friends_count_title . $after_title; if (get_option(WPS_OPTIONS_PREFIX.'_ajax_widgets') == 'on') { // Parameters for AJAX echo '<div id="symposium_friends_Widget">'; echo __('Loading...', WPS_TEXT_DOMAIN); echo '<div id="symposium_friends_count" style="display:none">'.$__wps__friends_count.'</div>'; echo '<div id="symposium_friends_desc" style="display:none">'.$__wps__friends_desc.'</div>'; echo '<div id="symposium_friends_mode" style="display:none">'.$__wps__friends_mode.'</div>'; echo '<div id="symposium_friends_show_light" style="display:none">'.$__wps__friends_show_light.'</div>'; echo '<div id="symposium_friends_show_mail" style="display:none">'.$__wps__friends_show_mail.'</div>'; echo '</div>'; } else { __wps__do_friends_Widget($__wps__friends_count,$__wps__friends_desc,$__wps__friends_mode,$__wps__friends_show_light,$__wps__friends_show_mail); } // End content echo $after_widget; // End widget } }