WordPress.org

Plugin Directory

Changeset 446729


Ignore:
Timestamp:
10/03/11 13:59:42 (3 years ago)
Author:
jorbin
Message:

ga

Location:
addthis/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • addthis/trunk/addthis_settings_functions.php

    r440141 r446729  
    9393        <tr> 
    9494            <td id="<?php echo $name ?>" colspan="2"> 
    95                 <p><?php _e("$name the post", 'addthis_trans_domain') ?>&nbsp;&nbsp;<span class="description"><input type="checkbox" name="addthis_settings[show_<?php echo $name; ?>]" <?php echo ('none' == $option) ? 'checked="checked"' : '';?> />&nbsp;none</span></p> 
     95                <p><?php _e("Choose the sharing tool to display $name the post", 'addthis_trans_domain') ?>&nbsp;&nbsp;<br /><span class="description"><input type="checkbox" name="addthis_settings[show_<?php echo $name; ?>]" <?php echo ('none' == $option) ? 'checked="checked"' : '';?> />&nbsp;none</span></p> 
    9696                <?php  $imgLocationBase = apply_filters( 'at_files_uri',  plugins_url( '' , basename(dirname(__FILE__)))) . '/addthis/img/'  ; 
    9797                 $imgLocationBase = apply_filters( 'addthis_files_uri',  plugins_url( '' , basename(dirname(__FILE__)))) . '/addthis/img/'  ; 
  • addthis/trunk/addthis_social_widget.php

    r443823 r446729  
    6666    'large_toolbox' => array( 'src' =>  '<div class="addthis_toolbox addthis_default_style addthis_32x32_style" %s ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>', 'img' => 'toolbox-large.png', 'name' => 'Large Toolbox', 'above' => 'hidden ', 'below' => '' 
    6767    ), // 32x32 
    68     'fb_tw_sc' => array( 'src' => '<div class="addthis_toolbox addthis_default_style " %s  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>' , 'img' => 'fb-tw-sc.jpg' , 'name' => 'Like, Tweet, Counter', 'above' => '', 'below' => 'hidden' 
     68    'fb_tw_sc' => array( 'src' => '<div class="addthis_toolbox addthis_default_style " %s  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>' , 'img' => 'fb-tw-sc.jpg' , 'name' => 'Like, Tweet, Counter', 'above' => 'hidden', 'below' => 'hidden' 
     69    ), // facebook tweet share counter 
     70    'fb_tw_p1_sc' => array( 'src' => '<div class="addthis_toolbox addthis_default_style " %s  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>' , 'img' => 'fb-tw-p1-sc.jpg' , 'name' => 'Like, Tweet, +1, Share', 'above' => '', 'below' => 'hidden' 
    6971    ), // facebook tweet share counter 
    7072    'simple_button' => array('src' => '<div class="addthis_toolbox addthis_default_style " %s><a href="//addthis.com/bookmark.php?v=250&amp;username=xa-4d2b47f81ddfbdce" class="addthis_button_compact">Share</a></div>', 'img' => 'share.jpg', 'name' => 'Share Button', 'above' => 'hidden ', 'below' => 'hidden' 
     
    863865 
    864866} 
     867if ( isset ($data['data_ga_property']) && strlen($data['data_ga_property']) != 0) 
     868    $options['data_ga_property'] = sanitize_text_field($data['data_ga_property']); 
    865869 
    866870//[addthis_twitter_template] 
     
    13241328    else 
    13251329        $addthis_config["data_track_clickback"] = false; 
    1326  
    1327     /*/ 
     1330     
     1331    if ( isset($options['data_ga_property']) ){ 
     1332        $addthis_config['data_ga_property'] = $options['data_ga_property']; 
     1333        $addthis_config['data_ga_social'] = true; 
     1334    } 
     1335 
    13281336    if ( isset($options['addthis_addressbar']) &&  $options['addthis_addressbar'] == true) 
    13291337        $addthis_config["data_track_addressbar"] = true; 
    13301338    else 
    13311339        $addthis_config["data_track_addressbar"] = false; 
    1332     //*/ 
    13331340 
    13341341    if ( isset($options['addthis_language']) && strlen($options['addthis_language']) == 2) 
     
    13711378        $script .= 'if (typeof(addthis_share) == "undefined"){ addthis_share = ' . json_encode( apply_filters('addthis_share_js_var', $addthis_share ) ) .';}'; 
    13721379    $script .= '</script>'; 
    1373  
    13741380 
    13751381    $script .= '<script type="text/javascript" src="//s7.addthis.com/js/250/addthis_widget.js#pubid='.$pub.'"></script>'; 
     
    15411547        'location'  => 'below', 
    15421548        'below'     => 'large_toolbox', 
    1543         'above'     => 'fb_tw_sc', 
     1549        'above'     => 'fb_tw_p1_sc', 
    15441550        'addthis_show_stats' => true, 
    15451551        'addthis_append_data'=> true, 
     
    15681574        'addthis_twitter_template' => '', 
    15691575        'addthis_508' => '', 
     1576        'data_ga_property' => '', 
    15701577        'addthis_bitly_login' => '', 
    15711578        'addthis_bitly_key' => '', 
     
    16311638        <?php _addthis_choose_icons('below', $options ); ?> 
    16321639    <tr valign="top"> 
    1633         <td colspan="2"><?php _e('Enter a profile, username and password to discover how your content is being shared, and how your most influential audience members are bringing traffic back to your site. Learn what interests them – and to what degree – and how thoses interests are driving sharing. <a href="//addthis.com/features" target="_blank">Click here for more information on the benefits of register</a>.<a href="//www.addthis.com/help/faq#accounts" target="_blank">Click here for more information on usernames and profiles</a>   ', 'addthis_trans_domain');?> </td> 
     1640        <td colspan="2"><?php _e("<h3><a href='www.addthis.com/register?profile=wpp' target='_blank'>Register</a> to recieve free in-depth analytics reports to better understand your site's social traffic</h3>", 'addthis_trans_domain');?> </td> 
    16341641    </tr> 
    16351642    <tr valign="top"> 
    1636         <th scope="row"><?php _e("AddThis profile id:", 'addthis_trans_domain' ); ?></th> 
     1643        <th scope="row"><?php _e("AddThis Profile ID:", 'addthis_trans_domain' ); ?></th> 
    16371644        <td><input id="addthis_profile"  type="text" name="addthis_settings[addthis_profile]" value="<?php echo $profile; ?>" autofill='off' autocomplete='off'  /></td> 
    16381645    </tr> 
     
    16871694            <td><input type="checkbox" name="addthis_settings[addthis_508]" value="true" <?php echo ( $addthis_508 == true ? 'checked="checked"' : ''); ?>/></td> 
    16881695        </tr> 
     1696        <tr> 
     1697            <th scope="row"><?php _e("Google Analytics Code", 'addthis_trans_domain' ); ?></th> 
     1698            <td><input type="checkbox" name="addthis_settings[data_ga_property]" value="true" <?php echo ( $data_ga_property == true ? 'checked="checked"' : ''); ?>/></td> 
     1699        </tr> 
     1700 
    16891701        <tr valign="top"> 
    16901702            <td colspan="2"></td> 
Note: See TracChangeset for help on using the changeset viewer.