diff --git a/class/dashboard/init.php b/class/dashboard/init.php index e983012..e0fd650 100644 --- a/class/dashboard/init.php +++ b/class/dashboard/init.php @@ -146,7 +146,7 @@ class MCI_Footnotes_Layout_Init { $l_obj_Template = new MCI_Footnotes_Template(MCI_Footnotes_Template::C_STR_DASHBOARD, "manfisher"); echo $l_obj_Template->getContent(); - printf('visit ManFisher Medien ManuFaktur'); + printf('visit ManFisher Medien ManuFaktur or herndler.org'); printf("

"); printf("

%s

", __('Take a look on other Plugins we have developed.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME)); /* diff --git a/css/public.css b/css/public.css index 6996ad5..d644932 100755 --- a/css/public.css +++ b/css/public.css @@ -86,6 +86,10 @@ border: none; } +.footnote-reference-container > tbody > tr > td { + vertical-align: top; +} + .footnote-reference-container > tbody > tr > td:first-child { white-space: nowrap; padding-right: 5px; diff --git a/index.php b/index.php index de864a1..db637f2 100755 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ Plugin URI: http://wordpress.org/plugins/footnotes/ 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: ManFisher Medien ManuFaktur - Version: 1.5.2 + Version: 1.5.3 Author URI: http://manfisher.net/plugins/footnotes/ Text Domain: footnotes Domain Path: /languages diff --git a/readme.txt b/readme.txt index 1160586..fc9dabd 100755 --- a/readme.txt +++ b/readme.txt @@ -6,7 +6,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i Tested up to: 4.0 License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html -Stable Tag: 1.5.2 +Stable Tag: 1.5.3 == Description == @@ -84,6 +84,11 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest** == Changelog == += 1.5.3 = +- Add: Developer's homepage to the 'other Plugins' list +- Update: Smoothy scroll to an anchor using Javascript +- Bugfix: Set the vertical align for each cell in the Reference container to TOP + = 1.5.2 = - Add: Setting to enable/disable the mouse-over box - Add: Current WordPress Theme to the Diagnostics sub page diff --git a/templates/public/footnote.html b/templates/public/footnote.html index 360585c..9ac671e 100755 --- a/templates/public/footnote.html +++ b/templates/public/footnote.html @@ -1,2 +1,2 @@ -[[before]][[index]][[after]] +[[before]][[index]][[after]] [[text]] \ No newline at end of file diff --git a/templates/public/reference-container-body.html b/templates/public/reference-container-body.html index f97b8ee..62b8c84 100755 --- a/templates/public/reference-container-body.html +++ b/templates/public/reference-container-body.html @@ -1,7 +1,8 @@ [[index]]. - [[arrow]] + id="footnote_plugin_reference_[[index-int]]" + onclick="footnote_moveToAnchor('footnote_plugin_tooltip_[[index-int]]');">[[arrow]] [[text]] \ No newline at end of file diff --git a/templates/public/reference-container.html b/templates/public/reference-container.html index 4b41c91..c7eec28 100644 --- a/templates/public/reference-container.html +++ b/templates/public/reference-container.html @@ -23,4 +23,14 @@ jQuery("#footnote_reference_container_collapse_button").text("+"); } } + + function footnote_moveToAnchor(p_str_TargetID) { + var l_obj_Target = jQuery("#" + p_str_TargetID); + if( l_obj_Target.length ) { + event.preventDefault(); + jQuery('html, body').animate({ + scrollTop: l_obj_Target.offset().top - window.innerHeight/2 + }, 1000); + } + } \ No newline at end of file