Changeset 480640
- Timestamp:
- 12/26/2011 05:07:54 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
git-sidebar-widget-for-wordpress/trunk/gist-sidebar-widget.php
r480636 r480640 25 25 26 26 // add admin CSS for my error message 27 if(!function_exists('rkv_gist_widget_css')) { 27 28 function rkv_gist_widget_css() { 28 29 echo " … … 32 33 "; 33 34 } 35 } 34 36 35 37 add_action('admin_head', 'rkv_gist_widget_css'); … … 38 40 * construct widget 39 41 */ 40 class rkv_ListGistsWidget extends WP_Widget {42 class hrkv_ListGistsWidget extends WP_Widget { 41 43 42 44 /** 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); 46 48 } 47 49 … … 224 226 // class 225 227 // register widget 226 add_action('widgets_init', ' rkv_ListGistsWidget_init');227 228 function rkv_ListGistsWidget_init() {228 add_action('widgets_init', 'hrkv_ListGistsWidget_init'); 229 230 function hrkv_ListGistsWidget_init() { 229 231 add_filter('https_local_ssl_verify', create_function('', 'return false;')); 230 232 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.