Stable Tag remains 2.5.10 as this urgent bugfix v2.5.11 is tagged while 2.6.0 isn’t ready yet.

= 2.5.11 =
- Bugfix: Forms: remove footnotes from input field values, thanks to @bogosavljev bug report.
- Bugfix: Reference container: apply web semantics to improve readability for assistive technologies, thanks to @derivationfr issue report and code contribution.
- Bugfix: Tooltips: Styling: Background color: empty default value to adopt theme background, thanks to 4msc bug report.
- Bugfix: Dashboard: debug text input fields by disabling quotation mark escapement, thanks to @rumperuu code contribution in the standards compliance overhaul.
- Update: Documentation: Readme.txt: comment line below the 'Stable Tag' field to warn that this field is (unintuitively) parsed for release configuration.
- Update: Documentation: Readme.txt: informative 'Version' field in sync with 'Version' in 'footnotes.php' for bugfix versions available ahead of the Stable Tag.
- Update: Documentation: Readme.txt: informative 'Package Version' field in sync with the 'Package V.' field added in the 'footnotes.php' file header.
- Update: Codebase: make PHP code comply to WordPress PHP Coding Standards requirements, thanks to @rumperuu code contribution and refactoring.
- Bugfix: Forms: mitigate the adverse effect of clicking footnote referrers in labels of input elements by an optional, configurable scroll down delay.
- Bugfix: Scroll durations: mitigate the downside of delayed scrolling down by optionally enabling asymmetric scroll durations (e.g. fast down, slower up).
- Update: Scroll delays: add a setting to configure also a scroll up delay for completeness.
- Bugfix: Tooltips: Styling: protect padding against removal in surroundings with explicit zero padding.
- Bugfix: Tooltips: Display: CSS transitions: fix syntax error.
- Update: Documentation: help and support for contributors by the means of Contributing Guidelines in 'CONTRIBUTING.md', thanks to @rumperuu code contribution.
- Update: Documentation: additional readme in markdown format 'README.md' for use with the code repository on GitHub, thanks to @rumperuu code contribution.
- Update: Documentation: move 'customized-template-stack.txt' and 'customized-documentation-schema.txt' from the 'development/' folder to root.

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2500516 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
pewgeuges 2021-03-21 19:19:04 +00:00
parent c93e6ff28d
commit ce42420149
14 changed files with 60 additions and 58 deletions

View file

@ -130,7 +130,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
protected function get_meta_boxes() { protected function get_meta_boxes() {
$l_arr_meta_boxes = array(); $l_arr_meta_boxes = array();
$l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'amp-compat', __( 'AMP compatibility (draft status only; debugging not complete)', 'footnotes' ), 'amp_compat' ); $l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'amp-compat', __( 'AMP compatibility (draft; accessibility not yet debugged)', 'footnotes' ), 'amp_compat' );
$l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'start-end', __( 'Footnote start and end short codes', 'footnotes' ), 'start_end' ); $l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'start-end', __( 'Footnote start and end short codes', 'footnotes' ), 'start_end' );
$l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'numbering', __( 'Footnotes numbering', 'footnotes' ), 'Numbering' ); $l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'numbering', __( 'Footnotes numbering', 'footnotes' ), 'Numbering' );
$l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'scrolling', __( 'Scrolling behavior', 'footnotes' ), 'Scrolling' ); $l_arr_meta_boxes[] = $this->add_meta_box( 'settings', 'scrolling', __( 'Scrolling behavior', 'footnotes' ), 'Scrolling' );
@ -176,11 +176,13 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
// Replace all placeholders. // Replace all placeholders.
$l_obj_template->replace( $l_obj_template->replace(
array( array(
// Translators: '%s' is the link text 'AMP-WP' linked to the plugins front page on WordPress.org.
'description-1-amp' => sprintf( __( 'The official %s plugin is required when this option is enabled.', 'footnotes' ), '<span style="font-style: normal;"><a href="https://wordpress.org/plugins/amp/">AMP-WP</a></span>' ),
'label-amp' => $this->add_label( MCI_Footnotes_Settings::C_STR_FOOTNOTES_AMP_COMPATIBILITY_ENABLE, __( 'Enable AMP compatibility mode:', 'footnotes' ) ), 'label-amp' => $this->add_label( MCI_Footnotes_Settings::C_STR_FOOTNOTES_AMP_COMPATIBILITY_ENABLE, __( 'Enable AMP compatibility mode:', 'footnotes' ) ),
'amp' => $this->add_checkbox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_AMP_COMPATIBILITY_ENABLE ), 'amp' => $this->add_checkbox( MCI_Footnotes_Settings::C_STR_FOOTNOTES_AMP_COMPATIBILITY_ENABLE ),
'notice-amp' => __( 'This option enables hard links with configurable scroll offset in % window height.', 'footnotes' ), 'notice-amp' => __( 'This option enables hard links with configurable scroll offset in % window height.', 'footnotes' ),
// Translators: '%s' is the logogram of the 'Footnotes' plugin. // Translators: '%s' is the logogram of the 'Footnotes' plugin.
'description-amp' => sprintf( __( '%s shall become AMP compatible thanks to @milindmore22 and @westonruter code contributions.', 'footnotes' ), '<span style="font-style: normal;">' . MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME . '</span>' ), 'description-2-amp' => sprintf( __( '%s shall become AMP compatible thanks to @milindmore22 and @westonruter code contributions.', 'footnotes' ), '<span style="font-style: normal;">' . MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME . '</span>' ),
) )
); );
// Display template with replaced placeholders. // Display template with replaced placeholders.

View file

@ -666,7 +666,6 @@ class MCI_Footnotes_Settings {
* *
* @since 2.1.4 * @since 2.1.4
* @var str * @var str
* Set backlinks column max. width.
*/ */
const C_STR_BACKLINKS_COLUMN_MAX_WIDTH_ENABLED = 'footnotes_inputfield_backlinks_column_max_width_enabled'; const C_STR_BACKLINKS_COLUMN_MAX_WIDTH_ENABLED = 'footnotes_inputfield_backlinks_column_max_width_enabled';
@ -674,7 +673,7 @@ class MCI_Footnotes_Settings {
* Settings container key for the backlinks column max width scalar. * Settings container key for the backlinks column max width scalar.
* *
* @since 2.1.4 * @since 2.1.4
* @var str * @var int
*/ */
const C_INT_BACKLINKS_COLUMN_MAX_WIDTH_SCALAR = 'footnotes_inputfield_backlinks_column_max_width_scalar'; const C_INT_BACKLINKS_COLUMN_MAX_WIDTH_SCALAR = 'footnotes_inputfield_backlinks_column_max_width_scalar';
@ -712,7 +711,7 @@ class MCI_Footnotes_Settings {
* Settings container key for the scalar value of the tooltip font size. * Settings container key for the scalar value of the tooltip font size.
* *
* @since 2.1.4 * @since 2.1.4
* @var str * @var flo
*/ */
const C_FLO_MOUSE_OVER_BOX_FONT_SIZE_SCALAR = 'footnotes_inputfield_mouse_over_box_font_size_scalar'; const C_FLO_MOUSE_OVER_BOX_FONT_SIZE_SCALAR = 'footnotes_inputfield_mouse_over_box_font_size_scalar';
@ -741,6 +740,7 @@ class MCI_Footnotes_Settings {
* *
* @since 2.1.4 * @since 2.1.4
* @date 2020-12-05T0538+0100 * @date 2020-12-05T0538+0100
* @var int
*/ */
const C_INT_FOOTNOTES_SCROLL_OFFSET = 'footnotes_inputfield_scroll_offset'; const C_INT_FOOTNOTES_SCROLL_OFFSET = 'footnotes_inputfield_scroll_offset';
@ -751,6 +751,7 @@ class MCI_Footnotes_Settings {
* *
* @since 2.1.4 * @since 2.1.4
* @date 2020-12-05T0538+0100 * @date 2020-12-05T0538+0100
* @var int
*/ */
const C_INT_FOOTNOTES_SCROLL_DURATION = 'footnotes_inputfield_scroll_duration'; const C_INT_FOOTNOTES_SCROLL_DURATION = 'footnotes_inputfield_scroll_duration';
@ -759,6 +760,7 @@ class MCI_Footnotes_Settings {
* *
* @since 2.1.4 * @since 2.1.4
* @date 2020-12-05T0538+0100 * @date 2020-12-05T0538+0100
* @var int
* Called mouse over box not tooltip for consistency. * Called mouse over box not tooltip for consistency.
*/ */
const C_INT_MOUSE_OVER_BOX_FADE_IN_DELAY = 'footnotes_inputfield_mouse_over_box_fade_in_delay'; const C_INT_MOUSE_OVER_BOX_FADE_IN_DELAY = 'footnotes_inputfield_mouse_over_box_fade_in_delay';
@ -768,6 +770,7 @@ class MCI_Footnotes_Settings {
* *
* @since 2.1.4 * @since 2.1.4
* @date 2020-12-05T0538+0100 * @date 2020-12-05T0538+0100
* @var int
*/ */
const C_INT_MOUSE_OVER_BOX_FADE_IN_DURATION = 'footnotes_inputfield_mouse_over_box_fade_in_duration'; const C_INT_MOUSE_OVER_BOX_FADE_IN_DURATION = 'footnotes_inputfield_mouse_over_box_fade_in_duration';
@ -776,6 +779,7 @@ class MCI_Footnotes_Settings {
* *
* @since 2.1.4 * @since 2.1.4
* @date 2020-12-05T0538+0100 * @date 2020-12-05T0538+0100
* @var int
*/ */
const C_INT_MOUSE_OVER_BOX_FADE_OUT_DELAY = 'footnotes_inputfield_mouse_over_box_fade_out_delay'; const C_INT_MOUSE_OVER_BOX_FADE_OUT_DELAY = 'footnotes_inputfield_mouse_over_box_fade_out_delay';
@ -784,6 +788,7 @@ class MCI_Footnotes_Settings {
* *
* @since 2.1.4 * @since 2.1.4
* @date 2020-12-05T0538+0100 * @date 2020-12-05T0538+0100
* @var int
*/ */
const C_INT_MOUSE_OVER_BOX_FADE_OUT_DURATION = 'footnotes_inputfield_mouse_over_box_fade_out_duration'; const C_INT_MOUSE_OVER_BOX_FADE_OUT_DURATION = 'footnotes_inputfield_mouse_over_box_fade_out_duration';
@ -794,9 +799,8 @@ class MCI_Footnotes_Settings {
* Unicode-compliant browsers break URLs at slashes. * Unicode-compliant browsers break URLs at slashes.
* *
* @since 2.1.6 * @since 2.1.6
* @date 2020-12-09T1554+0100..2020-12-13T1313+0100
* @var str * @var str
*
* 2020-12-09T1554+0100..2020-12-13T1313+0100
*/ */
const C_STR_FOOTNOTE_URL_WRAP_ENABLED = 'footnote_inputfield_url_wrap_enabled'; const C_STR_FOOTNOTE_URL_WRAP_ENABLED = 'footnote_inputfield_url_wrap_enabled';
@ -804,9 +808,8 @@ class MCI_Footnotes_Settings {
* Settings container key for reference container position shortcode. * Settings container key for reference container position shortcode.
* *
* @since 2.2.0 * @since 2.2.0
* @date 2020-12-13T2056+0100
* @var str * @var str
*
* 2020-12-13T2056+0100
*/ */
const C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE = 'footnote_inputfield_reference_container_position_shortcode'; const C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE = 'footnote_inputfield_reference_container_position_shortcode';
@ -838,9 +841,9 @@ class MCI_Footnotes_Settings {
* Settings container key for alternative tooltip position. * Settings container key for alternative tooltip position.
* *
* @since 2.2.5 * @since 2.2.5
* @var int * @date 2020-12-17T0746+0100
* @var str
* *
* 2020-12-17T0746+0100
* Fixed width is for alternative tooltips, cannot reuse max-width nor offsets. * Fixed width is for alternative tooltips, cannot reuse max-width nor offsets.
*/ */
const C_STR_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_POSITION = 'footnotes_inputfield_alternative_mouse_over_box_position'; const C_STR_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_POSITION = 'footnotes_inputfield_alternative_mouse_over_box_position';
@ -849,9 +852,8 @@ class MCI_Footnotes_Settings {
* Settings container key for alternative tooltip x offset. * Settings container key for alternative tooltip x offset.
* *
* @since 2.2.5 * @since 2.2.5
* @date 2020-12-17T0746+0100
* @var int * @var int
*
* 2020-12-17T0746+0100
*/ */
const C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_X = 'footnotes_inputfield_alternative_mouse_over_box_offset_x'; const C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_X = 'footnotes_inputfield_alternative_mouse_over_box_offset_x';
@ -859,9 +861,8 @@ class MCI_Footnotes_Settings {
* Settings container key for alternative tooltip y offset. * Settings container key for alternative tooltip y offset.
* *
* @since 2.2.5 * @since 2.2.5
* @date 2020-12-17T0746+0100
* @var int * @var int
*
* 2020-12-17T0746+0100
*/ */
const C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_Y = 'footnotes_inputfield_alternative_mouse_over_box_offset_y'; const C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_Y = 'footnotes_inputfield_alternative_mouse_over_box_offset_y';
@ -869,9 +870,8 @@ class MCI_Footnotes_Settings {
* Settings container key for alternative tooltip width. * Settings container key for alternative tooltip width.
* *
* @since 2.2.5 * @since 2.2.5
* @date 2020-12-17T0746+0100
* @var int * @var int
*
* 2020-12-17T0746+0100
*/ */
const C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_WIDTH = 'footnotes_inputfield_alternative_mouse_over_box_width'; const C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_WIDTH = 'footnotes_inputfield_alternative_mouse_over_box_width';
@ -885,9 +885,8 @@ class MCI_Footnotes_Settings {
* @link https://wordpress.org/support/topic/how-do-i-eliminate-the-horizontal-line-beneath-the-reference-container-heading/ * @link https://wordpress.org/support/topic/how-do-i-eliminate-the-horizontal-line-beneath-the-reference-container-heading/
* *
* @since 2.2.5 * @since 2.2.5
* @var int * @date 2020-12-18T1509+0100
* * @var str
* 2020-12-18T1509+0100
*/ */
const C_STR_REFERENCE_CONTAINER_LABEL_ELEMENT = 'footnotes_inputfield_reference_container_label_element'; const C_STR_REFERENCE_CONTAINER_LABEL_ELEMENT = 'footnotes_inputfield_reference_container_label_element';
@ -901,7 +900,7 @@ class MCI_Footnotes_Settings {
* *
* @since 2.2.5 * @since 2.2.5
* @date 2020-12-18T1509+0100 * @date 2020-12-18T1509+0100
* @var int * @var str
*/ */
const C_STR_REFERENCE_CONTAINER_LABEL_BOTTOM_BORDER = 'footnotes_inputfield_reference_container_label_bottom_border'; const C_STR_REFERENCE_CONTAINER_LABEL_BOTTOM_BORDER = 'footnotes_inputfield_reference_container_label_bottom_border';
@ -951,9 +950,8 @@ class MCI_Footnotes_Settings {
* Settings container key to enable hard links. * Settings container key to enable hard links.
* *
* @since 2.3.0 * @since 2.3.0
* @date 2020-12-29T0914+0100
* @var str * @var str
*
* 2020-12-29T0914+0100
*/ */
const C_STR_FOOTNOTES_HARD_LINKS_ENABLE = 'footnotes_inputfield_hard_links_enable'; const C_STR_FOOTNOTES_HARD_LINKS_ENABLE = 'footnotes_inputfield_hard_links_enable';
@ -961,9 +959,8 @@ class MCI_Footnotes_Settings {
* Settings container key for hard link anchors in referrers and footnotes. * Settings container key for hard link anchors in referrers and footnotes.
* *
* @since 2.3.0 * @since 2.3.0
* @date 2020-12-29T0914+0100
* @var str * @var str
*
* 2020-12-29T0914+0100
*/ */
const C_STR_REFERRER_FRAGMENT_ID_SLUG = 'footnotes_inputfield_referrer_fragment_id_slug'; const C_STR_REFERRER_FRAGMENT_ID_SLUG = 'footnotes_inputfield_referrer_fragment_id_slug';
@ -971,9 +968,8 @@ class MCI_Footnotes_Settings {
* Settings container key for hard link anchors in referrers and footnotes. * Settings container key for hard link anchors in referrers and footnotes.
* *
* @since 2.3.0 * @since 2.3.0
* @date 2020-12-29T0914+0100
* @var str * @var str
*
* 2020-12-29T0914+0100
*/ */
const C_STR_FOOTNOTE_FRAGMENT_ID_SLUG = 'footnotes_inputfield_footnote_fragment_id_slug'; const C_STR_FOOTNOTE_FRAGMENT_ID_SLUG = 'footnotes_inputfield_footnote_fragment_id_slug';
@ -981,9 +977,8 @@ class MCI_Footnotes_Settings {
* Settings container key for hard link anchors in referrers and footnotes. * Settings container key for hard link anchors in referrers and footnotes.
* *
* @since 2.3.0 * @since 2.3.0
* @date 2020-12-29T0914+0100
* @var str * @var str
*
* 2020-12-29T0914+0100
*/ */
const C_STR_HARD_LINK_IDS_SEPARATOR = 'footnotes_inputfield_hard_link_ids_separator'; const C_STR_HARD_LINK_IDS_SEPARATOR = 'footnotes_inputfield_hard_link_ids_separator';
@ -992,7 +987,6 @@ class MCI_Footnotes_Settings {
* *
* @since 2.4.0 * @since 2.4.0
* @date 2021-01-01T0616+0100 * @date 2021-01-01T0616+0100
*
* @var str * @var str
*/ */
const C_STR_FOOTNOTE_SHORTCODE_SYNTAX_VALIDATION_ENABLE = 'footnotes_inputfield_shortcode_syntax_validation_enable'; const C_STR_FOOTNOTE_SHORTCODE_SYNTAX_VALIDATION_ENABLE = 'footnotes_inputfield_shortcode_syntax_validation_enable';
@ -1002,17 +996,16 @@ class MCI_Footnotes_Settings {
* *
* - Update: Reference container: Hard backlinks (optional): optional configurable tooltip hinting to use the backbutton instead, thanks to @theroninjedi47 bug report. * - Update: Reference container: Hard backlinks (optional): optional configurable tooltip hinting to use the backbutton instead, thanks to @theroninjedi47 bug report.
* *
* @since 2.5.4
*
* @reporter @theroninjedi47 * @reporter @theroninjedi47
* @link https://wordpress.org/support/topic/hyperlinked-footnotes-creating-excessive-back-history/ * @link https://wordpress.org/support/topic/hyperlinked-footnotes-creating-excessive-back-history/
* *
* @since 2.5.4
* @var str
*
* When hard links are enabled, clicks on the backlinks are logged in the browsing history, * When hard links are enabled, clicks on the backlinks are logged in the browsing history,
* along with clicks on the referrers. * along with clicks on the referrers.
* This tooltip hints to use the backbutton instead, so the history gets streamlined again. * This tooltip hints to use the backbutton instead, so the history gets streamlined again.
* @link https://wordpress.org/support/topic/making-it-amp-compatible/#post-13837359 * @link https://wordpress.org/support/topic/making-it-amp-compatible/#post-13837359
*
* @var str
*/ */
const C_STR_FOOTNOTES_BACKLINK_TOOLTIP_ENABLE = 'footnotes_inputfield_backlink_tooltip_enable'; const C_STR_FOOTNOTES_BACKLINK_TOOLTIP_ENABLE = 'footnotes_inputfield_backlink_tooltip_enable';
@ -1021,11 +1014,10 @@ class MCI_Footnotes_Settings {
* *
* - Update: Reference container: Hard backlinks (optional): optional configurable tooltip hinting to use the backbutton instead, thanks to @theroninjedi47 bug report. * - Update: Reference container: Hard backlinks (optional): optional configurable tooltip hinting to use the backbutton instead, thanks to @theroninjedi47 bug report.
* *
* @since 2.5.4
*
* @reporter @theroninjedi47 * @reporter @theroninjedi47
* @link https://wordpress.org/support/topic/hyperlinked-footnotes-creating-excessive-back-history/ * @link https://wordpress.org/support/topic/hyperlinked-footnotes-creating-excessive-back-history/
* *
* @since 2.5.4
* @var str * @var str
*/ */
const C_STR_FOOTNOTES_BACKLINK_TOOLTIP_TEXT = 'footnotes_inputfield_backlink_tooltip_text'; const C_STR_FOOTNOTES_BACKLINK_TOOLTIP_TEXT = 'footnotes_inputfield_backlink_tooltip_text';
@ -1038,17 +1030,16 @@ class MCI_Footnotes_Settings {
* The first implementation used a fixed shortcode provided in the changelog. * The first implementation used a fixed shortcode provided in the changelog.
* But Footnotes UI design policy is to make shortcodes freely configurable. * But Footnotes UI design policy is to make shortcodes freely configurable.
* *
* @since 2.5.4
*
* @reporter @jbj2199 * @reporter @jbj2199
* @link https://wordpress.org/support/topic/change-tooltip-text/ * @link https://wordpress.org/support/topic/change-tooltip-text/
* *
* @since 2.5.4
* @var str
*
* Tooltips can display another content than the footnote entry * Tooltips can display another content than the footnote entry
* in the reference container. The trigger is a shortcode in * in the reference container. The trigger is a shortcode in
* the footnote text separating the tooltip text from the note. * the footnote text separating the tooltip text from the note.
* That is consistent with what WordPress does for excerpts. * That is consistent with what WordPress does for excerpts.
*
* @var str
*/ */
const C_STR_FOOTNOTES_TOOLTIP_EXCERPT_DELIMITER = 'footnotes_inputfield_tooltip_excerpt_delimiter'; const C_STR_FOOTNOTES_TOOLTIP_EXCERPT_DELIMITER = 'footnotes_inputfield_tooltip_excerpt_delimiter';
@ -1079,11 +1070,10 @@ class MCI_Footnotes_Settings {
* *
* -Bugfix: Referrers: optional fixes to vertical alignment, font size and position (static) for in-theme consistency and cross-theme stability, thanks to @tomturowski bug report. * -Bugfix: Referrers: optional fixes to vertical alignment, font size and position (static) for in-theme consistency and cross-theme stability, thanks to @tomturowski bug report.
* *
* @since 2.5.4
*
* @reporter @tomturowski * @reporter @tomturowski
* @link https://wordpress.org/support/topic/in-line-superscript-ref-rides-to-high/ * @link https://wordpress.org/support/topic/in-line-superscript-ref-rides-to-high/
* *
* @since 2.5.4
* @var str * @var str
*/ */
const C_STR_FOOTNOTE_REFERRERS_NORMAL_SUPERSCRIPT = 'footnotes_inputfield_referrers_normal_superscript'; const C_STR_FOOTNOTE_REFERRERS_NORMAL_SUPERSCRIPT = 'footnotes_inputfield_referrers_normal_superscript';
@ -1093,11 +1083,10 @@ class MCI_Footnotes_Settings {
* *
* - Bugfix: Reference container: optional alternative expanding and collapsing without jQuery for use with hard links, thanks to @hopper87it @pkverma99 issue reports. * - Bugfix: Reference container: optional alternative expanding and collapsing without jQuery for use with hard links, thanks to @hopper87it @pkverma99 issue reports.
* *
* @since 2.5.6
*
* @reporter @hopper87it * @reporter @hopper87it
* @link https://wordpress.org/support/topic/footnotes-wp-rocket/ * @link https://wordpress.org/support/topic/footnotes-wp-rocket/
* *
* @since 2.5.6
* @var str * @var str
*/ */
const C_STR_FOOTNOTES_REFERENCE_CONTAINER_SCRIPT_MODE = 'footnotes_inputfield_reference_container_script_mode'; const C_STR_FOOTNOTES_REFERENCE_CONTAINER_SCRIPT_MODE = 'footnotes_inputfield_reference_container_script_mode';
@ -1109,8 +1098,6 @@ class MCI_Footnotes_Settings {
* - Bugfix: Tooltips: enable accessibility by keyboard navigation, thanks to @westonruter code contribution. * - Bugfix: Tooltips: enable accessibility by keyboard navigation, thanks to @westonruter code contribution.
* - Adding: Reference container: get expanding and collapsing to work also in AMP compatibility mode, thanks to @westonruter code contribution. * - Adding: Reference container: get expanding and collapsing to work also in AMP compatibility mode, thanks to @westonruter code contribution.
* *
* @since 2.5.11 (draft)
*
* @contributor @milindmore22 * @contributor @milindmore22
* @link @link https://github.com/ampproject/amp-wp/issues/5913#issuecomment-785306933 * @link @link https://github.com/ampproject/amp-wp/issues/5913#issuecomment-785306933
* *
@ -1119,6 +1106,7 @@ class MCI_Footnotes_Settings {
* @link https://github.com/markcheret/footnotes/issues/48#issuecomment-799580854 * @link https://github.com/markcheret/footnotes/issues/48#issuecomment-799580854
* @link https://github.com/markcheret/footnotes/issues/48#issuecomment-799582394 * @link https://github.com/markcheret/footnotes/issues/48#issuecomment-799582394
* *
* @since 2.5.11 (draft)
* @var str * @var str
*/ */
const C_STR_FOOTNOTES_AMP_COMPATIBILITY_ENABLE = 'footnotes_inputfield_amp_compatibility_enable'; const C_STR_FOOTNOTES_AMP_COMPATIBILITY_ENABLE = 'footnotes_inputfield_amp_compatibility_enable';

1
css/dev-amp-tooltips.min.css vendored Normal file
View file

@ -0,0 +1 @@
span.footnote_referrer>span.footnote_tooltip{visibility:hidden;opacity:0;transition-property:visibility,opacity}span.footnote_referrer:focus-within>span.footnote_tooltip,span.footnote_referrer:hover>span.footnote_tooltip{visibility:visible;opacity:1;transition-property:visibility,opacity}.footnote_referrer.relative{position:relative}.footnote_tooltip.position{display:unset;position:absolute}

1
css/dev-common.min.css vendored Normal file
View file

@ -0,0 +1 @@
.footnotes_validation_error{border:4px solid red;padding:20px 40px;margin:20px 0;background:#ff000055;text-align:start}.footnotes_validation_error p:first-child{font-size:20px;font-weight:700;text-align:center}.footnotes_validation_error p:nth-child(2){font-size:16px;font-style:italic}.footnotes_validation_error p:nth-child(3){font-size:14px;font-weight:700}.footnotes_validation_error p:last-child{font-size:12px}.footnote_url_wrap{word-wrap:anywhere;overflow-wrap:anywhere;word-break:break-all}.footnote_item_base,.footnote_referrer_base{position:absolute}.footnote_item_anchor,.footnote_referrer_anchor{position:relative}.footnote_plugin_tooltip_text,.footnote_plugin_tooltip_text:hover,.footnote_referrer,.footnote_referrer:hover,.footnote_referrer:link,.footnote_referrer>a,.footnote_referrer>a:hover,.footnote_referrer>a:link,.main-content .footnote_plugin_tooltip_text,.main-content .footnote_plugin_tooltip_text:hover,.main-content .footnote_referrer,.main-content .footnote_referrer:hover,.main-content .footnote_referrer:link,.main-content .footnote_referrer>a,.main-content .footnote_referrer>a:hover,.main-content .footnote_referrer>a:link{text-decoration:none!important;border-bottom:none!important;box-shadow:none!important}.footnote_plugin_tooltip_text{line-height:0;position:relative!important;cursor:pointer}.footnotes_reference_container{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.collapsed{display:none}.unfolded{display:inline}.footnote_container_prepare{display:block!important;padding-top:24px!important}.footnote_container_prepare>p{line-height:1.3!important;margin-top:1em!important;margin-bottom:.25em!important;padding:0!important;font-weight:400!important;display:block!important;-webkit-margin-before:.83em!important;-webkit-margin-after:.83em!important;-webkit-margin-start:0!important;-webkit-margin-end:0!important;text-align:start!important;vertical-align:middle}.footnote_container_prepare>p>span:first-child,.footnote_container_prepare>p>span:nth-child(3){text-align:start!important;font-size:1.5em!important}.footnote_reference_container_collapse_button{cursor:pointer;padding:0 .5em;font-size:1.3em!important;vertical-align:2px;text-decoration:none!important}h2>.footnote_reference_container_collapse_button,h3>.footnote_reference_container_collapse_button,h4>.footnote_reference_container_collapse_button,h5>.footnote_reference_container_collapse_button,h6>.footnote_reference_container_collapse_button{font-size:inherit!important}.footnote_container_prepare>p>span:last-child a,.footnote_reference_container_collapse_button a{text-decoration:none!important}.footnote-reference-container,.footnotes_table{width:100%;border:none}caption.accessibility{text-align:start;height:1px;width:1px;white-space:nowrap;overflow:hidden;color:#ffffff00}.footnote_plugin_index,.footnote_plugin_index_combi,.footnote_plugin_symbol,.footnote_plugin_text{border:none!important;text-align:start!important;vertical-align:top!important;padding:5px 6px 10px 0!important}html[dir=rtl] .footnote_plugin_index,html[dir=rtl] .footnote_plugin_index_combi,html[dir=rtl] .footnote_plugin_symbol,html[dir=rtl] .footnote_plugin_text{padding:5px 0 10px 6px!important}.footnote_backlink,.footnote_backlink:link,.footnote_plugin_link,.footnote_plugin_link:link,.main-content .footnote_backlink,.main-content .footnote_backlink:link,.main-content .footnote_plugin_link,.main-content .footnote_plugin_link:link{text-decoration:none!important;border-bottom:none!important}.footnote_backlink,.footnote_plugin_link{white-space:nowrap}.footnote_backlink,.footnote_index,.pointer{cursor:pointer}.footnote_backlink:hover,.footnote_plugin_link:hover,.footnote_plugin_text a:hover{text-decoration:unset;text-decoration:underline}.footnote_plugin_text{width:unset}.footnote_plugin_index,.footnote_plugin_index_combi{max-width:100px;width:2.5em}@media only screen and (max-width:768px){.footnote_plugin_index,.footnote_plugin_index_combi{max-width:80px}}.footnotes_reference_container{page-break-inside:avoid}@media print{.footnote_index_arrow,.footnote_reference_container_collapse_button,.footnote_tooltip{display:none}.footnote_plugin_tooltip_text{color:inherit}.footnote_plugin_index a,.footnote_plugin_index_combi a{color:inherit;text-decoration:none!important}div.post-meta-edit-link-wrapper{display:none}}.footnotes_logo,.footnotes_logo:hover{text-decoration:none;font-weight:400}.footnotes_logo_part1{color:#2bb975}.footnotes_logo_part2{color:#545f5a}

1
css/dev-layout-entry-content.min.css vendored Normal file
View file

@ -0,0 +1 @@
.entry .entry-content,.entry-content,.page-content,main .entry .entry-content{margin:0 auto}@media (max-width:575px){.entry .entry-content,.entry-content,.page-content,main .entry .entry-content{padding:0 10px}}@media (min-width:576px){.entry .entry-content,.entry-content,.page-content,main .entry .entry-content{max-width:500px}}@media (min-width:768px){.entry .entry-content,.entry-content,.page-content,main .entry .entry-content{max-width:600px}}@media (min-width:992px){.entry .entry-content,.entry-content,.page-content,main .entry .entry-content{max-width:800px}}@media (min-width:1200px){.entry .entry-content,.entry-content,.page-content,main .entry .entry-content{max-width:960px}}

1
css/dev-layout-main-content.min.css vendored Normal file
View file

@ -0,0 +1 @@
.main-content,.site-main,div.hentry,main{margin:0 auto}@media (max-width:575px){.main-content,.site-main,div.hentry,main{padding:0 10px}}@media (min-width:576px){.main-content,.site-main,div.hentry,main{max-width:500px}}@media (min-width:768px){.main-content,.site-main,div.hentry,main{max-width:600px}}@media (min-width:992px){.main-content,.site-main,div.hentry,main{max-width:800px}}@media (min-width:1200px){.main-content,.site-main,div.hentry,main{max-width:960px}}

View file

@ -0,0 +1 @@
.entry-content div.footnotes_reference_container,.entry-content>.footnotes_reference_container,main div.footnotes_reference_container{margin:0 auto}@media (max-width:575px){.entry-content div.footnotes_reference_container,.entry-content>.footnotes_reference_container,main div.footnotes_reference_container{padding:0 10px}}@media (min-width:576px){.entry-content div.footnotes_reference_container,.entry-content>.footnotes_reference_container,main div.footnotes_reference_container{max-width:500px}}@media (min-width:768px){.entry-content div.footnotes_reference_container,.entry-content>.footnotes_reference_container,main div.footnotes_reference_container{max-width:600px}}@media (min-width:992px){.entry-content div.footnotes_reference_container,.entry-content>.footnotes_reference_container,main div.footnotes_reference_container{max-width:800px}}@media (min-width:1200px){.entry-content div.footnotes_reference_container,.entry-content>.footnotes_reference_container,main div.footnotes_reference_container{max-width:960px}}

1
css/dev-tooltips-alternative.min.css vendored Normal file
View file

@ -0,0 +1 @@
.footnote_referrer.relative{position:relative}.footnote_tooltip.position{display:unset;position:absolute}.footnote_tooltip.shown{visibility:visible;opacity:1;transition-property:visibility,opacity;transition-timing-function:linear}.footnote_tooltip.hidden{visibility:hidden;opacity:0;transition-property:visibility,opacity;transition-timing-function:linear}

1
css/dev-tooltips.min.css vendored Normal file
View file

@ -0,0 +1 @@
.footnote_tooltip{display:none;z-index:2147483647!important;cursor:auto;text-align:start!important;padding:12px!important;line-height:1.2;font-weight:400;font-style:normal}.footnote_tooltip_continue{font-style:italic;color:green;text-decoration:none!important;cursor:pointer;white-space:nowrap}.footnote_tooltip_continue:hover{color:#00f;text-decoration:underline!important}

View file

@ -4,8 +4,8 @@
* Plugin URI: https://wordpress.org/plugins/footnotes/ * Plugin URI: https://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. * 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: Mark Cheret * Author: Mark Cheret
* Package V.: 2.5.11d7 * Package V.: 2.5.11
* Version: 2.5.11d * Version: 2.5.11
* CAUTION: THIS V. FIELD IS PARSED FOR UPDATE CONFIGURATION. * CAUTION: THIS V. FIELD IS PARSED FOR UPDATE CONFIGURATION.
* Author URI: https://cheret.org/footnotes/ * Author URI: https://cheret.org/footnotes/
* Text Domain: footnotes * Text Domain: footnotes
@ -24,9 +24,9 @@
* @since 2.1.4 * @since 2.1.4
* @since 2.5.3 (Hungarian) * @since 2.5.3 (Hungarian)
* @var str * @var str
* @lastmodified 2021-03-20T2000+0100 * @lastmodified 2021-03-21T2003+0100
*/ */
define( 'C_STR_PACKAGE_VERSION', '2.5.11d7' ); define( 'C_STR_PACKAGE_VERSION', '2.5.11' );
/** /**
* Version numbers in WordPress plugin readme.txt and main PHP headers. * Version numbers in WordPress plugin readme.txt and main PHP headers.

View file

@ -4,8 +4,8 @@ Tags: footnote, footnotes, bibliography, formatting, notes, Post, posts, referen
Requires at least: 3.9 Requires at least: 3.9
Tested up to: 5.7 Tested up to: 5.7
Requires PHP: 5.6 Requires PHP: 5.6
Package Version: 2.5.11d7 Package Version: 2.5.11
Version: 2.5.11d Version: 2.5.11
Stable Tag: 2.5.10 Stable Tag: 2.5.10
CAUTION: THE S. T. FIELD IS PARSED FOR RELEASE CONFIGURATION. CAUTION: THE S. T. FIELD IS PARSED FOR RELEASE CONFIGURATION.
License: GPLv3 or later License: GPLv3 or later

View file

@ -1,3 +1,6 @@
<div class="footnotes_description">
<p>[[description-1-amp]]</p>
</div>
<table class="settings_amp widefat fixed"> <table class="settings_amp widefat fixed">
<tbody> <tbody>
<tr> <tr>
@ -7,5 +10,5 @@
</tbody> </tbody>
</table> </table>
<div class="footnotes_description"> <div class="footnotes_description">
<p>[[description-amp]]</p> <p>[[description-2-amp]]</p>
</div> </div>

View file

@ -8,6 +8,7 @@
role="button" role="button"
tabindex="0" tabindex="0"
onclick="footnote_moveToReference_[[post_id]]_[[container_id]]('footnote_plugin_reference_[[post_id]]_[[container_id]]_[[note_id]]');" onclick="footnote_moveToReference_[[post_id]]_[[container_id]]('footnote_plugin_reference_[[post_id]]_[[container_id]]_[[note_id]]');"
onkeypress="footnote_moveToReference_[[post_id]]_[[container_id]]('footnote_plugin_reference_[[post_id]]_[[container_id]]_[[note_id]]');"
[[hard-link]] [[hard-link]]
><[[sup-span]] ><[[sup-span]]
id="footnote_plugin_tooltip_[[post_id]]_[[container_id]]_[[note_id]]" id="footnote_plugin_tooltip_[[post_id]]_[[container_id]]_[[note_id]]"

View file

@ -40,7 +40,6 @@
tabindex="0" tabindex="0"
class="footnote_reference_container_label pointer" class="footnote_reference_container_label pointer"
onclick="footnote_expand_collapse_reference_container_[[post_id]]_[[container_id]]();" onclick="footnote_expand_collapse_reference_container_[[post_id]]_[[container_id]]();"
onkeydown="footnote_expand_collapse_reference_container_[[post_id]]_[[container_id]]();"
>[[name]]</span >[[name]]</span
><span ><span
role="button" role="button"
@ -48,7 +47,6 @@
class="footnote_reference_container_collapse_button" class="footnote_reference_container_collapse_button"
style="[[button-style]]" style="[[button-style]]"
onclick="footnote_expand_collapse_reference_container_[[post_id]]_[[container_id]]();" onclick="footnote_expand_collapse_reference_container_[[post_id]]_[[container_id]]();"
onkeydown="footnote_expand_collapse_reference_container_[[post_id]]_[[container_id]]();"
>[<a >[<a
id="footnote_reference_container_collapse_button_[[post_id]]_[[container_id]]" id="footnote_reference_container_collapse_button_[[post_id]]_[[container_id]]"
>+</a >+</a
@ -88,6 +86,9 @@
} }
} }
function footnote_moveToReference_[[post_id]]_[[container_id]](p_str_TargetID) { function footnote_moveToReference_[[post_id]]_[[container_id]](p_str_TargetID) {
jQuery( 'span' ).click( function( event ) {
event.stopPropagation();
});
footnote_expand_reference_container_[[post_id]]_[[container_id]](); footnote_expand_reference_container_[[post_id]]_[[container_id]]();
var l_obj_Target = jQuery('#' + p_str_TargetID); var l_obj_Target = jQuery('#' + p_str_TargetID);
if (l_obj_Target.length) { if (l_obj_Target.length) {