Dotclear


Ignore:
Timestamp:
06/26/15 17:04:37 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/default-templates/mustek/page.html

    r3009 r3017  
    1 <!DOCTYPE html> 
    2 <html lang="{{tpl:BlogLanguage}}"> 
    3 <head> 
    4   <meta charset="UTF-8" /> 
    5   <meta name="ROBOTS" content="{{tpl:BlogMetaRobots}}" /> 
     1{{tpl:extends parent="post.html"}} 
    62 
    7   <title>{{tpl:EntryTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}</title> 
    8   <meta name="description" lang="{{tpl:EntryLang}}" content="{{tpl:EntryContent full="1" encode_html="1" remove_html="1" cut_string="180"}}" /> 
    9   <meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> 
    10   <meta name="author" content="{{tpl:EntryAuthorCommonName encode_html="1"}}" /> 
    11   <meta name="date" content="{{tpl:EntryDate iso8601="1"}}" /> 
     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> 
    129 
    13   <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" /> 
    14   <meta property="dc.title" content="{{tpl:EntryTitle encode_html="1"}}" /> 
    15   <meta property="dc.description" lang="{{tpl:EntryLang}}" content="{{tpl:EntryContent full="1" encode_html="1" remove_html="1" cut_string="180"}}" /> 
    16   <meta property="dc.creator" content="{{tpl:EntryAuthorCommonName encode_html="1"}}" /> 
    17   <meta property="dc.language" content="{{tpl:EntryLang}}" /> 
    18   <meta property="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" /> 
    19   <meta property="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> 
    20   <meta property="dc.date" content="{{tpl:EntryDate iso8601="1"}}" /> 
    21   <meta property="dc.type" content="text" /> 
    22   <meta property="dc.format" content="text/html" /> 
     10<tpl:Block name="body-tag"><body class="dc-page"></tpl:Block> 
    2311 
    24   <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> 
    25   <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 
    26   <tpl:EntryIf pings_active="1"><link rel="pingback" href="{{tpl:BlogXMLRPCURL}}" /></tpl:EntryIf> 
     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> 
    2715 
    28   <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" /> 
     16          <!-- # --BEHAVIOR-- publicEntryBeforeContent --> 
     17          {{tpl:SysBehavior behavior="publicEntryBeforeContent"}} 
    2918 
    30   {{tpl:include src="_head.html"}} 
     19          <tpl:EntryIf extended="1"> 
     20               <div class="post-excerpt">{{tpl:EntryExcerpt}}</div> 
     21          </tpl:EntryIf> 
     22          <div class="post-content">{{tpl:EntryContent}}</div> 
    3123 
    32   <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=post.js"></script> 
    33   <script type="text/javascript"> 
    34   //<![CDATA[ 
    35   var post_remember_str = '{{tpl:lang Remember me on this blog}}'; 
    36   //]]> 
    37   </script> 
    38 </head> 
     24          <p class="page-info">{{tpl:lang Published on}} {{tpl:EntryDate}} 
     25          {{tpl:lang by}} {{tpl:EntryAuthorLink}}</p> 
    3926 
    40 <body class="dc-page"> 
    41 <div id="page"> 
    42 {{tpl:EntryPingData}} 
     27          <!-- # --BEHAVIOR-- publicEntryAfterContent --> 
     28          {{tpl:SysBehavior behavior="publicEntryAfterContent"}} 
     29     </div> 
    4330 
    44 {{tpl:include src="_top.html"}} 
    45  
    46 <div id="wrapper"> 
    47  
    48 <div id="main" role="main"> 
    49   {{tpl:Breadcrumb}} 
    50   <div id="content"> 
    51  
    52   <div id="p{{tpl:EntryID}}" class="post" role="article"> 
    53     <h2 class="post-title">{{tpl:EntryTitle encode_html="1"}}</h2> 
    54  
    55     <!-- # --BEHAVIOR-- publicEntryBeforeContent --> 
    56     {{tpl:SysBehavior behavior="publicEntryBeforeContent"}} 
    57  
    58     <tpl:EntryIf extended="1"> 
    59       <div class="post-excerpt">{{tpl:EntryExcerpt}}</div> 
    60     </tpl:EntryIf> 
    61     <div class="post-content">{{tpl:EntryContent}}</div> 
    62  
    63     <p class="page-info">{{tpl:lang Published on}} {{tpl:EntryDate}} 
    64     {{tpl:lang by}} {{tpl:EntryAuthorLink}}</p> 
    65  
    66     <!-- # --BEHAVIOR-- publicEntryAfterContent --> 
    67     {{tpl:SysBehavior behavior="publicEntryAfterContent"}} 
    68   </div> 
    69  
    70   <!-- # Attachments --> 
    71   <tpl:Attachments> 
    72     <tpl:AttachmentsHeader> 
    73       <div id="attachments"> 
    74       <h3>{{tpl:lang Attachments}}</h3> 
    75       <ul> 
    76     </tpl:AttachmentsHeader> 
    77       <li class="{{tpl:AttachmentType}}"> 
    78         <tpl:AttachmentIf is_mp3="1"> 
    79           {{tpl:include src="_mp3_player.html"}} - 
    80         </tpl:AttachmentIf> 
    81         <tpl:AttachmentIf is_flv="1"> 
    82           {{tpl:include src="_flv_player.html"}} 
    83         </tpl:AttachmentIf> 
    84         <tpl:AttachmentIf is_flv="0"> 
    85           <a href="{{tpl:AttachmentURL}}" 
    86           title="{{tpl:AttachmentFileName}} ({{tpl:AttachmentSize}})">{{tpl:AttachmentTitle}}</a> 
    87         </tpl:AttachmentIf> 
    88       </li> 
    89     <tpl:AttachmentsFooter> 
    90       </ul> 
    91       </div> 
    92     </tpl:AttachmentsFooter> 
    93   </tpl:Attachments> 
     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> 
    9455 
    9556  <!-- # Comments --> 
    96   <tpl:EntryIf show_comments="1"> 
    97     <tpl:Comments> 
    98     <tpl:CommentsHeader> 
    99     <div id="comments"> 
    100       <h3>{{tpl:lang Comments}}</h3> 
    101       <dl> 
    102     </tpl:CommentsHeader> 
    103       <dt id="c{{tpl:CommentID}}" class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}"><a 
    104       href="#c{{tpl:CommentID}}" class="comment-number">{{tpl:CommentOrderNumber}}.</a> 
    105       {{tpl:lang On}} {{tpl:CommentDate}}, {{tpl:CommentTime}} 
    106       {{tpl:lang by}} {{tpl:CommentAuthorLink}}</dt> 
     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> 
    10768 
    108       <dd class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}"> 
    109       <!-- # --BEHAVIOR-- publicCommentBeforeContent --> 
    110       {{tpl:SysBehavior behavior="publicCommentBeforeContent"}} 
     69                         <dd class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}"> 
     70                              <!-- # --BEHAVIOR-- publicCommentBeforeContent --> 
     71                              {{tpl:SysBehavior behavior="publicCommentBeforeContent"}} 
    11172 
    112       {{tpl:CommentContent}} 
     73                              {{tpl:CommentContent}} 
    11374 
    114       <!-- # --BEHAVIOR-- publicCommentAfterContent --> 
    115       {{tpl:SysBehavior behavior="publicCommentAfterContent"}} 
    116       </dd> 
    117     <tpl:CommentsFooter> 
    118       </dl> 
    119     </div> 
    120     </tpl:CommentsFooter> 
    121     </tpl:Comments> 
    122   </tpl:EntryIf> 
     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> 
    12384 
    124   <tpl:EntryIf comments_active="1"> 
    125     <tpl:SysIfFormError> 
    126       <p class="error" id="pr">{{tpl:SysFormError}}</p> 
    127     </tpl:SysIfFormError> 
     85     <tpl:EntryIf comments_active="1"> 
     86          <tpl:SysIfFormError> 
     87               <p class="error" id="pr">{{tpl:SysFormError}}</p> 
     88          </tpl:SysIfFormError> 
    12889 
    129     <tpl:SysIfCommentPublished> 
    130       <p class="message" id="pr">{{tpl:lang Your comment has been published.}}</p> 
    131     </tpl:SysIfCommentPublished> 
     90          <tpl:SysIfCommentPublished> 
     91               <p class="message" id="pr">{{tpl:lang Your comment has been published.}}</p> 
     92          </tpl:SysIfCommentPublished> 
    13293 
    133     <tpl:SysIfCommentPending> 
    134       <p class="message" id="pr">{{tpl:lang Your comment has been submitted and 
    135       will be reviewed for publication.}}</p> 
    136     </tpl:SysIfCommentPending> 
     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> 
    13798 
    138     <!-- # Comment form --> 
    139     <form action="{{tpl:EntryURL}}#pr" method="post" id="comment-form" role="form"> 
    140       <tpl:IfCommentPreview> 
    141         <div id="pr"> 
    142           <h3>{{tpl:lang Your comment}}</h3> 
    143           <dl> 
    144             <dd class="comment-preview">{{tpl:CommentPreviewContent}}</dd> 
    145           </dl> 
    146           <p class="buttons"><input type="submit" class="submit" value="{{tpl:lang send}}" /></p> 
    147         </div> 
    148       </tpl:IfCommentPreview> 
     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> 
    149110 
    150       <h3>{{tpl:lang Add a comment}}</h3> 
    151       <fieldset> 
    152         <!-- # --BEHAVIOR-- publicCommentFormBeforeContent --> 
    153         {{tpl:SysBehavior behavior="publicCommentFormBeforeContent"}} 
     111               <h3>{{tpl:lang Add a comment}}</h3> 
     112               <fieldset> 
     113                    <!-- # --BEHAVIOR-- publicCommentFormBeforeContent --> 
     114                    {{tpl:SysBehavior behavior="publicCommentFormBeforeContent"}} 
    154115 
    155         <p class="field"><label for="c_name">{{tpl:lang Name or nickname}}&nbsp;:</label> 
    156         <input name="c_name" id="c_name" type="text" size="30" maxlength="255" 
    157         value="{{tpl:CommentPreviewName encode_html="1"}}" /> 
    158         </p> 
     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> 
    159120 
    160         <p class="field"><label for="c_mail">{{tpl:lang Email address}}&nbsp;:</label> 
    161         <input name="c_mail" id="c_mail" type="text" size="30" maxlength="255" 
    162         value="{{tpl:CommentPreviewEmail encode_html="1"}}" /> 
    163         </p> 
     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> 
    164125 
    165         <p class="field"><label for="c_site">{{tpl:lang Website}} ({{tpl:lang optional}})&nbsp;:</label> 
    166         <input name="c_site" id="c_site" type="text" size="30" maxlength="255" 
    167         value="{{tpl:CommentPreviewSite encode_html="1"}}" /> 
    168         </p> 
     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> 
    169130 
    170         <p style="display:none"><input name="f_mail" type="text" size="30" 
    171         maxlength="255" value="" /></p> 
     131                    <p style="display:none"><input name="f_mail" type="text" size="30" 
     132                    maxlength="255" value="" /></p> 
    172133 
    173         <p class="field"><label for="c_content">{{tpl:lang Comment}}&nbsp;:</label> 
    174         <textarea name="c_content" id="c_content" cols="35" 
    175         rows="7">{{tpl:CommentPreviewContent raw="1" encode_html="1"}}</textarea> 
    176         </p> 
     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> 
    177138 
    178         <p class="form-help">{{tpl:CommentHelp}}</p> 
     139                    <p class="form-help">{{tpl:CommentHelp}}</p> 
    179140 
    180         <!-- # --BEHAVIOR-- publicCommentFormAfterContent --> 
    181         {{tpl:SysBehavior behavior="publicCommentFormAfterContent"}} 
    182       </fieldset> 
     141                    <!-- # --BEHAVIOR-- publicCommentFormAfterContent --> 
     142                    {{tpl:SysBehavior behavior="publicCommentFormAfterContent"}} 
     143               </fieldset> 
    183144 
    184       <fieldset> 
    185         <p class="buttons"><input type="submit" class="preview" name="preview" value="{{tpl:lang preview}}" /> 
    186         <tpl:IfCommentPreviewOptional><input type="submit" class="submit" value="{{tpl:lang send}}" /></tpl:IfCommentPreviewOptional></p> 
    187       </fieldset> 
    188     </form> 
    189   </tpl:EntryIf> 
     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> 
    190151 
    191   <!-- # Trackbacks --> 
    192   <tpl:EntryIf show_pings="1"> 
    193     <div id="pings"> 
    194     <h3>{{tpl:lang They posted on the same topic}}</h3> 
    195     <tpl:Pings> 
    196       <tpl:PingsHeader> 
    197       <dl> 
    198       </tpl:PingsHeader> 
    199         <dt id="c{{tpl:PingID}}" class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}"><a href="#c{{tpl:PingID}}" 
    200         class="ping-number">{{tpl:PingOrderNumber}}.</a> 
    201         {{tpl:lang On}} {{tpl:PingDate}}, {{tpl:PingTime}} 
    202         {{tpl:lang by}} {{tpl:PingBlogName encode_html="1"}}</dt> 
     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> 
    203164 
    204         <dd class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}"> 
    205         <!-- # --BEHAVIOR-- publicPingBeforeContent --> 
    206         {{tpl:SysBehavior behavior="publicPingBeforeContent"}} 
     165                         <dd class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}"> 
     166                         <!-- # --BEHAVIOR-- publicPingBeforeContent --> 
     167                         {{tpl:SysBehavior behavior="publicPingBeforeContent"}} 
    207168 
    208         <p><a href="{{tpl:PingAuthorURL}}" 
    209         {{tpl:PingNoFollow}}>{{tpl:PingTitle encode_html="1"}}</a></p> 
    210         {{tpl:PingContent}} 
     169                         <p><a href="{{tpl:PingAuthorURL}}" 
     170                         {{tpl:PingNoFollow}}>{{tpl:PingTitle encode_html="1"}}</a></p> 
     171                         {{tpl:PingContent}} 
    211172 
    212         <!-- # --BEHAVIOR-- publicPingAfterContent --> 
    213         {{tpl:SysBehavior behavior="publicPingAfterContent"}} 
    214         </dd> 
    215       <tpl:PingsFooter> 
    216       </dl> 
    217       </tpl:PingsFooter> 
    218     </tpl:Pings> 
    219     </div> 
    220   </tpl:EntryIf> 
     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> 
    221182 
    222   <tpl:EntryIf pings_active="1"> 
    223     <p id="ping-url">{{tpl:lang Trackback URL}}&nbsp;: {{tpl:EntryPingLink}}</p> 
    224   </tpl:EntryIf> 
     183     <tpl:EntryIf pings_active="1"> 
     184          <p id="ping-url">{{tpl:lang Trackback URL}}&nbsp;: {{tpl:EntryPingLink}}</p> 
     185     </tpl:EntryIf> 
    225186 
    226   <tpl:EntryIf operator="or" comments_active="1" pings_active="1"> 
    227   <p id="comments-feed"><a class="feed" href="{{tpl:BlogFeedURL type="atom"}}/comments/{{tpl:EntryID}}" 
    228   title="{{tpl:lang This page's comments feed}}">{{tpl:lang This page's comments feed}}</a></p> 
    229   </tpl:EntryIf> 
    230   </div> 
    231 </div> <!-- End #main --> 
    232  
    233 <div id="sidebar" role="complementary"> 
    234   <div id="blognav"> 
    235     {{tpl:Widgets type="nav"}} 
    236   </div> <!-- End #blognav --> 
    237  
    238   <div id="blogextra"> 
    239     {{tpl:Widgets type="extra"}} 
    240   </div> <!-- End #blogextra --> 
    241 </div> 
    242  
    243 </div> <!-- End #wrapper --> 
    244  
    245 {{tpl:include src="_footer.html"}} 
    246 </div> <!-- End #page --> 
    247 </body> 
    248 </html> 
     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 TracChangeset for help on using the changeset viewer.

Sites map