Version 1.0.4
* Updated replacing function when footnote is a link (bugfix) * Footnote hover box remains until cursor leaves footnote or hover box * Links in the footnote hover box are click able * New setting to allow footnotes on Summarized Posts * New setting to tell the world you're using footnotes plugin * New setting for the counter style of the footnote index ** Arabic Numbers (1, 2, 3, 4, 5, ...) ** Arabic Numbers leading 0 (01, 02, 03, 04, 05, ...) ** Latin Characters lower-case (a, b, c, d, e, ...) ** Latin Characters upper-case (A, B, C, D, E, ...) ** Roman Numerals (I, II, III, IV, V, ...) * Adding a link to the WordPress plugin in the footer if the WP-admin accepts it * Updated translations for the new settings * re-changed the version number to have 3 digits git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@917816 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
5d475abfc3
commit
660d32edc3
14 changed files with 288 additions and 88 deletions
|
@ -33,15 +33,20 @@ function footnotes_plugin_settings_link( $links, $file )
|
|||
* @since 1.0
|
||||
* @param string $p_str_OptionsField
|
||||
* @param array $p_arr_DefaultValues
|
||||
* @param bool $p_bool_ConvertHtmlChars
|
||||
* @return array
|
||||
*/
|
||||
function footnotes_filter_options( $p_str_OptionsField, $p_arr_DefaultValues )
|
||||
function footnotes_filter_options( $p_str_OptionsField, $p_arr_DefaultValues, $p_bool_ConvertHtmlChars=true )
|
||||
{
|
||||
$l_arr_Options = get_option( $p_str_OptionsField );
|
||||
/* loop through all keys in the array and filters them */
|
||||
foreach ( $l_arr_Options as $l_str_Key => $l_str_Value ) {
|
||||
/* removes special chars from the settings value */
|
||||
$l_str_Value = stripcslashes( $l_str_Value );
|
||||
/* if set, convert html special chars */
|
||||
if ($p_bool_ConvertHtmlChars) {
|
||||
$l_str_Value = htmlspecialchars( $l_str_Value );
|
||||
}
|
||||
/* check if settings value is not empty, otherwise load the default value, or empty string if no default is defined */
|
||||
if (!empty($l_str_Value)) {
|
||||
$l_arr_Options[ $l_str_Key ] = stripcslashes( $l_str_Value );
|
||||
|
|
Reference in a new issue