$default_style
), $annie_attributes ) );
$hilight_text = ''. $annieText .'';
// Take care of any nested shortcodes
$hilight_text = do_shortcode($hilight_text);
return $hilight_text;
}
}
if (! function_exists('annie_footnote_shortcode')) {
// Keep track of how many footnotes we've added
$annie_footcount = 1;
$annie_footnoteText = array();
function annie_footnote_shortcode($annie_attributes, $annieText = '')
{
global $annie_footcount, $annie_footnoteText;
// Store the text in our array
$annie_footnoteText[$annie_footcount] = $annieText;
// No attributes for footnotes; just the text.
// Format the footnote reference
if (function_exists(tippy_formatLink) && get_option('annie_footnoteDisplay', 'link') == 'tooltip')
{
$annie_returnLink = tippy_formatLink("no", $annie_footcount, "#foot_text_". $annie_footcount, $annieText, "annie_footnoteRef annie_custom", "foot_tip_". $annie_footcount);
$annie_returnLink = str_replace(''. $annie_footcount .'';
}
$annie_footcount++;
return $annie_returnLink;
}
}
if (! function_exists('annie_add_footnotes')) {
// Put footnote items at the bottom of the content
function annie_add_footnotes($content)
{
global $annie_footnoteText;
if (sizeof($annie_footnoteText) > 0)
{
$footnoteHeader = get_option('annie_footnoteNotesHeader', 'Notes:');
$content .= '