Development 2.6.0d2 finished so far.
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2497412 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
c5a9af037a
commit
f089e0446a
12 changed files with 44 additions and 32 deletions
|
@ -790,9 +790,6 @@ class MCI_Footnotes_Task {
|
|||
/*
|
||||
* Tooltips.
|
||||
*/
|
||||
MCI_Footnotes::$a_bool_tooltips_enabled = MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_ENABLED ) );
|
||||
MCI_Footnotes::$a_bool_alternative_tooltips_enabled = MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE ) );
|
||||
|
||||
if ( MCI_Footnotes::$a_bool_tooltips_enabled ) {
|
||||
echo '.footnote_tooltip {';
|
||||
|
||||
|
@ -876,7 +873,7 @@ class MCI_Footnotes_Task {
|
|||
* @since 2.2.5
|
||||
* @date 2020-12-18T1113+0100
|
||||
*/
|
||||
if ( ! MCI_Footnotes::$a_bool_alternative_tooltips_enabled ) {
|
||||
if ( ! MCI_Footnotes::$a_bool_alternative_tooltips_enabled && ! MCI_Footnotes::$a_bool_amp_enabled ) {
|
||||
/*
|
||||
* jQuery tooltips.
|
||||
*/
|
||||
|
@ -887,7 +884,7 @@ class MCI_Footnotes_Task {
|
|||
echo "}\r\n";
|
||||
} else {
|
||||
/*
|
||||
* Alternative tooltips.
|
||||
* AMP compatible and alternative tooltips.
|
||||
*/
|
||||
echo "}\r\n";
|
||||
|
||||
|
@ -919,18 +916,15 @@ class MCI_Footnotes_Task {
|
|||
|
||||
/**
|
||||
* AMP compatible and alternative tooltip timing.
|
||||
*
|
||||
*
|
||||
* @see dev-amp-tooltips.css or dev-tooltips-alternative.css.
|
||||
* For jQuery tooltip timing @see templates/public/tooltip.html.
|
||||
*/
|
||||
echo ' .footnote_tooltip.shown {';
|
||||
$l_int_fade_in_delay = intval( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DELAY ) );
|
||||
$l_int_fade_in_duration = intval( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DURATION ) );
|
||||
$l_int_fade_in_delay = ! empty( $l_int_fade_in_delay ) ? $l_int_fade_in_delay : '0';
|
||||
$l_int_fade_in_duration = ! empty( $l_int_fade_in_duration ) ? $l_int_fade_in_duration : '0';
|
||||
echo ' transition-delay: ' . $l_int_fade_in_delay . 'ms;';
|
||||
echo ' transition-duration: ' . $l_int_fade_in_duration . 'ms;';
|
||||
|
||||
echo '} .footnote_tooltip.hidden {';
|
||||
if ( MCI_Footnotes::$a_bool_amp_enabled ) {
|
||||
echo '} span.footnote_referrer > span.footnote_tooltip {';
|
||||
} else {
|
||||
echo '} .footnote_tooltip.hidden {';
|
||||
}
|
||||
$l_int_fade_out_delay = intval( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_OUT_DELAY ) );
|
||||
$l_int_fade_out_duration = intval( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_OUT_DURATION ) );
|
||||
$l_int_fade_out_delay = ! empty( $l_int_fade_out_delay ) ? $l_int_fade_out_delay : '0';
|
||||
|
@ -939,6 +933,18 @@ class MCI_Footnotes_Task {
|
|||
echo ' transition-duration: ' . $l_int_fade_out_duration . 'ms;';
|
||||
echo "}\r\n";
|
||||
|
||||
if ( MCI_Footnotes::$a_bool_amp_enabled ) {
|
||||
echo 'span.footnote_referrer:focus-within > span.footnote_tooltip, span.footnote_referrer:hover > span.footnote_tooltip {';
|
||||
} else {
|
||||
echo ' .footnote_tooltip.shown {';
|
||||
}
|
||||
$l_int_fade_in_delay = intval( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DELAY ) );
|
||||
$l_int_fade_in_duration = intval( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_INT_MOUSE_OVER_BOX_FADE_IN_DURATION ) );
|
||||
$l_int_fade_in_delay = ! empty( $l_int_fade_in_delay ) ? $l_int_fade_in_delay : '0';
|
||||
$l_int_fade_in_duration = ! empty( $l_int_fade_in_duration ) ? $l_int_fade_in_duration : '0';
|
||||
echo ' transition-delay: ' . $l_int_fade_in_delay . 'ms;';
|
||||
echo ' transition-duration: ' . $l_int_fade_in_duration . 'ms;';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue