-4 Removals
+7 Additions

Created by:phpboost

1<div id="module-mini-search"# IF C_HIDDEN_WITH_SMALL_SCREENS # class="hidden-small-screens"# ENDIF #> 1<div role="search" id="module-mini-search"# IF C_HIDDEN_WITH_SMALL_SCREENS # class="hidden-small-screens"# ENDIF #>
2 <script> 2 <script>
3 <!-- 3 <!--
4 function check_search_mini_form_post() 4 function check_search_mini_form_post()
5 { 5 {
6 var textSearched = document.getElementById('TxTMiniSearched').value; 6 var textSearched = document.getElementById('TxTMiniSearched').value;
7 if (textSearched.length > 3) 7 if (textSearched.length > 3)
8 { 8 {
9 textSearched = escape_xmlhttprequest(textSearched); 9 textSearched = escape_xmlhttprequest(textSearched);
10 return true; 10 return true;
11 } 11 }
12 else 12 else
13 { 13 {
14 alert('{WARNING_LENGTH_STRING_SEARCH}'); 14 alert('{WARNING_LENGTH_STRING_SEARCH}');
15 return false; 15 return false;
16 } 16 }
17 } 17 }
18 18
19 jQuery(document).ready(function() { 19 jQuery(document).ready(function() {
20 jQuery('#search-token').val(TOKEN); 20 jQuery('#search-token').val(TOKEN);
21 }); 21 });
22 --> 22 -->
23 </script> 23 </script>
24 24
25 <form action="{U_FORM_VALID}" onsubmit="return check_search_mini_form_post();" method="post"> 25 <form role="search" action="{U_FORM_VALID}" onsubmit="return check_search_mini_form_post();" method="post">
26 <div id="mini-search-form" class="input-element-button"> 26 <div id="mini-search-form" class="input-element-button">
27 <input type="search" id="TxTMiniSearched" title="{L_SEARCH_TITLE}" name="q" value="{TEXT_SEARCHED}" placeholder="{L_SEARCH}..."> 27 <input type="search" id="TxTMiniSearched" title="{L_YOUR_SEARCH}" name="q" value="{TEXT_SEARCHED}" placeholder="{L_SEARCH_TITLE}..." aria-labelledby="SearchButton">
28 <input type="hidden" id="search-token" name="token" value="{TOKEN}"> 28 <input type="hidden" id="search-token" name="token" value="{TOKEN}">
29 <button type="submit" name="search_submit"><i class="fa fa-search"></i></button> 29 <button id="SearchButton" class="submit" type="submit" name="search_submit"><i class="fa fa-search" aria-hidden="true"></i><span class="sr-only">{L_SEARCH}</span></button>
30 </div> 30 </div>
31 # IF C_VERTICAL #<a href="{U_ADVANCED_SEARCH}" class="small">{L_ADVANCED_SEARCH}</a># ENDIF # 31 # IF C_VERTICAL #<a href="{U_ADVANCED_SEARCH}" class="small">{L_ADVANCED_SEARCH}</a># ENDIF #
32 </form> 32 </form>
33</div> 33</div>
Editor
Original Text
Changed Text
Recommended videos