summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/wxr.xml
blob: 557eb0dd9b437a9e76d9a8d6dd3810889a53b339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
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>