diff --git a/class/dashboard/subpage-main.php b/class/dashboard/subpage-main.php index 87e2591..398296c 100644 --- a/class/dashboard/subpage-main.php +++ b/class/dashboard/subpage-main.php @@ -130,7 +130,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { protected function get_meta_boxes() { $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', 'numbering', __( 'Footnotes numbering', 'footnotes' ), 'Numbering' ); $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. $l_obj_template->replace( array( - '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 ), - 'notice-amp' => __( 'This option enables hard links with configurable scroll offset in % window height.', 'footnotes' ), + // Translators: '%s' is the link text 'AMP-WP' linked to the plugin’s front page on WordPress.org. + 'description-1-amp' => sprintf( __( 'The official %s plugin is required when this option is enabled.', 'footnotes' ), 'AMP-WP' ), + '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 ), + 'notice-amp' => __( 'This option enables hard links with configurable scroll offset in % window height.', 'footnotes' ), // 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' ), '' . MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME . '' ), + 'description-2-amp' => sprintf( __( '%s shall become AMP compatible thanks to @milindmore22 and @westonruter code contributions.', 'footnotes' ), '' . MCI_Footnotes_Config::C_STR_PLUGIN_PUBLIC_NAME . '' ), ) ); // Display template with replaced placeholders. diff --git a/class/settings.php b/class/settings.php index dc501c9..330404e 100644 --- a/class/settings.php +++ b/class/settings.php @@ -666,7 +666,6 @@ class MCI_Footnotes_Settings { * * @since 2.1.4 * @var str - * Set backlinks column max. width. */ 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. * * @since 2.1.4 - * @var str + * @var int */ 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. * * @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'; @@ -741,6 +740,7 @@ class MCI_Footnotes_Settings { * * @since 2.1.4 * @date 2020-12-05T0538+0100 + * @var int */ const C_INT_FOOTNOTES_SCROLL_OFFSET = 'footnotes_inputfield_scroll_offset'; @@ -751,6 +751,7 @@ class MCI_Footnotes_Settings { * * @since 2.1.4 * @date 2020-12-05T0538+0100 + * @var int */ const C_INT_FOOTNOTES_SCROLL_DURATION = 'footnotes_inputfield_scroll_duration'; @@ -759,6 +760,7 @@ class MCI_Footnotes_Settings { * * @since 2.1.4 * @date 2020-12-05T0538+0100 + * @var int * 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'; @@ -768,6 +770,7 @@ class MCI_Footnotes_Settings { * * @since 2.1.4 * @date 2020-12-05T0538+0100 + * @var int */ 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 * @date 2020-12-05T0538+0100 + * @var int */ 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 * @date 2020-12-05T0538+0100 + * @var int */ 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. * * @since 2.1.6 + * @date 2020-12-09T1554+0100..2020-12-13T1313+0100 * @var str - * - * 2020-12-09T1554+0100..2020-12-13T1313+0100 */ 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. * * @since 2.2.0 + * @date 2020-12-13T2056+0100 * @var str - * - * 2020-12-13T2056+0100 */ 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. * * @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. */ 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. * * @since 2.2.5 + * @date 2020-12-17T0746+0100 * @var int - * - * 2020-12-17T0746+0100 */ 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. * * @since 2.2.5 + * @date 2020-12-17T0746+0100 * @var int - * - * 2020-12-17T0746+0100 */ 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. * * @since 2.2.5 + * @date 2020-12-17T0746+0100 * @var int - * - * 2020-12-17T0746+0100 */ 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/ * * @since 2.2.5 - * @var int - * - * 2020-12-18T1509+0100 + * @date 2020-12-18T1509+0100 + * @var str */ 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 * @date 2020-12-18T1509+0100 - * @var int + * @var str */ 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. * * @since 2.3.0 + * @date 2020-12-29T0914+0100 * @var str - * - * 2020-12-29T0914+0100 */ 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. * * @since 2.3.0 + * @date 2020-12-29T0914+0100 * @var str - * - * 2020-12-29T0914+0100 */ 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. * * @since 2.3.0 + * @date 2020-12-29T0914+0100 * @var str - * - * 2020-12-29T0914+0100 */ 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. * * @since 2.3.0 + * @date 2020-12-29T0914+0100 * @var str - * - * 2020-12-29T0914+0100 */ 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 * @date 2021-01-01T0616+0100 - * * @var str */ 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. * - * @since 2.5.4 - * * @reporter @theroninjedi47 * @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, * along with clicks on the referrers. * 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 - * - * @var str */ 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. * - * @since 2.5.4 - * * @reporter @theroninjedi47 * @link https://wordpress.org/support/topic/hyperlinked-footnotes-creating-excessive-back-history/ * + * @since 2.5.4 * @var str */ 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. * But Footnotes’ UI design policy is to make shortcodes freely configurable. * - * @since 2.5.4 - * * @reporter @jbj2199 * @link https://wordpress.org/support/topic/change-tooltip-text/ * + * @since 2.5.4 + * @var str + * * Tooltips can display another content than the footnote entry * in the reference container. The trigger is a shortcode in * the footnote text separating the tooltip text from the note. * That is consistent with what WordPress does for excerpts. - * - * @var str */ 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. * - * @since 2.5.4 - * * @reporter @tomturowski * @link https://wordpress.org/support/topic/in-line-superscript-ref-rides-to-high/ * + * @since 2.5.4 * @var str */ 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. * - * @since 2.5.6 - * * @reporter @hopper87it * @link https://wordpress.org/support/topic/footnotes-wp-rocket/ * + * @since 2.5.6 * @var str */ 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. * - 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 * @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-799582394 * + * @since 2.5.11 (draft) * @var str */ const C_STR_FOOTNOTES_AMP_COMPATIBILITY_ENABLE = 'footnotes_inputfield_amp_compatibility_enable'; diff --git a/css/dev-amp-tooltips.min.css b/css/dev-amp-tooltips.min.css new file mode 100644 index 0000000..99c325a --- /dev/null +++ b/css/dev-amp-tooltips.min.css @@ -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} \ No newline at end of file diff --git a/css/dev-common.min.css b/css/dev-common.min.css new file mode 100644 index 0000000..f194b6a --- /dev/null +++ b/css/dev-common.min.css @@ -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} \ No newline at end of file diff --git a/css/dev-layout-entry-content.min.css b/css/dev-layout-entry-content.min.css new file mode 100644 index 0000000..9e5fa53 --- /dev/null +++ b/css/dev-layout-entry-content.min.css @@ -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}} \ No newline at end of file diff --git a/css/dev-layout-main-content.min.css b/css/dev-layout-main-content.min.css new file mode 100644 index 0000000..685b9b1 --- /dev/null +++ b/css/dev-layout-main-content.min.css @@ -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}} \ No newline at end of file diff --git a/css/dev-layout-reference-container.min.css b/css/dev-layout-reference-container.min.css new file mode 100644 index 0000000..3ef4e31 --- /dev/null +++ b/css/dev-layout-reference-container.min.css @@ -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}} \ No newline at end of file diff --git a/css/dev-tooltips-alternative.min.css b/css/dev-tooltips-alternative.min.css new file mode 100644 index 0000000..f14f018 --- /dev/null +++ b/css/dev-tooltips-alternative.min.css @@ -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} \ No newline at end of file diff --git a/css/dev-tooltips.min.css b/css/dev-tooltips.min.css new file mode 100644 index 0000000..c7a951e --- /dev/null +++ b/css/dev-tooltips.min.css @@ -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} \ No newline at end of file diff --git a/footnotes.php b/footnotes.php index c86d6ff..ee9ea08 100755 --- a/footnotes.php +++ b/footnotes.php @@ -4,8 +4,8 @@ * 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. * Author: Mark Cheret - * Package V.: 2.5.11d7 - * Version: 2.5.11d + * Package V.: 2.5.11 + * Version: 2.5.11 * CAUTION: THIS V. FIELD IS PARSED FOR UPDATE CONFIGURATION. * Author URI: https://cheret.org/footnotes/ * Text Domain: footnotes @@ -24,9 +24,9 @@ * @since 2.1.4 * @since 2.5.3 (Hungarian) * @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. diff --git a/readme.txt b/readme.txt index db07e0e..e7bb9c2 100755 --- a/readme.txt +++ b/readme.txt @@ -4,8 +4,8 @@ Tags: footnote, footnotes, bibliography, formatting, notes, Post, posts, referen Requires at least: 3.9 Tested up to: 5.7 Requires PHP: 5.6 -Package Version: 2.5.11d7 -Version: 2.5.11d +Package Version: 2.5.11 +Version: 2.5.11 Stable Tag: 2.5.10 CAUTION: THE S. T. FIELD IS PARSED FOR RELEASE CONFIGURATION. License: GPLv3 or later diff --git a/templates/dashboard/settings-amp.html b/templates/dashboard/settings-amp.html index 8b6e150..552b291 100644 --- a/templates/dashboard/settings-amp.html +++ b/templates/dashboard/settings-amp.html @@ -1,3 +1,6 @@ +
+

[[description-1-amp]]

+
@@ -7,5 +10,5 @@
-

[[description-amp]]

+

[[description-2-amp]]

diff --git a/templates/public/footnote.html b/templates/public/footnote.html index 296ad9d..11306da 100755 --- a/templates/public/footnote.html +++ b/templates/public/footnote.html @@ -8,6 +8,7 @@ role="button" tabindex="0" 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]] ><[[sup-span]] id="footnote_plugin_tooltip_[[post_id]]_[[container_id]]_[[note_id]]" diff --git a/templates/public/reference-container.html b/templates/public/reference-container.html index abf0a8e..16b4240 100644 --- a/templates/public/reference-container.html +++ b/templates/public/reference-container.html @@ -40,7 +40,6 @@ tabindex="0" class="footnote_reference_container_label pointer" onclick="footnote_expand_collapse_reference_container_[[post_id]]_[[container_id]]();" - onkeydown="footnote_expand_collapse_reference_container_[[post_id]]_[[container_id]]();" >[[name]][+