WordPress.org

Plugin Directory

Changeset 636878


Ignore:
Timestamp:
12/11/12 03:19:51 (16 months ago)
Author:
tommcfarlin
Message:
  • Improvements to localization
  • Adding icons for MixCloud
  • Updating StumbleUpon icon
  • Confirming support for WordPress 3.5
Location:
tipsy-social-icons/trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • tipsy-social-icons/trunk/images/license.txt

    r580731 r636878  
    99 
    1010I claim no right of ownership to the respective company logos and glyphs in each one of these icons. 
     11 
     12-- 
     13 
     14Mixcloud Icon from http://mixcloud.com 
  • tipsy-social-icons/trunk/plugin.php

    r585147 r636878  
    22/* 
    33Plugin Name: Tipsy Social Icons 
    4 Plugin URI: http://tommcfarlin.com/tipsy-social-icons 
     4Plugin URI: http://tommcfarlin.com/tipsy-social-icons/ 
    55Description: The easiest way to add your social networks to your blog. Visit the <a href="http://tommcfarlin.com/tipsy-social-icons">plugin's homepage</a> for more information. 
    6 Version: 3.1 
     6Version: 3.2 
    77Author: Tom McFarlin 
    88Author URI: http://tommcfarlin.com/ 
     
    3838    function Tipsy_Social_Icons() { 
    3939     
    40         load_plugin_textdomain( 'tipsy-social-icons', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' ); 
     40        add_action( 'init', array( $this, 'plugin_textdomain' ) ); 
    4141             
    4242        parent::__construct( 
     
    8484        $googleplus = empty( $instance['googleplus'] ) ? '' : apply_filters( 'googleplus', $instance['googleplus'] ); 
    8585        $lastfm = empty( $instance['lastfm'] ) ? '' : apply_filters( 'lastfm', $instance['lastfm'] ); 
     86        $mixcloud = empty( $instance['mixcloud'] ) ? '' : apply_filters( 'mixcloud', $instance['mixcloud'] ); 
    8687        $linkedin = empty( $instance['linkedin'] ) ? '' : apply_filters( 'linkedin', $instance['linkedin'] ); 
    8788        $picasa = empty( $instance['picasa'] ) ? '' : apply_filters( 'picasa', $instance['picasa'] ); 
     
    136137        $instance['lastfm'] = $this->_strip( $new_instance, 'lastfm' ); 
    137138        $instance['linkedin'] = $this->_strip( $new_instance, 'linkedin' ); 
     139        $instance['mixcloud'] = $this->_strip( $new_instance, 'mixcloud' ); 
    138140        $instance['picasa'] = $this->_strip( $new_instance, 'picasa' ); 
    139141        $instance['pinterest'] = $this->_strip( $new_instance, 'pinterest' ); 
     
    182184                'lastfm'            => '', 
    183185                'linkedin'          => '', 
     186                'mixcloud'          => '', 
    184187                'picasa'            => '', 
    185188                'pinterest'         => '', 
     
    189192                'soundcloud'        => '', 
    190193                'stackoverflow'     => '', 
     194                'stumbleupon'       => '', 
    191195                'tumblr'            => '', 
    192196                'twitter'           => '', 
     
    217221        $lastfm = $this->_strip( $instance, 'lastfm' ); 
    218222        $linkedin = $this->_strip( $instance, 'linkedin' ); 
     223        $linkedin = $this->_strip( $instance, 'mixcloud' ); 
    219224        $picasa = $this->_strip( $instance, 'pinterest' ); 
    220225        $pinterest = $this->_strip( $instance, 'pinterest' ); 
     
    224229        $soundcloud = $this->_strip( $instance, 'soundcloud' ); 
    225230        $stackoverflow = $this->_strip( $instance, 'stackoverflow' ); 
     231        $stumbleupon = $this->_strip( $instance, 'stumbleupon' ); 
    226232        $tumblr = $this->_strip( $instance, 'tumblr' ); 
    227233        $twitter = $this->_strip( $instance, 'twitter' ); 
     
    247253     */ 
    248254    public function register_admin_styles() { 
    249          
    250         wp_register_style( 'tipsy-social-icons', plugins_url( 'tipsy-social-icons/css/admin.css' ) ); 
    251         wp_enqueue_style( 'tipsy-social-icons' ); 
    252           
     255        wp_enqueue_style( 'tipsy-social-icons', plugins_url( 'tipsy-social-icons/css/admin.css' ) ); 
    253256    } // end register_admin_styles 
    254257     
     
    257260     */ 
    258261    public function register_widget_styles() { 
    259  
    260         wp_register_style( 'tipsy-social-icons', plugins_url( 'tipsy-social-icons/css/widget.css' ) ); 
    261         wp_enqueue_style( 'tipsy-social-icons' ); 
    262          
     262        wp_enqueue_style( 'tipsy-social-icons', plugins_url( 'tipsy-social-icons/css/widget.css' ) ); 
    263263    } // end register_widget_styles 
    264264 
     
    267267     */ 
    268268    public function register_widget_scripts() { 
    269          
    270         wp_register_script( 'tipsy-social-icons', plugins_url( 'tipsy-social-icons/js/widget.min.js' ), array( 'jquery' ) ); 
    271         wp_enqueue_script( 'tipsy-social-icons' ); 
    272          
     269        wp_enqueue_script( 'tipsy-social-icons', plugins_url( 'tipsy-social-icons/js/widget.min.js' ), array( 'jquery' ) ); 
    273270    } // end register_widget_styles 
     271     
     272    /** 
     273     * Loads the plugin text domain for translation 
     274     */ 
     275    public function plugin_textdomain() { 
     276        load_plugin_textdomain( 'tipsy-social-icons', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' ); 
     277    } // end plugin_textdomain 
    274278     
    275279    /*--------------------------------------------------*/ 
     
    285289     */ 
    286290    private function _strip( $obj, $title ) { 
    287         return strip_tags(stripslashes($obj[$title])); 
     291        return strip_tags( stripslashes( $obj[ $title ] ) ); 
    288292    } // end _strip 
    289293     
  • tipsy-social-icons/trunk/readme.txt

    r585147 r636878  
    11=== Tipsy Social Icons === 
    22Contributors: tommcfarlin 
    3 Donate link: http://tommcfarlin.com/donate 
     3Donate link: http://tommcfarlin.com/donate/ 
    44Tags: social, icons, widgets 
    55Requires at least: 3.0 
    6 Tested up to: 3.4.1 
    7 Stable tag: 3.1 
     6Tested up to: 3.5 
     7Stable tag: 3.2 
    88License: GPL 
    99 
     
    1212== Description == 
    1313 
    14 <a href="http://tommcfarlin.com/tipsy-social-icons">Tipsy Social Icons</a> is a WordPress widget that makes it easy to include a variety of social icons and custom labels into your WordPress blog or site. It includes both 16x16 and 32x32 variations of the icons and optional hover effects. 
     14<a href="http://tommcfarlin.com/tipsy-social-icons/">Tipsy Social Icons</a> is a WordPress widget that makes it easy to include a variety of social icons and custom labels into your WordPress blog or site. It includes both 16x16 and 32x32 variations of the icons and optional hover effects. 
    1515 
    1616Tipsy Social Icons allows you to: 
     
    3636* LastFM 
    3737* LinkedIn 
     38* MixCloud 
    3839* Picasa 
    3940* Pinterest 
     
    9091 
    9192== Changelog == 
     93 
     94= 3.2 = 
     95* Improvements to localization 
     96* Adding icons for MixCloud 
     97* Updating StumbleUpon icon 
     98* Confirming support for WordPress 3.5 
    9299 
    93100= 3.1 = 
Note: See TracChangeset for help on using the changeset viewer.