Changeset 766263
- Timestamp:
- 09/03/2013 12:33:48 PM (13 years ago)
- Location:
- wpsocialite/trunk
- Files:
-
- 3 edited
-
lib/wpsocialite.css (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
wpsocialite.php (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpsocialite/trunk/lib/wpsocialite.css
r702809 r766263 32 32 .wpsocialite.large .twitter-follow { width: 56px; height: 65px; background-position: -509px 0; } 33 33 .wpsocialite.large .twitter-follow.socialite-loaded{ width:100%; } 34 .wpsocialite.large .vkontakte-like { width: 50px; height: 65px; background:red; } 34 35 /* 35 36 * Socialite Custom Default -
wpsocialite/trunk/readme.txt
r708256 r766263 4 4 Tags: social networking, sharing links, lazy loading, lazy loading social links, social links, tm3909, wpinit 5 5 Requires at least: 3.0 6 Tested up to: 3. 5.17 Stable tag: 2. 26 Tested up to: 3.6 7 Stable tag: 2.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 89 89 == Changelog == 90 90 91 = 2.4 September 3, 2013 = 92 * Added twitter via option. Various bug fixes. 93 91 94 = 2.3 May 5, 2013 = 92 95 * Fixed image function when using Pinit Button … … 141 144 == Upgrade Notice == 142 145 146 = 2.4 September 3, 2013 = 147 * Added twitter via option. Various bug fixes. 148 143 149 = 2.3 May 5, 2013 = 144 150 * Fixed image function when using Pinit Button -
wpsocialite/trunk/wpsocialite.php
r708256 r766263 5 5 Description: No one likes long load times! Yet we all want to be able to share our content via Facebook, Twitter, and all other social networks. These take a long time to load. Paradox? Not anymore! With WPSocialite (utilizing David Bushnell's amazing SocialiteJS plugin [http://www.socialitejs.com/]) we can manage the loading process of our social sharing links. Load them on hover, on page scroll, and more! 6 6 Author: Tom Morton 7 Version: 2. 37 Version: 2.4 8 8 Author URI: http://twmorton.com/ 9 9 … … 50 50 self::$instance = $this; 51 51 52 add_action( 'init', array( $this, 'init') );53 add_action( 'wp_footer', array( $this, 'wpsocialite_localize_script'), 20);54 55 add_action( 'admin_init', array( $this, 'admin_init') );56 add_action( 'admin_footer', array( $this, 'admin_footer'), 20);57 58 add_filter( 'body_class', array( $this, 'wpsocialite_body_class') );59 add_filter( 'the_content', array( $this, 'wpsocialite_filter_content') );60 add_filter( 'mce_external_plugins', array( $this, 'wpsocialite_shortcode_plugin') );61 add_filter( 'mce_buttons', array( $this, 'wpsocialite_shortcode_button') );62 add_filter( 'plugin_action_links', array( $this, 'wpsocialite_settings_link'), 10, 2 );63 add_shortcode( 'wpsocialite', array( $this, 'wpsocialite_shortcode') );52 add_action( 'init', array( $this, 'init' ) ); 53 add_action( 'wp_footer', array( $this, 'wpsocialite_localize_script' ), 20); 54 55 add_action( 'admin_init', array( $this, 'admin_init' ) ); 56 add_action( 'admin_footer', array( $this, 'admin_footer' ), 20); 57 58 add_filter( 'body_class', array( $this, 'wpsocialite_body_class' ) ); 59 add_filter( 'the_content', array( $this, 'wpsocialite_filter_content' ) ); 60 add_filter( 'mce_external_plugins', array( $this, 'wpsocialite_shortcode_plugin' ) ); 61 add_filter( 'mce_buttons', array( $this, 'wpsocialite_shortcode_button' ) ); 62 add_filter( 'plugin_action_links', array( $this, 'wpsocialite_settings_link' ), 10, 2 ); 63 add_shortcode( 'wpsocialite', array( $this, 'wpsocialite_shortcode' ) ); 64 64 65 65 if( get_option( 'wpsocialite_excerpt' ) == 1 ){ 66 add_filter( 'the_excerpt', array( $this, 'wpsocialite_filter_content') );66 add_filter( 'the_excerpt', array( $this, 'wpsocialite_filter_content' ) ); 67 67 } 68 68 … … 75 75 if( WPSOCIALITE_LOADSCRIPTS && !is_admin() ) { 76 76 77 wp_enqueue_script('socialite-lib', plugin_dir_url(__FILE__).'Socialite/socialite.min.js', array('jquery'),'2.0', true);78 wp_enqueue_script('wpsocialite', plugin_dir_url(__FILE__).'wpsocialite.js',array('socialite-lib'), '1.0', true);77 wp_enqueue_script('socialite-lib', plugin_dir_url(__FILE__).'Socialite/socialite.min.js', array('jquery'), '2.0', true); 78 wp_enqueue_script('wpsocialite', plugin_dir_url(__FILE__).'wpsocialite.js', array('socialite-lib'), '1.0', true); 79 79 80 80 $scripts = self::wpsocialite_list_network_options(null, null, null, null); … … 84 84 foreach ($scripts as $script){ 85 85 if( isset($value[$script['slug']]) && $script['external_file'] !== false ) 86 wp_enqueue_script('socialite-'.$script['slug'].'', plugin_dir_url(__FILE__).'Socialite/extensions/'.$script['external_file'].'', array('jquery'), '1.0', true);86 wp_enqueue_script('socialite-'.$script['slug'].'', $script['external_file'], array('jquery'), '1.0', true); 87 87 } 88 88 … … 107 107 108 108 $locale = get_locale(); 109 $c5 = $locale;110 $c2 = substr($c5, 0, 2);109 $c5 = $locale; 110 $c2 = substr($c5, 0, 2); 111 111 112 112 $fb_locales = array('af_ZA','ar_AR','az_AZ','be_BY','bg_BG','bn_IN','bs_BA','ca_ES','cs_CZ','cy_GB','da_DK','de_DE','el_GR','en_GB','en_US','eo_EO','es_ES','es_LA','et_EE','eu_ES','fa_IR','fi_FI','fo_FO','fr_CA','fr_FR','fy_NL','ga_IE','gl_ES','he_IL','hi_IN','hr_HR','hu_HU','hy_AM','id_ID','is_IS','it_IT','ja_JP','ka_GE','km_KH','ko_KR','ku_TR','la_VA','lt_LT','lv_LV','mk_MK','ml_IN','ms_MY','nb_NO','ne_NP','nl_NL','nn_NO','pa_IN','pl_PL','ps_AF','pt_BR','pt_PT','ro_RO','ru_RU','sk_SK','sl_SI','sq_AL','sr_RS','sv_SE','sw_KE','ta_IN','te_IN','th_TH','tl_PH','tr_TR','uk_UA','vi_VN','zh_CN','zh_HK','zh_TW'); … … 118 118 $gp_locale = (in_array($c5,$gp_locales))? str_replace('_', '-', $c5) : (in_array($c2,$gp_locales))? $c2 : 'en'; 119 119 120 121 echo "<script type=\"text/javascript\">Socialite.setup({facebook:{lang:'$fb_locale',appId:null},twitter:{lang:'$tw_locale'},googleplus:{lang:'$gp_locale'}});</script>";122 120 if( WPSOCIALITE_LOADSCRIPTS && !is_admin() ) { 121 echo "<script type=\"text/javascript\">Socialite.setup({facebook:{lang:'$fb_locale',appId:null},twitter:{lang:'$tw_locale'},googleplus:{lang:'$gp_locale'},vkontakte:{apiId:'".get_option('wpsocialite_vkontakte_apiId')."'}});</script>"; 122 } 123 123 } 124 124 … … 143 143 144 144 $default_args = array( 145 'size' => get_option('wpsocialite_style'),146 'url' => null,147 'button_override' => 'facebook,twitter-share,gplus,linkedin,pinterest,twitter-follow,stumbleupon',145 'size' => get_option('wpsocialite_style'), 146 'url' => null, 147 'button_override' => 'facebook,twitter-share,gplus,linkedin,pinterest,twitter-follow,stumbleupon,vkontakte-like', 148 148 ); 149 149 extract( wp_parse_args($args,$default_args), EXTR_SKIP ); 150 150 $button_override = str_replace(' ', '', $button_override); 151 $button_override = explode(',', esc_attr($button_override));151 $button_override = explode(',', esc_attr($button_override)); 152 152 153 153 global $wp_query; 154 $post = $wp_query->post;155 $id = $post->ID;156 $imagelink = self::wpsocialite_get_image( $id );157 $title = trim($post->post_title);154 $post = $wp_query->post; 155 $id = $post->ID; 156 $imagelink = self::wpsocialite_get_image( $id ); 157 $title = trim($post->post_title); 158 158 159 159 if( $url ){ 160 $postlink= $url;160 $postlink = $url; 161 161 } else { 162 $postlink= get_permalink($id);163 } 164 165 $value = get_option('wpsocialite_networkoptions');166 $buttons = self::wpsocialite_list_network_options($postlink, $title, $size, $imagelink);162 $postlink = get_permalink($id); 163 } 164 165 $value = get_option('wpsocialite_networkoptions'); 166 $buttons = self::wpsocialite_list_network_options($postlink, $title, $size, $imagelink); 167 167 168 168 $return = '<ul class="wpsocialite social-buttons '.$size.'">'; 169 169 170 foreach ( $buttons as $button ) {171 172 if(in_array($button['slug'], $button_override)){173 174 if(isset($value[$button['slug']])) :175 $markup = 'markup_'.$size;176 else :177 continue;178 endif;179 $return .= '<li>'.$button[$markup].'</li>';180 181 }182 }183 184 $return .= '</ul>';170 foreach ( $buttons as $button ) { 171 172 if(in_array($button['slug'], $button_override)){ 173 174 if(isset($value[$button['slug']])) : 175 $markup = 'markup_'.$size; 176 else : 177 continue; 178 endif; 179 $return .= '<li>'.$button[$markup].'</li>'; 180 181 } 182 } 183 184 $return .= '</ul>'; 185 185 186 186 return $return; … … 218 218 global $wp_current_filter; 219 219 220 $single = get_option('wpsocialite_single');221 $position = get_option('wpsocialite_position');220 $single = get_option('wpsocialite_single'); 221 $position = get_option('wpsocialite_position'); 222 222 $post_types = get_option('wpsocialite_post_types',array()); 223 $pt = get_post_type();223 $pt = get_post_type(); 224 224 225 225 if ( $single && !is_singular() ){ … … 233 233 if( is_feed() ) { 234 234 return $content; 235 }235 } 236 236 237 237 if( in_array('get_the_excerpt', $wp_current_filter) ) { 238 238 return $content; 239 }239 } 240 240 241 241 switch($position){ … … 263 263 264 264 add_settings_section( 265 $id = 'wpsocialite',266 $title = __('WPSocialite','wpsocialite'),267 $callback = array($this,'wpsocialite_section'),268 $page = 'discussion'269 ); 270 271 add_settings_field( 272 $id = 'wpsocialite_mode',273 $title = __('Mode','wpsocialite'),274 $callback = array( $this, 'wpsocialite_select' ),275 $page = 'discussion',276 $section = 'wpsocialite',265 $id = 'wpsocialite', 266 $title = __('WPSocialite','wpsocialite'), 267 $callback = array($this,'wpsocialite_section'), 268 $page = 'discussion' 269 ); 270 271 add_settings_field( 272 $id = 'wpsocialite_mode', 273 $title = __('Mode','wpsocialite'), 274 $callback = array( $this, 'wpsocialite_select' ), 275 $page = 'discussion', 276 $section = 'wpsocialite', 277 277 $args = array( 278 'name' => 'wpsocialite_mode', 279 'description' => 'Choose the event to which Socialite will activate.', 280 'options' => array( 281 'hover' => _('Hover'), 282 'scroll' => _('Scroll'), 283 ), 284 ) 285 ); 286 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_mode' ); 287 288 add_settings_field( 289 $id = 'wpsocialite_excerpt', 290 $title = __('Apply to Excerpt','wpsocialite'), 291 $callback = array( $this, 'wpsocialite_checkbox' ), 292 $page = 'discussion', 293 $section = 'wpsocialite', 294 $args = array( 295 'name' => 'wpsocialite_excerpt', 296 'description' => 'Display WPSocialite sharing buttons in the excerpt of your posts.', 297 'options' => array( 298 '1' => _('Display WPSocialite sharing buttons in the excerpt of your posts.'), 278 'name' => 'wpsocialite_mode', 279 'description' => __('Choose the event to which Socialite will activate.','wpsocialite'), 280 'options' => array( 281 'hover' => __('Hover','wpsocialite'), 282 'scroll' => __('Scroll','wpsocialite'), 299 283 ), 300 284 ) 301 285 ); 302 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_ excerpt' );303 304 add_settings_field( 305 $id = 'wpsocialite_single',306 $title = __('Apply to Single only','wpsocialite'),307 $callback = array( $this, 'wpsocialite_checkbox' ),308 $page = 'discussion',309 $section = 'wpsocialite',286 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_mode' ); 287 288 add_settings_field( 289 $id = 'wpsocialite_excerpt', 290 $title = __('Apply to Excerpt','wpsocialite'), 291 $callback = array( $this, 'wpsocialite_checkbox' ), 292 $page = 'discussion', 293 $section = 'wpsocialite', 310 294 $args = array( 311 'name' => 'wpsocialite_single', 312 'description' => '', 313 'options' => array( 314 '1' => _('Display WPSocialite sharing buttons only on single posts.'), 315 ), 316 ) 317 ); 318 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_single' ); 319 320 add_settings_field( 321 $id = 'wpsocialite_style', 322 $title = __('Style','wpsocialite'), 323 $callback = array( $this, 'wpsocialite_select' ), 324 $page = 'discussion', 325 $section = 'wpsocialite', 326 $args = array( 327 'name' => 'wpsocialite_style', 328 'description' => 'Choose the type of socialite style you would like to use.', 329 'options' => array( 330 'large' => _('Large'), 331 'small' => _('Small'), 295 'name' => 'wpsocialite_excerpt', 296 'description' => 'Display WPSocialite sharing buttons in the excerpt of your posts.', 297 'options' => array( 298 '1' => __('Display WPSocialite sharing buttons in the excerpt of your posts.','wpsocialite'), 332 299 ), 333 300 ) 334 301 ); 335 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_ style' );336 337 add_settings_field( 338 $id = 'wpsocialite_position',339 $title = __('Position','wpsocialite'),340 $callback = array( $this, 'wpsocialite_select' ),341 $page = 'discussion',342 $section = 'wpsocialite',302 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_excerpt' ); 303 304 add_settings_field( 305 $id = 'wpsocialite_single', 306 $title = __('Apply to Single only','wpsocialite'), 307 $callback = array( $this, 'wpsocialite_checkbox' ), 308 $page = 'discussion', 309 $section = 'wpsocialite', 343 310 $args = array( 344 'name' => 'wpsocialite_position', 345 'description' => sprintf(__('Choose where you would like the social icons to appear, before or after the main content. If set to <strong>Manual</strong>, you can use this code to place your Social links anywhere you like in your templates files: %s','wplazyspotify'),'<pre><?php wpsocialite_markup(); ?></pre>'), 346 'options' => array( 347 'before' => _('Top'), 348 'after' => _('Bottom'), 349 'both' => _('Top and Bottom'), 350 'manual' => _('Manual'), 311 'name' => 'wpsocialite_single', 312 'description' => '', 313 'options' => array( 314 '1' => __('Display WPSocialite sharing buttons only on single posts.','wpsocialite'), 351 315 ), 352 316 ) 353 317 ); 354 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_position' ); 355 356 add_settings_field( 357 $id = 'wpsocialite_post_types', 358 $title = __('Post Types','wpsocialite'), 359 $callback = array( $this, 'wpsocialite_post_types' ), 360 $page = 'discussion', 361 $section = 'wpsocialite' 362 ); 363 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_post_types' ); 364 365 add_settings_field( 366 $id = 'wpsocialite_networkoptions', 367 $title = __('Network Options','wpsocialite'), 368 $callback = array( $this, 'wpsocialite_networkoptions' ), 369 $page = 'discussion', 370 $section = 'wpsocialite' 371 ); 372 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_networkoptions' ); 373 374 add_settings_field( 375 $id = 'wpsocialite_twitter_username', 376 $title = __('Twitter Username','wpsocialite'), 377 $callback = array( $this, 'wpsocialite_text_input' ), 378 $page = 'discussion', 379 $section = 'wpsocialite', 318 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_single' ); 319 320 add_settings_field( 321 $id = 'wpsocialite_style', 322 $title = __('Style','wpsocialite'), 323 $callback = array( $this, 'wpsocialite_select' ), 324 $page = 'discussion', 325 $section = 'wpsocialite', 380 326 $args = array( 381 'name' => 'wpsocialite_twitter_username', 382 'description' => 'Enter your twitter username to enable the twitter follow button.', 383 'options' => array( 384 'twitter_username' => _(''), 327 'name' => 'wpsocialite_style', 328 'description' => __('Choose the type of socialite style you would like to use.','wpsocialite'), 329 'options' => array( 330 'large' => __('Large','wpsocialite'), 331 'small' => __('Small','wpsocialite'), 385 332 ), 386 333 ) 387 334 ); 335 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_style' ); 336 337 add_settings_field( 338 $id = 'wpsocialite_position', 339 $title = __('Position','wpsocialite'), 340 $callback = array( $this, 'wpsocialite_select' ), 341 $page = 'discussion', 342 $section = 'wpsocialite', 343 $args = array( 344 'name' => 'wpsocialite_position', 345 'description' => sprintf(__('Choose where you would like the social icons to appear, before or after the main content. If set to <strong>Manual</strong>, you can use this code to place your Social links anywhere you like in your templates files: %s','wpsocialite'),'<pre><?php wpsocialite_markup(); ?></pre>'), 346 'options' => array( 347 'before' => __('Top','wpsocialite'), 348 'after' => __('Bottom','wpsocialite'), 349 'both' => __('Top and Bottom','wpsocialite'), 350 'manual' => __('Manual','wpsocialite'), 351 ), 352 ) 353 ); 354 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_position' ); 355 356 add_settings_field( 357 $id = 'wpsocialite_post_types', 358 $title = __('Post Types','wpsocialite'), 359 $callback = array( $this, 'wpsocialite_post_types' ), 360 $page = 'discussion', 361 $section = 'wpsocialite' 362 ); 363 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_post_types' ); 364 365 add_settings_field( 366 $id = 'wpsocialite_networkoptions', 367 $title = __('Network Options','wpsocialite'), 368 $callback = array( $this, 'wpsocialite_networkoptions' ), 369 $page = 'discussion', 370 $section = 'wpsocialite' 371 ); 372 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_networkoptions' ); 373 374 add_settings_field( 375 $id = 'wpsocialite_twitter_username', 376 $title = __('Twitter Username','wpsocialite'), 377 $callback = array( $this, 'wpsocialite_text_input' ), 378 $page = 'discussion', 379 $section = 'wpsocialite', 380 $args = array( 381 'name' => 'wpsocialite_twitter_username', 382 'description' => 'Enter your twitter username to enable the twitter follow button.', 383 'options' => array( 384 'twitter_username' => __(''), 385 ), 386 ) 387 ); 388 388 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_twitter_username' ); 389 389 … … 391 391 392 392 public function admin_footer() { 393 echo '<script type="text/javascript"> 394 jQuery(document).ready(function($) { 395 var twitterusername = $("#wpsocialite_twitter_username").closest("tr"); 396 var twitterfollow = $("input:checkbox[name=\'wpsocialite_networkoptions[twitter-follow]\']"); 397 twitterusername.hide(); 398 399 if( twitterfollow.is(":checked") ){ 400 twitterusername.show(); 401 } 402 twitterfollow.on(\'change\', function() { 403 if(twitterfollow.is(":checked")){ 404 twitterusername.show(); 405 } else { 406 twitterusername.hide(); 407 } 408 }); 409 }); 410 </script>'; 393 echo '<script type="text/javascript"> 394 jQuery(document).ready(function($) { 395 var twitterusername = $("#wpsocialite_twitter_username").closest("tr"); 396 var twitterfollow = $("input:checkbox[name=\'wpsocialite_networkoptions[twitter-follow]\']"); 397 twitterusername.hide(); 398 399 if( twitterfollow.is(":checked") ){ 400 twitterusername.show(); 401 } 402 twitterfollow.on(\'change\', function() { 403 if(twitterfollow.is(":checked")){ 404 twitterusername.show(); 405 } else { 406 twitterusername.hide(); 407 } 408 }); 409 410 var vkontakte_appid_input = $("#wpsocialite_vkontakte_apiId").closest("tr"); 411 var vkontaktelike = $("input:checkbox[name=\'wpsocialite_networkoptions[vkontakte-like]\']"); 412 vkontakte_appid_input.hide(); 413 414 if( vkontaktelike.is(":checked") ){ 415 vkontakte_appid_input.show(); 416 } 417 vkontaktelike.on(\'change\', function() { 418 if(vkontaktelike.is(":checked")){ 419 vkontakte_appid_input.show(); 420 } else { 421 vkontakte_appid_input.hide(); 422 } 423 }); 424 }); 425 </script>'; 411 426 } 412 427 … … 437 452 $checked = ( isset( $args['name'] ) ) ? get_option($args['name']) : ''; 438 453 echo '<label for="' . esc_attr( $args['name'] ) . '">'; 439 foreach ( (array) $args['options'] as $value => $label ){454 foreach ( (array) $args['options'] as $value => $label ){ 440 455 echo '<input name="' . esc_attr( $args['name'] ) . '" type="checkbox" id="' . esc_attr( $args['name'] ) . '" value="1" '.checked($checked, 1, false).'> ' . $label; 441 }456 } 442 457 echo '</label>'; 443 458 … … 452 467 453 468 echo '<label for="' . esc_attr( $args['name'] ) . '">'; 454 foreach ( (array) $args['options'] as $value => $label ){469 foreach ( (array) $args['options'] as $value => $label ){ 455 470 echo '<input name="' . esc_attr( $args['name'] ) . '" type="text" id="' . esc_attr( $args['name'] ) . '" value="'.esc_attr($option_value).'" > ' . $label; 456 }471 } 457 472 echo '</label>'; 473 if ( ! empty( $args['description'] ) ) 474 echo ' <p class="description">' . $args['description'] . '</p>'; 458 475 459 476 } … … 480 497 public function wpsocialite_networkoptions() { 481 498 482 $value = get_option('wpsocialite_networkoptions');483 $buttons = $this->wpsocialite_list_network_options();484 $output = '';499 $value = get_option('wpsocialite_networkoptions'); 500 $buttons = $this->wpsocialite_list_network_options(); 501 $output = ''; 485 502 486 503 foreach ($buttons as $button){ … … 516 533 $buttons = array( 517 534 'facebook' => array( 518 'name' => 'Facebook',535 'name' => __('Facebook','wpsocialite'), 519 536 'slug' => 'facebook', 520 537 'markup_large' => '<a href="http://www.facebook.com/sharer.php?u='.$link.'&locale='.$locale.'&t='.$title.'" class="socialite facebook-like" data-lang="'.$locale.'" data-href="'.$link.'" data-send="false" data-layout="box_count" data-width="60" data-show-faces="false" rel="nofollow" target="_blank"><span class="vhidden">'.apply_filters('wpsocialite_share_facebook_label',__('Share on Facebook.','wpsocialite')).'</span></a>', … … 523 540 ), 524 541 'twitter-share' => array( 525 'name' => 'Twitter Share',542 'name' => __('Twitter Share','wpsocialite'), 526 543 'slug' => 'twitter-share', 527 'markup_large' => '<a href="http://twitter.com/share" class="socialite twitter-share" data-text="'.$twitter_title.'" data-url="'.$link.'" data-count="vertical" data-lang="'.$locale.'" rel="nofollow" target="_blank"><span class="vhidden">'.apply_filters('wpsocialite_share_twitter_label',__('Share on Twitter.','wpsocialite')).'</span></a>',528 'markup_small' => '<a href="http://twitter.com/share" class="socialite twitter-share" data-text="'.$twitter_title.'" data-url="'.$link.'" data-count="horizontal" data-lang="'.$locale.'" data-via=" " rel="nofollow" target="_blank"><span class="vhidden">'.apply_filters('wpsocialite_share_twitter_label',__('Share on Twitter.','wpsocialite')).'</span></a>',544 'markup_large' => '<a href="http://twitter.com/share" class="socialite twitter-share" data-text="'.$twitter_title.'" data-url="'.$link.'" data-count="vertical" data-lang="'.$locale.'" data-via="'.$twitter_username.'" rel="nofollow" target="_blank"><span class="vhidden">'.apply_filters('wpsocialite_share_twitter_label',__('Share on Twitter.','wpsocialite')).'</span></a>', 545 'markup_small' => '<a href="http://twitter.com/share" class="socialite twitter-share" data-text="'.$twitter_title.'" data-url="'.$link.'" data-count="horizontal" data-lang="'.$locale.'" data-via="'.$twitter_username.'" rel="nofollow" target="_blank"><span class="vhidden">'.apply_filters('wpsocialite_share_twitter_label',__('Share on Twitter.','wpsocialite')).'</span></a>', 529 546 'external_file' => false 530 547 ), 531 548 'gplus' => array( 532 'name' => 'Google Plus',549 'name' => __('Google Plus','wpsocialite'), 533 550 'slug' => 'gplus', 534 551 'markup_large' => '<a href="https://plus.google.com/share?url='.$link.'" class="socialite googleplus-one" data-size="tall" data-href="'.$link.'" rel="nofollow" target="_blank"><span class="vhidden">'.apply_filters('wpsocialite_share_googleplus_label',__('Share on Google+','wpsocialite')).'</span></a>', … … 537 554 ), 538 555 'linkedin' => array( 539 'name' => 'Linkedin',556 'name' => __('Linkedin','wpsocialite'), 540 557 'slug' => 'linkedin', 541 558 'markup_large' => '<a href="http://www.linkedin.com/shareArticle?mini=true&url='.$link.'&title='.$title.'" class="socialite linkedin-share" data-url="'.$link.'" data-counter="top" rel="nofollow" target="_blank"><span class="vhidden">'.apply_filters('wpsocialite_share_linkedin_label',__('Share on LinkedIn','wpsocialite')).'</span></a>', … … 544 561 ), 545 562 'pinterest' => array( 546 'name' => 'Pinterest',563 'name' => __('Pinterest','wpsocialite'), 547 564 'slug' => 'pinterest', 548 565 'markup_large' => '<a href="http://pinterest.com/pin/create/button/?url='.$link.'&media=' . $image . '&description='.$title.'" class="socialite pinterest-pinit" data-count-layout="vertical"><span class="vhidden">'.apply_filters('wpsocialite_share_pinterest_label',__('Pin It!','wpsocialite')).'</span></a>', 549 566 'markup_small' => '<a href="http://pinterest.com/pin/create/button/?url='.$link.'&media=' . $image . '&description='.$title.'" class="socialite pinterest-pinit" data-count-layout="horizontal"><span class="vhidden">'.apply_filters('wpsocialite_share_pinterest_label',__('Pin It!','wpsocialite')).'</span></a>', 550 'external_file' => 'socialite.pinterest.js' 567 'external_file' => plugin_dir_url(__FILE__).'Socialite/extensions/socialite.pinterest.js', 568 551 569 ), 552 570 'stumbleupon' => array( 553 'name' => 'StumbleUpon',571 'name' => __('StumbleUpon','wpsocialite'), 554 572 'slug' => 'stumbleupon', 555 573 'markup_large' => '<a href="http://www.stumbleupon.com/submit?url='.$link.'&title='.$title.'" class="socialite stumbleupon-share" data-url="'.$link.'" data-title="'.$title.'" data-layout="5" rel="nofollow"><span class="vhidden">'.apply_filters('wpsocialite_share_stumbleupon_label',__('Share on StumbleUpon','wpsocialite')).'</span></a>', 556 574 'markup_small' => '<a href="http://www.stumbleupon.com/submit?url='.$link.'&title='.$title.'" class="socialite stumbleupon-share" data-url="'.$link.'" data-title="'.$title.'" data-layout="1" rel="nofollow"><span class="vhidden">'.apply_filters('wpsocialite_share_stumbleupon_label',__('Share on StumbleUpon','wpsocialite')).'</span></a>', 557 'external_file' => 'socialite.stumbleupon.js'575 'external_file' => plugin_dir_url(__FILE__).'Socialite/extensions/socialite.stumbleupon.js', 558 576 ), 559 577 'twitter-follow' => array( 560 'name' => 'Twitter Follow',578 'name' => __('Twitter Follow','wpsocialite'), 561 579 'slug' => 'twitter-follow', 562 580 'markup_large' => '<a href="http://twitter.com/'.$twitter_username.'" class="socialite twitter-follow" data-text="'.$twitter_title.'" data-url="'.$link.'" data-size="large" data-width="" data-lang="'.$locale.'" rel="nofollow" target="_blank"><span class="vhidden">'.apply_filters('wpsocialite_share_twitter_label',__('Share on Twitter.','wpsocialite')).'</span></a>', 563 581 'markup_small' => '<a href="http://twitter.com/'.$twitter_username.'" class="socialite twitter-follow" data-text="'.$twitter_title.'" data-url="'.$link.'" data-size="small" data-lang="'.$locale.'" data-via="" rel="nofollow" target="_blank"><span class="vhidden">'.apply_filters('wpsocialite_share_twitter_label',__('Share on Twitter.','wpsocialite')).'</span></a>', 564 582 'external_file' => false 565 ) ,583 ) 566 584 ); 567 585
Note: See TracChangeset
for help on using the changeset viewer.