Plugin Directory

Changeset 480640


Ignore:
Timestamp:
12/26/2011 05:07:54 AM (14 years ago)
Author:
haoqis
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • git-sidebar-widget-for-wordpress/trunk/gist-sidebar-widget.php

    r480636 r480640  
    2525
    2626// add admin CSS for my error message
     27if(!function_exists('rkv_gist_widget_css')) {
    2728function rkv_gist_widget_css() {
    2829    echo "
     
    3233    ";
    3334}
     35}
    3436
    3537add_action('admin_head', 'rkv_gist_widget_css');
     
    3840 * construct widget
    3941 */
    40 class rkv_ListGistsWidget extends WP_Widget {
     42class hrkv_ListGistsWidget extends WP_Widget {
    4143
    4244    /** constructor */
    43     function rkv_ListGistsWidget() {
    44         $widget_ops = array('classname' => 'list_gists', 'description' => 'Displays a list of gists hosted on GitHub');
    45         $this->WP_Widget('list_gists', 'Public GitHub Gists', $widget_ops);
     45    function hrkv_ListGistsWidget() {
     46        $widget_ops = array('classname' => 'list_gists', 'description' => 'Displays a list of gists hosted on GitHub.');
     47        $this->WP_Widget('list_gists', 'Public GitHub Gists.', $widget_ops);
    4648    }
    4749
     
    224226// class
    225227// register widget
    226 add_action('widgets_init', 'rkv_ListGistsWidget_init');
    227 
    228 function rkv_ListGistsWidget_init() {
     228add_action('widgets_init', 'hrkv_ListGistsWidget_init');
     229
     230function hrkv_ListGistsWidget_init() {
    229231    add_filter('https_local_ssl_verify', create_function('', 'return false;'));
    230232    add_filter('https_ssl_verify', create_function('', 'return false;'));
    231     register_widget('rkv_ListGistsWidget');
    232 }
     233    register_widget('hrkv_ListGistsWidget');
     234}
Note: See TracChangeset for help on using the changeset viewer.