Changeset 612793
- Timestamp:
- 10/15/2012 03:01:49 PM (13 years ago)
- Location:
- wpsocialite/trunk
- Files:
-
- 2 deleted
- 2 edited
-
readme.txt (modified) (4 diffs)
-
wpsocialite-hover.js (deleted)
-
wpsocialite-scroll.js (deleted)
-
wpsocialite.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpsocialite/trunk/readme.txt
r612276 r612793 5 5 Requires at least: 3.0 6 6 Tested up to: 3.4.2 7 Stable tag: 1. 37 Stable tag: 1.4.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 41 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 = Can I disable the plugins script loading in order to manually add the CSS and Javascript myself? = 44 45 Yes! By dropping the following code into your wp-config.php file you will tell the plugin to not load its CSS and Javascript and give you the ability to add it manually. 46 47 `define('WPSOCIALITE_LOADSCRIPTS', false);` 48 49 Setting this to false tells the plugin to not load any Javascript or CSS. If you want the plugin to automatically load it again, simply set this to true or remove it completely. 50 51 Please note, when using this method if you are loading any social networks with an external file (Pinterest, for example), you will also have to load the javascript file associated with the network (wpsocialite/Socialite/extensions/socialite.pinterest.js). 52 43 53 44 54 == Screenshots == … … 50 60 == Changelog == 51 61 62 = 1.4.1 = 63 * Quickfix for the issues with GIT and SVN Repo. Also added ability to disable autoloading CSS and JS. See FAQ for more information. 64 65 = 1.4 = 66 * Cleaned up CSS and added media call to pinterest button. 67 52 68 = 1.3 = 53 69 * Major Bugfix, CSS ID calls causing feed issues. Changed to classes. 54 55 70 56 71 = 1.2 = … … 67 82 == Upgrade Notice == 68 83 84 = 1.4.1 = 85 Cleaned up files and added ability to disable automatic loading of JS and CSS. Upgrade to ensure no compatability issues arise. 86 69 87 = 1.0 = 70 88 None as of yet. 71 72 -
wpsocialite/trunk/wpsocialite.php
r612276 r612793 33 33 define( 'WPSOCIALITE_URL_IMG', plugin_dir_url(__FILE__).'Socialite/demo/images' ); 34 34 35 if ( !defined('WPSOCIALITE_LOADSCRIPTS') ) 36 define( 'WPSOCIALITE_LOADSCRIPTS', true ); 37 35 38 if (!class_exists("wpsocialite")) { 36 39 … … 45 48 { 46 49 new WPSocialite_Options; 47 //add_action( 'admin_init', array( &$this, 'admin_init' ) ); 50 48 51 add_action( 'init', array( &$this, 'init' ) ); 49 52 … … 62 65 function admin_init() 63 66 { 64 //$this->ban_check(); 67 65 68 } // admin_init 66 69 67 70 function init() 68 71 { 69 $this->wpsocialite_enqueue_scripts(); 70 $this->wpsocialite_enqueue_styles(); 72 if( WPSOCIALITE_LOADSCRIPTS ){ 73 $this->wpsocialite_enqueue_scripts(); 74 $this->wpsocialite_enqueue_styles(); 75 } 71 76 } // init 72 77 function wpsocialite_vardefine_head() … … 449 454 'slug' => 'linkedin', 450 455 '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>', 451 '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>',456 'markup_small' => '<a href="http://www.linkedin.com/shareArticle?mini=true&url='.$link.'&title='.$title.'" class="socialite linkedin-share" data-url="'.$link.'" data-counter="right" rel="nofollow" target="_blank"><span class="vhidden">Share on LinkedIn</span></a>', 452 457 'external_file' => false 453 458 ),
Note: See TracChangeset
for help on using the changeset viewer.