Index: sharethis.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/sharethis/Attic/sharethis.module,v
retrieving revision 1.1.2.8
diff -u -p -r1.1.2.8 sharethis.module
--- sharethis.module	18 Mar 2009 16:01:36 -0000	1.1.2.8
+++ sharethis.module	29 Apr 2009 16:20:22 -0000
@@ -77,6 +77,16 @@ function sharethis_admin_settings() {
     '#title' => t('Weight'),
     '#default_value' => variable_get('sharethis_sharethis_weight', 0),
   );
+  $form['sharethis_options'] = array(
+    '#type' => 'fieldset',
+    '#title' => 'Options'
+  );
+  $form['sharethis_options']['sharethis_embeds'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Show Embeds'),
+    '#description' => t('If enabled, allows embedded elements to be seen while iFrame is loading.'),
+    '#default_value' => variable_get('sharethis_embeds', 0),
+  );
   return system_settings_form($form);
 }
 
@@ -133,8 +143,12 @@ function sharethis_add_js() {
   static $sharethis_added = FALSE;
   if ($sharethis_added === FALSE) {
   	// Register the Drupal ShareThis behaviors and add the ShareThis URL.
+    $sharethisurl = 'http://w.sharethis.com/button/sharethis.js#button=false';
+    if (variable_get('sharethis_embeds', 0)) {
+      $sharethisurl .= '&amp;embeds=true';
+    }
     drupal_add_js(drupal_get_path('module', 'sharethis') . '/sharethis.js');
-    drupal_add_js(array('shareThisUrl' => 'http://w.sharethis.com/button/sharethis.js#button=false'), 'setting');
+    drupal_add_js(array('shareThisUrl' => $sharethisurl), 'setting');
 
     // Flag that the JavaScript has been registered.
     $sharethis_added = TRUE;
