427 lines
12 KiB
PHP
Executable File
427 lines
12 KiB
PHP
Executable File
<?php echo "<?"; ?>xml version="1.0" encoding="utf-8"<?php echo "?>"; ?>
|
|
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="<?php echo context::global_filters($core->blog->settings->system->lang,array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogLanguage'); ?>">
|
|
|
|
<title type="html"><?php echo context::global_filters($core->blog->name,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogName'); ?><?php if ($_ctx->feed_subtitle !== null) { echo context::global_filters($_ctx->feed_subtitle,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'SysFeedSubtitle');} ?>
|
|
- <?php echo __('Comments'); ?></title>
|
|
<subtitle type="html"><?php echo context::global_filters($core->blog->desc,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogDescription'); ?></subtitle>
|
|
<link href="<?php echo context::global_filters(http::getSelfURI(),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'SysSelfURI'); ?>" rel="self" type="application/atom+xml"/>
|
|
<link href="<?php echo context::global_filters($core->blog->url,array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogURL'); ?>" rel="alternate" type="text/html"
|
|
title="<?php echo context::global_filters($core->blog->desc,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => '1',
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogDescription'); ?>"/>
|
|
<updated><?php echo context::global_filters(dt::iso8601($core->blog->upddt,$core->blog->settings->system->blog_timezone),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
'iso8601' => '1',
|
|
),'BlogUpdateDate'); ?></updated>
|
|
<author>
|
|
<name><?php echo context::global_filters($core->blog->settings->system->editor,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogEditor'); ?></name>
|
|
</author>
|
|
<id><?php echo context::global_filters("urn:md5:".$core->blog->uid,array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'BlogFeedID'); ?></id>
|
|
<generator uri="https://www.dotclear.org/">Dotclear</generator>
|
|
|
|
<?php if ($_ctx->exists("meta") && ($_ctx->meta->meta_type == "tag")) { if (!isset($params)) { $params = []; }
|
|
if (!isset($params['from'])) { $params['from'] = ''; }
|
|
if (!isset($params['sql'])) { $params['sql'] = ''; }
|
|
$params['from'] .= ', '.$core->prefix.'meta META ';
|
|
$params['sql'] .= 'AND META.post_id = P.post_id ';
|
|
$params['sql'] .= "AND META.meta_type = 'tag' ";
|
|
$params['sql'] .= "AND META.meta_id = '".$core->con->escape($_ctx->meta->meta_id)."' ";
|
|
} ?>
|
|
<?php
|
|
if ($_ctx->nb_comment_per_page !== null) { $params['limit'] = $_ctx->nb_comment_per_page; }
|
|
if ($_ctx->posts !== null) { $params['post_id'] = $_ctx->posts->post_id; $core->blog->withoutPassword(false);
|
|
}
|
|
if ($_ctx->exists("categories")) { $params['cat_id'] = $_ctx->categories->cat_id; }
|
|
if ($_ctx->exists("langs")) { $params['sql'] = "AND P.post_lang = '".$core->blog->con->escape($_ctx->langs->post_lang)."' "; }
|
|
$params['order'] = 'comment_dt desc';
|
|
$_ctx->comments = $core->blog->getComments($params); unset($params);
|
|
if ($_ctx->posts !== null) { $core->blog->withoutPassword(true);}
|
|
$_ctx->pings = $_ctx->comments;
|
|
?>
|
|
<?php while ($_ctx->comments->fetch()) : ?>
|
|
|
|
<?php if($_ctx->comments->comment_trackback) : ?>
|
|
<entry>
|
|
<title>[ping] <?php echo context::global_filters($_ctx->pings->post_title,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'PingEntryTitle'); ?> - <?php echo context::global_filters($_ctx->pings->comment_author,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'PingBlogName'); ?></title>
|
|
<link href="<?php echo context::global_filters($_ctx->pings->getPostURL(),array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'PingPostURL'); ?>#c<?php echo $_ctx->pings->comment_id; ?>" rel="alternate" type="text/html"
|
|
title="[ping] <?php echo context::global_filters($_ctx->pings->post_title,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'PingEntryTitle'); ?> - <?php echo context::global_filters($_ctx->pings->comment_author,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'PingBlogName'); ?>" />
|
|
<id><?php echo context::global_filters($_ctx->pings->getFeedID(),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'PingFeedID'); ?></id>
|
|
<published><?php echo context::global_filters($_ctx->pings->getISO8601Date(''),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
'iso8601' => '1',
|
|
),'PingDate'); ?></published>
|
|
<updated><?php echo context::global_filters($_ctx->pings->getISO8601Date('upddt'),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
'iso8601' => '1',
|
|
'upddt' => '1',
|
|
),'PingDate'); ?></updated>
|
|
<author><name><?php echo context::global_filters($_ctx->pings->comment_author,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'PingBlogName'); ?></name></author>
|
|
<content type="html"><p><a href="<?php echo context::global_filters($_ctx->pings->getAuthorURL(),array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'PingAuthorURL'); ?>"><?php echo context::global_filters($_ctx->pings->getTrackbackTitle(),array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'PingTitle'); ?></a></p> <?php echo context::global_filters($_ctx->pings->getTrackbackContent(),array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'PingContent'); ?></content>
|
|
</entry>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if(!$_ctx->comments->comment_trackback) : ?>
|
|
<entry>
|
|
<title><?php echo context::global_filters($_ctx->comments->post_title,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'CommentEntryTitle'); ?> - <?php echo context::global_filters($_ctx->comments->comment_author,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'CommentAuthor'); ?></title>
|
|
<link href="<?php echo context::global_filters($_ctx->comments->getPostURL(),array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'CommentPostURL'); ?>#c<?php echo $_ctx->comments->comment_id; ?>" rel="alternate" type="text/html"
|
|
title="<?php echo context::global_filters($_ctx->comments->post_title,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'CommentEntryTitle'); ?> - <?php echo context::global_filters($_ctx->comments->comment_author,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'CommentAuthor'); ?>" />
|
|
<id><?php echo context::global_filters($_ctx->comments->getFeedID(),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'CommentFeedID'); ?></id>
|
|
<published><?php echo context::global_filters($_ctx->comments->getISO8601Date(''),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
'iso8601' => '1',
|
|
),'CommentDate'); ?></published>
|
|
<updated><?php echo context::global_filters($_ctx->comments->getISO8601Date('upddt'),array (
|
|
0 => NULL,
|
|
'encode_xml' => 0,
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
'iso8601' => '1',
|
|
'upddt' => '1',
|
|
),'CommentDate'); ?></updated>
|
|
<author><name><?php echo context::global_filters($_ctx->comments->comment_author,array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
),'CommentAuthor'); ?></name></author>
|
|
<content type="html"><?php echo context::global_filters($_ctx->comments->getContent(1),array (
|
|
0 => NULL,
|
|
'encode_xml' => '1',
|
|
'encode_html' => 0,
|
|
'cut_string' => 0,
|
|
'lower_case' => 0,
|
|
'upper_case' => 0,
|
|
'encode_url' => 0,
|
|
'remove_html' => 0,
|
|
'capitalize' => 0,
|
|
'strip_tags' => 0,
|
|
'absolute_urls' => '1',
|
|
),'CommentContent'); ?></content>
|
|
</entry>
|
|
<?php endif; ?>
|
|
<?php endwhile; $_ctx->comments = null; ?>
|
|
|
|
</feed>
|