Skip to content

Commit 1b6b823

Browse files
authored
Merge pull request #57 from openclassify/navigation-fix
navigation
2 parents 9eb6d00 + 0f2fb7e commit 1b6b823

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

resources/js/theme/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ $(function () {
172172
* show only those containing value.
173173
*/
174174
items.each(function () {
175-
if ($(this).text().toLowerCase().indexOf(value.toLowerCase()) >= 0) {
175+
if ($(this).text().toLocaleLowerCase("tr-TR").indexOf(value.toLocaleLowerCase("tr-TR")) >= 0) {
176176
$(this).show();
177177
} else {
178178
$(this).hide();
Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
1+
{% set menu = [] %}
12
<form class="navbar-form dropdown" id="search">
2-
<input type="text" class="form-control search-bar" placeholder="{{ trans('visiosoft.theme.defaultadmin::control_panel.search_placeholder') }}...">
3+
<input type="text" class="form-control search-bar"
4+
placeholder="{{ trans('visiosoft.theme.defaultadmin::control_panel.search_placeholder') }}...">
35
<button type="submit" class="btn btn-search"><i class="fa fa-search"></i></button>
46
<div class="dropdown-menu results">
5-
<h6 class="dropdown-header">Navigation</h6>
7+
{% set moduleName = "" %}
68
{% for key, navigation in template.cp.navigation %}
9+
10+
{% if moduleName != trans(navigation.breadcrumb) %}
11+
<a style="color: {{ setting_value('visiosoft.theme.defaultadmin::primary_color') }}!important;" class="dropdown-item" {{ html_attributes(navigation.attributes) }} {{ navigation.class }}>
12+
<span class="title">
13+
{{ trans(navigation.breadcrumb)}}
14+
</span>
15+
</a>
16+
{% endif %}
17+
718
<a class="dropdown-item" {{ html_attributes(navigation.attributes) }} {{ navigation.class }}>
8-
<span class="title">{{ trans(navigation.title) }}</span>
19+
20+
<span class="title">
21+
- {{ trans(navigation.title) }}
22+
<span style="color:transparent; font-size: 14px;"> ( {{ trans(navigation.breadcrumb)}} ) </span>
23+
24+
</span>
925
</a>
26+
{% set moduleName = trans(navigation.breadcrumb) %}
1027
{% endfor %}
1128
</div>
1229
</form>

0 commit comments

Comments
 (0)