blog_id, 'oci_wcg' ); 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_group_tag_cloud($args); restore_current_blog(); echo $after_widget; } function oci_widget_cloud_groups_control() { global $current_blog; $options = $newoptions = get_blog_option( $current_blog->blog_id, 'oci_wcg' ); if ( $_POST['oci-wcg-submit'] ) { $newoptions['title'] = strip_tags( stripslashes($_POST['oci-wcg-title'])); } if ( $options != $newoptions ) { $options = $newoptions; update_blog_option( $current_blog->blog_id, 'oci_wcg', $options ); } $title = attribute_escape($options['title']); ?>

blog_id, 'oci_wtb' ); 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_group_category_list($args); restore_current_blog(); echo $after_widget; } function oci_widget_categories_groups_control() { global $current_blog; $options = $newoptions = get_blog_option( $current_blog->blog_id, 'oci_wtg' ); if ( $_POST['oci-wtg-submit'] ) { $newoptions['title'] = strip_tags( stripslashes($_POST['oci-wtg-title'])); } if ( $options != $newoptions ) { $options = $newoptions; update_blog_option( $current_blog->blog_id, 'oci_wtg', $options ); } $title = attribute_escape($options['title']); ?>