summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/wxr.xml
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/templates/gstudio/wxr.xml')
-rw-r--r--gstudio/templates/gstudio/wxr.xml125
1 files changed, 125 insertions, 0 deletions
diff --git a/gstudio/templates/gstudio/wxr.xml b/gstudio/templates/gstudio/wxr.xml
new file mode 100644
index 00000000..557eb0dd
--- /dev/null
+++ b/gstudio/templates/gstudio/wxr.xml
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+{% load tagging_tags %}
+<!-- This is a WordPress eXtended RSS file generated by Gstudio {{ version }} as an export of your blog. -->
+<!-- It contains information about your blog's posts, comments, and metatypes. -->
+<!-- You may use this file to transfer that content from one site to another. -->
+<!-- This file is not intended to serve as a complete backup of your blog. -->
+
+<!-- generator="Gstudio/{{ version }}" created="{% now "Y-m-d H:i" %}"-->
+<rss version="2.0"
+ xmlns:excerpt="http://wordpress.org/export/1.0/excerpt/"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"
+ xmlns:wfw="http://wellformedweb.org/CommentAPI/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:wp="http://wordpress.org/export/1.0/">
+ <channel>
+ <title>{{ site.name }}</title>
+ <link>{{ site_url }}</link>
+ <description>{{ description }}</description>
+ <pubDate>{% now "r" %}</pubDate>
+ <generator>Gstudio {{ version }}</generator>
+ <language>{{ language }}</language>
+ <wp:wxr_version>1.0</wp:wxr_version>
+ <wp:base_site_url>{{ site_url }}</wp:base_site_url>
+ <wp:base_blog_url>{{ site_url }}{% url gstudio_nodetype_archive_index %}</wp:base_blog_url>
+ {% for metatype in metatypes %}
+ <wp:metatype>
+ <wp:metatype_nicename>{{ metatype.slug }}</wp:metatype_nicename>
+ <wp:metatype_parent>{{ metatype.parent.title }}</wp:metatype_parent>
+ <wp:cat_name><![CDATA[{{ metatype.title }}]]></wp:cat_name>
+ <wp:metatype_description><![CDATA[{{ metatype.description }}]]></wp:metatype_description>
+ </wp:metatype>
+ {% endfor %}{% for tag in tags %}
+ <wp:tag>
+ <wp:tag_slug>{{ tag.name }}</wp:tag_slug>
+ <wp:tag_name><![CDATA[{{ tag.name }}]]></wp:tag_name>
+ </wp:tag>
+ {% endfor %}{% for nodetype in nodetypes %}
+ <item>
+ <title>{{ nodetype.title }}</title>
+ <link>{{ site_url }}{{ nodetype.get_absolute_url }}</link>
+ <pubDate>{{ nodetype.publication_date|date:"r" }}</pubDate>
+ <dc:creator><![CDATA[{{ nodetype.authors.all.0 }}]]></dc:creator>
+ {% for metatype in nodetype.metatypes.all %}
+ <metatype domain="metatype" nicename="{{ metatype.slug }}"><![CDATA[{{ metatype.title }}]]></metatype>
+ {% endfor %}{% tags_for_object nodetype as tag_list %}{% for tag in tag_list %}
+ <metatype domain="tag" nicename="{{ tag }}"><![CDATA[{{ tag }}]]></metatype>
+ {% endfor %}
+ <guid isPermaLink="true">{{ site_url }}{{ nodetype.get_absolute_url }}</guid>
+ <description></description>
+ <content:encoded><![CDATA[{{ nodetype.html_content|safe }}]]></content:encoded>
+ <excerpt:encoded><![CDATA[{{ nodetype.excerpt }}]]></excerpt:encoded>
+ <wp:post_id>{{ nodetype.pk }}</wp:post_id>
+ <wp:post_date>{{ nodetype.publication_date|date:"Y-m-d H:i:s"}}</wp:post_date>
+ <wp:post_date_gmt>0000-00-00 00:00:00</wp:post_date_gmt>
+ <wp:comment_status>{% if nodetype.comment_enabled %}open{% else %}closed{% endif %}</wp:comment_status>
+ <wp:ping_status>{% if nodetype.pingback_enabled %}open{% else %}closed{% endif %}</wp:ping_status>
+ <wp:post_name>{{ nodetype.slug }}</wp:post_name>
+ <wp:status>{% if nodetype.is_visible %}{% if nodetype.login_required %}private{% else %}publish{% endif %}{% else %}draft{% endif %}</wp:status>
+ <wp:post_parent>0</wp:post_parent>
+ <wp:menu_order>0</wp:menu_order>
+ <wp:post_type>post</wp:post_type>
+ <wp:post_password>{{ nodetype.password }}</wp:post_password>
+ <wp:is_sticky>{{ nodetype.featured|yesno:"1,0" }}</wp:is_sticky>
+ <wp:postmeta>
+ <wp:meta_key>_last_update</wp:meta_key>
+ <wp:meta_value><![CDATA[{{ nodetype.last_update|date:"c"}}]]></wp:meta_value>
+ </wp:postmeta>
+ <wp:postmeta>
+ <wp:meta_key>_start_publication</wp:meta_key>
+ <wp:meta_value><![CDATA[{{ nodetype.start_publication|date:"c"}}]]></wp:meta_value>
+ </wp:postmeta>
+ <wp:postmeta>
+ <wp:meta_key>_end_publication</wp:meta_key>
+ <wp:meta_value><![CDATA[{{ nodetype.end_publication|date:"c"}}]]></wp:meta_value>
+ </wp:postmeta>
+ {% for comment in nodetype.comments %}
+ <wp:comment>
+ <wp:comment_id>{{ comment.id }}</wp:comment_id>
+ <wp:comment_author><![CDATA[{{ comment.userinfo.name }}]]></wp:comment_author>
+ <wp:comment_author_email>{{ comment.userinfo.email }}</wp:comment_author_email>
+ <wp:comment_author_url>{{ comment.userinfo.url }}</wp:comment_author_url>
+ <wp:comment_author_IP>{{ comment.ip_address }}</wp:comment_author_IP>
+ <wp:comment_date>{{ comment.submit_date|date:"Y-m-d H:i:s" }}</wp:comment_date>
+ <wp:comment_date_gmt>{{ comment.submit_date|date:"Y-m-d H:i:s" }}</wp:comment_date_gmt>
+ <wp:comment_content><![CDATA[{{ comment.comment }}]]></wp:comment_content>
+ <wp:comment_approved>1</wp:comment_approved>
+ <wp:comment_type></wp:comment_type>
+ <wp:comment_parent>0</wp:comment_parent>
+ <wp:comment_user_id>0</wp:comment_user_id>
+ </wp:comment>
+ {% endfor %}{% for comment in nodetype.pingbacks %}
+ <wp:comment>
+ <wp:comment_id>{{ comment.id }}</wp:comment_id>
+ <wp:comment_author><![CDATA[{{ comment.userinfo.name }}]]></wp:comment_author>
+ <wp:comment_author_email>{{ comment.userinfo.email }}</wp:comment_author_email>
+ <wp:comment_author_url>{{ comment.userinfo.url }}</wp:comment_author_url>
+ <wp:comment_author_IP>{{ comment.ip_address }}</wp:comment_author_IP>
+ <wp:comment_date>{{ comment.submit_date|date:"Y-m-d H:i:s" }}</wp:comment_date>
+ <wp:comment_date_gmt>{{ comment.submit_date|date:"Y-m-d H:i:s" }}</wp:comment_date_gmt>
+ <wp:comment_content><![CDATA[{{ comment.comment }}]]></wp:comment_content>
+ <wp:comment_approved>1</wp:comment_approved>
+ <wp:comment_type>pingback</wp:comment_type>
+ <wp:comment_parent>0</wp:comment_parent>
+ <wp:comment_user_id>0</wp:comment_user_id>
+ </wp:comment>
+ {% endfor %}{% for comment in nodetype.trackbacks %}
+ <wp:comment>
+ <wp:comment_id>{{ comment.id }}</wp:comment_id>
+ <wp:comment_author><![CDATA[{{ comment.userinfo.name }}]]></wp:comment_author>
+ <wp:comment_author_email>{{ comment.userinfo.email }}</wp:comment_author_email>
+ <wp:comment_author_url>{{ comment.userinfo.url }}</wp:comment_author_url>
+ <wp:comment_author_IP>{{ comment.ip_address }}</wp:comment_author_IP>
+ <wp:comment_date>{{ comment.submit_date|date:"Y-m-d H:i:s" }}</wp:comment_date>
+ <wp:comment_date_gmt>{{ comment.submit_date|date:"Y-m-d H:i:s" }}</wp:comment_date_gmt>
+ <wp:comment_content><![CDATA[{{ comment.comment }}]]></wp:comment_content>
+ <wp:comment_approved>1</wp:comment_approved>
+ <wp:comment_type>trackback</wp:comment_type>
+ <wp:comment_parent>0</wp:comment_parent>
+ <wp:comment_user_id>0</wp:comment_user_id>
+ </wp:comment>
+ {% endfor %}
+ </item>
+ {% endfor %}
+ </channel>
+</rss>