forked from CityOfNewYork/working-nyc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edc4410
commit 3ac32e1
Showing
9 changed files
with
111 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...yc/assets/styles/site-default-c7233cf.css → ...yc/assets/styles/site-default-08f73ad.css
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,38 @@ | ||
<aside class="o-menu o-menu-fixed hidden" id="aria-c-menu" aria-hidden="true"> | ||
<div class="o-menu__wrap"> | ||
<button class="o-menu__nav-item" aria-controls="aria-c-menu" data-js="menu" data-js-menu="close" tabindex="-1"> | ||
<svg aria-hidden="true" class="icon-ui" tabindex="-1"> | ||
<use href="#lucide-x"></use> | ||
</svg> | ||
|
||
<span>{{ __('Close', 'WNYC') }}</span> | ||
</button> | ||
|
||
<hr /> | ||
|
||
<button class="o-menu__nav-item" data-js="themes" tabindex="-1"> | ||
<svg class="icon-ui" tabindex="-1"> | ||
<use data-js-themes="icon" href="#lucide-moon"></use> | ||
</svg> | ||
|
||
<span class="sr-only">Toggle </span><span data-js-themes="label">{{ __('Theme', 'WNYC') }}</span> | ||
</button> | ||
|
||
<button class="o-menu__nav-item" aria-controls="aria-c-search-menu" aria-expanded="false" data-dialog="open" data-js="search"> | ||
<svg class="icon-ui" tabindex="-1"> | ||
<title>{{__('Search', 'WNYC')}}</title> | ||
<use href="#lucide-search"></use> | ||
</svg> | ||
<span>{{__('Search', 'WNYC') }}</span> | ||
</button> | ||
|
||
<div class="o-search hidden" aria-hidden="false" class="active" id="aria-c-search-menu"> | ||
{% include 'partials/search-form.twig' %} | ||
<aside class="o-menu o-menu-fixed hidden block" id="aria-c-menu" aria-hidden="true"> | ||
<button class="float-right" aria-controls="aria-c-menu" data-js="menu" data-js-menu="close" tabindex="-1"> | ||
<svg aria-hidden="true" class="icon-ui" tabindex="-1"> | ||
<use href="#lucide-x"></use> | ||
</svg> | ||
</button> | ||
<div class="flex items-center h-full"> | ||
<div class="o-menu__wrap"> | ||
<a class="o-menu__nav-item" href="{{ site.url }}/?s=" tabindex="-1"> | ||
<svg class="icon-ui" tabindex="-1"> | ||
<title>{{__('Search', 'WNYC')}}</title> | ||
<use href="#lucide-search"></use> | ||
</svg> | ||
<span>{{__('Search', 'WNYC') }}</span> | ||
</a> | ||
|
||
<hr /> | ||
|
||
<button class="o-menu__nav-item" data-js="themes" tabindex="-1"> | ||
<svg class="icon-ui" tabindex="-1"> | ||
<use data-js-themes="icon" href="#lucide-moon"></use> | ||
</svg> | ||
|
||
<span class="sr-only">Toggle </span><span data-js-themes="label">{{ __('Theme', 'WNYC') }}</span> | ||
</button> | ||
|
||
<hr /> | ||
|
||
<nav class="o-menu__nav" aria-label="{{ __('Menu', 'WNYC') }}"> | ||
<a class="o-menu__nav-item" href="{{ site.url }}" tabindex="-1">{{ __('Home', 'WNYC') }}</a> | ||
|
||
{% for menu_item in header_menu.get_items %} | ||
<a class="o-menu__nav-item" href="{{ menu_item.link }}" tabindex="-1">{{ menu_item.title }}</a> | ||
{% endfor %} | ||
</nav> | ||
</div> | ||
|
||
<hr /> | ||
|
||
<nav class="o-menu__nav" aria-label="{{ __('Menu', 'WNYC') }}"> | ||
<a class="o-menu__nav-item" href="{{ site.url }}" tabindex="-1">{{ __('Home', 'WNYC') }}</a> | ||
|
||
{% for menu_item in header_menu.get_items %} | ||
<a class="o-menu__nav-item" href="{{ menu_item.link }}" tabindex="-1">{{ menu_item.title }}</a> | ||
{% endfor %} | ||
</nav> | ||
</div> | ||
</aside> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 10 additions & 3 deletions
13
wp-content/themes/workingnyc/views/partials/search-form.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
<form class="o-search__form w-full" style="max-width: var(--nyco-dimension-content-width)" action="/"> | ||
<label class="label pb-1">{{__('Search for work or services', 'WNYC')}}</label> | ||
{% include 'partials/search-input.twig' %} | ||
<form class="o-search__form w-full" action="/"> | ||
<div class="input o-search__input rounded"> | ||
<input class="rounded border-0" data-js="search__input" tabindex="-1" inputmode="search" name="s" placeholder="Search" value="{{ s }}"></input> | ||
<button type="submit" tabindex="-1" class="o-search__submit"> | ||
<svg class="icon-ui"> | ||
<title>{{__('Submit', 'WNYC')}}</title> | ||
<use href="#lucide-search"></use> | ||
</svg> | ||
</button> | ||
</div> | ||
</form> |
9 changes: 0 additions & 9 deletions
9
wp-content/themes/workingnyc/views/partials/search-input.twig
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters