tumblr hit counter
'; $str_after = ''; if($ata_settings['tp_kontera_addZT']) { if((is_singular())||(is_home())||(is_archive())) { return $str_before.$content.$str_after; } else { return $content; } } else { return $content; } } // Feed function add_filter('the_content', 'ald_ata',99999999); function ald_ata($content) { $ata_settings = ata_read_options(); $creditline = '
Feed enhanced by the Add To Feed Plugin by Ajay D\'Souza'; $str_before =''; $str_after ='
'; if(is_feed()) { if($ata_settings[feed_addhtmlbefore]) { $str_before .= stripslashes($ata_settings[feed_htmlbefore]); $str_before .= '
'; } if($ata_settings[feed_addhtmlafter]) { $str_after .= stripslashes($ata_settings[feed_feed_htmlafter]); $str_after .= '
'; } if($ata_settings[feed_addtitle]) { $str_after .= ''.the_title('','',false).' was first posted on '.get_the_time('F j, Y').' at '.get_the_time('g:i a').'.'; $str_after .= '
'; } if($ata_settings[feed_addcopyright]) { $str_after .= stripslashes($ata_settings[feed_copyrightnotice]); $str_after .= '
'; } if($ata_settings[addcredit]) { $str_after .= $creditline; $str_after .= '
'; } return $str_before.$content.$str_after; } else { return $content; } } // Footer function add_action('wp_head','ald_ata_header'); function ald_ata_header() { global $wpdb, $post, $single; $ata_settings = ata_read_options(); $ata_other = stripslashes($ata_settings[head_other]); $ata_head_CSS = stripslashes($ata_settings[head_CSS]); // Add CSS to header if ($ata_head_CSS != '') { echo ''; } // Add other header if ($ata_other != '') { echo $ata_other; } } // Default Options function ata_default_options() { global $ata_url; $copyrightnotice = '©'. date("Y").' "'.get_option('blogname').'". '; $copyrightnotice .= __('Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at ','ald_ata_plugin'); $copyrightnotice .= get_option('admin_email'); $ga_url = parse_url(get_option('home'),PHP_URL_HOST); $ata_settings = Array ( addcredit => false, // Show credits? // Feed options feed_htmlbefore => '', // HTML you want added to the feed feed_htmlafter => '', // HTML you want added to the feed feed_copyrightnotice => $copyrightnotice, // Copyright Notice feed_emailaddress => get_option('admin_email'), // Admin Email feed_addhtmlbefore => false, // Add HTML to Feed? feed_addhtmlafter => false, // Add HTML to Feed? feed_addtitle => true, // Add title of the post? feed_addcopyright => true, // Add copyright notice? // 3rd party options tp_sc_project => '', // StatCounter Project ID tp_sc_security => '', // StatCounter Security String tp_ga_uacct => '', // Google Analytics Web Property ID tp_ga_domain => $ga_url, // Google Analytics _setDomainName value tp_kontera_ID => '', // Kontera Publisher ID tp_kontera_linkcolor => '', // Kontera link color tp_kontera_addZT => '', // Kontera Add zone tags // Footer options ft_other => '', // For any other code // Header options head_CSS => '', // CSS to add to header (do not wrap with