Plugin Directory

Changeset 517915


Ignore:
Timestamp:
03/12/2012 01:58:59 PM (14 years ago)
Author:
tpk
Message:
 
Location:
my-coderwall-badges/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • my-coderwall-badges/trunk/cw_badges.php

    r514508 r517915  
    44Description: gets your badges from coderwall website and let you show them on your blog.
    55Author: Francesco Lentini
    6 Version: 0.2
     6Version: 0.3
    77Plugin URI: https://github.com/flentini/my-coderwall-badges
    88Author URI: http://spugna.org/tpk
     
    1212add_action('wp_enqueue_scripts', 'cwb_stylesheet');
    1313add_action('admin_menu', 'cwb_init_admin');
     14add_action('plugins_loaded', 'cwb_plugins_loaded');
    1415
    1516function cwb_init(){
     
    3334    wp_register_style('cwb-css', $cwb_css_url);
    3435    wp_enqueue_style('cwb-css', $cwb_css_file, false, false, 'all');
     36}
     37
     38function cwb_plugins_loaded(){
     39    register_sidebar_widget('Coderwall', 'widget_coderwall');
    3540}
    3641
     
    6772    </div> 
    6873<?php }
     74
     75function widget_coderwall ($args){
     76    global $cwb;
     77
     78    extract($args);
     79
     80    echo $before_widget . $before_title;
     81    _e('My Coderwall Badges');
     82    echo $after_title;
     83    echo $cwb->get_badges();
     84    echo $after_widget;
     85}
  • my-coderwall-badges/trunk/readme.txt

    r514507 r517915  
    44Requires at least: 3.0
    55Tested up to: 3.3.1
    6 Stable tag: 0.2
     6Stable tag: 0.3
    77
    88gets your badges from coderwall website and let you show them on your blog.
     
    2323echo $cwb->get_badges() -> display user badges
    2424
    25 you can call them inside your theme's files. 
     25you can call them inside your theme's files.
     26
     27There's also a widget which waits to be activated by you in the theme options.
    2628
    2729== Installation ==
     
    3638== Changelog ==
    3739
     40= 0.3 =
     41* Added a simple widget.
     42
    3843= 0.2 =
    3944* Minor fixes, added shortcode, removed curl functions.
Note: See TracChangeset for help on using the changeset viewer.