2021-02-08 18:04:15 +00:00
<!-- <?php//for docblock, @see MCI_Footnotes_Template::process_template()
/**
* Yields the reference container start and end including the scroll script.
*
* @since Unknown
* @type object
*
* @lastmodified 2021-02-07T0811+0100
*
*
*
* - Bugfix: Reference container: restore expand/collapse button in the template, thanks to @ragonesi bug report.
*
* @since 2.0.2
*
* @reporter @ragonesi
* @link https://wordpress.org/support/topic/hyperlink-symbol-in-reference-container/#post-13587782
*
* The expand/collapse button was lost @since 2.0.0 for an unknown reason.
* The fix was about restoring the button code (only, while the script remained complete).
*/?>
-->
2020-11-07 13:31:49 +00:00
< div
2020-11-16 20:57:15 +00:00
class="speaker-mute footnotes_reference_container"
2020-11-07 13:31:49 +00:00
>
< div
class="footnote_container_prepare"
2020-12-18 16:31:09 +00:00
>< [[element]]
2020-11-20 05:40:03 +00:00
>< span
2021-01-18 21:31:11 +00:00
class="footnote_reference_container_label pointer"
2021-01-18 20:09:43 +00:00
onclick="footnote_expand_collapse_reference_container_[[post_id]]_[[container_id]]();"
2020-12-18 16:31:09 +00:00
>[[name]]< /span
2020-11-05 02:34:35 +00:00
>< span
class="footnote_reference_container_collapse_button"
style="[[button-style]]"
2020-12-25 15:14:43 +00:00
onclick="footnote_expand_collapse_reference_container_[[post_id]]_[[container_id]]();"
2020-11-07 13:31:49 +00:00
>[< a
2020-12-25 15:14:43 +00:00
id="footnote_reference_container_collapse_button_[[post_id]]_[[container_id]]"
2020-11-08 15:57:09 +00:00
>+< /a
2020-11-05 02:34:35 +00:00
>]< /span
2020-12-18 16:31:09 +00:00
>< /[[element]]
2020-11-20 05:40:03 +00:00
>< /div
>
2020-11-07 13:31:49 +00:00
< div
2020-12-25 15:14:43 +00:00
id="footnote_references_container_[[post_id]]_[[container_id]]"
2020-11-07 13:31:49 +00:00
style="[[style]]"
>
< table
2020-12-09 15:12:37 +00:00
class="footnotes_table footnote-reference-container"
2020-11-05 02:34:35 +00:00
>
< tbody >
[[content]]
< / tbody >
< / table >
< / div >
2014-09-14 20:32:59 +00:00
< / div >
2020-10-29 13:17:36 +00:00
< script type = "text/javascript" >
2020-12-25 15:14:43 +00:00
function footnote_expand_reference_container_[[post_id]]_[[container_id]]() {
jQuery('#footnote_references_container_[[post_id]]_[[container_id]]').show();
jQuery('#footnote_reference_container_collapse_button_[[post_id]]_[[container_id]]').text('− ');
2020-11-05 02:34:35 +00:00
}
2020-12-25 15:14:43 +00:00
function footnote_collapse_reference_container_[[post_id]]_[[container_id]]() {
jQuery('#footnote_references_container_[[post_id]]_[[container_id]]').hide();
jQuery('#footnote_reference_container_collapse_button_[[post_id]]_[[container_id]]').text('+');
2020-11-05 02:34:35 +00:00
}
2020-12-25 15:14:43 +00:00
function footnote_expand_collapse_reference_container_[[post_id]]_[[container_id]]() {
if (jQuery('#footnote_references_container_[[post_id]]_[[container_id]]').is(':hidden')) {
footnote_expand_reference_container_[[post_id]]_[[container_id]]();
2020-11-05 02:34:35 +00:00
} else {
2020-12-25 15:14:43 +00:00
footnote_collapse_reference_container_[[post_id]]_[[container_id]]();
2020-11-05 02:34:35 +00:00
}
}
2020-12-25 15:14:43 +00:00
function footnote_moveToAnchor_[[post_id]]_[[container_id]](p_str_TargetID) {
footnote_expand_reference_container_[[post_id]]_[[container_id]]();
2020-11-05 02:34:35 +00:00
var l_obj_Target = jQuery('#' + p_str_TargetID);
if (l_obj_Target.length) {
jQuery('html, body').animate({
2020-12-05 04:48:09 +00:00
scrollTop: l_obj_Target.offset().top - window.innerHeight * [[scroll-offset]]
2020-11-05 02:34:35 +00:00
},
2020-12-05 04:48:09 +00:00
[[scroll-duration]]);
2020-11-05 02:34:35 +00:00
}
2020-11-20 05:40:03 +00:00
}
2020-10-29 13:17:36 +00:00
< / script >