/**
 * One function for displaying the buttons in theme files
 * Use wp_socializer(the button code or template name) in the theme files to print the 
 * button or the template
 * 
 * Available button codes are given in the variable $wpsr_button_code_list (line 582) without brackets
 * Available template name are 'template1' and 'template2'
 */
function wp_socializer($to_display, $params = "")
{
    switch ($to_display) {
        case 'socialbts':
            return wpsr_socialbts($params);
            break;
        case 'addthis':
            return wpsr_addthis($params);
            break;
        case 'sharethis':
            return wpsr_sharethis($params);
            break;
        case 'retweet':
            return wpsr_retweet($params);
            break;
        case 'digg':
            return wpsr_digg($params);
            break;
        case 'facebook':
            return wpsr_facebook($params);
            break;
        case 'plusone':
            return wpsr_plusone($params);
            break;
        case 'stumbleupon':
            return wpsr_stumbleupon($params);
            break;
        case 'reddit':
            return wpsr_reddit($params);
            break;
        case 'linkedin':
            return wpsr_linkedin($params);
            break;
        case 'pinterest':
            return wpsr_pinterest($params);
            break;
        case 'custom-1':
            return wpsr_custom_bt('custom1');
            break;
        case 'custom-2':
            return wpsr_custom_bt('custom2');
            break;
        case 'template-1':
            return wpsr_process_template('1');
            break;
        case 'template-2':
            return wpsr_process_template('2');
            break;
    }
}
function wpsr_sharethis_shortcode($atts)
{
    return wpsr_sharethis($atts) . wpsr_sharethis_config() . wpsr_sharethis_config();
}
function wpsr_sharethis_rss_bt()
{
    ## Start Output
    $wpsr_sharethis_processed = wpsr_sharethis(array('output' => 'text'));
    ## End Output
    return $wpsr_sharethis_processed;
}