Make WordPress Core

Changeset 4927 for trunk/wp-atom.php


Ignore:
Timestamp:
02/23/2007 02:50:05 AM (18 years ago)
Author:
ryan
Message:

Relocate feed templates to wp-includes. fixes #3846

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-atom.php

    r4805 r4927  
    66}
    77
    8 header('Content-type: application/atom+xml; charset=' . get_option('blog_charset'), true);
    9 $more = 1;
     8require (ABSPATH . WPINC . '/feed-atom.php');
    109
    1110?>
    12 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
    13 <feed
    14   xmlns="http://www.w3.org/2005/Atom"
    15   xmlns:thr="http://purl.org/syndication/thread/1.0"
    16   xml:lang="<?php echo get_option('rss_language'); ?>"
    17   xml:base="<?php bloginfo_rss('home') ?>/wp-atom.php"
    18   <?php do_action('atom_ns'); ?>
    19  >
    20     <title type="text"><?php bloginfo_rss('name') ?></title>
    21     <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>
    22    
    23     <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></updated>
    24     <generator uri="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator>
    25 
    26     <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" />
    27     <id><?php bloginfo('atom_url'); ?></id>
    28     <link rel="self" type="application/atom+xml" href="<?php bloginfo('atom_url'); ?>" />
    29 
    30     <?php do_action('atom_head'); ?>
    31     <?php while (have_posts()) : the_post(); ?>
    32     <entry>
    33         <author>
    34             <name><?php the_author() ?></name>
    35             <uri><?php the_author_url()?></uri>
    36         </author>
    37         <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
    38         <link rel="alternate" type="text/html" href="<?php permalink_single_rss() ?>" />
    39         <id><?php the_guid(); ?></id>
    40         <updated><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></updated>
    41         <published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
    42         <?php the_category_rss('atom') ?>
    43         <summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
    44 <?php if ( !get_option('rss_use_excerpt') ) : ?>
    45         <content type="<?php html_type_rss(); ?>" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
    46 <?php endif; ?>
    47 <?php rss_enclosure(); ?>
    48 <?php do_action('atom_entry'); ?>
    49     </entry>
    50     <?php endwhile ; ?>
    51 </feed>
Note: See TracChangeset for help on using the changeset viewer.