mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-11 07:46:07 -06:00
fixed new version
This commit is contained in:
parent
be734c0f12
commit
1f0b32a301
@ -5,11 +5,11 @@
|
|||||||
<li>
|
<li>
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
{% if (not categoryId) or (loop.first and categoryId) %}
|
{% if (not categoryId) or (loop.first and categoryId) %}
|
||||||
{% if maincat.icon %}
|
{# {% if maincat.icon %}#}
|
||||||
<img src="{{ maincat.icon.url }}" alt="{{ maincat.name }}">
|
{# <img src="{{ maincat.icon.url }}" alt="{{ maincat.name }}">#}
|
||||||
{% else %}
|
{# {% else %}#}
|
||||||
{{ img('visiosoft.module.advs::images/listing/sample-cat-icon.svg').data|raw }}
|
{{ img('visiosoft.module.advs::images/listing/sample-cat-icon.svg').data|raw }}
|
||||||
{% endif %}
|
{# {% endif %}#}
|
||||||
{% 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;' }}">
|
<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']) }}">
|
<a href="{{ appendRequestURL(request_query(),url_route('adv_list_seo', [maincat.slug, cityId.slug]),{},['page']) }}">
|
||||||
|
|||||||
@ -59,9 +59,4 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
|
|||||||
unset($categories[count($categories) - 1]);
|
unset($categories[count($categories) - 1]);
|
||||||
return $categories;
|
return $categories;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getParent()
|
|
||||||
{
|
|
||||||
return $this->parent_category;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user