Changeset 2603

Show
Ignore:
Timestamp:
06/19/08 01:10:24 (6 months ago)
Author:
bsmith
Message:

bugzid:79938 - Normalizing Template Tags

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-40/default_templates/archive_index.mtml

    r2101 r2603  
    33<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard"> 
    44<head> 
    5     <$mt:include module="<__trans phrase="HTML Head">"$> 
    6     <title><$MTBlogName encode_html="1"$>: <__trans phrase="Archives"></title> 
     5    <$mt:Include module="<__trans phrase="HTML Head">"$> 
     6    <title><$mt:BlogName encode_html="1"$>: <__trans phrase="Archives"></title> 
    77</head> 
    8 <body id="<$mt:BlogTemplateSetID$>" class="mt-archive-index <$MTVar name="page_layout"$>"> 
     8<body id="<$mt:BlogTemplateSetID$>" class="mt-archive-index <$mt:Var name="page_layout"$>"> 
    99    <div id="container"> 
    1010        <div id="container-inner"> 
    1111 
    1212 
    13             <$mt:include module="<__trans phrase="Banner Header">"$> 
     13            <$mt:Include module="<__trans phrase="Banner Header">"$> 
    1414 
    1515 
     
    2323                            <h1 id="page-title" class="archive-title"><__trans phrase="Archives"></h1> 
    2424 
    25 <mt:ignore> 
     25<mt:Ignore> 
    2626    <!-- List of monthly archives, if monthly archives are enabled --> 
    27 </mt:ignore> 
    28 <MTIfArchiveTypeEnabled archive_type="Monthly"> 
     27</mt:Ignore> 
     28<mt:IfArchiveTypeEnabled archive_type="Monthly"> 
    2929                            <div class="archive-monthly archive-date-based archive"> 
    30     <MTArchiveList archive_type="Monthly"> 
    31         <MTArchiveListHeader> 
     30    <mt:ArchiveList archive_type="Monthly"> 
     31        <mt:ArchiveListHeader> 
    3232                                <h2 class="archive-header"><__trans phrase="Monthly Archives"></h2> 
    3333                                <div class="archive-content"> 
    3434                                    <ul class="archive-list"> 
    35         </MTArchiveListHeader> 
    36                                         <li class="archive-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a></li> 
    37         <MTArchiveListFooter> 
     35        </mt:ArchiveListHeader> 
     36                                        <li class="archive-list-item"><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$></a></li> 
     37        <mt:ArchiveListFooter> 
    3838                                    </ul> 
    3939                                </div> 
    40         </MTArchiveListFooter> 
    41     </MTArchiveList> 
     40        </mt:ArchiveListFooter> 
     41    </mt:ArchiveList> 
    4242                            </div> 
    43 </MTIfArchiveTypeEnabled> 
     43</mt:IfArchiveTypeEnabled> 
    4444 
    4545 
    46 <mt:ignore> 
     46<mt:Ignore> 
    4747    <!-- List of category archives, if category archives are enabled --> 
    48 </mt:ignore> 
    49 <MTIfArchiveTypeEnabled archive_type="Category"> 
     48</mt:Ignore> 
     49<mt:IfArchiveTypeEnabled archive_type="Category"> 
    5050                            <div class="archive-category archive"> 
    5151                                <h2 class="archive-header"><__trans phrase="Categories"></h2> 
    5252                                <div class="archive-content"> 
    53     <MTTopLevelCategories> 
    54         <MTSubCatIsFirst> 
     53    <mt:TopLevelCategories> 
     54        <mt:SubCatIsFirst> 
    5555                                    <ul class="archive-list"> 
    56         </MTSubCatIsFirst> 
    57         <MTIfNonZero tag="MTCategoryCount"> 
    58                                         <li class="archive-list-item"><a href="<$MTCategoryArchiveLink$>" title="<$MTCategoryDescription$>"><$MTCategoryLabel$></a> 
    59         <MTElse> 
    60                                         <li class="archive-list-item"><$MTCategoryLabel$> 
    61         </MTIfNonZero> 
    62         <MTSubCatsRecurse
     56        </mt:SubCatIsFirst> 
     57        <mt:IfNonZero tag="MTCategoryCount"> 
     58                                        <li class="archive-list-item"><a href="<$mt:CategoryArchiveLink$>" title="<$mt:CategoryDescription$>"><$mt:CategoryLabel$></a> 
     59        <mt:Else> 
     60                                        <li class="archive-list-item"><$mt:CategoryLabel$> 
     61        </mt:IfNonZero> 
     62        <$mt:SubCatsRecurse$
    6363                                        </li> 
    64         <MTSubCatIsLast> 
     64        <mt:SubCatIsLast> 
    6565                                    </ul> 
    66         </MTSubCatIsLast> 
    67     </MTTopLevelCategories> 
     66        </mt:SubCatIsLast> 
     67    </mt:TopLevelCategories> 
    6868                                </div> 
    6969                            </div> 
    70 </MTIfArchiveTypeEnabled> 
     70</mt:IfArchiveTypeEnabled> 
    7171 
    7272 
    73 <mt:ignore> 
     73<mt:Ignore> 
    7474    <!-- List of author archives, if category author are enabled --> 
    75     <MTIfArchiveTypeEnabled archive_type="Author"> 
     75    <mt:IfArchiveTypeEnabled archive_type="Author"> 
    7676                                <div class="archive-author archive"> 
    77         <MTArchiveList archive_type="Author"> 
    78             <MTArchiveListHeader> 
     77        <mt:ArchiveList archive_type="Author"> 
     78            <mt:ArchiveListHeader> 
    7979                                    <h2 class="archive-header"><__trans phrase="Author Archives"></h2> 
    8080                                    <div class="archive-content"> 
    8181                                        <ul class="archive-list"> 
    82             </MTArchiveListHeader> 
    83                                             <li class="archive-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a></li> 
    84             <MTArchiveListFooter> 
     82            </mt:ArchiveListHeader> 
     83                                            <li class="archive-list-item"><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$></a></li> 
     84            <mt:ArchiveListFooter> 
    8585                                        </ul> 
    8686                                    </div> 
    87             </MTArchiveListFooter> 
    88         </MTArchiveList> 
     87            </mt:ArchiveListFooter> 
     88        </mt:ArchiveList> 
    8989                                </div> 
    90     </MTIfArchiveTypeEnabled> 
    91 </mt:ignore> 
     90    </mt:IfArchiveTypeEnabled> 
     91</mt:Ignore> 
    9292 
    9393 
    94 <mt:ignore> 
     94<mt:Ignore> 
    9595    <!-- List of category archives by month, if category archives are enabled --> 
    96     <MTIfArchiveTypeEnabled archive_type="Category-Monthly"> 
     96    <mt:IfArchiveTypeEnabled archive_type="Category-Monthly"> 
    9797                                <div class="archive-category-monthly archive"> 
    98         <MTArchiveList archive_type="Category-Monthly"> 
    99             <MTArchiveListHeader> 
     98        <mt:ArchiveList archive_type="Category-Monthly"> 
     99            <mt:ArchiveListHeader> 
    100100                                    <h2 class="archive-header"><__trans phrase="Category Monthly Archives"></h2> 
    101101                                    <div class="archive-content"> 
    102102                                        <ul class="archive-list"> 
    103             </MTArchiveListHeader> 
    104                                             <li class="archive-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a></li> 
    105             <MTArchiveListFooter> 
     103            </mt:ArchiveListHeader> 
     104                                            <li class="archive-list-item"><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$></a></li> 
     105            <mt:ArchiveListFooter> 
    106106                                        </ul> 
    107107                                    </div> 
    108             </MTArchiveListFooter> 
    109         </MTArchiveList> 
     108            </mt:ArchiveListFooter> 
     109        </mt:ArchiveList> 
    110110                                </div> 
    111     </MTIfArchiveTypeEnabled> 
    112 </mt:ignore> 
     111    </mt:IfArchiveTypeEnabled> 
     112</mt:Ignore> 
    113113 
    114114 
    115 <mt:ignore> 
     115<mt:Ignore> 
    116116    <!-- List of author archives, if category archives are enabled --> 
    117     <MTIfArchiveTypeEnabled archive_type="Author-Monthly"> 
     117    <mt:IfArchiveTypeEnabled archive_type="Author-Monthly"> 
    118118                                <div class="archive-author-monthly archive"> 
    119         <MTArchiveList archive_type="Author-Monthly"> 
    120             <MTArchiveListHeader> 
     119        <mt:ArchiveList archive_type="Author-Monthly"> 
     120            <mt:ArchiveListHeader> 
    121121                                    <h2 class="archive-header"><__trans phrase="Author Monthly Archives"></h2> 
    122122                                    <div class="archive-content"> 
    123123                                        <ul class="archive-list"> 
    124             </MTArchiveListHeader> 
    125                                             <li class="archive-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a></li> 
    126             <MTArchiveListFooter> 
     124            </mt:ArchiveListHeader> 
     125                                            <li class="archive-list-item"><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$></a></li> 
     126            <mt:ArchiveListFooter> 
    127127                                        </ul> 
    128128                                    </div> 
    129             </MTArchiveListFooter> 
    130         </MTArchiveList> 
     129            </mt:ArchiveListFooter> 
     130        </mt:ArchiveList> 
    131131                                </div> 
    132     </MTIfArchiveTypeEnabled> 
    133 </mt:ignore> 
     132    </mt:IfArchiveTypeEnabled> 
     133</mt:Ignore> 
    134134 
    135135 
    136 <mt:ignore> 
     136<mt:Ignore> 
    137137    <!-- List of entry archives, if entry archives are enabled --> 
    138 <MTIfArchiveTypeEnabled archive_type="Individual"> 
     138<mt:IfArchiveTypeEnabled archive_type="Individual"> 
    139139                            <div class="archive-individual archive-date-based archive"> 
    140     <MTArchiveList archive_type="Individual"> 
    141         <MTArchiveListHeader> 
     140    <mt:ArchiveList archive_type="Individual"> 
     141        <mt:ArchiveListHeader> 
    142142                                <div class="archive-content"> 
    143143                                    <ul class="archive-list"> 
    144         </MTArchiveListHeader> 
    145                                         <li class="archive-list-item"><$MTArchiveDate format="%Y.%m.%d"$>: <a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a></li> 
    146         <MTArchiveListFooter> 
     144        </mt:ArchiveListHeader> 
     145                                        <li class="archive-list-item"><$mt:ArchiveDate format="%Y.%m.%d"$>: <a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$></a></li> 
     146        <mt:ArchiveListFooter> 
    147147                                    </ul> 
    148148                                </div> 
    149         </MTArchiveListFooter> 
    150     </MTArchiveList> 
     149        </mt:ArchiveListFooter> 
     150    </mt:ArchiveList> 
    151151                            </div> 
    152 </MTIfArchiveTypeEnabled> 
    153 </mt:ignore> 
     152</mt:IfArchiveTypeEnabled> 
     153</mt:Ignore> 
    154154 
    155155 
     
    158158 
    159159 
    160                     <$MTInclude module="<__trans phrase="Sidebar">"$> 
     160                    <$mt:Include module="<__trans phrase="Sidebar">"$> 
    161161 
    162162 
     
    165165 
    166166 
    167             <$mt:include module="<__trans phrase="Banner Footer">"$> 
     167            <$mt:Include module="<__trans phrase="Banner Footer">"$> 
    168168 
    169169 
  • branches/release-40/default_templates/archive_widgets_group.mtml

    r2052 r2603  
    22    <__trans phrase="This is a custom set of widgets that are conditioned to serve different content based upon what type of archive it is included. More info: [_1]" params="http://www.movabletype.org/documentation/designer/widget-sets.html"> 
    33</mt:Ignore> 
    4 <mt:if name="category_archive"> 
     4<mt:If name="category_archive"> 
    55    <mt:IfArchiveTypeEnabled archive_type="Category-Monthly"> 
    6         <$mt:include widget="<__trans phrase="Current Category Monthly Archives">"$> 
     6        <$mt:Include widget="<__trans phrase="Current Category Monthly Archives">"$> 
    77    </mt:IfArchiveTypeEnabled> 
    8 </mt:if> 
     8</mt:If> 
    99<mt:IfArchiveTypeEnabled archive_type="Category"> 
    10     <$mt:include widget="<__trans phrase="Category Archives">"$> 
     10    <$mt:Include widget="<__trans phrase="Category Archives">"$> 
    1111</mt:IfArchiveTypeEnabled> 
    1212<mt:IfArchiveTypeEnabled archive_type="Monthly"> 
    13     <$mt:include widget="<__trans phrase="Monthly Archives">"$> 
     13    <$mt:Include widget="<__trans phrase="Monthly Archives">"$> 
    1414</mt:IfArchiveTypeEnabled> 
  • branches/release-40/default_templates/banner_footer.mtml

    r1851 r2603  
    77                </div> 
    88            </div> 
    9 <MTBlogIfCCLicense> 
     9<mt:BlogIfCCLicense> 
    1010            <div class="widget-creative-commons widget"> 
    1111                <div class="widget-content"> 
    12                     <__trans phrase="This blog is licensed under a <a href="[_1]">Creative Commons License</a>." params="<$MTBlogCCLicenseURL$>"> 
     12                    <__trans phrase="This blog is licensed under a <a href="[_1]">Creative Commons License</a>." params="<$mt:BlogCCLicenseURL$>"> 
    1313                </div> 
    1414            </div> 
    15 </MTBlogIfCCLicense> 
     15</mt:BlogIfCCLicense> 
    1616        </div> 
    1717    </div> 
  • branches/release-40/default_templates/banner_header.mtml

    r1851 r2603  
    22    <div id="header-inner"> 
    33        <div id="header-content"> 
    4 <mt:ignore><!-- Use h1 and h2 html tags on the main index of the blog as the title, use divs on all other pages where there are page titles. --></mt:ignore> 
    5 <MTIf name="main_index"> 
    6             <h1 id="header-name"><a href="<$MTBlogURL$>" accesskey="1"><$MTBlogName encode_html="1"$></a></h1> 
    7             <h2 id="header-description"><$MTBlogDescription$></h2> 
    8 <MTElse> 
    9             <div id="header-name"><a href="<$MTBlogURL$>" accesskey="1"><$MTBlogName encode_html="1"$></a></div> 
    10             <div id="header-description"><$MTBlogDescription$></div> 
    11 </MTIf> 
     4<mt:Ignore><!-- Use h1 and h2 html tags on the main index of the blog as the title, use divs on all other pages where there are page titles. --></mt:Ignore> 
     5<mt:If name="main_index"> 
     6            <h1 id="header-name"><a href="<$mt:BlogURL$>" accesskey="1"><$mt:BlogName encode_html="1"$></a></h1> 
     7            <h2 id="header-description"><$mt:BlogDescription$></h2> 
     8<mt:Else> 
     9            <div id="header-name"><a href="<$mt:BlogURL$>" accesskey="1"><$mt:BlogName encode_html="1"$></a></div> 
     10            <div id="header-description"><$mt:BlogDescription$></div> 
     11</mt:If> 
    1212        </div> 
    1313    </div> 
  • branches/release-40/default_templates/category_entry_listing.mtml

    r2101 r2603  
    33<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard"> 
    44<head> 
    5     <$mt:include module="<__trans phrase="HTML Head">"$> 
    6     <title><$MTBlogName encode_html="1"$>: <__trans phrase="[_1] Archives" params="<$MTArchiveTitle$>"></title> 
    7 <mt:ignore> 
     5    <$mt:Include module="<__trans phrase="HTML Head">"$> 
     6    <title><$mt:BlogName encode_html="1"$>: <__trans phrase="[_1] Archives" params="<$mt:ArchiveTitle$>"></title> 
     7<mt:Ignore> 
    88    <!-- Include Next and Previous links if publishing a date-based archive --> 
    9 </mt:ignore> 
    10 <MTIf name="datebased_archive"> 
    11     <MTArchivePrevious><link rel="prev" href="<$MTArchiveLink$>" title="<$MTArchiveTitle encode_html="1"$>" /></MTArchivePrevious> 
    12     <MTArchiveNext><link rel="next" href="<$MTArchiveLink$>" title="<$MTArchiveTitle encode_html="1"$>" /></MTArchiveNext> 
    13 </MTIf> 
     9</mt:Ignore> 
     10<mt:If name="datebased_archive"> 
     11    <mt:ArchivePrevious><link rel="prev" href="<$mt:ArchiveLink$>" title="<$mt:ArchiveTitle encode_html="1"$>" /></mt:ArchivePrevious> 
     12    <mt:ArchiveNext><link rel="next" href="<$mt:ArchiveLink$>" title="<$mt:ArchiveTitle encode_html="1"$>" /></mt:ArchiveNext> 
     13</mt:If> 
    1414</head> 
    15 <body id="<$mt:BlogTemplateSetID$>" class="mt-archive-listing mt-<MTVar name="archive_class"> <$MTVar name="page_layout"$>"> 
     15<body id="<$mt:BlogTemplateSetID$>" class="mt-archive-listing mt-<$mt:Var name="archive_class"$> <$mt:Var name="page_layout"$>"> 
    1616    <div id="container"> 
    1717        <div id="container-inner"> 
    1818 
    1919 
    20             <$mt:include module="<__trans phrase="Banner Header">"$> 
     20            <$mt:Include module="<__trans phrase="Banner Header">"$> 
    2121 
    2222 
     
    2727                    <div id="alpha"> 
    2828                        <div id="alpha-inner"> 
    29 <MTIf name="datebased_archive"> 
    30                             <mt:ignore><!-- Title for category-monthly entry listings --></mt:ignore> 
    31                             <h1 id="page-title" class="archive-title"><__trans phrase="[_1] Archives" params="<$MTArchiveTitle$>"></h1> 
    32 <MTElse> 
    33                             <mt:ignore><!-- Title for category entry listings --></mt:ignore> 
    34                             <h1 id="page-title" class="archive-title"><__trans phrase="Recently in <em>[_1]</em> Category" params="<$MTArchiveTitle$>"></h1> 
    35 </MTIf> 
     29<mt:If name="datebased_archive"> 
     30                            <mt:Ignore><!-- Title for category-monthly entry listings --></mt:Ignore> 
     31                            <h1 id="page-title" class="archive-title"><__trans phrase="[_1] Archives" params="<$mt:ArchiveTitle$>"></h1> 
     32<mt:Else> 
     33                            <mt:Ignore><!-- Title for category entry listings --></mt:Ignore> 
     34                            <h1 id="page-title" class="archive-title"><__trans phrase="Recently in <em>[_1]</em> Category" params="<$mt:ArchiveTitle$>"></h1> 
     35</mt:If> 
    3636 
    3737 
    38 <mt:ignore><!-- Limit number of entries to the number set in Blog Entry Settings --></mt:ignore> 
    39 <MTUnless name="datebased_archive"><$mt:setvar name="limit" value="auto"$></MTUnless> 
    40 <MTEntries limit="$limit"> 
    41                             <mt:ignore><!-- Use the Entry Summary module for each entry published on this page --></mt:ignore> 
    42                             <$mt:include module="<__trans phrase="Entry Summary">"$> 
    43 </MTEntries> 
     38<mt:Ignore><!-- Limit number of entries to the number set in Blog Entry Settings --></mt:Ignore> 
     39<mt:Unless name="datebased_archive"><$mt:SetVar name="limit" value="auto"$></mt:Unless> 
     40<mt:Entries limit="$limit"> 
     41                            <mt:Ignore><!-- Use the Entry Summary module for each entry published on this page --></mt:Ignore> 
     42                            <$mt:Include module="<__trans phrase="Entry Summary">"$> 
     43</mt:Entries> 
    4444 
    4545 
    4646                            <div class="content-nav"> 
    47                                 <MTArchivePrevious><a href="<$MTArchiveLink$>">&laquo; <$MTArchiveTitle$></a> |</MTArchivePrevious> 
    48                                 <a href="<$MTLink template="main_index"$>"><__trans phrase="Main Index"></a> | 
    49                                 <a href="<$MTLink template="archive_index"$>"><__trans phrase="Archives"></a> 
    50                                 <MTArchiveNext>| <a href="<$MTArchiveLink$>"><$MTArchiveTitle$> &raquo;</a></MTArchiveNext> 
     47                                <mt:ArchivePrevious><a href="<$mt:ArchiveLink$>">&laquo; <$mt:ArchiveTitle$></a> |</mt:ArchivePrevious> 
     48                                <a href="<$mt:Link template="main_index"$>"><__trans phrase="Main Index"></a> | 
     49                                <a href="<$mt:Link template="archive_index"$>"><__trans phrase="Archives"></a> 
     50                                <mt:ArchiveNext>| <a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$> &raquo;</a></mt:ArchiveNext> 
    5151                            </div> 
    5252 
     
    5656 
    5757 
    58                     <$MTInclude module="<__trans phrase="Sidebar">"$> 
     58                    <$mt:Include module="<__trans phrase="Sidebar">"$> 
    5959 
    6060 
     
    6363 
    6464 
    65             <$mt:include module="<__trans phrase="Banner Footer">"$> 
     65            <$mt:Include module="<__trans phrase="Banner Footer">"$> 
    6666 
    6767 
  • branches/release-40/default_templates/comment_preview.mtml

    r2394 r2603  
    55    <script type="text/javascript"> 
    66    /* <![CDATA[ */ 
    7     var user = <$MTUserSessionState$>; 
     7    var user = <$mt:UserSessionState$>; 
    88    var is_preview = true; 
    99    /* ]]> */ 
    1010    </script> 
    11     <$mt:include module="<__trans phrase="HTML Head">"$> 
    12     <title><$MTBlogName encode_html="1"$>: <__trans phrase="Previewing your Comment"></title> 
     11    <$mt:Include module="<__trans phrase="HTML Head">"$> 
     12    <title><$mt:BlogName encode_html="1"$>: <__trans phrase="Previewing your Comment"></title> 
    1313</head> 
    14 <body id="<$mt:BlogTemplateSetID$>" class="mt-comment-preview <$MTVar name="page_layout"$>" onload="mtEntryOnLoad()"> 
     14<body id="<$mt:BlogTemplateSetID$>" class="mt-comment-preview <$mt:Var name="page_layout"$>" onload="mtEntryOnLoad()"> 
    1515    <div id="container"> 
    1616        <div id="container-inner"> 
    1717 
    1818 
    19             <$mt:include module="<__trans phrase="Banner Header">"$> 
     19            <$mt:Include module="<__trans phrase="Banner Header">"$> 
    2020 
    2121 
     
    2828 
    2929 
    30                             <h1 id="page-title"><$MTVar name="page_title"$></h1> 
     30                            <h1 id="page-title"><$mt:Var name="page_title"$></h1> 
    3131 
    3232 
    33 <mt:ignore><!-- Comment Preview --></mt:ignore> 
    34                             <div class="comment" id="comment-<$MTCommentID$>"> 
     33<mt:Ignore><!-- Comment Preview --></mt:Ignore> 
     34                            <div class="comment" id="comment-<$mt:CommentID$>"> 
    3535                                <div class="inner"> 
    3636                                    <div class="comment-header"> 
    3737                                        <div class="asset-meta"> 
    3838                                            <span class="byline"> 
    39                                                 <$MTCommentAuthorIdentity$> 
     39                                                <$mt:CommentAuthorIdentity$> 
    4040    <mt:IfCommentParent> 
    41                                                 <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<span class="vcard author"><$MTCommentAuthorLink$></span>%%<mt:CommentParent><$mt:CommentLink$></mt:CommentParent>%%<mt:CommentParent><$MTCommentAuthor$></mt:CommentParent>"> 
    42     <mt:else> 
    43                                                 <span class="vcard author"><$MTCommentAuthorLink$></span> 
     41                                                <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<span class="vcard author"><$mt:CommentAuthorLink$></span>%%<mt:CommentParent><$mt:CommentLink$></mt:CommentParent>%%<mt:CommentParent><$mt:CommentAuthor$></mt:CommentParent>"> 
     42    <mt:Else> 
     43                                                <span class="vcard author"><$mt:CommentAuthorLink$></span> 
    4444    </mt:IfCommentParent> 
    45                                                 | <a href="<$mt:CommentLink$>"><abbr class="published" title="<$MTCommentDate format_name="iso8601"$>"><$MTCommentDate$></abbr></a> 
     45                                                | <a href="<$mt:CommentLink$>"><abbr class="published" title="<$mt:CommentDate format_name="iso8601"$>"><$mt:CommentDate$></abbr></a> 
    4646                                            </span> 
    4747                                        </div> 
    4848                                    </div> 
    4949                                    <div class="comment-content"> 
    50                                         <$MTCommentBody$> 
     50                                        <$mt:CommentBody$> 
    5151                                    </div> 
    5252                                </div> 
     
    5454 
    5555 
    56 <mt:ignore><!-- Comment Form --></mt:ignore> 
     56<mt:Ignore><!-- Comment Form --></mt:Ignore> 
    5757                            <div class="comments-open" id="comments-open"> 
    5858                                <h2 class="comments-open-header"><__trans phrase="Leave a comment"></h2> 
    5959                                <div class="comments-open-content"> 
    6060                                    <div id="comment-greeting"></div> 
    61                                     <form method="post" action="<$MTCGIPath$><$MTCommentScript$>" name="comments_form" id="comments-form" onsubmit="return mtCommentOnSubmit(this)"> 
     61                                    <form method="post" action="<$mt:CGIPath$><$mt:CommentScript$>" name="comments_form" id="comments-form" onsubmit="return mtCommentOnSubmit(this)"> 
    6262                                        <input type="hidden" name="static" value="1" /> 
    6363                                        <input type="hidden" name="armor" value="1" /> 
    6464                                        <input type="hidden" name="preview" value="" /> 
    65                                         <input type="hidden" name="entry_id" value="<$MTEntryID$>" /> 
    66                                         <input type="hidden" name="__lang" value="<$MTBlogLanguage$>" /> 
     65                                        <input type="hidden" name="entry_id" value="<$mt:EntryID$>" /> 
     66                                        <input type="hidden" name="__lang" value="<$mt:BlogLanguage$>" /> 
    6767<mt:IfCommentParent> 
    68                                             <input type="hidden" name="parent_id" value="<$mt:CommentParentId$>" id="comment-parent-id"> 
     68                                            <input type="hidden" name="parent_id" value="<$mt:CommentParentID$>" id="comment-parent-id"> 
    6969</mt:IfCommentParent> 
    7070                                        <div id="comments-open-data"> 
    7171                                            <div id="comment-form-name"> 
    7272                                                <label for="comment-author"><__trans phrase="Name"></label> 
    73                                                 <input id="comment-author" name="author" size="30" value="<$MTCommentAuthor encode_html="1"$>" onfocus="mtShowCaptcha()" /> 
     73                                                <input id="comment-author" name="author" size="30" value="<$mt:CommentAuthor encode_html="1"$>" onfocus="mtShowCaptcha()" /> 
    7474                                            </div> 
    7575                                            <div id="comment-form-email"> 
    7676                                                <label for="comment-email"><__trans phrase="Email Address"></label> 
    77                                                 <input id="comment-email" name="email" size="30" value="<$MTCommentEmail encode_html="1"$>" onfocus="mtShowCaptcha()" /> 
     77                                                <input id="comment-email" name="email" size="30" value="<$mt:CommentEmail encode_html="1"$>" onfocus="mtShowCaptcha()" /> 
    7878                                            </div> 
    7979                                            <div id="comment-form-url"> 
    8080                                                <label for="comment-url"><__trans phrase="URL"></label> 
    81                                                 <input id="comment-url" name="url" size="30" value="<$MTCommentURL encode_html="1"$>" onfocus="mtShowCaptcha()" /> 
     81                                                <input id="comment-url" name="url" size="30" value="<$mt:CommentURL encode_html="1"$>" onfocus="mtShowCaptcha()" /> 
    8282                                            </div> 
    8383                                        </div> 
    8484<mt:IfCommentParent> 
    8585                                        <div id="comment-form-reply"> 
    86                                             <input type="checkbox" id="comment-reply" name="comment_reply" value="<$mt:CommentParentId$>" checked="checked" onclick="mtSetCommentParentID()" /> 
    87                                             <label for="comment-reply" id="comment-reply-label"><__trans phrase="Replying to comment from [_1]" params="<mt:CommentParent><$MTCommentAuthor$></mt:CommentParent>"></label> 
     86                                            <input type="checkbox" id="comment-reply" name="comment_reply" value="<$mt:CommentParentID$>" checked="checked" onclick="mtSetCommentParentID()" /> 
     87                                            <label for="comment-reply" id="comment-reply-label"><__trans phrase="Replying to comment from [_1]" params="<mt:CommentParent><$mt:CommentAuthor$></mt:CommentParent>"></label> 
    8888                                        </div> 
    8989</mt:IfCommentParent> 
    9090                                        <div id="comments-open-text"> 
    91                                             <label for="comment-text"><__trans phrase="Comments"> <MTIfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></MTIfAllowCommentHTML></label> 
    92                                             <textarea id="comment-text" name="text" rows="15" cols="50" onfocus="mtShowCaptcha()"><$MTCommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></textarea> 
     91                                            <label for="comment-text"><__trans phrase="Comments"> <mt:IfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></mt:IfAllowCommentHTML></label> 
     92                                            <textarea id="comment-text" name="text" rows="15" cols="50" onfocus="mtShowCaptcha()"><$mt:CommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></textarea> 
    9393                                        </div> 
    9494                                        <div id="comments-open-captcha"></div> 
     
    9696                                            <input type="submit" accesskey="v" name="preview_button" id="comment-preview" value="<__trans phrase="Preview">" onclick="this.form.preview.value='1';" /> 
    9797                                            <input type="submit" accesskey="s" name="post" id="comment-submit" value="<__trans phrase="Submit">" /> 
    98                                             <input type="button" name="cancel" id="comment-cancel" value="<__trans phrase="Cancel">" onclick="window.location='<$MTEntryPermalink$>'" /> 
     98                                            <input type="button" name="cancel" id="comment-cancel" value="<__trans phrase="Cancel">" onclick="window.location='<$mt:EntryPermalink$>'" /> 
    9999                                        </div> 
    100100                                    </form> 
     
    105105 
    106106 
    107                     <$MTInclude module="<__trans phrase="Sidebar">"$> 
     107                    <$mt:Include module="<__trans phrase="Sidebar">"$> 
    108108 
    109109 
     
    112112 
    113113 
    114             <$mt:include module="<__trans phrase="Banner Footer">"$> 
     114            <$mt:Include module="<__trans phrase="Banner Footer">"$> 
    115115 
    116116 
  • branches/release-40/default_templates/comment_response.mtml

    r2393 r2603  
    55 
    66 
    7 <MTIf name="comment_confirmation"> 
    8     <mt:ignore><!-- Success message when comment has been submitted --></mt:ignore> 
    9     <MTSetVar name="page_title" value="<__trans phrase="Confirmation...">"
    10     <MTSetVar name="message" value="<p><__trans phrase="Your comment has been submitted!"></p>"
    11 <MTElse name="comment_pending"> 
    12     <mt:ignore><!-- Pending message when comment is being held for review --></mt:ignore> 
    13     <MTSetVar name="page_title" value="<__trans phrase="Thank you for commenting.">"
    14     <MTSetVar name="message" value="<p><__trans phrase="Your comment has been received and held for approval by the blog owner."></p>"
    15 <MTElse name="comment_error"> 
    16     <mt:ignore><!-- Error message when comment submission fails --></mt:ignore> 
    17     <MTSetVar name="page_title" value="<__trans phrase="Comment Submission Error">"
    18     <MTSetVarBlock name="message"><p><__trans phrase="Your comment submission failed for the following reasons: [_1]" params="<$MTErrorMessage$>"></p></MTSetVarBlock> 
    19 </MTIf> 
     7<mt:If name="comment_confirmation"> 
     8    <mt:Ignore><!-- Success message when comment has been submitted --></mt:Ignore> 
     9    <$mt:SetVar name="page_title" value="<__trans phrase="Confirmation...">"$
     10    <$mt:SetVar name="message" value="<p><__trans phrase="Your comment has been submitted!"></p>"$
     11<mt:Else name="comment_pending"> 
     12    <mt:Ignore><!-- Pending message when comment is being held for review --></mt:Ignore> 
     13    <$mt:SetVar name="page_title" value="<__trans phrase="Thank you for commenting.">"$
     14    <$mt:SetVar name="message" value="<p><__trans phrase="Your comment has been received and held for approval by the blog owner."></p>"$
     15<mt:Else name="comment_error"> 
     16    <mt:Ignore><!-- Error message when comment submission fails --></mt:Ignore> 
     17    <$mt:SetVar name="page_title" value="<__trans phrase="Comment Submission Error">"$
     18    <mt:SetVarBlock name="message"><p><__trans phrase="Your comment submission failed for the following reasons: [_1]" params="<$mt:ErrorMessage$>"></p></mt:SetVarBlock> 
     19</mt:If> 
    2020 
    2121 
    22     <$mt:include module="<__trans phrase="HTML Head">"$> 
    23     <title><$MTBlogName encode_html="1"$>: <$MTVar name="page_title"$></title> 
     22    <$mt:Include module="<__trans phrase="HTML Head">"$> 
     23    <title><$mt:BlogName encode_html="1"$>: <$mt:Var name="page_title"$></title> 
    2424</head> 
    25 <body id="<$mt:BlogTemplateSetID$>" class="<$mt:var name="body_class"$> <$MTVar name="page_layout"$>"> 
     25<body id="<$mt:BlogTemplateSetID$>" class="<$mt:Var name="body_class"$> <$mt:Var name="page_layout"$>"> 
    2626    <div id="container"> 
    2727        <div id="container-inner"> 
    2828 
    2929 
    30             <$mt:include module="<__trans phrase="Banner Header">"$> 
     30            <$mt:Include module="<__trans phrase="Banner Header">"$> 
    3131 
    3232 
     
    3737                    <div id="alpha"> 
    3838                        <div id="alpha-inner"> 
    39                             <h1 id="page-title"><$MTVar name="page_title"$></h1> 
    40                             <$MTVar name="message"$> 
    41                             <p><__trans phrase="Return to the <a href="[_1]">original entry</a>." params="<$MTEntryLink$>"></p> 
     39                            <h1 id="page-title"><$mt:Var name="page_title"$></h1> 
     40                            <$mt:Var name="message"$> 
     41                            <p><__trans phrase="Return to the <a href="[_1]">original entry</a>." params="<$mt:EntryLink$>"></p> 
    4242                        </div> 
    4343                    </div> 
    4444 
    4545 
    46                     <$MTInclude module="<__trans phrase="Sidebar">"$> 
     46                    <$mt:Include module="<__trans phrase="Sidebar">"$> 
    4747 
    4848 
     
    5151 
    5252 
    53             <$mt:include module="<__trans phrase="Banner Footer">"$> 
     53            <$mt:Include module="<__trans phrase="Banner Footer">"$> 
    5454 
    5555 
  • branches/release-40/default_templates/comment_throttle.mtml

    r1103 r2603  
    1 <mt:setvarblock name="message"><__trans phrase="If this was a mistake, you can unblock the IP address and allow the visitor to add it again by logging in to your Movable Type installation, going to Blog Config - IP Banning, and deleting the IP address [_1] from the list of banned addresses." params="<mt:var name="throttled_ip">"></mt:setvarblock> 
    2 <__trans phrase="A visitor to your blog [_1] has automatically been banned by adding more than the allowed number of comments in the last [_2] seconds." params="<$MTBlogName$>%%<mt:var name="throttle_seconds">"> 
     1<mt:SetVarBlock name="message"><__trans phrase="If this was a mistake, you can unblock the IP address and allow the visitor to add it again by logging in to your Movable Type installation, going to Blog Config - IP Banning, and deleting the IP address [_1] from the list of banned addresses." params="<$mt:Var name="throttled_ip"$>"></mt:SetVarBlock> 
     2<__trans phrase="A visitor to your blog [_1] has automatically been banned by adding more than the allowed number of comments in the last [_2] seconds." params="<$mt:BlogName$>%%<$mt:Var name="throttle_seconds"$>"> 
    33 
    44<__trans phrase="This has been done to prevent a m