Dotclear

Changeset 4003:58ac4ad9d676


Ignore:
Timestamp:
07/02/19 11:09:54 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Switching from inline JS variables to JSON script, templates/themes

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • inc/js/post.js

    r3706 r4003  
    1 /*global $, post_remember_str */ 
     1/*global $, getData */ 
    22'use strict'; 
    33 
    44$(function() { 
     5  var post_remember_str = post_remember_str || getData('dc_post_remember_str').post_remember_str; 
     6 
    57     $('#comment-form p:has(input[type=submit][name=preview],button[type=submit][name=preview])'). 
    68          before( 
     
    1113 
    1214     var cookie = readCookie($.cookie('comment_info')); 
    13  
    1415 
    1516     if (cookie != false) { 
  • inc/public/default-templates/currywurst/post.html

    r3422 r4003  
    2222     {{tpl:parent}} 
    2323 
    24      <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=post.js"></script> 
    25      <script type="text/javascript"> 
    26           var post_remember_str = '{{tpl:lang Remember me on this blog}}'; 
    27      </script> 
     24  <script type="application/json" id="dc_post_remember_str-data"> 
     25    {"post_remember_str": "{{tpl:lang Remember me on this blog}}"} 
     26  </script> 
     27  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=util.js"></script> 
     28  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=post.js"></script> 
    2829</tpl:Block> 
    2930 
  • inc/public/default-templates/dotty/post.html

    r3847 r4003  
    2222     {{tpl:parent}} 
    2323 
    24      <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=post.js"></script> 
    25      <script type="text/javascript"> 
    26           var post_remember_str = '{{tpl:lang Remember me on this blog}}'; 
    27      </script> 
     24  <script type="application/json" id="dc_post_remember_str-data"> 
     25    {"post_remember_str": "{{tpl:lang Remember me on this blog}}"} 
     26  </script> 
     27  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=util.js"></script> 
     28  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=post.js"></script> 
    2829</tpl:Block> 
    2930 
  • inc/public/default-templates/mustek/post.html

    r3958 r4003  
    22 
    33<tpl:Block name="head-title"> 
    4      <title>{{tpl:EntryTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}</title> 
     4  <title>{{tpl:EntryTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}</title> 
    55</tpl:Block> 
    66 
    77<tpl:Block name="meta-entry"> 
    8      <meta name="description" lang="{{tpl:EntryLang}}" content="{{tpl:EntryContent full="1" encode_html="1" remove_html="1" cut_string="180"}}" /> 
    9      <meta name="author" content="{{tpl:EntryAuthorCommonName encode_html="1"}}" /> 
    10      <meta name="date" content="{{tpl:EntryDate iso8601="1"}}" /> 
     8  <meta name="description" lang="{{tpl:EntryLang}}" content="{{tpl:EntryContent full="1" encode_html="1" remove_html="1" cut_string="180"}}" /> 
     9  <meta name="author" content="{{tpl:EntryAuthorCommonName encode_html="1"}}" /> 
     10  <meta name="date" content="{{tpl:EntryDate iso8601="1"}}" /> 
    1111</tpl:Block> 
    1212 
    1313<tpl:Block name="head-linkrel"> 
    14      <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 
    15      <tpl:EntryIf pings_active="1"><link rel="pingback" href="{{tpl:BlogXMLRPCURL}}" /></tpl:EntryIf> 
    16  
    17      <tpl:EntryNext><link rel="next" href="{{tpl:EntryURL}}" 
    18      title="{{tpl:EntryTitle encode_html="1"}}" /></tpl:EntryNext> 
    19  
    20      <tpl:EntryPrevious><link rel="prev" href="{{tpl:EntryURL}}" 
    21      title="{{tpl:EntryTitle encode_html="1"}}" /></tpl:EntryPrevious> 
    22  
    23      <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" /> 
     14  <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 
     15  <tpl:EntryIf pings_active="1"><link rel="pingback" href="{{tpl:BlogXMLRPCURL}}" /></tpl:EntryIf> 
     16 
     17  <tpl:EntryNext><link rel="next" href="{{tpl:EntryURL}}" 
     18  title="{{tpl:EntryTitle encode_html="1"}}" /></tpl:EntryNext> 
     19 
     20  <tpl:EntryPrevious><link rel="prev" href="{{tpl:EntryURL}}" 
     21  title="{{tpl:EntryTitle encode_html="1"}}" /></tpl:EntryPrevious> 
     22 
     23  <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" /> 
    2424</tpl:Block> 
    2525 
    2626<tpl:Block name="html-head"> 
    27      {{tpl:parent}} 
    28  
    29      <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=post.js"></script> 
    30      <script type="text/javascript"> 
    31           var post_remember_str = '{{tpl:lang Remember me on this blog}}'; 
    32      </script> 
     27  {{tpl:parent}} 
     28  <script type="application/json" id="dc_post_remember_str-data"> 
     29    {"post_remember_str": "{{tpl:lang Remember me on this blog}}"} 
     30  </script> 
     31  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=util.js"></script> 
     32  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=post.js"></script> 
    3333</tpl:Block> 
    3434 
     
    3636 
    3737<tpl:Block name="page-top"> 
    38      {{tpl:EntryPingData}} 
    39      {{tpl:parent}} 
     38  {{tpl:EntryPingData}} 
     39  {{tpl:parent}} 
    4040</tpl:Block> 
    4141 
    4242<tpl:Block name="main-content"> 
    43      <p id="navlinks"> 
    44           <tpl:EntryPrevious><a href="{{tpl:EntryURL}}" 
    45           title="{{tpl:EntryTitle encode_html="1"}}" class="prev">&#171; {{tpl:EntryTitle encode_html="1" 
    46           cut_string="50"}}</a></tpl:EntryPrevious> 
    47           <tpl:EntryNext> <span>-</span> <a href="{{tpl:EntryURL}}" 
    48           title="{{tpl:EntryTitle encode_html="1"}}" class="next">{{tpl:EntryTitle encode_html="1" 
    49           cut_string="50"}} &#187;</a></tpl:EntryNext> 
    50      </p> 
    51  
    52      <div id="p{{tpl:EntryID}}" class="post" role="article"> 
    53           <h2 class="post-title">{{tpl:EntryTitle encode_html="1"}}</h2> 
    54  
    55           <p class="post-info">{{tpl:lang By}} {{tpl:EntryAuthorLink}} 
    56           {{tpl:lang on}} {{tpl:EntryDate}}, {{tpl:EntryTime}} 
    57           <tpl:EntryIf has_category="1"> 
    58           - <a href="{{tpl:EntryCategoryURL}}">{{tpl:EntryCategory encode_html="1"}}</a> 
    59           </tpl:EntryIf> 
    60           - <a href="{{tpl:EntryURL}}">{{tpl:lang Permalink}}</a> 
    61           </p> 
    62  
    63           <tpl:EntryTags> 
    64           <tpl:TagsHeader><ul class="post-tags"></tpl:TagsHeader> 
    65           <li><a href="{{tpl:TagURL}}" rel="tag">{{tpl:TagID}}</a></li> 
    66           <tpl:TagsFooter></ul></tpl:TagsFooter> 
    67           </tpl:EntryTags> 
    68  
    69           <!-- # --BEHAVIOR-- publicEntryBeforeContent --> 
    70           {{tpl:SysBehavior behavior="publicEntryBeforeContent"}} 
    71  
    72           <!-- # Entry with an excerpt --> 
    73           <tpl:EntryIf extended="1"> 
    74                <div class="post-excerpt">{{tpl:EntryExcerpt}}</div> 
    75           </tpl:EntryIf> 
    76  
    77           <div class="post-content">{{tpl:EntryContent}}</div> 
    78  
    79           <!-- # --BEHAVIOR-- publicEntryAfterContent --> 
    80           {{tpl:SysBehavior behavior="publicEntryAfterContent"}} 
    81      </div> 
    82  
    83      <!-- # Attachments --> 
    84      <tpl:Attachments> 
    85           <tpl:AttachmentsHeader> 
    86                <div id="attachments"> 
    87                <h3>{{tpl:lang Attachments}}</h3> 
    88                <ul> 
    89           </tpl:AttachmentsHeader> 
    90                <li class="{{tpl:AttachmentType}}"> 
    91                     <tpl:AttachmentIf is_audio="1"> 
    92                          {{tpl:include src="_audio_player.html"}} 
    93                     </tpl:AttachmentIf> 
    94                     <tpl:AttachmentIf is_video="1"> 
    95                          {{tpl:include src="_video_player.html"}} 
     43  <p id="navlinks"> 
     44    <tpl:EntryPrevious><a href="{{tpl:EntryURL}}" 
     45    title="{{tpl:EntryTitle encode_html="1"}}" class="prev">&#171; {{tpl:EntryTitle encode_html="1" 
     46    cut_string="50"}}</a></tpl:EntryPrevious> 
     47    <tpl:EntryNext> <span>-</span> <a href="{{tpl:EntryURL}}" 
     48    title="{{tpl:EntryTitle encode_html="1"}}" class="next">{{tpl:EntryTitle encode_html="1" 
     49    cut_string="50"}} &#187;</a></tpl:EntryNext> 
     50  </p> 
     51 
     52  <div id="p{{tpl:EntryID}}" class="post" role="article"> 
     53    <h2 class="post-title">{{tpl:EntryTitle encode_html="1"}}</h2> 
     54 
     55    <p class="post-info">{{tpl:lang By}} {{tpl:EntryAuthorLink}} 
     56    {{tpl:lang on}} {{tpl:EntryDate}}, {{tpl:EntryTime}} 
     57    <tpl:EntryIf has_category="1"> 
     58    - <a href="{{tpl:EntryCategoryURL}}">{{tpl:EntryCategory encode_html="1"}}</a> 
     59    </tpl:EntryIf> 
     60    - <a href="{{tpl:EntryURL}}">{{tpl:lang Permalink}}</a> 
     61    </p> 
     62 
     63    <tpl:EntryTags> 
     64    <tpl:TagsHeader><ul class="post-tags"></tpl:TagsHeader> 
     65    <li><a href="{{tpl:TagURL}}" rel="tag">{{tpl:TagID}}</a></li> 
     66    <tpl:TagsFooter></ul></tpl:TagsFooter> 
     67    </tpl:EntryTags> 
     68 
     69    <!-- # --BEHAVIOR-- publicEntryBeforeContent --> 
     70    {{tpl:SysBehavior behavior="publicEntryBeforeContent"}} 
     71 
     72    <!-- # Entry with an excerpt --> 
     73    <tpl:EntryIf extended="1"> 
     74      <div class="post-excerpt">{{tpl:EntryExcerpt}}</div> 
     75    </tpl:EntryIf> 
     76 
     77    <div class="post-content">{{tpl:EntryContent}}</div> 
     78 
     79    <!-- # --BEHAVIOR-- publicEntryAfterContent --> 
     80    {{tpl:SysBehavior behavior="publicEntryAfterContent"}} 
     81  </div> 
     82 
     83  <!-- # Attachments --> 
     84  <tpl:Attachments> 
     85    <tpl:AttachmentsHeader> 
     86      <div id="attachments"> 
     87      <h3>{{tpl:lang Attachments}}</h3> 
     88      <ul> 
     89    </tpl:AttachmentsHeader> 
     90      <li class="{{tpl:AttachmentType}}"> 
     91        <tpl:AttachmentIf is_audio="1"> 
     92          {{tpl:include src="_audio_player.html"}} 
    9693        </tpl:AttachmentIf> 
    97             <tpl:AttachmentIf is_audio="0" is_video="0"> 
    98                     <a href="{{tpl:AttachmentURL}}" title="{{tpl:AttachmentFileName}} ({{tpl:AttachmentSize}})">{{tpl:AttachmentTitle}}</a> 
    99                     </tpl:AttachmentIf> 
    100                </li> 
    101           <tpl:AttachmentsFooter> 
    102                </ul> 
    103                </div> 
    104           </tpl:AttachmentsFooter> 
    105      </tpl:Attachments> 
    106  
    107      <!-- # Comments --> 
    108      <tpl:EntryIf show_comments="1"> 
    109           <tpl:Comments> 
    110           <tpl:CommentsHeader> 
    111                <div id="comments"> 
    112                     <h3>{{tpl:lang Comments}}</h3> 
    113                <dl> 
    114           </tpl:CommentsHeader> 
    115                <dt id="c{{tpl:CommentID}}" class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}"><a 
    116                href="#c{{tpl:CommentID}}" class="comment-number">{{tpl:CommentOrderNumber}}.</a> 
    117                {{tpl:lang On}} {{tpl:CommentDate}}, {{tpl:CommentTime}} 
    118                {{tpl:lang by}} {{tpl:CommentAuthorLink}}</dt> 
    119  
    120                <dd class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}"> 
    121                <!-- # --BEHAVIOR-- publicCommentBeforeContent --> 
    122                {{tpl:SysBehavior behavior="publicCommentBeforeContent"}} 
    123  
    124                {{tpl:CommentContent}} 
    125  
    126                <!-- # --BEHAVIOR-- publicCommentAfterContent --> 
    127                {{tpl:SysBehavior behavior="publicCommentAfterContent"}} 
    128                </dd> 
    129           <tpl:CommentsFooter> 
    130                </dl> 
    131                </div> 
    132           </tpl:CommentsFooter> 
    133           </tpl:Comments> 
    134      </tpl:EntryIf> 
    135  
    136      <tpl:EntryIf comments_active="1"> 
    137           <tpl:SysIfFormError> 
    138                <p class="error" id="pr">{{tpl:SysFormError}}</p> 
    139           </tpl:SysIfFormError> 
    140  
    141           <tpl:SysIfCommentPublished> 
    142                <p class="message" id="pr">{{tpl:lang Your comment has been published.}}</p> 
    143           </tpl:SysIfCommentPublished> 
    144  
    145           <tpl:SysIfCommentPending> 
    146                <p class="message" id="pr">{{tpl:lang Your comment has been submitted and 
    147                will be reviewed for publication.}}</p> 
    148           </tpl:SysIfCommentPending> 
    149  
    150           <!-- # Comment form --> 
    151           <form action="{{tpl:EntryURL}}#pr" method="post" id="comment-form" role="form"> 
    152                <tpl:IfCommentPreview> 
    153                     <div id="pr"> 
    154                          <h3>{{tpl:lang Your comment}}</h3> 
    155                          <dl> 
    156                               <dd class="comment-preview">{{tpl:CommentPreviewContent}}</dd> 
    157                          </dl> 
    158                          <p class="buttons"><input type="submit" class="submit" value="{{tpl:lang send}}" /></p> 
    159                     </div> 
    160                </tpl:IfCommentPreview> 
    161  
    162                <h3>{{tpl:lang Add a comment}}</h3> 
    163                <fieldset> 
    164                     <!-- # --BEHAVIOR-- publicCommentFormBeforeContent --> 
    165                     {{tpl:SysBehavior behavior="publicCommentFormBeforeContent"}} 
    166  
    167                     <p class="field"><label for="c_name">{{tpl:lang Name or nickname}}&nbsp;:</label> 
    168                     <input name="c_name" id="c_name" type="text" size="30" maxlength="255" 
    169                     value="{{tpl:CommentPreviewName encode_html="1"}}" /> 
    170                     </p> 
    171  
    172                     <p class="field"><label for="c_mail">{{tpl:lang Email address}}&nbsp;:</label> 
    173                     <input name="c_mail" id="c_mail" type="text" size="30" maxlength="255" 
    174                     value="{{tpl:CommentPreviewEmail encode_html="1"}}" /> 
    175                     </p> 
    176  
    177                     <p class="field"><label for="c_site">{{tpl:lang Website}} ({{tpl:lang optional}})&nbsp;:</label> 
    178                     <input name="c_site" id="c_site" type="text" size="30" maxlength="255" 
    179                     value="{{tpl:CommentPreviewSite encode_html="1"}}" /> 
    180                     </p> 
    181  
    182                     <p style="display:none"><input name="f_mail" type="text" size="30" 
    183                     maxlength="255" value="" /></p> 
    184  
    185                     <p class="field"><label for="c_content">{{tpl:lang Comment}}&nbsp;:</label> 
    186                     <textarea name="c_content" id="c_content" cols="35" 
    187                     rows="7">{{tpl:CommentPreviewContent raw="1" encode_html="1"}}</textarea> 
    188                     </p> 
    189                     <p class="form-help">{{tpl:CommentHelp}}</p> 
    190  
    191                     <!-- # --BEHAVIOR-- publicCommentFormAfterContent --> 
    192                     {{tpl:SysBehavior behavior="publicCommentFormAfterContent"}} 
    193                </fieldset> 
    194  
    195                <fieldset> 
    196                     <p class="buttons"><input type="submit" class="preview" name="preview" value="{{tpl:lang preview}}" /> 
    197                     <tpl:IfCommentPreviewOptional><input type="submit" class="submit" value="{{tpl:lang send}}" /></tpl:IfCommentPreviewOptional></p> 
    198                </fieldset> 
    199           </form> 
    200      </tpl:EntryIf> 
    201  
    202      <!-- # Trackbacks --> 
    203      <tpl:EntryIf show_pings="1"> 
    204           <div id="pings"> 
    205                <h3>{{tpl:lang They posted on the same topic}}</h3> 
    206                <tpl:Pings> 
    207                     <tpl:PingsHeader> 
    208                     <dl> 
    209                     </tpl:PingsHeader> 
    210                          <dt id="c{{tpl:PingID}}" class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}"><a href="#c{{tpl:PingID}}" 
    211                          class="ping-number">{{tpl:PingOrderNumber}}.</a> 
    212                          {{tpl:lang On}} {{tpl:PingDate}}, {{tpl:PingTime}} 
    213                          {{tpl:lang by}} {{tpl:PingBlogName encode_html="1"}}</dt> 
    214  
    215                          <dd class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}"> 
    216                          <!-- # --BEHAVIOR-- publicPingBeforeContent --> 
    217                          {{tpl:SysBehavior behavior="publicPingBeforeContent"}} 
    218  
    219                          <p><a href="{{tpl:PingAuthorURL}}" 
    220                          {{tpl:PingNoFollow}}>{{tpl:PingTitle encode_html="1"}}</a></p> 
    221                          {{tpl:PingContent}} 
    222  
    223                          <!-- # --BEHAVIOR-- publicPingAfterContent --> 
    224                          {{tpl:SysBehavior behavior="publicPingAfterContent"}} 
    225                          </dd> 
    226                     <tpl:PingsFooter> 
    227                     </dl> 
    228                     </tpl:PingsFooter> 
    229                </tpl:Pings> 
    230           </div> 
    231      </tpl:EntryIf> 
    232  
    233      <tpl:EntryIf pings_active="1"> 
    234           <p id="ping-url">{{tpl:lang Trackback URL}}&nbsp;: {{tpl:EntryPingLink}}</p> 
    235      </tpl:EntryIf> 
    236  
    237      <tpl:EntryIf operator="or" comments_active="1" pings_active="1"> 
    238      <p id="comments-feed"><a class="feed" href="{{tpl:BlogFeedURL type="atom"}}/comments/{{tpl:EntryID}}" 
    239      title="{{tpl:lang This post's comments Atom feed}}">{{tpl:lang This post's comments feed}}</a></p> 
    240      </tpl:EntryIf> 
    241 </tpl:Block> 
     94        <tpl:AttachmentIf is_video="1"> 
     95          {{tpl:include src="_video_player.html"}} 
     96        </tpl:AttachmentIf> 
     97        <tpl:AttachmentIf is_audio="0" is_video="0"> 
     98           <a href="{{tpl:AttachmentURL}}" title="{{tpl:AttachmentFileName}} ({{tpl:AttachmentSize}})">{{tpl:AttachmentTitle}}</a> 
     99        </tpl:AttachmentIf> 
     100      </li> 
     101    <tpl:AttachmentsFooter> 
     102      </ul> 
     103      </div> 
     104    </tpl:AttachmentsFooter> 
     105  </tpl:Attachments> 
     106 
     107  <!-- # Comments --> 
     108  <tpl:EntryIf show_comments="1"> 
     109    <tpl:Comments> 
     110    <tpl:CommentsHeader> 
     111      <div id="comments"> 
     112        <h3>{{tpl:lang Comments}}</h3> 
     113      <dl> 
     114    </tpl:CommentsHeader> 
     115      <dt id="c{{tpl:CommentID}}" class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}"><a 
     116      href="#c{{tpl:CommentID}}" class="comment-number">{{tpl:CommentOrderNumber}}.</a> 
     117      {{tpl:lang On}} {{tpl:CommentDate}}, {{tpl:CommentTime}} 
     118      {{tpl:lang by}} {{tpl:CommentAuthorLink}}</dt> 
     119 
     120      <dd class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}"> 
     121      <!-- # --BEHAVIOR-- publicCommentBeforeContent --> 
     122      {{tpl:SysBehavior behavior="publicCommentBeforeContent"}} 
     123 
     124      {{tpl:CommentContent}} 
     125 
     126      <!-- # --BEHAVIOR-- publicCommentAfterContent --> 
     127      {{tpl:SysBehavior behavior="publicCommentAfterContent"}} 
     128      </dd> 
     129    <tpl:CommentsFooter> 
     130      </dl> 
     131      </div> 
     132    </tpl:CommentsFooter> 
     133    </tpl:Comments> 
     134  </tpl:EntryIf> 
     135 
     136  <tpl:EntryIf comments_active="1"> 
     137    <tpl:SysIfFormError> 
     138      <p class="error" id="pr">{{tpl:SysFormError}}</p> 
     139    </tpl:SysIfFormError> 
     140 
     141    <tpl:SysIfCommentPublished> 
     142      <p class="message" id="pr">{{tpl:lang Your comment has been published.}}</p> 
     143    </tpl:SysIfCommentPublished> 
     144 
     145    <tpl:SysIfCommentPending> 
     146      <p class="message" id="pr">{{tpl:lang Your comment has been submitted and 
     147      will be reviewed for publication.}}</p> 
     148    </tpl:SysIfCommentPending> 
     149 
     150    <!-- # Comment form --> 
     151    <form action="{{tpl:EntryURL}}#pr" method="post" id="comment-form" role="form"> 
     152      <tpl:IfCommentPreview> 
     153        <div id="pr"> 
     154          <h3>{{tpl:lang Your comment}}</h3> 
     155          <dl> 
     156            <dd class="comment-preview">{{tpl:CommentPreviewContent}}</dd> 
     157          </dl> 
     158          <p class="buttons"><input type="submit" class="submit" value="{{tpl:lang send}}" /></p> 
     159        </div> 
     160      </tpl:IfCommentPreview> 
     161 
     162      <h3>{{tpl:lang Add a comment}}</h3> 
     163      <fieldset> 
     164        <!-- # --BEHAVIOR-- publicCommentFormBeforeContent --> 
     165        {{tpl:SysBehavior behavior="publicCommentFormBeforeContent"}} 
     166 
     167        <p class="field"><label for="c_name">{{tpl:lang Name or nickname}}&nbsp;:</label> 
     168        <input name="c_name" id="c_name" type="text" size="30" maxlength="255" 
     169        value="{{tpl:CommentPreviewName encode_html="1"}}" /> 
     170        </p> 
     171 
     172        <p class="field"><label for="c_mail">{{tpl:lang Email address}}&nbsp;:</label> 
     173        <input name="c_mail" id="c_mail" type="text" size="30" maxlength="255" 
     174        value="{{tpl:CommentPreviewEmail encode_html="1"}}" /> 
     175        </p> 
     176 
     177        <p class="field"><label for="c_site">{{tpl:lang Website}} ({{tpl:lang optional}})&nbsp;:</label> 
     178        <input name="c_site" id="c_site" type="text" size="30" maxlength="255" 
     179        value="{{tpl:CommentPreviewSite encode_html="1"}}" /> 
     180        </p> 
     181 
     182        <p style="display:none"><input name="f_mail" type="text" size="30" 
     183        maxlength="255" value="" /></p> 
     184 
     185        <p class="field"><label for="c_content">{{tpl:lang Comment}}&nbsp;:</label> 
     186        <textarea name="c_content" id="c_content" cols="35" 
     187        rows="7">{{tpl:CommentPreviewContent raw="1" encode_html="1"}}</textarea> 
     188        </p> 
     189        <p class="form-help">{{tpl:CommentHelp}}</p> 
     190 
     191        <!-- # --BEHAVIOR-- publicCommentFormAfterContent --> 
     192        {{tpl:SysBehavior behavior="publicCommentFormAfterContent"}} 
     193      </fieldset> 
     194 
     195      <fieldset> 
     196        <p class="buttons"><input type="submit" class="preview" name="preview" value="{{tpl:lang preview}}" /> 
     197        <tpl:IfCommentPreviewOptional><input type="submit" class="submit" value="{{tpl:lang send}}" /></tpl:IfCommentPreviewOptional></p> 
     198      </fieldset> 
     199    </form> 
     200  </tpl:EntryIf> 
     201 
     202  <!-- # Trackbacks --> 
     203  <tpl:EntryIf show_pings="1"> 
     204    <div id="pings"> 
     205      <h3>{{tpl:lang They posted on the same topic}}</h3> 
     206      <tpl:Pings> 
     207        <tpl:PingsHeader> 
     208        <dl> 
     209        </tpl:PingsHeader> 
     210          <dt id="c{{tpl:PingID}}" class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}"><a href="#c{{tpl:PingID}}" 
     211          class="ping-number">{{tpl:PingOrderNumber}}.</a> 
     212          {{tpl:lang On}} {{tpl:PingDate}}, {{tpl:PingTime}} 
     213          {{tpl:lang by}} {{tpl:PingBlogName encode_html="1"}}</dt> 
     214 
     215          <dd class="{{tpl:PingIfOdd}} {{tpl:PingIfFirst}}"> 
     216          <!-- # --BEHAVIOR-- publicPingBeforeContent --> 
     217          {{tpl:SysBehavior behavior="publicPingBeforeContent"}} 
     218 
     219          <p><a href="{{tpl:PingAuthorURL}}" 
     220          {{tpl:PingNoFollow}}>{{tpl:PingTitle encode_html="1"}}</a></p> 
     221          {{tpl:PingContent}} 
     222 
     223          <!-- # --BEHAVIOR-- publicPingAfterContent --> 
     224          {{tpl:SysBehavior behavior="publicPingAfterContent"}} 
     225          </dd> 
     226        <tpl:PingsFooter> 
     227        </dl> 
     228        </tpl:PingsFooter> 
     229      </tpl:Pings> 
     230    </div> 
     231  </tpl:EntryIf> 
     232 
     233  <tpl:EntryIf pings_active="1"> 
     234    <p id="ping-url">{{tpl:lang Trackback URL}}&nbsp;: {{tpl:EntryPingLink}}</p> 
     235  </tpl:EntryIf> 
     236 
     237  <tpl:EntryIf operator="or" comments_active="1" pings_active="1"> 
     238  <p id="comments-feed"><a class="feed" href="{{tpl:BlogFeedURL type="atom"}}/comments/{{tpl:EntryID}}" 
     239  title="{{tpl:lang This post's comments Atom feed}}">{{tpl:lang This post's comments feed}}</a></p> 
     240  </tpl:EntryIf> 
     241</tpl:Block> 
  • themes/ductile/tpl/page.html

    r3422 r4003  
    1717     {{tpl:include src="_head.html"}} 
    1818 
    19      <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=post.js"></script> 
    20      <script type="text/javascript"> 
    21           var post_remember_str = '{{tpl:lang Remember me on this blog}}'; 
    22      </script> 
     19  <script type="application/json" id="dc_post_remember_str-data"> 
     20    {"post_remember_str": "{{tpl:lang Remember me on this blog}}"} 
     21  </script> 
     22  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=util.js"></script> 
     23  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=post.js"></script> 
    2324</head> 
    2425<body class="dc-page"> 
  • themes/ductile/tpl/post.html

    r3422 r4003  
    2020     {{tpl:include src="_head.html"}} 
    2121 
    22      <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=post.js"></script> 
    23      <script type="text/javascript"> 
    24           var post_remember_str = '{{tpl:lang Remember me on this blog}}'; 
    25      </script> 
     22  <script type="application/json" id="dc_post_remember_str-data"> 
     23    {"post_remember_str": "{{tpl:lang Remember me on this blog}}"} 
     24  </script> 
     25  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=util.js"></script> 
     26  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf=post.js"></script> 
    2627</head> 
    2728<body class="dc-post"> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map