Changeset 643086
- Timestamp:
- 12/21/2012 07:47:16 PM (13 years ago)
- Location:
- wpsocialite/trunk
- Files:
-
- 2 added
- 2 edited
-
lib/wpsocialite-shortcode.js (added)
-
lib/wpsocialite-tinymce.png (added)
-
readme.txt (modified) (4 diffs)
-
wpsocialite.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpsocialite/trunk/readme.txt
r640073 r643086 4 4 Tags: social networking, sharing links, lazy loading, lazy loading social links, social links, tm3909 5 5 Requires at least: 3.0 6 Tested up to: 3. 4.27 Stable tag: 1. 4.56 Tested up to: 3.5 7 Stable tag: 1.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 50 50 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. 51 51 52 You can also use the shortcode `[wpsocialite size="large"]` or `[wpsocialite size="small"]` in a post or page and it will display the social sharing buttons anywhere you like. 53 52 54 = Can I disable the plugins script loading in order to manually add the CSS and Javascript myself? = 53 55 … … 73 75 74 76 == Changelog == 77 78 = 1.5 = 79 * Adding shortcode option to display WpSocialite 75 80 76 81 = 1.4.5 = … … 108 113 == Upgrade Notice == 109 114 115 = 1.5 = 116 * Adding shortcode option to display WpSocialite 117 110 118 = 1.4.5 = 111 119 * Fixed in_array error being thrown due to post type check. -
wpsocialite/trunk/wpsocialite.php
r640073 r643086 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: 1. 4.57 Version: 1.5 8 8 Author URI: http://twmorton.com/ 9 9 … … 66 66 } 67 67 68 add_shortcode( 'wpsocialite', array( &$this, 'wpsocialite_shortcode' )); 69 add_filter('mce_external_plugins', array( &$this, 'wpsocialite_shortcode_plugin' )); 70 add_filter('mce_buttons', array( &$this, 'wpsocialite_shortcode_button' )); 71 68 72 } // __construct 69 73 … … 152 156 } // wpsocialite_enqueue_scripts 153 157 158 function wpsocialite_shortcode($atts){ 159 extract( shortcode_atts( array( 160 'size' => 'small', 161 ), $atts ) ); 162 163 return get_wpsocialite_markup($atts); 164 165 } 166 167 function wpsocialite_shortcode_button($buttons) { 168 array_push($buttons, "wpsocialite"); 169 return $buttons; 170 } 171 172 function wpsocialite_shortcode_plugin($plugin_array) { 173 $plugin_array['wpsocialite'] = WPSOCIALITE_URL.'lib/wpsocialite-shortcode.js'; 174 return $plugin_array; 175 } 154 176 155 177 function wpsocialite_markup($args = array())
Note: See TracChangeset
for help on using the changeset viewer.