diff --git a/README.md b/README.md index 0e8c343..918d3b1 100755 --- a/README.md +++ b/README.md @@ -4,13 +4,14 @@ #### this plugin intends to be straight forward and customizable at the same time #### -**footnotes** gives you the ability to display decently-formated footnotes on your WordPress Pages or Posts. +**footnotes** gives you the ability to display decently-formated footnotes on your WordPress Pages or Posts. **footnotes** aims to be the all-in-one solution that ships with a set of sane defaults (those footnotes we know from offline publishing) but also give the user control over how their **footnotes** are being displayed. +![screenshot](https://raw.githubusercontent.com/media-competence-institute/footnotes/master/assets/screenshot-example.jpg) The syntax is based on the common DokuWiki syntax for footnotes. So, to include a footnote with the text "with a footnote," you use: Your awesome text((with a footnote)) -And that's all you need to do. When you add a footnote, **footnotes** will create a note marker at the point that the foonote appears in the text, and includes the text of the footnote in a styled list of notes down the page. When a reader clicks on the link in a JavaScript-enabled browser, a script included with the plugin will create a small bubble inline in the text, which pops up over the footnote marker for easy reading without losing their place. Just like you're used to on a DokuWiki Page. +And that's all you need to do. When you add a footnote, **footnotes** will create a note marker at the point that the foonote appears in the text, and includes the text of the footnote in a styled list of notes down the page. Using `((` + `))` is the default. You can decide on what the shortcode for **footnotes** should be. -In non-JavaScript-enabled contexts, clicking on the footnote marker jumps down the page to the text of the note. The jump is based on a unique anchor which the plugin can automatically generate for you. +This plugin (once released on wordpress.org) will give you full customizability while being shipped with a set of sane defaults. diff --git a/classes/footnotes_settings.php b/classes/footnotes_settings.php index 0e59fed..7539a9c 100644 --- a/classes/footnotes_settings.php +++ b/classes/footnotes_settings.php @@ -104,9 +104,9 @@ class Class_FootnotesSettings return; } /* submenu page title */ - $l_str_PageTitle = 'footnotes'; + $l_str_PageTitle = 'footnotes'; /* submenu title */ - $l_str_MenuTitle = 'footnotes'; + $l_str_MenuTitle = 'footnotes'; /* Add a new submenu to the standard Settings panel */ $this->a_str_Pagehook = add_options_page( $l_str_PageTitle, $l_str_MenuTitle, 'administrator', FOOTNOTES_SETTINGS_PAGE_ID, array( $this, 'OutputSettingsPage' ) ); } @@ -310,14 +310,14 @@ class Class_FootnotesSettings /* add tab to the tab array */ $this->a_arr_SettingsTabs[ FOOTNOTE_SETTINGS_LABEL_GENERAL ] = __( "General", FOOTNOTES_PLUGIN_NAME ); /* register settings tab */ - add_settings_section( $l_str_SectionName, __( "Settings", FOOTNOTES_PLUGIN_NAME ), array( $this, 'RegisterTab_General_Description' ), FOOTNOTE_SETTINGS_LABEL_GENERAL ); + add_settings_section( $l_str_SectionName, sprintf(__( "%s Settings", FOOTNOTES_PLUGIN_NAME ), 'footnotes'), array( $this, 'RegisterTab_General_Description' ), FOOTNOTE_SETTINGS_LABEL_GENERAL ); add_settings_field( 'Register_References_Label', __( "References label:", FOOTNOTES_PLUGIN_NAME ), array( $this, 'Register_References_Label' ), FOOTNOTE_SETTINGS_LABEL_GENERAL, $l_str_SectionName ); add_settings_field( 'Register_Collapse_References', __( "Collapse references by default:", FOOTNOTES_PLUGIN_NAME ), array( $this, 'Register_Collapse_References' ), FOOTNOTE_SETTINGS_LABEL_GENERAL, $l_str_SectionName ); add_settings_field( 'Register_Combine_Identical', __( "Combine identical footnotes:", FOOTNOTES_PLUGIN_NAME ), array( $this, 'Register_Combine_Identical' ), FOOTNOTE_SETTINGS_LABEL_GENERAL, $l_str_SectionName ); add_settings_field( 'Register_Placeholder_Tags', __( "Footnote tag:", FOOTNOTES_PLUGIN_NAME ), array( $this, 'Register_Placeholder_Tags' ), FOOTNOTE_SETTINGS_LABEL_GENERAL, $l_str_SectionName ); add_settings_field( 'Register_CounterStyle', __( "Counter style:", FOOTNOTES_PLUGIN_NAME ), array( $this, 'Register_CounterStyle' ), FOOTNOTE_SETTINGS_LABEL_GENERAL, $l_str_SectionName ); add_settings_field( 'Register_SearchExcerpt', __( "Allow footnotes on Summarized Posts:", FOOTNOTES_PLUGIN_NAME ), array( $this, 'Register_SearchExcerpt' ), FOOTNOTE_SETTINGS_LABEL_GENERAL, $l_str_SectionName ); - add_settings_field( 'Register_LoveAndShare', sprintf(__( "Tell the world you're using %sfootnotes%s:", FOOTNOTES_PLUGIN_NAME ), '', ''), array( $this, 'Register_LoveAndShare' ), FOOTNOTE_SETTINGS_LABEL_GENERAL, $l_str_SectionName ); + add_settings_field( 'Register_LoveAndShare', sprintf(__( "Tell the world you're using %sfoot%snotes%s:", FOOTNOTES_PLUGIN_NAME ), '', '', ''), array( $this, 'Register_LoveAndShare' ), FOOTNOTE_SETTINGS_LABEL_GENERAL, $l_str_SectionName ); } /** @@ -484,7 +484,7 @@ class Class_FootnotesSettings
- ', '' ); ?> + ', '' ); ?>
diff --git a/css/settings.css b/css/settings.css index cc597a2..bbd352f 100755 --- a/css/settings.css +++ b/css/settings.css @@ -61,7 +61,7 @@ span.footnote_highlight_placeholder { } .footnote_placeholder_box_example { - border: 2px solid #ff524b !important; + border: 2px solid #2bb975 !important; border-radius: 4px !important; padding-top: 16px !important; padding-bottom: 16px !important; diff --git a/index.php b/index.php index 0e468c6..dbceab6 100755 --- a/index.php +++ b/index.php @@ -2,10 +2,10 @@ /* Plugin Name: footnotes Plugin URI: https://github.com/media-competence-institute/footnotes - Description: simple adding footnotes to your pages - Author: Mark Cheret, Stefan Herndler + Description: time to bring footnotes to your website! footnotes are known from offline publishing and everybody takes them for granted when reading a magazine. + Author: media competence institute Version: 1.0.5 - Author URI: https://github.com/media-competence-institute/footnotes + Author URI: http://cheret.co.uk/mci Text Domain: footnotes Domain Path: /languages */ diff --git a/languages/footnotes-de.mo b/languages/footnotes-de.mo index ef236dd..b9e7ce7 100755 Binary files a/languages/footnotes-de.mo and b/languages/footnotes-de.mo differ diff --git a/languages/footnotes-de.po b/languages/footnotes-de.po index bc2bdca..c26560a 100755 --- a/languages/footnotes-de.po +++ b/languages/footnotes-de.po @@ -1,9 +1,9 @@ msgid "" msgstr "" "Project-Id-Version: footnotes\n" -"POT-Creation-Date: 2014-05-17 01:03+0100\n" -"PO-Revision-Date: 2014-05-17 01:03+0100\n" -"Last-Translator: SHE