Plugin Directory

Changeset 490212


Ignore:
Timestamp:
01/15/2012 01:42:39 PM (14 years ago)
Author:
Xonox
Message:
 
Location:
tilt-social-share-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tilt-social-share-widget/trunk/readme.txt

    r487757 r490212  
    55Requires at least: 3.3
    66Tested up to: 3.3
    7 Stable tag: 0.5 beta
     7Stable tag: 0.6 beta
    88
    99Tilt Social Share Widget allows your users to quickly share your content on social sites. View "Description" tab for available services.
     
    6666= 0.5 =
    6767Beta version.
     68
     69= 0.6 =
     70Corrected CSS loading problem (icons were not visible).
  • tilt-social-share-widget/trunk/tilt-social-share.php

    r487749 r490212  
    55Description: Display icons that allow users to share your posts and pages in common social websites.
    66Author: Rui Oliveira
    7 Version: 0.5
     7Version: 0.6
    88Author URI: http://xonoxlabs.com/
    99*/
     
    140140            'posts' => true,
    141141            'order' => 'gplus, facebook, linkedin, twitter, stumbleupon, digg, delicious',
    142             'on_delicious' => true,
     142            'on_delicious' => false,
    143143            'on_digg' => true,
    144             'on_evernote' => true,
     144            'on_evernote' => false,
    145145            'on_facebook' => true,
    146             'on_friendfeed' => true,
    147             'on_gbookmarks' => true,
    148             'on_gbuzz' => true,
     146            'on_friendfeed' => false,
     147            'on_gbookmarks' => false,
     148            'on_gbuzz' => false,
    149149            'on_gplus' => true,
    150150            'on_linkedin' => true,
    151             'on_newsvine' => true,
    152             'on_pingfm' => true,
    153             'on_posterous' => true,
     151            'on_newsvine' => false,
     152            'on_pingfm' => false,
     153            'on_posterous' => false,
    154154            'on_reddit' => true,
    155             'on_slashdot' => true,
     155            'on_slashdot' => false,
    156156            'on_stumbleupon' => true,
    157             'on_technorati' => true,
     157            'on_technorati' => false,
    158158            'on_tumblr' => true,
    159159            'on_twitter' => true
     
    240240        }
    241241       
    242         // Load Tilt Social Share Widget CSS
    243         if($instance['tiltcss']) {
    244             wp_register_style('tiltSocialWidget_css', WP_PLUGIN_URL . '/tilt-social-share/css/style.css');
    245             wp_enqueue_style('tiltSocialWidget_css');
    246         }
    247242        extract($args);
    248243
     
    291286    }
    292287
    293     function addHeaderCode() {
    294         echo('<link type="text/css" rel="stylesheet" href="' . get_bloginfo('wpurl') . '/wp-content/plugins/tilt-social-share/css/style.css" />' . "\n");
    295     }
    296    
    297288    function processUrl($url) {
    298289        $url = str_replace('[URL]', urlencode(get_permalink()), $url);
     
    310301function tiltSocialWidget_load_widgets() {
    311302    register_widget('tiltSocialWidget');
     303    // Load widget CSS
     304    if(is_active_widget(false, false, 'tilt_social_widget')) add_action('wp_head', 'tiltSocialWidget_load_style');
    312305}
    313306
     307function tiltSocialWidget_load_style() {
     308    wp_register_style('tiltSocialWidget_css', WP_PLUGIN_URL . '/tilt-social-share-widget/css/style.css');
     309    wp_enqueue_style('tiltSocialWidget_css');
     310}
     311
    314312?>
Note: See TracChangeset for help on using the changeset viewer.