// the patch in trac by comatoast // and modifications by Federico // Further modifications by Ben de Groot , version 19/02/2006 if (empty($feed)) { $blog = 1; $feed = 'atom'; $doing_rss = 1; require('wp-blog-header.php'); } // this function ideally should go into wp-includes/feed-functions.php function atom_enclosure() { global $id, $post; if (!empty($post->post_password) && ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password)) return; $custom_fields = get_post_custom(); if( is_array( $custom_fields ) ) { while( list( $key, $val ) = each( $custom_fields ) ) { if( $key == 'enclosure' ) { if (is_array($val)) { foreach($val as $enc) { $enclosure = split( "\n", $enc ); print "\n"; } } } } } } header('Content-type: application/atom+xml; charset=' . get_settings('blog_charset'), true); $more = 1; echo ''."\n"; ?> > <?php bloginfo_rss('name'); ?> / Copyright WordPress <![CDATA[ <?php the_title_rss(); ?> ]]> post_modified_gmt); ?> cat_ID)); ?>" label="cat_name; ?>"/> ]]> ]]>