Changeset 598434
- Timestamp:
- 09/13/2012 11:54:05 AM (14 years ago)
- Location:
- wpsocialite/trunk
- Files:
-
- 2 added
- 9 deleted
- 4 edited
- 2 moved
-
.gitmodules (added)
-
README.md (modified) (2 diffs)
-
images/social-sprite.png (deleted)
-
index.html (deleted)
-
lib/hover.html (deleted)
-
lib/scroll.html (deleted)
-
lib/social-sprite.png (modified) (previous)
-
lib/socialite.css (deleted)
-
lib/socialite.min.js (deleted)
-
lib/wpsocialite.css (added)
-
license.txt (deleted)
-
readme.txt (modified) (4 diffs)
-
socialite-1.0.js (deleted)
-
socialite.css (deleted)
-
wpsocialite-hover.js (moved) (moved from wpsocialite/trunk/lib/wpsocialite-hover.js)
-
wpsocialite-scroll.js (moved) (moved from wpsocialite/trunk/lib/wpsocialite-scroll.js) (2 diffs)
-
wpsocialite.php (modified) (22 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpsocialite/trunk/README.md
r568750 r598434 1 1 # WPSocialite 2 2 3 This plugin adds the SocialiteJS Functionailty (Developed by David Bushell[http://dbushell.com/]) to Wordpress. 3 This plugin adds the SocialiteJS Functionailty (Developed by David Bushell[http://dbushell.com/]) to Wordpress. 4 4 5 5 Author: Tom Morton [http://twmorton.com](http://twmorton.com/) [@tmort](http://twitter.com/tmort/) 6 6 7 For a demo, please visit http://twmorton.com/hello-world/8 7 8 You can download the plugin in the Wordpress Plugin Repo here: [http://wordpress.org/extend/plugins/wpsocialite/](http://wordpress.org/extend/plugins/wpsocialite/) 9 9 10 10 Original SocialJS Author: David Bushell [http://dbushell.com](http://dbushell.com/) [@dbushell](http://twitter.com/dbushell/) 11 11 12 Copyright © 201213 12 14 13 ## Setup 15 14 16 Download the plugin, place into your wp-content/plugins folder, activate it under your wordpress plugins panel, and you're all set! Configure settings via the Options->Discussion Settings page. 15 Download the plugin, place into your wp-content/plugins folder, activate it under your wordpress plugins panel, and you're all set! Configure settings via the Options->Discussion Settings page. 17 16 18 17 ## Manual Usage 19 18 20 A big thanks to [@shmula](http://twitter.com/shmula/) for contributing his thoughts and needs! I've added manual usage so you can insert WPSocialite wherever you like within your Wordpress template. To do so, navigate to the settings page and set the position to "manual". Then, place the following code wherever you would like the social icons to appear. 19 A big thanks to [@shmula](http://twitter.com/shmula/) for contributing his thoughts and needs! I've added manual usage so you can insert WPSocialite wherever you like within your Wordpress template. To do so, navigate to the settings page and set the position to "manual". Then, place the following code wherever you would like the social icons to appear. 21 20 22 <code><?php echo $wpsocialite->wpsocialite_markup('large'); ?> </code> 21 <code><?php echo $wpsocialite->wpsocialite_markup('large'); ?> </code> 23 22 24 You can set the size/style of your social icons by setting 'large' or 'small' inside of the function. 23 You can set the size/style of your social icons by setting 'large' or 'small' inside of the function. 25 24 26 ## Contribute27 25 28 Don't hesitate to send issues or feature requests, or even improvements. The plugin will go live on the Wordpress Plugin repo shortly.29 26 ======= 30 27 # Socialite … … 76 73 Socialite.extend('network', function); 77 74 78 With `extend` you can add more social networks! The `function` is called by `Socialite.load` and `Socialite.activate` to replace the default element with the shiny sharing button.79 75 76 With `extend` you can add more social networks! The `function` is called by `Socialite.load` and `Socialite.activate` to replace the default element with the shiny sharing button. -
wpsocialite/trunk/readme.txt
r546201 r598434 1 1 === Plugin Name === 2 Contributors: TM3909 2 Contributors: TM3909 3 3 Donate link: http://twmorton.com/plugins/?donate=true 4 4 Tags: social networking, sharing links, tm3909 5 5 Requires at least: 3.0 6 6 Tested up to: 3.0 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 18 18 == Installation == 19 19 20 1. Download the wpsocialite folder and upload it to {your-wp-directory}/wp-content/plugins folder. 21 2. Visit Your-website.com/wp-admin/plugins.php and activate WPSocialite. 22 3. Head to Settings->Discussion and scroll to "WPSocialite" settings to configure the plugin. 20 1. Download the wpsocialite folder and upload it to {your-wp-directory}/wp-content/plugins folder. 21 2. Visit Your-website.com/wp-admin/plugins.php and activate WPSocialite. 22 3. Head to Settings->Discussion and scroll to "WPSocialite" settings to configure the plugin. 23 23 24 24 Thats it! … … 29 29 = So what does this do? = 30 30 31 WPSocialite uses socialite.js and implements it into the Wordpress workflow, adding it automatically (or manually, if you choose) to your content. 31 WPSocialite uses socialite.js and implements it into the Wordpress workflow, adding it automatically (or manually, if you choose) to your content. 32 32 33 Socialite.js allows us to define when we would like to load our social sharing links. For example, if we have a page with ten posts, each with their own set of Facebook Like, Google+ Share, and Twitter Share links, they could take some time to load. Using WPSocialite, you can load those individually when the user scrolls or hovers over a specific post. 33 Socialite.js allows us to define when we would like to load our social sharing links. For example, if we have a page with ten posts, each with their own set of Facebook Like, Google+ Share, and Twitter Share links, they could take some time to load. Using WPSocialite, you can load those individually when the user scrolls or hovers over a specific post. 34 34 35 35 = Can I add the social links myself instead of letting the plugin place them? = 36 36 37 Of course! Use the "manual" setting under the plugin settings (Settings->Discussion) and then use the following PHP in your template to display the links however you please. 37 Of course! Use the "manual" setting under the plugin settings (Settings->Discussion) and then use the following PHP in your template to display the links however you please. 38 38 39 39 `<?php echo $wpsocialite->wpsocialite_markup('large'); ?>` 40 40 41 When using this method, be sure to include "large" or "small" inside the function (as seen above) to define which style WPSocialite will use to display your social links. 41 When using this method, be sure to include "large" or "small" inside the function (as seen above) to define which style WPSocialite will use to display your social links. 42 42 43 43 … … 49 49 50 50 == Changelog == 51 52 = 1.1 = 53 * Updated to latest version of SocialiteJS 51 54 52 55 = 1.0 = -
wpsocialite/trunk/wpsocialite-scroll.js
r568750 r598434 1 1 jQuery(function($) { 2 2 3 //alert('test'); 4 3 5 4 var articles = $(thePostClasses), socialised = { }, win = $(window), updateArticles, onUpdate, updateTimeout; 6 5 … … 46 45 setTimeout(updateArticles, 100); 47 46 48 49 50 47 });//theend -
wpsocialite/trunk/wpsocialite.php
r546187 r598434 3 3 Plugin Name: WPSocialite 4 4 Plugin URI: http://wordpress.org/extend/plugins/wpsocialte/ 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! 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 7 Version: 0.9 8 8 Author URI: http://twmorton.com/ 9 9 10 This plugin uses the Socialitejs library created by David Bushell. The author of this plugin does not wish to claim this tool as his own but ensure that David gets proper credit for his work. I've simply wrapped his fantastic tool into a Wordpress plugin for us all to use. Please be sure to check him out: @dbushell or http://socialitejs.com10 This plugin uses the Socialitejs library created by David Bushell. The author of this plugin does not wish to claim this tool as his own but ensure that David gets proper credit for his work. I've simply wrapped his fantastic tool into a Wordpress plugin for us all to use. Please be sure to check him out: @dbushell or '.$postlink.' 11 11 12 12 This program is free software; you can redistribute it and/or modify … … 30 30 define( 'WPSOCIALITE_PATH', plugin_dir_path(__FILE__) ); 31 31 32 32 define( 'WPSOCIALITE_URL_SOCIALITE', plugin_dir_url(__FILE__).'Socialite' ); 33 define( 'WPSOCIALITE_URL_IMG', plugin_dir_url(__FILE__).'Socialite/demo/images' ); 33 34 34 35 if (!class_exists("wpsocialite")) { 35 36 36 37 class wpsocialite { 37 38 38 39 function WPSocialite() 39 40 { 40 41 $this->__construct(); 41 42 } // function 42 43 43 44 function __construct() 44 45 { … … 46 47 //add_action( 'admin_init', array( &$this, 'admin_init' ) ); 47 48 add_action( 'init', array( &$this, 'init' ) ); 48 49 49 50 add_action( 'wp_head', array( &$this, 'wpsocialite_vardefine_head' ) ); 50 51 51 52 add_filter( 'the_content', array( &$this, 'wpsocialite_add_to_content' ) ); 52 53 53 54 } // __construct 54 55 55 56 function admin_init() 56 57 { 57 58 //$this->ban_check(); 58 59 } // admin_init 59 60 60 61 function init() 61 62 { … … 66 67 { 67 68 global $wp; 68 69 69 70 $value = get_option('wpsocialite_classes'); 70 71 71 72 if($value == ''){ 72 73 $value = 'article.post, .post, .page, .social-buttons'; … … 74 75 75 76 $script = "<script type=\"text/javascript\"> var thePostClasses = '$value'; </script>\n"; 76 77 77 78 echo $script; 78 79 } … … 80 81 { 81 82 if(!is_admin()){ 82 83 wp_enqueue_script('socialite-lib', WPSOCIALITE_URL_LIB.'/socialite.min.js', array('jquery'), '1.0', true); 84 83 84 wp_enqueue_script('socialite-lib', WPSOCIALITE_URL_SOCIALITE.'/socialite.min.js', array('jquery'), '1.0', true); 85 wp_enqueue_script('socialite-pinterest', WPSOCIALITE_URL_SOCIALITE.'/extensions/socialite.pinterest.js', array('jquery'), '1.0', true); 86 85 87 $value = get_option('wpsocialite_mode'); 86 88 if($value == 'scroll'){ 87 wp_enqueue_script('wpsocialite-scroll', WPSOCIALITE_URL _LIB.'/wpsocialite-scroll.js', array('jquery'), '1.0', true);89 wp_enqueue_script('wpsocialite-scroll', WPSOCIALITE_URL.'/wpsocialite-scroll.js', array('jquery'), '1.0', true); 88 90 }else{ 89 wp_enqueue_script('wpsocialite-scroll', WPSOCIALITE_URL _LIB.'/wpsocialite-hover.js', array('jquery'), '1.0', true);91 wp_enqueue_script('wpsocialite-scroll', WPSOCIALITE_URL.'/wpsocialite-hover.js', array('jquery'), '1.0', true); 90 92 } 91 93 92 94 }// if is admin 93 95 94 96 } // wpsocialite_enqueue_scripts 95 97 96 98 function wpsocialite_enqueue_styles() 97 99 { 98 100 99 101 if(!is_admin()){ 100 101 wp_enqueue_style('socialite-css', WPSOCIALITE_URL_LIB.'/ socialite.css');102 102 103 wp_enqueue_style('socialite-css', WPSOCIALITE_URL_LIB.'/wpsocialite.css'); 104 103 105 }// if is admin 104 105 106 107 106 108 } // wpsocialite_enqueue_scripts 107 108 109 function wpsocialite_markup($size = null) 109 110 111 function wpsocialite_markup($size = null) 110 112 { 111 113 global $wp_query; … … 115 117 $title = trim($post->post_title); // get post title 116 118 117 $return_social_large = ' 118 <ul id="socialite-large" class="social-buttons cf"> 119 <li><a href="http://twitter.com/share" class="socialite twitter" data-text="Socialite.js" data-url="'.$postlink.'" data-count="vertical" data-via="wpsocialite" rel="nofollow" target="_blank"><span>Share on Twitter</span></a></li> 120 <li><a href="https://plus.google.com/share?url='.$postlink.'" class="socialite googleplus" data-size="tall" data-href="'.$postlink.'" rel="nofollow" target="_blank"><span>Share on Google+</span></a></li> 121 <li><a href="http://www.facebook.com/sharer.php?u='.$postlink.'" class="socialite facebook" data-href="'.$postlink.'" data-send="false" data-layout="box_count" data-width="60" data-show-faces="false" rel="nofollow" target="_blank"><span>Share on Facebook</span></a></li> 122 <li><a href="http://www.linkedin.com/shareArticle?mini=true&url='.$postlink.'" class="socialite linkedin" data-url="'.$postlink.'" data-counter="top" rel="nofollow" target="_blank"><span>Share on LinkedIn</span></a></li> 123 </ul> 124 '; 125 126 $return_social_small = ' 127 <ul id="socialite-small" class="social-buttons cf"> 128 <li><a href="http://twitter.com/share" class="socialite twitter" data-text="Socialite.js" data-url="'.$postlink.'" data-count="horizontal" data-via="wpsocialite" rel="nofollow" target="_blank"><span>Share on Twitter</span></a></li> 129 <li><a href="https://plus.google.com/share?url='.$postlink.'" class="socialite googleplus" data-size="medium" data-href="'.$postlink.'" rel="nofollow" target="_blank"><span>Share on Google+</span></a></li> 130 <li><a href="http://www.facebook.com/sharer.php?u='.$postlink.'" class="socialite facebook" data-href="'.$postlink.'" data-send="false" data-layout="button_count" data-width="60" data-show-faces="false" rel="nofollow" target="_blank"><span>Share on Facebook</span></a></li> 131 <li><a href="http://www.linkedin.com/shareArticle?mini=true&url='.$postlink.'" class="socialite linkedin" data-url="'.$postlink.'" data-counter="right" rel="nofollow" target="_blank"><span>Share on LinkedIn</span></a></li> 132 </ul> 133 '; 134 135 if($size == 'small'){ 136 return $return_social_small; 137 } else { 138 return $return_social_large; 139 } 140 141 } 142 119 $value = get_option('wpsocialite_networkoptions'); 120 $buttons = WPSocialite_Options::wpsocialite_list_network_options($postlink, $title, $size); 121 122 $return = ''; 123 124 $return .= '<ul id="'.$size.'" class="social-buttons cf">'; 125 126 foreach ($buttons as $button){ 127 if(isset($value[$button['slug']])) : 128 $markup = 'markup_'.$size; 129 else : 130 continue; 131 endif; 132 133 134 $return .= '<li>'.$button[$markup].'</li>'; 135 } 136 137 $return .= '</ul>'; 138 139 return $return; 140 141 } 142 143 143 function wpsocialite_add_to_content( $content ) 144 144 { 145 145 146 146 $position = get_option('wpsocialite_position'); 147 147 … … 157 157 158 158 $content = $this->wpsocialite_markup($size) . $content; 159 159 160 160 break; 161 161 162 162 case 'after': 163 163 164 164 $content .= $this->wpsocialite_markup($size); 165 165 … … 170 170 171 171 } 172 173 172 173 174 174 } // class 175 175 … … 178 178 if (!class_exists("wpsocialite_options")) { 179 179 class WPSocialite_Options { 180 180 181 181 function WPSocialite_Options() 182 182 { 183 183 $this->__construct(); 184 184 } // function 185 185 186 186 function __construct() 187 187 { … … 189 189 add_filter('plugin_action_links', array(&$this, 'wpsocialite_settings_link'), 10, 2 ); 190 190 } // function 191 191 192 192 function admin_init() 193 193 { … … 224 224 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_position' ); 225 225 226 } // function 227 226 add_settings_field( 227 $id = 'wpsocialite_position', 228 $title = "WPSocialite Position", 229 $callback = array( &$this, 'wpsocialite_position' ), 230 $page = 'discussion' 231 ); 232 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_position' ); 233 234 add_settings_field( 235 $id = 'wpsocialite_networkoptions', 236 $title = "WPSocialite Options", 237 $callback = array( &$this, 'wpsocialite_networkoptions' ), 238 $page = 'discussion' 239 ); 240 register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_networkoptions' ); 241 242 243 } // function 244 228 245 function wpsocialite_mode() 229 246 { 230 247 $value = get_option('wpsocialite_mode'); 231 248 # echo your form fields here containing the value received from get_option 232 249 233 250 if($value == 'hover'){ 234 251 $options = '<option value="hover" selected="selected">Hover</option> 235 252 <option value="scroll">Scroll</option>'; 236 253 237 254 } elseif($value == 'scroll'){ 238 255 $options = '<option value="hover">Hover</option> … … 242 259 <option value="scroll" selected="selected">Scroll</option>'; 243 260 } 244 261 245 262 echo '<label for="wpsocialite_mode"> 246 263 <select name="wpsocialite_mode" id="wpsocialite_mode"> … … 249 266 Choose the type of socialite style you would like to use. 250 267 </label>'; 251 268 252 269 253 270 … … 258 275 $value = get_option('wpsocialite_position'); 259 276 # echo your form fields here containing the value received from get_option 260 277 261 278 if($value == 'before'){ 262 279 $options = '<option value="before" selected="selected">Before</option> … … 276 293 <option value="manual">Manual</option>'; 277 294 } 278 295 279 296 echo '<label for="wpsocialite_position"> 280 297 <select name="wpsocialite_position" id="wpsocialite_position"> … … 283 300 Choose where you would like the social icons to appear, before or after the main content. 284 301 </label>'; 285 302 286 303 287 304 … … 292 309 $value = get_option('wpsocialite_style'); 293 310 # echo your form fields here containing the value received from get_option 294 311 295 312 if($value == 'small'){ 296 313 $options = '<option value="large">Large</option> … … 300 317 <option value="small">Small</option>'; 301 318 } 302 319 303 320 echo '<label for="wpsocialite_style"> 304 321 <select name="wpsocialite_style" id="wpsocialite_style"> … … 307 324 Choose the type of socialite style you would like to use. 308 325 </label>'; 309 310 311 312 } // function 313 326 327 328 329 } // function 330 314 331 function wpsocialite_classes() 315 332 { … … 319 336 } 320 337 # echo your form fields here containing the value received from get_option 321 338 322 339 echo '<label for="wpsocialite_classes"> 323 340 <input type="text" name="wpsocialite_classes" id="wpsocialite_classes" value="'.$value.'" class="large-text" > 324 341 Define the class that your posts and pages are wrapped in. If you are unsure, leave it as is. 325 342 </label>'; 326 327 } // function 343 344 } // function 345 346 function wpsocialite_networkoptions(){ 347 348 $value = get_option('wpsocialite_networkoptions'); 349 $buttons = $this->wpsocialite_list_network_options(); 350 $output = ''; 351 foreach ($buttons as $button){ 352 if(isset($value[$button['slug']])) : 353 $buttonvalue = $value[$button['slug']]; 354 else : 355 $buttonvalue = 0; 356 endif; 357 358 if($buttonvalue == 1) : 359 $checked = 'checked'; 360 else : 361 $checked = ''; 362 endif; 363 364 $output .= ' 365 <label for="wpsocialite_networkoptions['.$button['slug'].']"> 366 <input name="wpsocialite_networkoptions['.$button['slug'].']" type="checkbox" id="wpsocialite_networkoptions['.$button['slug'].']" value="1" '.$checked.'> 367 '.$button['name'].' 368 </label><br />'; 369 } 370 371 echo 'Select the social networks to display.<br /> 372 '.$output.' 373 '; 374 375 } 376 377 function wpsocialite_list_network_options($link = null, $title = null, $size = null) { 378 $buttons = array( 379 'facebook' => array( 380 'name' => 'Facebook', 381 'slug' => 'facebook', 382 'markup_large' => '<a href="http://www.facebook.com/sharer.php?u='.$link.'&t='.$title.'" class="socialite facebook-like" data-href="'.$link.'" data-send="false" data-layout="box_count" data-width="60" data-show-faces="false" rel="nofollow" target="_blank"><span class="vhidden">Share on Facebook</span></a>', 383 'markup_small' => '<a href="http://www.facebook.com/sharer.php?u='.$link.'&t='.$title.'" class="socialite facebook-like" data-href="'.$link.'" data-send="false" data-layout="button_count" data-width="60" data-show-faces="false" rel="nofollow" target="_blank"><span class="vhidden">Share on Facebook</span></a>' 384 ), 385 'twitter' => array( 386 'name' => 'Twitter', 387 'slug' => 'twitter', 388 'markup_large' => '<a href="http://twitter.com/share" class="socialite twitter-share" data-text="'.$title.'" data-url="'.$link.'" data-count="vertical" rel="nofollow" target="_blank"><span class="vhidden">Share on Twitter</span></a>', 389 'markup_small' => '<a href="http://twitter.com/share" class="socialite twitter-share" data-text="'.$title.'" data-url="'.$link.'" data-count="horizontal" data-via="dbushell" rel="nofollow" target="_blank"><span class="vhidden">Share on Twitter</span></a>' 390 ), 391 'gplus' => array( 392 'name' => 'Google Plus', 393 'slug' => 'gplus', 394 '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">Share on Google+</span></a>', 395 'markup_small' => '<a href="https://plus.google.com/share?url='.$link.'" class="socialite googleplus-one" data-size="medium" data-href="'.$link.'" rel="nofollow" target="_blank"><span class="vhidden">Share on Google+</span></a>' 396 ), 397 'linkedin' => array( 398 'name' => 'Linkedin', 399 'slug' => 'linkedin', 400 '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">Share on LinkedIn</span></a>', 401 'markup_small' => '<a href="http://www.linkedin.com/shareArticle?mini=true&url='.$link.'&title=Socialite.js" class="socialite linkedin-share" data-url="'.$link.'" data-counter="right" rel="nofollow" target="_blank"><span class="vhidden">Share on LinkedIn</span></a>' 402 ), 403 'pintrest' => array( 404 'name' => 'Pintrest', 405 'slug' => 'pintrest', 406 'markup_large' => '<a href="http://pinterest.com/pin/create/button/?url='.$link.'&media=&description='.$title.'" class="socialite pinterest-pinit" data-count-layout="vertical"><span class="vhidden">Pin It!</span></a>', 407 'markup_small' => '<a href="http://pinterest.com/pin/create/button/?url='.$link.'&description='.$title.'" class="socialite pinterest-pinit" data-count-layout="horizontal"><span class="vhidden">Pin It!</span></a>' 408 ), 409 ); 410 411 return $buttons; 412 } 413 328 414 329 415 function wpsocialite_settings_link($links, $file) { … … 337 423 return $links; 338 424 } 339 340 341 } // class 425 426 } // class 342 427 343 428 } //End if class exists
Note: See TracChangeset
for help on using the changeset viewer.