Skip to content

Commit

Permalink
navbar update
Browse files Browse the repository at this point in the history
app + site buttons ; contact page removed ; search button and form added on fixed navbar
  • Loading branch information
fannymugnier committed Feb 13, 2021
1 parent ba71236 commit 65665b8
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 77 deletions.
6 changes: 4 additions & 2 deletions user/config/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ metadata:
mainmenu:
- text: Accueil
url: page:accueil
- text: Contact
url: page:contact
- text: Notre site
url: https://www.sheaft.com/
- text: Notre app
url: https://app.sheaft.com/
copyright:
text1: Sheaft
year: 2021
Expand Down
51 changes: 0 additions & 51 deletions user/pages/03.contact/form.md

This file was deleted.

5 changes: 0 additions & 5 deletions user/pages/03.contact/thankyou/formdata.md

This file was deleted.

1 change: 0 additions & 1 deletion user/themes/sheaft-theme/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ display:none;
-moz-box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.15);
-webkit-box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.15);
box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.15); }
.gdlr-fixed-nav .top-search-button{ opacity: 0; filter: alpha(opacity=0); cursor: auto; }
.admin-bar .gdlr-fixed-nav{ top: 32px }

.gdlr-navigation-container{ position: relative; }
Expand Down
2 changes: 1 addition & 1 deletion user/themes/sheaft-theme/templates/partials/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
{% if item.url | contains('page:') %}
<li class='menu-item menu-item-type-post_type'><a href='{{ base_url_absolute }}/{{ item.url|replace({"page:":''}) }}'>{{ item.text }}</a></li>
{% else %}
<li class='menu-item menu-item-type-post_type'><a href='{{ item.url }}'>{{ item.text }}</a></li>
<li class='menu-item menu-item-type-post_type'><a href='{{ item.url }}' target="_blank">{{ item.text }}</a></li>
{% endif %}
{% endfor %}
</ul></div>
Expand Down
37 changes: 20 additions & 17 deletions user/themes/sheaft-theme/templates/partials/navigation.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,31 @@
{% if item.url | contains('page:') %}
<li class='menu-item menu-item-type-post_type gdlr-normal-menu'><a href='{{ base_url_absolute }}/{{ item.url|replace({"page:":''}) }}'>{{ item.text }}</a></li>
{% else %}
<li class='menu-item menu-item-type-post_type gdlr-normal-menu'><a href='{{ item.url }}'>{{ item.text }}</a></li>
<li class='menu-item menu-item-type-post_type gdlr-normal-menu'><a href='{{ item.url }}' target="_blank">{{ item.text }}</a></li>
{% endif %}
{% endfor %}
</ul></nav>
<div class='top-search-button' id='top-search-button'>
<i class='icon-search'></i>
</div>
<div class='clear'></div></div>
</div>
</div>
<div id='gdlr-navigation-substitute'></div>
<div class='gdlr-nav-search-form' id='gdlr-nav-search-form'>
<div class='gdlr-nav-search-container container'>
<form>
</ul></nav>
<div class='top-search-button' id='top-search-button'>
<i class='icon-search'></i>
<div class='search-text' id='search-text2'>
<input autocomplete='off' data-default='Rechercher...' name='q' type='text' value="{{ query }}" data-search-input2="{{ base_url_relative }}{{ config.plugins.simplesearch.route}}/query"/><input type='hidden' value='max-results=6'/>
</div>
<div class='clear'></div>
</form>
</div>
<div class='clear'></div>
</div>
</div>

<div class='gdlr-nav-search-form' id='gdlr-nav-search-form'>
<div class='gdlr-nav-search-container container'>
<form>
<i class='icon-search'></i>
<div class='search-text' id='search-text2'>
<input autocomplete='off' data-default='Rechercher...' name='q' type='text' value="{{ query }}" data-search-input2="{{ base_url_relative }}{{ config.plugins.simplesearch.route}}/query"/><input type='hidden' value='max-results=6'/>
</div>
<div class='clear'></div>
</form>
</div>
</div>
</div>
<div id='gdlr-navigation-substitute'></div>


<script>
jQuery(document).ready(function($){
Expand Down

0 comments on commit 65665b8

Please sign in to comment.