$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 $new_string = substr_replace($new_string, $customstyles, 4, 0); return $new_string; } /** * Add this version notification message * @param int $atversion_update_status * @param int $atversion */ function _addthis_version_notification($atversion_update_status, $atversion) { //Fresh install Scenario. ie., atversion = 300 without reverting back. if($atversion_update_status == ADDTHIS_ATVERSION_AUTO_UPDATE && $atversion >= ADDTHIS_ATVERSION) { return; } $imgLocationBase = apply_filters( 'addthis_files_uri', plugins_url( '' , basename(dirname(__FILE__)))) . '/addthis/img/' ; ob_start(); // In the automatic update by the system the $atversion_update_status is 0 // On subsequent update using notification link the $atversion_update_status = -1 // In both cases display the revert link if ($atversion_update_status == ADDTHIS_ATVERSION_AUTO_UPDATE || $atversion_update_status == ADDTHIS_ATVERSION_MANUAL_UPDATE) { ?>
$array[$key]); unset($array[$key]); $array = $temp + $array; } /** * 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') { _addthis_swap_first_two_elements($addthis_new_styles, 'large_toolbox'); $legend = 'Top'; $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 { $legend = 'Bottom'; $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; } ?>