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

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