# HG changeset patch # User Alessio Caiazza # Date 1242829194 0 # Node ID 992cf5210d6c68cef38135b6d8c99add031e2177 # Parent b742ad1cf5deac590e01410645abeffc49854a26 NEW:Hellotxt support; Minor changes in widget option layout; Widget renamed to 'About Me - Social Links'; Management page renamed to 'About Me' diff -r b742ad1cf5deac590e01410645abeffc49854a26 -r 992cf5210d6c68cef38135b6d8c99add031e2177 aboutme.php --- a/aboutme.php Wed May 20 12:09:46 2009 +0000 +++ b/aboutme.php Wed May 20 14:19:54 2009 +0000 @@ -70,10 +70,17 @@ array(21,'friendfeed.png','http://friendfeed.com/%userid%','Enter your FriendFeed username.','FriendFeed'), array(22,'identica.png','http://identi.ca/%userid%','Enter your Identi.ca username.','Identi.ca'), array(23,'bitbucket.png','http://bitbucket.org/%userid%','Enter your Bitbucket username.','Bitbucket'), - array(24,'github.png','http://github.com/%userid%','Enter your Github username.','Github') + array(24,'github.png','http://github.com/%userid%','Enter your Github username.','Github'), + array(25,'hellotxt.gif','http://hellotxt.com/user/%userid%','Enter your Hellotxt username.','Hellotxt') ); +//comparison based on socialnetwok name +function compare_social($s1, $s2) { + return strcmp($s1[4], $s2[4]); +} +//Sorts socialnetworks in alphabetical order +uasort($definitions, "compare_social"); function social_links_wrapper(){ @@ -131,7 +138,7 @@ - + @@ -311,10 +318,10 @@ function social_links_admin_menu(){ global $pluginrelativedir; //add_options_page('Social Links Settings', 'Social Links', 8,$pluginrelativedir.'/edit-sociallinks.php'); - add_management_page('Social Links Settings (About Me)', 'Social Links', 8,__FILE__,'widget_social_links_settings'); + add_management_page('Social Links Settings - About Me', 'About Me', 8,__FILE__,'widget_social_links_settings'); global $plugindir; - wp_enqueue_script('social-links', $plugindir . '/javascript.js',array('sack')); + wp_enqueue_script('about-me', $plugindir . '/javascript.js',array('sack')); wp_enqueue_script('scriptaculous'); } @@ -343,8 +350,8 @@ add_action('wp_ajax_social_links_add_network', 'wp_ajax_social_links_add_network' ); add_action('wp_ajax_social_links_delete_network', 'wp_ajax_social_links_delete_network' ); - register_sidebar_widget('Social Links', 'widget_social_links'); - register_widget_control('Social Links', 'widget_social_links_control'); + register_sidebar_widget('About Me - Social Links', 'widget_social_links'); + register_widget_control('About Me - Social Links', 'widget_social_links_control'); }//End of SocialLinks class diff -r b742ad1cf5deac590e01410645abeffc49854a26 -r 992cf5210d6c68cef38135b6d8c99add031e2177 images/hellotxt.gif Binary file images/hellotxt.gif has changed diff -r b742ad1cf5deac590e01410645abeffc49854a26 -r 992cf5210d6c68cef38135b6d8c99add031e2177 readme.txt --- a/readme.txt Wed May 20 12:09:46 2009 +0000 +++ b/readme.txt Wed May 20 14:19:54 2009 +0000 @@ -37,6 +37,7 @@ * Flickr * FriendFeed * Github +* Hellotxt * Identi.ca * Jeqq * Last FM @@ -64,7 +65,7 @@ 1. Add the widget to your sidebar from the 'Widgets' design page. -1. Add your social links from the 'Social Links' page under the 'Management' page. +1. Add your social links from the 'About Me' page under the 'Management' page. @@ -93,4 +94,5 @@ == Change Log == +* 1.0.1 NEW:Hellotxt support; Minor changes in widget option layout; Widget renamed to 'About Me - Social Links'; Management page renamed to 'About Me' * 1.0.0 NEW:Bitbucket, Identi.ca, GitHub support FIX:now works with Lightbox2/Slimbox plugins \ No newline at end of file