Release version 1.6.0
- **IMPORTANT**: Improved performance. You need to Activate the Plugin again. (Settings won't change!) - Add: Setting to customize the mouse-over box shadow - Add: Translation: United States - Add: Translation: Austria - Add: Translation: Spanish (many thanks to Pablo L.) - Update: Translations (de_DE and en_GB) - Update: Changed Plugins init file name to improve performance (Re-activation of the Plugin is required) - Update: ManFisher note styling - Update: Tested with latest nightly build of WordPress 4.1 - Bugfix: Avoid multiple IDs for footnotes when multiple reference containers are displayed git-svn-id: https://plugins.svn.wordpress.org/footnotes/tags/1.6.0@1009660 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
b183563518
commit
a462db714e
28 changed files with 2191 additions and 200 deletions
|
@ -1,2 +1,2 @@
|
|||
<sup id="footnote_plugin_tooltip_[[index]]" class="footnote_plugin_tooltip_text" onclick="footnote_moveToAnchor('footnote_plugin_reference_[[index]]');">[[before]][[index]][[after]]</sup>
|
||||
<span class="footnote_tooltip" id="footnote_plugin_tooltip_text_[[index]]">[[text]]</span>
|
||||
<sup id="footnote_plugin_tooltip_[[id]]" class="footnote_plugin_tooltip_text" onclick="footnote_moveToAnchor('footnote_plugin_reference_[[id]]');">[[before]][[index]][[after]]</sup>
|
||||
<span class="footnote_tooltip" id="footnote_plugin_tooltip_text_[[id]]">[[text]]</span>
|
|
@ -1,5 +1,5 @@
|
|||
<tr>
|
||||
<td class="footnote_plugin_index">[[index]].</td>
|
||||
<td class="footnote_plugin_link"><span id="footnote_plugin_reference_[[index-int]]" onclick="footnote_moveToAnchor('footnote_plugin_tooltip_[[index-int]]');">[[arrow]]</span></td>
|
||||
<td class="footnote_plugin_index"><span id="footnote_plugin_reference_[[id]]">[[index]].</span></td>
|
||||
<td class="footnote_plugin_link"><span onclick="footnote_moveToAnchor('footnote_plugin_tooltip_[[id]]');">[[arrow]]</span></td>
|
||||
<td class="footnote_plugin_text">[[text]]</td>
|
||||
</tr>
|
|
@ -25,12 +25,11 @@
|
|||
footnote_collapse_reference_container();
|
||||
}
|
||||
}
|
||||
|
||||
function footnote_moveToAnchor(p_str_TargetID) {
|
||||
footnote_expand_reference_container();
|
||||
var l_obj_Target = jQuery("#" + p_str_TargetID);
|
||||
if( l_obj_Target.length ) {
|
||||
event.preventDefault();
|
||||
if(l_obj_Target.length) {
|
||||
//event.preventDefault();
|
||||
jQuery('html, body').animate({
|
||||
scrollTop: l_obj_Target.offset().top - window.innerHeight/2
|
||||
}, 1000);
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<script type="text/javascript">
|
||||
jQuery("#footnote_plugin_tooltip_[[index]]").tooltip({
|
||||
tip: "#footnote_plugin_tooltip_text_[[index]]",
|
||||
jQuery("#footnote_plugin_tooltip_[[id]]").tooltip({
|
||||
tip: "#footnote_plugin_tooltip_text_[[id]]",
|
||||
tipClass: "footnote_tooltip",
|
||||
effect: "fade",
|
||||
fadeOutSpeed: 100,
|
||||
predelay: 400,
|
||||
position: "top right",
|
||||
position: "[[position]]",
|
||||
relative: true,
|
||||
offset: [10, 10]
|
||||
offset: [[[offset-y]], [[offset-x]]]
|
||||
});
|
||||
</script>
|
Reference in a new issue