| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
if (empty($wp)) { |
|---|
| 4 |
require_once('wp-config.php'); |
|---|
| 5 |
wp('feed=atom'); |
|---|
| 6 |
} |
|---|
| 7 |
|
|---|
| 8 |
header('Content-type: application/atom+xml; charset=' . get_option('blog_charset'), true); |
|---|
| 9 |
$more = 1; |
|---|
| 10 |
|
|---|
| 11 |
?> |
|---|
| 12 |
<?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> |
|---|
| 13 |
<feed version="0.3" |
|---|
| 14 |
xmlns="http://purl.org/atom/ns#" |
|---|
| 15 |
xmlns:dc="http://purl.org/dc/elements/1.1/" |
|---|
| 16 |
xml:lang="<?php echo get_option('rss_language'); ?>" |
|---|
| 17 |
<?php do_action('atom_ns'); ?> |
|---|
| 18 |
> |
|---|
| 19 |
<title><?php bloginfo_rss('name') ?></title> |
|---|
| 20 |
<link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" /> |
|---|
| 21 |
<tagline><?php bloginfo_rss("description") ?></tagline> |
|---|
| 22 |
<modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></modified> |
|---|
| 23 |
<copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog'), 0); ?></copyright> |
|---|
| 24 |
<generator url="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator> |
|---|
| 25 |
<?php do_action('atom_head'); ?> |
|---|
| 26 |
<?php while (have_posts()) : the_post(); ?> |
|---|
| 27 |
<entry> |
|---|
| 28 |
<author> |
|---|
| 29 |
<name><?php the_author() ?></name> |
|---|
| 30 |
</author> |
|---|
| 31 |
<title type="text/html" mode="escaped"><![CDATA[<?php the_title_rss() ?>]]></title> |
|---|
| 32 |
<link rel="alternate" type="text/html" href="<?php permalink_single_rss() ?>" /> |
|---|
| 33 |
<id><?php the_guid(); ?></id> |
|---|
| 34 |
<modified><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></modified> |
|---|
| 35 |
<issued><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></issued> |
|---|
| 36 |
<?php the_category_rss('rdf') ?> |
|---|
| 37 |
<summary type="<?php bloginfo('html_type'); ?>" mode="escaped"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary> |
|---|
| 38 |
<?php if ( !get_option('rss_use_excerpt') ) : ?> |
|---|
| 39 |
<content type="<?php bloginfo('html_type'); ?>" mode="escaped" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content> |
|---|
| 40 |
<?php endif; ?> |
|---|
| 41 |
<?php rss_enclosure(); ?> |
|---|
| 42 |
<?php do_action('atom_entry'); ?> |
|---|
| 43 |
</entry> |
|---|
| 44 |
<?php endwhile ; ?> |
|---|
| 45 |
</feed> |
|---|
| 46 |
|
|---|