Prepare for release version 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

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@1002027 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
Aricura 2014-10-05 15:12:42 +00:00
parent 836200a2c3
commit 6a4677251a
7 changed files with 26 additions and 6 deletions

View file

@ -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('<em><a href="http://manfisher.net/" target="_blank">visit ManFisher Medien ManuFaktur</a></em>');
printf('<em>visit <a href="http://manfisher.net/" target="_blank">ManFisher Medien ManuFaktur</a> or <a href="http://herndler.org" target="_blank">herndler.org</a></em>');
printf("<br/><br/>");
printf("<h3>%s</h3>", __('Take a look on other Plugins we have developed.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME));
/*

View file

@ -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;

View file

@ -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

View file

@ -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

View file

@ -1,2 +1,2 @@
<a href="#footnote_plugin_reference_[[index]]" name="footnote_plugin_tooltip_[[index]]" id="footnote_plugin_tooltip_[[index]]" class="footnote_plugin_tooltip_text" onclick="footnote_expand_reference_container();"><sup>[[before]][[index]][[after]]</sup></a>
<a href="" name="footnote_plugin_tooltip_[[index]]" id="footnote_plugin_tooltip_[[index]]" class="footnote_plugin_tooltip_text" onclick="footnote_expand_reference_container(); footnote_moveToAnchor('footnote_plugin_reference_[[index]]')"><sup>[[before]][[index]][[after]]</sup></a>
<span class="footnote_tooltip" id="footnote_plugin_tooltip_text_[[index]]">[[text]]</span>

View file

@ -1,7 +1,8 @@
<tr>
<td style="border:none !important; max-width:10% !important;">[[index]].</td>
<td><a class="footnote_plugin_link" href="#footnote_plugin_tooltip_[[index-int]]"
<td><a class="footnote_plugin_link" href=""
name="footnote_plugin_reference_[[index-int]]"
id="footnote_plugin_reference_[[index-int]]">[[arrow]]</a></td>
id="footnote_plugin_reference_[[index-int]]"
onclick="footnote_moveToAnchor('footnote_plugin_tooltip_[[index-int]]');">[[arrow]]</a></td>
<td>[[text]]</td>
</tr>

View file

@ -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);
}
}
</script>