chore: minor formatting fixes
This commit is contained in:
parent
de88bf6cce
commit
5fe2aa4235
6 changed files with 56 additions and 57 deletions
|
@ -198,7 +198,7 @@ abstract class MCI_Footnotes_Layout_Engine {
|
||||||
* - Bugfix: Stylesheets: minify to shrink the carbon footprint, increase speed and implement best practice, thanks to @docteurfitness issue report.
|
* - Bugfix: Stylesheets: minify to shrink the carbon footprint, increase speed and implement best practice, thanks to @docteurfitness issue report.
|
||||||
*
|
*
|
||||||
* @since 2.5.5
|
* @since 2.5.5
|
||||||
*
|
*
|
||||||
* @reporter @docteurfitness
|
* @reporter @docteurfitness
|
||||||
* @link https://wordpress.org/support/topic/simply-speed-optimisation/
|
* @link https://wordpress.org/support/topic/simply-speed-optimisation/
|
||||||
*
|
*
|
||||||
|
@ -528,8 +528,7 @@ abstract class MCI_Footnotes_Layout_Engine {
|
||||||
* @param bool $p_bool_deci true if 0.1 steps and floating to string, false if integer (default).
|
* @param bool $p_bool_deci true if 0.1 steps and floating to string, false if integer (default).
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* Edited:
|
* @since 2.1.4 step argument and number_format() to allow decimals.
|
||||||
* @since 2.1.4 step argument and number_format() to allow decimals..
|
|
||||||
*/
|
*/
|
||||||
protected function add_num_box( $p_str_setting_name, $p_in_min, $p_int_max, $p_bool_deci = false ) {
|
protected function add_num_box( $p_str_setting_name, $p_in_min, $p_int_max, $p_bool_deci = false ) {
|
||||||
// Collect data for given settings field.
|
// Collect data for given settings field.
|
||||||
|
|
|
@ -519,34 +519,34 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine {
|
||||||
$l_obj_template->replace(
|
$l_obj_template->replace(
|
||||||
array(
|
array(
|
||||||
|
|
||||||
'label-scroll-css' => $this->add_label( MCI_Footnotes_Settings::C_STR_FOOTNOTES_CSS_SMOOTH_SCROLLING, __( 'CSS-based smooth scrolling:', 'footnotes' ) ),
|
'label-scroll-css' => $this->add_label( MCI_Footnotes_Settings::C_STR_FOOTNOTES_CSS_SMOOTH_SCROLLING, __( 'CSS-based smooth scrolling:', 'footnotes' ) ),
|
||||||
'scroll-css' => $this->add_select_box( MCI_Footnotes_Settings::C_STR_FOOTNOTES_CSS_SMOOTH_SCROLLING, $l_arr_enable ),
|
'scroll-css' => $this->add_select_box( MCI_Footnotes_Settings::C_STR_FOOTNOTES_CSS_SMOOTH_SCROLLING, $l_arr_enable ),
|
||||||
'notice-scroll-css' => __( 'May slightly disturb jQuery scrolling and is therefore disabled by default. Works in recent browsers.', 'footnotes' ),
|
'notice-scroll-css' => __( 'May slightly disturb jQuery scrolling and is therefore disabled by default. Works in recent browsers.', 'footnotes' ),
|
||||||
|
|
||||||
'label-scroll-offset' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_OFFSET, __( 'Scroll offset:', 'footnotes' ) ),
|
'label-scroll-offset' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_OFFSET, __( 'Scroll offset:', 'footnotes' ) ),
|
||||||
'scroll-offset' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_OFFSET, 0, 100 ),
|
'scroll-offset' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_OFFSET, 0, 100 ),
|
||||||
'notice-scroll-offset' => __( 'per cent viewport height from the upper edge', 'footnotes' ),
|
'notice-scroll-offset' => __( 'per cent viewport height from the upper edge', 'footnotes' ),
|
||||||
|
|
||||||
'label-scroll-duration' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DURATION, __( 'Scroll duration:', 'footnotes' ) ),
|
'label-scroll-duration' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DURATION, __( 'Scroll duration:', 'footnotes' ) ),
|
||||||
'scroll-duration' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DURATION, 0, 20000 ),
|
'scroll-duration' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DURATION, 0, 20000 ),
|
||||||
'notice-scroll-duration' => __( 'milliseconds. If asymmetric scroll durations are enabled, this is the scroll-up duration.', 'footnotes' ),
|
'notice-scroll-duration' => __( 'milliseconds. If asymmetric scroll durations are enabled, this is the scroll-up duration.', 'footnotes' ),
|
||||||
|
|
||||||
// Enable scroll duration asymmetricity.
|
// Enable scroll duration asymmetricity.
|
||||||
'label-scroll-asymmetricity' => $this->add_label( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SCROLL_DURATION_ASYMMETRICITY, __( 'Enable asymmetric scroll durations:', 'footnotes' ) ),
|
'label-scroll-asymmetricity' => $this->add_label( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SCROLL_DURATION_ASYMMETRICITY, __( 'Enable asymmetric scroll durations:', 'footnotes' ) ),
|
||||||
'scroll-asymmetricity' => $this->add_select_box( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SCROLL_DURATION_ASYMMETRICITY, $l_arr_enable ),
|
'scroll-asymmetricity' => $this->add_select_box( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SCROLL_DURATION_ASYMMETRICITY, $l_arr_enable ),
|
||||||
'notice-scroll-asymmetricity' => __( 'With this option enabled, scrolling up may take longer than down, or conversely.', 'footnotes' ),
|
'notice-scroll-asymmetricity' => __( 'With this option enabled, scrolling up may take longer than down, or conversely.', 'footnotes' ),
|
||||||
|
|
||||||
'label-scroll-down-duration' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DURATION, __( 'Scroll-down duration:', 'footnotes' ) ),
|
'label-scroll-down-duration' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DURATION, __( 'Scroll-down duration:', 'footnotes' ) ),
|
||||||
'scroll-down-duration' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DURATION, 0, 20000 ),
|
'scroll-down-duration' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DURATION, 0, 20000 ),
|
||||||
'notice-scroll-down-duration' => __( 'milliseconds', 'footnotes' ),
|
'notice-scroll-down-duration' => __( 'milliseconds', 'footnotes' ),
|
||||||
|
|
||||||
'label-scroll-down-delay' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DELAY, __( 'Scroll-down delay:', 'footnotes' ) ),
|
'label-scroll-down-delay' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DELAY, __( 'Scroll-down delay:', 'footnotes' ) ),
|
||||||
'scroll-down-delay' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DELAY, 0, 20000 ),
|
'scroll-down-delay' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DELAY, 0, 20000 ),
|
||||||
'notice-scroll-down-delay' => __( 'milliseconds. Useful to see the effect on input elements when referrers without hard links are clicked in form labels.', 'footnotes' ),
|
'notice-scroll-down-delay' => __( 'milliseconds. Useful to see the effect on input elements when referrers without hard links are clicked in form labels.', 'footnotes' ),
|
||||||
|
|
||||||
'label-scroll-up-delay' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_UP_DELAY, __( 'Scroll-up delay:', 'footnotes' ) ),
|
'label-scroll-up-delay' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_UP_DELAY, __( 'Scroll-up delay:', 'footnotes' ) ),
|
||||||
'scroll-up-delay' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_UP_DELAY, 0, 20000 ),
|
'scroll-up-delay' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_UP_DELAY, 0, 20000 ),
|
||||||
'notice-scroll-up-delay' => __( 'milliseconds. Less useful than the scroll-down delay.', 'footnotes' ),
|
'notice-scroll-up-delay' => __( 'milliseconds. Less useful than the scroll-down delay.', 'footnotes' ),
|
||||||
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* @package footnotes
|
* @package footnotes
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
* @since 2.2.0 (TBD)
|
* @since 2.2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -264,11 +264,11 @@ class MCI_Footnotes {
|
||||||
* Add versioning.
|
* Add versioning.
|
||||||
*
|
*
|
||||||
* @since 2.1.2
|
* @since 2.1.2
|
||||||
*
|
*
|
||||||
* No '-js' in the handle, is appended automatically.
|
* No '-js' in the handle, is appended automatically.
|
||||||
*
|
*
|
||||||
* Deferring to the footer breaks jQuery tooltip display.
|
* Deferring to the footer breaks jQuery tooltip display.
|
||||||
*/
|
*/
|
||||||
wp_enqueue_script(
|
wp_enqueue_script(
|
||||||
'mci-footnotes-jquery-tools',
|
'mci-footnotes-jquery-tools',
|
||||||
plugins_url( 'footnotes/js/jquery.tools.min.js' ),
|
plugins_url( 'footnotes/js/jquery.tools.min.js' ),
|
||||||
|
@ -324,7 +324,7 @@ class MCI_Footnotes {
|
||||||
* Enables enqueuing a new-scheme stylesheet.
|
* Enables enqueuing a new-scheme stylesheet.
|
||||||
*
|
*
|
||||||
* @since 2.5.5
|
* @since 2.5.5
|
||||||
*
|
*
|
||||||
* Enables enqueuing the formatted individual stylesheets if false.
|
* Enables enqueuing the formatted individual stylesheets if false.
|
||||||
* WARNING: This facility is designed for development and must NOT be used in production.
|
* WARNING: This facility is designed for development and must NOT be used in production.
|
||||||
*
|
*
|
||||||
|
@ -340,7 +340,7 @@ class MCI_Footnotes {
|
||||||
* - Bugfix: Stylesheets: minify to shrink the carbon footprint, increase speed and implement best practice, thanks to @docteurfitness issue report.
|
* - Bugfix: Stylesheets: minify to shrink the carbon footprint, increase speed and implement best practice, thanks to @docteurfitness issue report.
|
||||||
*
|
*
|
||||||
* @since 2.5.5
|
* @since 2.5.5
|
||||||
*
|
*
|
||||||
* @contributor @docteurfitness
|
* @contributor @docteurfitness
|
||||||
* @link https://wordpress.org/support/topic/simply-speed-optimisation/
|
* @link https://wordpress.org/support/topic/simply-speed-optimisation/
|
||||||
*
|
*
|
||||||
|
@ -351,10 +351,10 @@ class MCI_Footnotes {
|
||||||
* @see class/dashboard/layout.php
|
* @see class/dashboard/layout.php
|
||||||
*
|
*
|
||||||
* @since 2.0.3 add versioning of public.css for cache busting.
|
* @since 2.0.3 add versioning of public.css for cache busting.
|
||||||
* Plugin version number is needed for busting browser caches after each plugin update.
|
* Plugin version number is needed for busting browser caches after each plugin update.
|
||||||
*
|
*
|
||||||
* @since 2.1.4 automate passing version number for cache busting.
|
* @since 2.1.4 automate passing version number for cache busting.
|
||||||
* The constant C_STR_PACKAGE_VERSION is defined at start of footnotes.php.
|
* The constant C_STR_PACKAGE_VERSION is defined at start of footnotes.php.
|
||||||
*
|
*
|
||||||
* The media scope argument 'all' is the default.
|
* The media scope argument 'all' is the default.
|
||||||
* No need to use '-css' in the handle, as this is appended automatically.
|
* No need to use '-css' in the handle, as this is appended automatically.
|
||||||
|
@ -415,7 +415,7 @@ class MCI_Footnotes {
|
||||||
* Enqueues external stylesheets, ONLY in development now.
|
* Enqueues external stylesheets, ONLY in development now.
|
||||||
*
|
*
|
||||||
* @since 2.1.4 optionally enqueue an extra stylesheet.
|
* @since 2.1.4 optionally enqueue an extra stylesheet.
|
||||||
*
|
*
|
||||||
* This optional layout fix is useful by lack of layout support.
|
* This optional layout fix is useful by lack of layout support.
|
||||||
*/
|
*/
|
||||||
wp_enqueue_style(
|
wp_enqueue_style(
|
||||||
|
|
|
@ -198,7 +198,7 @@ abstract class MCI_Footnotes_Layout_Engine {
|
||||||
* - Bugfix: Stylesheets: minify to shrink the carbon footprint, increase speed and implement best practice, thanks to @docteurfitness issue report.
|
* - Bugfix: Stylesheets: minify to shrink the carbon footprint, increase speed and implement best practice, thanks to @docteurfitness issue report.
|
||||||
*
|
*
|
||||||
* @since 2.5.5
|
* @since 2.5.5
|
||||||
*
|
*
|
||||||
* @reporter @docteurfitness
|
* @reporter @docteurfitness
|
||||||
* @link https://wordpress.org/support/topic/simply-speed-optimisation/
|
* @link https://wordpress.org/support/topic/simply-speed-optimisation/
|
||||||
*
|
*
|
||||||
|
@ -554,7 +554,7 @@ abstract class MCI_Footnotes_Layout_Engine {
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* Edited:
|
* Edited:
|
||||||
* @since 2.1.4 step argument and number_format() to allow decimals..
|
* @since 2.1.4 step argument and number_format() to allow decimals.
|
||||||
*/
|
*/
|
||||||
protected function add_num_box( $p_str_setting_name, $p_in_min, $p_int_max, $p_bool_deci = false ) {
|
protected function add_num_box( $p_str_setting_name, $p_in_min, $p_int_max, $p_bool_deci = false ) {
|
||||||
// Collect data for given settings field.
|
// Collect data for given settings field.
|
||||||
|
|
|
@ -457,7 +457,7 @@ class MCI_Footnotes_Task {
|
||||||
* @link https://wordpress.org/support/topic/footnote-doesntwork-on-category-page/#post-13864859
|
* @link https://wordpress.org/support/topic/footnote-doesntwork-on-category-page/#post-13864859
|
||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*
|
*
|
||||||
* Category pages can have rich HTML content in a term description with article status.
|
* Category pages can have rich HTML content in a term description with article status.
|
||||||
* For this to happen, WordPress’ built-in partial HTML blocker needs to be disabled.
|
* For this to happen, WordPress’ built-in partial HTML blocker needs to be disabled.
|
||||||
* @link https://docs.woocommerce.com/document/allow-html-in-term-category-tag-descriptions/
|
* @link https://docs.woocommerce.com/document/allow-html-in-term-category-tag-descriptions/
|
||||||
|
@ -473,7 +473,7 @@ class MCI_Footnotes_Task {
|
||||||
* @link https://wordpress.org/support/topic/footnotes-use-in-popup-maker/
|
* @link https://wordpress.org/support/topic/footnotes-use-in-popup-maker/
|
||||||
*
|
*
|
||||||
* @since 2.5.1
|
* @since 2.5.1
|
||||||
*/
|
*/
|
||||||
add_filter( 'pum_popup_content', array( $this, 'footnotes_in_content' ), $l_int_the_content_priority );
|
add_filter( 'pum_popup_content', array( $this, 'footnotes_in_content' ), $l_int_the_content_priority );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -548,7 +548,7 @@ class MCI_Footnotes_Task {
|
||||||
* - UPDATE: Hooks: remove 'the_post', the plugin stops supporting this hook.
|
* - UPDATE: Hooks: remove 'the_post', the plugin stops supporting this hook.
|
||||||
*
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
* @accountable @pewgeuges
|
* @accountable @pewgeuges
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Reset stored footnotes when displaying the header.
|
// Reset stored footnotes when displaying the header.
|
||||||
|
@ -603,7 +603,7 @@ class MCI_Footnotes_Task {
|
||||||
* @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
|
* @since 2.5.4
|
||||||
*
|
*
|
||||||
* Cannot be included in external stylesheet, as it is only optional.
|
* Cannot be included in external stylesheet, as it is only optional.
|
||||||
* The scope is variable too: referrers only, or all superscript elements.
|
* The scope is variable too: referrers only, or all superscript elements.
|
||||||
*/
|
*/
|
||||||
|
@ -676,7 +676,7 @@ class MCI_Footnotes_Task {
|
||||||
* @link https://wordpress.org/support/topic/borders-25/
|
* @link https://wordpress.org/support/topic/borders-25/
|
||||||
*
|
*
|
||||||
* @since 2.2.10
|
* @since 2.2.10
|
||||||
* Moving this internal CSS to external using `wp_add_inline_style()` is
|
* Moving this internal CSS to external using `wp_add_inline_style()` is
|
||||||
* discouraged, because that screws up support, and it is pointless from
|
* discouraged, because that screws up support, and it is pointless from
|
||||||
* a performance point of view. Moreover, that would cause cache busting
|
* a performance point of view. Moreover, that would cause cache busting
|
||||||
* issues as browsers won’t reload these style sheets after settings are
|
* issues as browsers won’t reload these style sheets after settings are
|
||||||
|
@ -771,7 +771,7 @@ class MCI_Footnotes_Task {
|
||||||
* - Bugfix: Styling: Tooltips: fix font size issue by adding font size to settings with legacy as default.
|
* - Bugfix: Styling: Tooltips: fix font size issue by adding font size to settings with legacy as default.
|
||||||
*
|
*
|
||||||
* @since 2.1.4
|
* @since 2.1.4
|
||||||
*/
|
*/
|
||||||
echo ' font-size: ';
|
echo ' font-size: ';
|
||||||
if ( MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_MOUSE_OVER_BOX_FONT_SIZE_ENABLED ) ) ) {
|
if ( MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_MOUSE_OVER_BOX_FONT_SIZE_ENABLED ) ) ) {
|
||||||
echo MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_FLO_MOUSE_OVER_BOX_FONT_SIZE_SCALAR );
|
echo MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_FLO_MOUSE_OVER_BOX_FONT_SIZE_SCALAR );
|
||||||
|
@ -837,11 +837,11 @@ class MCI_Footnotes_Task {
|
||||||
* - Bugfix: Tooltips: make display delays and fade durations configurable to conform to website style.
|
* - Bugfix: Tooltips: make display delays and fade durations configurable to conform to website style.
|
||||||
*
|
*
|
||||||
* @since 2.1.4
|
* @since 2.1.4
|
||||||
*
|
*
|
||||||
* - Update: Tooltips: Alternative tooltips: connect to position/timing settings (for themes not supporting jQuery tooltips).
|
* - Update: Tooltips: Alternative tooltips: connect to position/timing settings (for themes not supporting jQuery tooltips).
|
||||||
*
|
*
|
||||||
* @since 2.2.5
|
* @since 2.2.5
|
||||||
*/
|
*/
|
||||||
if ( ! MCI_Footnotes::$a_bool_alternative_tooltips_enabled && ! MCI_Footnotes::$a_bool_amp_enabled ) {
|
if ( ! MCI_Footnotes::$a_bool_alternative_tooltips_enabled && ! MCI_Footnotes::$a_bool_amp_enabled ) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -934,7 +934,7 @@ class MCI_Footnotes_Task {
|
||||||
* Alternative tooltips.
|
* Alternative tooltips.
|
||||||
*
|
*
|
||||||
* To streamline internal CSS, immutable rules are in external stylesheet.
|
* To streamline internal CSS, immutable rules are in external stylesheet.
|
||||||
*
|
*
|
||||||
* @see dev-tooltips-alternative.css.
|
* @see dev-tooltips-alternative.css.
|
||||||
*/
|
*/
|
||||||
} else {
|
} else {
|
||||||
|
@ -958,7 +958,7 @@ class MCI_Footnotes_Task {
|
||||||
* - Bugfix: Custom CSS: insert new CSS in the public page header element after existing CSS.
|
* - Bugfix: Custom CSS: insert new CSS in the public page header element after existing CSS.
|
||||||
*
|
*
|
||||||
* @since 2.2.3
|
* @since 2.2.3
|
||||||
*
|
*
|
||||||
* Set custom CSS to override settings, not conversely.
|
* Set custom CSS to override settings, not conversely.
|
||||||
* Legacy Custom CSS is used until it’s set to disappear after dashboard tab migration.
|
* Legacy Custom CSS is used until it’s set to disappear after dashboard tab migration.
|
||||||
*/
|
*/
|
||||||
|
@ -1333,14 +1333,14 @@ class MCI_Footnotes_Task {
|
||||||
* @link https://wordpress.org/support/topic/reference-container-in-elementor/
|
* @link https://wordpress.org/support/topic/reference-container-in-elementor/
|
||||||
*
|
*
|
||||||
* @since 2.2.0
|
* @since 2.2.0
|
||||||
*
|
*
|
||||||
* - Bugfix: Reference container: delete position shortcode if unused because position may be widget or footer, thanks to @hamshe bug report.
|
* - Bugfix: Reference container: delete position shortcode if unused because position may be widget or footer, thanks to @hamshe bug report.
|
||||||
*
|
*
|
||||||
* @reporter @hamshe
|
* @reporter @hamshe
|
||||||
* @link https://wordpress.org/support/topic/reference-container-in-elementor/#post-13784126
|
* @link https://wordpress.org/support/topic/reference-container-in-elementor/#post-13784126
|
||||||
*
|
*
|
||||||
* @since 2.2.5
|
* @since 2.2.5
|
||||||
*/
|
*/
|
||||||
// Append the reference container or insert at shortcode.
|
// Append the reference container or insert at shortcode.
|
||||||
$l_str_reference_container_position_shortcode = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE );
|
$l_str_reference_container_position_shortcode = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE );
|
||||||
if ( empty( $l_str_reference_container_position_shortcode ) ) {
|
if ( empty( $l_str_reference_container_position_shortcode ) ) {
|
||||||
|
@ -1498,7 +1498,7 @@ class MCI_Footnotes_Task {
|
||||||
* @link https://wordpress.org/support/topic/warning-unbalanced-footnote-start-tag-short-code-before/
|
* @link https://wordpress.org/support/topic/warning-unbalanced-footnote-start-tag-short-code-before/
|
||||||
*
|
*
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
* If footnotes short codes are unbalanced, and syntax validation is not disabled,
|
* If footnotes short codes are unbalanced, and syntax validation is not disabled,
|
||||||
* prepend a warning to the content; displays de facto beneath the post title.
|
* prepend a warning to the content; displays de facto beneath the post title.
|
||||||
*/
|
*/
|
||||||
// If enabled.
|
// If enabled.
|
||||||
|
@ -1895,7 +1895,7 @@ class MCI_Footnotes_Task {
|
||||||
* @link https://wordpress.org/support/topic/offset-x-axis-and-offset-y-axis-does-not-working/
|
* @link https://wordpress.org/support/topic/offset-x-axis-and-offset-y-axis-does-not-working/
|
||||||
*
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
* If the tooltip truncation option is enabled, it’s done based on character count,
|
* If the tooltip truncation option is enabled, it’s done based on character count,
|
||||||
* and a trailing incomplete word is cropped.
|
* and a trailing incomplete word is cropped.
|
||||||
* This is equivalent to the WordPress default excerpt generation, i.e. without a
|
* This is equivalent to the WordPress default excerpt generation, i.e. without a
|
||||||
* custom excerpt and without a delimiter. But WordPress does word count, usually 55.
|
* custom excerpt and without a delimiter. But WordPress does word count, usually 55.
|
||||||
|
@ -1955,7 +1955,7 @@ class MCI_Footnotes_Task {
|
||||||
* @link https://wordpress.org/support/topic/offset-x-axis-and-offset-y-axis-does-not-working/
|
* @link https://wordpress.org/support/topic/offset-x-axis-and-offset-y-axis-does-not-working/
|
||||||
*
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
*/
|
*/
|
||||||
$l_str_excerpt_text .= MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_TOOLTIP_READON_LABEL );
|
$l_str_excerpt_text .= MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_TOOLTIP_READON_LABEL );
|
||||||
|
|
||||||
$l_str_excerpt_text .= self::$a_bool_hard_links_enabled ? '</a>' : '</span>';
|
$l_str_excerpt_text .= self::$a_bool_hard_links_enabled ? '</a>' : '</span>';
|
||||||
|
@ -2017,7 +2017,7 @@ class MCI_Footnotes_Task {
|
||||||
* @link https://wordpress.org/support/topic/wp_debug-php-notice/
|
* @link https://wordpress.org/support/topic/wp_debug-php-notice/
|
||||||
*
|
*
|
||||||
* @since 2.4.0
|
* @since 2.4.0
|
||||||
* If no hyperlink nor offset anchor is needed, initialize as empty.
|
* If no hyperlink nor offset anchor is needed, initialize as empty.
|
||||||
*/
|
*/
|
||||||
$l_str_footnote_link_argument = '';
|
$l_str_footnote_link_argument = '';
|
||||||
$l_str_referrer_anchor_element = '';
|
$l_str_referrer_anchor_element = '';
|
||||||
|
@ -2228,7 +2228,7 @@ class MCI_Footnotes_Task {
|
||||||
* @link https://wordpress.org/support/topic/update-2-1-3/#post-13704194
|
* @link https://wordpress.org/support/topic/update-2-1-3/#post-13704194
|
||||||
*
|
*
|
||||||
* @since 2.1.4
|
* @since 2.1.4
|
||||||
* Initially an appended comma was hard-coded in this algorithm for enumerations.
|
* Initially an appended comma was hard-coded in this algorithm for enumerations.
|
||||||
* The comma in enumerations is not universally preferred.
|
* The comma in enumerations is not universally preferred.
|
||||||
*/
|
*/
|
||||||
if ( MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_BACKLINKS_SEPARATOR_ENABLED ) ) ) {
|
if ( MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_BACKLINKS_SEPARATOR_ENABLED ) ) ) {
|
||||||
|
@ -2298,7 +2298,7 @@ class MCI_Footnotes_Task {
|
||||||
* - Bugfix: Reference container: Backlinks: fix stacked enumerations by adding optional line breaks.
|
* - Bugfix: Reference container: Backlinks: fix stacked enumerations by adding optional line breaks.
|
||||||
*
|
*
|
||||||
* @since 2.1.4
|
* @since 2.1.4
|
||||||
*
|
*
|
||||||
* The backlinks of combined footnotes are generally preferred in an enumeration.
|
* The backlinks of combined footnotes are generally preferred in an enumeration.
|
||||||
* But when few footnotes are identical, stacking the items in list form is better.
|
* But when few footnotes are identical, stacking the items in list form is better.
|
||||||
* Variable number length and proportional character width require explicit line breaks.
|
* Variable number length and proportional character width require explicit line breaks.
|
||||||
|
@ -2321,7 +2321,7 @@ class MCI_Footnotes_Task {
|
||||||
* - Bugfix: Reference container: option to restore pre-2.0.0 layout with the backlink symbol in an extra column.
|
* - Bugfix: Reference container: option to restore pre-2.0.0 layout with the backlink symbol in an extra column.
|
||||||
*
|
*
|
||||||
* @since 2.1.1
|
* @since 2.1.1
|
||||||
*/
|
*/
|
||||||
$l_bool_combine_identical_footnotes = MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_COMBINE_IDENTICAL_FOOTNOTES ) );
|
$l_bool_combine_identical_footnotes = MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_COMBINE_IDENTICAL_FOOTNOTES ) );
|
||||||
|
|
||||||
// AMP compatibility requires a full set of AMP compatible table row templates.
|
// AMP compatibility requires a full set of AMP compatible table row templates.
|
||||||
|
@ -2389,7 +2389,7 @@ class MCI_Footnotes_Task {
|
||||||
* - Bugfix: Reference container: option to append symbol (prepended by default), thanks to @spaceling code contribution.
|
* - Bugfix: Reference container: option to append symbol (prepended by default), thanks to @spaceling code contribution.
|
||||||
*
|
*
|
||||||
* @since 2.1.1
|
* @since 2.1.1
|
||||||
*
|
*
|
||||||
* @contributor @spaceling
|
* @contributor @spaceling
|
||||||
* @link https://wordpress.org/support/topic/change-the-position-5/#post-13615994
|
* @link https://wordpress.org/support/topic/change-the-position-5/#post-13615994
|
||||||
*
|
*
|
||||||
|
@ -2397,7 +2397,7 @@ class MCI_Footnotes_Task {
|
||||||
* - Bugfix: Reference container: Backlink symbol: support for appending when combining identicals is on.
|
* - Bugfix: Reference container: Backlink symbol: support for appending when combining identicals is on.
|
||||||
*
|
*
|
||||||
* @since 2.1.4
|
* @since 2.1.4
|
||||||
*/
|
*/
|
||||||
$l_bool_symbol_switch = MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH ) );
|
$l_bool_symbol_switch = MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH ) );
|
||||||
|
|
||||||
// Loop through all footnotes found in the page.
|
// Loop through all footnotes found in the page.
|
||||||
|
@ -2486,7 +2486,7 @@ class MCI_Footnotes_Task {
|
||||||
* @link https://wordpress.org/support/topic/custom-css-for-jumbled-references/
|
* @link https://wordpress.org/support/topic/custom-css-for-jumbled-references/
|
||||||
*
|
*
|
||||||
* @since 2.1.1
|
* @since 2.1.1
|
||||||
* Prepare to have single footnotes, where the click event and
|
* Prepare to have single footnotes, where the click event and
|
||||||
* optional hard link need to be set to cover the table cell,
|
* optional hard link need to be set to cover the table cell,
|
||||||
* for better usability and UX.
|
* for better usability and UX.
|
||||||
*/
|
*/
|
||||||
|
@ -2701,7 +2701,7 @@ class MCI_Footnotes_Task {
|
||||||
* @reporter @lukashuggenberg
|
* @reporter @lukashuggenberg
|
||||||
*
|
*
|
||||||
* @since 2.4.0
|
* @since 2.4.0
|
||||||
* Themes may drop-cap a first letter of initial paragraphs, like this label.
|
* Themes may drop-cap a first letter of initial paragraphs, like this label.
|
||||||
* In case of empty label that would apply to the left half button character.
|
* In case of empty label that would apply to the left half button character.
|
||||||
* Hence the point in setting an empty label to U+202F NARROW NO-BREAK SPACE.
|
* Hence the point in setting an empty label to U+202F NARROW NO-BREAK SPACE.
|
||||||
*/
|
*/
|
||||||
|
|
Reference in a new issue