- Update: Moved footnotes 'love' settings in a separate container
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@919918 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
ba20725bb7
commit
d2ee70973a
2 changed files with 27 additions and 16 deletions
|
@ -382,7 +382,8 @@ class Class_FootnotesSettings
|
||||||
/* register settings tab */
|
/* 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_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_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_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 . ' <span style="color:#ff6d3b; font-weight:bold;">♥</span>', 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');
|
add_meta_box('Register_MetaBox_Other', __("Other", FOOTNOTES_PLUGIN_NAME), array($this, 'Register_MetaBox_Other'), FOOTNOTE_SETTINGS_LABEL_GENERAL, 'main');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -466,17 +467,8 @@ class Class_FootnotesSettings
|
||||||
* outputs other footnotes settings that doesn't match a special category
|
* outputs other footnotes settings that doesn't match a special category
|
||||||
* @since 1.0.7
|
* @since 1.0.7
|
||||||
*/
|
*/
|
||||||
function Register_MetaBox_Other()
|
function Register_MetaBox_Love()
|
||||||
{
|
{
|
||||||
/* setting for 'search footnotes tag in excerpt' */
|
|
||||||
$l_arr_Options = array(
|
|
||||||
"yes" => __("Yes", FOOTNOTES_PLUGIN_NAME),
|
|
||||||
"no" => __("No", FOOTNOTES_PLUGIN_NAME)
|
|
||||||
);
|
|
||||||
$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' */
|
/* setting for 'love and share this plugin in my footer' */
|
||||||
$l_arr_Options = array(
|
$l_arr_Options = array(
|
||||||
"yes" => __("Yes", FOOTNOTES_PLUGIN_NAME),
|
"yes" => __("Yes", FOOTNOTES_PLUGIN_NAME),
|
||||||
|
@ -487,10 +479,26 @@ class Class_FootnotesSettings
|
||||||
$this->AddNewline();
|
$this->AddNewline();
|
||||||
|
|
||||||
/* no 'love me' on specific pages */
|
/* 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(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);
|
$this->AddText(FOOTNOTES_NO_SLUGME_PLUG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* outputs other footnotes settings that doesn't match a special category
|
||||||
|
* @since 1.0.7
|
||||||
|
*/
|
||||||
|
function Register_MetaBox_Other()
|
||||||
|
{
|
||||||
|
/* setting for 'search footnotes tag in excerpt' */
|
||||||
|
$l_arr_Options = array(
|
||||||
|
"yes" => __("Yes", FOOTNOTES_PLUGIN_NAME),
|
||||||
|
"no" => __("No", FOOTNOTES_PLUGIN_NAME)
|
||||||
|
);
|
||||||
|
$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");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* initialize howto settings tab
|
* initialize howto settings tab
|
||||||
* called in class constructor @ admin_init
|
* called in class constructor @ admin_init
|
||||||
|
|
|
@ -40,6 +40,9 @@ No, this Plugin has been written from scratch. Of course some inspirations on ho
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.1.2 =
|
||||||
|
- Update: Moved footnotes 'love' settings in a separate container
|
||||||
|
|
||||||
= 1.1.1 =
|
= 1.1.1 =
|
||||||
- Feature: Short code to not display the 'love me' slug on specific pages ( short code = [[no footnotes: love]] )
|
- 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
|
- Update: Setting where the reference container appears on public pages can also be set to the widget area
|
||||||
|
|
Reference in a new issue