This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /// ADDTHIS - recipe for the social bookmarking and share service at addthis.com . $RecipeInfo['addthis']['version'] = '20110905'; SDV($AddThisAllowProfileChange , 1); SDV($AddThisMasterProfile, ''); SDV($AddThisDefaultButton , 0); SDV($AddThisProfile , " "); SDVA($AddThisButton , array( " Bookmark and Share ", " Bookmark and Share ", "
", "
", "
Share
", "
Share |
", "
", "
", "
" )); SDV($AddThisMenu , " "); markup('addthis','directives', '/\\(:addthis\\s(.*):\\)/ei',"AddThisWidget(PSS('$1'))"); function AddThisWidget($a){ global $AddThisProfile,$AddThisButton,$AddThisMenu,$AddThisAllowProfileChange, $AddThisMasterProfile,$AddThisDefaultButton,$HTMLHeaderFmt; $args = ParseArgs($a); if($args['button'] && $args['button'] >= 0 && $args['button'] <= count($AddThisButton)){ if(is_numeric($args['button'])) $button = $args['button']; else $button = $AddThisDefaultButton; }else{ $button = $AddThisDefaultButton; } if($AddThisAllowProfileChange){ if(!$args['profile']) $profile = $AddThisMasterProfile; else $profile = $args['profile']; }else{ $profile = $AddThisMasterProfile; } $AddThisProfile = str_replace("profile",$profile,$AddThisProfile); $AddThisMenu = str_replace("profile",$profile,$AddThisMenu); $HTMLHeaderFmt['addthis'] = "\n".$AddThisProfile.$AddThisMenu; return Keep($AddThisButton[$button]); }