Plugin Directory

Changeset 612793


Ignore:
Timestamp:
10/15/2012 03:01:49 PM (13 years ago)
Author:
TM3909
Message:

Finally synced with github copy. Also adding script disable feature.

Location:
wpsocialite/trunk
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • wpsocialite/trunk/readme.txt

    r612276 r612793  
    55Requires at least: 3.0
    66Tested up to: 3.4.2
    7 Stable tag: 1.3
     7Stable tag: 1.4.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141When 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
     43= Can I disable the plugins script loading in order to manually add the CSS and Javascript myself? =
     44
     45Yes! 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
     49Setting 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
     51Please 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
    4353
    4454== Screenshots ==
     
    5060== Changelog ==
    5161
     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
    5268= 1.3 =
    5369* Major Bugfix, CSS ID calls causing feed issues. Changed to classes.
    54 
    5570
    5671= 1.2 =
     
    6782== Upgrade Notice ==
    6883
     84= 1.4.1 =
     85Cleaned up files and added ability to disable automatic loading of JS and CSS. Upgrade to ensure no compatability issues arise.
     86
    6987= 1.0 =
    7088None as of yet.
    71 
    72 
  • wpsocialite/trunk/wpsocialite.php

    r612276 r612793  
    3333define( 'WPSOCIALITE_URL_IMG', plugin_dir_url(__FILE__).'Socialite/demo/images' );
    3434
     35if ( !defined('WPSOCIALITE_LOADSCRIPTS') )
     36    define( 'WPSOCIALITE_LOADSCRIPTS', true );
     37
    3538if (!class_exists("wpsocialite")) {
    3639
     
    4548        {
    4649            new WPSocialite_Options;
    47             //add_action( 'admin_init', array( &$this, 'admin_init' ) );
     50
    4851            add_action( 'init', array( &$this, 'init' ) );
    4952
     
    6265        function admin_init()
    6366        {
    64             //$this->ban_check();
     67
    6568        } // admin_init
    6669
    6770        function init()
    6871        {
    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            }
    7176        } // init
    7277        function wpsocialite_vardefine_head()
     
    449454                    'slug' => 'linkedin',
    450455                    '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>',
    451                     '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>',
     456                    'markup_small' => '<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url='.$link.'&amp;title='.$title.'" class="socialite linkedin-share" data-url="'.$link.'" data-counter="right" rel="nofollow" target="_blank"><span class="vhidden">Share on LinkedIn</span></a>',
    452457                    'external_file' => false
    453458                ),
Note: See TracChangeset for help on using the changeset viewer.