Skip to content

Commit

Permalink
Merge pull request #127 from Voog/126_fix_untranslated_menuitems
Browse files Browse the repository at this point in the history
Fix untranslated menuitems (#127)
  • Loading branch information
tanelj authored Jun 8, 2021
2 parents 341b5bd + 50db66b commit a74abd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions components/menu-breadcrumbs.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
<li class="menu-item menu-item-cms">
{% menuadd parent=page label=add_product_label title=add_product_title layout_title=product_layout %}
</li>
{% if site.root_item.selected? and site.root_item.layout_title == product_list_layout %}
<li class="menu-item menu-item-cms float-right">
<a class="js-root-item-settings-toggle"></a>
</li>
{% endif %}
{%- endif -%}
</ul>
4 changes: 2 additions & 2 deletions components/menu-level-1-link.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<li class="menu-item menu-main-item{% if item.selected? %} active{% endif %}{% if item.current? %} current{% endif %}{% if render_hidden_categories == true and item.layout_title == product_list_layout or item.layout_title == product_layout %}{% unless show_product_related_pages_in_main_menu %} is-hidden{% endunless %} js-menu-item-products{% endif %}">
<a{% unless item.translated? %} class="untranslated fci-editor-menuadd"{% endunless %} class="menu-link{% if item.selected? %} active{% endif %}" href="{{ item.url }}">{{ item.title }}</a>
</li>
<a class="{% unless item.translated? %}untranslated fci-editor-menuadd{% endunless %} menu-link{% if item.selected? %} active{% endif %}" href="{{ item.url }}">{{ item.title }}</a>
</li>

0 comments on commit a74abd2

Please sign in to comment.