Dotclear

source: inc/public/default-templates/baklava/_entry-feedback.html @ 2983:15189c4a828f

Revision 2983:15189c4a828f, 4.8 KB checked in by franck <carnet.franck.paul@…>, 10 years ago (diff)

Keep h1 only for blog title -> W3C recommandation: Consider using the h1 element as a top-level heading only (all h1 elements are treated as top-level headings by many screen readers and other tools).

Line 
1<tpl:EntryIf operator="or" show_comments="1" show_pings="1">
2     <section class="post-feedback">
3</tpl:EntryIf>
4
5<!-- # Comments -->
6<tpl:EntryIf show_comments="1">
7     <tpl:Comments with_pings="1">
8          <tpl:CommentsHeader>
9               <section class="feedback__comments" id="comments">
10                    <h2>{{tpl:EntryCommentCount count_all="1" none="no reactions" one="one reaction" more="%s reactions"}}</h2>
11                    <tpl:EntryIf operator="or" comments_active="1" pings_active="1">
12                         <p id="comments-feed"><a class="feed" href="{{tpl:BlogFeedURL type="atom"}}/comments/{{tpl:EntryID}}"
13                              title="{{tpl:lang This post's comments Atom feed}}">{{tpl:lang This post's comments feed}}</a></p>
14                    </tpl:EntryIf>
15                    <div class="comments-list">
16          </tpl:CommentsHeader>
17                    <tpl:CommentIf is_ping="0">
18                         <article id="c{{tpl:CommentID}}" class="comment {{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}">
19                    </tpl:CommentIf>
20                    <tpl:CommentIf is_ping="1">
21                         <article id="c{{tpl:PingID}}" class="ping {{tpl:PingIfOdd}} {{tpl:PingIfFirst}}">
22                    </tpl:CommentIf>
23                              <header>
24                                   <p class="comment-info"><a href="#c{{tpl:CommentID}}" class="comment-number">{{tpl:CommentOrderNumber}}</a>
25                                        {{tpl:lang From}} {{tpl:CommentAuthorLink}} - {{tpl:CommentDate format="%d"}}/{{tpl:CommentDate format="%m"}}/{{tpl:CommentDate format="%Y"}}, {{tpl:CommentTime}}
26                                   </p>
27                              </header>
28                              <div class="comment-content">
29                                   <!-- # --BEHAVIOR-- publicCommentBeforeContent -->
30                                   {{tpl:SysBehavior behavior="publicCommentBeforeContent"}}
31
32                                   {{tpl:CommentContent}}
33
34                                   <!-- # --BEHAVIOR-- publicCommentAfterContent -->
35                                   {{tpl:SysBehavior behavior="publicCommentAfterContent"}}
36                              </div>
37                         </article>
38          <tpl:CommentsFooter>
39                    </div>
40               </section>
41          </tpl:CommentsFooter>
42     </tpl:Comments>
43</tpl:EntryIf>
44
45<tpl:EntryIf comments_active="1">
46     <tpl:SysIfFormError>
47          <p class="error" id="pr">{{tpl:SysFormError}}</p>
48     </tpl:SysIfFormError>
49
50     <tpl:SysIfCommentPublished>
51          <p class="message" id="pr">{{tpl:lang Your comment has been published.}}</p>
52     </tpl:SysIfCommentPublished>
53
54     <tpl:SysIfCommentPending>
55          <p class="message" id="pr">{{tpl:lang Your comment has been submitted and will be reviewed for publication.}}</p>
56     </tpl:SysIfCommentPending>
57
58     <!-- # Comment form -->
59     <form class="comment-form" action="{{tpl:EntryURL}}#pr" method="post" id="comment-form" role="form">
60          <tpl:IfCommentPreview>
61               <div id="pr">
62                    <h3>{{tpl:lang Your comment}}</h3>
63                    <div class="comment-preview">{{tpl:CommentPreviewContent}}</div>
64                    <p class="buttons"><button type="submit" class="submit" value="{{tpl:lang Send}}">{{tpl:lang Send}}</button></p>
65               </div>
66          </tpl:IfCommentPreview>
67
68          <h3>{{tpl:lang Add a comment}}</h3>
69               <!-- # --BEHAVIOR-- publicCommentFormBeforeContent -->
70               {{tpl:SysBehavior behavior="publicCommentFormBeforeContent"}}
71
72               <p class="field name-field"><label for="c_name">{{tpl:lang Name or nickname}}<abbr title="{{tpl:lang Required field}}">*</abbr>&nbsp;:</label>
73                    <input name="c_name" id="c_name" type="text" size="30" maxlength="255"
74                     value="{{tpl:CommentPreviewName encode_html="1"}}" required />
75               </p>
76
77               <p class="field mail-field"><label for="c_mail">{{tpl:lang Email address}}<abbr title="{{tpl:lang Required field}}">*</abbr>&nbsp;:</label>
78                    <input name="c_mail" id="c_mail" type="email" size="30" maxlength="255"
79                     value="{{tpl:CommentPreviewEmail encode_html="1"}}" required />
80               </p>
81
82               <p class="field site-field"><label for="c_site">{{tpl:lang Website}}&nbsp;:</label>
83                    <input name="c_site" id="c_site" type="url" size="30" maxlength="255"
84                     value="{{tpl:CommentPreviewSite encode_html="1"}}" />
85               </p>
86
87               <p style="display:none">
88                    <input name="f_mail" type="text" size="30" maxlength="255" value="" />
89               </p>
90
91               <p class="field field-content"><label for="c_content" aria-describedby="c_help">{{tpl:lang Comment}}<abbr title="{{tpl:lang Required field}}">*</abbr>&nbsp;:</label>
92                    <textarea name="c_content" id="c_content" cols="35"
93                     rows="7" required>{{tpl:CommentPreviewContent raw="1" encode_html="1"}}</textarea>
94               </p>
95
96               <p class="form-help" id="c_help">{{tpl:CommentHelp}}</p>
97
98               <!-- # --BEHAVIOR-- publicCommentFormAfterContent -->
99               {{tpl:SysBehavior behavior="publicCommentFormAfterContent"}}
100
101               <p class="buttons">
102                    <button type="submit" class="preview" name="preview" value="{{tpl:lang Preview}}">{{tpl:lang Preview}}</button>
103                  <tpl:IfCommentPreviewOptional>
104                    <button type="submit" class="submit" value="{{tpl:lang Send}}">{{tpl:lang Send}}</button>
105                  </tpl:IfCommentPreviewOptional>
106               </p>
107     </form>
108</tpl:EntryIf>
109
110<tpl:EntryIf pings_active="1">
111     <div class="send-ping">
112          <h3>{{tpl:lang Add ping}}</h3>
113          <p id="ping-url">{{tpl:lang Trackback URL}}&nbsp;: {{tpl:EntryPingLink}}</p>
114     </div>
115</tpl:EntryIf>
116
117<tpl:EntryIf operator="or" show_comments="1" show_pings="1">
118     </section> <!-- end post-feedback -->
119</tpl:EntryIf>
Note: See TracBrowser for help on using the repository browser.

Sites map