aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/baggy/_menu.twig3
-rw-r--r--themes/baggy/_search-form.twig21
-rwxr-xr-xthemes/baggy/css/main.css50
-rw-r--r--themes/default/_menu.twig1
-rw-r--r--themes/default/_search-form.twig23
-rwxr-xr-xthemes/default/home.twig21
6 files changed, 98 insertions, 21 deletions
diff --git a/themes/baggy/_menu.twig b/themes/baggy/_menu.twig
index 5226728b..f1b75cd5 100644
--- a/themes/baggy/_menu.twig
+++ b/themes/baggy/_menu.twig
@@ -7,6 +7,9 @@
7 <li style="position: relative;"><a href="javascript: void(null);" id="bagit">{% trans "save a link" %}</a> 7 <li style="position: relative;"><a href="javascript: void(null);" id="bagit">{% trans "save a link" %}</a>
8 {% include '_pocheit-form.twig' %} 8 {% include '_pocheit-form.twig' %}
9 </li> 9 </li>
10 <li style="position: relative;"><a href="javascript: void(null);" id="search">{% trans "search" %}</a>
11 {% include '_search-form.twig' %}
12 </li>
10 <li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li> 13 <li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li>
11 <li><a class="icon icon-power" href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> 14 <li><a class="icon icon-power" href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li>
12 </ul> 15 </ul>
diff --git a/themes/baggy/_search-form.twig b/themes/baggy/_search-form.twig
new file mode 100644
index 00000000..1fd4154e
--- /dev/null
+++ b/themes/baggy/_search-form.twig
@@ -0,0 +1,21 @@
1<div id="search-form" class="messages info">
2<form method="get" action="index.php">
3 <input type="hidden" name="view" value="search"></input>
4 <label><a href="javascript: void(null);" id="search-form-close">X</a>{% trans "Search" %}</label> : <input type="text" name="search" />
5 <input id="submit-search" type="submit" value="{% trans "Search" %} !"></input>
6</form>
7</div>
8<script type="text/javascript">
9 $(document).ready(function() {
10
11 $("#search-form").hide();
12
13 $("#search").click(function(){
14 $("#search-form").toggle();
15 $("#search").toggleClass("current");
16 $("#search-arrow").toggleClass("arrow-down");
17 });
18
19
20 });
21</script> \ No newline at end of file
diff --git a/themes/baggy/css/main.css b/themes/baggy/css/main.css
index 61e0b47e..6e328ba1 100755
--- a/themes/baggy/css/main.css
+++ b/themes/baggy/css/main.css
@@ -613,6 +613,56 @@ a#bagit-form-close:hover {
613} 613}
614 614
615/* ========================================================================== 615/* ==========================================================================
616 2.2 = "search for articles" popup div related styles
617 ========================================================================== */
618#search-form {
619 background: rgba(0,0,0,0.5);
620 position: absolute;
621 top: 0;
622 left: 10em;
623 z-index: 20;
624 height: 100%;
625 width: 100%;
626 margin: 0;
627 margin-top: -30%;
628 padding: 2em;
629 display: none;
630 border-left: 1px #EEE solid;
631}
632
633#search-form form {
634 background: #FFF;
635 position: absolute;
636 top: 0;
637 left: 0;
638 z-index: 20;
639 border: 10px solid #000;
640 width: 400px;
641 height: 200px;
642 /* margin: -150px 0 0 -300px; */
643 padding: 2em;
644}
645
646a#search-form-close {
647 background: #000;
648 color: #FFF;
649 padding: 0.2em 0.5em;
650 text-decoration: none;
651 display: inline-block;
652 float: right;
653 font-size: 1.2em;
654}
655a#search-form-close:hover {
656 background: #999;
657 color: #000;
658}
659
660#submit-search{
661margin-left: 4em;
662margin-top:1em;
663}
664
665/* ==========================================================================
616 3 = Pictos 666 3 = Pictos
617 ========================================================================== */ 667 ========================================================================== */
618 668
diff --git a/themes/default/_menu.twig b/themes/default/_menu.twig
index e2644b0f..0e7dd0a7 100644
--- a/themes/default/_menu.twig
+++ b/themes/default/_menu.twig
@@ -9,4 +9,5 @@
9 <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> 9 <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li>
10 </ul> 10 </ul>
11 {% include '_pocheit-form.twig' %} 11 {% include '_pocheit-form.twig' %}
12 {% include '_search-form.twig' %}
12 13
diff --git a/themes/default/_search-form.twig b/themes/default/_search-form.twig
new file mode 100644
index 00000000..74f420d0
--- /dev/null
+++ b/themes/default/_search-form.twig
@@ -0,0 +1,23 @@
1<div id="search-form" class="messages info">
2<form method="get" action="index.php">
3 <p>
4 <input type="hidden" name="view" value="search"></input>
5 <label>{% trans "Search" %}</label> : <input type="text" placeholder="{% trans "Enter your search here" %}" name="search" />
6 <input type="submit" value="{% trans "Search" %} !"></input>
7 </p>
8</form>
9</div>
10<script type="text/javascript">
11 $(document).ready(function() {
12
13 $("#search-form").hide();
14
15 $("#search").click(function(){
16 $("#search-form").toggle();
17 $("#search").toggleClass("current");
18 $("#search-arrow").toggleClass("arrow-down");
19 });
20
21
22 });
23</script> \ No newline at end of file
diff --git a/themes/default/home.twig b/themes/default/home.twig
index e3e8c6af..b6185df1 100755
--- a/themes/default/home.twig
+++ b/themes/default/home.twig
@@ -12,28 +12,7 @@
12{% include '_menu.twig' %} 12{% include '_menu.twig' %}
13{% endblock %} 13{% endblock %}
14{% block precontent %} 14{% block precontent %}
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 15
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{% include '_sorting.twig' %}
38{% endblock %} 17{% endblock %}
39{% block content %} 18{% block content %}