From f536f582b7e137aa7e383921f478e4739452219a Mon Sep 17 00:00:00 2001 From: Aricura Date: Sun, 28 Sep 2014 11:23:09 +0000 Subject: [PATCH] - Update: Removed Table border from the reference container - Update: Set a max width to the first column of the reference container table (contains the footnote index) git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@997889 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- class/convert.php | 33 +++++++++++++++++++ class/dashboard/subpage-main.php | 4 +-- .../public/reference-container-body.html | 2 +- 3 files changed, 36 insertions(+), 3 deletions(-) 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]]