-<?php
- $yesorno = array( 0 => __( 'Don’t show Avatars' ), 1 => __( 'Show Avatars' ) );
- foreach ( $yesorno as $key => $value) {
- $selected = (get_option('show_avatars') == $key) ? 'checked="checked"' : '';
- echo "\n\t<label><input type='radio' name='show_avatars' value='" . esc_attr($key) . "' $selected/> $value</label><br />";
- }
-?>
+ <label for="show_avatars">
+ <input type="checkbox" id="show_avatars" name="show_avatars" value="1" <?php checked( get_option('show_avatars'), 1 ); ?> />
+ <?php _e( 'Show Avatars' ); ?>
+ </label>