<?php
/*
Plugin Name: Shoehorn
Plugin URI: http://sonicchicken.net/shoehorn/
Description: A plugin that adds text, html, whatever, to a page's footer.
Author: Jim Vanderveen
Version: 0.1.1
Author URI: http://sonicchicken.net/blog/
*/

/*  Copyright 2005 by Jim Vanderveen  (email : jim@sonicchicken.net)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

// I still need to add an Options menu for the footer text, but this'll do for quick-and-dirty.
define("MY_FOOTER_TEXT",
'
This text brought to you by Shoehorn!
Replace these lines with the text you would like to appear in the footer.
'
);

update_option('jrv_shoehorn_text'MY_FOOTER_TEXT'The text to be inserted before the BODY closing tag.' );
add_action('wp_footer''jrv_shoehorn_insert');


function 
jrv_shoehorn_insert()
{
    echo 
get_option('jrv_shoehorn_text');
}
?>