the settings page to enter your Amazon Associate IDs. Version: 1.6 Author: Pete Williams Author URI: http://petewilliams.info */ /* Copyright 2009-2011 Pete Williams (email : plugins@petewilliams.info) 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ add_option( 'amzn_com' ); add_option( 'amzn_co_uk' ); add_option( 'amzn_de' ); add_option( 'amzn_fr' ); add_option( 'amzn_ca' ); add_option( 'amzn_jp' ); add_option( 'amzn_it' ); add_option( 'amzn_cn' ); add_action( 'admin_menu', 'amzn_admin_menu'); add_action( 'wp_head', 'amzn_add_js' ); /** * add MENU */ function amzn_admin_menu() { add_options_page('Amazon Affiliate IDs', 'Amazon Affiliate IDs', 8, 'amazon_affiliate_link_localiser', 'amzn_admin_options'); } /** * OPTIONS page */ function amzn_admin_options() { echo "
Affiliate IDs updated
"; } echo "Plugin by Pete Williams - Follow me on twitter
If you found this plugin useful, please consider donating just $1 so I can justify maintaining it!
"; } /** * generate required JAVASCRIPT */ function amzn_add_js() { // does not use wp_enqueue_script because we need to ensure linked scripts go above the embedded one echo " "; }