From 1c2afab4b3abeeba222ee302de753363796879c6 Mon Sep 17 00:00:00 2001 From: pewgeuges <73141620+pewgeuges@users.noreply.github.com> Date: Tue, 23 Feb 2021 20:56:06 +0100 Subject: [PATCH] Change variable names conventional class/init.php Name variables in an intuitive manner according to coding conventions. --- class/init.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/class/init.php b/class/init.php index 25be0ce..66bb141 100644 --- a/class/init.php +++ b/class/init.php @@ -315,15 +315,15 @@ class MCI_Footnotes { // Set tooltip mode for use in stylesheet name. if ( self::$a_bool_tooltips_enabled ) { if ( self::$a_bool_alternative_tooltips_enabled ) { - $l_str_tooltip_mode = 'al'; - $l_str_tcomplement = 'ternative-tooltips'; + $l_str_tooltip_mode_short = 'al'; + $l_str_tooltip_mode_rest = 'ternative-tooltips'; } else { - $l_str_tooltip_mode = 'jq'; - $l_str_tcomplement = 'uery-tooltips'; + $l_str_tooltip_mode_short = 'jq'; + $l_str_tooltip_mode_rest = 'uery-tooltips'; } } else { - $l_str_tooltip_mode = 'no'; - $l_str_tcomplement = '-tooltips'; + $l_str_tooltip_mode_short = 'no'; + $l_str_tooltip_mode_rest = '-tooltips'; } // Set basic responsive page layout mode for use in stylesheet name. @@ -346,9 +346,9 @@ class MCI_Footnotes { // Enqueue the tailored united minified stylesheet. wp_enqueue_style( - 'mci-footnotes-' . $l_str_tooltip_mode . $l_str_tcomplement . '-pagelayout-' . $l_str_page_layout_option, + 'mci-footnotes-' . $l_str_tooltip_mode_short . $l_str_tooltip_mode_rest . '-pagelayout-' . $l_str_page_layout_option, plugins_url( - MCI_Footnotes_Config::C_STR_PLUGIN_NAME . '/css/footnotes-' . $l_str_tooltip_mode . 'ttbrpl' . $l_str_layout_mode . '.min.css' + MCI_Footnotes_Config::C_STR_PLUGIN_NAME . '/css/footnotes-' . $l_str_tooltip_mode_short . 'ttbrpl' . $l_str_layout_mode . '.min.css' ), array(), C_STR_FOOTNOTES_VERSION,