--- adsense.module.1.6	2007-06-22 03:25:06.000000000 +0800
+++ adsense.module	2007-12-03 19:56:44.000000000 +0800
@@ -67,6 +67,7 @@ define('ADSENSE_TEST_MODE',             
 define('ADSENSE_PLACEHOLDER',                 'adsense_placeholder');
 define('ADSENSE_PLACEHOLDER_TEXT',            'adsense_placeholder_text');
 define('ADSENSE_SECTION_TARGETING',           'adsense_section_targeting');
+define('ADSENSE_UI_FEATURES',                 'adsense_ui_features');
 define('ADSENSE_CLICK_TRACKING',              'adsense_click_tracking');
 define('ADSENSE_CLIENT_ID_PROFILE_FIELD',     'adsense_client_id_profile_field');
 define('ADSENSE_AD_BLOCK',                    'adsense_ad_block_');
@@ -457,6 +458,18 @@ function adsense_admin_settings() {
     '#description' => t('This better targets Google ads to the teaser and body of nodes.'),
   );
 
+  $form['advanced'][ADSENSE_UI_FEATURES] = array(
+    '#type' => 'select',
+    //'#type' => 'textfield',
+    '#title' => t('AdSense UI Features'),
+    '#default_value' => variable_get(ADSENSE_UI_FEATURES, ''),
+    '#default_value' => variable_get(ADSENSE_PERCENTAGE_AUTHOR, 0),
+    '#options' => drupal_map_assoc(array('rc:0', 'rc:1', 'rc:2', 'rc:3', 'rc:4', 'rc:5', 'rc:6', 'rc:7', 'rc:8', 'rc:9', 'rc:10', )),
+//    '#size' => 30,
+//    '#maxlength' => 30,
+    '#description' => t('This is the UI Features of AdSense. It makes the corner more rounded. (0: square, 6:slightly rounded, 10:very rounded). Official Google AdSense Blog: <a href="http://adsense.blogspot.com/2007/06/we-go-round-and-round.html">We go round and round</a>'),
+  );
+
   return system_settings_form($form);
 }
 
@@ -649,6 +662,8 @@ function _adsense_format($format, $group
 
   $format = $width . 'x' . $height . adsense_get_ad_code($format);
 
+  $ui_features = variable_get(ADSENSE_UI_FEATURES, '');
+
   $output .= _adsense_add_nl('');
   $output .= _adsense_add_nl('<div class="adsense">');
   $output .= _adsense_add_nl('<script type="text/javascript"><!--');
@@ -669,6 +684,10 @@ function _adsense_format($format, $group
   $output .= _adsense_add_nl('google_ad_width = '      . $width   . ';');
   $output .= _adsense_add_nl('google_ad_height = '     . $height  . ';');
   $output .= _adsense_add_nl('google_ad_format = "'    . $format  . '";');
+  if ($ui_features != '') {
+    $output .= _adsense_add_nl('google_ui_features = "'    . $ui_features  . '";');
+  }
+
   $output .= _adsense_add_nl('google_color_border = "' . $border  . '";');
   $output .= _adsense_add_nl('google_color_bg = "'     . $bg      . '";');
   $output .= _adsense_add_nl('google_color_link = "'   . $link    . '";');
