From cf6f817dfee8e7c8576ab9eab51474fa31ad7a7e Mon Sep 17 00:00:00 2001 From: Aricura Date: Tue, 20 May 2014 11:53:13 +0000 Subject: [PATCH] Version 1.0.5 The Plugin has been submitted to wordpress.org for review and (hopefully) publication. * Update: Plugin description for public directories (WordPress.org and GitHub) * Feature: the **footnotes** WordPress Plugin now has its very own CI * Update: Styling * Update: Settings to support the styling * Add: Inspirational Screenshots for further development * Add: Settings screenshot * Update: i18n fine-tuning git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@917823 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- README.md | 7 ++++--- classes/footnotes_settings.php | 10 +++++----- css/settings.css | 2 +- index.php | 6 +++--- languages/footnotes-de.mo | Bin 2907 -> 2958 bytes languages/footnotes-de.po | 23 ++++++++++++++--------- languages/footnotes-en.mo | Bin 2848 -> 2898 bytes languages/footnotes-en.po | 25 +++++++++++++++---------- readme.txt | 6 +++--- 9 files changed, 45 insertions(+), 34 deletions(-) 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 ef236ddc9131c76e90b16394b0ddc54a4cb96f6f..b9e7ce7a9074eb55d56db7e95ef1983c481fd24f 100755 GIT binary patch delta 874 zcmXxiO=uHA6u|M9H2pBfT5CVl*gAyVvbfu4j-MvWff9Lrv=8MSAK@H+#6|p#q>>r3&tnSpKpPmxEz~>@F+qKK#blfd zZ}A=#Ki~-KC8|u}B|M5noWZB48+wn&@iQjz4~}Adm&h1SAwS9Srw3d?QcDAu@BvO! zU$%9E-;vGBPH!DyyIRPgwlIf!-zuKMYq)?fQ9JboPvciSkHfq-rm~I+-0WFKJ@8#@ z^jCd%(@N3l3#SKXVG#bZqrq-RN->H*%#Z6rd;b&Y%DUE zH<|o$cA@#LeK RdfNtftY5G$Y+jH5{RfObY;gbp delta 799 zcmXxh&r1|x7{Kv&w%K*vQq$bE%{DmM$Rv>t)yh$`VBQ7~RvNM)-XiuGj zFcvRHbdPR(6!g@g4qXd`An+vh2L!?PeP+goefYfZz&_9WKJS~p!$SRMkGZ3WOXL7) z8cJQm-zc%2Qfd_6;t(ESKOSKLTX-1@r{e!lU?=+r*n!K~h8uVfw=j(dIIC1$eP$tz zGiK}+q^6q1Zk$6YxQJPFu#6sF#}7DxUy)MEp!y9=qg-SRbNC3QP6f~47Ut=%Ua@#V z$9E`GDA469j$sj(P!94ErQtSS#69f6@7RmS*p4l{jqPkGsTObw@8cl8PW*@_{neM` z!#9*he^5r(O1^h+{7LpBIF1g=gm!TT-{T!TM1D%2j&C@eIE8t>-^Jur*~L+pQE=dB zH1bK__9WzeWPu{?8>^{3`&inx!?R{_8M)I+A2?5w;KP_#erl!Y?Uo5w_pe1=);;_ z4c6_@uQl9Esrfkb!)VTD`%^cy\n" +"POT-Creation-Date: 2014-05-19 09:15+0100\n" +"PO-Revision-Date: 2014-05-19 09:16+0100\n" +"Last-Translator: Mark Cheret \n" "Language-Team: SHE \n" "Language: de\n" "MIME-Version: 1.0\n" @@ -22,9 +22,10 @@ msgstr "" msgid "General" msgstr "Allgemein" -#: classes/footnotes_settings.php:313 includes/plugin-settings.php:22 -msgid "Settings" -msgstr "Einstellungen" +#: classes/footnotes_settings.php:313 +#, php-format +msgid "%s Settings" +msgstr "%s Einstellungen" #: classes/footnotes_settings.php:314 msgid "References label:" @@ -52,8 +53,8 @@ msgstr "Erlaube Fußnoten in Zusammenfassungen:" #: classes/footnotes_settings.php:320 #, php-format -msgid "Tell the world you're using %sfootnotes%s:" -msgstr "Teil der Community mit dass Ich %sfootnotes%s verwende:" +msgid "Tell the world you're using %sfoot%snotes%s:" +msgstr "Teile der Welt mit, dass du %sfoot%snotes%s verwendest:" #: classes/footnotes_settings.php:361 classes/footnotes_settings.php:409 #: classes/footnotes_settings.php:424 @@ -119,9 +120,13 @@ msgstr "wird dargestellt als:" #: classes/footnotes_settings.php:487 #, php-format -msgid "If you have any questions, please don't hesitate to %smail us%s." +msgid "If you have any questions, please don't hesitate to %se-mail%s us." msgstr "Bei Fragen können Sie uns gerne eine %se-Mail%s senden." +#: includes/plugin-settings.php:22 +msgid "Settings" +msgstr "Einstellungen" + #: includes/replacer.php:104 #, php-format msgid "Hey there, I'm using the awesome WordPress Plugin called %sfootnotes%s" diff --git a/languages/footnotes-en.mo b/languages/footnotes-en.mo index a206fe4519c25a6f00892082e923ed40946993e3..f262aaf17ae4d3a2dd1574a6a238f497ca0e55e2 100755 GIT binary patch delta 836 zcmajdKTH#07{~FawG=5;5NH)aJ+vJN6kDRk5(fXpNf+r%a?y(r{v~%u!eD50(!gL+ ziHw2~IQactZ}&}~eBSqxd*1i=UN`ff^Y!mNsSRUXqz0*M z!fY7-qQ+*@tP|g32|r>15Ai(O39~#5;3XVK^?8J+aS2c1Dz@V~-p4oCW>&XDCU zf?rUHf1?urK{d>9Ylo2eWt;6?hWs@n>e) z8v0i3YhCerAXc2E((zgw@_v-)0`^kflx|2Nq64FbZc7JHNR1v!H^Znze>|Ov&lU}x ztdBZJ>GZk@D+bP#7lyNoPlM*`gr%DAE(Y^%xa3bb4_$xGxjW$I255n>nf(yA^yii5SJ|Kpo$ctJJ&Y)2~E)8RhAD! zvrcqAo15!i$)`#^?zi%}+wL^J>h{wke!BEG+|zZp9`Mt?9~;l+3xn^MvkUpTY+-S^ WG#yEmry^CS{3SGVe^BY%t=$68flZSD diff --git a/languages/footnotes-en.po b/languages/footnotes-en.po index 50b8b96..e8d87db 100755 --- a/languages/footnotes-en.po +++ b/languages/footnotes-en.po @@ -1,9 +1,9 @@ msgid "" msgstr "" "Project-Id-Version: footnotes\n" -"POT-Creation-Date: 2014-05-17 01:01+0100\n" -"PO-Revision-Date: 2014-05-17 01:01+0100\n" -"Last-Translator: SHE \n" +"POT-Creation-Date: 2014-05-19 09:15+0100\n" +"PO-Revision-Date: 2014-05-19 09:15+0100\n" +"Last-Translator: Mark Cheret \n" "Language-Team: SHE \n" "Language: en\n" "MIME-Version: 1.0\n" @@ -22,9 +22,10 @@ msgstr "" msgid "General" msgstr "General" -#: classes/footnotes_settings.php:313 includes/plugin-settings.php:22 -msgid "Settings" -msgstr "Settings" +#: classes/footnotes_settings.php:313 +#, php-format +msgid "%s Settings" +msgstr "%s Settings" #: classes/footnotes_settings.php:314 msgid "References label:" @@ -52,8 +53,8 @@ msgstr "Allow footnotes on Summarized Posts:" #: classes/footnotes_settings.php:320 #, php-format -msgid "Tell the world you're using %sfootnotes%s:" -msgstr "Tell the world you're using %sfootnotes%s:" +msgid "Tell the world you're using %sfoot%snotes%s:" +msgstr "Tell the world you're using %sfoot%snotes%s:" #: classes/footnotes_settings.php:361 classes/footnotes_settings.php:409 #: classes/footnotes_settings.php:424 @@ -119,8 +120,12 @@ msgstr "will be displayed as:" #: classes/footnotes_settings.php:487 #, php-format -msgid "If you have any questions, please don't hesitate to %smail us%s." -msgstr "If you have any questions, please don't hesitate to %smail us%s." +msgid "If you have any questions, please don't hesitate to %se-mail%s us." +msgstr "If you have any questions, please don't hesitate to %se-mail%s us." + +#: includes/plugin-settings.php:22 +msgid "Settings" +msgstr "Settings" #: includes/replacer.php:104 #, php-format diff --git a/readme.txt b/readme.txt index d8056e6..0ce9523 100755 --- a/readme.txt +++ b/readme.txt @@ -19,7 +19,7 @@ footnotes aims to be the all-in-one solution that ships with a set of sane defau It's relatively simple. Check out [the manual](https://github.com/markcheret/footnotes#footnotes). -= Is your Plugin a copy of footnotes x? = += Is your Plugina copy of footnotes x? = No, this Plugin has been written from scratch. Of course some inspirations were taken from other plugins. @@ -86,5 +86,5 @@ The Plugin has been submitted to wordpress.org for review and (hopefully) public * First development Version of the Plugin == Upgrade Notice == -To upgrade our plugin is simple. Just update the plugin within your WordPress installation. -To cross-upgrade from other footnotes plugins, there will be a migration assistant in the future \ No newline at end of file +to upgrade our plugin is simple. Just update the plugin within your WordPress installation. +To cross-upgrade from other footnotes plugins, there will be a migration assistant in the future