- 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
This commit is contained in:
Aricura 2014-09-28 11:23:09 +00:00
parent cac292a85a
commit f536f582b7
3 changed files with 36 additions and 3 deletions

View file

@ -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("<pre>");
print_r($p_mixed_Value);
printf("</pre>");
} else if (is_object($p_mixed_Value)) {
printf("<pre>");
print_r($p_mixed_Value);
printf("</pre>");
} 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 "<br/>";
}
}

View file

@ -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(
"((" => "((",
"<fn>" => htmlspecialchars("<fn>"),
htmlspecialchars("<fn>") => htmlspecialchars("<fn>"),
"[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(
"))" => "))",
"</fn>" => htmlspecialchars("</fn>"),
htmlspecialchars("</fn>") => htmlspecialchars("</fn>"),
"[/ref]" => "[/ref]",
"userdefined" => __('user defined', MCI_Footnotes_Config::C_STR_PLUGIN_NAME)
);

View file

@ -1,5 +1,5 @@
<tr>
<td>[[index]].</td>
<td style="border:none !important; max-width:10% !important;">[[index]].</td>
<td><a class="footnote_plugin_link" href="#footnote_plugin_tooltip_[[index-int]]"
name="footnote_plugin_reference_[[index-int]]"
id="footnote_plugin_reference_[[index-int]]">[[arrow]]</a></td>