root/branches/release-41/default_templates/search.mtml @ 2648

Revision 2648, 1.6 kB (checked in by bsmith, 17 months ago)

bugzid:80286 - making lists and list-items in wigets more genericly marked up

  • Property svn:keywords set to Id Date Author Revision
Line 
1<div class="widget-search widget">
2    <h3 class="widget-header"><__trans phrase="Search"></h3>
3    <div class="widget-content">
4        <form method="get" action="<$mt:CGIPath$><$mt:SearchScript$>">
5            <input type="text" id="search" class="ti" name="search" value="<$mt:SearchString$>" />
6<mt:If name="search_results">
7            <input type="hidden" name="IncludeBlogs" value="<$mt:SearchIncludeBlogs$>" />
8            <mt:Ignore>
9            <!-- use these options only with MT::App::Search::Legacy -->
10            <ul class="search-options">
11                <li><input type="checkbox" name="CaseSearch" /> <__trans phrase="Case sensitive"></li>
12                <li><input type="checkbox" name="RegexSearch" /> <__trans phrase="Regex search"></li>
13            </ul>
14            </mt:Ignore>
15<mt:Else>
16            <input type="hidden" name="IncludeBlogs" value="<$mt:BlogID$>" />
17</mt:If>
18            <input type="hidden" name="limit" value="<$mt:SearchMaxResults$>" />
19            <input type="submit" accesskey="4" value="<__trans phrase="Search">" />
20        </form>
21    </div>
22</div>
23<mt:If name="search_results">
24    <mt:IfTagSearch>
25<div class="widget-tags widget">
26    <h3 class="widget-header"><__trans phrase="Tags"></h3>
27    <div class="widget-content">
28        <ul>
29        <mt:Tags>
30            <li><a href="javascript:void(0)" onclick="location.href='<$mt:TagSearchLink encode_js="1"$>';return false;"><__trans phrase="[_1] ([_2])" params="<$mt:TagName$>%%<$mt:TagCount$>"></a></li>
31        </mt:Tags>
32        </ul>
33    </div>
34</div>
35    </mt:IfTagSearch>
36</mt:If>
Note: See TracBrowser for help on using the browser.