'', 'top'=>'200', 'align'=>'right', 'followmsg'=>'Follow Me', 'icon'=>$iconu, 'color'=>'59B7FF', 'iconbgcolor'=>'FFFFFF', 'textcolor'=>'FFFFFF', 'textsize'=>'14', 'textfont'=>'Verdana' ); $wp_followme = $wp_followme_opts1 + $wp_followme_opts2; add_option('wp_followme_options',$wp_followme); } } global $wp_followme_nett; $wp_followme_nett = array( 'twitter', 'icon', 'followmsg'); register_activation_hook( __FILE__, 'activate_wp_followme' ); global $wp_followme; $wp_followme = get_option('wp_followme_options'); define("wp_followme_VER","1.0.1",false); //External CSS in the header function wp_followme_scripts() { global $wp_followme; wp_enqueue_style( 'wp_followme_css_file', wp_followme_url( 'followme-style.css' ), false, false, false); wp_enqueue_script( 'wp_followme_swfobject', "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js", false, false, false ); } add_action( 'init', 'wp_followme_scripts' ); add_action( 'init', 'followme_admin_warnings' ); function follow_msg(){ global $wp_followme; $msg = $wp_followme['followmsg']; function str_splitx($string, $split_length = 1) { $array = explode("\r\n", chunk_split($string, $split_length)); array_pop($array); return $array; } $msg2 = str_splitx($msg); foreach ( $msg2 as $m ){ $m = str_replace(" ", " ", $m); echo "".$m.""; } } function followme_admin_warnings() { global $wp_followme; function followme_warning() { global $wp_followme; if ( !$wp_followme['twitter'] ) { echo '
WP FollowMe plugin is not configured yet.You must enter your Twitter URL for it to work.
WP FollowMe plugin is not properly configured.The Twitter URL must begin with http.