appscms-tools-theme 4.7.4 → 4.7.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,9 @@
1
1
  {% assign lang = page.lang %}
2
+ {% assign siteData = site.data.header[lang].data %}
2
3
  {% assign dataToShow = site.data.header[lang].data %}
3
4
  {% assign file = page.fileName %}
4
5
  {% assign folder = page.folderName %}
5
- {% assign Data= site.data[folder][lang][file] %}
6
+ {% assign Data = site.data[folder][lang][file] %}
6
7
  {% assign logovalue = "40px" %}
7
8
  {%- if page.layout == 'home-1' or page.layout == "feature-1" -%}
8
9
  <header data-layout="{{page.layout}}" id="header" class="home1-nav-header">
@@ -19,86 +20,46 @@
19
20
  </a>
20
21
  {% endif %}
21
22
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
22
- aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
23
+ aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation" id="hamburger">
23
24
  <div class="header_bars"></div>
24
25
  <div class="header_bars"></div>
25
26
  <div class="header_bars"></div>
26
27
  </button>
27
28
 
28
- <div class="collapse navbar-collapse justify-content-end" id="navbarSupportedContent">
29
- {%- if Data.megaMenu -%}
30
- <div class="nav-item header_nav__item">
31
- <a class="dropdown-toggle ml-lg-5" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
32
- aria-haspopup="true" aria-expanded="false">
33
- {{Data.megaMenu.nav-link-name}}
34
- </a>
35
- <div class="dropmenu dropdown-menu" style="border-bottom: 0; box-shadow: 0 8px 5px -6px rgb(0 0 0 / 9%);"
36
- aria-labelledby="navbarDropdown">
37
- <div class="inner-dropdown">
38
- {%- for item in Data.megaMenu.dropdown -%}
39
- <div class="catPad mb-4">
40
- <div class="tools_list_categoryName">{{item.categoryName}}</div>
41
- {%- for item in item.links -%}
42
- <div>
43
- <a class="tools_list_featureName" href="{{item.url}}">
44
- {%- if item.iconSrc -%}
45
- <img class="d-inline mr-2" loading="lazy" style="height:20px;width:20px;" src="{{item.iconSrc}}" {%-
46
- if site.crossorigin -%} crossorigin {%- endif -%}>
47
- {%- endif -%}
48
- {{item.name}}
49
- </a>
50
- </div>
51
- {%- endfor -%}
52
- </div>
53
- {%- endfor -%}
54
- </div>
55
- </div>
56
- </div>
57
- {%- else -%}
58
- {%- if dataToShow.megaMenu -%}
59
- <div class="nav-item header_nav__item">
60
- <a class="dropdown-toggle ml-lg-5" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
61
- aria-haspopup="true" aria-expanded="false">
62
- {{dataToShow.megaMenu.nav-link-name}}
63
- </a>
64
- <div class="dropmenu dropdown-menu" aria-labelledby="navbarDropdown">
65
- <div class="inner-dropdown">
66
- {%- for item in dataToShow.megaMenu.dropdown -%}
67
- <div class="catPad mb-4">
68
- <div class="tools_list_categoryName">{{item.categoryName}}</div>
69
- <div> {%- for item in item.links -%}
70
- <div>
71
- <a class="tools_list_featureName" href="{{item.url}}">
72
- {%- if item.iconSrc -%}
73
- <img class="d-inline mr-2" loading="lazy" style="height:20px;width:20px;" src="{{item.iconSrc}}"
74
- {%- if site.crossorigin -%} crossorigin {%- endif -%}>
75
- {%- endif -%}
76
- {{item.name}}</a>
77
- </div>
78
- {%- endfor -%}
79
- </div>
80
- </div>
81
- {%- endfor -%}
82
- </div>
29
+
30
+
31
+ <div class="d-flex align-items-center">
32
+ {%- if site.navigationSearch -%}
33
+ <div class="nav-search mr-4">
34
+ <div class="search-container">
35
+ <input type="text" class="search-input" placeholder="Search Tools">
36
+ <button class="search-button">
37
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff">
38
+ <g id="SVGRepo_bgCarrier" stroke-width="0"></g>
39
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
40
+ <g id="SVGRepo_iconCarrier">
41
+ <path
42
+ d="M16.6725 16.6412L21 21M19 11C19 15.4183 15.4183 19 11 19C6.58172 19 3 15.4183 3 11C3 6.58172 6.58172 3 11 3C15.4183 3 19 6.58172 19 11Z"
43
+ stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
44
+ </g>
45
+ </svg>
46
+ </button>
83
47
  </div>
48
+
49
+ <div id="results" class="searchbarResults"></div>
84
50
  </div>
85
51
  {%- endif -%}
86
- {%- endif -%}
87
52
 
88
-
89
- <div class="navbar-nav">
90
- {% for item in dataToShow.navItems %}
91
- <div class="nav-item header_nav__item">
92
- <a href="{{item.url}}">{{item.name}}</a>
93
- </div>
94
- {% endfor %}
53
+ <div class="appscms-navbar-nav-links">
54
+ {%- for item in dataToShow.navItems -%}
55
+ <a class="appscms-nav-link" href="{{item.url}}">{{item.name}}</a>
56
+ {%- endfor -%}
95
57
  </div>
96
58
  </div>
97
59
  </div>
98
60
  </nav>
99
61
  </header>
100
62
  {%- else -%}
101
-
102
63
  <header id="header">
103
64
  <nav class="navbar navbar-expand-lg py-3 px-sm-2">
104
65
  {% if dataToShow.navbarBrandText != "" %}
@@ -117,7 +78,7 @@
117
78
  <span class="line-top"></span>
118
79
  <span class="line-center"></span>
119
80
  <span class="line-bottom"></span>
120
- </div>
81
+ </div>
121
82
  </button>
122
83
 
123
84
  <div class="collapse navbar-collapse" id="navbarSupportedContent">
@@ -189,5 +150,4 @@
189
150
  </div>
190
151
  </nav>
191
152
  </header>
192
-
193
153
  {% endif %}
@@ -430,7 +430,7 @@ site.removeJquery != true -%}
430
430
  crossorigin {%- endif -%}></script>
431
431
  {%- endif -%}
432
432
 
433
- <script defer src="/assets/js/theme.js" crossorigin="anonymous"></script>
433
+ <script defer src="/assets/js/appscms-theme.js" crossorigin="anonymous"></script>
434
434
  {%- if site.userTrackingCount -%} {%- include customScripts.html -%} {%- endif
435
435
  -%} {%- if site.userTrackingCount and page.layout == "feature" -%}
436
436
  <script defer src="/assets/js/usageTracking.js"></script>