_includes/dropdown/langdropdown.html in appscms-tools-theme-1.8.2 vs _includes/dropdown/langdropdown.html in appscms-tools-theme-1.8.3

- old
+ new

@@ -1,22 +1,22 @@ -{% assign file = page.fileName %} -{% assign lang = page.lang %} -{% assign folder = page.folderName %} -{% assign langData = site.data[folder][lang][file] %} -{%- assign langsupport = page.langsupport -%} -{%- assign variable = site.data.languagesupport[langsupport]-%} -{%- if variable.langsupport -%} -<div class="lang-dropdown"> - <button class="btn btn-light dropdown-toggle lang-dropdown-btn" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-expanded="false"> - {{langData.Language}} - </button> - <ul class="dropdown-menu drop-down-wrapper" aria-labelledby="dropdownMenu2"> - {%- for item in variable.langsupport -%} - {%- if langData.Language == item.lang -%} - <a class="lang-dropdown-item py-1" style="background-color:rgba(149, 148, 151, 0.397);" class=".lang-dropdown-item" href="{{item.permalink}}">{{item.lang}}</a> - {%- else -%} - <a class="lang-dropdown-item py-1" href="{{item.permalink}}">{{item.lang}}</a> - {%- endif -%} - {%- endfor -%} - </ul> -</div> -{%- endif -%} +{% assign file = page.fileName %} +{% assign lang = page.lang %} +{% assign folder = page.folderName %} +{% assign langData = site.data[folder][lang][file] %} +{%- assign langsupport = page.langsupport -%} +{%- assign variable = site.data.languagesupport[langsupport]-%} +{%- if variable.langsupport -%} +<div class="lang-dropdown"> + <button class="btn btn-light dropdown-toggle lang-dropdown-btn" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-expanded="false"> + {{langData.Language}} + </button> + <ul class="dropdown-menu drop-down-wrapper" aria-labelledby="dropdownMenu2"> + {%- for item in variable.langsupport -%} + {%- if langData.Language == item.lang -%} + <a class="lang-dropdown-item py-1" style="background-color:rgba(149, 148, 151, 0.397);" class=".lang-dropdown-item" href="{{item.permalink}}">{{item.lang}}</a> + {%- else -%} + <a class="lang-dropdown-item py-1" href="{{item.permalink}}">{{item.lang}}</a> + {%- endif -%} + {%- endfor -%} + </ul> +</div> +{%- endif -%}