Twitter Bird Plugin / Support Page Author: gCodeLabs Version: 1.0 Author URI: http://profiles.wordpress.org/gcodelabs/ Donate URI: http://www.gcodelabs.com/wp-plugin-fly-twitter-on-site.php */ /* Copyright 2012 gCodeLabs (email : admin@gcodelabs.com) 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 */ function addTwiiterJs() { if ( !is_admin() ) { echo(" "); } } function animated_menu() { add_options_page('Twitter Bird Options', 'Fly Twitter', 8, 'FlyTwitter', 'animated_options_page'); } function animated_options_page() { echo '
'; echo '

Fly Twitter Bird ' . __('Options', 'animated') . '

'; echo '
'; wp_nonce_field('update-options'); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
' . __('Twitter account', 'animated') . '
' . __('Display your Latest Tweet on Bird?', 'ATB') . ' ' . __('Yes', 'animated') . ' ' . __('No', 'animated') . '
'; echo '

'; echo ''; echo '

'; settings_fields('AnimatedTwitterBird'); echo '
'; echo '
'; addTwiiterJs(); } function animated_register_settings() { register_setting('AnimatedTwitterBird', 'animated_account'); register_setting('AnimatedTwitterBird', 'animated_tweet'); } $plugin_dir = basename(dirname(__FILE__)); add_option("animated_account"); add_option("animated_tweet", "false"); add_action('wp_footer', 'addTwiiterJs'); if(is_admin()){ add_action('admin_menu', 'animated_menu'); add_action('admin_init', 'animated_register_settings'); } ?>