task: 6759 | исправил ссылку на блог в выводе списка категорий

dev_10_refactoring
parent 81962b283a
commit 995a09cc2d
  1. 15
      wp-content/themes/cosmopet/modules/blog/components/themes/component-template.twig
  2. 2
      wp-content/themes/cosmopet/templates/blog/themes.twig

@ -1,15 +0,0 @@
<div class="anons-theme">
<h3 class="anons-theme__title">{{ function('pll_e', 'Темы') }}:</h3>
<ul>
<li>
<a href="/" class="{% if not current_category %} active {% endif %}">{{ function('pll_e', 'ВСЕ') }}</a>
</li>
{% for category in category_list %}
<li>
<a href="/category/{{category.slug}}"
class="{% if current_category == category.name %} active {% endif %}">{{ category.name }}</a>
</li>
{% endfor %}
</ul>
</div>

@ -2,7 +2,7 @@
<h3 class="anons-theme__title">{{ function('pll_e', 'Темы') }}:</h3> <h3 class="anons-theme__title">{{ function('pll_e', 'Темы') }}:</h3>
<ul> <ul>
<li> <li>
<a href="/" class="{% if not current_category %} active {% endif %}">{{ function('pll_e', 'ВСЕ') }}</a> <a href="{{ fn('get_post_type_archive_link', 'post') }}" class="{% if not current_category %} active {% endif %}">{{ function('pll_e', 'ВСЕ') }}</a>
</li> </li>
{% for category in category_list %} {% for category in category_list %}
<li> <li>

Loading…
Cancel
Save