diff --git a/help.php b/help.php index ff5f1ca..5c1566d 100755 --- a/help.php +++ b/help.php @@ -1,59 +1,54 @@ -'.__('Help', 'shaken').' - Social Bartender'; - - $contextual_help .= '
'.__('To include the list of links in your theme, you need to place the following PHP function in the location where you want the links to appear:', 'shaken').'
'; - - $contextual_help .= '<?php social_bartender(); ?>
';
-
- $contextual_help .= 'link_before: '.__('(string) Sets the text or html that precedes the <a> tag. Default = \'\'', 'shaken' ).'
'; - - $contextual_help .= 'link_after: '.__('(string) Sets the text or html that follows the <a> tag. Default = \'\'', 'shaken' ).'
'; - - $contextual_help .= 'echo: '.__('(boolean) Toggles the display of the generated list of links or return the list as an HTML text string to be used in PHP. Default = 1', 'shaken').'
'; - - $contextual_help .= ''.__('Using the default settings, the social_bartender()
function would output the following:', 'shaken').'
<a href="http://example.com" class="sh-sb-link">
- <img src="http://mysite.com/images/icon.png" alt="Link Title" class="sh-sb-icon">
+'.__('Help', 'shaken').' - Social Bartender';
+
+ $contextual_help .= ''.__('Including the list of links in your theme', 'shaken').'
';
+
+ $contextual_help .= ''.__('To include the list of links in your theme, you need to place the following PHP function in the location where you want the links to appear:', 'shaken').'
';
+
+ $contextual_help .= '<?php social_bartender(); ?>
';
+
+ $contextual_help .= '
';
+
+ $contextual_help .= ''.__( 'Parameters', 'shaken' ).'
';
+
+ $contextual_help .= 'link_before: '.__('(string) Sets the text or html that precedes the <a> tag. Default = \'\'', 'shaken' ).'
';
+
+ $contextual_help .= 'link_after: '.__('(string) Sets the text or html that follows the <a> tag. Default = \'\'', 'shaken' ).'
';
+
+ $contextual_help .= 'echo: '.__('(boolean) Toggles the display of the generated list of links or return the list as an HTML text string to be used in PHP. Default = 1', 'shaken').'
';
+
+ $contextual_help .= '
';
+
+ $contextual_help .= ''.__( 'Example Output', 'shaken' ).'
';
+
+ $contextual_help .= ''.__('Using the default settings, the social_bartender()
function would output the following:', 'shaken').'
';
+
+ $contextual_help .= '<a href="http://example.com" class="sh-sb-link">
+<img src="http://mysite.com/images/icon.png" alt="Link Title" class="sh-sb-icon">
</a>
<a href="http://example.com" class="sh-sb-link">
- <img src="http://mysite.com/images/icon-2.png" alt="Link #2 Title" class="sh-sb-icon">
+<img src="http://mysite.com/images/icon-2.png" alt="Link #2 Title" class="sh-sb-icon">
</a>
';
-
-
- $contextual_help .= '
';
-
- $contextual_help .= ''.__('Theme Developers', 'shaken').'
';
-
- $contextual_help .= ''.__('If you would like to make your own icon set available to users in the Icon Box, just place the images inside of an "images/sb-icons" folder of your theme.', 'shaken').'
';
-
- $contextual_help .= ''.__('Credits / Support', 'shaken').'
';
-
- $contextual_help .= ''.__( 'The Social Bartender plugin was created by', 'shaken' ).' Shaken and Stirred Web. '.__( 'If you find any bugs, have feature requests, or would like to contribute, please visit the plugin\'s GitHub page.', 'shaken').'
';
-
- $contextual_help .= ''.__( 'Contributors:', 'shaken' ).' @sawyerh, @devinsays, @NickHamze, and @thelukemcdonald
';
-
- endif;
-
- return $contextual_help;
- }
-
-add_filter('contextual_help', 'sh_sb_help_page', 10, 3);
+
+
+ $contextual_help .= '
';
+
+ $contextual_help .= ''.__('Theme Developers', 'shaken').'
';
+
+ $contextual_help .= ''.__('If you would like to make your own icon set available to users in the Icon Box, just place the images inside of an "images/sb-icons" folder of your theme.', 'shaken').'
';
+
+ $contextual_help .= ''.__('Credits / Support', 'shaken').'
';
+
+ $contextual_help .= ''.__( 'The Social Bartender plugin was created by', 'shaken' ).' Shaken and Stirred Web. '.__( 'If you find any bugs, have feature requests, or would like to contribute, please visit the plugin\'s GitHub page.', 'shaken').'
';
+
+ $contextual_help .= ''.__( 'Contributors:', 'shaken' ).' @sawyerh, @devinsays, @NickHamze, and @thelukemcdonald
';
+
+ add_contextual_help( 'settings_page_sh_sb_settings_page', $contextual_help );
+}
?>
\ No newline at end of file
diff --git a/readme.txt b/readme.txt
index 80d11f1..4b661c1 100755
--- a/readme.txt
+++ b/readme.txt
@@ -44,6 +44,10 @@ Contributors (on Twitter): @sawyerh, @devinsays, @NickHamze, and @thelukemcdonal
== Changelog ==
+= 1.2.0 (pending) =
+
+* Update contextual help to work w/ WP 3.3
+
= 1.1.0 (Oct. 21, 2011) =
* Fix compatibility issues with WordPress 3.3