Plugin Directory

Changeset 598434


Ignore:
Timestamp:
09/13/2012 11:54:05 AM (14 years ago)
Author:
TM3909
Message:

Removed fluff, added Socialite as new library.

Getting things cleaned up over here.

New feature - Choose your own social networks to display.

Location:
wpsocialite/trunk
Files:
2 added
9 deleted
4 edited
2 moved

Legend:

Unmodified
Added
Removed
  • wpsocialite/trunk/README.md

    r568750 r598434  
    11# WPSocialite
    22
    3 This plugin adds the SocialiteJS Functionailty (Developed by David Bushell[http://dbushell.com/]) to Wordpress. 
     3This plugin adds the SocialiteJS Functionailty (Developed by David Bushell[http://dbushell.com/]) to Wordpress.
    44
    55Author: Tom Morton [http://twmorton.com](http://twmorton.com/) [@tmort](http://twitter.com/tmort/)
    66
    7 For a demo, please visit http://twmorton.com/hello-world/
    87
     8You can download the plugin in the Wordpress Plugin Repo here: [http://wordpress.org/extend/plugins/wpsocialite/](http://wordpress.org/extend/plugins/wpsocialite/)
    99
    1010Original SocialJS Author: David Bushell [http://dbushell.com](http://dbushell.com/) [@dbushell](http://twitter.com/dbushell/)
    1111
    12 Copyright © 2012
    1312
    1413## Setup
    1514
    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. 
     15Download 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.
    1716
    1817## Manual Usage
    1918
    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. 
     19A 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.
    2120
    22 <code><?php echo $wpsocialite->wpsocialite_markup('large'); ?> </code> 
     21<code><?php echo $wpsocialite->wpsocialite_markup('large'); ?> </code>
    2322
    24 You can set the size/style of your social icons by setting 'large' or 'small' inside of the function. 
     23You can set the size/style of your social icons by setting 'large' or 'small' inside of the function.
    2524
    26 ## Contribute
    2725
    28 Don't hesitate to send issues or feature requests, or even improvements. The plugin will go live on the Wordpress Plugin repo shortly.
    2926=======
    3027# Socialite
     
    7673    Socialite.extend('network', function);
    7774
    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.
    7975
     76With `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  
    11=== Plugin Name ===
    2 Contributors: TM3909 
     2Contributors: TM3909
    33Donate link: http://twmorton.com/plugins/?donate=true
    44Tags: social networking, sharing links, tm3909
    55Requires at least: 3.0
    66Tested up to: 3.0
    7 Stable tag: 1.0
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1818== Installation ==
    1919
    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. 
     201. Download the wpsocialite folder and upload it to {your-wp-directory}/wp-content/plugins folder.
     212. Visit Your-website.com/wp-admin/plugins.php and activate WPSocialite.
     223. Head to Settings->Discussion and scroll to "WPSocialite" settings to configure the plugin.
    2323
    2424Thats it!
     
    2929= So what does this do? =
    3030
    31 WPSocialite uses socialite.js and implements it into the Wordpress workflow, adding it automatically (or manually, if you choose) to your content. 
     31WPSocialite uses socialite.js and implements it into the Wordpress workflow, adding it automatically (or manually, if you choose) to your content.
    3232
    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. 
     33Socialite.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.
    3434
    3535= Can I add the social links myself instead of letting the plugin place them? =
    3636
    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. 
     37Of 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.
    3838
    3939`<?php echo $wpsocialite->wpsocialite_markup('large'); ?>`
    4040
    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. 
     41When 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.
    4242
    4343
     
    4949
    5050== Changelog ==
     51
     52= 1.1 =
     53* Updated to latest version of SocialiteJS
    5154
    5255= 1.0 =
  • wpsocialite/trunk/wpsocialite-scroll.js

    r568750 r598434  
    11jQuery(function($) {
    22
    3     //alert('test');
    4    
     3
    54        var articles = $(thePostClasses), socialised = { }, win = $(window), updateArticles, onUpdate, updateTimeout;
    65
     
    4645        setTimeout(updateArticles, 100);
    4746
    48 
    49    
    5047});//theend
  • wpsocialite/trunk/wpsocialite.php

    r546187 r598434  
    33Plugin Name: WPSocialite
    44Plugin 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! 
     5Description: 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!
    66Author: Tom Morton
    77Version: 0.9
    88Author URI: http://twmorton.com/
    99
    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.com
     10This 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.'
    1111
    1212    This program is free software; you can redistribute it and/or modify
     
    3030define( 'WPSOCIALITE_PATH', plugin_dir_path(__FILE__) );
    3131
    32 
     32define( 'WPSOCIALITE_URL_SOCIALITE', plugin_dir_url(__FILE__).'Socialite' );
     33define( 'WPSOCIALITE_URL_IMG', plugin_dir_url(__FILE__).'Socialite/demo/images' );
    3334
    3435if (!class_exists("wpsocialite")) {
    3536
    3637    class wpsocialite {
    37    
     38
    3839        function WPSocialite()
    3940        {
    4041            $this->__construct();
    4142        } // function
    42    
     43
    4344        function __construct()
    4445        {
     
    4647            //add_action( 'admin_init', array( &$this, 'admin_init' ) );
    4748            add_action( 'init', array( &$this, 'init' ) );
    48            
     49
    4950            add_action( 'wp_head', array( &$this, 'wpsocialite_vardefine_head' ) );
    50            
     51
    5152            add_filter( 'the_content', array( &$this, 'wpsocialite_add_to_content' ) );
    5253
    5354        } // __construct
    54    
     55
    5556        function admin_init()
    5657        {
    5758            //$this->ban_check();
    5859        } // admin_init
    59    
     60
    6061        function init()
    6162        {
     
    6667        {
    6768            global $wp;
    68            
     69
    6970            $value = get_option('wpsocialite_classes');
    70            
     71
    7172            if($value == ''){
    7273                $value = 'article.post, .post, .page, .social-buttons';
     
    7475
    7576            $script = "<script type=\"text/javascript\"> var thePostClasses = '$value'; </script>\n";
    76            
     77
    7778            echo $script;
    7879        }
     
    8081        {
    8182            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
    8587                $value = get_option('wpsocialite_mode');
    8688                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);
    8890                }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);
    9092                }
    91                
     93
    9294            }// if is admin
    93            
     95
    9496        } // wpsocialite_enqueue_scripts
    9597
    9698        function wpsocialite_enqueue_styles()
    9799        {
    98            
     100
    99101            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
    103105            }// if is admin
    104            
    105            
     106
     107
    106108        } // wpsocialite_enqueue_scripts
    107        
    108        
    109         function wpsocialite_markup($size = null) 
     109
     110
     111        function wpsocialite_markup($size = null)
    110112        {
    111113            global $wp_query;
     
    115117            $title = trim($post->post_title); // get post title
    116118
    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&amp;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&amp;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
    143143        function wpsocialite_add_to_content( $content )
    144144        {
    145            
     145
    146146            $position = get_option('wpsocialite_position');
    147147
     
    157157
    158158                    $content = $this->wpsocialite_markup($size) . $content;
    159                
     159
    160160                break;
    161161
    162162                case 'after':
    163    
     163
    164164                    $content .= $this->wpsocialite_markup($size);
    165165
     
    170170
    171171        }
    172        
    173    
     172
     173
    174174    } // class
    175175
     
    178178if (!class_exists("wpsocialite_options")) {
    179179    class WPSocialite_Options {
    180    
     180
    181181        function WPSocialite_Options()
    182182        {
    183183            $this->__construct();
    184184        } // function
    185    
     185
    186186        function __construct()
    187187        {
     
    189189            add_filter('plugin_action_links', array(&$this, 'wpsocialite_settings_link'), 10, 2 );
    190190        } // function
    191    
     191
    192192        function admin_init()
    193193        {
     
    224224            register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_position' );
    225225
    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
    228245        function wpsocialite_mode()
    229246        {
    230247            $value = get_option('wpsocialite_mode');
    231248            # echo your form fields here containing the value received from get_option
    232            
     249
    233250            if($value == 'hover'){
    234251            $options = '<option value="hover" selected="selected">Hover</option>
    235252                        <option value="scroll">Scroll</option>';
    236            
     253
    237254            } elseif($value == 'scroll'){
    238255            $options = '<option value="hover">Hover</option>
     
    242259                        <option value="scroll" selected="selected">Scroll</option>';
    243260            }
    244            
     261
    245262            echo '<label for="wpsocialite_mode">
    246263                    <select name="wpsocialite_mode" id="wpsocialite_mode">
     
    249266                    Choose the type of socialite style you would like to use.
    250267                </label>';
    251            
     268
    252269
    253270
     
    258275            $value = get_option('wpsocialite_position');
    259276            # echo your form fields here containing the value received from get_option
    260            
     277
    261278            if($value == 'before'){
    262279            $options = '<option value="before" selected="selected">Before</option>
     
    276293                        <option value="manual">Manual</option>';
    277294            }
    278            
     295
    279296            echo '<label for="wpsocialite_position">
    280297                    <select name="wpsocialite_position" id="wpsocialite_position">
     
    283300                    Choose where you would like the social icons to appear, before or after the main content.
    284301                </label>';
    285            
     302
    286303
    287304
     
    292309            $value = get_option('wpsocialite_style');
    293310            # echo your form fields here containing the value received from get_option
    294            
     311
    295312            if($value == 'small'){
    296313            $options = '<option value="large">Large</option>
     
    300317                        <option value="small">Small</option>';
    301318            }
    302            
     319
    303320            echo '<label for="wpsocialite_style">
    304321                    <select name="wpsocialite_style" id="wpsocialite_style">
     
    307324                    Choose the type of socialite style you would like to use.
    308325                </label>';
    309            
    310 
    311 
    312         } // function
    313        
     326
     327
     328
     329        } // function
     330
    314331        function wpsocialite_classes()
    315332        {
     
    319336            }
    320337            # echo your form fields here containing the value received from get_option
    321            
     338
    322339            echo '<label for="wpsocialite_classes">
    323340                    <input type="text" name="wpsocialite_classes" id="wpsocialite_classes" value="'.$value.'" class="large-text" >
    324341                    Define the class that your posts and pages are wrapped in. If you are unsure, leave it as is.
    325342                </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.'&amp;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.'&amp;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&amp;url='.$link.'&amp;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&amp;url='.$link.'&amp;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.'&amp;media=&amp;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.'&amp;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
    328414
    329415        function wpsocialite_settings_link($links, $file) {
     
    337423            return $links;
    338424        }
    339          
    340    
    341     } // class
     425
     426    } // class
    342427
    343428} //End if class exists
Note: See TracChangeset for help on using the changeset viewer.