$attr) { $pre_pattern[] = '/'.$attr.'/'; $pretags[$i] = ' '.$attr; } foreach($posttags as $i => $attr) { $post_pattern[] = '/[^_]'.$attr.'/'; $posttags[$i] = ' '.$attr; } $temp_string = preg_replace( $pre_pattern, $posttags, $string); $new_temp_string = wp_kses($temp_string, $mytags); $new_string = preg_replace( $post_pattern, $pretags, $new_temp_string); // Add in our %s so that the url and title get added properly return $new_string; } /** * The icon choser row. Should be made to look a bit prettier */ function _addthis_choose_icons($name, $options) { $addthis_new_styles = _get_style_options(); global $addthis_default_options; extract($options); if ($name == 'above') { $option = $above; $custom_size = $above_custom_size; $do_custom_services = ( isset( $above_do_custom_services ) && $above_do_custom_services ) ? 'checked="checked"' : ''; $do_custom_preferred = ( isset( $above_do_custom_preferred ) && $above_do_custom_preferred ) ? 'checked="checked"' : ''; $custom_services = $above_custom_services; $custom_preferred = $above_custom_preferred; $custom_more = $above_custom_more; $custom_string = $above_custom_string; } else { $option = $below; $custom_size = $below_custom_size; $do_custom_services = ( isset( $below_do_custom_services ) && $below_do_custom_services ) ? 'checked="checked"' : ''; $do_custom_preferred = ( isset( $below_do_custom_preferred ) && $below_do_custom_preferred ) ? 'checked="checked"' : ''; $custom_services = $below_custom_services; $custom_preferred = $below_custom_preferred; $custom_more = $below_custom_more; $custom_string = $below_custom_string; } ?>
  $name the post:", 'addthis_trans_domain') ?>   $v) { $class = 'hidden'; $checked = ''; if ($option == $k || ($option == 'none' && $k == $addthis_default_options[$name] ) ){ $checked = 'checked="checked"'; $class = ''; } if ($checked === '' && isset($v['defaultHide']) && $v['defaultHide'] == true) continue; echo "
".$k."
"; } $class = 'hidden'; $checked = ''; if ($option == 'custom' || ($option == 'none' && 'custom' == $addthis_default_options[$name] ) ){ $checked = 'checked="checked"'; $class = ''; echo "
Build your own
"; echo ""; } $class = 'hidden'; $checked = ''; if ($option == 'custom_string' || $option == 'none' && 'custom_strin' == $addthis_default_options[$name] ) { $checked = 'checked="checked"'; $class = ''; } echo "
Custom button
"; _e( sprintf("
This text box allows you to enter any AddThis markup that you wish. To see examples of what you can do, visit AddThis.com Sharing Tools and select any sharing tool. You can also check out our Client API. For any help you may need, please visit AddThis Support
", $name ),'addthis_trans_domain'); echo ""; echo ''; ?>
value='none' />None

More options