'Right Sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); /* Adsense in post based on tutorial from http://www.flexijourney.com/blog/insert-google-adsense-code-anywhere-in-your-wordpress-article/ Little modified by me */ function get_the_content_with_formatting ($more_link_text='(more)', $stripteaser=0, $more_file='') { $content = get_the_content($more_link_text, $stripteaser, $more_file); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); return $content; } /* Adsense code must be located between
and
tag. In order to use it in post 1. switch to HTML mode when creating a post 2. put (X => 1,2,3 or 4) */ function AddGoogleAds ($content) { $Adsense1 = << ADSCODE1; $Adsense2 = << ADSCODE2; $Adsense3 = << ADSCODE3; $Adsense4 = << ADSCODE4; $content = str_replace(array('

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

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

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

',''),$Adsense4,$content); return $content; } ?>