locale); fallback($comments, Comment::find(array("limit" => 20, "where" => array("status != 'spam'", "status != 'denied'")))); fallback($title, _f("Comments at “%s”", array(fix($config->name)), "comments")); $latest_timestamp = 0; foreach ($comments as $comment) if (strtotime($comment->created_at) > $latest_timestamp) $latest_timestamp = strtotime($comment->created_at); echo "<".'?xml version="1.0" encoding="utf-8"?'.">\r"; ?> <?php echo $title; ?> Chyrp call("feed_comment", $comment); $updated = ($comment->updated) ? $comment->updated_at : $comment->created_at ; $tagged = substr(strstr(url("id/".$comment->post->id)."#comment_".$comment->id, "//"), 2); $tagged = str_replace("#", "/", $tagged); $tagged = preg_replace("/(".preg_quote(parse_url($comment->post->url(), PHP_URL_HOST)).")/", "\\1,".when("Y-m-d", $updated).":", $tagged, 1); ?> id; ?>"> <?php echo fix($comment->post->title()); ?> tag: created_at); ?> id; ?>" /> author); ?> author_url)): ?> author_url); ?> body); ?> call("comments_feed_item", $comment->id); ?>