blog_id, 'oci_wcm' ); echo $before_widget; echo $before_title; if ( $options['title'] ){ echo $options['title']; } else echo $widget_name; echo $after_title; switch_to_blog(BP_ROOT_BLOG); oci_the_member_tag_cloud($args); restore_current_blog(); echo $after_widget; } function oci_widget_cloud_members_control() { global $current_blog; $options = $newoptions = get_blog_option( $current_blog->blog_id, 'oci_wcm' ); if ( $_POST['oci-wcm-submit'] ) { $newoptions['title'] = strip_tags( stripslashes($_POST['oci-wcm-title'])); } if ( $options != $newoptions ) { $options = $newoptions; update_blog_option( $current_blog->blog_id, 'oci_wcm', $options ); } $title = attribute_escape($options['title']); ?>
blog_id, 'oci_wtm' ); echo $before_widget; echo $before_title; if ( $options['title'] ){ echo $options['title']; } else echo $widget_name; echo $after_title; switch_to_blog(BP_ROOT_BLOG); oci_the_member_category_list($args); restore_current_blog(); echo $after_widget; } function oci_widget_categories_members_control() { global $current_blog; $options = $newoptions = get_blog_option( $current_blog->blog_id, 'oci_wtm' ); if ( $_POST['oci-wtm-submit'] ) { $newoptions['title'] = strip_tags( stripslashes($_POST['oci-wtm-title'])); } if ( $options != $newoptions ) { $options = $newoptions; update_blog_option( $current_blog->blog_id, 'oci_wtm', $options ); } $title = attribute_escape($options['title']); ?>