diff --git a/class/convert.php b/class/convert.php index 97ed2e5..9d342f0 100644 --- a/class/convert.php +++ b/class/convert.php @@ -177,4 +177,37 @@ class MCI_Footnotes_Convert { // return a single arrow return $l_arr_Arrows[$p_int_Index]; } + + /** + * Displays a Variable. + * + * @author Stefan Herndler + * @since 1.5.0 + * @param mixed $p_mixed_Value + */ + public static function debug($p_mixed_Value) { + if (empty($p_mixed_Value)) { + var_dump($p_mixed_Value); + + } else if (is_array($p_mixed_Value)) { + printf("
");
+			print_r($p_mixed_Value);
+			printf("
"); + + } else if (is_object($p_mixed_Value)) { + printf("
");
+			print_r($p_mixed_Value);
+			printf("
"); + + } else if (is_numeric($p_mixed_Value) || is_int($p_mixed_Value)) { + echo $p_mixed_Value; + + } else if (is_date($p_mixed_Value)) { + echo $p_mixed_Value; + + } else { + echo $p_mixed_Value; + } + echo "
"; + } } \ No newline at end of file diff --git a/class/dashboard/subpage-main.php b/class/dashboard/subpage-main.php index c426233..88aa892 100644 --- a/class/dashboard/subpage-main.php +++ b/class/dashboard/subpage-main.php @@ -136,14 +136,14 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine { // options for the start of the footnotes short code $l_arr_ShortCodeStart = array( "((" => "((", - "" => htmlspecialchars(""), + htmlspecialchars("") => htmlspecialchars(""), "[ref]" => "[ref]", "userdefined" => __('user defined', MCI_Footnotes_Config::C_STR_PLUGIN_NAME) ); // options for the end of the footnotes short code $l_arr_ShortCodeEnd = array( "))" => "))", - "" => htmlspecialchars(""), + htmlspecialchars("") => htmlspecialchars(""), "[/ref]" => "[/ref]", "userdefined" => __('user defined', MCI_Footnotes_Config::C_STR_PLUGIN_NAME) ); diff --git a/templates/public/reference-container-body.html b/templates/public/reference-container-body.html index c82a747..f97b8ee 100755 --- a/templates/public/reference-container-body.html +++ b/templates/public/reference-container-body.html @@ -1,5 +1,5 @@ - [[index]]. + [[index]]. [[arrow]]