diff --git a/css/footnote.css b/css/footnote.css index 5926758..0da2aa8 100755 --- a/css/footnote.css +++ b/css/footnote.css @@ -47,7 +47,7 @@ text-align: left !important; } -.footnote_container_prepare > p > span { +.footnote_container_prepare > p > span:first-child { padding-left: 20px !important; text-align: left !important; cursor: pointer; diff --git a/includes/replacer.php b/includes/replacer.php index 82d0240..18a58be 100644 --- a/includes/replacer.php +++ b/includes/replacer.php @@ -317,8 +317,18 @@ function footnotes_OutputReferenceContainer() /*get footnote counter style */ $l_str_CounterStyle = $g_arr_FootnotesSettings[FOOTNOTE_INPUTFIELD_COUNTER_STYLE]; + /* + * add expand/collapse buttons to the reference label if collapsed by default + * @since 1.2.2 + */ + $l_str_CollapseButtons = ""; + if ($l_bool_CollapseReference) { + $l_str_CollapseButtons = ' [ + ] ' . + ' [ - ]'; + } + /* output string, prepare it with the reference label as headline */ - $l_str_Output = '
' . $l_str_ReferencesLabel . '
' . $l_str_ReferencesLabel . '' .$l_str_CollapseButtons . '