I would love to modify the sharethis plugin (http://sharethis.com)in the way of changing the default options it comes with.
here is the code I picked out for changing:
$options = array(
'st_add_to_content' => __('Automatically add ShareThis to your posts?*', 'sharethis')
, 'st_add_to_page' => __('Automatically add ShareThis to your pages?*', 'sharethis')
);
foreach ($options as $option => $description) {
$$option = get_option($option);
if (empty($$option) || $$option == 'no') {
$yes = '';
$no = ' selected="selected"';
}
else {
$yes = ' selected="selected"';
$no = '';
}
print('
<p>
<label for="'.$option.'">'.$description.'</label>
<select name="'.$option.'" id="'.$option.'">
<option value="yes"'.$yes.'>'.__('Yes', 'sharethis').'</option>
<option value="no"'.$no.'>'.__('No', 'sharethis').'</option>
</select>
</p>
');
}
I think changing this:
if (empty($$option) || $$option == 'no') {
$yes = '';
$no = ' selected="selected"';
}
should set the default settings so that ShareThis is not automatically added, right?