$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); if (strpos($temp_string, "twscreen_name") != false) { $temp_string = str_replace('twscreen_name', 'twscreenname', $temp_string); } if (strpos($temp_string, "fblikeshow_faces") != false) { $temp_string = str_replace('fblikeshow_faces', 'fblikeshowfaces', $temp_string); } $new_temp_string = wp_kses($temp_string, $mytags); // Add in our %s so that the url and title get added properly if (!preg_match('/(]+>)/i', $string, $matches)) { $new_string = preg_replace( $post_pattern, $pretags, $new_temp_string); $new_string = substr_replace($new_string, $customstyles, 4, 0); } else { $new_string = substr_replace($new_temp_string, $customstyles, 4, 0); } if (strpos($new_string, "tw:screenname") != false) { $new_string = str_replace('tw:screenname', 'tw:screen_name', $new_string); } if (strpos($new_string, "fb:like:showfaces") != false) { $new_string = str_replace('fb:like:showfaces', 'fb:like:show_faces', $new_string); } return $new_string; } /** * AddThis version notification message * @param int $atversion_update_status * @param int $atversion */ function _addthis_version_notification($atversion_update_status, $atversion) { global $cmsConnector; //Fresh install Scenario. ie., atversion = 300 without reverting back. if($atversion_update_status == ADDTHIS_ATVERSION_AUTO_UPDATE && $atversion >= ADDTHIS_ATVERSION) { return; } 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) { ?>
Your AddThis sharing plugin has been updated.
Revert back to previous version
Update AddThis to activate new features that will make sharing even easier.
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) { global $addThisConfigs; global $cmsConnector; $addthis_new_styles = _get_style_options(); $addthis_default_options = $addThisConfigs->getConfigs(); extract($options); if ($name == 'above') { _addthis_swap_first_two_elements($addthis_new_styles, 'large_toolbox'); $titleAdjective = '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 { $titleAdjective = 'Below'; $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; } $titleAdjectiveLower = strtolower($titleAdjective); ?>
"; } echo ''; ?>
getSharingButtonLocations(); if (!in_array($type, $types)) { return false; } $addthis_options = $addThisConfigs->getConfigs(); $template_checkboxes_config = $addThisConfigs->getFieldsForContentTypeSharingLocations( null, $type ); ?>

Templates

These are the page templates on which your buttons will appear.

Services:

AddThis boosts sharing by automatically showing the right buttons to each user based on their location and activity across the web.

Auto Personalization (recommended)
value="-disable-smart-sharing"> Select Your Own

Selected Buttons

    Restore default options

    Drag up or down to reorder services

    Drag across to add service

    ID)) { $type = 'pages'; } elseif (is_single()) { $type = 'posts'; } else { $type = false; } return $type; } /** * determines if the above buttons are enabled for exceprts * @return boolean true if enabled, false is disabled */ function _addthis_excerpt_buttons_enabled_above() { global $addThisConfigs; $options = $addThisConfigs->getConfigs(); $enabled = (boolean)(isset($options['addthis_above_showon_excerpts']) && $options['addthis_above_showon_excerpts']); return $enabled; } /** * determines if the below buttons are enabled for exceprts * @return boolean true if enabled, false is disabled */ function _addthis_excerpt_buttons_enabled_below() { global $addThisConfigs; $options = $addThisConfigs->getConfigs(); $enabled = (boolean)(isset($options['addthis_below_showon_excerpts']) && $options['addthis_below_showon_excerpts']); return $enabled; } /** * determines if the above or below buttons are enabled for exceprts * @return boolean true if enabled, false is disabled */ function _addthis_excerpt_buttons_enabled() { $addthis_above_showon_excerpts = _addthis_excerpt_buttons_enabled_above(); $addthis_below_showon_excerpts = _addthis_excerpt_buttons_enabled_below(); $enabled = (boolean)($addthis_above_showon_excerpts || $addthis_below_showon_excerpts); return $enabled; }