Dotclear


Ignore:
Timestamp:
12/16/16 07:29:22 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Switch from HTML comments to DC Template comments (not needed in final HTML output) — dotty templateset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/default-templates/dotty/rss2-comments.xml

    r3246 r3455  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<?xml-stylesheet title="XSL formatting" type="text/xsl" href="{{tpl:BlogURL}}feed/rss2/xslt" ?> 
    3 <rss version="2.0" 
    4   xmlns:dc="http://purl.org/dc/elements/1.1/" 
    5   xmlns:content="http://purl.org/rss/1.0/modules/content/" 
    6   xmlns:atom="http://www.w3.org/2005/Atom"> 
    7 <channel> 
    8   <title>{{tpl:BlogName encode_xml="1"}}{{tpl:SysFeedSubtitle encode_xml="1"}} 
    9   - {{tpl:lang Comments}}</title> 
    10   <link>{{tpl:BlogURL}}</link> 
    11   <atom:link href="{{tpl:SysSelfURI}}" rel="self" type="application/rss+xml"/> 
    12   <description>{{tpl:BlogDescription remove_html="1" encode_xml="1"}}</description> 
    13   <language>{{tpl:BlogLanguage}}</language> 
    14   <pubDate>{{tpl:BlogUpdateDate rfc822="1"}}</pubDate> 
    15   <copyright>{{tpl:BlogCopyrightNotice encode_xml="1"}}</copyright> 
    16   <docs>http://blogs.law.harvard.edu/tech/rss</docs> 
    17   <generator>Dotclear</generator> 
    18  
    19   <tpl:Comments order="desc" with_pings="1"> 
    20  
    21   <tpl:CommentIf is_ping="1"> 
    22   <item> 
    23     <title>[ping] {{tpl:PingEntryTitle encode_xml="1"}} - {{tpl:PingBlogName encode_xml="1"}}</title> 
    24     <link>{{tpl:PingPostURL encode_xml="1"}}#c{{tpl:PingID}}</link> 
    25     <guid isPermaLink="false">{{tpl:PingFeedID}}</guid> 
    26     <pubDate>{{tpl:PingDate rfc822="1"}}</pubDate> 
    27     <dc:creator>{{tpl:PingBlogName encode_xml="1"}}</dc:creator> 
    28  
    29     <description>&lt;p&gt;&lt;a href="{{tpl:PingAuthorURL encode_xml="1"}}"&gt;{{tpl:PingTitle encode_xml="1"}}&lt;/a&gt;&lt;/p&gt; 
    30     {{tpl:PingContent encode_xml="1"}}</description> 
    31   </item> 
    32   </tpl:CommentIf> 
    33  
    34   <tpl:CommentIf is_ping="0"> 
    35   <item> 
    36     <title>{{tpl:CommentEntryTitle encode_xml="1"}} - {{tpl:CommentAuthor encode_xml="1"}}</title> 
    37     <link>{{tpl:CommentPostURL encode_xml="1"}}#c{{tpl:CommentID}}</link> 
    38     <guid isPermaLink="false">{{tpl:CommentFeedID}}</guid> 
    39     <pubDate>{{tpl:CommentDate rfc822="1"}}</pubDate> 
    40     <dc:creator>{{tpl:CommentAuthor encode_xml="1"}}</dc:creator> 
    41  
    42     <description>{{tpl:CommentContent absolute_urls="1" encode_xml="1"}}</description> 
    43   </item> 
    44   </tpl:CommentIf> 
    45   </tpl:Comments> 
    46  
    47 </channel> 
    48 </rss> 
     3     <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"> 
     4          <channel> 
     5               <title>{{tpl:BlogName encode_xml="1"}}{{tpl:SysFeedSubtitle encode_xml="1"}} - {{tpl:lang Comments}}</title> 
     6               <link>{{tpl:BlogURL}}</link> 
     7               <atom:link href="{{tpl:SysSelfURI}}" rel="self" type="application/rss+xml" /> 
     8               <description>{{tpl:BlogDescription remove_html="1" encode_xml="1"}}</description> 
     9               <language>{{tpl:BlogLanguage}}</language> 
     10               <pubDate>{{tpl:BlogUpdateDate rfc822="1"}}</pubDate> 
     11               <copyright>{{tpl:BlogCopyrightNotice encode_xml="1"}}</copyright> 
     12               <docs>http://blogs.law.harvard.edu/tech/rss</docs> 
     13               <generator>Dotclear</generator> 
     14               <tpl:Comments order="desc" with_pings="1"> 
     15                    <tpl:CommentIf is_ping="1"> 
     16                         <item> 
     17                              <title>[ping] {{tpl:PingEntryTitle encode_xml="1"}} - {{tpl:PingBlogName encode_xml="1"}}</title> 
     18                              <link>{{tpl:PingPostURL encode_xml="1"}}#c{{tpl:PingID}}</link> 
     19                              <guid isPermaLink="false">{{tpl:PingFeedID}}</guid> 
     20                              <pubDate>{{tpl:PingDate rfc822="1"}}</pubDate> 
     21                              <dc:creator>{{tpl:PingBlogName encode_xml="1"}}</dc:creator> 
     22                              <description>&lt;p&gt;&lt;a href="{{tpl:PingAuthorURL encode_xml="1"}}"&gt;{{tpl:PingTitle encode_xml="1"}}&lt;/a&gt;&lt;/p&gt; {{tpl:PingContent encode_xml="1"}}</description> 
     23                         </item> 
     24                    </tpl:CommentIf> 
     25                    <tpl:CommentIf is_ping="0"> 
     26                         <item> 
     27                              <title>{{tpl:CommentEntryTitle encode_xml="1"}} - {{tpl:CommentAuthor encode_xml="1"}}</title> 
     28                              <link>{{tpl:CommentPostURL encode_xml="1"}}#c{{tpl:CommentID}}</link> 
     29                              <guid isPermaLink="false">{{tpl:CommentFeedID}}</guid> 
     30                              <pubDate>{{tpl:CommentDate rfc822="1"}}</pubDate> 
     31                              <dc:creator>{{tpl:CommentAuthor encode_xml="1"}}</dc:creator> 
     32                              <description>{{tpl:CommentContent absolute_urls="1" encode_xml="1"}}</description> 
     33                         </item> 
     34                    </tpl:CommentIf> 
     35               </tpl:Comments> 
     36          </channel> 
     37     </rss> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map