Dotclear

source: plugins/pages/default-templates/mustek/page.html @ 3017:671366477262

Revision 3017:671366477262, 6.7 KB checked in by franck <carnet.franck.paul@…>, 10 years ago (diff)

Apply extension/heritage templating system to mustek templateset, addresses #2099

Line 
1{{tpl:extends parent="post.html"}}
2
3<tpl:Block name="head-linkrel">
4     <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" />
5     <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" />
6     <tpl:EntryIf pings_active="1"><link rel="pingback" href="{{tpl:BlogXMLRPCURL}}" /></tpl:EntryIf>
7     <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" />
8</tpl:Block>
9
10<tpl:Block name="body-tag"><body class="dc-page"></tpl:Block>
11
12<tpl:Block name="main-content">
13     <div id="p{{tpl:EntryID}}" class="post" role="article">
14          <h2 class="post-title">{{tpl:EntryTitle encode_html="1"}}</h2>
15
16          <!-- # --BEHAVIOR-- publicEntryBeforeContent -->
17          {{tpl:SysBehavior behavior="publicEntryBeforeContent"}}
18
19          <tpl:EntryIf extended="1">
20               <div class="post-excerpt">{{tpl:EntryExcerpt}}</div>
21          </tpl:EntryIf>
22          <div class="post-content">{{tpl:EntryContent}}</div>
23
24          <p class="page-info">{{tpl:lang Published on}} {{tpl:EntryDate}}
25          {{tpl:lang by}} {{tpl:EntryAuthorLink}}</p>
26
27          <!-- # --BEHAVIOR-- publicEntryAfterContent -->
28          {{tpl:SysBehavior behavior="publicEntryAfterContent"}}
29     </div>
30
31     <!-- # Attachments -->
32     <tpl:Attachments>
33          <tpl:AttachmentsHeader>
34               <div id="attachments">
35                    <h3>{{tpl:lang Attachments}}</h3>
36                    <ul>
37          </tpl:AttachmentsHeader>
38                         <li class="{{tpl:AttachmentType}}">
39          <tpl:AttachmentIf is_mp3="1">
40                         {{tpl:include src="_mp3_player.html"}} -
41          </tpl:AttachmentIf>
42          <tpl:AttachmentIf is_flv="1">
43                         {{tpl:include src="_flv_player.html"}}
44          </tpl:AttachmentIf>
45          <tpl:AttachmentIf is_flv="0">
46                         <a href="{{tpl:AttachmentURL}}"
47                         title="{{tpl:AttachmentFileName}} ({{tpl:AttachmentSize}})">{{tpl:AttachmentTitle}}</a>
48          </tpl:AttachmentIf>
49                         </li>
50          <tpl:AttachmentsFooter>
51                    </ul>
52               </div>
53          </tpl:AttachmentsFooter>
54     </tpl:Attachments>
55
56  <!-- # Comments -->
57     <tpl:EntryIf show_comments="1">
58          <tpl:Comments>
59               <tpl:CommentsHeader>
60                    <div id="comments">
61                         <h3>{{tpl:lang Comments}}</h3>
62                         <dl>
63               </tpl:CommentsHeader>
64                         <dt id="c{{tpl:CommentID}}" class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}"><a
65                         href="#c{{tpl:CommentID}}" class="comment-number">{{tpl:CommentOrderNumber}}.</a>
66                         {{tpl:lang On}} {{tpl:CommentDate}}, {{tpl:CommentTime}}
67                         {{tpl:lang by}} {{tpl:CommentAuthorLink}}</dt>
68
69                         <dd class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}">
70                              <!-- # --BEHAVIOR-- publicCommentBeforeContent -->
71                              {{tpl:SysBehavior behavior="publicCommentBeforeContent"}}
72
73                              {{tpl:CommentContent}}
74
75                              <!-- # --BEHAVIOR-- publicCommentAfterContent -->
76                              {{tpl:SysBehavior behavior="publicCommentAfterContent"}}
77                         </dd>
78               <tpl:CommentsFooter>
79                         </dl>
80                    </div>
81               </tpl:CommentsFooter>
82          </tpl:Comments>
83     </tpl:EntryIf>
84
85     <tpl:EntryIf comments_active="1">
86          <tpl:SysIfFormError>
87               <p class="error" id="pr">{{tpl:SysFormError}}</p>
88          </tpl:SysIfFormError>
89
90          <tpl:SysIfCommentPublished>
91               <p class="message" id="pr">{{tpl:lang Your comment has been published.}}</p>
92          </tpl:SysIfCommentPublished>
93
94          <tpl:SysIfCommentPending>
95               <p class="message" id="pr">{{tpl:lang Your comment has been submitted and
96          will be reviewed for publication.}}</p>
97          </tpl:SysIfCommentPending>
98
99          <!-- # Comment form -->
100          <form action="{{tpl:EntryURL}}#pr" method="post" id="comment-form" role="form">
101               <tpl:IfCommentPreview>
102                    <div id="pr">
103                         <h3>{{tpl:lang Your comment}}</h3>
104                         <dl>
105                         <dd class="comment-preview">{{tpl:CommentPreviewContent}}</dd>
106                         </dl>
107                         <p class="buttons"><input type="submit" class="submit" value="{{tpl:lang send}}" /></p>
108                    </div>
109               </tpl:IfCommentPreview>
110
111               <h3>{{tpl:lang Add a comment}}</h3>
112               <fieldset>
113                    <!-- # --BEHAVIOR-- publicCommentFormBeforeContent -->
114                    {{tpl:SysBehavior behavior="publicCommentFormBeforeContent"}}
115
116                    <p class="field"><label for="c_name">{{tpl:lang Name or nickname}}&nbsp;:</label>
117                    <input name="c_name" id="c_name" type="text" size="30" maxlength="255"
118                    value="{{tpl:CommentPreviewName encode_html="1"}}" />
119                    </p>
120
121                    <p class="field"><label for="c_mail">{{tpl:lang Email address}}&nbsp;:</label>
122                    <input name="c_mail" id="c_mail" type="text" size="30" maxlength="255"
123                    value="{{tpl:CommentPreviewEmail encode_html="1"}}" />
124                    </p>
125
126                    <p class="field"><label for="c_site">{{tpl:lang Website}} ({{tpl:lang optional}})&nbsp;:</label>
127                    <input name="c_site" id="c_site" type="text" size="30" maxlength="255"
128                    value="{{tpl:CommentPreviewSite encode_html="1"}}" />
129                    </p>
130
131                    <p style="display:none"><input name="f_mail" type="text" size="30"
132                    maxlength="255" value="" /></p>
133
134                    <p class="field"><label for="c_content">{{tpl:lang Comment}}&nbsp;:</label>
135                    <textarea name="c_content" id="c_content" cols="35"
136                    rows="7">{{tpl:CommentPreviewContent raw="1" encode_html="1"}}</textarea>
137                    </p>
138
139                    <p class="form-help">{{tpl:CommentHelp}}</p>
140
141                    <!-- # --BEHAVIOR-- publicCommentFormAfterContent -->
142                    {{tpl:SysBehavior behavior="publicCommentFormAfterContent"}}
143               </fieldset>
144
145               <fieldset>
146                    <p class="buttons"><input type="submit" class="preview" name="preview" value="{{tpl:lang preview}}" />
147                    <tpl:IfCommentPreviewOptional><input type="submit" class="submit" value="{{tpl:lang send}}" /></tpl:IfCommentPreviewOptional></p>
148               </fieldset>
149          </form>
150     </tpl:EntryIf>
151
152     <!-- # Trackbacks -->
153     <tpl:EntryIf show_pings="1">
154          <div id="pings">
155               <h3>{{tpl:lang They posted on the same topic}}</h3>
156               <tpl:Pings>
157                    <tpl:PingsHeader>
158                         <dl>
159                    </tpl:PingsHeader>
160                         <dt id="c{{tpl:PingID}}" class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}"><a href="#c{{tpl:PingID}}"
161                         class="ping-number">{{tpl:PingOrderNumber}}.</a>
162                         {{tpl:lang On}} {{tpl:PingDate}}, {{tpl:PingTime}}
163                         {{tpl:lang by}} {{tpl:PingBlogName encode_html="1"}}</dt>
164
165                         <dd class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}">
166                         <!-- # --BEHAVIOR-- publicPingBeforeContent -->
167                         {{tpl:SysBehavior behavior="publicPingBeforeContent"}}
168
169                         <p><a href="{{tpl:PingAuthorURL}}"
170                         {{tpl:PingNoFollow}}>{{tpl:PingTitle encode_html="1"}}</a></p>
171                         {{tpl:PingContent}}
172
173                         <!-- # --BEHAVIOR-- publicPingAfterContent -->
174                         {{tpl:SysBehavior behavior="publicPingAfterContent"}}
175                         </dd>
176                    <tpl:PingsFooter>
177                         </dl>
178                    </tpl:PingsFooter>
179               </tpl:Pings>
180          </div>
181     </tpl:EntryIf>
182
183     <tpl:EntryIf pings_active="1">
184          <p id="ping-url">{{tpl:lang Trackback URL}}&nbsp;: {{tpl:EntryPingLink}}</p>
185     </tpl:EntryIf>
186
187     <tpl:EntryIf operator="or" comments_active="1" pings_active="1">
188          <p id="comments-feed"><a class="feed" href="{{tpl:BlogFeedURL type="atom"}}/comments/{{tpl:EntryID}}"
189          title="{{tpl:lang This page's comments feed}}">{{tpl:lang This page's comments feed}}</a></p>
190     </tpl:EntryIf>
191</tpl:Block>
Note: See TracBrowser for help on using the repository browser.

Sites map