diff --git a/classes/footnotes_settings.php b/classes/footnotes_settings.php index e8181b0..3bf8381 100644 --- a/classes/footnotes_settings.php +++ b/classes/footnotes_settings.php @@ -382,8 +382,9 @@ class Class_FootnotesSettings /* register settings tab */ add_settings_section("Footnote_Secion_Settings_General", sprintf(__("%s Settings", FOOTNOTES_PLUGIN_NAME), FOOTNOTES_PLUGIN_PUBLIC_NAME), array($this, 'RegisterTab_General_Description'), FOOTNOTE_SETTINGS_LABEL_GENERAL); add_meta_box('Register_MetaBox_ReferenceContainer', __("References Container", FOOTNOTES_PLUGIN_NAME), array($this, 'Register_MetaBox_ReferenceContainer'), FOOTNOTE_SETTINGS_LABEL_GENERAL, 'main'); - add_meta_box('Register_MetaBox_FootnoteStyling', __("Footnotes styling", FOOTNOTES_PLUGIN_NAME), array($this, 'Register_MetaBox_FootnoteStyling'), FOOTNOTE_SETTINGS_LABEL_GENERAL, 'main'); - add_meta_box('Register_MetaBox_Other', __("Other", FOOTNOTES_PLUGIN_NAME), array($this, 'Register_MetaBox_Other'), FOOTNOTE_SETTINGS_LABEL_GENERAL, 'main'); + add_meta_box('Register_MetaBox_FootnoteStyling', sprintf(__("%s styling", FOOTNOTES_PLUGIN_NAME), FOOTNOTES_PLUGIN_PUBLIC_NAME), array($this, 'Register_MetaBox_FootnoteStyling'), FOOTNOTE_SETTINGS_LABEL_GENERAL, 'main'); + add_meta_box('Register_MetaBox_Love', FOOTNOTES_PLUGIN_PUBLIC_NAME . ' ', array($this, 'Register_MetaBox_Love'), FOOTNOTE_SETTINGS_LABEL_GENERAL, 'main'); + add_meta_box('Register_MetaBox_Other', __("Other", FOOTNOTES_PLUGIN_NAME), array($this, 'Register_MetaBox_Other'), FOOTNOTE_SETTINGS_LABEL_GENERAL, 'main'); } /** @@ -462,6 +463,27 @@ class Class_FootnotesSettings $this->AddSelectbox(FOOTNOTE_INPUTFIELD_COUNTER_STYLE, $l_arr_Options, "footnote_plugin_50"); } + /** + * outputs other footnotes settings that doesn't match a special category + * @since 1.0.7 + */ + function Register_MetaBox_Love() + { + /* setting for 'love and share this plugin in my footer' */ + $l_arr_Options = array( + "yes" => __("Yes", FOOTNOTES_PLUGIN_NAME), + "no" => __("No", FOOTNOTES_PLUGIN_NAME) + ); + $this->AddLabel(FOOTNOTE_INPUTFIELD_LOVE, sprintf(__("Tell the world you're using %s:", FOOTNOTES_PLUGIN_NAME), FOOTNOTES_PLUGIN_PUBLIC_NAME)); + $this->AddSelectbox(FOOTNOTE_INPUTFIELD_LOVE, $l_arr_Options, "footnote_plugin_50"); + $this->AddNewline(); + + /* no 'love me' on specific pages */ + $this->AddText(sprintf(__("Don't tell the world you're using %s on specific pages by adding the following short code:", FOOTNOTES_PLUGIN_NAME), FOOTNOTES_PLUGIN_PUBLIC_NAME)); + $this->AddText("      "); + $this->AddText(FOOTNOTES_NO_SLUGME_PLUG); + } + /** * outputs other footnotes settings that doesn't match a special category * @since 1.0.7 @@ -475,20 +497,6 @@ class Class_FootnotesSettings ); $this->AddLabel(FOOTNOTE_INPUTFIELD_SEARCH_IN_EXCERPT, __('Allow footnotes on Summarized Posts:', FOOTNOTES_PLUGIN_NAME)); $this->AddSelectbox(FOOTNOTE_INPUTFIELD_SEARCH_IN_EXCERPT, $l_arr_Options, "footnote_plugin_50"); - $this->AddNewline(); - - /* setting for 'love and share this plugin in my footer' */ - $l_arr_Options = array( - "yes" => __("Yes", FOOTNOTES_PLUGIN_NAME), - "no" => __("No", FOOTNOTES_PLUGIN_NAME) - ); - $this->AddLabel(FOOTNOTE_INPUTFIELD_LOVE, sprintf(__("Tell the world you're using %s:", FOOTNOTES_PLUGIN_NAME), FOOTNOTES_PLUGIN_PUBLIC_NAME)); - $this->AddSelectbox(FOOTNOTE_INPUTFIELD_LOVE, $l_arr_Options, "footnote_plugin_50"); - $this->AddNewline(); - - /* no 'love me' on specific pages */ - $this->AddLabel("", sprintf(__("Don't tell the world you're using %s on specific pages by adding the following short code:", FOOTNOTES_PLUGIN_NAME), FOOTNOTES_PLUGIN_PUBLIC_NAME)); - $this->AddText(FOOTNOTES_NO_SLUGME_PLUG); } /** diff --git a/readme.txt b/readme.txt index e8cd433..44849c9 100755 --- a/readme.txt +++ b/readme.txt @@ -40,6 +40,9 @@ No, this Plugin has been written from scratch. Of course some inspirations on ho == Changelog == += 1.1.2 = +- Update: Moved footnotes 'love' settings in a separate container + = 1.1.1 = - Feature: Short code to not display the 'love me' slug on specific pages ( short code = [[no footnotes: love]] ) - Update: Setting where the reference container appears on public pages can also be set to the widget area