root/branches/release-31/default_templates/sidebar_2col.mtml @ 1503

Revision 1503, 13.5 kB (checked in by fumiakiy, 21 months ago)

Renamed search related configuration directives so they all have prefix "Search". BugId:69751

Renamed CfgMaxResults template tag to be SearchMaxResults.

  • Property svn:executable set to *
Line 
1<div id="beta">
2    <div id="beta-inner">
3        <div class="widget-search widget">
4            <h3 class="widget-header"><__trans phrase="Search"></h3>
5            <div class="widget-content">
6                <form method="get" action="<$MTCGIPath$><$MTSearchScript$>">
7                    <input id="search" name="search" size="20" value="<$MTSearchString$>" />
8                    <input type="hidden" name="limit" value="<MTSearchMaxResults>" />
9        <MTIf name="search_results_template">
10                    <input type="hidden" name="IncludeBlogs" value="<$MTSearchIncludeBlogs$>" />
11                    <MTIgnore>
12                    <!-- use these options only with MT::App::Search::Legacy -->
13                    <ul class="search-options">
14                        <li><input type="checkbox" name="CaseSearch" /> <__trans phrase="Case sensitive"></li>
15                        <li><input type="checkbox" name="RegexSearch" /> <__trans phrase="Regex search"></li>
16                    </ul>
17                    </MTIgnore>
18        <mt:else>
19                    <input type="hidden" name="IncludeBlogs" value="<$MTBlogID$>" />
20                    <input type="hidden" name="limit" value="<MTSearchMaxResults>" />
21        </mt:if>
22                    <input type="submit" value="<__trans phrase="Search">" />
23                </form>
24            </div>
25        </div>
26<MTIf name="search_results_template">
27    <MTIfTagSearch>
28        <div class="widget-tags widget">
29            <h3 class="widget-header"><__trans phrase="Tags"></h3>
30            <div class="widget-content">
31                <ul class="widget-list">
32        <MTTags>
33                    <li class="widget-list-item"><a href="<$MTTagSearchLink$>"><__trans phrase="[_1] ([_2])" params="<$MTTagName$>%%<$MTTagCount$>"></a></li>
34        </MTTags>
35                </ul>
36            </div>
37        </div>
38    </MTIfTagSearch>
39</MTIf>
40<MTIf name="module_about_context">
41        <div class="widget-about-this-page widget">
42            <h3 class="widget-header">
43    <MTIf name="entry_template">
44                <__trans phrase="About this Entry">
45    <MTElse>
46        <MTIf name="archive_template">
47                <__trans phrase="About this Archive">
48        </MTIf>
49    </MTIf>
50    <MTIf name="archive_index">
51                <__trans phrase="About Archives">
52    </MTIf>
53            </h3>
54            <div class="widget-content">
55    <MTIf name="archive_index">
56                <p><__trans phrase="This page contains links to all the archived content."></p>
57    </MTIf>
58    <MTIf name="entry_template">
59                <p class="first"><__trans phrase="This page contains a single entry by [_1] published on <em>[_2]</em>." params="<$MTEntryAuthorLink$>%%<$MTEntryDate format="%x %X"$>"></p>
60        <MTEntryPrevious>
61                <p><__trans phrase="<a href="[_1]">[_2]</a> was the previous entry in this blog." params="<$MTEntryPermalink$>%%<$MTEntryTitle remove_html="1"$>"></p>
62        </MTEntryPrevious>
63        <MTEntryNext>
64                <p><__trans phrase="<a href="[_1]">[_2]</a> is the next entry in this blog." params="<$MTEntryPermalink$>%%<$MTEntryTitle remove_html="1"$>"></p>
65        </MTEntryNext>
66    </MTIf>
67    <MTIf name="category_archive">
68        <MTIf name="datebased_archive">
69                <p class="first"><__trans phrase="This page is a archive of entries in the <strong>[_1]</strong> category from <strong>[_2]</strong>." params="<$MTCategoryLabel$>%%<$MTArchiveDate format="%B %Y"$>"></p>
70            <MTArchivePrevious>
71                <p><__trans phrase="<a href="[_1]">[_2]</a> is the previous archive." params="<$MTArchiveLink$>%%<$MTArchiveTitle$>"></p>
72            </MTArchivePrevious>
73            <MTArchiveNext>
74                <p><__trans phrase="<a href="[_1]">[_2]</a> is the next archive." params="<$MTArchiveLink$>%%<$MTArchiveTitle$>"></p>
75            </MTArchiveNext>
76        <MTElse>
77                <p class="first"><__trans phrase="This page is a archive of recent entries in the <strong>[_1]</strong> category." params="<$MTCategoryLabel$>"></p>
78            <MTCategoryPrevious>
79                <p><__trans phrase="<a href="[_1]">[_2]</a> is the previous category." params="<$MTCategoryArchiveLink$>%%<$MTCategoryLabel$>"></p>
80            </MTCategoryPrevious>
81            <MTCategoryNext>
82                <p><__trans phrase="<a href="[_1]">[_2]</a> is the next category." params="<$MTCategoryArchiveLink$>%%<$MTCategoryLabel$>"></p>
83            </MTCategoryNext>
84        </MTIf>
85    </MTIf>
86    <MTIf name="author_archive">
87        <MTIf name="datebased_archive">
88                <p class="first"><__trans phrase="This page is a archive of recent entries written by <strong>[_1]</strong> in <strong>[_2]</strong>." params="<$MTAuthorDisplayName$>%%<$MTArchiveDate format="%B %Y"$>"></p>
89            <MTArchivePrevious>
90                <p><__trans phrase="<a href="[_1]">[_2]</a> is the previous archive." params="<$MTArchiveLink$>%%<$MTArchiveTitle$>"></p>
91            </MTArchivePrevious>
92            <MTArchiveNext>
93                <p><__trans phrase="<a href="[_1]">[_2]</a> is the next archive." params="<$MTArchiveLink$>%%<$MTArchiveTitle$>"></p>
94            </MTArchiveNext>
95        <MTElse>
96                <p class="first"><__trans phrase="This page is a archive of recent entries written by <strong>[_1]</strong>." params="<$MTAuthorDisplayName$>"></p>
97        </MTIf>
98    </MTIf>
99    <MTIf name="datebased_only_archive">
100                <p class="first"><__trans phrase="This page is an archive of entries from <strong>[_2]</strong> listed from newest to oldest." params="<$MTBlogName$>%%<$MTArchiveDate format="%B %Y"$>"></p>
101        <MTArchivePrevious>
102                <p><__trans phrase="<a href="[_1]">[_2]</a> is the previous archive." params="<$MTArchiveLink$>%%<$MTArchiveTitle$>"></p>
103        </MTArchivePrevious>
104        <MTArchiveNext>
105                <p><__trans phrase="<a href="[_1]">[_2]</a> is the next archive." params="<$MTArchiveLink$>%%<$MTArchiveTitle$>"></p>
106        </MTArchiveNext>
107    </MTIf>
108    <MTIf name="archive_index">
109                <p><__trans phrase="Find recent content on the <a href="[_1]">main index</a>." params="<$MTBlogURL$>"></p>
110    <MTElse>
111                <p><__trans phrase="Find recent content on the <a href="[_1]">main index</a> or look in the <a href="[_2]">archives</a> to find all content." params="<$MTBlogURL$>%%<$MTLink template="archive_index"$>"></p>
112    </MTIf>
113            </div>
114        </div>
115</MTIf>
116<MTIf name="module_recent_entries">
117        <div class="widget-archive widget">
118            <h3 class="widget-header"><__trans phrase="Recent Entries"></h3>
119            <div class="widget-content">
120                <ul class="widget-list">
121    <MTEntries lastn="10">
122                    <li class="widget-list-item"><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>
123    </MTEntries>
124                </ul>
125            </div>
126        </div>
127</MTIf>
128<MTIf name="main_index">
129    <MTIfNonZero tag="AssetCount">
130        <MTAssets type="image" lastn="10">
131            <MTAssetsHeader>
132        <div class="widget-recent-assets widget">
133            <h3 class="widget-header"><__trans phrase="Photos"></h3>
134            <div class="widget-content">
135                <ul class="widget-list"></MTAssetsHeader>
136                <li class="item"><a class="asset-image" href="<$MTAssetURL$>"><img src="<$MTAssetThumbnailURL height="70"$>" class="asset-img-thumb" alt="<$MTAssetLabel$>" title="<$MTAssetLabel$>" /></a></li>
137            <MTAssetsFooter></ul>
138            </div>
139        </div>
140            </MTAssetsFooter>
141        </MTAssets>
142    </MTIfNonZero>
143</MTIf>
144<MTIf name="main_index">
145    <MTIfArchiveTypeEnabled archive_type="Category">
146        <div class="widget-categories widget">
147            <h3 class="widget-header"><__trans phrase="Categories"></h3>
148            <div class="widget-content">
149        <MTTopLevelCategories>
150            <MTSubCatIsFirst>
151                <ul class="widget-list">
152            </MTSubCatIsFirst>
153            <MTIfNonZero tag="MTCategoryCount">
154                    <li class="widget-list-item"><a href="<$MTCategoryArchiveLink$>"<MTIfNonEmpty tag="MTCategoryDescription"> title="<$MTCategoryDescription$>"</MTIfNonEmpty>><__trans phrase="[_1] ([_2])" params="<$MTCategoryLabel$>%%<$MTCategoryCount$>"></a>
155            <MTElse>
156                    <li class="widget-list-item"><$MTCategoryLabel$>
157            </MTIfNonZero>
158            <MTSubCatsRecurse>
159                    </li>
160            <MTSubCatIsLast>
161                </ul>
162            </MTSubCatIsLast>
163        </MTTopLevelCategories>
164            </div>
165        </div>
166    </MTIfArchiveTypeEnabled>
167</MTIf>
168<MTIf name="main_index">
169        <div class="widget-tag-cloud widget">
170            <h3 class="widget-header"><__trans phrase="Tag Cloud"></h3>
171            <div class="widget-content">
172                <ul class="widget-list">
173    <MTTags limit="20" sort_by="rank">
174                    <li class="rank-<$MTTagRank max="10"$> widget-list-item"><a href="<$MTTagSearchLink$>"><$MTTagName$></a></li>
175    </MTTags>
176                </ul>
177            </div>
178        </div>
179</MTIf>
180<MTIf name="main_index">
181    <MTIfArchiveTypeEnabled archive_type="Author">
182        <MTArchiveList archive_type="Author">
183            <MTArchiveListHeader>
184        <div class="widget-authors widget">
185            <h3 class="widget-header"><__trans phrase="Author Archives"></h3>
186            <div class="widget-content">
187                <ul class="widget-list">
188            </MTArchiveListHeader>
189                    <li class="widget-list-item"><a href="<$MTArchiveLink$>"><__trans phrase="[_1] ([_2])" params="<$MTArchiveTitle$>%%<$MTArchiveCount$>"></a></li>
190            <MTArchiveListFooter>
191                </ul>
192            </div>
193        </div>
194            </MTArchiveListFooter>
195        </MTArchiveList>
196    </MTIfArchiveTypeEnabled>
197</MTIf>
198<MTIf name="main_index">
199    <MTIfArchiveTypeEnabled archive_type="Monthly">
200        <MTArchiveList archive_type="Monthly">
201            <MTArchiveListHeader>
202        <div class="widget-archive widget">
203            <h3 class="widget-header"><__trans phrase="[_1] <a href="[_2]">Archives</a>" params="<$MTArchiveTypeLabel$>%%<$MTLink template="archive_index"$>"></h3>
204            <div class="widget-content">
205                <ul class="widget-list">
206            </MTArchiveListHeader>
207                    <li class="widget-list-item"><a href="<$MTArchiveLink$>"><__trans phrase="[_1] ([_2])" params="<$MTArchiveTitle$>%%<$MTArchiveCount$>"></a></li>
208            <MTArchiveListFooter>
209                </ul>
210            </div>
211        </div>
212            </MTArchiveListFooter>
213        </MTArchiveList>
214    </MTIfArchiveTypeEnabled>
215</MTIf>
216<MTIf name="module_category-monthly_archives">
217    <MTIfArchiveTypeEnabled archive_type="Category-Monthly">
218        <div class="widget-categories widget">
219            <h3 class="widget-header"><__trans phrase="[_1]: Monthly Archives" params="<$MTArchiveTitle$>"></h3>
220            <div class="widget-content">
221        <MTArchiveList archive_type="Category-Monthly">
222            <MTArchiveListHeader>
223                <ul class="widget-list">
224            </MTArchiveListHeader>
225                    <li class="widget-list-item"><a href="<$MTArchiveLink$>"><__trans phrase="[_1] ([_2])" params="<$MTArchiveTitle$>%%<$MTArchiveCount$>"></a></li>
226            <MTArchiveListFooter>
227                </ul>
228            </MTArchiveListFooter>
229        </MTArchiveList>
230            </div>
231        </div>
232    </MTIfArchiveTypeEnabled>
233</MTIf>
234<MTIf name="module_author-monthly_archives">
235    <MTIfArchiveTypeEnabled archive_type="Author-Monthly">
236        <MTArchiveList archive_type="Author-Monthly">
237            <MTArchiveListHeader>
238        <div class="widget-categories widget">
239            <h3 class="widget-header"><__trans phrase="[_1]: Monthly Archives" params="<$MTAuthorDisplayName$>"></h3>
240            <div class="widget-content">
241                <ul class="widget-list">
242            </MTArchiveListHeader>
243                    <li class="widget-list-item"><a href="<$MTArchiveLink$>"><__trans phrase="[_1] ([_2])" params="<$MTArchiveTitle$>%%<$MTArchiveCount$>"></a></li>
244            <MTArchiveListFooter>
245                </ul>
246            </MTArchiveListFooter>
247        </MTArchiveList>
248            </div>
249        </div>
250    </MTIfArchiveTypeEnabled>
251</MTIf>
252        <div class="widget-syndicate widget">
253            <div class="widget-content">
254                <ul class="blog-feeds">
255                    <li class="blog feed"><img src="<$MTStaticWebPath$>images/status_icons/feed.gif" alt="<__trans phrase="Subscribe to feed">" width="9" height="9" /> <a href="<$MTLink template="feed_recent"$>"><__trans phrase="Subscribe to this blog's feed"></a></li>
256    <MTIf name="search_results_template">
257        <mt:ifnonempty tag="MTSearchString">
258                    <li class="search-results-feed"><img src="<$MTStaticWebPath$>images/status_icons/feed.gif" alt="<__trans phrase="Subscribe to feed">" width="9" height="9" /> <a href="<$MTCGIPath$><$MTSearchScript$>?<MTIfTagSearch>tag<MTElse>search</MTIfTagSearch>=<$MTSearchString encode_url="1"$>&amp;Template=feed&amp;IncludeBlogs=<$MTSearchIncludeBlogs$>&amp;limit=<MTSearchMaxResults>" title="<__trans phrase="Subscribe to feed">"><__trans phrase="Search results matching &ldquo;<$MTSearchString$>&rdquo;"></a></li>
259        </mt:ifnonempty>
260    </MTIf>
261                </ul>
262            </div>
263        </div>
264        <div class="widget-powered widget">
265            <div class="widget-content">
266                <a href="<__trans phrase="_MTCOM_URL">"><img src="<$MTStaticWebPath$>images/mt4-bug-pbmt-white.png" alt="<__trans phrase="Powered by Movable Type [_1]" params="<$MTVersion$>">" width="120" height="75" /></a>
267            </div>
268        </div>
269    </div>
270</div>
Note: See TracBrowser for help on using the browser.