Your options have been updated.

'; } ?>

Annie Options


Annie Footnote Display Options
Should the footnote references be simple links or tooltips + links? (Tooltip requires Tippy)
/>
/>

What should be the header text for your footnotes at the bottom of the post:

Annie Highlighting Display Options
What should be the default highlighting style?
/>
/>
/>
/>
/>
/>
/>
/>
/>

To add a custom style, it needs to be called something like annie_hilight_yourstyle in your stylesheet and in the box above enter yourstyle. The style name in your stylesheet must begin with annie_hilight_ and in the box above only enter the part that comes after annie_hilight_. I.e., for a style called annie_hilight_yellow_red, you would put yellow_red above.


$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 .= '
'. $footnoteHeader .'
'; foreach ($annie_footnoteText as $footnoteIndex => $footnoteText) { $content .= "\n"; $content .= '
'. $footnoteIndex .'. '. $footnoteText; $content .= "\n"; } $content .= '
'; } return $content; } } if (! function_exists('annie_load_styles')) { function annie_load_styles() { wp_register_style('Annie', plugins_url() .'/annie/annie.css'); wp_enqueue_style('Annie'); } } if (! function_exists('annie_load_for_admin')) { function annie_load_for_admin() { echo ''; } } add_action('wp_print_styles', 'annie_load_styles'); add_shortcode( 'hi', 'annie_highlight_shortcode' ); add_shortcode( 'foot', 'annie_footnote_shortcode' ); add_filter( 'the_content', 'annie_add_footnotes', 20 ); add_action('admin_menu', 'annie_addoptions'); add_action('admin_head', 'annie_load_for_admin'); ?>