adsns_options = get_option( 'adsns_settings' ); $this->adsns_options['code'] = stripslashes( $this->adsns_options['code'] ); } // Number of views ads on a home page function adsns_home_postviews() { /*if( is_home() ) { $this->adsns_options['num_show'] += $this->adsns_options['max_homepostads']; // Counting views update_option( 'adsns_settings', $this->adsns_options ); }*/ } // Number of views ads on a single page function adsns_single_postviews() { if( is_single() ) { $this->adsns_options['num_show']++; update_option( 'adsns_settings', $this->adsns_options ); } } // Number of views footer ads function adsns_footer_postviews() { if( !is_feed() ) { $this->adsns_options['num_show']++; update_option( 'adsns_settings', $this->adsns_options ); } } // Number of posts on home page function adsns_post_count( $content ) { global $adsns_count; $adsns_count++; return $content; } // Show ads after post on a single page function adsns_end_post_ad( $content ) { $this->adsns_donate(); // Calling a donate function if ( ! is_feed() && is_single() ) { // Checking if we are on a single page $content.= '
".__( "Options saved.", 'adsense' )."
" . __( "Please enter your Publisher ID.", 'adsense' ) . "