root/branches/release-35/plugins/WidgetManager/default_widgets/search.mtml @ 1939

Revision 1939, 1.7 kB (checked in by bchoate, 20 months ago)

Changed links for tags to use javascript navigation. BugId:79318

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            <input type="hidden" name="limit" value="<MTSearchMaxResults>" />
9            <MTIgnore>
10            <!-- use these options only with MT::App::Search::Legacy -->
11            <ul class="search-options">
12                <li><input type="checkbox" name="CaseSearch" /> <__trans phrase="Case sensitive"></li>
13                <li><input type="checkbox" name="RegexSearch" /> <__trans phrase="Regex search"></li>
14            </ul>
15            </MTIgnore>
16<mt:else>
17            <input type="hidden" name="IncludeBlogs" value="<$mt:BlogID$>" />
18            <input type="hidden" name="limit" value="<MTSearchMaxResults>" />
19</mt:if>
20            <input type="submit" accesskey="4" value="<__trans phrase="Search">" />
21        </form>
22    </div>
23</div>
24<mt:If name="search_results">
25    <mt:IfTagSearch>
26<div class="widget-tags widget">
27    <h3 class="widget-header"><__trans phrase="Tags"></h3>
28    <div class="widget-content">
29        <ul class="widget-list">
30        <mt:Tags>
31            <li class="widget-list-item"><a href="javascript:void(0)" onclick="location.href='<$MTTagSearchLink encode_js="1"$>'"><__trans phrase="[_1] ([_2])" params="<$mt:TagName$>%%<$mt:TagCount$>"></a></li>
32        </mt:Tags>
33        </ul>
34    </div>
35</div>
36    </mt:IfTagSearch>
37</mt:If>
Note: See TracBrowser for help on using the browser.