fixed new version

This commit is contained in:
vedatakd 2021-04-14 09:50:39 +03:00
parent be734c0f12
commit 1f0b32a301
2 changed files with 5 additions and 10 deletions

View File

@ -5,11 +5,11 @@
<li>
<div class="d-flex">
{% if (not categoryId) or (loop.first and categoryId) %}
{% if maincat.icon %}
<img src="{{ maincat.icon.url }}" alt="{{ maincat.name }}">
{% else %}
{{ img('visiosoft.module.advs::images/listing/sample-cat-icon.svg').data|raw }}
{% endif %}
{# {% if maincat.icon %}#}
{# <img src="{{ maincat.icon.url }}" alt="{{ maincat.name }}">#}
{# {% else %}#}
{{ img('visiosoft.module.advs::images/listing/sample-cat-icon.svg').data|raw }}
{# {% endif %}#}
{% endif %}
<div class="{{ not loop.first and categoryId ? 'sub-cat' : 'ml-2' }}" style="{{ not loop.first and categoryId ? 'padding-left: ' ~ (loop.index - 1) * 0.5 ~ 'rem;' }}">
<a href="{{ appendRequestURL(request_query(),url_route('adv_list_seo', [maincat.slug, cityId.slug]),{},['page']) }}">

View File

@ -59,9 +59,4 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
unset($categories[count($categories) - 1]);
return $categories;
}
public function getParent()
{
return $this->parent_category;
}
}