OCI_DEFAULT_TAG_TAXONOMY, 'url' => OCI_DEFAULT_URL ); $args = wp_parse_args( $args, $defaults ); extract($args); $options = get_blog_option( $current_blog->blog_id, 'oci_wcs' ); 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_tag_cloud($args); restore_current_blog(); echo $after_widget; } function oci_widget_cloud_sitewide_control() { global $current_blog; $options = $newoptions = get_blog_option( $current_blog->blog_id, 'oci_wcs' ); if ( $_POST['oci-wcs-submit'] ) { $newoptions['title'] = strip_tags( stripslashes($_POST['oci-wcs-title'])); } if ( $options != $newoptions ) { $options = $newoptions; update_blog_option( $current_blog->blog_id, 'oci_wcs', $options ); } $title = attribute_escape($options['title']); ?>