00'> ADSCODE1; $Ar160x600 = << ADSCODE2; $Ad300x250 = << ADSCODE3; $Al300x250 = << ADSCODE4; $Ad728x90 = <<
ADSCODE5; $content = str_replace(array('

',''),$Ad160x600,$content); $content = str_replace(array('

',''),$Ar160x600,$content); $content = str_replace(array('

',''),$Ad300x250,$content); $content = str_replace(array('

',''),$Al300x250,$content); $content = str_replace(array('

' ,'' ),$Ad728x90 ,$content); return $content; } // add a favicon to your function blog_favicon() { echo ''; } add_action('wp_head', 'blog_favicon'); # smart jquery inclusion # if (!is_admin()) { # wp_deregister_script('jquery'); # wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false); # wp_enqueue_script('jquery'); # } // Custom Default Avatar if ( !function_exists('addgravatar') ) { function addgravatar( $avatar_defaults ) { $myavatar = get_bloginfo('template_directory').'/images/cen-sin.png'; //=> Change path to your custom avatar $avatar_defaults[$myavatar] = 'Cen Sin'; //=> Change to your avatar name return $avatar_defaults; } add_filter( 'avatar_defaults', 'addgravatar' ); } function my_custom_login_logo() { echo ''; } add_action('login_head', 'my_custom_login_logo'); //Custom Login Screen, site url function censin_login_link($url) { // Return a url; in this case the homepage url of wordpress return get_bloginfo('url'); } function censin_login_title($message) { // Return title text for the logo to replace 'wordpress'; in this case, the blog name. return get_bloginfo('name'); } add_filter("login_headerurl","censin_login_link"); add_filter("login_headertitle","censin_login_title"); // Turn off RSS Feed for Posts and Comments function fb_disable_feed() { wp_die( __('No feed available, please visit CENSIN Resources...!') ); } add_action('do_feed', 'fb_disable_feed', 1); add_action('do_feed_rdf', 'fb_disable_feed', 1); add_action('do_feed_rss', 'fb_disable_feed', 1); add_action('do_feed_rss2', 'fb_disable_feed', 1); add_action('do_feed_atom', 'fb_disable_feed', 1); function remove_comments_rss( $for_comments ) { return; } add_filter('post_comments_feed_link','remove_comments_rss'); function removeHeadLinks() { remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'wlwmanifest_link'); } add_action('init', 'removeHeadLinks'); @ini_set( 'upload_max_size' , '24M' ); @ini_set( 'post_max_size', '24M'); @ini_set( 'max_execution_time', '300' ); ?>