diff options
Diffstat (limited to 'themes/default/home.twig')
-rwxr-xr-x | themes/default/home.twig | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/themes/default/home.twig b/themes/default/home.twig index bd5fc2d6..e3e8c6af 100755 --- a/themes/default/home.twig +++ b/themes/default/home.twig | |||
@@ -12,7 +12,29 @@ | |||
12 | {% include '_menu.twig' %} | 12 | {% include '_menu.twig' %} |
13 | {% endblock %} | 13 | {% endblock %} |
14 | {% block precontent %} | 14 | {% block precontent %} |
15 | {% include '_sorting.twig' %} | 15 | <div id="search-form" class="messages info"> |
16 | <form method="post" action="index.php?view=search"> | ||
17 | <p> | ||
18 | <label>{% trans "Search" %}</label> : <input type="text" placeholder="{% trans "Enter your search here" %}" name="search" /> | ||
19 | <input type="submit" value="{% trans "Search" %} !"></input> | ||
20 | </p> | ||
21 | </form> | ||
22 | </div> | ||
23 | <script type="text/javascript"> | ||
24 | $(document).ready(function() { | ||
25 | |||
26 | $("#search-form").hide(); | ||
27 | |||
28 | $("#search").click(function(){ | ||
29 | $("#search-form").toggle(); | ||
30 | $("#search").toggleClass("current"); | ||
31 | $("#search-arrow").toggleClass("arrow-down"); | ||
32 | }); | ||
33 | |||
34 | |||
35 | }); | ||
36 | </script> | ||
37 | {% include '_sorting.twig' %} | ||
16 | {% endblock %} | 38 | {% endblock %} |
17 | {% block content %} | 39 | {% block content %} |
18 | {% if tag %} | 40 | {% if tag %} |