__('Highly configurable tag cloud for tags and other custom taxonomies. Multiple widgets possible', 'nktagcloud') ); $control_ops = array( 'width' => 800, 'id_base' => 'nktagcloud' ); $this->WP_Widget( 'nktagcloud', __('Better Tag Cloud - multiwidget', 'nktagcloud'), $widget_ops, $control_ops ); } /** @see WP_Widget::widget */ function widget( $args, $instance ) { extract( $args ); $title = apply_filters( 'widget_title', $instance['title'] ); echo $before_widget; if ( $title ) echo $before_title . $title . $after_title; echo nktagcloud_the_cloud( $instance ); echo $after_widget; } /** @see WP_Widget::update */ function update( $new_instance, $old_instance ) { return $new_instance; } function nktagcloud_input( $title, $name, $size, $value ) { ?>

nktagcloud_input( __( 'Title', 'nktagcloud' ), 'title', 15, $title ) ?>
nktagcloud_input( __( 'Taxonomy', 'nktagcloud' ), 'taxonomy', 15, $instance['taxonomy'] ) ?>
nktagcloud_input( __( 'Smallest font size', 'nktagcloud' ), 'smallest', 4, $instance['smallest'] ) ?> nktagcloud_input( __( 'Largest font size', 'nktagcloud' ), 'largest', 4, $instance['largest'] ) ?> nktagcloud_select( __( 'Unit', 'nktagcloud' ), 'unit', array('pt', 'px', '%', 'em', 'ex', 'mm'), $instance['unit'] ); ?>
nktagcloud_input( __( 'Numbers of tags to show', 'nktagcloud' ), 'number', 4, $instance['number'] ) ?>
nktagcloud_select( __( 'Format', 'nktagcloud' ), 'format', array('flat', 'list'), $instance['format'] ); ?>
nktagcloud_select( __( 'Order', 'nktagcloud' ), 'order', array('ASC', 'DESC', 'RAND' ), $instance['order'] ); ?> nktagcloud_select( __( 'Orderby', 'nktagcloud' ), 'orderby', array('name', 'count', 'both' ), $instance['orderby'] ); ?>

Orderby will sort by post count first and then by name. It doesn't exist in the default tag cloud and will ignore the Order option.", 'nktagcloud' ) ?>

nktagcloud_select( __( 'Add post count to tags?', 'nktagcloud' ), 'inject_count', array('No', 'Yes'), $instance['inject_count'] ) ?> nktagcloud_select( __( 'Put the post count outside of the hyperlink?', 'nktagcloud' ), 'inject_count_outside', array('No', 'Yes'), $instance['inject_count_outside'] ) ?>
nktagcloud_input( __( 'Show only tags that have been used at least so many times:', 'nktagcloud' ), 'mincount', 4, $instance['mincount'] ) ?>
nktagcloud_select( __( 'Add categories to tag cloud?', 'nktagcloud' ), 'categories', array('No', 'Yes'), $instance['categories'] ) ?>
nktagcloud_select( __( 'Force tags with multiple words on one line?', 'nktagcloud' ), 'replace', array('No', 'Yes'), $instance['replace'] ) ?>
nktagcloud_input( __( 'Tag separator', 'nktagcloud' ), 'separator', 4, $instance['separator'] ) ?> nktagcloud_select( __( 'Hide the last separator?', 'nktagcloud' ), 'hidelastseparator', array('No', 'Yes'), $instance['hidelastseparator'] ) ?>
nktagcloud_select( __( 'Add the nofollow attribute?', 'nktagcloud' ), 'nofollow', array('No', 'Yes'), $instance['nofollow'] ) ?>

exclude=5,27 means that tags that have the term_id 5 or 27 will NOT be displayed. See Template Tags/wp tag cloud.', 'nktagcloud' ) ?>

nktagcloud_input( __( 'Exclude Tags', 'nktagcloud' ), 'exclude', 40, $instance['exclude'] ) ?>
nktagcloud_input( __( 'Include Tags', 'nktagcloud' ), 'include', 40, $instance['include'] ) ?>